/* =========================================================
   WAYPOINT MANAGEMENT — stile
   Mondo: nero quasi assoluto, oro piatto, serif per titoli e cifre.
   Regole: colore solo su dati, azione primaria e marchio; superfici
   separate da un gradino di tono e un bordo da 1px; nessuna ombra
   su ciò che è fermo; raggi morbidi (card 20 · controlli a pillola).
   ========================================================= */
:root {
  --ground: #050506;
  --surface: #0d0d0f;
  --raised: #151518;
  --active: #1c1c20;
  --border: #1d1d21;
  --rule: #17171a;
  --control: #34343a;

  --text: #f1ede6;
  --muted: #b3aea5;      /* secondario · 9.6:1 sul fondo */
  --faint: #8f8a82;      /* meta e segnaposto · 6:1 sul fondo */

  --gold: #d4b47a;       /* l'unico colore: dati, azione primaria, marchio */
  --gold-ink: #e8d2a2;   /* oro per testo piccolo */
  --gold-tint: rgba(212, 180, 122, 0.12);
  --on-gold: #15110a;

  --positive: #7fc99a;
  --negative: #e58a7a;
  --warn: #e2b36f;
  --grid: #202024;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-card: 20px; --r-inner: 14px;
  --gap: 16px; --pad: 22px;
  --ease: cubic-bezier(.16, .84, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body { background: var(--ground); color: var(--text); font: 400 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
::selection { background: var(--gold); color: var(--on-gold); }
::placeholder { color: var(--faint); opacity: 1; }
input, textarea { caret-color: var(--gold); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #232327; border-radius: 10px; border: 3px solid var(--ground); }
::-webkit-scrollbar-track { background: transparent; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.ico { flex: none; display: block; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); } .dim { color: var(--faint); } .small { font-size: 12px; }
.gold { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; }
.gold-t { color: var(--gold-ink); }
.warn-text { color: var(--warn); }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; } /* solo nomi utente e codici d'accesso */ /* taste-skill-ignore: solo nomi utente e codici d'accesso */
.up { color: var(--positive); } .down { color: var(--negative); }
.num, .kpi-value, .rm-v, .ev-time, .ts, .plat-stat, .v, .count-pill, .bar-top span:last-child, .date-box .d { font-variant-numeric: tabular-nums lining-nums; }
.mt { margin-top: var(--gap); }

/* ================= LOGIN ================= */
.login { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 100vh; }
.login-art { position: relative; overflow: hidden; padding: 44px 56px 36px; display: flex; flex-direction: column; background: #030304; }
@keyframes breathe { from { transform: scale(1.02); } to { transform: scale(1.09) translateY(-1%); } }
/* velo neutro sopra la foto: tiene leggibile il testo */
.dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.necklace { position: absolute; top: 0; right: 2%; width: 58%; height: 70%; pointer-events: none; z-index: 1; filter: drop-shadow(0 18px 26px rgba(0,0,0,.7)); opacity: 0; animation: neckIn 1.6s var(--ease) .3s forwards; } /* taste-skill-ignore: la collana pende davanti allo sfondo */
@keyframes neckIn { from { opacity: 0; transform: translateY(-46px); } to { opacity: 1; transform: none; } }
.pend-w { font-family: var(--serif); font-weight: 700; font-size: 210px; }
.spk, .flare { opacity: 0; transform-box: fill-box; transform-origin: center; }
.spk { animation: twinkle 5.5s ease-in-out infinite; }
.flare { animation: flare 6s ease-in-out infinite; }
@keyframes twinkle { 0%, 72%, 100% { opacity: 0; } 82% { opacity: .95; } 90% { opacity: .15; } }
@keyframes flare { 0%, 78%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 86% { opacity: .95; transform: scale(1) rotate(25deg); } 94% { opacity: 0; transform: scale(.4) rotate(45deg); } }

.login-brand, .login-copy, .marquee { position: relative; z-index: 2; }
.login-copy { margin-top: auto; margin-bottom: 34px; }
.login-title { font-family: var(--serif); font-size: clamp(52px, 6.2vw, 110px); line-height: .9; letter-spacing: .08em; white-space: nowrap; font-weight: 400; color: var(--gold); margin-bottom: 22px; }
.login-title span { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(28px); animation: letterIn 1.1s var(--ease) forwards; animation-delay: calc(.25s + var(--i) * 75ms); }
@keyframes letterIn { to { opacity: 1; filter: blur(0); transform: none; } }
.reveal { opacity: 0; transform: translateY(14px); animation: revealIn .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes revealIn { to { opacity: 1; transform: none; } }
.login-copy p { max-width: 460px; font-size: 17px; line-height: 1.5em; color: var(--muted); }
.rot-pre { margin-right: .25em; }
.rot { display: inline-block; font-size: 1.25em; height: 1.5em; line-height: 1.5em; overflow: hidden; vertical-align: bottom; position: relative; top: .18em; }
.rot-list { display: flex; flex-direction: column; }
.rot-list span { height: 1.5em; line-height: 1.5em; color: var(--gold-ink); font-family: var(--serif); font-style: italic; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); } /* taste-skill-ignore: maschera che sfuma i bordi della striscia, non un colore */
.mq-track { display: flex; align-items: center; gap: 26px; width: max-content; animation: marquee 40s linear infinite; font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--muted); }
.mq-track svg { color: var(--gold); opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

.login-panel { display: grid; place-items: center; padding: 40px 24px; background: var(--ground); }
.login-card { width: 100%; max-width: 384px; }
.login-card.flip-out { animation: flipOut .22s ease-out forwards; }
.login-card.flip-in { animation: flipIn .45s var(--ease); }
.login-card.shake { animation: shake .45s cubic-bezier(.36,.07,.19,.97); }
@keyframes flipOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes flipIn { from { opacity: 0; transform: translateY(12px); } }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.role-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 30px; padding: 6px 6px 6px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.login-card.is-manager .role-switch { background: var(--raised); border-color: rgba(212,180,122,.3); }
.rs-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--gold-ink); }
.rs-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--control); color: var(--muted); font-size: 13px; font-weight: 600; transition: background-color .2s, color .2s, border-color .2s; }
.rs-btn:hover { color: var(--on-gold); background: var(--gold); border-color: var(--gold); }
.lc-title { font-family: var(--serif); font-size: 40px; font-weight: 400; line-height: 1.05; margin-bottom: 20px; }
.lc-lead { margin: -6px 0 22px; line-height: 1.6; }
.lc-lead b { color: var(--gold-ink); font-weight: 600; }
.lc-form { display: flex; flex-direction: column; gap: 14px; }
.lc-switch { margin-top: 20px; font-size: 13px; color: var(--muted); }
.gold-link { color: var(--gold-ink); font-weight: 600; font-size: 13px; padding: 0; }
.gold-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.back-link { margin-bottom: 18px; padding: 0; }
.sent-badge { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--on-gold); margin-bottom: 20px; }
.secure-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--faint); line-height: 1.55; }
.secure-note .ico { color: var(--gold); margin-top: 1px; }
.mono-in { font-family: ui-monospace, Consolas, monospace; letter-spacing: .06em; } /* taste-skill-ignore: solo nomi utente e codici d'accesso */
.err { color: var(--negative); font-size: 12.5px; min-height: 18px; }

