/* Sito pazienti — rilettura moderna del sito storico (barra ambra, intestazione
   sabbia, colori per sezione). Nessuna risorsa esterna: font ospitati qui (OFL). */
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/lato-400.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/lato-700.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("/static/fonts/montserrat-var.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  --bg: #fbf8f2; --surface: #ffffff; --sand: #f8eedb; --sand-2: #f3e3c3; --band-alt: #f3efe7;
  --fg: #1d232a; --muted: #545d66; --line: #e4dac8;
  --amber: #f5b301; --amber-fg: #7a4f00;
  --accent: #2e7d32; --accent-strong: #1b5e20; --accent-soft: #e3f1e4; --accent-fg: #ffffff;
  --red: #c62828; --red-soft: #fdecec; --blue: #0277bd; --blue-soft: #e4f2fb;
  --ok-bg: #e6f4ea; --ok-fg: #0d3d1a; --warn-bg: #fff3d1; --warn-fg: #4a3500; --warn-line: #e0a800;
  --err-bg: #fde7e9; --err-fg: #6b0010; --danger: #b3261e; --focus: #f2a900;
  --dark: #1f2933; --dark-fg: #f4f1ea;
  --radius: 16px; --shadow: 0 1px 2px rgba(29, 35, 42, .05), 0 6px 20px rgba(29, 35, 42, .06);
  --head: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --body: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161a; --surface: #1a2026; --sand: #262117; --sand-2: #3a311f; --band-alt: #161b20;
    --fg: #eef0f2; --muted: #b6bec6; --line: #333b44;
    --amber: #f5b301; --amber-fg: #ffd56b;
    --accent: #81c784; --accent-strong: #a5d6a7; --accent-soft: #1d3320; --accent-fg: #0b1f0c;
    --red: #ef9a9a; --red-soft: #3a1e1e; --blue: #81d4fa; --blue-soft: #15303f;
    --ok-bg: #12301b; --ok-fg: #d7f5df; --warn-bg: #3a3000; --warn-fg: #fff3c4; --warn-line: #f5b301;
    --err-bg: #3d0a12; --err-fg: #ffd9de; --danger: #ff8a80; --focus: #ffd060;
    --dark: #0b0e11; --dark-fg: #eef0f2; --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 1.0625rem/1.65 var(--body); background: var(--bg); color: var(--fg); }
h1, h2, h3, .brand, .mainnav, button, .button, .qcard strong, .kicker, .eyebrow { font-family: var(--head); }
.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1rem; }
.wrap.wide { max-width: 72rem; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: .5rem 1rem; z-index: 10; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pre { white-space: pre-line; overflow-wrap: anywhere; }
.small { font-size: .92rem; }

/* Barra superiore */
.topbar { background: var(--surface); border-top: 5px solid var(--amber); border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: .6rem; padding-bottom: .6rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--fg); text-decoration: none; }
.logo { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent); color: var(--accent-fg); flex: none; }
.logo svg { width: 26px; height: 26px; fill: currentColor; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.05rem; font-weight: 700; }
.brand-text small { font-family: var(--body); color: var(--muted); font-size: .85rem; }
.mainnav { display: flex; gap: .4rem; flex-wrap: wrap; }
.mainnav a { --c: var(--fg); --s: var(--band-alt); display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .45rem .95rem; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--c); border: 2px solid transparent; }
.mainnav a:hover { background: var(--s); }
.mainnav .nav-req { --c: var(--red); --s: var(--red-soft); }
.mainnav .nav-news { --c: var(--blue); --s: var(--blue-soft); }
.mainnav .nav-book { --c: var(--accent-strong); --s: var(--accent-soft); }
.mainnav a[aria-current="page"] { background: var(--s); border-color: var(--c); }
@media (max-width: 52rem) {
  .mainnav { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .mainnav a { justify-content: center; background: var(--s); white-space: nowrap; font-size: .86rem; padding: .4rem .5rem; gap: .35rem; }
}

/* Intestazioni */
.hero { background: radial-gradient(120% 80% at 85% 0%, var(--sand-2) 0%, transparent 60%), var(--sand); padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.eyebrow { margin: 0 0 .5rem; color: var(--amber-fg); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); line-height: 1.08; margin: 0; letter-spacing: -.02em; font-weight: 800; }
.hero-sub { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--muted); margin: .75rem 0 2rem; }
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.qcard { --c: var(--accent); --s: var(--accent-soft); display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); text-decoration: none; color: var(--fg); border: 2px solid transparent; transition: transform .15s ease, border-color .15s ease; }
.qcard:hover { border-color: var(--c); transform: translateY(-2px); }
.qcard .ic { width: 48px; height: 48px; padding: 11px; border-radius: 14px; background: var(--s); color: var(--c); }
.qcard span { display: flex; flex-direction: column; }
.qcard strong { font-size: 1.08rem; color: var(--fg); }
.qcard small { color: var(--muted); font-size: .92rem; }
.q-req { --c: var(--red); --s: var(--red-soft); }
.q-news { --c: var(--blue); --s: var(--blue-soft); }
.hero-notices { display: grid; gap: .9rem; margin-top: 2rem; }
.hnotice { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.3rem; border-left: 6px solid var(--blue); }
.hnotice.warn { border-left-color: var(--warn-line); background: var(--warn-bg); color: var(--warn-fg); }
.hnotice h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.1rem; margin: 0 0 .35rem; }
.hnotice p { margin: 0; }
.pagehead { background: var(--sand); padding: clamp(1.75rem, 5vw, 3rem) 0 clamp(1.5rem, 4vw, 2.25rem); }
.pagehead h1 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); line-height: 1.15; margin: 0; letter-spacing: -.015em; }
.pagehead p { margin: .5rem 0 0; color: var(--muted); }
.page { padding-top: 1.5rem; padding-bottom: 2.5rem; }

