/* ANNA DE DOMINICIS · Gestionale — stile */
@font-face { font-family: 'Cormorant'; src: url('fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('fonts/cormorant-garamond-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('fonts/manrope-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('fonts/manrope-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('fonts/manrope-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('fonts/manrope-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #07040a;
  --bg2: #0e0710;
  --card: #150b16;
  --card2: #1e1020;
  --line: rgba(255, 210, 235, 0.09);
  --line2: rgba(255, 210, 235, 0.16);
  --text: #f8eef4;
  --muted: #b89cae;
  --dim: #7d6576;
  --pink: #ff3d9a;
  --rose: #ff7ab6;
  --gold: #f5b56b;
  --peach: #ffd2a6;
  --ok: #5ed6a8;
  --warn: #ffc56b;
  --bad: #ff6b7d;
  --grad: linear-gradient(100deg, #ff2f92 0%, #ff6f8e 52%, #f7b768 100%);
  --glow: 0 0 0 1px rgba(255, 61, 154, 0.35), 0 8px 30px rgba(255, 61, 154, 0.22);
  --r: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --serif: 'Cormorant', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.45; }
body { min-height: 100vh; min-height: 100dvh; overscroll-behavior-y: none; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(70% 45% at 85% -5%, rgba(255, 47, 146, 0.16), transparent 70%), radial-gradient(60% 40% at 0% 105%, rgba(247, 183, 104, 0.10), transparent 70%); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--rose); }
.hidden { display: none !important; }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- accesso ---------- */
.login { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 24px calc(32px + var(--safe-b)); text-align: center; }
.login img { width: min(300px, 78vw); height: auto; mix-blend-mode: screen; margin-bottom: 8px; -webkit-mask-image: radial-gradient(circle, #000 62%, transparent 71%); mask-image: radial-gradient(circle, #000 62%, transparent 71%); }
.login h1 { font-family: var(--serif); font-weight: 500; font-style: italic; font-size: 24px; margin: 0 0 22px; color: var(--peach); }
.login form { width: min(340px, 100%); display: grid; gap: 12px; }
.login .err { color: var(--bad); min-height: 20px; font-size: 14px; }
.login .note { color: var(--dim); font-size: 12.5px; margin-top: 26px; max-width: 340px; }

/* ---------- struttura ---------- */
#app { max-width: 760px; margin: 0 auto; padding: calc(var(--safe-t)) 0 calc(86px + var(--safe-b)); }
.top { position: sticky; top: 0; z-index: 20; padding: calc(8px + var(--safe-t)) 16px 8px; margin-top: calc(-1 * var(--safe-t));
  background: linear-gradient(var(--bg) 70%, rgba(7, 4, 10, 0)); display: flex; align-items: center; gap: 10px; }
.top .logo { height: 58px; width: auto; mix-blend-mode: screen; display: block; }
.top .sp { flex: 1; }
.syncdot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--dim); padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line); }
.syncdot i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); display: block; }
.syncdot.ok i { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.syncdot.busy i { background: var(--gold); animation: pulse 1s infinite; }
.syncdot.err i { background: var(--bad); }
@keyframes pulse { 50% { opacity: 0.3; } }
.page { padding: 4px 16px 16px; }
.h1 { font-family: var(--serif); font-size: 32px; font-weight: 600; margin: 4px 0 2px; letter-spacing: 0.2px; }
.h1 em { font-style: italic; font-weight: 500; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; }
.h2 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 22px 0 10px; display: flex; align-items: baseline; gap: 8px; }
.h2 small { font-family: var(--sans); font-size: 12.5px; color: var(--dim); font-weight: 500; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack { display: grid; gap: 10px; }

/* ---------- barra in basso ---------- */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center;
  background: rgba(10, 5, 12, 0.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + var(--safe-b)); }
.tabs .in { display: flex; width: 100%; max-width: 760px; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; color: var(--dim); font-size: 11px; font-weight: 600; letter-spacing: 0.2px; border-radius: 12px; }
.tab svg { width: 23px; height: 23px; }
.tab.on { color: var(--text); }
.tab.on svg { color: var(--pink); filter: drop-shadow(0 0 6px rgba(255, 61, 154, 0.6)); }

