/* Quando — stile ripreso da contrienrico.it */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/CormorantGaramond-Regular.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/CormorantGaramond-Italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/CormorantGaramond-SemiBold.woff2") format("woff2"); }
@font-face { font-family: Jost; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/Jost-Light.woff2") format("woff2"); }
@font-face { font-family: Jost; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/Jost-Regular.woff2") format("woff2"); }
@font-face { font-family: Jost; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/Jost-Medium.woff2") format("woff2"); }
@font-face { font-family: Jost; font-style: italic; font-weight: 300; font-display: swap; src: url("fonts/Jost-LightItalic.woff2") format("woff2"); }

:root {
  --black: #0d0d0d;
  --gray-dark: #3a3a3a;
  --gray-mid: #6b6b6b;
  --gray-light: #b0b0b0;
  --gray-rule: #e2e2e2;
  --bg: #fafafa;
  --white: #ffffff;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max-w: 780px;
  --max-w-wide: 1040px;
  --nav-h: 60px;

  --yes: #2d6a4f;   --yes-bg: #e8f1ec;
  --maybe: #8a6a1f; --maybe-bg: #f6efe0;
  --no: #9a9a9a;    --no-bg: #f3f3f3;
  --err: #c0392b;
}

*, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); background: var(--bg); color: var(--black); line-height: 1.7; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
code { font-size: .87em; background: var(--white); border: 1px solid var(--gray-rule); padding: .1em .4em; border-radius: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--gray-light); font-weight: 300; }
.inline { display: inline; }
.break { word-break: break-all; }

/* ---------- Navigazione ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(250,250,250,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--gray-rule); height: var(--nav-h); }
.nav-inner { max-width: var(--max-w-wide); margin: 0 auto; padding: 0 1.5rem; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-logo { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .01em; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-mid); }
.nav-links a, .nav-links .linklike { transition: color .2s; color: var(--gray-mid); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; text-decoration: none; }
.nav-links a:hover, .nav-links .linklike:hover { color: var(--black); }
.nav-links form { border-left: 1px solid var(--gray-rule); padding-left: 1.2rem; }
.lang-switch { display: inline-flex; gap: .45rem; border-left: 1px solid var(--gray-rule); padding-left: 1.2rem; font-size: .7rem; letter-spacing: .08em; }
.lang-switch .is-current { color: var(--black); font-weight: 500; }
.lang-switch a { color: var(--gray-light); }
.lang-switch a:hover { color: var(--black); }

/* ---------- Pagina ---------- */
.main { flex: 1; }
.page { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem 5rem; }
.page--wide { max-width: var(--max-w-wide); }
.page-header { padding: 4rem 0 2.5rem; border-bottom: 1px solid var(--gray-rule); margin-bottom: 2.5rem; }
.page-header--narrow { max-width: 420px; margin-left: auto; margin-right: auto; border-bottom: none; padding-bottom: 1rem; margin-bottom: 1rem; }
.page-header--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.page-header h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: .25rem 0 .5rem; }
.eyebrow, .eyebrow a { font-size: .75rem; color: var(--gray-light); letter-spacing: .04em; }
.eyebrow a:hover { color: var(--black); }
.eyebrow-row { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.eyebrow-link { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-mid); margin-left: auto; }
.eyebrow-link:hover { color: var(--black); }
.lead { font-size: .95rem; color: var(--gray-dark); font-weight: 300; max-width: 46rem; }
.prose p { margin-bottom: 1rem; font-weight: 300; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gray-rule); }
.prose a:hover { text-decoration-color: var(--black); }