/* Sezioni della home */
.band { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.band.alt { background: var(--band-alt); }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.split.reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.section-title { font-size: clamp(1.4rem, 3.4vw, 2rem); line-height: 1.2; margin: 0 0 .4rem; letter-spacing: -.01em; }
.kicker { margin: 0 0 1rem; font-size: .82rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--amber-fg); }
.art { display: grid; place-items: center; }
.art .ic { width: min(220px, 100%); height: auto; aspect-ratio: 1; stroke-width: 1.1; }
.art-kit .ic { color: var(--fg); opacity: .85; }
.art-steth .ic { color: var(--red); }
@media (max-width: 52rem) { .split, .split.reverse { grid-template-columns: minmax(0, 1fr); } .art { display: none; } }
.hours { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; margin: 1.25rem 0; }
.hours-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.25rem; }
.hours-card h3 { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: 1.05rem; margin: 0 0 .6rem; }
.hours-card h3 .ic { color: var(--accent); }
.hours-card h3 span { font-family: var(--body); font-weight: 400; font-size: .88rem; color: var(--muted); }
.hours-card dl { margin: 0; }
.hours-card dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-top: 1px solid var(--line); }
.hours-card dt { font-weight: 700; white-space: nowrap; }
.hours-card dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.rich ul { padding-left: 1.1rem; }
.rich li { margin: .5rem 0; }
.rich p:first-child { margin-top: 0; }
.lead p { margin: 0; }
a[href^="tel:"] { font-weight: 700; white-space: nowrap; }

/* Emergenze e piè di pagina */
.emergency-band { background: var(--dark); color: var(--dark-fg); }
.emergency-band p { display: flex; align-items: center; justify-content: center; gap: .75rem; margin: 0; padding: 1.4rem 0; font-family: var(--head); font-weight: 600; font-size: clamp(1rem, 2.4vw, 1.2rem); text-align: center; }
.emergency-band .ic { color: var(--amber); width: 1.6em; height: 1.6em; }
.emergency-band a { color: var(--amber); font-size: 1.2em; }
footer.site { padding: 2.25rem 0 2.75rem; color: var(--muted); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem 2rem; }
footer.site h2 { font-size: 1rem; color: var(--fg); margin: 0 0 .4rem; }
footer.site p { margin: 0; }

