/* ─────────────────────────────────────────────────────────────
   OTO Disobey · sistema visivo
   Identità Disobey (bianco e nero, squircle del pittogramma) +
   i tre toni Methood usati solo per riconoscere il team nei dati.

   Regole di forma (valgono ovunque):
   - oggetti d'identità (logo, foto, iniziali, data): squircle Disobey
   - pannelli 18px · controlli 10px · etichette 6px · niente pillole
   ───────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Saira';
  src: url('fonts/saira-latin.woff2') format('woff2');
  font-weight: 500 800;
  font-stretch: 100% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Saira';
  src: url('fonts/saira-latin-ext.woff2') format('woff2');
  font-weight: 500 800;
  font-stretch: 100% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --bg: #f3f3f5;
  --paper: #ffffff;
  --wash: #ebebef;
  --wash-2: #e2e2e8;
  --ink: #141417;
  --ink-2: #5b5b66;
  --ink-3: #8c8c97;
  --line: #e4e4e9;
  --line-2: #d3d3db;
  --scrim: rgba(20, 20, 23, 0.32);

  --bad: #c0392b;
  --bad-wash: #fbe9e6;
  --warn: #9a640f;
  --warn-wash: #f8efdd;

  /* toni Methood: solo per il team */
  --t-salvatore: #5f50b3;
  --t-elaja: #3d7471;
  --t-fabrizio: #69793b;
  --t-alberto: #ad7633;
  --t-other: #6b7280;

  --shadow-pop: 0 1px 2px rgba(20, 20, 30, 0.06), 0 12px 32px rgba(20, 20, 40, 0.12);

  --r-panel: 18px;
  --r-ctl: 10px;
  --r-tag: 6px;

  --display: 'Saira', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;

  --squircle: url('brand/squircle.svg');
  --tint: 11%;
  --tint-hover: 18%;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* livelli */
  --z-topbar: 10;
  --z-side: 30;
  --z-scrim: 40;
  --z-drawer: 41;
  --z-toast: 50;
  --z-tip: 60;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e0e11;
    --paper: #17171b;
    --wash: #202026;
    --wash-2: #2a2a31;
    --ink: #f2f2f4;
    --ink-2: #a5a5b0;
    --ink-3: #72727d;
    --line: #26262d;
    --line-2: #34343c;
    --scrim: rgba(0, 0, 0, 0.55);
    --bad: #f0806f;
    --bad-wash: rgba(240, 128, 111, 0.14);
    --warn: #e2a85a;
    --warn-wash: rgba(226, 168, 90, 0.14);
    --t-salvatore: #9a8cf0;
    --t-elaja: #79b3ae;
    --t-fabrizio: #a9ba78;
    --t-alberto: #dba468;
    --t-other: #9ca3af;
    --shadow-pop: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.55);
    --tint: 17%;
    --tint-hover: 25%;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e0e11;
  --paper: #17171b;
  --wash: #202026;
  --wash-2: #2a2a31;
  --ink: #f2f2f4;
  --ink-2: #a5a5b0;
  --ink-3: #72727d;
  --line: #26262d;
  --line-2: #34343c;
  --scrim: rgba(0, 0, 0, 0.55);
  --bad: #f0806f;
  --bad-wash: rgba(240, 128, 111, 0.14);
  --warn: #e2a85a;
  --warn-wash: rgba(226, 168, 90, 0.14);
  --t-salvatore: #9a8cf0;
  --t-elaja: #79b3ae;
  --t-fabrizio: #a9ba78;
  --t-alberto: #dba468;
  --t-other: #9ca3af;
  --shadow-pop: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.55);
  --tint: 17%;
  --tint-hover: 25%;
}

/* ───────── base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.num { font-variant-numeric: tabular-nums; }
.disp { font-family: var(--display); font-stretch: 118%; font-weight: 650; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.ico { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -0.18em; fill: currentColor; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: var(--r-ctl); text-decoration: none; }
.skip:focus { top: 12px; }

/* squircle Disobey: maschera per foto, iniziali, date */
.sq {
  -webkit-mask: var(--squircle) center / 100% 100% no-repeat;
  mask: var(--squircle) center / 100% 100% no-repeat;
}