/* ---------- elementi ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.card.tight { padding: 10px 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 13px; font-weight: 700; font-size: 14.5px;
  background: var(--card2); border: 1px solid var(--line2); color: var(--text); white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn.pri { background: var(--grad); border: 0; color: #1a0612; box-shadow: var(--glow); }
.btn.ghost { background: transparent; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.danger { color: var(--bad); border-color: rgba(255, 107, 125, 0.35); background: transparent; }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.45; }
.ibtn { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); border: 1px solid var(--line); background: var(--card); flex: none; }
.ibtn svg { width: 19px; height: 19px; }
.ibtn.sm { width: 32px; height: 32px; border-radius: 9px; }
.ibtn.sm svg { width: 16px; height: 16px; }
.fab { position: fixed; right: max(18px, calc(50vw - 362px)); bottom: calc(84px + var(--safe-b)); z-index: 25; width: 58px; height: 58px; border-radius: 20px; background: var(--grad); color: #1a0612; display: flex; align-items: center; justify-content: center; box-shadow: var(--glow), 0 10px 30px rgba(0,0,0,.5); }
.fab svg { width: 28px; height: 28px; }

label.f { display: grid; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: 0.2px; }
.inp, select.inp, textarea.inp { width: 100%; height: 46px; padding: 0 13px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line2); color: var(--text); font-size: 16px; font-weight: 500; outline: none; -webkit-appearance: none; appearance: none; }
textarea.inp { height: auto; min-height: 90px; padding: 11px 13px; resize: vertical; line-height: 1.45; }
select.inp { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.inp:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 61, 154, 0.18); }
input[type=date].inp, input[type=time].inp { min-width: 0; }
input[type=date]::-webkit-calendar-picker-indicator, input[type=time]::-webkit-calendar-picker-indicator { filter: invert(0.8); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.search { position: relative; }
.search svg { position: absolute; left: 13px; top: 13px; width: 19px; height: 19px; color: var(--dim); }
.search .inp { padding-left: 40px; }

.chips { display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 32px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line2); color: var(--muted); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; background: transparent; }
.chip.on { color: #1a0612; background: var(--grad); border-color: transparent; }
.chip i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.seg { display: flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.seg button { flex: 1; height: 34px; border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--muted); }
.seg button.on { background: var(--card2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: rgba(255,255,255,.06); color: var(--muted); white-space: nowrap; }
.badge i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.b-ok { color: var(--ok); background: rgba(94, 214, 168, .12); }
.b-warn { color: var(--warn); background: rgba(255, 197, 107, .12); }
.b-bad { color: var(--bad); background: rgba(255, 107, 125, .12); }
.b-pink { color: var(--rose); background: rgba(255, 61, 154, .13); }

.empty { text-align: center; color: var(--dim); padding: 34px 16px; border: 1px dashed var(--line2); border-radius: var(--r); font-size: 14px; }
.empty b { display: block; font-family: var(--serif); font-size: 20px; color: var(--muted); margin-bottom: 4px; font-weight: 600; }

/* ---------- calendario ---------- */
.calhead { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; }
.calhead .t { flex: 1; font-family: var(--serif); font-size: 28px; font-weight: 600; text-transform: capitalize; }
.calhead .t small { font-family: var(--sans); font-size: 14px; color: var(--dim); font-weight: 600; margin-left: 4px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .wd { text-align: center; font-size: 11px; font-weight: 700; color: var(--dim); padding: 2px 0 4px; letter-spacing: .5px; }
.day { position: relative; aspect-ratio: 1 / 1.05; border-radius: 12px; background: var(--card); border: 1px solid transparent; display: flex; flex-direction: column; align-items: center; padding-top: 6px; font-weight: 600; font-size: 14px; color: var(--text); }
.day.out { background: transparent; color: var(--dim); opacity: .45; }
.day.today { border-color: rgba(255, 61, 154, .55); }
.day.today .n { color: var(--pink); }
.day.sel { background: var(--card2); border-color: var(--line2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.day .dots { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; margin-top: auto; margin-bottom: 7px; padding: 0 3px; }
.day .dots i { width: 6px; height: 6px; border-radius: 50%; display: block; }
.day.has { background: linear-gradient(180deg, rgba(255, 61, 154, .10), var(--card)); }
.day .tag { font-size: 9px; font-weight: 700; color: var(--peach); margin-top: auto; margin-bottom: 6px; max-width: 92%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 560px) { .day { aspect-ratio: 1 / .9; } }

/* elenco eventi */
.ev { display: flex; gap: 12px; padding: 12px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); text-align: left; width: 100%; position: relative; overflow: hidden; }
.ev::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c, var(--pink)); box-shadow: 0 0 14px var(--c, var(--pink)); }
.ev .date { flex: none; width: 50px; text-align: center; padding-left: 2px; }
.ev .date b { display: block; font-family: var(--serif); font-size: 30px; line-height: 1; font-weight: 700; }
.ev .date span { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.ev .body { flex: 1; min-width: 0; }
.ev .title { font-weight: 700; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev .meta { font-size: 13px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev .foot { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.ev.annullato { opacity: .5; }
.ev.annullato .title { text-decoration: line-through; }
.monthsep { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--peach); margin: 18px 2px 8px; text-transform: capitalize; }

/* ---------- foglio (modale) ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); display: flex; align-items: flex-end; justify-content: center; animation: fade .18s ease; }
.sheet { width: 100%; max-width: 680px; max-height: 94dvh; background: var(--bg2); border: 1px solid var(--line2); border-bottom: 0; border-radius: 24px 24px 0 0; display: flex; flex-direction: column; animation: up .24s cubic-bezier(.2, .9, .3, 1); }
@media (min-width: 720px) { .sheet-bg { align-items: center; } .sheet { border-radius: 24px; border-bottom: 1px solid var(--line2); max-height: 88vh; } }
.sheet .sh { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px 18px; border-bottom: 1px solid var(--line); }
.sheet .sh .t { flex: 1; font-family: var(--serif); font-size: 23px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet .sb { overflow-y: auto; padding: 14px 18px 18px; -webkit-overflow-scrolling: touch; }
.sheet .sf { padding: 12px 18px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); display: flex; gap: 10px; }
.sheet .sf .btn { flex: 1; min-width: 0; padding: 0 12px; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.sheet .tabsin { display: flex; gap: 4px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.sheet .tabsin button { padding: 11px 12px; font-weight: 700; font-size: 14px; color: var(--dim); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.sheet .tabsin button.on { color: var(--text); border-color: var(--pink); }

/* dettaglio evento */
.hero { border-radius: 18px; padding: 16px; background: linear-gradient(140deg, rgba(255, 47, 146, .18), rgba(247, 183, 104, .08) 70%), var(--card); border: 1px solid var(--line2); }
.hero .kind { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--peach); text-transform: uppercase; letter-spacing: .8px; }
.hero .kind i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.hero h3 { font-family: var(--serif); font-size: 28px; line-height: 1.1; margin: 6px 0 6px; font-weight: 700; }
.hero .when { font-size: 14.5px; font-weight: 600; text-transform: capitalize; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 9px 14px; font-size: 14.5px; }
.kv dt { color: var(--dim); font-weight: 600; font-size: 13px; padding-top: 1px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.money { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.money > div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 11px; }
.money small { display: block; font-size: 11px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .5px; }
.money b { display: block; font-size: 18px; font-weight: 800; margin-top: 3px; font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.line { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line .grow b { font-weight: 700; }
.line .amt { font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- repertorio e scalette ---------- */
.song { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); width: 100%; text-align: left; }
.song .k { flex: none; min-width: 38px; height: 38px; padding: 0 6px; border-radius: 11px; background: var(--card2); border: 1px solid var(--line2); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: var(--peach); }
.song .t { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song .a { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song .d { font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; flex: none; }
.song.picked { border-color: rgba(255, 61, 154, .5); background: linear-gradient(90deg, rgba(255,61,154,.12), var(--card)); }

.sl { display: grid; gap: 6px; }
.it { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 6px; border-radius: 13px; background: var(--card); border: 1px solid var(--line); touch-action: pan-y; }
.it.drag { opacity: .9; box-shadow: var(--glow); position: relative; z-index: 5; background: var(--card2); }
.it .h { width: 30px; height: 36px; display: flex; align-items: center; justify-content: center; color: var(--dim); touch-action: none; cursor: grab; flex: none; }
.it .h svg { width: 18px; height: 18px; }
.it .n { width: 24px; text-align: right; font-weight: 800; color: var(--rose); font-variant-numeric: tabular-nums; font-size: 14px; flex: none; }
.it .grow .t { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.it .grow .a { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.it .clock { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; flex: none; text-align: right; }
.it.pausa { background: repeating-linear-gradient(135deg, rgba(247,183,104,.06) 0 8px, transparent 8px 16px), var(--card); border-style: dashed; border-color: rgba(247,183,104,.3); }
.it.pausa .grow .t { color: var(--gold); }
.it.momento { background: rgba(255, 61, 154, .07); border-color: rgba(255, 61, 154, .28); }
.it.momento .grow .t { font-family: var(--serif); font-size: 18px; font-style: italic; font-weight: 500; color: var(--peach); }
.totbar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.totbar b { color: var(--text); font-size: 16px; font-variant-numeric: tabular-nums; }

.setcard { display: block; width: 100%; text-align: left; padding: 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.setcard .t { font-family: var(--serif); font-size: 21px; font-weight: 700; }
.setcard .m { font-size: 13px; color: var(--muted); margin-top: 2px; }
.setcard .p { font-size: 12.5px; color: var(--dim); margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- guadagni ---------- */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 14px; }
.kpi small { display: block; font-size: 11.5px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .5px; }
.kpi b { display: block; font-size: 22px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.kpi.big { grid-column: 1 / -1; background: linear-gradient(140deg, rgba(255, 47, 146, .20), rgba(247, 183, 104, .10)), var(--card); border-color: var(--line2); }
.kpi.big b { font-size: 34px; font-family: var(--sans); }
.kpi .s { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.chart { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; align-items: end; height: 150px; padding: 8px 4px 0; }
.chart .c { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.chart .c .bb { width: 100%; max-width: 30px; display: flex; flex-direction: column-reverse; border-radius: 6px 6px 3px 3px; overflow: hidden; min-height: 2px; background: rgba(255,255,255,.05); }
.chart .c .bb i { display: block; width: 100%; }
.chart .c .bb .inc { background: var(--grad); }
.chart .c .bb .due { background: rgba(255, 122, 182, .28); }
.chart .c span { font-size: 10.5px; color: var(--dim); font-weight: 700; text-transform: uppercase; }
.chart .c.cur span { color: var(--pink); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* ---------- avvisi ---------- */
.toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%); z-index: 90; background: #2a1328; border: 1px solid var(--line2); color: var(--text); padding: 11px 16px; border-radius: 14px; font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.5); display: flex; gap: 12px; align-items: center; max-width: 92vw; animation: up .2s ease; }
.toast button { color: var(--pink); font-weight: 800; }
.banner { border-radius: 14px; padding: 11px 13px; font-size: 13.5px; background: rgba(255, 197, 107, .1); border: 1px solid rgba(255, 197, 107, .3); color: var(--warn); }

/* ---------- modalità palco ---------- */
.stage { position: fixed; inset: 0; z-index: 80; background: #000; display: flex; flex-direction: column; padding: calc(14px + var(--safe-t)) 20px calc(18px + var(--safe-b)); user-select: none; -webkit-user-select: none; }
.stage .top2 { display: flex; align-items: center; gap: 10px; color: #8a7184; font-weight: 700; font-size: 14px; }
.stage .main { flex: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 10px 0; overflow: hidden; }
.stage .pos { font-size: 18px; color: var(--rose); font-weight: 800; letter-spacing: 1px; }
.stage .song { all: unset; display: block; font-family: var(--serif); font-weight: 700; font-size: clamp(42px, 11vw, 96px); line-height: 1.02; margin: 10px 0; color: #fff; text-shadow: 0 0 30px rgba(255, 61, 154, .45); }
.stage .info { font-size: clamp(20px, 5vw, 34px); color: var(--peach); font-weight: 700; }
.stage .info2 { font-size: clamp(16px, 4vw, 24px); color: #b89cae; margin-top: 12px; white-space: pre-wrap; }
.stage .next { border-top: 1px solid #2a1a26; padding-top: 12px; color: #8a7184; font-size: 18px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.stage .next b { color: #e9d8e2; font-size: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage .nav { position: absolute; top: 70px; bottom: 90px; width: 40%; }
.stage .nav.l { left: 0; } .stage .nav.r { right: 0; }

/* ---------- stampa ---------- */
#print { display: none; }
@media print {
  @page { margin: 14mm; }
  html, body { background: #fff !important; color: #111 !important; }
  body::before { display: none; }
  body > *:not(#print) { display: none !important; }
  #print { display: block !important; font-family: var(--sans); color: #111; }
  #print .ph { text-align: center; border-bottom: 2px solid #e0218a; padding-bottom: 8px; margin-bottom: 14px; }
  #print .ph img { height: 34mm; width: auto; }
  #print h1 { font-family: var(--serif); font-size: 26pt; margin: 4px 0 0; }
  #print .pm { font-size: 11pt; color: #555; }
  #print ol { list-style: none; padding: 0; margin: 0; }
  #print li { display: flex; gap: 10pt; align-items: baseline; padding: 5pt 0; border-bottom: 1px solid #ddd; break-inside: avoid; }
  #print li .n { width: 26pt; text-align: right; font-weight: 800; color: #e0218a; }
  #print li .t { flex: 1; font-weight: 700; }
  #print li .a { color: #666; font-weight: 500; }
  #print li .k { font-weight: 800; min-width: 34pt; text-align: center; border: 1px solid #bbb; border-radius: 4pt; padding: 0 4pt; }
  #print li.pausa { color: #a46a12; font-style: italic; }
  #print li.momento .t { font-family: var(--serif); font-style: italic; font-size: 1.15em; color: #b0186d; }
  #print.big li { font-size: 20pt; padding: 8pt 0; }
  #print.big li .a { display: none; }
  #print table { width: 100%; border-collapse: collapse; font-size: 11pt; }
  #print td, #print th { border-bottom: 1px solid #ddd; padding: 5pt 4pt; text-align: left; }
  #print .tot { margin-top: 10pt; font-size: 12pt; }
}