.section { padding: 2.25rem 0; border-bottom: 1px solid var(--gray-rule); }
.section:last-child { border-bottom: none; }
.section-title { font-size: .68rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gray-light); margin-bottom: 1.25rem; }
.hint { font-size: .8rem; color: var(--gray-mid); font-weight: 300; line-height: 1.5; }
.empty { color: var(--gray-mid); font-weight: 300; padding: 1.5rem 0; font-size: .92rem; }
.back-link { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-mid); }
.back-link:hover { color: var(--black); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.cols > .section { border-bottom: none; }
.cols + .section { border-top: 1px solid var(--gray-rule); }

.od-day, .gh-day, .final-date, .page-header h1 { font-variant-numeric: lining-nums; }
.page-header + .section { padding-top: 0; }

/* ---------- Badge e tag ---------- */
.badge, .tag { display: inline-block; font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-mid); border: 1px solid var(--gray-rule); padding: .12rem .5rem; border-radius: 2px; line-height: 1.6; white-space: nowrap; }
.badge--open { color: var(--yes); border-color: #cfe1d7; background: var(--yes-bg); }
.badge--final { color: var(--white); background: var(--black); border-color: var(--black); }
.badge--closed { color: var(--gray-mid); background: var(--no-bg); }
.badge--todo { color: var(--maybe); border-color: #eadbb8; background: var(--maybe-bg); }

/* ---------- Flash ---------- */
.flash { font-size: .85rem; font-weight: 300; padding: .8rem 1rem; border: 1px solid var(--gray-rule); border-left: 2px solid var(--black); background: var(--white); margin: 1.5rem 0; border-radius: 2px; }
.flash--ok { border-left-color: var(--yes); }
.flash--err { border-left-color: var(--err); color: var(--err); }
.flash--info { border-left-color: var(--maybe); }
.page > .flash:first-child { margin-top: 2rem; }

/* ---------- Form ---------- */
.form { display: flex; flex-direction: column; gap: 1.25rem; }
.narrow { max-width: 420px; margin: 0 auto; width: 100%; }
.narrow-field { max-width: 280px; }
.form-section { padding-bottom: 2rem; margin-bottom: .75rem; border-bottom: 1px solid var(--gray-rule); display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: end; }
.form-group { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.form-group--grow { grid-column: span 1; }
.form-row--3 { grid-template-columns: 1fr 1fr 10rem; }
.form-group label, .form-label { font-size: .7rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-light); }
.form-group label .muted { text-transform: none; letter-spacing: 0; font-size: .78rem; }
input[type=text], input:not([type]), input[type=email], input[type=password], input[type=date], input[type=time], input[type=datetime-local], input[type=url], select, textarea {
  font-family: var(--font-body); font-size: .9rem; font-weight: 300; color: var(--black); background: var(--white);
  border: 1px solid var(--gray-rule); border-radius: 2px; padding: .62rem .85rem; outline: none; transition: border-color .2s; width: 100%; min-height: 2.6rem;
}
textarea { resize: vertical; line-height: 1.55; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gray-mid) 50%), linear-gradient(135deg, var(--gray-mid) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
input:focus, select:focus, textarea:focus { border-color: var(--black); }
input[readonly] { color: var(--gray-dark); background: var(--bg); }
.form-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding-top: .5rem; }
.muted-link { font-size: .78rem; color: var(--gray-mid); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gray-rule); }
.muted-link:hover { color: var(--black); }
.checks { display: flex; flex-direction: column; gap: .6rem; }
.checks--cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .4rem 1rem; padding: .8rem 0; }
.check { display: flex; align-items: flex-start; gap: .65rem; font-size: .88rem; font-weight: 300; cursor: pointer; line-height: 1.45; }
.check input { accent-color: var(--black); width: 1rem; height: 1rem; margin-top: .18rem; flex-shrink: 0; }
.check small { color: var(--gray-light); font-size: .8rem; }
.hp { position: absolute; left: -9999px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font-family: var(--font-body); font-size: .74rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--white); background: var(--black); border: 1px solid var(--black); border-radius: 2px; padding: .85rem 1.8rem; cursor: pointer; transition: opacity .2s, background .2s, color .2s; white-space: nowrap; text-decoration: none; }
.btn:hover { opacity: .78; }
.btn--ghost { background: transparent; color: var(--black); border-color: var(--gray-rule); }
.btn--ghost:hover { opacity: 1; border-color: var(--black); }
.btn--sm { padding: .55rem 1.1rem; font-size: .68rem; }
.btn--danger { background: var(--err); border-color: var(--err); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.linklike { font-size: .78rem; color: var(--gray-mid); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gray-rule); padding: 0; transition: color .2s; }
.linklike:hover { color: var(--black); text-decoration-color: var(--black); }
.danger-text { color: var(--err); }
.icon-btn { width: 2rem; height: 2rem; border-radius: 2px; color: var(--gray-light); font-size: 1.2rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; transition: color .2s, background .2s; }
.icon-btn:hover { color: var(--err); background: var(--no-bg); }
.copy-field { display: flex; gap: .6rem; align-items: stretch; }
.copy-field input { flex: 1; }
.details summary { cursor: pointer; font-size: .82rem; color: var(--gray-mid); list-style: none; padding: .2rem 0; }
.details summary::-webkit-details-marker { display: none; }
.details summary::before { content: '+ '; }
.details[open] summary::before { content: '− '; }
.details[open] summary { margin-bottom: .8rem; }
.chip { font-size: .72rem; border: 1px solid var(--gray-rule); padding: .25rem .7rem; border-radius: 2px; color: var(--gray-dark); background: var(--white); transition: border-color .2s; }
.chip:hover { border-color: var(--black); }

