/* ==========================================================================
   DogNect — sistema di design "BLOCCHI"
   Onyx #111111 · Bordeaux #7B0D2E · Bianco #FFFFFF

   Regole della direzione:
   - nessuna carta, nessuna ombra, nessun angolo arrotondato
   - lastre piene da bordo a bordo: la riga intera e il bersaglio
   - il dato importante e enorme (posti, ora, nome)
   - testate onyx con titoli da 46px
   - corpo 17px, minimo 15px (uso all'aperto, utenti over 60)
   ========================================================================== */

:root {
  color-scheme: light;

  --onyx: #111111;
  --onyx-2: #1E1E1E;
  --bordeaux: #7b0d2e;
  --bordeaux-hi: #94103a;
  --bordeaux-lo: #5c0a22;

  --paper: #ffffff;
  --strip: #edebec;
  --strip-2: #f6f4f5;
  --line: #e2dfe1;
  --line-hard: #111111;

  --ink: #111111;
  --ink-2: #5a5457;   /* 7.6:1 su bianco */
  --ink-3: #6b6569;   /* 5.5:1 su bianco */
  /* Testo sulle fasce scure (testate, barra di navigazione): cambia con il tema. */
  --on-dark: #ffffff;
  --on-dark-2: rgba(255, 255, 255, 0.62);
  --on-dark-soft: rgba(255, 255, 255, 0.2);
  --on-dark-line: rgba(255, 255, 255, 0.16);
  /* Testo sul colore scelto dall'educatore: dipende da quel colore, non dal
     tema. Lo ricalcola applyBrandColor() secondo il contrasto reale. */
  --on-brand: #ffffff;

  --ok: #0d6b45;      --ok-bg: #e7f4ee;
  --warn: #7a4a00;    --warn-bg: #fbf0dd;
  --danger: #a52017;  --danger-bg: #fbeae8;
  --info: #1b5490;    --info-bg: #e9f0f8;

  --fs-nav: 13px;
  --fs-xs: 15px;
  --fs-sm: 16px;
  --fs-base: 17px;
  --fs-md: 19px;
  --fs-lg: 22px;
  --fs-xl: 30px;
  --fs-2xl: 46px;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 26px;
  --sp-7: 34px;

  --touch: 52px;
  --touch-min: 46px;
  --pad: 20px;

  --z-sticky: 100;
  --z-nav: 200;
  --z-backdrop: 300;
  --z-sheet: 310;
  --z-toast: 400;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 180ms;

  /* Angoli: morbidi ma non gonfi, le proporzioni restano quelle di un attrezzo */
  --r-xs: 5px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Fasce dentro le schermate: intestazione della sezione, schede, date,
     piedi delle schermate sovrapposte. Nel tema scuro sono carbone, piu
     leggere del nero della cornice; nel tema chiaro diventano chiare. */
  --band: #262325;
  --band-2: #332f31;
  --band-3: #433e40;
  --band-line: rgba(255, 255, 255, 0.12);
  --on-band: #ffffff;
  --on-band-2: rgba(255, 255, 255, 0.7);
  --band-danger: #ff9a90;
  --band-link: #ffffff;

  --bell-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8.5a6 6 0 1 0-12 0c0 6.5-2.5 8.5-2.5 8.5h17S18 15 18 8.5'/%3E%3Cpath d='M13.7 20.5a2 2 0 0 1-3.4 0'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Tema chiaro
   Le fasce che erano nere diventano un grigio molto chiaro e il testo che ci
   sta sopra diventa scuro. Cambiano solo queste: fondo, colore del brand,
   grigi delle liste e testi del corpo restano gli stessi per tutti.
   Il colore del brand NON passa di qui: il testo che ci sta sopra lo decide
   il contrasto con quel colore (--on-brand), non il tema.
   ========================================================================== */

:root[data-theme="light"] {
  --onyx: #e4e1e2;
  --onyx-2: #d5d1d3;      /* al passaggio del dito si scurisce, non si schiarisce */
  --on-dark: #111111;
  --on-dark-2: #5a5457;   /* 5.4:1 sul grigio della fascia */
  --on-dark-soft: rgba(17, 17, 17, 0.10);
  --on-dark-line: rgba(17, 17, 17, 0.15);
  /* Le fasce restano fasce: schiarite, non cancellate. Con il bianco
     sparivano dentro la pagina e il tema chiaro sembrava rotto. */
  --band: #eeecec;
  --band-2: #e4e1e2;
  --band-3: #d8d4d6;
  --band-line: #cfcacd;
  --on-band: #111111;
  --on-band-2: #5a5457;
  --band-danger: #a52017;
  --band-link: var(--bordeaux);
}

/* Il quadrato bianco del marchio sparirebbe su una fascia chiara. */
:root[data-theme="light"] .brand-mark { box-shadow: inset 0 0 0 1px var(--line); }

/* ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  font-family: Archivo, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-base);
  font-weight: 500;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 var(--sp-3);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}

h1 { font-size: var(--fs-2xl); letter-spacing: -0.045em; }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

p { margin: 0 0 var(--sp-3); text-wrap: pretty; }
a { color: var(--bordeaux); font-weight: 700; text-underline-offset: 3px; }
b, strong { font-weight: 800; }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-5) 0; }

.muted { color: var(--ink-2); font-size: var(--fs-sm); font-weight: 600; }
.hidden { display: none !important; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--bordeaux);
  outline-offset: -3px;
}

/* ==========================================================================
   Guscio applicazione
   ========================================================================== */

.topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: calc(env(safe-area-inset-top) + var(--sp-3)) var(--pad) var(--sp-3);
  background: var(--onyx);
  color: var(--on-dark);
}

.brand { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }

.brand-mark {
  width: 34px; height: 34px;
  flex: 0 0 auto;
  background: #fff;
  padding: 3px;
}

.brand-word {
  font-size: var(--fs-sm);
  font-weight: 900;
  letter-spacing: 0.24em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.env { font-size: var(--fs-nav); font-weight: 700; color: var(--on-dark-2); }

.layout {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 0 calc(78px + env(safe-area-inset-bottom));
}

/* Intestazione di schermata: lastra onyx con il titolo enorme */
/* Testata compatta: il titolo non deve mangiare mezza schermata */
#appCard > .row.between {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  background: var(--onyx);
  color: var(--on-dark);
  padding: var(--sp-3) var(--pad) 2px;
  margin: 0;
}

#appCard > .row.between h2 {
  margin: 0;
  font-size: var(--fs-xl);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

#appCard > #whoami {
  margin: 0;
  background: var(--onyx);
  color: var(--on-dark-2);
  padding: 0 var(--pad) var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.panel { padding: 0; border: 0; }

/* La scheda non e piu una carta: e solo un contenitore di sezione */
.card {
  background: var(--paper);
  border: 0;
  border-radius: 0;
  padding: var(--sp-4) var(--pad) var(--sp-5);
  margin: 0;
}

.card > h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-4);
}

.card + .card { border-top: 1px solid var(--line); }

.row { display: flex; align-items: center; gap: var(--sp-3); }
.row.between { justify-content: space-between; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-3);
}

.screen { display: block; }

/* Titolo di sezione dentro una schermata */
.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--pad) var(--sp-2);
}

.sec-head h3 { margin: 0; font-size: var(--fs-lg); }

/* ==========================================================================
   Bottoni — squadrati, pieni, alti
   ========================================================================== */

button, .btn, .btn-link {
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 800;
  min-height: var(--touch);
  padding: var(--sp-3) var(--sp-5);
  border: 0;
  border-radius: var(--r-md);
  background: var(--bordeaux);
  color: var(--on-brand);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: background var(--dur) var(--ease);
}

button:hover, .btn:hover, .btn-link:hover { background: var(--bordeaux-hi); }
button:active, .btn:active { background: var(--bordeaux-lo); }

button:disabled, button[aria-disabled="true"] {
  background: var(--strip);
  color: var(--ink-3);
  cursor: not-allowed;
}

button.primary-wide, .btn-link.primary-wide {
  width: 100%;
  min-height: 62px;
  font-size: var(--fs-md);
  font-weight: 900;
  letter-spacing: 0.01em;
}

button.secondary {
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--onyx);
}

button.secondary:hover { background: var(--strip); }

button.ghost {
  background: transparent;
  color: var(--bordeaux);
  min-height: var(--touch-min);
  padding: var(--sp-2) 0;
  font-weight: 800;
}

button.ghost:hover { background: transparent; color: var(--bordeaux-lo); }

button.danger {
  background: var(--paper);
  color: var(--danger);
  box-shadow: inset 0 0 0 2px var(--danger);
}

button.danger:hover { background: var(--danger-bg); }

/* ==========================================================================
   Moduli
   ========================================================================== */

label {
  display: block;
  margin: var(--sp-5) 0 var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

input, select, textarea {
  font: inherit;
  font-size: var(--fs-base);
  font-weight: 700;
  width: 100%;
  min-height: var(--touch);
  padding: var(--sp-3) var(--sp-4);
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 2px var(--line);
  transition: box-shadow var(--dur) var(--ease);
}

textarea { min-height: 120px; font-weight: 500; line-height: 1.4; resize: vertical; }

input:hover, select:hover, textarea:hover { box-shadow: inset 0 0 0 2px var(--ink-3); }
input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 3px var(--bordeaux);
}

input::placeholder, textarea::placeholder { color: var(--ink-3); font-weight: 500; }

input:disabled, select:disabled, textarea:disabled {
  background: var(--strip);
  color: var(--ink-3);
}

input[type="checkbox"], input[type="radio"] {
  width: 26px; height: 26px;
  min-height: 0; padding: 0;
  box-shadow: none;
  accent-color: var(--bordeaux);
  flex: 0 0 auto;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  padding-right: 48px;
}

form { padding: 0; }
form button[type="submit"] {
  margin-top: var(--sp-5);
  width: 100%;
  min-height: 62px;
  font-size: var(--fs-md);
  font-weight: 900;
}

