/* AR Scout — bianco e nero su carta sgranata, con due accenti: verde acido (letto, azioni principali) e magenta (dedotto, avvisi).
   Font dal kit brkn_rt (cartella fonts/), sigilli neo-tribali (cartella sigils/). Livelli di grigio: fondo < pannelli < campi. */
@font-face { font-family: "AR Display"; src: url("../fonts/display.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "AR Ext"; src: url("../fonts/hn-ext.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "AR Thin"; src: url("../fonts/hn-ultralight.otf") format("opentype"); font-weight: 200; font-display: swap; }

:root {
  --bg: #e9e9e6; --panel: #f5f5f3; --field: #ffffff; --soft: #f0f0ed;
  --ink: #000000; --mute: #66665f; --faint: #9f9f98; --line: #d0d0cb;
  --acc: #c8ff2e; --acc-ink: #000000; --hot: #d4007a; --grain: .075;
  --shadow: 0 18px 50px rgba(0,0,0,.16);
  --display: "AR Display", "AR Thin", "Helvetica Neue", Arial, sans-serif;
  --ui: "AR Ext", "Helvetica Neue", Arial, sans-serif;
  --thin: "AR Thin", "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --r: 14px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #000000; --panel: #121213; --field: #1c1c1e; --soft: #18181a;
  --ink: #ffffff; --mute: #94948f; --faint: #5c5c58; --line: #2c2c2e;
  --acc: #c8ff2e; --acc-ink: #000000; --hot: #ff2ea6; --grain: .06; --orbit: #c8ff2e;
  --shadow: 0 18px 50px rgba(0,0,0,.7);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--acc); color: var(--acc-ink); }