/* ---------- Elenchi sondaggi ---------- */
.poll-list { list-style: none; }
.poll-item { padding: 1.8rem 0; border-bottom: 1px solid var(--gray-rule); }
.poll-item:first-child { padding-top: .5rem; }
.poll-item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-bottom: .45rem; }
.poll-item-meta .meta { font-size: .76rem; color: var(--gray-light); font-variant-numeric: tabular-nums; }
.poll-item h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; line-height: 1.25; }
.poll-item h2 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.poll-item-actions { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: .6rem; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-mid); align-items: center; }
.poll-item-actions a, .poll-item-actions .linklike { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--gray-mid); }
.poll-item-actions a:hover, .poll-item-actions .linklike:hover { color: var(--black); }

/* ---------- Luogo / online ---------- */
.where { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2.5rem; padding: 0 0 2.25rem; border-bottom: 1px solid var(--gray-rule); }
.page-header + .where { margin-top: -.25rem; }
.where-item .section-title { margin-bottom: .6rem; }
.where-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
address { font-style: normal; font-size: .88rem; color: var(--gray-dark); font-weight: 300; }
.where-links { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; margin-top: .6rem; font-size: .8rem; }
.where-links a:not(.btn) { color: var(--gray-mid); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gray-rule); }
.where-links a:not(.btn):hover { color: var(--black); }
.map-slot { margin-top: 1rem; border: 1px solid var(--gray-rule); border-radius: 2px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--gray-rule); }
.map-slot iframe { width: 100%; height: 100%; border: 0; filter: grayscale(35%); }

/* ---------- Data confermata ---------- */
.final { margin: 0 0 2.25rem; padding: 2rem; background: var(--white); border: 1px solid var(--gray-rule); border-left: 2px solid var(--black); border-radius: 2px; }
.final .section-title { margin-bottom: .4rem; }
.final-date { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 600; line-height: 1.2; margin-bottom: 1.2rem; }
.page-header + .final { margin-top: 0; }