/* Tipi di attivita: pastiglie da toccare, gestite dall'educatore */
.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin: var(--sp-5) 0 var(--sp-2);
}

.type-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

button.type-chip {
  min-height: var(--touch-min);
  padding: var(--sp-2) var(--sp-4);
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line);
  font-size: var(--fs-sm);
  font-weight: 700;
}

button.type-chip:hover { background: var(--strip-2); }
button.type-chip.active { background: var(--bordeaux); color: var(--on-brand); box-shadow: none; font-weight: 800; }

/* Occorrenze: ogni riga e una data con il suo orario, e diventa un'attivita.
   Sono blocchi distinti e numerati, perche si capisca a colpo d'occhio che si
   possono aggiungere. */
.occ-list { border-top: 1px solid var(--line); }

/* Riga cliente nell'elenco associazioni */
.assoc-chevron {
  flex: 0 0 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  color: var(--ink-3);
}

.assoc-actions {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  padding: var(--sp-3) var(--pad);
  border-bottom: 1px solid var(--line);
  background: var(--strip-2);
}

.assoc-actions button { flex: 1 1 140px; min-height: var(--touch-min); font-size: var(--fs-xs); }

.occ-row {
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-3) var(--sp-4);
  background: var(--strip-2);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.occ-row::before {
  content: attr(data-n);
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  font-size: 13px;
  font-weight: 900;
  color: var(--ink-3);
  letter-spacing: 0.1em;
}

.occ-row input[type="date"] { background: var(--paper); }

.occ-times {
  display: grid;
  grid-template-columns: 1fr auto 1fr 52px;
  align-items: center;
  gap: var(--sp-2);
}

.occ-times input[type="time"] { background: var(--paper); text-align: center; }

.occ-sep { font-size: var(--fs-md); font-weight: 900; color: var(--ink-2); text-align: center; }

button.occ-del {
  min-height: 52px;
  padding: 0;
  background: var(--paper);
  color: var(--danger);
  box-shadow: inset 0 0 0 2px var(--line);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

button.occ-del:hover { background: var(--danger-bg); box-shadow: inset 0 0 0 2px var(--danger); }
.occ-del-spacer { display: block; }

@media (max-width: 360px) {
  .occ-times { grid-template-columns: 1fr auto 1fr; }
  .occ-times button.occ-del, .occ-del-spacer { grid-column: 1 / -1; }
}

.type-row { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-2); align-items: stretch; }

input[type="color"] {
  width: 62px;
  min-width: 62px;
  padding: 4px;
  box-shadow: inset 0 0 0 2px var(--line);
  cursor: pointer;
}

.color-row { display: flex; gap: var(--sp-3); align-items: center; }
.color-row .muted { flex: 1 1 auto; }

.roster li { flex-wrap: wrap; }
.roster-actions { display: flex; gap: var(--sp-2); width: 100%; margin-top: var(--sp-2); }
.roster-actions button { flex: 1 1 0; min-height: var(--touch-min); font-size: var(--fs-xs); }
.type-row input { flex: 1 1 auto; }
.type-row button { flex: 0 0 auto; min-height: var(--touch); }

.form-stack { display: block; }
.form-stack > label:first-child { margin-top: 0; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.field-row label { margin-top: var(--sp-5); }

/* ==========================================================================
   Navigazione: lastra onyx piena, voce attiva = blocco bordeaux
   ========================================================================== */

#appCard > .tabs {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-nav);
  display: flex;
  gap: 0;
  padding: 0 0 env(safe-area-inset-bottom);
  background: var(--onyx);
}

#appCard > .tabs > button.tab {
  flex: 1 1 0;
  min-width: 0;
  min-height: 64px;
  padding: var(--sp-3) 2px;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border-radius: 0;
  color: var(--on-dark-2);
  font-size: var(--fs-nav);
  font-weight: 700;
  position: relative;
}

#appCard > .tabs > button.tab:hover { background: var(--onyx-2); color: var(--on-dark); }
#appCard > .tabs > button.tab:active { background: var(--onyx-2); }

#appCard > .tabs > button.tab .tab-icon { width: 25px; height: 25px; display: block; flex: 0 0 auto; }
#appCard > .tabs > button.tab .tab-icon svg {
  width: 100%; height: 100%; display: block;
  stroke: currentColor; fill: none;
  stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round;
}

#appCard > .tabs > button.tab .tab-label {
  line-height: 1.1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#appCard > .tabs > button.tab.active {
  background: var(--bordeaux);
  color: var(--on-brand);
  font-weight: 800;
}

#appCard > .tabs > button.tab.active:hover { background: var(--bordeaux); }
#appCard > .tabs > button.tab.active .tab-icon svg { stroke-width: 2.4; }

.tab-badge {
  position: absolute;
  top: 8px;
  left: 50%;
  margin-left: 7px;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  background: var(--bordeaux);
  color: var(--on-brand);
  font-size: 12px;
  font-weight: 800;
  line-height: 21px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--onyx);
}

#appCard > .tabs > button.tab.active .tab-badge { background: var(--on-brand); color: var(--bordeaux); box-shadow: 0 0 0 2px var(--bordeaux); }

/* Sotto-schede dentro una sezione (Diario, Lezioni, Compiti...):
   controllo in linea, MAI fissato in fondo. Prima ereditavano la barra di
   navigazione e le finivano sopra, coprendola. */
/* Sotto-schede: due blocchi affiancati, quello attivo pieno di bordeaux.
   Prima erano due scritte quasi identiche e non si capiva fossero schede. */
.panel .tabs {
  display: flex;
  gap: 1px;
  padding: 0;
  margin-bottom: var(--sp-4);
  background: var(--line);
  border-bottom: 1px solid var(--line);
  overflow: visible;
}

.panel .tabs > button.tab {
  flex: 1 1 0;
  min-width: 0;
  min-height: 56px;
  padding: var(--sp-2) var(--sp-3);
  background: var(--strip);
  color: var(--ink-2);
  border-radius: 0;
  font-size: var(--fs-sm);
  font-weight: 800;
  flex-direction: row;
  gap: var(--sp-2);
  letter-spacing: -0.01em;
}

.panel .tabs > button.tab:hover { background: var(--line); color: var(--ink); }

.panel .tabs > button.tab.active {
  background: var(--bordeaux);
  color: var(--on-brand);
  font-weight: 900;
}

.panel .tabs > button.tab.active:hover { background: var(--bordeaux); }
.panel .tabs > button.tab .tab-icon { display: none; }

/* ==========================================================================
   Segmenti: testo sottolineato su fondo scuro, non pillole
   ========================================================================== */

.seg {
  display: flex;
  gap: var(--sp-4);
  padding: 0 var(--pad);
  background: var(--onyx);
  overflow-x: auto;
  scrollbar-width: none;
}

.seg::-webkit-scrollbar { display: none; }

button.seg-btn {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  padding: 0 0 var(--sp-3);
  background: transparent;
  color: var(--on-dark-2);
  border-radius: 0;
  font-size: var(--fs-base);
  font-weight: 700;
  gap: var(--sp-2);
  box-shadow: inset 0 -4px 0 transparent;
}

button.seg-btn:hover { background: transparent; color: var(--on-dark); }

button.seg-btn.active {
  color: var(--on-dark);
  font-weight: 800;
  box-shadow: inset 0 -4px 0 var(--bordeaux);
}

.seg-count {
  flex: 0 0 auto;
  min-width: 22px;
  padding: 1px 6px;
  background: var(--on-dark-soft);
  color: var(--on-dark);
  font-size: 13px;
  font-weight: 800;
}

button.seg-btn.active .seg-count { background: var(--bordeaux); color: var(--on-brand); }

/* ==========================================================================
   Intestazione di giornata: fascia grigia a tutta larghezza
   ========================================================================== */

.day-head {
  padding: 7px var(--pad);
  background: var(--strip);
  font-size: var(--fs-xs);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ==========================================================================
   Riga attivita: lastra piena, fascia posti a tutta altezza
   ========================================================================== */

button.act-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  min-height: 86px;
  padding: 0;
  margin: 0;
  background: var(--paper);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  text-align: left;
  font-weight: 500;
}

button.act-row:hover { background: var(--strip-2); }
button.act-row:active { background: var(--strip); }

.act-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--sp-3) var(--pad);
}

/* Etichetta del tipo: pastiglia piena del colore scelto dall'educatore */
.act-type {
  align-self: flex-start;
  display: inline-block;
  padding: 3px 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-brand);
  background: var(--bordeaux);
}

.act-title {
  font-size: var(--fs-lg);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.act-meta { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.act-main .chip { align-self: flex-start; }

/* Fascia posti: alta quanto la riga, e il dato piu leggibile della schermata */
.seats {
  flex: 0 0 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: var(--bordeaux);
  color: var(--on-brand);
  border-radius: 0;
  padding: var(--sp-2);
}

.seats b { font-size: 34px; font-weight: 900; line-height: 1; letter-spacing: -0.04em; }
.seats span { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-brand); opacity: 0.88; }

.seats.is-full { background: var(--strip); color: var(--ink); }
.seats.is-full b { font-size: var(--fs-md); line-height: 1.1; text-align: center; }
.seats.is-full span { color: var(--ink-2); }

/* ==========================================================================
   Riga appuntamento: colonna oraria + corpo
   ========================================================================== */

.appt {
  display: flex;
  align-items: stretch;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.appt.is-urgent { background: var(--paper); }
.appt.is-urgent .appt-time { background: var(--bordeaux); color: var(--on-brand); }
.appt.is-urgent .appt-time span { color: var(--on-brand); opacity: 0.78; }

.appt-time {
  flex: 0 0 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: var(--sp-4) var(--sp-2);
  background: var(--strip);
}

.appt-time b { font-size: var(--fs-lg); font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.appt-time span { font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); }

.appt-body { flex: 1 1 auto; min-width: 0; padding: var(--sp-3) var(--pad); }

.appt-top {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: 3px;
}

.appt-who { margin: 0; font-size: var(--fs-md); font-weight: 900; letter-spacing: -0.025em; }
.appt-meta { margin: 0; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }

.appt-actions {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-top: var(--sp-4);
}

.appt-actions button {
  flex: 1 1 130px;
  min-height: var(--touch-min);
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-sm);
}

/* ==========================================================================
   Etichette di stato
   ========================================================================== */

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 4px 10px;
  border-radius: 0;
  background: var(--strip);
  color: var(--ink);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.chip.is-confirmed { background: var(--ok-bg); color: var(--ok); }
.chip.is-pending   { background: var(--warn-bg); color: var(--warn); }
.chip.is-cancelled { background: var(--danger-bg); color: var(--danger); }
.chip.is-done      { background: var(--info-bg); color: var(--info); }

.notice {
  margin-top: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--warn-bg);
  color: var(--warn);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.35;
}