/* ================= SHELL ================= */
.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 14px 16px; border-right: 1px solid var(--rule); background: var(--ground); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 18px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--on-gold); font-family: var(--serif); font-size: 22px; font-weight: 600; flex: none; }
.brand-mark.lg { width: 52px; height: 52px; font-size: 30px; }
.brand-name { font-family: var(--serif); font-size: 19px; letter-spacing: .28em; font-weight: 500; }
.brand-sub { font-size: 12px; color: var(--faint); }
.role-tag { display: inline-flex; align-items: center; gap: 7px; margin: 0 10px 18px; font-size: 12.5px; color: var(--gold-ink); }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav a, .foot-link { position: relative; display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px; border-radius: 999px; color: var(--muted); font-weight: 500; transition: background-color .2s, color .2s; width: 100%; text-align: left; }
.nav a:hover, .foot-link:hover { color: var(--text); background: var(--surface); }
.nav a.active { color: var(--text); background: var(--active); }
.nav a.active .ico { color: var(--gold); }
.nav-badge { margin-left: auto; min-width: 20px; padding: 0 6px; font-size: 11px; line-height: 20px; text-align: center; border-radius: 10px; background: var(--gold); color: var(--on-gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.nav-badge:empty { display: none; }
.side-foot { border-top: 1px solid var(--rule); padding-top: 10px; display: flex; flex-direction: column; gap: 2px; }

.main { min-width: 0; padding: 0 40px 64px; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 32px 0 26px; }
.crumbs { font-size: 13px; color: var(--faint); margin-bottom: 8px; }
.crumbs:empty { display: none; }
.crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.crumb:hover { color: var(--gold-ink); }
h1 { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.1; }
h2 { font-size: 15px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
.view-hint { color: var(--muted); font-size: 14px; margin-top: 8px; max-width: 620px; }
.view-hint:empty { display: none; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.today { font-size: 13px; color: var(--faint); }
.today::first-letter { text-transform: uppercase; }
.me-chip { display: flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); text-align: left; transition: border-color .2s; }
.me-chip:hover { border-color: var(--control); }
.mc-name { font-size: 13px; font-weight: 600; line-height: 1.2; }
.mc-role { font-size: 12px; color: var(--faint); }

/* ================= BASE ================= */
.grid { display: grid; gap: var(--gap); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-2 { grid-template-columns: repeat(2, 1fr); align-items: start; }
.g-main { grid-template-columns: 1.7fr 1fr; align-items: start; }
.stack { display: flex; flex-direction: column; gap: var(--gap); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: var(--pad); min-width: 0; position: relative; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.sub { font-size: 12.5px; color: var(--faint); margin-top: 2px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: var(--gap); flex-wrap: wrap; }
.count-pill { min-width: 28px; padding: 2px 10px; border-radius: 999px; background: var(--raised); color: var(--muted); font-weight: 600; font-size: 12.5px; text-align: center; }

.kpi-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi-value { font-family: var(--serif); font-size: 34px; line-height: 1.05; margin-top: 10px; font-weight: 500; }
.kpi-value small { font-size: 16px; color: var(--muted); font-family: var(--sans); margin-left: 4px; font-weight: 400; }
.kpi-sub { font-size: 12.5px; color: var(--faint); margin-top: 6px; }
.kpi-sub b { color: var(--text); font-weight: 600; }
.kpi.accent { border-color: rgba(212,180,122,.28); }
.kpi.accent .kpi-value { color: var(--gold); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--control); color: var(--text); font-size: 13px; font-weight: 600; white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s, transform .15s; }
.btn:hover { border-color: #55555c; background: var(--raised); }
.btn:active { transform: translateY(1px); }
.btn.solid { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.btn.solid:hover { background: #e0c28a; border-color: #e0c28a; }
.btn.ghost { border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--raised); }
.btn.danger { border-color: rgba(229,138,122,.4); color: var(--negative); }
.btn.danger:hover { background: rgba(229,138,122,.08); }
.btn.sm { min-height: 32px; padding: 0 13px; font-size: 12.5px; }
.btn.big { min-height: 48px; font-size: 14px; margin-top: 6px; }
.btn.wide { width: 100%; margin-top: 16px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; transition: color .2s; }
.link-btn:hover { color: var(--gold-ink); }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; color: var(--faint); font-size: 20px; line-height: 1; transition: color .2s, background-color .2s; }
.icon-btn:hover { color: var(--negative); background: rgba(229,138,122,.08); }

.avatar { --c: var(--gold); width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--on-gold); background: var(--c); }
.avatar.xs { width: 22px; height: 22px; font-size: 9px; }
.avatar.sm { width: 34px; height: 34px; font-size: 12px; }
.avatar.lg { width: 54px; height: 54px; font-size: 18px; }
.avatar.xl { width: 88px; height: 88px; font-size: 28px; }
.avatar.manager { background: var(--gold); }
.avatar.group { background: var(--raised); color: var(--gold); box-shadow: inset 0 0 0 1px var(--control); font-size: 15px; } /* taste-skill-ignore: anello di contorno o di focus, non un'ombra */

.pill { display: inline-flex; align-items: center; height: 22px; font-size: 12px; padding: 0 10px; border-radius: 999px; background: var(--raised); color: var(--muted); white-space: nowrap; font-weight: 500; flex: none; }
.pill.gold { background: var(--gold-tint); color: var(--gold-ink); }
.status { display: inline-flex; align-items: center; gap: 6px; height: 24px; font-size: 12px; font-weight: 600; padding: 0 11px; border-radius: 999px; flex: none; white-space: nowrap; }
.status.ok { color: var(--positive); background: rgba(127,201,154,.1); }
.status.warn { color: var(--warn); background: rgba(226,179,111,.1); }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 0 8px; }
.empty { color: var(--faint); text-align: center; font-size: 14px; }
.who { display: inline-flex; align-items: center; gap: 8px; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--gap); }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: 13px; font-weight: 500; transition: color .2s, border-color .2s, background-color .2s; }
.chip i { width: 8px; height: 8px; border-radius: 50%; }
.chip:hover { color: var(--text); border-color: var(--control); }
.chip.on { background: var(--active); color: var(--text); border-color: var(--control); }

.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); width: fit-content; margin-bottom: var(--gap); flex-wrap: wrap; }
.tabs.inline { margin-bottom: 0; }
.tab { min-height: 34px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 500; transition: color .2s, background-color .2s; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--active); color: var(--text); }

