/* Tasklog – Team PHX A4 Governance
   Palette dal template Phoenix: grafite #59595B, oro #E3BC2F, oro scuro #8C6D0E, grigio riquadri #F2F2F2. */

:root {
  --ink: #2B2B2D;
  --ink-2: #5C5C60;
  --ink-3: #8E8E93;
  --char: #59595B;
  --char-dark: #47474A;
  --gold: #E3BC2F;
  --gold-ink: #8C6D0E;
  --gold-tint: #FBF5DF;
  --tile: #F2F2F2;
  --paper: #FFFFFF;
  --rule: #E3E3E5;
  --a4m: #E37B3D;      /* arancio A4mobility: solo nel filo sotto la testata */
  --rule-soft: #EEEEF0;
  --hover: #FAFAFA;
  --st-ok: #1E8E4E;
  --st-todo: #A3A3A8;
  --st-stop: #C0392B;
  --st-done: #CFCFD3;
  --focus: #8C6D0E;
  --font: 'Instrument Sans', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
  --radius: 4px;
  --gutter: 40px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.num { font-variant-numeric: tabular-nums; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px;
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
  font-weight: 550; white-space: nowrap;
}
.btn:hover { background: var(--hover); border-color: #CDCDD1; }
.btn-primary { background: var(--char); border-color: var(--char); color: #fff; }
.btn-primary:hover { background: var(--char-dark); border-color: var(--char-dark); }
.btn-quiet { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn-quiet:hover { background: var(--tile); border-color: transparent; color: var(--ink); }
.btn-danger { border-color: transparent; background: transparent; color: var(--st-stop); }
.btn-danger:hover { background: #FBEDEB; border-color: transparent; }
.btn[disabled] { opacity: .45; cursor: default; }
.btn[disabled]:hover { background: var(--paper); border-color: var(--rule); }

/* ---------- Masthead: banda grafite con taglio obliquo, come le slide Phoenix ---------- */

.masthead {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 68px; padding-right: var(--gutter);
  border-bottom: 2px solid var(--a4m);
}
.band {
  display: flex; align-items: center; gap: 14px;
  align-self: stretch;
  padding: 0 96px 0 var(--gutter);
  min-width: min(560px, 62vw);
  background: var(--char); color: #fff;
  clip-path: polygon(0 0, 100% 0, calc(100% - 44px) 100%, 0 100%);
}
.band-logo { height: 34px; width: auto; }
.band-title { display: flex; align-items: baseline; gap: 14px; }
.band-title .app { font-size: 22px; font-weight: 650; letter-spacing: -0.01em; }
.band-title .team { font-size: 13.5px; color: rgba(255, 255, 255, .78); }

/* logo del cliente subito dopo il taglio obliquo della banda, nei suoi colori originali */
.partner { display: flex; align-items: center; margin-right: auto; padding-left: 4px; }
.partner img { height: 30px; width: auto; }

.top-actions { display: flex; align-items: center; gap: 8px; }
.sync { color: var(--ink-3); font-size: 13px; }
.sync.is-error { color: var(--st-stop); }
.me-btn .initials { width: 22px; height: 22px; font-size: 10px; }

/* ---------- Shell ---------- */

.shell { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter) 40px; }

/* ---------- Hero: titolo di sezione, come nelle slide Phoenix ---------- */

.hero { position: relative; padding: 34px 0 24px; }
.bar { display: block; width: 40px; height: 5px; background: var(--gold); }
.hero .bar { margin-bottom: 12px; }
.hero-line { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hero-title { margin: 0; font-size: 28px; font-weight: 650; letter-spacing: -0.012em; line-height: 1.15; color: var(--ink); }

/* Fenice in filigrana: fissa come uno sfondo, allineata a destra con «Nuova attività».
   Larga circa il 22% dello schermo, ma mai più alta dello spazio disponibile: non viene mai tagliata. */
.backdrop {
  position: fixed; z-index: 3; top: 96px; right: var(--gutter);
  width: min(21.7vw, calc((100vh - 120px) * 0.989)); height: auto;
  opacity: .06; mix-blend-mode: multiply;
  pointer-events: none; user-select: none;
}

/* ---------- Da presidiare ---------- */

.watch { background: var(--tile); padding: 18px 20px 14px; margin-bottom: 28px; }
.watch-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.watch-head h2 { margin: 0; font-size: 16px; font-weight: 650; }
.watch-head p { margin: 0; color: var(--ink-3); font-size: 13px; }
.watch-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px;
}
.watch-item {
  width: 100%; display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 9px 4px; border: 0; border-top: 1px solid #E2E2E4; background: transparent; text-align: left;
}
.watch-item:hover { background: rgba(255, 255, 255, .6); }
.watch-list li:nth-child(-n + 2) .watch-item { border-top: 0; }
.why { font-size: 13px; font-weight: 650; }
.why.is-stop, .why.is-late { color: var(--st-stop); }
.why.is-soon { color: var(--gold-ink); }
.w-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-perim { color: var(--ink-3); font-weight: 400; margin-left: 8px; font-size: 13px; }
.watch-none { margin: 0; color: var(--ink-2); }

/* ---------- Banners ---------- */

.banner {
  margin: 0 0 18px; padding: 12px 16px;
  border-left: 3px solid var(--gold); background: var(--gold-tint); color: var(--ink);
}
.banner.is-error { border-left-color: var(--st-stop); background: #FCF0EE; }
.banner p { margin: 0; }
.banner p + p { margin-top: 4px; }
.banner code { font-family: inherit; font-weight: 600; word-break: break-all; }

/* ---------- Controls ---------- */

.controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px;
  padding: 0 0 16px;
}
.control { display: flex; align-items: center; gap: 10px; }
.control-label { color: var(--ink-3); font-size: 13px; }

.seg { display: inline-flex; gap: 2px; }
.seg button {
  border: 0; background: transparent; padding: 6px 10px; border-radius: var(--radius);
  color: var(--ink-2); font-weight: 550;
}
.seg button:hover { background: var(--tile); color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--char); color: #fff; }

.people { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  height: 28px; padding: 0 11px; border-radius: 14px;
  border: 1px solid var(--rule); background: var(--paper); color: var(--ink-2); font-weight: 550;
}
.chip:hover { border-color: #C6C6CB; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--char); border-color: var(--char); color: #fff; }

.search {
  height: 32px; width: 200px; padding: 0 12px;
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper);
}
.search::placeholder { color: var(--ink-3); }

.toggle { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); cursor: pointer; }
.toggle input { width: 16px; height: 16px; accent-color: var(--char); margin: 0; }
.toggle.small { gap: 6px; font-size: 13px; }
.toggle.small input { width: 14px; height: 14px; }

.controls .spacer { flex: 1; }

/* ---------- Register ---------- */

.cols, .row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1.25fr) minmax(0, 1.45fr) 104px 96px;
  column-gap: 24px;
  align-items: start;
}
.cols {
  position: sticky; top: 0; z-index: 2;
  padding: 9px 12px; background: var(--char);
  color: #fff; font-size: 12.5px; font-weight: 600;
}

/* Gruppi richiudibili: all'apertura della pagina sono tutti chiusi. */
.group-head {
  display: block; width: 100%; padding: 14px 12px 12px;
  border: 0; border-bottom: 1px solid var(--rule); border-radius: 0;
  background: transparent; text-align: left; color: inherit;
}
.group-head:hover { background: var(--hover); }
.group-head:focus-visible { outline-offset: -2px; }
.group-head .bar { width: 28px; height: 4px; margin: 0 0 8px 26px; }
.group-head .line { display: flex; align-items: center; gap: 10px; min-width: 0; }
.chev {
  width: 8px; height: 8px; min-width: 8px; margin: 0 6px 0 2px;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: rotate(-45deg); transition: transform .15s ease-out;
}
.group.is-open .chev { transform: rotate(45deg) translate(-2px, -2px); }
.g-name { font-size: 19px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.25; }
.group-head .count { color: var(--ink-3); font-weight: 550; }
.sigs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 14px; margin-left: auto; font-size: 13px; font-weight: 650; }
.sig.is-stop, .sig.is-late { color: var(--st-stop); }
.sig.is-soon { color: var(--gold-ink); }
.group.is-open .group-head { border-bottom-color: var(--char); }
.group.is-open .rows { margin-bottom: 26px; }
@media (prefers-reduced-motion: reduce) { .chev { transition: none; } }