/* ==========================================================================
   Elenchi generici
   ========================================================================== */

.list { margin: 0; padding: 0; list-style: none; }
.list li { padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list.compact li { padding: var(--sp-3) 0; font-size: var(--fs-sm); }

.list li .row button, .item .row button {
  flex: 1 1 130px;
  min-height: var(--touch-min);
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-sm);
}

.item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  width: 100%;
  min-height: 84px;
  padding: var(--sp-4) var(--pad);
  background: var(--paper);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  text-align: left;
  color: var(--ink);
  font-weight: 500;
}

button.item:hover { background: var(--strip-2); }
.item-main { flex: 1 1 auto; min-width: 0; }
.item-title { font-weight: 900; font-size: var(--fs-md); letter-spacing: -0.02em; }
.item-meta { color: var(--ink-2); font-size: var(--fs-sm); font-weight: 600; }

/* ==========================================================================
   Stati vuoti
   ========================================================================== */

.empty {
  padding: var(--sp-7) var(--pad);
  text-align: center;
  background: var(--strip-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.empty h4 { margin-bottom: var(--sp-2); font-size: var(--fs-lg); }
.empty p { color: var(--ink-2); margin-bottom: var(--sp-4); font-weight: 600; }
.empty button { width: 100%; }

.skeleton {
  height: 22px;
  margin: var(--sp-3) var(--pad);
  background: linear-gradient(90deg, var(--strip) 25%, var(--line) 37%, var(--strip) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s linear infinite;
}

.skeleton.tall { height: 84px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ==========================================================================
   "Da gestire" — dashboard educatore
   ========================================================================== */

.attention { padding: 0; background: transparent; border: 0; margin: 0 0 var(--sp-5); }
.attention h4 { padding: 0 var(--pad); font-size: var(--fs-lg); margin-bottom: var(--sp-3); }

.attention-grid { display: block; }

.attn-item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--pad);
  background: var(--paper);
  border: 0;
  border-bottom: 1px solid var(--line);
}

.attn-item b {
  flex: 0 0 auto;
  width: 62px; height: 62px;
  display: flex; align-items: center; justify-content: center;
  background: var(--strip);
  color: var(--ink);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.attn-item span { font-size: var(--fs-md); font-weight: 800; letter-spacing: -0.02em; }
.attn-item.attn-alert b { background: var(--bordeaux); color: var(--on-brand); }

/* ==========================================================================
   Agenda — filtro, barra strumenti, calendario
   ========================================================================== */

.agenda-filter { padding: var(--sp-4) var(--pad); background: var(--strip-2); border-bottom: 1px solid var(--line); }
.agenda-filter label { margin-top: 0; }

.agenda-cal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--pad);
}

.agenda-views { display: inline-flex; gap: 0; }

button.agenda-view-btn {
  min-height: var(--touch-min);
  padding: var(--sp-2) var(--sp-4);
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line);
  font-size: var(--fs-xs);
  font-weight: 800;
}

button.agenda-view-btn.active { background: var(--onyx); color: var(--on-dark); box-shadow: none; }

.agenda-nav { display: inline-flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }

button.agenda-nav-btn {
  min-height: var(--touch-min);
  min-width: var(--touch-min);
  padding: var(--sp-2) var(--sp-3);
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line);
  font-size: var(--fs-xs);
  font-weight: 800;
}

.agenda-range { font-size: var(--fs-sm); font-weight: 800; }

.agcal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); margin: 0 var(--pad); }

.agcal-daycol { background: var(--paper); padding: var(--sp-2); min-height: 104px; min-width: 0; }
.agcal-daycol.is-today { background: var(--strip); box-shadow: inset 0 3px 0 var(--bordeaux); }

.agcal-dayhead { display: flex; flex-direction: column; align-items: center; margin-bottom: var(--sp-2); }
.agcal-dayhead span { font-size: 12px; color: var(--ink-2); font-weight: 800; text-transform: uppercase; }
.agcal-dayhead b { font-size: var(--fs-sm); font-weight: 900; }

.agcal-dayevents { display: grid; gap: 2px; }

.agcal-chip {
  padding: 3px 5px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  background: var(--strip);
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agcal-chip.is-confirmed { background: var(--ok-bg); color: var(--ok); }
.agcal-chip.is-pending   { background: var(--warn-bg); color: var(--warn); }
.agcal-chip.is-cancelled { background: var(--danger-bg); color: var(--danger); }
.agcal-chip.is-done      { background: var(--info-bg); color: var(--info); }

.agcal-empty { color: var(--ink-3); font-size: 12px; }

.agcal-month { margin: 0 var(--pad); }
.agcal-mhead-row, .agcal-mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; }
.agcal-mgrid { background: var(--line); }
.agcal-mhead { text-align: center; font-size: 12px; font-weight: 800; color: var(--ink-2); padding: var(--sp-2) 0; text-transform: uppercase; }
.agcal-mcell { min-height: 72px; padding: 5px; background: var(--paper); min-width: 0; }
.agcal-mcell.is-today { background: var(--strip); box-shadow: inset 0 3px 0 var(--bordeaux); }
.agcal-mcell.is-out { background: var(--strip-2); opacity: 0.5; }
.agcal-mnum { font-size: var(--fs-xs); font-weight: 900; margin-bottom: 2px; }
.agcal-mevents { display: grid; gap: 2px; }
.agcal-more { font-size: 12px; color: var(--ink-2); font-weight: 700; }

/* ==========================================================================
   Schermata di dettaglio a piena pagina
   ========================================================================== */

.screen-over {
  position: fixed;
  inset: 0;
  z-index: var(--z-sheet);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  animation: over-in var(--dur) var(--ease);
}

@keyframes over-in { from { opacity: 0; } to { opacity: 1; } }

.over-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: calc(env(safe-area-inset-top) + var(--sp-2)) var(--pad) var(--sp-2);
  background: var(--bordeaux);
  color: var(--on-brand);
}

button.over-back {
  background: transparent;
  color: var(--on-brand);
  min-height: var(--touch);
  padding: var(--sp-2) 0;
  font-size: var(--fs-sm);
  font-weight: 800;
  gap: var(--sp-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

button.over-back:hover { background: transparent; }
button.over-back .tab-icon { width: 24px; height: 24px; }
button.over-back .tab-icon svg {
  width: 100%; height: 100%; display: block;
  stroke: currentColor; fill: none;
  stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
}

.over-title { display: none; }

.over-body { flex: 1 1 auto; overflow-y: auto; padding: 0 0 var(--sp-7); }

/* Testata bordeaux del dettaglio */
.over-body > .chip:first-child {
  display: block;
  background: var(--bordeaux);
  color: var(--on-brand);
  padding: 0 var(--pad);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.over-h {
  margin: 0;
  background: var(--bordeaux);
  color: var(--on-brand);
  padding: var(--sp-2) var(--pad) var(--sp-6);
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.over-sec { padding: var(--sp-5) var(--pad) var(--sp-2); font-size: var(--fs-lg); margin: 0; }
.over-desc { padding: var(--sp-4) var(--pad) 0; color: var(--ink-2); font-weight: 500; max-width: 68ch; }
.over-body > label { padding: 0 var(--pad); }
.over-body > select { width: calc(100% - var(--pad) * 2); margin: 0 var(--pad); }

/* Blocchi inizio / fine su fondo onyx */
.kv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--on-dark-line);
  margin: 0;
}

.kv {
  padding: var(--sp-4) var(--pad);
  background: var(--onyx);
  color: var(--on-dark);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kv span { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-2); }
.kv i { font-style: normal; font-size: 32px; font-weight: 900; letter-spacing: -0.035em; line-height: 1.1; }
.kv b { font-size: var(--fs-xs); font-weight: 600; color: var(--on-dark-2); }

.fact-list { display: block; background: var(--paper); }

.fact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--pad);
  border-bottom: 1px solid var(--line);
}

.fact span { font-size: var(--fs-sm); color: var(--ink-2); font-weight: 700; flex: 0 0 auto; }
.fact b { font-size: var(--fs-md); font-weight: 900; letter-spacing: -0.02em; text-align: right; }

/* Riga indirizzo: apre le mappe del dispositivo */
a.fact-map { text-decoration: none; color: var(--ink); min-height: 72px; align-items: center; }
a.fact-map:hover { background: var(--strip-2); }

a.fact-map b em {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 3px;
  font-style: normal;
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--bordeaux);
}

a.fact-map b em svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor;
  stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round;
}

.price {
  background: var(--strip);
  padding: var(--sp-5) var(--pad);
  color: var(--ink);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.roster { margin: 0; padding: 0; list-style: none; background: var(--paper); }

.roster li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--pad);
  border-bottom: 1px solid var(--line);
}

.roster li b { font-size: var(--fs-md); font-weight: 800; }
.roster li span { font-size: var(--fs-sm); color: var(--ink-2); font-weight: 600; }