select, input, textarea { background: var(--surface); border: 1px solid var(--control); border-radius: var(--r-inner); padding: 0 14px; min-height: 42px; outline: none; transition: border-color .2s, box-shadow .2s; width: 100%; } /* taste-skill-ignore: anello di contorno o di focus, non un'ombra */
textarea { padding: 10px 14px; min-height: 72px; resize: vertical; }
select:focus, input:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,180,122,.15); } /* taste-skill-ignore: anello di contorno o di focus, non un'ombra */
input[readonly] { color: var(--faint); }
select { appearance: none; padding-right: 36px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23d4b47a' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-position: right 15px center; background-repeat: no-repeat; }
select option { background: #0d0d0f; }
input[type="date"], input[type="time"] { color-scheme: dark; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 13px; color: var(--muted); font-weight: 500; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.list-row + .list-row { border-top: 1px solid var(--rule); }
.t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.date-box { width: 46px; flex: none; text-align: center; border-radius: var(--r-inner); padding: 6px 0; background: var(--raised); }
.date-box .d { font-family: var(--serif); font-size: 22px; line-height: 1; }
.date-box .m { font-size: 11px; color: var(--gold-ink); font-weight: 600; }
.kv { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.kv + .kv { border-top: 1px solid var(--rule); }
.kv > span:first-child { color: var(--muted); width: 120px; flex: none; }
.kv b { font-weight: 600; }
.divider { font-size: 13px; color: var(--gold-ink); padding-top: 12px; border-top: 1px solid var(--rule); margin-top: 4px; font-weight: 600; }
.danger-zone { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); }
.note { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--muted); border-radius: var(--r-inner); padding: 14px 16px; margin-bottom: var(--gap); background: var(--raised); }
.note .ico { color: var(--gold); margin-top: 1px; }
.note b { color: var(--text); font-weight: 600; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* ================= GRAFICI ================= */
.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .axis { fill: var(--faint); font-size: 11px; font-family: var(--sans); font-variant-numeric: tabular-nums; }
.chart .gridline { stroke: var(--grid); }
.chart .baseline { stroke: #3a3a40; }
.ch-hit { fill: transparent; cursor: crosshair; }
.ch-cross { stroke: var(--control); stroke-width: 1; opacity: 0; transition: opacity .15s; }
.ch-dot { opacity: 0; transition: opacity .15s; }
.chart.hover .ch-cross, .chart.hover .ch-dot { opacity: 1; }
.ch-tip { position: absolute; top: 0; left: 0; pointer-events: none; padding: 7px 10px; border-radius: 10px; background: var(--raised); border: 1px solid var(--control); font-size: 12.5px; white-space: nowrap; opacity: 0; transform: translate(-50%, -6px); transition: opacity .15s; box-shadow: 0 8px 20px -8px rgba(0,0,0,.8); } /* taste-skill-ignore: elemento sovrapposto */
.ch-tip b { font-variant-numeric: tabular-nums; }
.chart.hover .ch-tip { opacity: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.bars { display: flex; flex-direction: column; gap: 16px; }
.bar-top { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; margin-bottom: 7px; }
.bar-top span:last-child { color: var(--muted); }
.bar-track { height: 6px; border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; background: #8b7a58; border-radius: 6px; }
.bar-row:first-child .bar-fill { background: var(--gold); }
.spark { width: 96px; height: 28px; flex: none; }

/* timeline uscite */
.timeline { display: flex; overflow-x: auto; padding: 6px 0 4px; }
.tl-item { flex: 0 0 210px; position: relative; padding: 26px 18px 0 0; }
.tl-item::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 1px; background: var(--control); }
.tl-item::after { content: ""; position: absolute; top: 1px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--ground); box-shadow: inset 0 0 0 1.5px var(--gold); } /* taste-skill-ignore: anello di contorno o di focus, non un'ombra */
.tl-item.next::after { background: var(--gold); }
.tl-date { font-size: 12.5px; color: var(--gold-ink); font-weight: 600; }
.tl-title { font-family: var(--serif); font-size: 24px; line-height: 1.1; margin: 6px 0 3px; }
.countdown { font-size: 12px; color: var(--faint); margin-top: 8px; }
.progress { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.pg-bar { display: flex; gap: 3px; }
.pg-bar i { width: 16px; height: 4px; border-radius: 999px; background: var(--control); }
.pg-bar i.on { background: var(--gold); }

/* home */
.todo-row { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 8px 12px; margin: 0 -12px; border-radius: var(--r-inner); transition: background-color .2s; }
.todo-row:hover { background: var(--raised); }
.todo-row:hover .link-btn { color: var(--gold-ink); }
.todo-ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--gold); background: var(--raised); }
.roster-mini { display: flex; flex-direction: column; }
.rm-row { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 12px; margin: 0 -12px; border-radius: var(--r-inner); transition: background-color .2s; }
.rm-row:hover { background: var(--raised); }
.rm-v { font-family: var(--serif); font-size: 22px; width: 110px; text-align: right; line-height: 1.1; }
.onboard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ob-step { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--r-inner); background: var(--raised); transition: background-color .2s; text-align: left; }
.ob-step:hover { background: var(--active); }
.ob-step b { font-weight: 600; }
.ob-step span { color: var(--muted); font-size: 13px; }
.ob-step .ico { color: var(--gold); }
.ob-step.done { opacity: .55; }
.hero-next { --c: var(--gold); display: flex; flex-direction: column; gap: 6px; border-color: color-mix(in srgb, var(--c) 30%, var(--border)); }
.hn-title { font-family: var(--serif); font-size: 40px; line-height: 1.05; margin-top: 8px; }
.hn-count { margin: 12px 0 4px; color: var(--muted); }
.hn-count span { font-family: var(--serif); font-size: 30px; color: var(--gold); margin-right: 4px; font-variant-numeric: tabular-nums; }

/* roster */
.artist-card { --c: var(--gold); display: flex; flex-direction: column; gap: 18px; transition: border-color .25s, background-color .25s; }
.artist-card:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--border)); background: var(--raised); }
.artist-top { display: flex; align-items: center; gap: 14px; }
.artist-name { font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.ac-arrow { color: var(--faint); transition: transform .25s var(--ease), color .2s; }
.artist-card:hover .ac-arrow { color: var(--gold); transform: translateX(3px); }
.artist-meta { display: flex; border-radius: var(--r-inner); background: var(--raised); padding: 12px 0; }
.artist-card:hover .artist-meta { background: var(--active); }
.artist-meta div { text-align: center; flex: 1; }
.artist-meta div + div { border-left: 1px solid var(--border); }
.artist-meta .v { font-family: var(--serif); font-size: 22px; }
.artist-meta .l { font-size: 12px; color: var(--faint); }
.ac-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.add-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 230px; border-style: dashed; border-color: var(--control); color: var(--muted); background: transparent; transition: color .2s, border-color .2s; }
.add-tile:hover { color: var(--gold-ink); border-color: var(--gold); }
.artist-hero { --c: var(--gold); display: flex; align-items: center; gap: 24px; padding: 26px; border-radius: 28px; border: 1px solid var(--border); background: var(--surface); margin-bottom: var(--gap); flex-wrap: wrap; }
.artist-hero .avatar.xl { box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px color-mix(in srgb, var(--c) 55%, transparent); } /* taste-skill-ignore: anello di contorno o di focus, non un'ombra */
.ah-name { font-family: var(--serif); font-size: 44px; line-height: 1; }
.ah-meta { margin-top: 8px; color: var(--muted); font-size: 13.5px; }
.ah-stats { display: flex; gap: 28px; }
.ah-stats .v { font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.ah-stats .l { font-size: 12px; color: var(--faint); }

/* piattaforme */
.plat-card { display: flex; flex-direction: column; gap: 14px; }
.plat-head { display: flex; align-items: center; gap: 12px; }
.plat-logo { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); font-weight: 700; font-size: 12px; color: var(--muted); flex: none; }
.plat-card.on .plat-logo { color: var(--gold); box-shadow: inset 0 0 0 1px rgba(212,180,122,.4); } /* taste-skill-ignore: anello di contorno o di focus, non un'ombra */
.plat-status { font-size: 12.5px; color: var(--faint); }
.plat-card.on .plat-status { color: var(--positive); }
.plat-stat { font-family: var(--serif); font-size: 32px; line-height: 1.1; margin-top: 4px; }
.plat-card .spark { width: 100%; height: 34px; }
.plat-empty { min-height: 108px; }
.plat-foot { display: flex; gap: 8px; }