/* ---------- Voto ---------- */
.vote-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.options { list-style: none; border-top: 1px solid var(--gray-rule); }
.option { display: grid; grid-template-columns: 4.2rem 1fr auto; gap: 1.2rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--gray-rule); position: relative; }
.option--best::before { content: ''; position: absolute; left: -1rem; top: 1rem; bottom: 1rem; width: 2px; background: var(--yes); }
.option-date { display: flex; flex-direction: column; align-items: center; line-height: 1.1; border: 1px solid var(--gray-rule); background: var(--white); border-radius: 2px; padding: .45rem 0 .5rem; }
.od-dow { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-mid); }
.od-day { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; line-height: 1.05; }
.od-month { font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-light); }
.option-time { font-size: .95rem; font-variant-numeric: tabular-nums; }
.option-tally { display: flex; flex-wrap: wrap; gap: .7rem; font-size: .74rem; color: var(--gray-light); }
.t-yes { color: var(--yes); }
.t-maybe { color: var(--maybe); }
.t-best { text-transform: uppercase; letter-spacing: .08em; font-size: .62rem; color: var(--yes); border: 1px solid #cfe1d7; padding: 0 .4rem; border-radius: 2px; }

.seg { border: none; display: inline-flex; border: 1px solid var(--gray-rule); border-radius: 2px; background: var(--white); overflow: hidden; }
.seg label { position: relative; cursor: pointer; }
.seg label + label { border-left: 1px solid var(--gray-rule); }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: .55rem .95rem; font-size: .76rem; letter-spacing: .03em; color: var(--gray-mid); transition: background .15s, color .15s; white-space: nowrap; user-select: none; }
.seg label:hover span { color: var(--black); }
.seg input:focus-visible + span { outline: 2px solid var(--black); outline-offset: -2px; }
.seg-yes input:checked + span { background: var(--yes); color: var(--white); }
.seg-maybe input:checked + span { background: var(--maybe-bg); color: var(--maybe); }
.seg-no input:checked + span { background: var(--no-bg); color: var(--gray-dark); }