/* Piede fisso: la lastra dell'azione */
.over-foot {
  flex: 0 0 auto;
  padding: 0 0 env(safe-area-inset-bottom);
  background: var(--onyx);
}

.over-foot button {
  width: 100%;
  min-height: 74px;
  background: var(--onyx);
  color: var(--on-dark);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.over-foot button:hover { background: var(--onyx-2); }
.over-foot button.danger { background: var(--onyx); color: #ff8b80; box-shadow: none; }
.over-foot .muted { padding: var(--sp-4) var(--pad); color: var(--on-dark-2); text-align: center; }

/* Nota esplicativa: chiara ovunque, scura solo nel piede scuro. */
.foot-note {
  margin: 0;
  padding: var(--sp-2) 0 var(--sp-3);
  background: transparent;
  color: var(--ink-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.4;
}

.foot-note.is-error { color: var(--danger); font-weight: 800; }

.over-foot .foot-note {
  padding: var(--sp-3) var(--pad) var(--sp-4);
  background: var(--onyx);
  color: var(--on-dark-2);
  text-align: center;
}

.over-foot .foot-note.is-error { color: #ff8b80; }

/* ==========================================================================
   Pannello "Altro"
   ========================================================================== */

.sheet-backdrop {
  position: fixed; inset: 0;
  z-index: var(--z-backdrop);
  background: rgba(17, 17, 17, 0.6);
  animation: fade var(--dur) var(--ease);
}

.sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-sheet);
  background: var(--paper);
  padding: 0 0 env(safe-area-inset-bottom);
  max-height: 84svh;
  overflow-y: auto;
  animation: sheet-up var(--dur) var(--ease);
}

.sheet-handle { display: none; }

.sheet h3 {
  margin: 0;
  padding: var(--sp-5) var(--pad) var(--sp-3);
  background: var(--onyx);
  color: var(--on-dark);
  font-size: var(--fs-xl);
  text-transform: uppercase;
}

.sheet-list { display: block; }

button.sheet-item {
  width: 100%;
  justify-content: flex-start;
  gap: var(--sp-4);
  min-height: 68px;
  padding: var(--sp-3) var(--pad);
  background: var(--paper);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  font-size: var(--fs-md);
  font-weight: 800;
  text-align: left;
}

button.sheet-item:hover { background: var(--strip-2); }
button.sheet-item .tab-icon { width: 26px; height: 26px; color: var(--bordeaux); flex: 0 0 auto; }
button.sheet-item .tab-icon svg {
  width: 100%; height: 100%; display: block;
  stroke: currentColor; fill: none;
  stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round;
}

button.sheet-item.active { background: var(--strip); color: var(--bordeaux); }

/* Piu azioni nel piede della schermata di dettaglio */
.foot-actions { display: flex; gap: 1px; background: var(--on-dark-line); }
.foot-actions button {
  flex: 1 1 0;
  min-height: 66px;
  font-size: var(--fs-sm);
  background: var(--onyx);
  color: var(--on-dark);
  box-shadow: none;
}
.foot-actions button:hover { background: var(--onyx-2); }
.foot-actions button.danger { color: #ff8b80; background: var(--onyx); box-shadow: none; }

.sheet-foot { display: flex; gap: 1px; background: var(--line); margin-top: var(--sp-4); }
.sheet-foot button { flex: 1 1 0; min-height: 62px; }

#logoutBtn { display: none; }

@keyframes sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================================
   Condivisione, questionario, fisarmonica
   ========================================================================== */

.sharing-list { display: block; }

.sharing-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin: 0;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  font-weight: 500;
  color: var(--ink);
  font-size: var(--fs-base);
  text-transform: none;
  letter-spacing: 0;
}

.sharing-row input { margin-top: 2px; }
.sharing-text b { display: block; font-size: var(--fs-md); font-weight: 800; }
.sharing-text small { display: block; color: var(--ink-2); font-size: var(--fs-xs); font-weight: 600; line-height: 1.35; }

.intake-question-card { padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); }
.intake-question-card p { margin: 0 0 var(--sp-3); font-weight: 800; font-size: var(--fs-md); }
.intake-multi-options { display: block; }

.intake-multi-option {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: 0 0 1px;
  padding: var(--sp-3) var(--sp-4);
  min-height: var(--touch);
  background: var(--strip-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}

.intake-multi-option:hover { background: var(--strip); }
.intake-multi-option:has(input:checked) { background: var(--bordeaux); color: var(--on-brand); font-weight: 800; }
.intake-option-text { display: block; line-height: 1.35; }
.intake-other-wrap, .intake-notes-wrap { margin-top: var(--sp-2); }

.profile-accordion { border: 0; border-bottom: 1px solid var(--line); margin: 0; background: var(--paper); }

.profile-accordion > summary {
  cursor: pointer;
  list-style: none;
  min-height: 62px;
  display: flex;
  align-items: center;
  padding: var(--sp-3) 0;
  font-weight: 900;
  font-size: var(--fs-md);
  letter-spacing: -0.02em;
}

.profile-accordion > summary::-webkit-details-marker { display: none; }
.profile-accordion > summary::after {
  content: "";
  margin-left: auto;
  width: 22px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--dur) var(--ease);
}

.profile-accordion[open] > summary::after { transform: rotate(180deg); }
.profile-accordion > :not(summary) { padding: 0 0 var(--sp-4); }

/* ==========================================================================
   Guida installazione PWA
   ========================================================================== */

.pwa-modal-wrap { position: fixed; inset: 0; z-index: var(--z-sheet); }
.pwa-modal-backdrop { position: absolute; inset: 0; background: rgba(17, 17, 17, 0.62); }

.pwa-modal {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: var(--paper);
  padding: var(--sp-5) var(--pad) calc(var(--sp-5) + env(safe-area-inset-bottom));
}

.pwa-modal h3 { margin-bottom: var(--sp-2); font-size: var(--fs-xl); }
.pwa-modal .muted { margin: 0; }
.pwa-steps { margin: var(--sp-3) 0 0; padding-left: var(--sp-5); }
.pwa-steps li { margin: var(--sp-2) 0; color: var(--ink-2); font-weight: 600; }
.pwa-modal-actions { display: flex; flex-wrap: wrap; gap: 1px; margin-top: var(--sp-4); background: var(--line); }
.pwa-modal-actions button { flex: 1 1 120px; margin-top: 0; }

.pwa-reopen-btn {
  position: fixed;
  right: 0;
  bottom: calc(80px + env(safe-area-inset-bottom));
  z-index: var(--z-sticky);
  min-height: var(--touch-min);
  padding: var(--sp-2) var(--sp-4);
  background: var(--onyx);
  font-size: var(--fs-xs);
}

/* ==========================================================================
   Messaggio di esito
   ========================================================================== */

.toast {
  position: fixed;
  left: var(--sp-3); right: var(--sp-3);
  bottom: calc(72px + env(safe-area-inset-bottom));
  z-index: var(--z-toast);
  padding: var(--sp-4) var(--pad);
  background: var(--bordeaux);
  color: var(--on-brand);
  font-size: var(--fs-sm);
  font-weight: 800;
  text-align: center;
  animation: toast-in var(--dur) var(--ease);
}

.toast.is-error { background: var(--danger); }
.toast.out { opacity: 0; transition: opacity var(--dur) var(--ease); }
@keyframes toast-in { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ==========================================================================
   Accesso e home pubblica
   ========================================================================== */

#authCard { padding: var(--sp-6) var(--pad) var(--sp-7); }
#authCard h1 { font-size: var(--fs-2xl); text-transform: uppercase; }

.app-home-hero, .hero { background: var(--paper); padding: var(--sp-6) var(--pad); }
.app-home-surface { background: var(--strip-2); padding: var(--sp-3); }
.hero-brand-image { width: 100%; display: block; }
.lead { max-width: 66ch; color: var(--ink-2); font-size: var(--fs-md); font-weight: 600; }
.app-home-actions { margin-top: var(--sp-5); }
.btn-link { width: 100%; min-height: 62px; font-size: var(--fs-md); font-weight: 900; }
.secondary-link { background: var(--onyx); }

.app-home-split { display: block; }
.persona { padding: var(--sp-5) var(--pad); border-top: 1px solid var(--line); }
.persona h2 { font-size: var(--fs-xl); text-transform: uppercase; }
.persona-client { background: var(--strip-2); }

.app-home-flow, .app-home-footer-cta { padding: var(--sp-6) var(--pad); }
.app-home-flow h2, .app-home-footer-cta h2 { font-size: var(--fs-xl); text-transform: uppercase; }
.flow-grid { display: block; }
.flow-item { padding: var(--sp-4) 0; border-top: 1px solid var(--line); }

.flow-item span {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: var(--fs-md);
  color: var(--on-brand);
  background: var(--bordeaux);
  margin-bottom: var(--sp-3);
}

.flow-item p { margin: 0; color: var(--ink-2); font-weight: 600; }
.app-home-footer-cta { text-align: center; }
.cta-row { margin-top: var(--sp-4); }
.feature { background: var(--strip-2); padding: var(--sp-4); }
.feature h3 { font-size: var(--fs-md); }
.feature p { margin: 0; color: var(--ink-2); font-weight: 600; }

/* ==========================================================================
   Notifiche — campanella, pallino, elenco
   Una notifica che chiede un intervento non e una riga di elenco: e un
   compito. Sta in cima, si distingue a occhio e porta dove si interviene.
   ========================================================================== */

.head-actions { display: flex; align-items: center; gap: var(--sp-2); }

button.bell {
  position: relative;
  min-height: var(--touch-min);
  min-width: var(--touch-min);
  padding: 0;
  background: transparent;
  color: var(--on-dark);
  border-radius: 0;
}

button.bell:hover { background: var(--onyx-2); }

.bell-ico {
  display: block;
  width: 26px; height: 26px;
  margin: 0 auto;
  background: currentColor;
  -webkit-mask: var(--bell-mask) center / contain no-repeat;
          mask: var(--bell-mask) center / contain no-repeat;
}

/* Il numero e il segnale: si vede senza entrare a controllare. */
.bell-dot {
  position: absolute;
  top: 2px; right: 0;
  min-width: 21px; height: 21px;
  padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bordeaux);
  color: var(--on-brand);
  font-size: 12px; font-weight: 900; line-height: 1;
}

button.bell.has-action .bell-dot { background: var(--danger); }

/* "Notifiche" vive dentro "Altro": il pallino arriva fin sulla barra. */
#appCard > .tabs > button.tab.has-badge::after,
button.sheet-item.has-badge::after {
  content: "";
  width: 11px; height: 11px;
  background: var(--bordeaux);
}

#appCard > .tabs > button.tab.has-badge::after {
  position: absolute;
  top: 10px; left: 50%; margin-left: 8px;
  box-shadow: 0 0 0 2px var(--onyx);
}