/* accessi */
.perm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.perm { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-inner); background: var(--raised); cursor: pointer; }
.perm.showcase { grid-column: 1 / -1; }
.switch { appearance: none; -webkit-appearance: none; width: 44px !important; min-height: 0 !important; height: 26px; padding: 0 !important; border-radius: 999px !important; background: #2a2a2f !important; border: none !important; position: relative; cursor: pointer; flex: none; transition: background-color .3s; box-shadow: none !important; } /* taste-skill-ignore: anello di contorno o di focus, non un'ombra */
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #cfcac1; transition: transform .35s var(--ease), background-color .3s; }
.switch:checked { background: var(--gold) !important; }
.switch:checked::after { transform: translateX(18px); background: var(--on-gold); }
.switch:disabled { opacity: .5; cursor: not-allowed; }
.code-box { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.code-box > div { padding: 16px; border-radius: var(--r-inner); background: var(--raised); display: flex; flex-direction: column; gap: 6px; }
.code-box span { font-size: 12.5px; color: var(--muted); }
.big-code { font-size: 26px; color: var(--gold-ink); letter-spacing: .18em; }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.role { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--r-inner); background: var(--raised); }
.role b { font-weight: 600; }
.role span { font-size: 13px; color: var(--muted); line-height: 1.55; }
.role-ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: var(--active); margin-bottom: 4px; }
.role-ico.gold { color: var(--on-gold); background: var(--gold); }
.req-row, .acc-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 0; flex-wrap: wrap; }
.req-row + .req-row, .acc-row + .acc-row { border-top: 1px solid var(--rule); }
.acc-row .grow { display: flex; flex-direction: column; }
.card.attn { border-color: rgba(212,180,122,.32); }
.danger-card { border-color: rgba(229,138,122,.2); }
.log { display: flex; flex-direction: column; }
.log-row { display: flex; align-items: center; gap: 12px; min-height: 40px; font-size: 13px; }
.log-row + .log-row { border-top: 1px solid var(--rule); }
.log-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.log-row.ok .log-dot { background: var(--positive); } .log-row.warn .log-dot { background: var(--negative); }