/* Contenuti delle pagine interne */
h2 { font-size: 1.2rem; margin: 0 0 1rem; display: flex; align-items: center; gap: .6rem; }
.lead { color: var(--muted); margin: 0 0 1.25rem; }
.lead.pre { white-space: pre-line; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; margin: 0 0 1rem; }
.card h3 { font-size: 1rem; margin: 1rem 0 .4rem; }
.num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); font-size: .95rem; font-weight: 700; flex: none; }
.article { border-left: 6px solid var(--blue); }
.article.warn { border-left-color: var(--warn-line); }
.article h2 { font-size: 1.3rem; margin-bottom: .5rem; }
.article .kicker { margin-bottom: .4rem; }
.article p:last-child { margin-bottom: 0; }
.banner { display: flex; align-items: center; gap: .7rem; margin: 0 0 1rem; padding: .75rem 1rem; border-radius: 12px; border-left: 5px solid var(--blue); background: var(--blue-soft); color: var(--fg); text-decoration: none; }
.banner .ic { color: var(--blue); }
.banner.warn { border-left-color: var(--warn-line); background: var(--warn-bg); color: var(--warn-fg); }
.banner.warn .ic { color: var(--amber-fg); }
.banner .more { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.hlist { list-style: none; padding: 0; margin: 0; }
.hlist li { display: flex; justify-content: space-between; padding: .4rem 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.hlist li span::first-letter { text-transform: uppercase; }

/* Calendario */
.calnav { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.month { font-size: 1.1rem; text-transform: capitalize; }
.navbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: 1.6rem; line-height: 1; text-decoration: none; color: var(--accent-strong); border: 1px solid var(--line); }
.navbtn:hover { background: var(--accent-soft); }
.navbtn.off { color: var(--line); }
.cal { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.cal th { font-size: .8rem; font-weight: 600; color: var(--muted); padding: .25rem 0; }
.cal abbr { text-decoration: none; }
.cal td { padding: 0; }
.day { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; aspect-ratio: 1 / 1; max-height: 64px; border-radius: 12px; text-decoration: none; font-weight: 600; }
.day.out { visibility: hidden; }
.day.none { color: var(--muted); opacity: .55; font-weight: 400; }
.day.avail { background: var(--accent-soft); color: var(--accent-strong); border: 2px solid transparent; }
.day.avail:hover { border-color: var(--accent); }
.day.sel { background: var(--accent); color: var(--accent-fg); }
.day.today .n { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.day .dot { font-size: .7rem; font-weight: 700; line-height: 1; margin-top: 2px; opacity: .85; }

/* Orari */
.daylabel { margin: -.5rem 0 1rem; color: var(--muted); }
.daylabel::first-letter { text-transform: uppercase; }
.slots { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: .5rem; }
.slot { display: block; text-align: center; min-height: 48px; line-height: 44px; border-radius: 10px; border: 2px solid var(--accent); color: var(--accent-strong); font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }
.slot:hover { background: var(--accent-soft); }
.slot.sel { background: var(--accent); color: var(--accent-fg); }

/* Modulo */
.when { margin-top: -.25rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 34rem) { .fields { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; margin-bottom: .3rem; }
input:not([type=checkbox]) { width: 100%; min-height: 48px; padding: .6rem .75rem; font: inherit; border: 2px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); }
input:not([type=checkbox]):focus { border-color: var(--accent); }
label.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
label.check input { width: 1.4rem; height: 1.4rem; margin-top: .15rem; flex: none; accent-color: var(--accent); }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .6rem 1.4rem; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; border: 2px solid var(--accent); background: var(--surface); color: var(--accent-strong); }
button.primary, .button.primary { background: var(--accent); color: var(--accent-fg); }
button.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
button.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
@media (max-width: 34rem) { button.primary { width: 100%; } }

/* Messaggi */
.notice, .success, .error { padding: .8rem 1rem; border-radius: 10px; margin: 0 0 1rem; }
.notice { background: var(--warn-bg); color: var(--warn-fg); }
.success { background: var(--ok-bg); color: var(--ok-fg); }
.error { background: var(--err-bg); color: var(--err-fg); font-weight: 600; }
.hint { color: var(--muted); font-size: .95rem; }
.link { word-break: break-all; font-size: .95rem; background: var(--accent-soft); padding: .75rem 1rem; border-radius: 10px; }


/* Richieste mediche */
.types { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.typecard { display: flex; flex-direction: column; gap: .15rem; padding: .9rem 1.1rem; border-radius: 12px; border: 2px solid var(--line); text-decoration: none; color: var(--fg); background: var(--surface); }
.typecard:hover { border-color: var(--red); }
.typecard strong { font-family: var(--head); color: var(--red); }
.typecard span { color: var(--muted); font-size: .92rem; }
fieldset.card { min-width: 0; }
legend { font-family: var(--head); font-weight: 700; font-size: 1.1rem; padding: 0 .3rem; }
textarea { width: 100%; padding: .6rem .75rem; font: inherit; border: 2px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); resize: vertical; }
textarea:focus { border-color: var(--accent); outline: none; }
[aria-invalid="true"], .meds.invalid input { border-color: var(--danger) !important; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .03em; }
.meds { display: grid; gap: .45rem; margin-bottom: 1rem; }
.medhead, .medrow { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) 6rem; gap: .5rem; }
.medhead { font-weight: 700; font-size: .9rem; color: var(--muted); }
@media (max-width: 34rem) { .medhead { display: none; } .medrow { grid-template-columns: minmax(0, 1fr) 5rem; } .medrow input:first-of-type { grid-column: 1 / -1; } }
input[type=file] { padding: .55rem; }
.files { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 0 1rem; }
.file { margin: 0 0 .75rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Avvisi: richiami in home e documenti */
.hnotice .hmore { margin-top: .4rem; font-weight: 700; }
.docs-title { font-size: 1rem; margin: 1.2rem 0 .5rem; }
.docs { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.docs a { display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; border-radius: 12px; border: 2px solid var(--line); text-decoration: none; color: var(--fg); background: var(--surface); }
.docs a:hover { border-color: var(--blue); }
.docs .ic { width: 1.8rem; height: 1.8rem; color: var(--blue); }
.docs span { display: flex; flex-direction: column; }
.docs small { color: var(--muted); }

/* Modulo richieste: su desktop due colonne e più spazio, su mobile una colonna */
.wrap.form-wide { max-width: 76rem; }
.reqgrid { display: grid; gap: 0 1.25rem; grid-template-columns: minmax(0, 1fr); grid-template-areas: "patient" "main" "files"; }
.r-patient { grid-area: patient; }
.r-main { grid-area: main; }
.r-files { grid-area: files; }
@media (min-width: 64rem) {
  .reqgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); grid-template-areas: "patient main" "files main"; align-items: start; }
  .reqform .card { padding: 1.5rem 1.75rem; }
  .reqform .r-main textarea#testo { min-height: 18rem; }
  .reqform .r-files .files { grid-template-columns: minmax(0, 1fr); }
  .reqsubmit { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: 1rem 1.75rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
  .reqsubmit p { margin: 0; }
  .reqsubmit button.primary { min-width: 16rem; }
}

/* Righe farmaco: una visibile, le altre aggiunte/tolte con caselle nascoste (niente JavaScript) */
.rowtoggle { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.meds .medhead, .meds .medrow { grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) 6rem 6.5rem; align-items: center; }
.rowbtn { display: none; align-items: center; justify-content: center; min-height: 44px; padding: .4rem .9rem; border-radius: 999px; font-family: var(--head); font-weight: 600; font-size: .92rem; cursor: pointer; user-select: none; }
.rowbtn.add { border: 2px dashed var(--accent); color: var(--accent-strong); background: var(--accent-soft); justify-self: start; margin-top: .25rem; }
.rowbtn.add:hover { border-style: solid; }
.rowbtn.remove { border: 2px solid var(--line); color: var(--danger); background: var(--surface); }
.rowbtn.remove:hover { border-color: var(--danger); }
.maxmeds { display: none; margin: .25rem 0 0; }
.meds .row2 { display: none; }
#r2:checked ~ .row2 { display: grid; }
.meds .row3 { display: none; }
#r3:checked ~ .row3 { display: grid; }
.meds .row4 { display: none; }
#r4:checked ~ .row4 { display: grid; }
.meds .row5 { display: none; }
#r5:checked ~ .row5 { display: grid; }
.meds .row6 { display: none; }
#r6:checked ~ .row6 { display: grid; }
#r2:not(:checked) ~ .add2 { display: inline-flex; }
#r2:checked ~ #r3:not(:checked) ~ .add3 { display: inline-flex; }
#r3:checked ~ #r4:not(:checked) ~ .add4 { display: inline-flex; }
#r4:checked ~ #r5:not(:checked) ~ .add5 { display: inline-flex; }
#r5:checked ~ #r6:not(:checked) ~ .add6 { display: inline-flex; }
#r6:checked ~ .maxmeds { display: block; }
#r2:checked ~ #r3:not(:checked) ~ .row2 .remove { display: inline-flex; }
#r3:checked ~ #r4:not(:checked) ~ .row3 .remove { display: inline-flex; }
#r4:checked ~ #r5:not(:checked) ~ .row4 .remove { display: inline-flex; }
#r5:checked ~ #r6:not(:checked) ~ .row5 .remove { display: inline-flex; }
#r6:checked ~ .row6 .remove { display: inline-flex; }
#r2:focus-visible ~ .add2, #r2:focus-visible ~ .row2 .remove { outline: 3px solid var(--focus); outline-offset: 2px; }
#r3:focus-visible ~ .add3, #r3:focus-visible ~ .row3 .remove { outline: 3px solid var(--focus); outline-offset: 2px; }
#r4:focus-visible ~ .add4, #r4:focus-visible ~ .row4 .remove { outline: 3px solid var(--focus); outline-offset: 2px; }
#r5:focus-visible ~ .add5, #r5:focus-visible ~ .row5 .remove { outline: 3px solid var(--focus); outline-offset: 2px; }
#r6:focus-visible ~ .add6, #r6:focus-visible ~ .row6 .remove { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (min-width: 64rem) { .reqform .meds .medhead, .reqform .meds .medrow { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.5fr) 7rem 6.5rem; } }
@media (max-width: 34rem) {
  .meds .medrow { grid-template-columns: minmax(0, 1fr) 5rem; }
  .meds .medrow input:first-of-type { grid-column: 1 / -1; }
  .meds .medrow .rowbtn.remove { grid-column: 1 / -1; justify-self: end; }
  .meds .medrow { padding-bottom: .6rem; border-bottom: 1px dashed var(--line); }
}