/* ───────── shell ───────── */
.app {
  --side-w: 248px;
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  min-height: 100%;
  transition: grid-template-columns 0.28s var(--ease);
  overflow-x: clip;
}
.app.side-collapsed { grid-template-columns: 0 minmax(0, 1fr); }

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  width: var(--side-w);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: calc(22px + env(safe-area-inset-top, 0px)) 14px calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  border-right: 1px solid var(--line);
  transition: transform 0.28s var(--ease), visibility 0.28s;
  z-index: var(--z-side);
}
.app.side-collapsed .sidebar { transform: translateX(-100%); visibility: hidden; }

.side-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 8px 26px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.logo-mark { width: 38px; height: auto; flex: none; display: block; }
.logo-text { display: flex; flex-direction: column; gap: 5px; }
.logo-word { height: 13px; width: auto; display: block; }
.logo small { font-size: 12.5px; color: var(--ink-3); line-height: 1; }
.sidebar .side-close { display: none; }

.nav { display: flex; flex-direction: column; gap: 1px; }
.nav-sep { height: 1px; background: var(--line); margin: 10px 10px; }
.nav a {
  display: flex; align-items: center; gap: 12px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: var(--r-ctl);
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.nav a .ico { width: 19px; height: 19px; }
.nav a:hover { background: var(--wash); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--paper); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.nav .count { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--bad); font-variant-numeric: tabular-nums; }