/* ---------- Griglia risposte ---------- */
.grid-wrap { overflow-x: auto; border: 1px solid var(--gray-rule); border-radius: 2px; background: var(--white); -webkit-overflow-scrolling: touch; }
.grid { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .85rem; }
.grid th, .grid td { padding: .55rem .6rem; text-align: center; border-bottom: 1px solid var(--gray-rule); border-left: 1px solid var(--gray-rule); }
.grid thead th { vertical-align: bottom; font-weight: 400; background: var(--white); min-width: 4.6rem; line-height: 1.15; padding-top: .8rem; }
.grid .grid-name { text-align: left; border-left: none; position: sticky; left: 0; background: var(--white); z-index: 1; min-width: 11rem; max-width: 16rem; font-weight: 400; }
.grid tbody .grid-name { box-shadow: 1px 0 0 var(--gray-rule); }
.gh-dow { display: block; font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-mid); }
.gh-day { display: block; font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; }
.gh-month { display: block; font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-light); }
.gh-time { display: block; font-size: .7rem; color: var(--gray-dark); margin-top: .25rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gn { display: block; }
.ge, .gc { display: block; font-size: .7rem; color: var(--gray-light); font-weight: 300; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc { font-style: italic; color: var(--gray-mid); }
.cell { font-size: .9rem; }
.cell--yes { background: var(--yes-bg); color: var(--yes); }
.cell--maybe { background: var(--maybe-bg); color: var(--maybe); font-size: .78rem; }
.cell--no { color: #c9c9c9; }
.cell--none { color: var(--gray-rule); }
.grid tr.is-me .grid-name { font-weight: 500; }
.grid tr.is-me td, .grid tr.is-me th { border-bottom-color: var(--gray-light); }
.grid thead th.is-best { box-shadow: inset 0 3px 0 var(--yes); }
.grid tfoot td.is-best { color: var(--yes); }
.grid .is-final { outline: 2px solid var(--black); outline-offset: -2px; }
.grid tfoot th, .grid tfoot td { border-bottom: none; font-size: .82rem; background: var(--bg); }
.grid tfoot .grid-name { background: var(--bg); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-light); }
.grid-act { width: 2.5rem; border-left: 1px solid var(--gray-rule); }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .8rem; font-size: .72rem; color: var(--gray-light); }
.legend span { padding: 0 .4rem; border-radius: 2px; }
.legend-best { box-shadow: inset 0 2px 0 var(--yes); padding-top: .1rem !important; }

/* ---------- Admin: form opzioni ---------- */
.opt-rows { display: flex; flex-direction: column; gap: .55rem; }
.opt-row { display: grid; grid-template-columns: minmax(9.5rem, 12rem) 8.2rem auto 8.2rem auto auto; gap: .55rem; align-items: center; justify-content: start; }
.opt-sep { color: var(--gray-light); }
.tabs { display: inline-flex; border: 1px solid var(--gray-rule); border-radius: 2px; background: var(--white); align-self: flex-start; flex-wrap: wrap; }
.tab { padding: .5rem 1rem; font-size: .74rem; color: var(--gray-mid); letter-spacing: .03em; }
.tab + .tab { border-left: 1px solid var(--gray-rule); }
.tab.is-active { background: var(--black); color: var(--white); }
.where-fields { display: flex; flex-direction: column; gap: 1.1rem; }

/* ---------- Admin: inviti, utenti ---------- */
.invite-list, .user-list { list-style: none; margin: 1.5rem 0 1rem; border-top: 1px solid var(--gray-rule); }
.invite-list li { display: grid; grid-template-columns: 1fr auto auto; gap: .8rem; align-items: center; padding: .45rem 0; border-bottom: 1px solid var(--gray-rule); font-size: .84rem; }
.inv-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-who .muted { font-size: .76rem; }
.inv-state { font-size: .7rem; color: var(--gray-light); white-space: nowrap; }
.inv-state.is-done { color: var(--yes); }
.inv-state.is-wait { color: var(--maybe); }
.user-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--gray-rule); flex-wrap: wrap; }
.user-list li.is-off { opacity: .55; }
.u-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-right: .4rem; }
.u-mail { display: block; font-size: .82rem; color: var(--gray-mid); font-weight: 300; }
.u-meta { display: block; font-size: .72rem; color: var(--gray-light); }
.u-actions { display: flex; gap: 1rem; }
.kv { display: grid; grid-template-columns: 7rem 1fr; gap: .3rem 1rem; font-size: .86rem; margin-bottom: .8rem; }
.kv dt { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-light); padding-top: .15rem; }
.kv dd { font-weight: 300; }
.danger .cols { gap: 2rem; }
.danger form { display: flex; flex-direction: column; gap: .7rem; align-items: flex-start; }
.danger .copy-field { width: 100%; max-width: 320px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--gray-rule); padding: 1.5rem 0; }
.footer-inner { max-width: var(--max-w-wide); margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; gap: 2rem; font-size: .75rem; color: var(--gray-light); }
.footer-inner a { color: var(--gray-light); transition: color .2s; }
.footer-inner a:hover { color: var(--black); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .cols { grid-template-columns: 1fr; gap: 0; }
  .cols > .section + .section { border-top: 1px solid var(--gray-rule); }
}
@media (max-width: 600px) {
  html { font-size: 16px; }
  .nav-links { gap: 1rem; }
  .nav-profile { display: none; }
  .nav-links form, .lang-switch { padding-left: .8rem; }
  .page-header { padding: 2.5rem 0 1.8rem; margin-bottom: 1.8rem; }
  .form-row { grid-template-columns: 1fr; }
  .option { grid-template-columns: 3.6rem 1fr; gap: .4rem 1rem; }
  .option .seg { grid-column: 1 / -1; width: 100%; }
  .seg label { flex: 1; }
  .seg span { text-align: center; padding: .7rem .4rem; }
  .option--best::before { left: -.75rem; }
  .opt-row { grid-template-columns: 1fr 1fr auto 1fr; }
  .opt-row input[type=date] { grid-column: 1 / -1; }
  .opt-row [data-dup] { grid-column: 1 / 3; justify-self: start; }
  .opt-row [data-del] { grid-column: 3 / -1; justify-self: end; }
  .copy-field { flex-direction: column; }
  .final { padding: 1.4rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: .4rem; }
  .grid .grid-name { min-width: 8rem; }
}
@media (max-width: 380px) {
  .nav-links a:not([title]) { letter-spacing: .04em; }
}