#appCard > .tabs > button.tab.active.has-badge::after {
  background: var(--on-brand);
  box-shadow: 0 0 0 2px var(--bordeaux);
}

button.sheet-item.has-badge::after { margin-left: auto; }
button.sheet-item.has-badge { color: var(--bordeaux); }

.day-head.is-urgent { background: var(--bordeaux); color: var(--on-brand); }

.notif {
  display: flex;
  align-items: stretch;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.notif.is-unread { background: var(--strip-2); }
.notif.is-action { background: var(--paper); }

.notif-main {
  flex: 1 1 auto;
  min-width: 0;
  padding: var(--sp-4) var(--sp-3) var(--sp-4) var(--pad);
  text-align: left;
}

.notif-main[role="button"] { cursor: pointer; }
.notif-main[role="button"]:hover { background: var(--strip); }

.notif-head { display: flex; align-items: baseline; gap: var(--sp-3); }
.notif-head h4 {
  margin: 0;
  flex: 1 1 auto;
  font-size: var(--fs-md);
  font-weight: 900;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.notif.is-unread .notif-head h4::before {
  content: "";
  display: inline-block;
  width: 9px; height: 9px;
  margin-right: 8px;
  vertical-align: 0.12em;
  background: var(--bordeaux);
}

.notif-when { flex: 0 0 auto; font-size: var(--fs-xs); font-weight: 700; color: var(--ink-3); }
.notif-meta { margin: 3px 0 0; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }

.notif-cta {
  display: inline-block;
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--bordeaux);
}
.notif-cta::after { content: " →"; }

.notif.is-action .notif-cta {
  padding: 10px var(--sp-4);
  background: var(--bordeaux);
  color: var(--on-brand);
}

.notif-del {
  flex: 0 0 var(--touch);
  min-height: 0;
  padding: 0;
  background: transparent;
  color: var(--ink-3);
  border-radius: 0;
  border-left: 1px solid var(--line);
}
.notif-del:hover { background: var(--danger-bg); color: var(--danger); }
.notif-del svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.notif-foot { padding: var(--sp-5) var(--pad) var(--sp-6); }
.notif-foot button { width: 100%; }

/* L'appuntamento raggiunto da una notifica si fa riconoscere. */
.appt.is-flash { background: var(--warn-bg); animation: apptFlash 2.2s var(--ease); }
@keyframes apptFlash {
  0%, 55% { background: var(--warn-bg); }
  100% { background: var(--paper); }
}

/* Attivazione delle notifiche di sistema, nel profilo */
.push-block { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.push-block h4 { margin: 0 0 var(--sp-2); font-size: var(--fs-md); font-weight: 900; letter-spacing: -0.02em; }
.push-block p { margin: 0 0 var(--sp-3); }
.push-block .row { gap: var(--sp-2); flex-wrap: wrap; }
.push-error { color: var(--danger); font-weight: 700; }
.push-steps { margin: 0 0 var(--sp-3); padding-left: 1.3em; color: var(--ink-2); font-weight: 600; }
.push-steps li { margin-bottom: 4px; }

/* Etichette del cliente e composizione dell'avviso */
.tag-box { margin: var(--sp-4) 0; padding: var(--sp-4) 0; border-top: 1px solid var(--line); }
.tag-box > b { display: block; font-size: var(--fs-md); font-weight: 900; letter-spacing: -0.02em; }
.tag-box p { margin: 2px 0 var(--sp-3); }

.tag-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

button.tag-chip {
  min-height: var(--touch-min);
  padding: var(--sp-2) var(--sp-4);
  background: var(--paper);
  color: var(--ink);
  border-radius: 0;
  box-shadow: inset 0 0 0 2px var(--line);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

button.tag-chip:hover { background: var(--strip-2); }
button.tag-chip.on {
  background: var(--tipo, var(--bordeaux));
  color: var(--tipo-ink, #fff);
  box-shadow: none;
}

.tag-msg:empty { display: none; }

.avviso { padding: var(--sp-4) var(--pad) 0; }
.avviso label { display: block; margin-top: var(--sp-4); font-weight: 800; }
.avviso input, .avviso textarea, .avviso select { width: 100%; }
.avviso .seg { margin-bottom: var(--sp-3); }
.avviso .over-sec { margin-top: var(--sp-6); }
.av-clienti { display: block; max-height: 46vh; overflow-y: auto; }

/* Barra dei filtri per tipo, nelle attivita.
   Scorre in orizzontale: le categorie possono essere molte e mandarle a capo
   su tre righe rubarebbe mezzo schermo alla lista vera. */
.filtri {
  display: flex;
  gap: var(--sp-2);
  padding: 2px 0 4px;
  margin-bottom: var(--sp-3);
  background: transparent;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.filtri::-webkit-scrollbar { display: none; }

/* L'ultimo filtro sfuma invece di essere tagliato di netto: si capisce
   che la fila continua e si puo scorrere. */
.filtri {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
}

button.filtro {
  flex: 0 0 auto;
  min-height: 34px;
  padding: var(--sp-2) var(--sp-3);
  background: var(--paper);
  color: var(--ink-2);
  border-radius: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

button.filtro span {
  display: inline-block;
  margin-left: 7px;
  font-weight: 900;
  opacity: 0.75;
}

button.filtro:hover { background: var(--strip-2); color: var(--ink); }

button.filtro.on {
  background: var(--tipo, var(--onyx));
  color: var(--tipo-ink, var(--on-dark));
}

button.filtro.on:hover { background: var(--tipo, var(--onyx)); color: var(--tipo-ink, var(--on-dark)); }
button.filtro.on span { opacity: 0.85; }

/* Scelta del tema: due anteprime, non due parole */
.seg-theme { display: flex; gap: 1px; background: var(--line); margin-bottom: var(--sp-3); }

button.theme-btn {
  flex: 1 1 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 0;
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
  background: var(--paper);
  color: var(--ink);
  border-radius: 0;
  text-align: left;
}

button.theme-btn:hover { background: var(--strip-2); }
button.theme-btn.on { background: var(--strip); box-shadow: inset 0 -4px 0 var(--bordeaux); }
button.theme-btn b { font-size: var(--fs-sm); font-weight: 900; letter-spacing: -0.02em; }
button.theme-btn small { font-size: 13px; font-weight: 600; color: var(--ink-2); }

.theme-swatch {
  display: block;
  width: 100%;
  max-width: 78px;
  margin-bottom: var(--sp-2);
  box-shadow: inset 0 0 0 1px var(--line);
}

.theme-swatch i { display: block; height: 11px; }
.theme-swatch em { display: block; height: 26px; background: #ffffff; }
.theme-swatch.theme-dark i { background: #111111; }
.theme-swatch.theme-light i { background: #e4e1e2; }

/* ==========================================================================
   Messaggi
   ========================================================================== */

button.conv-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 74px;
  padding: var(--sp-3) var(--pad);
  background: var(--paper);
  color: var(--ink);
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

button.conv-row:hover { background: var(--strip-2); }
button.conv-row.is-unread { background: var(--strip-2); }
.conv-main { flex: 1 1 auto; min-width: 0; }
.conv-top { display: flex; align-items: baseline; gap: var(--sp-3); }
.conv-top b { flex: 1 1 auto; font-size: var(--fs-md); font-weight: 900; letter-spacing: -0.025em; }
.conv-when { flex: 0 0 auto; font-size: var(--fs-xs); font-weight: 700; color: var(--ink-3); }

.conv-last {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

button.conv-row.is-unread .conv-last { color: var(--ink); font-weight: 700; }

.conv-count {
  flex: 0 0 auto;
  min-width: 24px; height: 24px;
  padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bordeaux);
  color: var(--on-brand);
  font-size: 13px; font-weight: 900;
}

/* La conversazione occupa quello che resta fra intestazione e barra bassa:
   il campo di scrittura non deve mai finire sotto la navigazione. */
/* L'altezza la misura fitConversation(): qui solo una stima di partenza,
   per non far saltare la schermata prima che il calcolo arrivi. */
.conv-screen {
  display: flex;
  flex-direction: column;
  height: calc(100svh - 220px - env(safe-area-inset-bottom));
  min-height: 280px;
}

.conv-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--pad);
  background: var(--strip);
  border-bottom: 1px solid var(--line);
}

.conv-head b { font-size: var(--fs-md); font-weight: 900; letter-spacing: -0.025em; }

button.conv-back {
  min-height: var(--touch-min);
  min-width: 38px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  border-radius: 0;
}
button.conv-back:hover { background: var(--line); }
button.conv-back .tab-icon { width: 24px; height: 24px; display: block; }
button.conv-back .tab-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.conv-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--sp-3) var(--pad) var(--sp-4);
  background: var(--paper);
}

.conv-day {
  margin: var(--sp-4) 0 var(--sp-3);
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.msg {
  max-width: 82%;
  margin-bottom: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--strip);
  color: var(--ink);
}

.msg.mine { margin-left: auto; background: var(--bordeaux); color: var(--on-brand); }
.msg p { margin: 0; font-size: var(--fs-base); font-weight: 600; line-height: 1.4; }
.msg-when { display: block; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.msg.mine .msg-when { color: var(--on-brand); opacity: 0.78; }

button.msg-ctx {
  display: block;
  width: 100%;
  min-height: 0;
  margin: 0 0 var(--sp-2);
  padding: 6px var(--sp-3);
  background: var(--paper);
  color: var(--ink);
  border-radius: 0;
  box-shadow: inset 0 0 0 2px var(--line);
  font-size: var(--fs-xs);
  font-weight: 800;
  text-align: left;
  letter-spacing: 0;
  text-transform: none;
}

button.msg-ctx:hover { background: var(--strip-2); }

.conv-write {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.conv-write textarea {
  flex: 1 1 0;
  width: auto;
  min-height: var(--touch);
  max-height: 140px;
  margin: 0;
  padding: var(--sp-3) var(--pad);
  border: 0;
  border-radius: 0;
  resize: none;
  font-size: var(--fs-base);
}

.conv-write button[type="submit"] {
  flex: 0 0 var(--touch);
  width: auto;
  margin-top: 0;
  min-height: var(--touch);
  padding: 0;
}

.conv-write button svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }

/* Note private dell'educatore sul cliente */
.notes-box { margin: var(--sp-4) 0; padding: var(--sp-4) 0; border-top: 1px solid var(--line); }
.notes-box > b { display: block; font-size: var(--fs-md); font-weight: 900; letter-spacing: -0.02em; }
.notes-box > p { margin: 2px 0 var(--sp-3); }

.notes-list { list-style: none; margin: 0 0 var(--sp-3); padding: 0; }

.notes-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
}

.notes-list li.notes-empty,
.notes-list li.notes-loading {
  display: block;
  border-bottom: 0;
  padding: 0 0 var(--sp-2);
  color: var(--ink-2);
  font-size: var(--fs-sm);
  font-weight: 600;
}

/* Il segno di elenco e un blocchetto nel colore dell'educatore, non un
   pallino tipografico: alla lista serve un aggancio visivo a sinistra. */
.note-text {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  padding-left: var(--sp-4);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.note-text::before {
  content: "";
  position: absolute;
  left: 0; top: 0.45em;
  width: 8px; height: 8px;
  background: var(--bordeaux);
}

button.note-del {
  flex: 0 0 auto;
  min-height: var(--touch-min);
  min-width: var(--touch-min);
  padding: 0;
  background: transparent;
  color: var(--ink-3);
  border-radius: 0;
}

button.note-del:hover { background: var(--danger-bg); color: var(--danger); }
button.note-del svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.notes-add { display: flex; gap: 1px; background: var(--line); }
.notes-add input { flex: 1 1 0; width: auto; min-width: 0; margin: 0; border: 0; border-radius: 0; }

.notes-add button[type="submit"] {
  flex: 0 0 auto;
  width: auto;
  margin-top: 0;
  min-height: var(--touch);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
}
.notes-msg:empty { display: none; }

/* Due azioni su una riga propria: accanto al titolo lo mandavano a capo e si
   impilavano l'una sotto l'altra su un telefono stretto. */
.head-btns { display: flex; gap: 1px; margin-bottom: var(--sp-4); background: var(--line); }
.head-btns button {
  flex: 1 1 0;
  min-width: 0;
  min-height: var(--touch);
  padding: var(--sp-3) var(--sp-2);
  background: var(--strip);
  color: var(--ink);
  border-radius: 0;
  font-size: var(--fs-xs);
  font-weight: 800;
}
.head-btns button:hover { background: var(--line); }

/* Primo ingresso del cliente: niente via d'uscita al primo passo, la
   password provvisoria non puo restare quella. */
.screen-over.wizard { background: var(--paper); }

.wz-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: calc(env(safe-area-inset-top) + var(--sp-3)) var(--pad) var(--sp-3);
  background: var(--onyx);
  color: var(--on-dark);
}

.wz-steps { display: inline-flex; gap: 6px; }
.wz-steps i { width: 26px; height: 6px; background: var(--on-dark-soft); }
.wz-steps i.on { background: var(--bordeaux); }
.wz-count { font-size: var(--fs-xs); font-weight: 800; color: var(--on-dark-2); }

.wz-body { padding: var(--sp-5) var(--pad) var(--sp-6); }
.wz-h { margin: 0 0 var(--sp-2); font-size: var(--fs-xl); font-weight: 900; letter-spacing: -0.04em; text-wrap: balance; }
.wz-body > p { margin: 0 0 var(--sp-5); color: var(--ink-2); font-weight: 600; }
.wz-body label { display: block; margin-top: var(--sp-4); font-weight: 800; }
.wz-body input, .wz-body select, .wz-body textarea { width: 100%; }
.wz-msg { margin-top: var(--sp-4); color: var(--danger); font-weight: 800; }
.wz-msg:empty { display: none; }

.wz-owner {
  display: grid;
  grid-template-columns: 1fr 84px 1fr;
  gap: 1px;
  margin-bottom: var(--sp-3);
  background: var(--line);
}

.wz-owner input, .wz-owner select { margin: 0; border: 0; border-radius: 0; }
.wz-owner button { grid-column: 1 / -1; }

button.wz-skip {
  width: 100%;
  min-height: var(--touch);
  margin-top: 1px;
  background: var(--onyx-2);
  color: var(--on-dark-2);
  font-weight: 700;
}

button.wz-skip:hover { background: var(--onyx-2); color: var(--on-dark); }

/* Ricerca del cliente in Home */
.cerca-cliente { margin-bottom: var(--sp-5); }
.cerca-cliente input { margin-bottom: 0; }

.cerca-risultati { display: block; }
.cerca-risultati:empty { display: none; }

button.cerca-riga {
  width: 100%;
  display: block;
  min-height: var(--touch);
  padding: var(--sp-3) var(--sp-4);
  background: var(--paper);
  color: var(--ink);
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 0 0 0 transparent;
  text-align: left;
}

button.cerca-riga:first-child { border-top: 0; }
button.cerca-riga:hover, button.cerca-riga:focus-visible { background: var(--strip-2); }
button.cerca-riga b { display: block; font-size: var(--fs-md); font-weight: 900; letter-spacing: -0.02em; }
button.cerca-riga span { display: block; margin-top: 2px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }

/* La parte trovata: sottolineata e nel colore dell'educatore, non evidenziata
   in giallo, che sulla pillola di DOG WALKING sarebbe gia usato. */
button.cerca-riga mark {
  background: transparent;
  color: var(--bordeaux);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.cerca-vuoto { margin: var(--sp-3) 0 0; color: var(--ink-2); font-weight: 600; }

/* Cliente creato che non ha ancora usato il link */
.notice.setup-pending { margin: var(--sp-3) 0; }
.notice.setup-pending b { display: block; }
.notice.setup-pending button { display: block; padding-left: 0; }
.notice.setup-pending .resend-msg:empty { display: none; }

/* Cancellazione dell'account */
.roster-trash { display: inline-block; margin-left: 6px; padding: 1px 6px; font-style: normal; font-size: 13px; font-weight: 800; color: var(--danger); background: var(--danger-bg); }
.account-zone { margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 2px solid var(--line); }
.account-zone h4 { margin: 0 0 var(--sp-2); font-size: var(--fs-md); font-weight: 900; }
.account-zone p { margin: 0 0 var(--sp-3); }
.delete-list { margin: var(--sp-3) 0 var(--sp-4); padding-left: 1.2em; }
.delete-list li { margin-bottom: var(--sp-2); line-height: 1.4; }
.del-msg:empty, #trashStatus:empty, #purgeStatus:empty { display: none; }
#trashCard .trash-now { margin-top: var(--sp-5); }
#trashCard .trash-now button { margin-top: var(--sp-3); width: 100%; }

/* ==========================================================================
   Angoli morbidi
   I tester trovavano la grafica troppo dura. Si arrotonda quello che si
   tocca o che galleggia; restano dritte le strutture da bordo a bordo
   (testate, barra in basso, righe degli elenchi, piedi delle schermate),
   che arrotondate si staccherebbero dai bordi dello schermo.
   ========================================================================== */

/* Pulsanti che fanno parte di una fascia a tutta larghezza: restano dritti */
.over-foot button, .foot-actions button, .sheet-foot button,
.pwa-modal-actions button, .notes-add button[type="submit"],
.conv-write button[type="submit"], .wz-owner button, button.wz-skip,
.over-body > .chip:first-child { border-radius: 0; }

/* Gruppi di blocchi incollati: si arrotonda il gruppo, non ogni pezzo */
.panel .tabs, .pwa-modal-actions, .seg-theme, .notes-add, .head-btns, .wz-owner {
  border-radius: var(--r-md);
  overflow: hidden;
}

/* Etichette, contatori e pallini */
.chip, button.type-chip, button.tag-chip, button.filtro, .roster-trash,
.tab-badge, .bell-dot, .conv-count, .seg-count, .wz-steps i { border-radius: var(--r-pill); }
.act-type { border-radius: var(--r-xs); }
#appCard > .tabs > button.tab.has-badge::after,
button.sheet-item.has-badge::after,
.notif.is-unread .notif-head h4::before,
.note-text::before { border-radius: 50%; }

/* Il filtro spento ha bisogno di un contorno, ora che non sta su una striscia */
button.filtro { box-shadow: inset 0 0 0 2px var(--line); }
button.filtro.on { box-shadow: none; }

/* Riquadri che galleggiano */
.notice, button.msg-ctx, .brand-mark { border-radius: var(--r-sm); }
.theme-swatch { border-radius: var(--r-xs); overflow: hidden; }
.seats { border-radius: var(--r-md); margin: var(--sp-2) var(--sp-2) var(--sp-2) 0; }
.attn-item b { border-radius: var(--r-md); }
.intake-multi-option { border-radius: var(--r-sm); margin-bottom: 4px; }
.cerca-risultati { margin-top: 6px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.toast { border-radius: var(--r-md); }

/* Fumetti della chat: l'angolo verso chi parla e piu stretto */
.msg { border-radius: 18px 18px 18px 6px; }
.msg.mine { border-radius: 18px 18px 6px 18px; }

/* Fogli che salgono dal basso */
.sheet, .pwa-modal { border-radius: var(--r-lg) var(--r-lg) 0 0; }

/* Pulsanti a sola icona: il fondo al passaggio del dito non e piu un quadrato */
button.bell, button.conv-back, button.note-del { border-radius: var(--r-sm); }

/* Scritta di contesto in alto a destra. Su due righe se serve: troncarla
   nascondeva proprio il nome, che e l'unica cosa che conta li. */
.topbar .env {
  min-width: 0;
  flex: 1 1 auto;
  max-width: 74%;
  text-align: right;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Dentro l'app la parola DOGNECT rubava lo spazio alla scritta di contesto,
   e si tagliavano a vicenda. Resta l'icona: che app sia, si sa gia. */
@media (max-width: 560px) {
  .topbar-app .brand-word { display: none; }
  .topbar-app .env { max-width: none; }
}

/* ==========================================================================
   Alleggerimento, nel rispetto del tema
   Le fasce dentro le schermate usano i token --band. Nel tema scuro restano
   scure ma meno dure del nero della cornice (testata e barra in basso); nel
   tema chiaro diventano chiare. La prima versione le schiariva in entrambi,
   e i due temi erano diventati quasi uguali.
   ========================================================================== */

/* Intestazione della sezione: titolo, campanella, uscita e nome */
#appCard > .row.between { background: var(--band); color: var(--on-band); padding-top: var(--sp-4); }
#appCard > #whoami { background: var(--band); color: var(--on-band-2); border-bottom: 1px solid var(--band-line); }
#appCard > .row.between button.bell { color: var(--on-band); }
#appCard > .row.between button.bell:hover { background: var(--band-3); }

/* Schede Disponibili / Prenotate / Attesa */
.seg { background: var(--band); border-bottom: 1px solid var(--band-line); }
button.seg-btn { color: var(--on-band-2); }
button.seg-btn:hover, button.seg-btn.active { color: var(--on-band); }
.seg-count { background: var(--band-3); color: var(--on-band); }

/* Inizio / Fine nella scheda dell'attivita */
.kv-grid { background: var(--band-line); }
.kv { background: var(--band-2); color: var(--on-band); }
.kv span, .kv b { color: var(--on-band-2); }

/* Piede delle schermate sovrapposte: il pulsante principale nel colore
   dell'educatore, arrotondato e con respiro, non una fascia a tutta larghezza */
.over-foot {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--pad) calc(var(--sp-3) + env(safe-area-inset-bottom));
  background: var(--band);
  border-top: 1px solid var(--band-line);
}
.over-foot button {
  min-height: 56px;
  border-radius: var(--r-md);
  background: var(--bordeaux);
  color: var(--on-brand);
  font-size: var(--fs-md);
  letter-spacing: 0;
  text-transform: none;
}
.over-foot button:hover { background: var(--bordeaux-hi); }
.over-foot button.danger { background: transparent; color: var(--band-danger); box-shadow: inset 0 0 0 2px var(--band-danger); }
.over-foot button.danger:hover { background: var(--band-3); }
.over-foot button.ghost { min-height: var(--touch-min); background: transparent; color: var(--band-link); box-shadow: none; font-size: var(--fs-sm); }
.over-foot button.wz-skip { min-height: var(--touch-min); background: transparent; color: var(--on-band-2); font-size: var(--fs-sm); }
.over-foot .foot-note, .over-foot .muted { background: transparent; color: var(--on-band-2); padding: 0; }
.foot-actions { background: transparent; gap: var(--sp-2); }
.foot-actions button { min-height: 52px; border-radius: var(--r-md); background: var(--band-2); color: var(--on-band); font-size: var(--fs-sm); }
.foot-actions button:hover { background: var(--band-3); }
.foot-actions button.danger { background: transparent; color: var(--band-danger); box-shadow: inset 0 0 0 2px var(--band-danger); }

/* Titolo del foglio "Altre sezioni" */
.sheet h3 { background: var(--band); color: var(--on-band); font-size: var(--fs-lg); text-transform: none; }

/* Vista attiva dell'agenda: il colore dell'educatore, come le altre schede attive */
button.agenda-view-btn.active { background: var(--bordeaux); color: var(--on-brand); }

/* Barra della procedura guidata del primo accesso */
.wz-bar { background: var(--band); color: var(--on-band); border-bottom: 1px solid var(--band-line); }
.wz-steps i { background: var(--band-3); }
.wz-count { color: var(--on-band-2); }

/* Disponibili / Prenotate / Attesa: ogni scheda larga quanto il suo testo.
   Divise in tre parti uguali il numero finiva sopra la parola accanto. */
/* A 375px le tre schede devono stare intere: prima l'ultima usciva di 17px e
   il suo contatore restava tagliato sul bordo. Sotto quella larghezza la
   barra scorre, come previsto. */
.seg { gap: var(--sp-2); }
button.seg-btn { flex: 0 0 auto; gap: 5px; font-size: var(--fs-xs); }
.seg-count { min-width: 22px; padding: 1px 5px; font-size: 12px; }

/* Piede del foglio "Altro": due pulsanti arrotondati con respiro, non due
   scatole incollate ai bordi dello schermo */
.sheet-foot { gap: var(--sp-2); padding: 0 var(--pad) var(--sp-4); background: transparent; }
.sheet-foot button { flex: 1 1 0; border-radius: var(--r-md); }

/* Pulsanti secondari: contorno grigio invece del bordo nero spesso */
button.secondary { box-shadow: inset 0 0 0 2px rgba(17, 17, 17, 0.22); }
button.secondary:hover { background: var(--strip-2); }

/* ==========================================================================
   Angoli morbidi anche sulle parti scure
   Prima si arrotondavano solo gli elementi chiari e le fasce restavano
   squadrate: il tema scuro sembrava duro come prima. Ora anche cornice e
   fasce hanno gli angoli, nei due temi. Dove una linea separava i blocchi
   diventa un contorno, che a differenza del bordo segue la curva.
   ========================================================================== */

/* Cornice: testata e barra in basso */
.topbar { border-radius: 0 0 var(--r-lg) var(--r-lg); }
#appCard > .tabs {
  gap: 4px;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  overflow: hidden;
}
/* Spazio interno ridotto: con il margine della barra le voci arrivavano a
   80px, e il messaggio a comparsa, appoggiato a 72px dal fondo, la copriva. */
#appCard > .tabs > button.tab { min-height: 58px; padding: 6px 2px; border-radius: var(--r-md); }

/* Intestazione della sezione: titolo, campanella e nome in un riquadro */
#appCard > .row.between { border-radius: var(--r-lg) var(--r-lg) 0 0; }
#appCard > #whoami { border-bottom: 0; border-radius: 0 0 var(--r-lg) var(--r-lg); margin-bottom: var(--sp-3); }

/* Disponibili / Prenotate / Attesa: barra arrotondata a se */
.seg { border-bottom: 0; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--band-line); }

/* Inizio / Fine: un riquadro con margini, non una lastra da bordo a bordo */
.kv-grid { margin: var(--sp-3) var(--pad) 0; border-radius: var(--r-md); overflow: hidden; }

/* Piede delle schermate sovrapposte */
.over-foot { border-top: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: 0 -1px 0 var(--band-line); }

/* Titolo del foglio "Altro": segue gli angoli del foglio */
.sheet h3 { border-radius: var(--r-lg) var(--r-lg) 0 0; }

/* Barra della procedura guidata */
.wz-bar { border-bottom: 0; border-radius: 0 0 var(--r-lg) var(--r-lg); box-shadow: 0 1px 0 var(--band-line); }

/* Scelta del gruppo di domande nel questionario: una tendina, non schede
   affiancate. I titoli sono frasi intere e su un telefono si accavallavano. */
/* La tendina ha la precedenza: con il contatore accanto restava larga 120px e
   il nome del questionario spariva. Se non ci stanno, il contatore va sotto. */
.intake-nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); margin-bottom: var(--sp-4); }
.intake-nav select { flex: 1 1 200px; width: auto; min-width: 0; margin: 0; }
.intake-step { flex: 0 1 auto; font-size: var(--fs-xs); font-weight: 800; color: var(--ink-2); white-space: nowrap; }

/* Fascia con il logo dell'educatore, sopra il contenuto dell'app */
.studio-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  padding: var(--sp-3) var(--pad);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  text-align: left;
}
/* Il logo dell'educatore: un riquadro, non un francobollo in mezzo
   alla pagina. Se manca, la riga vive lo stesso con il solo nome. */
.studio-bar img {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  object-fit: contain;
  padding: 3px;
  background: #fff;
  border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* Per il proprietario la fascia e' l'educatore che lo segue: si vede
   su ogni schermata, e porta alla sua scheda. */
.studio-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--fs-md);
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.studio-name:empty { display: none; }
.studio-go {
  flex: 0 0 auto;
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--bordeaux);
  white-space: nowrap;
}
.studio-bar.is-tappable { cursor: pointer; }
.studio-bar.is-tappable:hover { background: var(--strip-2); }

/* Caricamento del logo nelle impostazioni */
.logo-box { margin-bottom: var(--sp-4); }
.logo-box img { display: block; max-height: 72px; width: auto; max-width: 100%; margin-bottom: var(--sp-3); }
.logo-box .row { gap: var(--sp-2); align-items: center; }
label.btn-file {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--touch); padding: var(--sp-3) var(--sp-5);
  background: var(--bordeaux); color: var(--on-brand);
  border-radius: var(--r-md); font-size: var(--fs-sm); font-weight: 800;
  cursor: pointer; margin: 0;
}
label.btn-file:hover { background: var(--bordeaux-hi); }