/* grana della carta */
body::before { content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: var(--grain);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1.1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
:root[data-theme="dark"] body::before { filter: invert(1); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- segno e sigilli ---------- */
.mark { width: 28px; height: 28px; flex: none; color: var(--ink); }
.sigil { display: block; background: currentColor; -webkit-mask: var(--s) center / contain no-repeat; mask: var(--s) center / contain no-repeat; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(var(--safe-t) + 10px) clamp(16px, 4vw, 40px) 10px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .w { font: 500 16px/1 var(--ui); letter-spacing: .01em; }
.top-actions { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--line); padding: 8px 13px; border-radius: 999px;
  font: 500 12px/1 var(--ui); letter-spacing: .01em; text-decoration: none; white-space: nowrap; }
.pill:hover { border-color: var(--ink); }
.pill:disabled { opacity: .35; cursor: default; }
.pill .n { font-family: var(--ui); background: var(--ink); color: var(--bg); border-radius: 999px; min-width: 18px; padding: 3px 5px; font-size: 10px; text-align: center; }
.icon-btn { width: 36px; height: 36px; padding: 0; justify-content: center; }
.icon-btn svg { width: 17px; height: 17px; }

main { position: relative; max-width: 1280px; margin: 0 auto; padding: 22px clamp(16px, 4vw, 40px) calc(120px + var(--safe-b)); }

/* ---------- titoli ---------- */
.title { display: flex; align-items: flex-end; gap: 16px; margin: 6px 0 22px; flex-wrap: wrap; }
.title h1 { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 10vw, 96px); line-height: .86; margin: 0; letter-spacing: .01em; overflow-wrap: anywhere; }
.title .count { font-family: var(--thin); font-weight: 200; font-size: clamp(40px, 8vw, 80px); line-height: .86; color: var(--mute); }
h2 { font: 500 13px/1.2 var(--ui); margin: 30px 0 10px; }
.muted { color: var(--mute); font-size: 14px; }
.lbl { font: 500 11px/1.25 var(--ui); color: var(--mute); }

/* ---------- pulsanti ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ink); background: transparent;
  padding: 12px 20px; border-radius: 999px; text-decoration: none; font: 500 14px/1 var(--ui); min-height: 44px; }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.quiet { border-color: var(--line); }
.btn.danger { border-color: var(--line); color: var(--mute); }
.btn.danger:hover { border-color: var(--ink); color: var(--ink); }
.btn:disabled { opacity: .35; cursor: default; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn, .pill, .fab, .chip, .del, .ticket, .seg button, .link-row { transition: transform .15s ease-out, background-color .15s, border-color .15s, color .15s; }
.btn:active, .pill:active, .fab:active, .chip:active, .del:active, .seg button:active, .link-row:active { transform: scale(.97); }

.fab { position: fixed; right: clamp(16px, 4vw, 40px); bottom: calc(20px + var(--safe-b)); z-index: 25; display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--bg); text-decoration: none; border-radius: 999px; padding: 16px 22px 16px 18px; font: 500 15px/1 var(--ui); box-shadow: var(--shadow); }
.fab .mark { width: 20px; height: 20px; color: var(--bg); }

/* ---------- elenco ---------- */
.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.search { flex: 1; min-width: 0; padding: 13px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 16px; outline: none; }
.search:focus { border-color: var(--ink); }
.search::placeholder { color: var(--faint); }
.toolbar .pill { padding: 13px 16px; font-size: 13px; }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.active-filters:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; font: 500 12px/1 var(--ui); background: transparent; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .x { font-size: 14px; line-height: .6; }
.chip.clear { border-style: dashed; color: var(--mute); }

.lib { display: grid; gap: 28px; align-items: start; }
.list { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 720px) { .list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) {
  .lib.has-aside { grid-template-columns: 250px 1fr; }
  .lib .list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .toolbar .bFilters { display: none; }
}

/* biglietto */
.ticket { position: relative; display: grid; grid-template-columns: 1fr 64px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; background: var(--bg); min-width: 0; }
.ticket:hover { border-color: var(--ink); }
.ticket .body { padding: 16px 16px 14px; min-width: 0; display: flex; flex-direction: column; }
.ticket .name { font-family: var(--display); font-size: 30px; line-height: .95; letter-spacing: .01em; overflow-wrap: anywhere; }
.ticket .sub { margin-top: 6px; font-size: 13px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket .tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px; }
.tag { font: 500 11px/1 var(--ui); padding: 5px 8px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.tag.solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tag.dash { border-style: dashed; border-color: var(--mute); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: auto; padding-top: 14px; }
.stats > span { border-top: 1px solid var(--line); padding-top: 9px; font: 500 10.5px/1.25 var(--ui); color: var(--mute); }
.ticket .body { container-type: inline-size; }
.stats b { display: block; font-family: var(--thin); font-weight: 200; font-size: clamp(16px, 8.6cqi, 28px); line-height: 1; color: var(--ink); margin-bottom: 4px; letter-spacing: -.01em; }
.stub { position: relative; border-left: 1px dashed var(--line); display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0; }
.stub::before, .stub::after { content: ""; position: absolute; left: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.stub::before { top: -9px; border-top-color: transparent; border-left-color: transparent; transform: rotate(45deg); }
.stub::after { bottom: -9px; border-bottom-color: transparent; border-right-color: transparent; transform: rotate(45deg); }
.stub .sigil { width: 40px; height: 56px; }
.stub .id { writing-mode: vertical-rl; transform: rotate(180deg); font: 500 11px/1 var(--ui); letter-spacing: .08em; }
.empty { text-align: center; padding: 64px 16px; color: var(--mute); border: 1px dashed var(--line); border-radius: var(--r); grid-column: 1 / -1; }
.empty .sigil { width: 60px; height: 84px; margin: 0 auto 16px; color: var(--ink); }
.empty b { color: var(--ink); font-weight: 600; }

/* ---------- filtri: pannello a lato (desktop) o foglio dal basso (telefono) ---------- */
.filters h3 { font: 500 13px/1.2 var(--ui); margin: 0 0 10px; }
.fgroup { padding: 14px 0; border-top: 1px solid var(--line); }
.fgroup:first-of-type { border-top: 0; padding-top: 4px; }
.fgroup .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.fgroup .chip .c { color: inherit; opacity: .55; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sheet-head strong { font-family: var(--display); font-size: 28px; font-weight: 400; }
.sheet-foot { display: none; }
@media (min-width: 1100px) {
  .filters { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; padding-right: 4px; }
  .filters .sheet-head .pill.close { display: none; }
}
@media (max-width: 1099.98px) {
  .filters { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; max-height: 82vh; overflow: auto; background: var(--bg);
    border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; padding: 10px 18px calc(18px + var(--safe-b)); box-shadow: var(--shadow);
    transform: translateY(105%); visibility: hidden; transition: transform .32s var(--ease), visibility 0s .32s; }
  .filters::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 12px; }
  .filters.open { transform: none; visibility: visible; transition: transform .32s var(--ease); }
  .sheet-foot { display: flex; position: sticky; bottom: calc(-18px - var(--safe-b)); background: var(--bg); padding: 12px 0 0; margin-top: 8px; border-top: 1px solid var(--line); }
  .sheet-foot .btn { flex: 1; }
  @media (min-width: 720px) { .filters { left: auto; right: 16px; bottom: 16px; width: 380px; border-radius: 22px; border: 1px solid var(--line); } }
}
.scrim { position: fixed; inset: 0; z-index: 45; background: rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.on { opacity: 1; pointer-events: auto; }

/* ---------- nuova scheda ---------- */
.narrow { max-width: 760px; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 1px dashed var(--ink); border-radius: var(--r); padding: 36px 16px; text-align: center; cursor: pointer; }
.drop:hover { background: var(--soft); }
.drop .sigil { width: 46px; height: 64px; margin-bottom: 8px; }
.drop strong { font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin-top: 12px; }
.thumb { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); aspect-ratio: 9/16; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1); }
.thumb .x { position: absolute; top: 5px; right: 5px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 50%; width: 28px; height: 28px; }
.thumb .st { position: absolute; left: 0; right: 0; bottom: 0; background: var(--ink); color: var(--bg); font: 500 10px/1 var(--ui); padding: 6px; }
textarea, .field input, .field select { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 16px; outline: none; font-family: var(--body); }
textarea:focus, .field input:focus, .field select:focus { border-color: var(--ink); }
textarea { min-height: 100px; resize: vertical; }
textarea::placeholder { color: var(--faint); }
select { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.progress { height: 2px; background: var(--line); overflow: hidden; margin: 18px 0 8px; }
.progress > i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .2s; }

/* ---------- scheda: interruttore Essentials / Scheda completa ---------- */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin: 0 0 22px; }
.seg button, .seg a { text-decoration: none; display: inline-block; border: 0; background: transparent; border-radius: 999px; padding: 9px 16px; font: 500 13px/1 var(--ui); color: var(--mute); }
.seg button[aria-selected="true"], .seg a[aria-selected="true"] { background: var(--ink); color: var(--bg); }

/* Essentials */
.ess { display: grid; gap: 28px; }
.ess-head { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: end; }
.ess-head .sig-btn { justify-self: start; border: 0; background: none; padding: 0; color: var(--ink); }
.ess-head .sig-btn .sigil { width: 96px; height: 134px; }
.ess-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(52px, 13vw, 128px); line-height: .84; margin: 0; overflow-wrap: anywhere; }
.ess-head .who { margin-top: 12px; color: var(--mute); font-size: 15px; }
@media (min-width: 720px) { .ess-head { grid-template-columns: auto 1fr; gap: 28px; } .ess-head .sig-btn .sigil { width: 120px; height: 168px; } }
.links { border-top: 1px solid var(--ink); }
.link-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; align-items: baseline; padding: 15px 2px; border-bottom: 1px solid var(--line); text-decoration: none; min-height: 56px; }
a.link-row:hover { padding-left: 10px; }
.link-row .p { font: 500 12px/1.2 var(--ui); }
.link-row .h { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.link-row .v { font-family: var(--thin); font-weight: 200; font-size: 30px; line-height: 1; text-align: right; }
.link-row .v small { display: block; font: 500 10.5px/1.3 var(--ui); color: var(--mute); }
.link-row.off .h { color: var(--faint); }
.link-row .go { font-size: 12px; }
@media (max-width: 480px) { .link-row { grid-template-columns: 1fr auto; } .link-row .p { grid-column: 1 / -1; color: var(--mute); } }
.facts { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--ink); }
.fact { padding: 14px 2px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: baseline; }
.fact .v { font-size: 16px; overflow-wrap: anywhere; }
.fact .v.nt { color: var(--faint); }
@media (min-width: 720px) { .ess-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: start; } }
.ess-grid > div > h2:first-child { margin-top: 0; }