.row {
  padding: 13px 12px; border-bottom: 1px solid var(--rule-soft);
  cursor: pointer; outline-offset: -2px; background: var(--paper);
}
.row:hover { background: var(--hover); }
.row.is-open { background: var(--gold-tint); }
.row.is-closed .title, .row.is-closed .next { color: var(--ink-3); }

.status { display: inline-flex; align-items: center; gap: 8px; padding-top: 2px; font-size: 13.5px; }
.dot { width: 8px; height: 8px; min-width: 8px; border-radius: 50%; background: var(--st-todo); }
/* I colori seguono il ruolo dello stato (data/config.json → stati → ruolo), non il suo nome. */
.dot[data-r="in-corso"] { background: var(--st-ok); }
.dot[data-r="bloccato"] { background: var(--st-stop); }
.dot[data-r="chiuso"] { background: var(--st-done); }
.status[data-r="bloccato"] { color: var(--st-stop); font-weight: 650; }
.status[data-r="chiuso"] { color: var(--ink-3); }

.title { font-size: 15px; font-weight: 600; line-height: 1.3; }
.meta { margin-top: 4px; color: var(--ink-3); font-size: 13px; line-height: 1.35; }
.meta .perim { color: var(--ink-2); font-weight: 550; margin-right: 10px; }
.meta .when { margin-right: 6px; }