/* ==========================================================================
   Adattamenti
   ========================================================================== */

@media (max-width: 360px) {
  :root { --fs-nav: 12px; --fs-2xl: 38px; --pad: 16px; }
  .seats { flex-basis: 80px; }
  .seats b { font-size: 34px; }
  .appt-time { flex-basis: 74px; }
}

@media (min-width: 721px) {
  .layout { padding-bottom: var(--sp-7); }
  .tabs { position: sticky; top: 0; bottom: auto; }
  button.tab { min-height: 64px; }
  .agcal-week { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .skeleton { animation: none; background: var(--strip); }
}

/* ============================================================
   Scheda dell'educatore
   Chi segue il cane: logo, nome, zona, cosa fa. Da qui parte anche
   il primo messaggio, prima ancora di essere associati.
   ============================================================ */
.edu-card { padding: var(--sp-4) var(--pad) var(--sp-6); }

.edu-head { display: flex; align-items: center; gap: var(--sp-4); }
.edu-logo {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}
.edu-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-lg);
  font-weight: 900;
  color: #fff;
  box-shadow: none;
}
.edu-id { min-width: 0; }
.edu-name {
  margin: 0;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--ink);
}
.edu-people { margin: 2px 0 0; font-size: var(--fs-sm); font-weight: 700; color: var(--ink-2); }
.edu-area { margin: 2px 0 0; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-3); }
.edu-bio {
  margin-top: var(--sp-4);
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--ink-2);
  white-space: pre-wrap;
}
.edu-tipi { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
.edu-legame, .edu-sito { margin-top: var(--sp-4); }

/* L'elenco da cui si sceglie: prima il logo, poi il nome */
.edu-elenco li { padding: 0; border-bottom: 0; }
.edu-mini {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: var(--r-sm);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}
span.edu-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  font-weight: 900;
  color: #fff;
  box-shadow: none;
}