/* brani */
.rel-list { display: flex; flex-direction: column; }
.rel-row { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 10px 12px; margin: 0 -12px; border-radius: var(--r-inner); transition: background-color .2s; }
.rel-row:hover { background: var(--raised); }
.rel-row + .rel-row { border-top: 1px solid var(--rule); }
.rel-row .progress { margin-top: 0; width: 190px; flex: none; }
.rel-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--gold); background: var(--raised); }
.rel-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.t-title { font-family: var(--serif); font-size: 20px; }

/* cose da fare */
.board { display: grid; grid-template-columns: repeat(4, minmax(230px, 1fr)); gap: 14px; overflow-x: auto; align-items: start; }
.col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 14px; min-height: 240px; transition: border-color .2s, background-color .2s; }
.col.drag-over { border-color: var(--gold); background: var(--raised); }
.col-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding: 2px 4px; }
.col-title { font-size: 13.5px; font-weight: 600; }
.col-count { font-size: 12px; padding: 1px 9px; border-radius: 10px; background: var(--raised); color: var(--muted); font-variant-numeric: tabular-nums; }
.k-card { background: var(--raised); border: 1px solid transparent; border-radius: var(--r-inner); padding: 12px 12px 10px 14px; margin-bottom: 8px; cursor: grab; transition: border-color .2s; }
.k-card:hover, .k-card:focus-within { border-color: var(--control); }
.k-card.dragging { opacity: .4; }
.k-top { display: flex; justify-content: space-between; gap: 8px; }
.k-title { font-size: 13.5px; font-weight: 500; padding-top: 6px; }
.k-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--faint); }
.k-move { display: flex; gap: 2px; opacity: 0; transition: opacity .2s; }
.k-card:hover .k-move, .k-card:focus-within .k-move { opacity: 1; }
.k-move button { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.k-move button:hover { background: var(--active); color: var(--text); }
.k-move button[disabled] { visibility: hidden; }
.add-card { width: 100%; min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px dashed var(--control); color: var(--muted); border-radius: var(--r-inner); font-size: 13px; transition: color .2s, border-color .2s; }
.add-card:hover { color: var(--gold-ink); border-color: var(--gold); }

/* agenda */
.cal-wrap { display: grid; grid-template-columns: 1fr 340px; gap: var(--gap); align-items: start; }
.cal-nav { display: flex; align-items: center; gap: 10px; }
.cal-month { font-family: var(--serif); font-size: 26px; min-width: 200px; text-align: center; }
.cal-month::first-letter { text-transform: uppercase; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { font-size: 12px; color: var(--faint); padding: 6px 8px; font-weight: 600; }
.cal-day { min-height: 96px; padding: 8px; border-radius: var(--r-inner); background: rgba(255,255,255,.015); border: 1px solid transparent; overflow: hidden; text-align: left; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; transition: background-color .15s, border-color .15s; }
.cal-day:hover { background: var(--raised); }
.cal-day.other { opacity: .35; }
.cal-day.sel { border-color: rgba(212,180,122,.5); background: var(--raised); }
.cal-day .n { font-size: 12.5px; color: var(--muted); font-weight: 600; display: inline-grid; place-items: center; width: 26px; height: 26px; font-variant-numeric: tabular-nums; }
.cal-day.is-today .n { color: var(--on-gold); background: var(--gold); border-radius: 50%; }
.cal-ev { --c: var(--gold); font-size: 11px; margin-top: 4px; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-title { font-family: var(--serif); font-size: 28px; font-weight: 500; }
.day-title::first-letter { text-transform: uppercase; }
.ev-row { --c: var(--gold); display: flex; gap: 12px; padding: 12px 0; align-items: flex-start; }
.ev-row + .ev-row { border-top: 1px solid var(--rule); }
.ev-time { font-family: var(--serif); font-size: 19px; color: var(--gold-ink); width: 58px; flex: none; display: flex; align-items: center; gap: 7px; }
.ev-time::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }

/* vault */
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 1px dashed var(--control); border-radius: var(--r-inner); padding: 28px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color .2s, background-color .2s; }
.dropzone .ico { color: var(--gold); margin-bottom: 4px; }
.dropzone:hover, .dropzone.over, .dropzone:focus-within { border-color: var(--gold); background: var(--raised); }
.dropzone .big { font-family: var(--serif); font-size: 22px; color: var(--text); }
.v-item { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 0; }
.v-item + .v-item { border-top: 1px solid var(--rule); }
.v-icon { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--gold); background: var(--raised); }
.v-item audio { height: 34px; width: 240px; filter: invert(.9) sepia(.25); opacity: .85; }
.or { display: flex; align-items: center; gap: 12px; margin: 16px 0; font-size: 12.5px; color: var(--faint); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

/* messaggi */
.chat { display: grid; grid-template-columns: 310px 1fr; height: calc(100vh - 170px); min-height: 500px; border: 1px solid var(--border); border-radius: 26px; overflow: hidden; background: var(--surface); }
.chat-side { border-right: 1px solid var(--rule); display: flex; flex-direction: column; min-height: 0; background: var(--ground); }
.chat-side-head { padding: 14px; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chat-list { overflow-y: auto; flex: 1; padding: 6px 8px; }
.chat-sec { font-size: 12.5px; color: var(--faint); padding: 14px 10px 6px; font-weight: 600; }
.chat-item { display: flex; gap: 12px; align-items: center; width: 100%; min-height: 60px; padding: 10px; border-radius: var(--r-inner); text-align: left; transition: background-color .15s; }
.chat-item:hover { background: var(--surface); }
.chat-item.active { background: var(--active); }
.nm { font-size: 13.5px; display: flex; justify-content: space-between; gap: 6px; font-weight: 600; }
.pv { font-size: 12.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unread { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--gold); color: var(--on-gold); font-size: 11px; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.chat-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.chat-head { padding: 12px 20px; border-bottom: 1px solid var(--rule); display: flex; align-items: center; gap: 12px; font-weight: 600; }
.msgs { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.msg-line { display: flex; gap: 8px; align-items: flex-end; max-width: 72%; }
.msg-line.me { align-self: flex-end; }
.msg { padding: 10px 14px; border-radius: 20px 20px 20px 6px; background: var(--raised); word-wrap: break-word; min-width: 0; line-height: 1.45; }
.msg.me { background: var(--gold); color: var(--on-gold); border-radius: 20px 20px 6px 20px; }
.msg .from { font-size: 12px; color: var(--gold-ink); margin-bottom: 2px; font-weight: 600; }
.msg .ts { font-size: 11px; color: var(--faint); margin-top: 3px; text-align: right; }
.msg.me .ts { color: rgba(21,17,10,.65); }
.msg a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.day-sep { align-self: center; font-size: 12px; color: var(--faint); margin: 10px 0; padding: 3px 12px; border-radius: 20px; background: var(--raised); }
.day-sep::first-letter { text-transform: uppercase; }
.composer { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--rule); }
.composer input { border-radius: 999px; padding-left: 20px; }

/* finestra, avvisi, selettori */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.72); display: grid; place-items: center; z-index: 50; padding: 20px; }
.modal { width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--control); border-radius: 28px; padding: 26px; animation: pop .25s var(--ease); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9); } /* taste-skill-ignore: elemento sovrapposto */
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(6px); } }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; }
.modal-head h2 { font-family: var(--serif); font-size: 26px; font-weight: 500; }
.modal form { display: flex; flex-direction: column; gap: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: flex; align-items: center; gap: 7px; min-height: 36px; font-size: 13px; border: 1px solid var(--control); padding: 0 12px; border-radius: 999px; cursor: pointer; }
.checks input { width: auto; min-height: 0; accent-color: var(--gold); }
.swatches { display: flex; gap: 10px; }
.swatches label { position: relative; }
.swatches input { position: absolute; opacity: 0; width: 1px; min-height: 0; }
.swatches i { display: block; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; }
.swatches input:checked + i { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); } /* taste-skill-ignore: anello di contorno o di focus, non un'ombra */
.swatches input:focus-visible + i { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--gold); } /* taste-skill-ignore: anello di contorno o di focus, non un'ombra */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 20px); background: var(--raised); border: 1px solid var(--control); color: var(--text); padding: 11px 20px; border-radius: 999px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); z-index: 60; box-shadow: 0 20px 40px -14px rgba(0,0,0,.9); } /* taste-skill-ignore: elemento sovrapposto */
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* loader con nota musicale */
.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 22px; background: rgba(4,4,5,.96); opacity: 0; visibility: hidden; transition: opacity .45s ease-out, visibility 0s linear .45s; }
.loader.show { opacity: 1; visibility: visible; transition: opacity .3s ease-out; }
.ld-core { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.ld-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.ld-arc { transform-origin: 60px 60px; animation: spin 1.8s cubic-bezier(.55,.15,.45,.85) infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ld-note { width: 50px; height: 50px; animation: float 2.4s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(3px) rotate(-4deg); } 50% { transform: translateY(-5px) rotate(4deg); } }
.ld-text { font-size: 13px; color: var(--gold-ink); }

/* ================= RESPONSIVE ================= */
@media (max-width: 1200px) {
  .g-3 { grid-template-columns: repeat(2, 1fr); }
  .cal-wrap, .g-main { grid-template-columns: 1fr; }
  .perm-grid, .roles { grid-template-columns: 1fr; } .onboard { grid-template-columns: repeat(2, 1fr); }
  .rel-row { flex-wrap: wrap; } .rel-row .progress { width: auto; }
}
@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login-art { min-height: 480px; padding: 28px 22px 24px; }
  .necklace { width: 64%; right: -4%; height: 54%; }
  .app { grid-template-columns: 1fr; padding-bottom: 76px; }
  .sidebar { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; z-index: 20; padding: 6px 8px; flex-direction: row; border-right: none; border-top: 1px solid var(--rule); background: var(--ground); }
  .brand, .role-tag, .side-foot .foot-link span { display: none; }
  .nav { flex-direction: row; justify-content: space-around; gap: 0; }
  .nav a { flex-direction: column; justify-content: center; gap: 3px; min-height: 52px; padding: 4px; font-size: 11px; text-align: center; border-radius: 14px; }
  .nav-badge { position: absolute; top: 2px; right: 6px; margin: 0; min-width: 16px; line-height: 16px; font-size: 10px; }
  .side-foot { border-top: none; padding: 0; flex-direction: row; }
  .side-foot .foot-link { min-height: 52px; padding: 0 12px; }
  .main { padding: 0 16px 30px; }
  .topbar { padding: 22px 0 18px; align-items: flex-start; }
  .today { display: none; }
  .me-chip > div:not(.avatar) { display: none; } .me-chip { padding: 4px; }
  h1 { font-size: 26px; }
  .g-3, .g-2 { grid-template-columns: 1fr; }
  .ah-name { font-size: 34px; } .artist-hero { padding: 20px; }
  .chat { grid-template-columns: 1fr; height: auto; }
  .chat-side { max-height: 260px; border-right: none; border-bottom: 1px solid var(--rule); }
  .msgs { min-height: 360px; } .msg-line { max-width: 88%; }
  .cal-day { min-height: 52px; padding: 4px; } .cal-ev { display: none; }
  .cal-month { min-width: 0; font-size: 22px; }
  .v-item { flex-wrap: wrap; } .v-item audio { width: 100%; order: 5; }
  .row2, .code-box { grid-template-columns: 1fr; }
  .k-move { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .login-title span, .reveal, .necklace { opacity: 1; filter: none; transform: none; }
  .spk, .flare { opacity: 0; }
}

/* righe di card che devono finire allo stesso livello: l'azione resta in fondo */
.g-2.even { align-items: stretch; }
.g-2.even > .card { display: flex; flex-direction: column; }
.card-foot { margin-top: auto; padding-top: 14px; }


/* telefono: i numeri chiave in griglia da due, l'ultimo dispari a tutta larghezza */
@media (max-width: 900px) {
  .g-3:has(> .kpi) { grid-template-columns: 1fr 1fr; gap: 10px; }
  .g-3:has(> .kpi) > .kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .kpi { padding: 16px; } .kpi-value { font-size: 26px; margin-top: 6px; } .kpi-sub { font-size: 12px; }
  .onboard { grid-template-columns: 1fr; }
}

.marquee:hover .mq-track { animation-play-state: paused; }

/* velo neutro: tiene il modulo leggibile e salda le due metà come un'unica stanza */

/* ================= SICUREZZA ================= */
.foot-link.active { color: var(--text); background: var(--active); }
.foot-link.active .ico { color: var(--gold); }
.steps-list { display: flex; flex-direction: column; gap: 14px; padding-left: 20px; margin-bottom: 16px; color: var(--muted); }
.steps-list li::marker { color: var(--gold); font-weight: 700; }
.steps-list b { color: var(--text); font-weight: 600; }
.secret-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 8px; padding: 12px 14px; border-radius: var(--r-inner); background: var(--raised); }
.secret-box .mono { font-size: 15px; letter-spacing: .12em; color: var(--gold-ink); word-break: break-all; }
.tfa-row { display: flex; gap: 10px; flex-wrap: wrap; }
.tfa-row input { flex: 1; min-width: 140px; font-family: ui-monospace, Consolas, monospace; letter-spacing: .2em; font-size: 16px; } /* taste-skill-ignore: codice numerico */
.rc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rc-grid b { padding: 10px 12px; border-radius: 10px; background: var(--raised); text-align: center; font-size: 15px; letter-spacing: .08em; }