/* Scheda completa */
.section { padding: 4px 0 18px; border-top: 1px solid var(--ink); margin-bottom: 8px; }
.section > h3 { margin: 14px 0 6px; font: 500 13px/1.2 var(--ui); }
.fields { display: grid; grid-template-columns: 1fr; gap: 4px 18px; }
@media (min-width: 720px) { .fields { grid-template-columns: 1fr 1fr; } .field.wide { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .fields { grid-template-columns: 1fr 1fr 1fr; } }
.field label { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin: 10px 0 5px; font: 500 11.5px/1.2 var(--ui); color: var(--mute); }
/* stato del dato = forma, non colore */
.badge { font: 500 10px/1 var(--ui); padding: 4px 7px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.badge.ok { background: var(--ink); color: var(--bg); }
.badge.warn { border: 1px dashed var(--ink); color: var(--ink); }
.badge.nt { color: var(--faint); padding-left: 0; padding-right: 0; }
.badge.man { border-color: var(--ink); color: var(--ink); }
.field.is-nt input, .field.is-nt select { color: var(--faint); font-style: italic; }
.field.is-warn input, .field.is-warn select, .field.is-warn textarea { border-style: dashed; border-color: var(--mute); }
.src { font-size: 11.5px; color: var(--mute); margin-top: 4px; }
.legend { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; align-items: center; }

table.tracks { width: 100%; border-collapse: collapse; }
table.tracks th { font: 500 11px/1.2 var(--ui); color: var(--mute); text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); }
table.tracks td { padding: 4px; border-bottom: 1px solid var(--line); }
table.tracks input { width: 100%; border: 1px solid transparent; padding: 8px 6px; border-radius: 8px; background: transparent; font-size: 16px; outline: none; }
table.tracks input:focus { border-color: var(--ink); }
table.tracks td.n { width: 30px; font: 500 12px/1 var(--ui); }
table.tracks .p { width: 116px; }
table.tracks td.d { width: 34px; padding-right: 0; }
table.tracks .p input { font-family: var(--thin); font-weight: 200; font-size: 21px; text-align: right; }
.del { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--mute); padding: 0; font-size: 15px; }
.del:hover { border-color: var(--ink); color: var(--ink); }
.total { font-family: var(--thin); font-weight: 200; font-size: 28px; color: var(--ink); }
details { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
details summary { font: 500 12px/1.4 var(--ui); cursor: pointer; color: var(--mute); }
details pre { white-space: pre-wrap; font: 12px/1.5 ui-monospace, Menlo, Consolas, monospace; background: var(--soft); padding: 12px; border-radius: 10px; max-height: 260px; overflow: auto; }

.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); padding: 10px clamp(16px, 4vw, 40px) calc(10px + var(--safe-b)); }
.bar .row { max-width: 1280px; margin: 0 auto; justify-content: flex-end; }
.bar .dirty { margin-right: auto; font-size: 13px; color: var(--mute); }

#toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%) translateY(16px) scale(.97); opacity: 0; z-index: 70;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font: 500 13px/1.2 var(--ui);
  transition: opacity .2s ease-out, transform .2s ease-out; pointer-events: none; max-width: 90vw; }
#toast.show { opacity: 1; transform: translateX(-50%); }
.hint { position: relative; border: 1px dashed var(--ink); border-radius: 12px; padding: 11px 14px 11px 40px; font-size: 14px; margin: 0 0 10px; }
.hint::before { content: "!"; position: absolute; left: 12px; top: 11px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 600 12px/18px var(--ui); text-align: center; }
.menu-panel { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-top: 24px; }
.menu-panel h3 { margin: 0 0 6px; font: 500 14px/1.2 var(--ui); }

/* ---------- tutorial primo avvio ---------- */
.tour-scrim { position: fixed; inset: 0; z-index: 80; }
.tour-hole { position: fixed; z-index: 81; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(0,0,0,.55); outline: 2px solid #fff; outline-offset: 3px; pointer-events: none;
  transition: all .3s var(--ease); }
.tour-hole.none { box-shadow: 0 0 0 9999px rgba(0,0,0,.55); outline: 0; width: 0 !important; height: 0 !important; left: 50% !important; top: 50% !important; }
.tour-card { position: fixed; z-index: 82; width: min(340px, calc(100vw - 32px)); background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px; box-shadow: var(--shadow); transition: top .3s var(--ease), left .3s var(--ease); }
.tour-card .sigil { width: 26px; height: 36px; margin-bottom: 10px; }
.tour-card h4 { margin: 0 0 8px; font: 500 18px/1.15 var(--ui); }
.tour-card p { margin: 0 0 16px; font-size: 14.5px; color: var(--ink); }
.tour-card .row { justify-content: space-between; }
.tour-card .dots { display: flex; gap: 5px; }
.tour-card .dots i { width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--ink); }
.tour-card .dots i.on { background: var(--ink); }
.tour-card .btn { min-height: 38px; padding: 10px 16px; font-size: 13px; }
.tour-card .skip { background: none; border: 0; color: var(--mute); font: 500 12px/1 var(--ui); padding: 8px 0; }