/* Il logo in cima e la riga "Educatore associato" aprono la scheda */
.is-tappable { cursor: pointer; }
.topbar .env.is-tappable { text-decoration: underline; text-underline-offset: 3px; }

/* Chi ti ha scritto ma non e (ancora) un cliente */
.conv-tag {
  flex: 0 0 auto;
  padding: 1px var(--sp-2);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-3);
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--line);
}
.conv-head .conv-tag { margin-left: auto; }

/* La ricerca dell'educatore: campo, regione, risultati */
.edu-search { padding: var(--sp-4) var(--pad) var(--sp-2); }
.edu-search label { display: block; }
.edu-search input, .edu-search select { width: 100%; }

/* Le parti in piu della scheda: servizi, formazione, orari */
.edu-sez { margin-top: var(--sp-5); }
.edu-sez h3 {
  margin: 0 0 var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.edu-orari { list-style: none; margin: 0; padding: 0; }
.edu-orari li {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.edu-orari li span { color: var(--ink-2); font-weight: 600; }
.edu-orari li b { font-weight: 800; }

/* Assegnazione dei questionari a un cliente */
.intake-assegna li.assegna-riga {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
}
.assegna-nome { flex: 1 1 140px; font-weight: 800; }
.assegna-riga select { flex: 1 1 200px; width: auto; }

/* La domanda dell'indirizzo, nel questionario */
.intake-mappa { margin: var(--sp-2) 0 0; font-size: var(--fs-xs); }
.intake-mappa a { font-weight: 800; }


/* Elenco clienti: il selezionato in cima, e ogni scheda aperta si vede
   che appartiene alla riga sopra e non a quella dopo. */
.cliente-scelto {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-4);
  padding: var(--sp-4);
  background: var(--strip-2);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--line);
}
.cliente-scelto b { flex: 1 1 auto; font-size: var(--fs-md); letter-spacing: -0.02em; }
.cliente-scelto .act-type { flex: 0 0 100%; }
.cliente-scelto .muted { flex: 0 0 100%; font-size: var(--fs-sm); }
.cliente-scelto button { flex: 0 0 auto; }