/* ================= SFONDO UNICO DEL LOGIN =================
   Una sola scena: il primo soggetto a sinistra, il secondo a destra, ben distanziati.
   Ognuna delle due foto occupa la propria metà e sfuma solo verso il centro, così i soggetti
   non si sovrappongono. Proporzioni intatte, nessuna sfocatura sui soggetti. */
.login { position: relative; isolation: isolate; background: #030304; }
.login-art, .login-panel { background: transparent; }
.login-panel { position: relative; padding: 0; }
.panel-inner { position: relative; z-index: 1; width: 100%; min-height: 100%; display: grid; place-items: center; padding: 40px 24px; }
.login-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-ph { position: absolute; top: 0; bottom: 0; width: 52%; background-repeat: no-repeat; background-size: cover; filter: grayscale(1) sepia(.5) contrast(1.15) brightness(.85); opacity: .21; animation: breathe 30s ease-in-out infinite alternate; }
.bg-1 { left: 0; background-image: url("assets/login-artist.jpg"); background-position: 38% 30%;
  -webkit-mask-image: linear-gradient(90deg, #000 62%, transparent 96%); mask-image: linear-gradient(90deg, #000 62%, transparent 96%); } /* taste-skill-ignore: maschera di fusione tra le due foto, non un colore */
.bg-2 { right: 0; background-image: url("assets/login-artist-2.jpg"); background-position: 58% 22%; animation-direction: alternate-reverse;
  -webkit-mask-image: linear-gradient(270deg, #000 62%, transparent 96%); mask-image: linear-gradient(270deg, #000 62%, transparent 96%); } /* taste-skill-ignore: maschera di fusione tra le due foto, non un colore */
.bg-veil { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 35%, transparent 30%, rgba(3,3,4,.75) 100%), linear-gradient(180deg, rgba(3,3,4,.1), rgba(3,3,4,.8) 92%); } /* taste-skill-ignore: velo neutro sopra la foto */

/* ================= LIQUID GLASS (solo pagina di accesso) =================
   Scelta esplicita del cliente: vetro liquido in stile Apple. Pannello traslucido che
   rifrange la foto dietro, bordo luminoso, riflesso che segue la luce del mouse,
   controlli a capsula. Fuori dal login il sito resta su superfici piene. */
.login-card {
  --glass-hi: rgba(255,255,255,.34);
  position: relative; max-width: 400px; padding: 34px 32px 28px; border-radius: 34px;
  background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.03) 45%, rgba(255,255,255,.06)); /* taste-skill-ignore: liquid glass richiesto dal cliente */
  -webkit-backdrop-filter: blur(26px) saturate(170%) brightness(1.05); backdrop-filter: blur(26px) saturate(170%) brightness(1.05); /* taste-skill-ignore: liquid glass richiesto dal cliente */
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 -1px 0 rgba(255,255,255,.06), inset 0 0 0 1px rgba(255,255,255,.03), 0 40px 80px -30px rgba(0,0,0,.85), 0 10px 30px -12px rgba(0,0,0,.6); /* taste-skill-ignore: liquid glass richiesto dal cliente */
} /* taste-skill-ignore: liquid glass richiesto dal cliente */
/* riflesso speculare: una luce morbida che scorre sul vetro seguendo il cursore */
.login-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(260px 180px at var(--gx, 30%) var(--gy, 0%), rgba(255,255,255,.14), transparent 70%); mix-blend-mode: screen; transition: background-position .2s; } /* taste-skill-ignore: riflesso del vetro */
/* bordo che rifrange la luce: più chiaro in alto a sinistra, più scuro in basso a destra */
.login-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,.08) 35%, rgba(255,255,255,0) 60%, rgba(212,180,122,.35)); /* taste-skill-ignore: liquid glass richiesto dal cliente */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; } /* taste-skill-ignore: bordo del vetro */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .login-card { background: rgba(18,18,20,.92); } } /* taste-skill-ignore: liquid glass richiesto dal cliente */

