/* Palette C.I.N.O.: rosso del logo + grafite. Font: Archivo (titoli), IBM Plex Sans (testo), IBM Plex Mono (coordinate). */
:root {
  --bg: #f6f4f4; --surface: #ffffff; --surface-2: #efe9ea; --fg: #1d1a1b; --muted: #6b6264;
  --line: #e0d6d8; --brand: #c4001f; --accent: #df0023; --accent-fg: #ffffff;
  --live: #1f9d55; --recent: #c98a0c; --idle: #8a9694; --danger: #b3261e;
  --f-display: "Archivo", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --r: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151213; --surface: #1f1a1b; --surface-2: #2a2324; --fg: #f1ecec; --muted: #a89c9e;
    --line: #3a3031; --brand: #ff6b7d; --accent: #ff3b55; --accent-fg: #ffffff;
    --live: #3ccf7f; --recent: #f2b134; --idle: #6d7d7a; --danger: #ff8a80;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font: 15px/1.5 var(--f-body); }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; margin: 0; text-wrap: balance; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
button, .btn {
  font: 600 15px var(--f-body); border: 1px solid var(--line); background: var(--surface);
  color: var(--fg); border-radius: var(--r); padding: 10px 14px; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
button:hover, .btn:hover { border-color: var(--brand); }
button:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
button.primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
button.danger { color: var(--danger); }
button:disabled { opacity: .5; cursor: default; }
input, select, textarea {
  font: 15px var(--f-body); width: 100%; padding: 10px 12px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--surface); color: var(--fg);
}
label.field { display: grid; gap: 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--idle); flex: none; }
.s-live .dot { background: var(--live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 25%, transparent); }
.s-recent .dot { background: var(--recent); }
.s-idle .dot, .s-none .dot { background: var(--idle); }
.banner { background: var(--surface-2); border: 1px dashed var(--line); border-radius: var(--r); padding: 10px 12px; font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: var(--r); font-weight: 600; z-index: 9999; max-width: calc(100% - 32px); }
@media (prefers-reduced-motion: no-preference) { .toast { animation: up .2s ease-out; } @keyframes up { from { opacity: 0; transform: translate(-50%, 8px); } } }