li.assoc-li { padding: 0; border-bottom: 0; margin-bottom: var(--sp-3); }
li.assoc-li.is-scelto > .act-row { box-shadow: inset 3px 0 0 var(--bordeaux); }

.assoc-dettaglio:not(:empty) {
  margin: 0 0 var(--sp-2);
  padding: var(--sp-4) var(--pad);
  background: var(--strip);
  border-radius: 0 0 var(--r-md) var(--r-md);
  box-shadow: inset 0 0 0 1px var(--line);
}

.cli-testa h4 { margin: 0 0 var(--sp-3); font-size: var(--fs-lg); letter-spacing: -0.03em; }
.cli-contatti { list-style: none; margin: 0 0 var(--sp-3); padding: 0; }
.cli-contatti li {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-3);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.cli-contatti li span { flex: 0 0 90px; color: var(--ink-3); font-weight: 700; }
.cli-contatti li a { font-weight: 800; }

.cli-sez:not(:empty) { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 2px solid var(--line); }
.cli-sez h5 { margin: 0 0 var(--sp-2); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.cli-chiudi { text-align: left; }

/* Le due linguette dentro la scheda del cliente stavano una sull'altra */
.assoc-dettaglio .tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.assoc-dettaglio .tabs .tab { flex: 1 1 auto; }

/* ============================================================
   Attività: righe compatte
   In una schermata devono starcene molte. Orario a sinistra,
   titolo, categoria a colori. Chi conduce e dove si leggono
   aprendo l'attività.
   ============================================================ */
button.act-row.act-compatta {
  min-height: 0;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--pad);
  box-shadow: none;
}

/* L'orario porta il colore della categoria: si riconosce l'attivita da
   lontano senza la striscia verticale che usano tutti. */
.act-ora {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 5px 6px;
  border-radius: var(--r-sm);
  line-height: 1.05;
}
.act-ora b { font-size: 15px; font-weight: 900; letter-spacing: -0.02em; }
.act-ora i { font-style: normal; font-size: 11px; font-weight: 700; opacity: 0.8; }

/* Il testo prende tutta la larghezza che resta e va a capo: tagliarlo
   significherebbe nascondere proprio il nome dell'attivita. */
.act-compatta .act-main { padding: 0; min-width: 0; gap: 2px; }
.act-compatta .act-title {
  font-size: var(--fs-md);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}
.act-sotto {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px var(--sp-2);
}
/* La targhetta della categoria sta sopra, come prima: il titolo, quando
   c'e, e la riga che si legge sotto. */
.act-sotto + .act-title { margin-top: 3px; }
.act-cat {
  display: inline-block;
  padding: 2px var(--sp-2);
  border-radius: var(--r-xs);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: normal;
  overflow-wrap: anywhere;
}
/* La disponibilita sta a destra, dove la riga era vuota: e il dato che
   si cerca scorrendo, e non deve galleggiare in mezzo al testo. */
/* Sotto il titolo, su una riga sua, allineata a destra e nel colore
   della categoria: il numero grande e la parola piccola, come nel
   blocco della versione precedente. */
.act-posti {
  align-self: flex-end;
  margin-top: 4px;
  flex: 0 0 auto;
  padding: 2px var(--sp-3);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.act-posti b {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-right: 4px;
}
.act-posti.is-full {
  background: var(--onyx);
  color: var(--on-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
}

/* Il filtro per persona sta sotto quello per tipo */
.filtri-staff { margin-top: calc(var(--sp-2) * -1); }

/* Aggiungere qualcuno a un'attività */
.roster-add { padding: var(--sp-4) var(--pad) 0; }
.roster-add .row { display: flex; gap: var(--sp-2); align-items: center; }
.roster-add select { flex: 1 1 auto; min-width: 0; }
.roster-add .row button { flex: 0 0 auto; width: auto; }
/* Il contatore dei posti, in versione compatta, non deve dettare l'altezza */
.act-compatta .seats { min-width: 44px; padding: var(--sp-2); border-radius: var(--r-sm); }
.act-compatta .seats b { font-size: var(--fs-md); line-height: 1; }
.act-compatta .seats span { font-size: 10px; }

/* Programmazione a periodo: le righe degli orari perdono la data */
.occ-list.senza-data input[type="date"] { display: none; }
.anteprima {
  margin-top: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--strip-2);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
}
.anteprima b { font-size: var(--fs-md); }
.anteprima ul { margin: var(--sp-2) 0 0; padding-left: var(--sp-5); }
.anteprima li { color: var(--ink-2); }

/* Avviso prima di rinominare una categoria */
.avviso-rinomina { display: block; color: var(--ink); }
.avviso-rinomina ul { margin: var(--sp-2) 0; padding-left: var(--sp-5); }
.avviso-rinomina li { margin-bottom: 2px; }

/* "Quando": due scelte, e si deve vedere che sono due pulsanti */
#acModo,
#acAmbito {
  display: flex;
  gap: var(--sp-2);
  margin: var(--sp-2) 0 var(--sp-4);
  background: transparent;
  padding: 0;
}
#acModo .seg-btn,
#acAmbito .seg-btn {
  flex: 1 1 0;
  min-height: var(--touch);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink-2);
  box-shadow: inset 0 0 0 2px var(--line);
  font-size: var(--fs-sm);
  font-weight: 800;
  width: auto;
}
#acModo .seg-btn.active,
#acAmbito .seg-btn.active {
  background: var(--onyx);
  color: var(--on-dark);
  box-shadow: none;
}

/* Luoghi di un'attività: etichetta stretta, indirizzo o link largo */
.luoghi { display: flex; flex-direction: column; gap: var(--sp-2); }
.luogo-row { display: flex; gap: var(--sp-2); align-items: center; }
.luogo-row .luogo-label { flex: 0 0 34%; min-width: 0; }
.luogo-row .luogo-value { flex: 1 1 auto; min-width: 0; }
.luogo-row .occ-del, .luogo-row .occ-del-spacer { flex: 0 0 auto; }
.fact-sotto { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); margin-top: 2px; }