.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; padding: 16px 8px 0; border-top: 1px solid var(--line); }
.sync { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--ink-3); }
.sync strong { font-weight: 500; color: var(--ink-2); }
.sync.error strong { color: var(--bad); }
.sync a { color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; width: fit-content; }
.sync a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.theme { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 2px; background: var(--wash); border-radius: var(--r-ctl); }
.theme button { border: 0; background: none; padding: 5px 0; border-radius: 8px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.theme button[aria-pressed="true"] { background: var(--paper); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }

.main { min-width: 0; padding-inline: clamp(16px, 3.2vw, 40px); padding-block: 0 72px; }
.main-inner { max-width: 1320px; }

.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: var(--z-topbar);
  display: flex; align-items: center; gap: 12px;
  padding-block: 16px 14px;
  margin-bottom: 8px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.page-title {
  flex: 1; min-width: 0;
  font-family: var(--display); font-stretch: 120%; font-weight: 700;
  font-size: clamp(21px, 2vw, 26px); letter-spacing: -0.005em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.topbar-actions { display: flex; align-items: center; gap: 8px; flex: none; }

/* ───────── controlli ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none;
  height: 38px; padding: 0 14px;
  border-radius: var(--r-ctl);
  border: 1px solid var(--line-2);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.12s var(--ease);
}
.btn:hover { background: var(--wash); }
.btn:active { transform: scale(0.97); }
.btn.icon { width: 38px; padding: 0; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--wash); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.dark:hover { opacity: 0.88; background: var(--ink); }
.btn .ico { width: 17px; height: 17px; }
.btn.spin .ico { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.select, .search {
  height: 38px;
  border-radius: var(--r-ctl);
  border: 1px solid var(--line-2);
  background: var(--paper);
  padding: 0 12px;
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.select {
  padding-right: 32px; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 17px) 16px, calc(100% - 12px) 16px;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.select:hover, .search:hover { border-color: var(--ink-3); }
.select:focus, .search:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 12%, transparent); }
.search-wrap { position: relative; flex: 1 1 240px; max-width: 380px; }
.search-wrap .ico { position: absolute; left: 12px; top: 11px; width: 16px; height: 16px; color: var(--ink-3); }
.search { width: 100%; padding-left: 36px; }
.search::placeholder { color: var(--ink-3); }

.segmented { display: inline-flex; padding: 3px; gap: 2px; background: var(--wash); border-radius: var(--r-ctl); }
.segmented button {
  border: 0; background: transparent; cursor: pointer;
  padding: 6px 12px; border-radius: 8px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  transition: background 0.15s, color 0.15s;
}
.segmented button:hover { color: var(--ink); }
.segmented button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }

/* ───────── etichette ───────── */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 7px; border-radius: var(--r-tag);
  font-size: 12px; font-weight: 600; white-space: nowrap;
  background: var(--wash); color: var(--ink-2);
}
.tag.bad { background: var(--bad-wash); color: var(--bad); }
.tag.warn { background: var(--warn-wash); color: var(--warn); }
.tag.ink { background: var(--ink); color: var(--bg); }

/* membro del team: foto squircle + nome */
.who { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.face {
  width: 22px; height: 22px; flex: none;
  display: inline-grid; place-items: center;
  background: var(--tc, var(--wash-2)); color: #fff;
  font-size: 11px; font-weight: 700;
}
.face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.face.lg { width: 44px; height: 44px; font-size: 16px; }
.face.md { width: 32px; height: 32px; font-size: 13px; }
.face.sm { width: 18px; height: 18px; font-size: 9px; }
.initials {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  background: var(--wash-2); color: var(--ink);
  font-family: var(--display); font-stretch: 112%; font-weight: 650; font-size: 13px;
}

/* ───────── struttura delle viste ───────── */
.view { display: flex; flex-direction: column; gap: 28px; }
.view.enter { animation: enter 0.26s var(--ease); }
@keyframes enter { from { transform: translateY(6px); } }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 22px; min-width: 0; }
.panel.flush { padding: 0; overflow: hidden; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.sec-head h2 { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.sec-head p { font-size: 13.5px; color: var(--ink-2); }
.link { color: var(--ink-2); font-size: 13.5px; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.link .ico { width: 14px; height: 14px; }

.cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: start; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }

/* ───────── panoramica: intestazione ───────── */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 40px; align-items: end; padding-top: 6px; }
.intro-date { font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }
.intro-total { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.intro-total .disp { font-size: clamp(52px, 6vw, 76px); line-height: 0.95; letter-spacing: -0.02em; font-stretch: 122%; font-weight: 700; }
.intro-total span:last-child { font-size: 19px; color: var(--ink-2); font-weight: 500; }
.facts { display: flex; gap: 0; }
.fact { display: flex; flex-direction: column; gap: 2px; padding: 0 22px; border-left: 1px solid var(--line-2); }
.fact:first-child { padding-left: 0; border-left: 0; }
.fact .disp { font-size: 26px; line-height: 1.05; }
.fact span:last-child { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
a.fact { text-decoration: none; color: inherit; }
a.fact:hover span:last-child { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.fact.alert .disp { color: var(--bad); }

/* ───────── panoramica: tabellone degli slot ───────── */
.board { display: grid; grid-template-columns: 58px repeat(var(--days), minmax(0, 1fr)); gap: 6px; }
.board .corner { }
.bday { padding: 2px 2px 8px; display: flex; flex-direction: column; gap: 1px; }
.bday.wk { margin-left: 10px; }
.bday .dname { font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.bday .dnum { font-family: var(--display); font-stretch: 118%; font-weight: 650; font-size: 22px; line-height: 1.05; }
.bday.today .dnum { color: var(--ink); }
.bday.today .dname { color: var(--ink); font-weight: 600; }
.btime { display: flex; align-items: center; font-family: var(--display); font-stretch: 112%; font-weight: 650; font-size: 15px; color: var(--ink-2); }
.slot {
  position: relative;
  min-height: 74px;
  border-radius: 12px;
  padding: 9px 10px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
  text-align: left;
  border: 0;
  font-size: 13px;
  min-width: 0;
}
.slot.wk { margin-left: 10px; }
.slot.booked { background: color-mix(in srgb, var(--tc) var(--tint), var(--paper)); cursor: pointer; transition: background 0.15s, transform 0.12s var(--ease); }
.slot.booked:hover { background: color-mix(in srgb, var(--tc) var(--tint-hover), var(--paper)); }
.slot.booked:active { transform: scale(0.98); }
.slot.booked strong { font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.slot .slot-team { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 12px; min-width: 0; }
.slot .slot-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot.free { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-3); justify-content: center; align-items: center; }
.slot.free span { font-size: 12.5px; }
.slot.blocked {
  background: repeating-linear-gradient(135deg, var(--wash) 0 7px, transparent 7px 14px);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-3); justify-content: center; align-items: center; cursor: pointer;
}
.slot.past { opacity: 0.42; }
.slot.dup::after { content: ""; position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 2px; background: var(--bad); }
.board-extra { grid-column: 2 / -1; font-size: 12.5px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 4px; }
.board-extra button { border: 0; background: none; padding: 0; cursor: pointer; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; font-size: 12.5px; }

.board-list { display: none; }
.lday { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 14px 0; border-top: 1px solid var(--line); }
.lday:first-child { border-top: 0; padding-top: 0; }
.lday h3 { grid-column: 1 / -1; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.lday .slot { min-height: 70px; justify-content: flex-start; gap: 4px; }
.lday .slot.free, .lday .slot.blocked { flex-direction: column; align-items: flex-start; justify-content: flex-start; }
.lday .slot.blocked { flex-direction: row; flex-wrap: wrap; align-content: flex-start; }
.lday .slot.blocked .stime { flex-basis: 100%; }
.stime { font-family: var(--display); font-stretch: 112%; font-weight: 650; font-size: 13px; color: var(--ink-2); }
.slot.booked .stime { color: var(--ink); }
.board-sum { font-size: 13.5px; color: var(--ink-2); }
.board-sum strong { color: var(--ink); font-weight: 600; }

/* ───────── carico per membro ───────── */
.load { display: flex; flex-direction: column; }
.load-row { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 6px 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.load-row:first-child { border-top: 0; padding-top: 2px; }
.load-row .who { font-size: 14.5px; }
.load-row .disp { font-size: 22px; text-align: right; }
.load-bar { grid-column: 1 / -1; height: 4px; }
.load-bar i { display: block; height: 100%; border-radius: 2px; background: var(--tc); }

/* ───────── righe elenco ───────── */
.rows { display: flex; flex-direction: column; }
.row {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  width: 100%; padding: 11px 4px; text-align: left;
  border: 0; border-top: 1px solid var(--line); background: none; cursor: pointer;
  transition: background 0.15s;
}
.row:first-child { border-top: 0; }
.row:hover { background: var(--wash); }
.date-tile { width: 46px; height: 46px; display: grid; place-items: center; align-content: center; gap: 1px; background: var(--wash); line-height: 1; }
.date-tile .d { font-family: var(--display); font-stretch: 118%; font-weight: 650; font-size: 18px; }
.date-tile .m { font-size: 11px; color: var(--ink-2); }
.row-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-main strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13px; color: var(--ink-2); }
.row-side { display: flex; align-items: center; gap: 8px; }
.empty { padding: 28px 8px; text-align: center; color: var(--ink-2); }

/* ───────── tabelle ───────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 11px 14px; text-align: left; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 22px; }
th:last-child, td:last-child { padding-right: 22px; }
thead th { font-size: 12.5px; font-weight: 500; color: var(--ink-3); border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; }
thead th.sortable { cursor: pointer; user-select: none; }
thead th.sortable:hover { color: var(--ink); }
thead th .arrow { margin-left: 4px; }
tbody tr { border-top: 1px solid var(--line); cursor: pointer; transition: background 0.12s; }
tbody tr:first-child { border-top: 0; }
tbody tr:hover { background: var(--wash); }
tbody tr.past td { color: var(--ink-2); }
tbody tr.past td strong { color: var(--ink); font-weight: 500; }
td.handle { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }
.group-row td { background: var(--bg); padding-block: 9px; cursor: default; font-size: 13px; color: var(--ink-2); }
.group-row td strong { font-family: var(--display); font-stretch: 112%; font-weight: 650; color: var(--ink); margin-right: 8px; font-size: 14px; }
.group-row:hover td { background: var(--bg); }
.table-foot { padding: 12px 22px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }

/* ───────── grafico ───────── */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--ink-3); font-size: 11px; font-family: var(--text); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .bar-label { fill: var(--ink); font-family: var(--display); font-stretch: 112%; font-weight: 650; font-size: 12px; }
.chart g.col:hover rect.seg { opacity: 0.85; }
.chart-scroll { overflow-x: auto; scrollbar-width: thin; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.legend .who { font-size: 13px; color: var(--ink-2); }
.chart-tip {
  position: fixed; z-index: var(--z-tip); pointer-events: none;
  background: var(--ink); color: var(--bg);
  padding: 8px 11px; border-radius: var(--r-ctl); font-size: 12.5px; line-height: 1.55;
  box-shadow: var(--shadow-pop);
}
.chart-tip strong { font-weight: 600; }

/* ───────── team ───────── */
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.team-card { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.team-card .top { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; }
.team-card .big { font-family: var(--display); font-stretch: 122%; font-weight: 700; font-size: 40px; line-height: 1; letter-spacing: -0.015em; }
.team-card .big small { font-family: var(--text); font-size: 13px; font-weight: 500; color: var(--ink-2); margin-left: 6px; letter-spacing: 0; }
.team-card dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; font-size: 13px; }
.team-card dt { color: var(--ink-2); }
.team-card dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

.heat td.cell { text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.heat td.cell span { display: inline-block; min-width: 34px; padding: 5px 7px; border-radius: 8px; background: color-mix(in srgb, var(--tc) calc(var(--a) * 1%), transparent); }
.heat td.cell.zero span { color: var(--ink-3); font-weight: 400; background: none; }
.heat th.c, .heat td.tot { text-align: center; }
.heat td.tot { font-family: var(--display); font-stretch: 112%; font-weight: 650; }
.heat tfoot td { border-top: 1px solid var(--line-2); font-weight: 650; }
.heat tbody tr { cursor: default; }
.heat tbody tr:hover { background: none; }

/* ───────── utenti ───────── */
.users-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; }
.user-card {
  text-align: left; cursor: pointer; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-panel);
  transition: border-color 0.15s, transform 0.12s var(--ease);
}
.user-card:hover { border-color: var(--ink-3); }
.user-card:active { transform: scale(0.99); }
.user-top { display: flex; align-items: center; gap: 12px; }
.user-top .u-id { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.user-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-top code { font-family: var(--mono); font-size: 12px; color: var(--ink-2); overflow-wrap: anywhere; }
.user-top .n { font-family: var(--display); font-stretch: 120%; font-weight: 700; font-size: 26px; }
.pips { display: flex; gap: 3px; flex-wrap: wrap; }
.pips i { width: 9px; height: 9px; border-radius: 2px; background: var(--tc); }
.user-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }

/* ───────── calendario ───────── */
.cal-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.cal-head h2 { font-family: var(--display); font-stretch: 118%; font-weight: 650; font-size: 22px; margin-right: auto; }
.cal-head .count { font-size: 13.5px; color: var(--ink-2); margin-right: 8px; }
.cal-scroll { overflow-x: auto; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(96px, 1fr)); gap: 4px; min-width: 700px; }
.cal .dow { font-size: 12.5px; color: var(--ink-3); padding: 0 8px 4px; }
.day { min-height: 104px; border-radius: 12px; padding: 7px; background: var(--bg); display: flex; flex-direction: column; gap: 4px; }
.day.out { background: transparent; }
.day.out .dn { color: var(--ink-3); opacity: 0.6; }
.day .dn { font-family: var(--display); font-stretch: 112%; font-weight: 650; font-size: 13px; color: var(--ink-2); }
.day.today { box-shadow: inset 0 0 0 1.5px var(--ink); }
.day.today .dn { color: var(--ink); }
.ev {
  display: flex; align-items: center; gap: 6px; width: 100%; text-align: left; cursor: pointer;
  border: 0; border-radius: 8px; padding: 4px 6px;
  font-size: 12px; line-height: 1.25;
  background: color-mix(in srgb, var(--tc) var(--tint), var(--paper));
  min-width: 0;
}
.ev:hover { background: color-mix(in srgb, var(--tc) var(--tint-hover), var(--paper)); }
.ev b { font-family: var(--display); font-stretch: 110%; font-weight: 650; font-size: 11.5px; flex: none; }
.ev span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ev.block { background: repeating-linear-gradient(135deg, var(--wash) 0 6px, transparent 6px 12px); color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); }
.ev.dup { box-shadow: inset 0 0 0 1.5px var(--bad); }
.agenda { display: none; }
.agenda-day { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); }
.agenda-day:first-child { border-top: 0; padding-top: 0; }
.agenda-day h3 { font-size: 13.5px; font-weight: 600; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.agenda-day.today h3 { color: var(--ink); }
.agenda .ev { font-size: 14px; padding: 9px 11px; border-radius: 10px; gap: 10px; }
.agenda .ev b { font-size: 13.5px; min-width: 40px; }
.agenda .ev .who { margin-left: auto; font-size: 12.5px; }

/* ───────── da verificare ───────── */
.issue { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); }
.issue:first-child { border-top: 0; padding-top: 0; }
.issue .t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; }
.issue .t code { font-family: var(--mono); font-weight: 400; font-size: 12.5px; color: var(--ink-2); }
.mini-list { display: flex; flex-wrap: wrap; gap: 6px; }
.mini {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line-2); background: var(--paper);
  border-radius: var(--r-ctl); padding: 5px 9px; font-size: 13px; cursor: pointer;
  transition: border-color 0.15s;
}
.mini:hover { border-color: var(--ink-3); }
.mini code { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.all-good { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; }
.all-good .ico { color: var(--t-elaja); }

/* ───────── pannello laterale ───────── */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: var(--z-scrim); animation: fade 0.2s ease; }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; z-index: var(--z-drawer); top: 0; right: 0; bottom: 0;
  width: min(440px, 100%);
  background: var(--paper);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-pop);
  padding: calc(20px + env(safe-area-inset-top, 0px)) 24px calc(24px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 20px;
  animation: slide 0.26s var(--ease);
}
@keyframes slide { from { transform: translateX(28px); } }
.drawer-head { display: flex; align-items: center; gap: 14px; }
.drawer-head > div { min-width: 0; flex: 1; }
.drawer-head small { display: block; font-size: 12.5px; color: var(--ink-3); margin-bottom: 2px; }
.drawer-head h3 { font-size: 22px; font-weight: 650; line-height: 1.2; letter-spacing: -0.01em; }
.drawer-when { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.drawer-when .disp { font-size: 30px; line-height: 1; }
.drawer-when span:last-child { color: var(--ink-2); font-size: 14px; }
.kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); margin: 0; border-top: 1px solid var(--line); }
.kv dt, .kv dd { padding: 11px 0; margin: 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--ink-2); font-size: 13.5px; }
.kv dd { font-weight: 500; overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 3px; }
.kv dd .faint { font-weight: 400; font-size: 12.5px; }
.tg { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); width: fit-content; }
.tg:hover { text-decoration: underline; text-underline-offset: 3px; }
.tg .ico { width: 15px; height: 15px; color: var(--ink-2); }
.drawer h4 { font-size: 15px; font-weight: 650; margin: 0 0 4px; }