.login-card .role-switch { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); } /* taste-skill-ignore: capsula di vetro */
.login-card.is-manager .role-switch { background: rgba(212,180,122,.12); border-color: rgba(212,180,122,.35); }
.login-card .rs-btn { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: var(--text); }
.login-card .rs-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.login-card input { min-height: 46px; border-radius: 16px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 1px 2px rgba(0,0,0,.35); } /* taste-skill-ignore: campo incassato nel vetro */
.login-card input:focus { border-color: rgba(212,180,122,.8); box-shadow: inset 0 1px 2px rgba(0,0,0,.35), 0 0 0 4px rgba(212,180,122,.16); } /* taste-skill-ignore: anello di focus */
.login-card .btn.solid { min-height: 50px; background: linear-gradient(180deg, #e6cb94, #c9a668); border-color: rgba(255,240,205,.5); /* taste-skill-ignore: liquid glass richiesto dal cliente */
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(0,0,0,.15), 0 10px 24px -10px rgba(212,180,122,.55); } /* taste-skill-ignore: capsula lucida del liquid glass */
.login-card .btn.solid:hover { filter: brightness(1.06); }
.login-card .btn.ghost { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); color: var(--text); }
.login-card .secure-note { border-top-color: rgba(255,255,255,.1); }

@media (max-width: 900px) {
  /* sul telefono una sola foto: la seconda, a tutta altezza dietro tutta la pagina */
  .bg-1 { display: none; }
  .bg-2 { left: 0; right: 0; width: 100%; background-position: 55% 18%;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); } /* taste-skill-ignore: maschera di fusione */
  .login-card { padding: 26px 20px 22px; border-radius: 28px; }
}

.rs-label, .rs-btn { white-space: nowrap; }
@media (max-width: 420px) { .role-switch { padding-left: 12px; gap: 6px; } .rs-label { font-size: 12.5px; gap: 6px; } .rs-btn { padding: 0 11px; font-size: 12.5px; } }