/* ---------- movimento (dai reel: da scala .97, risposta sotto 400 ms) ---------- */
@keyframes enter { from { opacity: 0; transform: scale(.97); } }
.enter > * { animation: enter .32s var(--ease) backwards; animation-delay: calc(min(var(--i, 0), 8) * 35ms); }
.tour-card.pop { animation: enter .22s ease-out backwards; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (hover: none) { .ticket:hover, a.link-row:hover { border-color: var(--line); padding-left: 2px; } }

/* ================= livelli di grigio + accenti (05/12/2026, richiesta utente) ================= */
.top, .bar { background: color-mix(in srgb, var(--panel) 86%, transparent); }
.pill { background: var(--panel); }
.pill:hover { border-color: var(--ink); }
.pill .n { background: var(--acc); color: var(--acc-ink); }
.search, textarea, .field input, .field select { background: var(--field); }
table.tracks input:focus { background: var(--field); }
.btn { background: var(--panel); }
.btn.primary { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.btn.quiet, .btn.danger { background: var(--panel); }
.btn.danger:hover { border-color: var(--hot); color: var(--hot); }
.fab { background: var(--acc); color: var(--acc-ink); box-shadow: 0 0 0 6px color-mix(in srgb, var(--acc) 22%, transparent), var(--shadow); }
.fab .mark { color: var(--acc-ink); }
.chip { background: var(--panel); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.ticket { background: var(--panel); }
.stub::before, .stub::after { background: var(--bg); }
.tag { background: var(--field); }
.tag.solid { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.tag.dash { background: transparent; }
.empty { background: var(--panel); }
.empty b { background: var(--acc); color: var(--acc-ink); padding: 1px 6px; border-radius: 4px; }
.drop { background: var(--panel); }
.drop:hover { background: var(--field); }
.thumb .st { background: var(--acc); color: var(--acc-ink); }
.progress > i { background: var(--acc); box-shadow: 0 0 10px var(--acc); }
.seg { background: var(--panel); }
/* stato del dato: pieno verde = letto, tratteggio magenta = dedotto */
.badge.ok { background: var(--acc); color: var(--acc-ink); }
.badge.warn { border-color: var(--hot); color: var(--hot); }
.field.is-warn input, .field.is-warn select, .field.is-warn textarea { border-color: var(--hot); }
.hint { background: var(--panel); border-color: var(--hot); }
.hint::before { background: var(--hot); color: #fff; }
#toast { background: var(--acc); color: var(--acc-ink); }
/* pannelli: sezioni, Essentials, filtri, menu */
.section { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 18px 18px; margin-bottom: 14px; }
.section > h3 { display: flex; align-items: center; gap: 8px; }
.section > h3::before, .ess-grid h2::before { content: ""; width: 9px; height: 9px; background: var(--acc); border-radius: 2px; transform: rotate(45deg); flex: none; }
.ess-grid h2 { display: flex; align-items: center; gap: 8px; }
.links, .facts { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 0 16px; border-top: 1px solid var(--line); }
.link-row:last-child, .fact:last-child { border-bottom: 0; }
a.link-row:hover { padding-left: 10px; background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 35%, transparent), transparent 60%); }
.menu-panel { background: var(--panel); }
.tour-card { background: var(--panel); }
.tour-hole { outline-color: var(--acc); }
.tour-card .dots i.on { background: var(--acc); border-color: var(--ink); }
.sheet-head strong, .tour-card h4 { color: var(--ink); }
@media (min-width: 1100px) { .filters { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; } }
@media (max-width: 1099.98px) { .filters, .sheet-foot { background: var(--panel); } }
.fab { --orbit: currentColor; }

/* regola font: il display (mono del kit) solo da 28 px in su; sotto, Helvetica Neue Medium Extended */
/* profili possibili (stesso @) e ricerca su altri siti */
.ess-grid h2 .find { margin-left: auto; font-size: 11.5px; padding: 7px 11px; }
.ess-grid h2 .find:disabled { opacity: .5; }
.link-row.maybe .h { color: var(--mute); font-style: italic; }
/* avviso: server non raggiungibile */
#netbar { position: sticky; top: 60px; z-index: 25; margin: 0 auto; max-width: 1200px; display: flex; align-items: center; gap: 12px; justify-content: space-between;
  padding: 10px 16px; background: var(--panel); border: 1px dashed var(--hot); border-radius: 12px; font-size: 13px; color: var(--ink); }
#netbar[hidden] { display: none; }

/* tante schede: gruppi di screenshot per artista */
.groups { display: grid; gap: 10px; margin: 10px 0 24px; }
.group { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; }
a.group { grid-template-columns: auto 1fr auto; }
.group.off { opacity: .5; }
.group .g-pick input { width: 22px; height: 22px; accent-color: var(--ink); }
.g-shots { display: flex; }
.g-shots img { width: 34px; height: 60px; object-fit: cover; border-radius: 6px; border: 2px solid var(--panel); filter: grayscale(1); }
.g-shots img + img { margin-left: -14px; }
.g-txt { display: grid; gap: 3px; min-width: 0; }
.g-txt strong { font: 500 15px/1.2 var(--ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-txt .badge { justify-self: start; }
.group .g-sig { width: 34px; height: 34px; }
.group .go { font: 500 12px/1 var(--ui); color: var(--mute); }
.link-row.maybe .h .small { display: block; white-space: normal; font-style: normal; line-height: 1.35; margin-top: 2px; word-break: break-word; }
.link-row .acts { display: flex; gap: 6px; justify-content: flex-end; }
.link-row .acts .pill { padding: 7px 11px; font-size: 11.5px; background: var(--field); }
.link-row .acts button.pill { border-color: var(--ink); }
.small { font-size: 12.5px; margin: 8px 2px 0; }
@media (max-width: 480px) { .link-row .acts { grid-column: 1 / -1; justify-content: flex-start; } }.link-row .inl { display: inline-block; margin-left: 8px; font: 500 11.5px/1 var(--ui); text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