.next { color: var(--ink-2); font-size: 13.5px; line-height: 1.45; }
.next .ln { display: block; }
.next .ln.is-item { padding-left: 12px; text-indent: -12px; }
.next .ln.is-item::before { content: "–"; display: inline-block; width: 12px; text-indent: 0; color: var(--ink-3); }
.next .none { color: var(--ink-3); }

.owners { display: flex; flex-wrap: wrap; gap: 4px; }
.initials {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: #ECECEE; color: var(--ink);
  font-size: 10.5px; font-weight: 650; letter-spacing: .02em;
}
.owners .none { color: var(--ink-3); font-size: 13px; }

.due { font-size: 13.5px; color: var(--ink-2); padding-top: 2px; }
.due.is-soon { color: var(--gold-ink); font-weight: 650; }
.due.is-late { color: var(--st-stop); font-weight: 650; }
.due .none { color: var(--ink-3); }
.ric { display: block; margin-top: 3px; color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.field-cycle .btn { margin-top: 0; }
.field-cycle .field-hint { margin-top: 6px; }

.empty { padding: 48px 12px; color: var(--ink-2); border-bottom: 1px solid var(--rule-soft); }
.empty p { margin: 0 0 12px; font-size: 15px; }

/* ---------- Footer: firma Phoenix ---------- */

.foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 18px;
  color: var(--ink-3); font-size: 13px;
}
.motto { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 11.5px; letter-spacing: .24em; }
.motto-line { width: 120px; height: 4px; background: var(--gold); }
.motto strong { color: var(--ink); font-weight: 700; }
.motto .sep { color: var(--ink-3); letter-spacing: 0; }
.foot-data { display: flex; align-items: center; gap: 10px; }
/* firma: motto Phoenix e logo A4mobility in grigio, come una carta intestata */
.foot-brand { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.foot-brand .foot-sep { width: 1px; height: 20px; background: var(--rule); }
.foot-brand img { height: 20px; width: auto; filter: grayscale(1); opacity: .55; }

/* ---------- Gate screens ---------- */

.gate-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.gate { max-width: 580px; margin: 10vh auto 0; padding: 0 24px; }
.gate .bar { margin-bottom: 16px; }
.gate h1 { margin: 0 0 12px; font-size: 30px; font-weight: 600; font-stretch: 90%; letter-spacing: -0.012em; line-height: 1.15; }
.gate p { margin: 0 0 14px; color: var(--ink-2); font-size: 15px; max-width: 34em; }
.gate .actions { display: flex; gap: 10px; margin-top: 22px; }
.gate .error { color: var(--st-stop); }
.gate ol { margin: 0 0 14px; padding-left: 20px; color: var(--ink-2); font-size: 15px; }
.gate li { margin-bottom: 6px; }

.who-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.who-list button {
  display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px;
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper);
  font-weight: 600; text-align: left;
}
.who-list button:hover { border-color: #C6C6CB; background: var(--hover); }
.who-list button[aria-pressed="true"] { border-color: var(--char); box-shadow: inset 0 -3px 0 var(--gold); }

/* ---------- Drawer ---------- */

.scrim { position: fixed; inset: 0; background: rgba(43, 43, 45, .2); z-index: 20; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 21;
  width: min(560px, 100vw); background: var(--paper);
  border-left: 1px solid var(--rule);
  display: flex; flex-direction: column;
  animation: slide-in .18s ease-out;
}
.drawer.no-anim { animation: none; }
@keyframes slide-in { from { transform: translateX(24px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .drawer { animation: none; } }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px 0 28px; height: 52px; background: var(--char); color: #fff;
}
.drawer-head .kind { font-size: 13.5px; color: rgba(255, 255, 255, .85); font-weight: 550; }
.icon-btn {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 0; border-radius: var(--radius); background: transparent; color: inherit; font-size: 22px; line-height: 1;
}
.drawer-head .icon-btn:hover { background: rgba(255, 255, 255, .12); }

.drawer-body { flex: 1; overflow-y: auto; padding: 18px 28px 28px; }
.drawer-body > .bar { margin-bottom: 8px; }

.title-input {
  width: 100%; border: 0; border-bottom: 1px solid transparent; padding: 4px 0 8px; margin-bottom: 14px;
  font-size: 23px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; background: transparent;
}
.title-input:hover { border-bottom-color: var(--rule); }
.title-input:focus { outline: none; border-bottom-color: var(--gold); }
.title-input::placeholder { color: var(--ink-3); }

.field { margin-bottom: 18px; }
.field > label, .field > .label { display: block; margin-bottom: 6px; color: var(--ink-3); font-size: 13px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-hint { margin: 6px 0 0; color: var(--ink-3); font-size: 12.5px; }

.input, .select, .textarea {
  width: 100%; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper);
  padding: 7px 10px;
}
.input:hover, .select:hover, .textarea:hover { border-color: #CBCBD0; }
.textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.date-wrap { display: flex; gap: 6px; }
.date-wrap > .input { flex: 1; }
.date-field { position: relative; flex: 1; min-width: 0; }
.date-field .input { padding-right: 38px; }
/* L'icona nativa è nascosta: al suo posto un pulsante che apre e chiude il calendario. */
.date-field input[type="date"]::-webkit-calendar-picker-indicator { display: none; }
.cal-btn {
  position: absolute; top: 50%; right: 3px; transform: translateY(-50%);
  width: 30px; height: 28px; display: grid; place-items: center;
  border: 0; border-radius: var(--radius); background: transparent; color: var(--ink-2);
}
.cal-btn:hover { background: var(--tile); color: var(--ink); }

.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.label-row label { color: var(--ink-3); font-size: 13px; }
.link-btn {
  border: 0; padding: 0; background: transparent;
  color: var(--gold-ink); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.link-btn:hover { text-decoration: underline; }
.link-btn[disabled] { color: var(--ink-3); opacity: .55; cursor: default; text-decoration: none; }

.status-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.status-pick button {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px;
  border: 1px solid var(--rule); border-radius: 16px; background: var(--paper); font-weight: 550; color: var(--ink-2);
}
.status-pick button:hover { border-color: #C6C6CB; color: var(--ink); }
.status-pick button[aria-pressed="true"] { border-color: var(--char); color: var(--ink); background: var(--tile); }

.owner-pick { display: flex; flex-wrap: wrap; gap: 6px; }

.drawer-actions { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; }
.drawer-actions .spacer { flex: 1; }
.confirm { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin: 4px 0 12px; background: #FCF0EE; border-radius: var(--radius); }
.confirm p { margin: 0; flex: 1; }
.notice { padding: 10px 12px; margin: 0 0 14px; background: var(--gold-tint); border-left: 3px solid var(--gold); color: var(--ink); }
.last-edit { color: var(--ink-3); font-size: 12.5px; }

.log { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--rule); }
.log-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.log h3 { margin: 0; font-size: 15px; font-weight: 650; }
.log-add { display: grid; gap: 8px; margin-bottom: 18px; }
.log-add .textarea { min-height: 64px; }
.log-add .btn { justify-self: start; }
.log-list { list-style: none; margin: 0; padding: 0; }
/* Una riga per voce: data, sigla, testo. Le modifiche registrate in automatico sono più discrete. */
.log-list li {
  display: grid; grid-template-columns: 52px 30px minmax(0, 1fr); column-gap: 8px; align-items: baseline;
  padding: 7px 0; border-top: 1px solid var(--rule-soft);
}
.log-list .when { color: var(--ink-3); font-size: 13px; }
.log-list .who { color: var(--ink-2); font-weight: 650; font-size: 12px; letter-spacing: .03em; }
.log-list .txt { white-space: pre-line; overflow-wrap: anywhere; }
.log-list .is-auto .txt { color: var(--ink-3); font-size: 13px; }
.log-empty { color: var(--ink-3); }

/* ---------- Modal ---------- */

.modal {
  position: fixed; z-index: 31; left: 50%; top: 18vh; transform: translateX(-50%);
  width: min(460px, calc(100vw - 32px)); background: var(--paper);
  border-top: 5px solid var(--char); padding: 22px 24px 20px;
}
.modal h2 { margin: 0 0 8px; font-size: 19px; font-weight: 650; }
.modal p { margin: 0 0 10px; color: var(--ink-2); }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.modal-scrim { position: fixed; inset: 0; z-index: 30; background: rgba(43, 43, 45, .25); }

/* ---------- Toast ---------- */

#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); z-index: 40;
  padding: 10px 16px; border-radius: var(--radius); background: var(--char); color: #fff;
  border-bottom: 3px solid var(--gold);
  font-weight: 550; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s;
}
#toast.is-on { opacity: 1; transform: translate(-50%, 0); }
#toast.is-error { background: var(--st-stop); border-bottom-color: #8E2A1F; }
@media (prefers-reduced-motion: reduce) { #toast { transition: none; } }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .watch-list { grid-template-columns: 1fr; }
  .watch-list li:nth-child(2) .watch-item { border-top: 1px solid #E2E2E4; }
}

/* schermi medi: la testata resta su una riga */
@media (max-width: 1180px) and (min-width: 901px) {
  .band { min-width: 0; padding-right: 72px; }
  .partner img { height: 26px; }
  .top-actions .sync-lbl { display: none; }
}

@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .masthead { flex-wrap: wrap; padding-right: 0; border-bottom: 0; }
  .band { min-width: 0; width: 100%; padding: 12px 16px; clip-path: none; }
  .band-title { flex-direction: column; gap: 0; }
  .partner { width: 100%; padding: 12px 16px 0; }
  .partner img { height: 24px; }
  .top-actions { width: 100%; padding: 8px 16px; flex-wrap: wrap; border-bottom: 2px solid var(--a4m); }
  .top-actions .sync { padding: 0; margin-right: auto; }
  .backdrop { top: auto; bottom: 16px; right: 12px; width: min(43.4vw, calc((100vh - 120px) * 0.989)); opacity: .05; }
  .cols { display: none; }
  .row {
    grid-template-columns: 1fr auto;
    grid-template-areas: "title due" "status owners" "next next";
    row-gap: 8px;
  }
  .row > .c-status { grid-area: status; }
  .row > .c-title { grid-area: title; }
  .row > .c-next { grid-area: next; }
  .row > .c-owners { grid-area: owners; justify-self: end; }
  .row > .c-due { grid-area: due; text-align: right; }
  .watch-item { grid-template-columns: 1fr auto; }
  .watch-item .why { grid-column: 1 / -1; }
  .group-head .line { flex-wrap: wrap; }
  .sigs { margin-left: 0; width: 100%; justify-content: flex-start; padding-left: 26px; }
  .controls { gap: 12px 16px; }
  .search, .control-search { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .drawer-body { padding: 16px 18px 24px; }
  .drawer-head { padding-left: 18px; }
  .who-list { grid-template-columns: 1fr; }
  .motto-line { width: 48px; }
  .foot-brand .foot-sep { display: none; }
}

@media print {
  .controls, .top-actions, #drawer-root, #modal-root, #toast, .backdrop { display: none !important; }
  .cols { position: static; }
  .band, .cols, .bar, .motto-line, .masthead { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