/* ───────── avvisi ───────── */
.banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; margin-bottom: 18px; border-radius: var(--r-panel);
  background: var(--bad-wash); color: var(--bad); font-size: 14px; font-weight: 500;
}
.banner .btn { margin-left: auto; }
.toasts { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: var(--z-toast); display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100% - 32px)); }
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px;
  background: var(--ink); color: var(--bg); box-shadow: var(--shadow-pop);
  font-size: 14px; cursor: pointer; animation: rise 0.3s var(--ease);
}
.toast strong { font-weight: 600; }
.toast span { opacity: 0.75; }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }
.skeleton { border-radius: var(--r-panel); background: linear-gradient(90deg, var(--wash), var(--paper), var(--wash)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.m-only { display: none; }
#view { container-type: inline-size; container-name: view; }

/* ───────── responsive (in base allo spazio reale dei contenuti) ───────── */
@container view (max-width: 1080px) {
  .cols, .cols-2 { grid-template-columns: minmax(0, 1fr); }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro { grid-template-columns: minmax(0, 1fr); }
}
@container view (max-width: 720px) {
  .board { display: none; }
  .board-list { display: block; }
}
@container view (max-width: 860px) {
  .cal-scroll { display: none; }
  .agenda { display: block; }
  .cal-head h2 { flex-basis: 100%; font-size: 20px; }
}
@container view (max-width: 640px) {
  .view { gap: 22px; }
  .panel { padding: 16px; border-radius: 16px; }
  .panel.flush { padding: 0; }
  .intro-total .disp { font-size: 54px; }
  .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 0; }
  .fact { padding: 0 12px; }
  .fact:nth-child(3n+1) { padding-left: 0; border-left: 0; }
  .fact .disp { font-size: 22px; }
  .fact span:last-child { white-space: normal; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .team-card { padding: 14px; }
  .team-card .big { font-size: 32px; }
  .users-grid { grid-template-columns: minmax(0, 1fr); }
  .search-wrap { max-width: none; flex: 1 1 100%; }
  .filters .select { flex: 1 1 calc(50% - 4px); min-width: 0; }
  .filters .segmented { flex: 1 1 100%; }
  .filters .segmented button { flex: 1; }
  th, td { padding: 10px 8px; }
  th:first-child, td:first-child { padding-left: 16px; }
  th:last-child, td:last-child { padding-right: 16px; }

  /* prenotazioni: da tabella a schede */
  .bookings thead { display: none; }
  .bookings, .bookings tbody { display: block; }
  .bookings tr {
    display: grid; grid-template-columns: auto auto minmax(0, 1fr);
    grid-template-areas: "name name stato" "date time team";
    gap: 6px 10px; align-items: center; padding: 12px 16px;
  }
  .bookings td { padding: 0 !important; white-space: normal; }
  .bookings td.c-name { grid-area: name; min-width: 0; }
  .bookings td.c-name strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bookings td.c-stato { grid-area: stato; justify-self: end; }
  .bookings td.c-date { grid-area: date; font-size: 13px; }
  .bookings td.c-time { grid-area: time; font-size: 13px; }
  .bookings td.c-team { grid-area: team; justify-self: end; }
  .bookings td.c-user { display: none; }
  .bookings .m-only { display: block; font-family: var(--mono); font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bookings tr.group-row { display: block; padding: 9px 16px; background: var(--bg); }
  .bookings tr.group-row td { display: block; background: none; }
  .table-foot { padding: 12px 16px; }

  .heat .long { display: none; }
  .heat .m-only { display: inline; }
  .heat th, .heat td { padding-inline: 4px; }
  .heat th:first-child, .heat td:first-child { padding-left: 14px; }
  .heat th:last-child, .heat td:last-child { padding-right: 14px; }
  .heat td.cell span { min-width: 28px; padding: 4px 5px; }
  .chart-scroll .chart { min-width: 560px; }
  .row { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; padding: 10px 2px; }
}

@media (max-width: 860px) {
  .app, .app.side-collapsed { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    width: min(300px, 86vw);
    background: var(--paper);
    box-shadow: var(--shadow-pop);
    transform: translateX(-100%); visibility: hidden;
  }
  .app.side-open .sidebar { transform: none; visibility: visible; }
  .sidebar .side-close { display: inline-flex; }
  .side-scrim { z-index: calc(var(--z-side) - 1); }
  .topbar { gap: 8px; padding-block: 12px 10px; }
  .page-title { font-size: 20px; }
  .topbar .select { max-width: 150px; padding-left: 10px; font-size: 13.5px; }
  .refresh-btn { width: 38px; padding: 0; }
  .refresh-btn .lbl { display: none; }
  .main { padding-block: 0 48px; }
}
@media (max-width: 380px) {
  .topbar .select { max-width: 118px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
.slot.blocked { flex-direction: row; gap: 6px; font-size: 12.5px; }
.slot.blocked .ico { width: 14px; height: 14px; }

/* ───────── caricamento: pittogramma Disobey ───────── */
.loader { min-height: 56vh; display: grid; place-content: center; justify-items: center; gap: 18px; color: var(--ink); }
.loader-mark { width: 64px; height: auto; animation: breathe 1.6s ease-in-out infinite; }
.loader p { font-size: 14px; color: var(--ink-2); }
@keyframes breathe { 0%, 100% { transform: scale(0.9); opacity: 0.35; } 50% { transform: scale(1); opacity: 1; } }

/* ───────── ricerca ───────── */
kbd { font-family: var(--text); font-size: 11.5px; font-weight: 600; color: var(--ink-2); background: var(--wash); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; line-height: 18px; }
.search-btn { color: var(--ink-2); gap: 8px; padding: 0 8px 0 12px; }
.search-btn:hover { color: var(--ink); }
.palette {
  position: fixed; z-index: var(--z-drawer); left: 50%; top: max(9vh, calc(14px + env(safe-area-inset-top, 0px))); transform: translateX(-50%);
  width: min(600px, calc(100% - 24px)); max-height: min(560px, 78vh);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow-pop);
  animation: pop 0.18s var(--ease);
}
@keyframes pop { from { transform: translateX(-50%) scale(0.98); opacity: 0; } }
.pal-input { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pal-input .ico { width: 18px; height: 18px; color: var(--ink-3); }
.pal-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; }
.pal-input input::placeholder { color: var(--ink-3); }
.pal-list { overflow-y: auto; padding: 6px; }
.pal-group { font-size: 12px; color: var(--ink-3); padding: 10px 10px 4px; }
.pal-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: var(--r-ctl); text-align: left; cursor: pointer; }
.pal-item > .ico { width: 18px; height: 18px; color: var(--ink-2); }
.pal-item span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pal-item strong { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-item small { font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-item .go { width: 14px; height: 14px; color: var(--ink-3); opacity: 0; }
.pal-item[aria-selected="true"], .pal-item:hover { background: var(--wash); }
.pal-item[aria-selected="true"] .go { opacity: 1; }
.pal-empty { padding: 26px 16px; color: var(--ink-2); font-size: 14px; text-align: center; }
.pal-foot { display: flex; gap: 16px; padding: 9px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.pal-foot kbd { margin-right: 2px; }

/* ───────── scheda pre-OTO ───────── */
.brief { padding: 14px 16px; border-radius: 14px; background: var(--bg); display: flex; flex-direction: column; gap: 8px; }
.brief-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.brief-top .disp { font-size: 24px; line-height: 1; }
.brief ul, .tc-brief { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ink-2); }
.brief li, .tc-brief li { padding-left: 14px; position: relative; }
.brief li::before, .tc-brief li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 1.5px; background: var(--ink-3); }

/* ───────── vista Oggi ───────── */
.today-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 6px; }
.today-day { font-family: var(--display); font-stretch: 120%; font-weight: 700; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.01em; }
.today-list { display: flex; flex-direction: column; gap: 14px; }
.today-card {
  display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: start;
  padding: 24px; border-radius: var(--r-panel);
  background: color-mix(in srgb, var(--tc) var(--tint), var(--paper));
}
.tc-time { display: flex; flex-direction: column; gap: 8px; }
.tc-time .disp { font-size: 56px; line-height: 0.95; font-stretch: 122%; font-weight: 700; }
.tc-count { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.tc-count.live { color: var(--ink); }
.tc-count.live::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: currentColor; margin-right: 7px; animation: breathe 1.6s ease-in-out infinite; }
.tc-count.done { color: var(--ink-3); }
.tc-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tc-name { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; font-size: 28px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.15; color: var(--ink); overflow-wrap: anywhere; }
.tc-name:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.tc-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.tc-meta .who { font-size: 14.5px; }
.tc-brief { font-size: 15px; }
.today-rest { display: flex; gap: 8px; flex-wrap: wrap; }
.today-rest span { font-size: 13.5px; color: var(--ink-2); padding: 5px 10px; border-radius: var(--r-ctl); box-shadow: inset 0 0 0 1px var(--line-2); }
:fullscreen .sidebar, :fullscreen .topbar { display: none; }
:fullscreen .app { grid-template-columns: minmax(0, 1fr); }
:fullscreen .main { padding-top: 40px; }

/* ───────── riempimento ───────── */
.fill-chart .seg { fill: var(--ink); }
.fill-chart .seg.cur { fill: var(--ink-3); }
.fill-chart g.col:hover .seg { fill: var(--t-salvatore); }
.demand-note { font-size: 14px; color: var(--ink-2); margin-bottom: 14px; }
.demand-note strong { color: var(--ink); font-weight: 600; }
.demand { display: grid; grid-template-columns: 110px repeat(var(--cols), minmax(0, 1fr)) 64px; gap: 6px; align-items: stretch; }
.demand .dh { font-size: 12.5px; color: var(--ink-3); padding: 0 4px 2px; }
.demand .dl { display: flex; align-items: center; font-size: 14px; font-weight: 500; }
.demand .dc { border-radius: 12px; padding: 12px; min-height: 66px; display: flex; flex-direction: column; justify-content: space-between; gap: 2px; background: color-mix(in srgb, var(--ink) calc(var(--a) * 1%), var(--paper)); }
.demand .dc .disp { font-size: 22px; line-height: 1; }
.demand .dc small { font-size: 12px; opacity: 0.75; }
.demand .dc.zero { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-3); }
.demand .dt { display: flex; align-items: center; justify-content: flex-end; font-size: 18px; color: var(--ink-2); }

/* ───────── notifiche e iPhone ───────── */
.notify-btn { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); background: var(--paper); cursor: pointer; font-size: 13px; color: var(--ink); text-align: left; }
.notify-btn:hover { background: var(--wash); }
.notify-btn .ico { width: 16px; height: 16px; }
.notify-btn small { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.notify-btn.on { border-color: transparent; background: var(--wash); }
.notify-hint { display: flex; gap: 8px; font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.notify-hint .ico { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.notify:empty { display: none; }

@container view (max-width: 640px) {
  .today-card { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px; }
  .tc-time { flex-direction: row; align-items: baseline; gap: 12px; }
  .tc-time .disp { font-size: 40px; }
  .tc-name { font-size: 22px; }
  .demand { grid-template-columns: 74px repeat(var(--cols), minmax(0, 1fr)) 34px; gap: 4px; }
  .demand .dl { font-size: 13px; }
  .demand .dc { padding: 9px; min-height: 58px; }
  .demand .dc .disp { font-size: 18px; }
  .demand .dt { font-size: 15px; }
}
@media (max-width: 860px) {
  .search-btn { width: 38px; padding: 0; }
  .search-btn .lbl, .search-btn kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .loader-mark { opacity: 1; transform: none; }
}
