/* Italian Tweaks Tracker — stile di italiantweaks.com: nero #000001, alone magenta, Chakra Petch / Inter / JetBrains Mono. */

:root {
  color-scheme: dark;
  --bg: #000001;
  --surface: #0b0b10;
  --surface-2: #101017;
  --surface-3: #15151e;
  --field: #07070b;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --line-3: rgba(255, 255, 255, .22);
  --text: #f4f4f6;
  --text-2: #b1b1bb;
  --text-3: #8d8d99;
  --magenta: #d22f86;
  --magenta-hi: #e04596;
  --magenta-text: #ef63ad;
  --aqua: #50d9d7;
  --emerald: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --series-tickets: #5e5e72;
  --series-sales: #d22f86;
  --r: 16px;
  --r-sm: 10px;
  --r-xs: 8px;
  --gutter: 16px;
  --maxw: 1320px;
  --f-display: 'Chakra Petch', 'Inter', system-ui, sans-serif;
  --f-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.55 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--aqua); text-underline-offset: 3px; }
a:hover { color: #8be9e7; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
::selection { background: var(--magenta); color: #fff; }

:focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; border-radius: 6px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: #fff; color: #000; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
/* top/left 0: un elemento assoluto dentro un contenitore che scorre non deve allargare la pagina sul telefono */
.sr-only { position: absolute; top: 0; left: 0; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* sfondo: alone magenta radiale + griglia di punti che sfuma */
.bg-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 560px at 14% -12%, rgba(210, 47, 134, .24), transparent 62%),
    radial-gradient(640px 420px at 88% 0%, rgba(210, 47, 134, .10), transparent 64%),
    radial-gradient(700px 480px at 70% 115%, rgba(80, 217, 215, .05), transparent 60%);
}
.bg-glow::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 65%);
  mask-image: linear-gradient(to bottom, #000, transparent 65%);
}

/* ---------- testo ---------- */
.h1 {
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(30px, 4.6vw, 48px); line-height: 1.04; letter-spacing: -.005em; margin: 16px 0 12px;
}
.h1 .accent, .accent-text { color: var(--magenta); }
.h2 { font: 700 20px/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .03em; }
.h3 { font: 700 17px/1.3 var(--f-display); letter-spacing: .01em; }
.lead { color: #a1a1aa; font-size: 16px; font-weight: 500; max-width: 68ch; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.fine { font-size: 13px; color: var(--text-3); }
.strong { font-weight: 600; color: #fff; }
.num { font-family: var(--f-mono); font-feature-settings: 'zero' 0; }
.mono { font-family: var(--f-mono); font-size: .92em; }
.nowrap { white-space: nowrap; }
.neg { color: #fca5a5; }
.eyebrow { font: 700 12px/1 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.noscript { padding: 40px; text-align: center; }

.badge {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border: 1px solid;
}
.badge-ok { background: rgba(16, 185, 129, .10); border-color: rgba(16, 185, 129, .22); color: var(--emerald); }
.badge-warn { background: rgba(245, 158, 11, .10); border-color: rgba(245, 158, 11, .28); color: var(--amber); }

/* ---------- barra di navigazione (pillola fluttuante come sul sito) ---------- */
.topbar { position: sticky; top: 0; z-index: 30; padding: 14px var(--gutter) 0; }
.nav {
  position: relative;
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px 8px 20px;
  border: 1px solid rgba(255, 255, 255, .10); border-radius: 999px;
  background: rgba(10, 10, 10, .62);
  -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .35);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand-logo { height: 38px; width: auto; transition: transform .3s var(--ease); }
.brand:hover .brand-logo { transform: scale(1.04); }
.brand-tag {
  font: 600 12.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3); padding-left: 12px; border-left: 1px solid var(--line-2);
}
.nav-links {
  position: relative;
  display: flex; gap: 2px; flex: 1 1 auto; justify-content: center; min-width: 0;
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-link {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 10px 16px; border-radius: 999px;
  color: #d4d4d8; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s, box-shadow .2s;
}
.nav-link .ico { width: 16px; height: 16px; opacity: .8; }
.nav-link:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.nav-link[aria-current='page'] { background: rgba(210, 47, 134, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(210, 47, 134, .45); }
.nav-link[aria-current='page'] .ico { color: var(--magenta-text); opacity: 1; }
.nav-user { display: flex; align-items: center; gap: 10px; flex: none; }
.avatar { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(210, 47, 134, .5); object-fit: cover; }
.avatar-fallback { display: grid; place-items: center; background: rgba(210, 47, 134, .15); color: #fff; font: 700 13px/1 var(--f-display); }
.nav-user-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-user-name { font-size: 13px; font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-user-role { font-size: 13px; color: var(--text-3); }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04);
  color: var(--text-2); cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.icon-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .1); color: #fff; border-color: var(--line-3); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.icon-btn .ico { width: 16px; height: 16px; }
.ico { width: 18px; height: 18px; flex: none; }

/* separatori e schede dei creator (pallino nel colore del creator) */
.nav-sep { flex: none; align-self: center; width: 1px; height: 22px; margin: 0 6px; background: var(--line-2); }
.nav-dot {
  display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%;
  background: var(--c, #8b8b96); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, #8b8b96) 22%, transparent);
}
.nav-link-creator:hover .nav-dot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 30%, transparent); }
.nav-link-creator[aria-current='page'] {
  background: color-mix(in srgb, var(--c) 15%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent);
}
/* schede che scorrono (telefono): sfumatura sul lato dove ce ne sono altre */
.nav-links.has-more:not(.at-end):not(.at-start) { -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 36px), transparent); }
.nav-links.has-more.at-start:not(.at-end) { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.nav-links.has-more.at-end:not(.at-start) { -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px); mask-image: linear-gradient(90deg, transparent, #000 28px); }
/* .is-stacked: le schede vanno su una riga propria quando non stanno accanto al logo (lo decide app.js) */
.nav.is-stacked { flex-wrap: wrap; border-radius: 26px; padding: 10px 10px 8px 16px; row-gap: 8px; }
.nav.is-stacked .nav-links { order: 3; flex-basis: 100%; justify-content: flex-start; margin: 0 -6px; padding: 2px 4px; }
.nav.is-stacked .nav-user { margin-left: auto; }
@media (max-width: 1180px) {
  .nav { flex-wrap: wrap; border-radius: 26px; padding: 10px 10px 8px 16px; row-gap: 8px; }
  .nav-links { order: 3; flex-basis: 100%; justify-content: flex-start; margin: 0 -6px; padding: 2px 4px; }
  .nav-user { margin-left: auto; }
}
@media (max-width: 560px) {
  .brand-logo { height: 32px; }
  .brand-tag, .nav-user-text { display: none; }
  .nav-link { padding: 9px 13px; font-size: 13.5px; }
}

/* ---------- contenuto ---------- */
main { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 36px var(--gutter) 96px; outline: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head-text { min-width: 0; flex: 1 1 520px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.section-title { display: flex; align-items: center; gap: 14px; margin: 44px 0 16px; flex-wrap: wrap; }
.section-title::after {
  content: ''; order: 3; flex: 1 1 80px; height: 1px; min-width: 40px;
  background: linear-gradient(90deg, rgba(210, 47, 134, .55), rgba(210, 47, 134, 0));
}
.section-sub { order: 2; color: var(--text-3); font-size: 13px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack:empty { display: none; }
.stack-lg { display: flex; flex-direction: column; gap: 16px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-2-1 { display: grid; gap: 16px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.grid-st { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1040px) { .grid-2-1, .grid-st { grid-template-columns: minmax(0, 1fr); } }

/* ---------- card ---------- */
.card {
  position: relative; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px;
}
.card-flush { padding: 0; overflow: hidden; }
.card-pad { padding: 20px 20px 4px; }
.card-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.card-head .h3 { margin-top: 2px; }
.card-head.card-pad { margin-bottom: 10px; }
.ico-box {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px;
  background: rgba(210, 47, 134, .07); border: 1px solid rgba(210, 47, 134, .32); color: var(--magenta-text);
}
.ico-box .ico { width: 20px; height: 20px; }
.ico-box-sm { width: 36px; height: 36px; border-radius: 11px; }
.ico-box-sm .ico { width: 17px; height: 17px; }
.ico-box-lg { width: 56px; height: 56px; border-radius: 18px; }
.ico-box-lg .ico { width: 26px; height: 26px; }
.ico-warn { background: rgba(245, 158, 11, .08); border-color: rgba(245, 158, 11, .35); color: var(--amber); }

/* ---------- pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 18px; border-radius: 999px;
  font: 600 14px/1 var(--f-sans); color: #fff; text-decoration: none; white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  cursor: pointer; transition: transform .25s var(--ease), background .2s, border-color .2s, box-shadow .2s;
}
.btn .ico { width: 16px; height: 16px; }
.btn:hover:not(:disabled) { background: rgba(255, 255, 255, .10); border-color: rgba(255, 255, 255, .28); transform: translateY(-1px); color: #fff; }
.btn-primary { background: var(--magenta); border-color: var(--magenta); box-shadow: 0 6px 24px rgba(210, 47, 134, .28); }
.btn-primary:hover:not(:disabled) { background: var(--magenta-hi); border-color: var(--magenta-hi); box-shadow: 0 8px 30px rgba(210, 47, 134, .4); }
.btn-danger { color: #fecaca; border-color: rgba(239, 68, 68, .4); background: rgba(239, 68, 68, .10); }
.btn-danger:hover:not(:disabled) { background: rgba(239, 68, 68, .2); border-color: rgba(239, 68, 68, .6); }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn-lg { min-height: 50px; padding: 0 26px; font-size: 16px; }
.btn:disabled { opacity: .42; cursor: not-allowed; box-shadow: none; }
.btn.is-busy { cursor: progress; opacity: .75; }
.btn.is-busy .ico { animation: spin 1s linear infinite; }

/* ---------- moduli ---------- */
.input {
  width: 100%; min-height: 40px; padding: 8px 12px;
  border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--field);
  color: var(--text); font-size: 14px; line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #6e6e7a; }
.input:hover { border-color: var(--line-3); }
.input:focus, .input:focus-visible { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(80, 217, 215, .18); }
.input:disabled { opacity: .5; }
.textarea { min-height: 76px; resize: vertical; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23b1b1bb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.select option { background: #0b0b10; color: var(--text); }
input[type='date'].input { min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field-hint { font-size: 13px; color: var(--text-3); line-height: 1.4; }
.field-inline { flex-direction: row; align-items: center; gap: 8px; }
.field-inline .field-label { white-space: nowrap; }
.form-grid { display: grid; gap: 14px 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.form-grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.inline-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { flex: 1 1 220px; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--magenta); flex: none; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 6px 0; }

.switch { position: relative; display: inline-flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 14px; }
.switch-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track {
  position: relative; flex: none; width: 40px; height: 24px; margin-top: 1px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--line-2); transition: background .2s, border-color .2s;
}
.switch-thumb {
  position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #a1a1aa; transition: transform .25s var(--ease), background .2s;
}
.switch-input:checked + .switch-track { background: rgba(16, 185, 129, .28); border-color: rgba(16, 185, 129, .65); }
.switch-input:checked + .switch-track .switch-thumb { transform: translateX(16px); background: #fff; }
.switch-input:focus-visible + .switch-track { outline: 2px solid var(--aqua); outline-offset: 2px; }
.switch-text { display: flex; flex-direction: column; gap: 2px; }
.switch-label { font-weight: 500; color: var(--text); }
.switch-row { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.switch-grid { display: grid; gap: 16px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

/* gettoni */
.tags-input {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 40px; padding: 5px 8px;
  border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--field); cursor: text;
}
.tags-input:focus-within { border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(80, 217, 215, .18); }
.tags { display: contents; }
.tag {
  display: inline-flex; align-items: center; gap: 4px; max-width: 100%;
  padding: 3px 4px 3px 10px; border-radius: 999px; font-size: 13px;
  background: rgba(210, 47, 134, .10); border: 1px solid rgba(210, 47, 134, .3); color: #fbe7f2;
}
.tag > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-x {
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  border: 0; background: transparent; color: #f9a8d4; cursor: pointer; font-size: 15px; line-height: 1;
}
.tag-x:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.tags-entry { flex: 1 1 120px; min-width: 100px; border: 0; background: transparent; padding: 4px; font-size: 14px; outline: none; }
.tags-entry::placeholder { color: #6e6e7a; }

/* ---------- chip e stati ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%;
  padding: 3px 10px; border-radius: 999px; border: 1px solid;
  font-size: 13px; font-weight: 600; line-height: 1.5; white-space: nowrap;
}
.chip-sm { padding: 1px 8px; font-size: 13px; }
.chip-ok { color: var(--emerald); background: rgba(16, 185, 129, .10); border-color: rgba(16, 185, 129, .25); }
.chip-info { color: var(--aqua); background: rgba(80, 217, 215, .08); border-color: rgba(80, 217, 215, .26); }
.chip-warn { color: var(--amber); background: rgba(245, 158, 11, .10); border-color: rgba(245, 158, 11, .30); }
.chip-bad { color: #fca5a5; background: rgba(239, 68, 68, .10); border-color: rgba(239, 68, 68, .30); }
.chip-accent { color: var(--magenta-text); background: rgba(210, 47, 134, .10); border-color: rgba(210, 47, 134, .35); }
.chip-muted { color: var(--text-2); background: rgba(255, 255, 255, .04); border-color: var(--line-2); }
.chip-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.sdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.sdot-ok { background: var(--emerald); box-shadow: 0 0 0 3px rgba(16, 185, 129, .18); }
.sdot-warn { background: var(--amber); box-shadow: 0 0 0 3px rgba(245, 158, 11, .18); }
.sdot-bad { background: var(--red); box-shadow: 0 0 0 3px rgba(239, 68, 68, .18); }
.sdot-info { background: var(--aqua); }
.row-inline { display: inline-flex; align-items: center; gap: 8px; }

.who { display: inline-flex; align-items: flex-start; gap: 8px; min-width: 0; }
.who-text { display: flex; flex-direction: column; min-width: 0; }
.who-name { font-weight: 600; color: #fff; }
.who-none { color: var(--text-3); align-items: center; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c, #8b8b96); flex: none; margin-top: 6px; box-shadow: 0 0 0 2px var(--surface); }
.who-none .dot { margin-top: 0; }
.dot-none { background: transparent; border: 1.5px dashed #5e5e6a; box-shadow: none; }
.creator-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }

/* ---------- avvisi e stati vuoti ---------- */
.notice { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--r); border: 1px solid; background: var(--surface); }
.notice-ico { flex: none; margin-top: 1px; }
.notice-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 14px; color: var(--text-2); }
.notice-body .btn { align-self: flex-start; margin-top: 6px; }
.notice-title { color: #fff; font-size: 14.5px; }
.notice-warn { border-color: rgba(245, 158, 11, .28); background: linear-gradient(0deg, rgba(245, 158, 11, .05), rgba(245, 158, 11, .05)), var(--surface); }
.notice-warn .notice-ico { color: var(--amber); }
.notice-bad { border-color: rgba(239, 68, 68, .32); background: linear-gradient(0deg, rgba(239, 68, 68, .06), rgba(239, 68, 68, .06)), var(--surface); }
.notice-bad .notice-ico { color: var(--red); }
.notice-info { border-color: rgba(80, 217, 215, .25); }
.notice-info .notice-ico { color: var(--aqua); }
.notice-ok { border-color: rgba(16, 185, 129, .25); }
.notice-ok .notice-ico { color: var(--emerald); }
.steps { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; color: var(--text-2); }
.steps li::marker { color: var(--magenta-text); font-family: var(--f-mono); font-weight: 600; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 52px 20px; }
.empty .muted { max-width: 56ch; }
.empty .steps { text-align: left; max-width: 560px; }
.empty-row { text-align: center; color: var(--text-3); padding: 28px 16px !important; }

/* ---------- caricamento ---------- */
.boot { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 120px 0; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .1); border-top-color: var(--magenta); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skel-wrap { display: flex; flex-direction: column; gap: 12px; }
.skel {
  border-radius: var(--r); border: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255, 255, 255, .025) 0%, rgba(255, 255, 255, .06) 50%, rgba(255, 255, 255, .025) 100%);
  background-size: 200% 100%; animation: shimmer 1.4s linear infinite;
}
.skel-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.skel-tile { height: 128px; }
.skel-panel { height: 300px; }
.skel-bar { height: 44px; border-radius: 12px; }
.skel-row { height: 46px; border-radius: 10px; }
.card-flush > .skel-wrap { padding: 16px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.is-refreshing { opacity: .5; transition: opacity .2s; pointer-events: none; }

/* ---------- panoramica ---------- */
.sys { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: -8px 0 20px; font-size: 13.5px; }
.sys-item { display: inline-flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.sys-item strong { font-weight: 600; }
.notices:not(:empty) { margin-bottom: 20px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 24px; }
.segmented {
  display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
}
.seg {
  padding: 8px 16px; border-radius: 999px; border: 0; background: transparent; cursor: pointer;
  color: #d4d4d8; font-size: 13.5px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s;
}
.seg:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.seg.is-on { background: rgba(210, 47, 134, .16); color: #fff; box-shadow: inset 0 0 0 1px rgba(210, 47, 134, .5); }
.range-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.range-form .input { width: auto; min-height: 36px; padding: 6px 10px; }
.is-hidden { display: none !important; }
.range-label { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13.5px; font-family: var(--f-mono); }
.range-label .ico { width: 15px; height: 15px; color: var(--magenta-text); }

.kpi-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 178px), 1fr)); }
.kpi { display: flex; flex-direction: column; gap: 10px; padding: 18px; transition: border-color .3s; }
.kpi:hover { border-color: rgba(210, 47, 134, .4); }
.kpi-top { display: flex; align-items: center; gap: 10px; }
.kpi-label { font-size: 13px; line-height: 1.3; font-weight: 500; color: var(--text-2); }
.kpi-value { font-size: clamp(21px, 2vw, 27px); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; color: #fff; overflow-wrap: anywhere; }
.kpi-multi { display: flex; flex-direction: column; gap: 4px; font-size: .8em; }
.kpi-sub { font-size: 13px; color: var(--text-3); margin-top: auto; }
@media (max-width: 420px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px; }
  .kpi .ico-box-sm { width: 30px; height: 30px; border-radius: 9px; }
  .kpi-value { font-size: 20px; }
}

.creator-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 288px), 1fr)); }
.creator-card {
  --c: #8b8b96;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 9%, transparent), transparent 140px), var(--surface);
  border-top: 2px solid var(--c); transition: border-color .3s;
}
.creator-card:hover { border-color: color-mix(in srgb, var(--c) 55%, transparent); border-top-color: var(--c); }
.cc-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cc-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); flex: none; }
.cc-name { font: 700 19px/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.funnel { display: grid; gap: 12px; margin: 18px 0; }
.fn-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; font-size: 13px; }
.fn-label { color: var(--text-2); }
.fn-val { color: #fff; font-weight: 600; font-size: 14px; }
.fn-conv { color: var(--text-3); font-weight: 500; font-size: 13px; }
.fn-track { height: 10px; border-radius: 0 4px 4px 0; background: rgba(255, 255, 255, .04); }
.fn-bar.is-zero { min-width: 0; }
.fn-bar { height: 100%; width: var(--w, 0%); min-width: 2px; border-radius: 0 4px 4px 0; background: var(--c); transition: width .6s var(--ease); }
.fn-step-1 .fn-bar { background: color-mix(in srgb, var(--c) 72%, var(--surface)); }
.fn-step-2 .fn-bar { background: color-mix(in srgb, var(--c) 50%, var(--surface)); }
.cc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.cc-stats dt, .mini-stats dt { font-size: 13px; color: var(--text-3); }
.cc-stats dd, .mini-stats dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: #fff; }
.cc-stats > div:last-child dd { font-family: var(--f-sans); font-weight: 500; font-size: 13px; color: var(--text-2); }

.hbars { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(84px, 38%) 1fr auto; align-items: center; gap: 10px; font-size: 13.5px; }
.hbar-label { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { height: 8px; border-radius: 0 4px 4px 0; background: rgba(255, 255, 255, .04); }
.hbar-fill { display: block; height: 100%; width: var(--w, 0%); min-width: 2px; border-radius: 0 4px 4px 0; background: var(--aqua); }
.hbar-val { color: #fff; font-weight: 600; min-width: 2ch; text-align: right; }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); }

/* grafico */
.chart { position: relative; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; font-size: 13px; color: var(--text-2); }
.legend-item { display: inline-flex; align-items: center; gap: 8px; }
.legend-sw { width: 10px; height: 10px; border-radius: 3px; }
.sw-tickets { background: var(--series-tickets); }
.sw-sales { background: var(--series-sales); }
.chart-holder { position: relative; width: 100%; min-height: 232px; }
.chart-empty { padding: 90px 0; text-align: center; }
.chart-svg { overflow: visible; touch-action: pan-y; }
.chart-svg:focus-visible { outline-offset: 6px; }
.chart-svg .grid { stroke: rgba(255, 255, 255, .06); stroke-width: 1; shape-rendering: crispEdges; }
.chart-svg .grid-base { stroke: rgba(255, 255, 255, .2); }
.chart-svg .tick { fill: var(--text-3); font: 500 12.5px var(--f-mono); }
.chart-svg .hit { fill: transparent; }
.chart-svg .bar-tickets { fill: var(--series-tickets); }
.chart-svg .bar-sales { fill: var(--series-sales); }
.chart-svg .day.is-active .hit { fill: rgba(255, 255, 255, .05); }
.chart-svg .day.is-active .bar-tickets { fill: #8a8aa3; }
.chart-svg .day.is-active .bar-sales { fill: color-mix(in srgb, var(--series-sales) 78%, #fff); }
.chart-tip {
  position: absolute; top: 0; z-index: 3; min-width: 176px; pointer-events: none;
  padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(17, 17, 24, .96); box-shadow: 0 12px 32px rgba(0, 0, 0, .55); font-size: 13px;
}
.tip-date { font-weight: 600; color: #fff; margin-bottom: 6px; }
.tip-row { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.tip-row strong { color: #fff; }
.tip-key { width: 12px; height: 3px; border-radius: 2px; }
.key-tickets { background: var(--series-tickets); }
.key-sales { background: var(--series-sales); }
.tip-net { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); color: var(--text-2); }
.data-table { margin-top: 14px; }
.data-table summary { cursor: pointer; color: var(--text-2); font-size: 13px; width: fit-content; }
.data-table summary:hover { color: #fff; }
.data-table[open] summary { margin-bottom: 10px; }

/* misuratori soglie */
.meters { display: grid; gap: 16px; margin: 18px 0; }
.meter-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; font-size: 14px; }
.meter-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.meter-label .ico { width: 16px; height: 16px; color: var(--magenta-text); }
.meter-count strong { font-size: 16px; color: #fff; }
.meter-track { height: 10px; border-radius: 999px; background: rgba(210, 47, 134, .13); overflow: hidden; }
.meter-fill { height: 100%; width: var(--w, 0%); border-radius: 999px; background: linear-gradient(90deg, #b5266f, var(--magenta)); transition: width .6s var(--ease); }
.meter.is-reached .meter-track { background: rgba(16, 185, 129, .14); }
.meter.is-reached .meter-fill { background: #10b981; }
.meter.is-reached .meter-label .ico { color: var(--emerald); }
.meter-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 7px; font-size: 13px; }

/* payout */
.payout { display: flex; flex-direction: column; }
.payout-head { display: flex; gap: 14px; align-items: flex-start; }
.payout-head .h3 { font-size: 18px; text-transform: uppercase; letter-spacing: .02em; }
.payout-amounts { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 22px 0 4px; }
.payout-amount { display: flex; flex-direction: column; gap: 4px; }
.payout-cur { font-size: 13px; color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.payout-value { font-size: clamp(26px, 3vw, 34px); font-weight: 600; color: #fff; letter-spacing: -.03em; line-height: 1.1; }
.payout-note { margin: 14px 0 18px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 14px; color: var(--magenta-text); text-decoration: none; width: fit-content; }
.link-arrow .ico { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover { color: #fff; }
.link-arrow:hover .ico { transform: translateX(3px); }

/* ---------- rendiconti ---------- */
.toolbar-statement { align-items: flex-end; gap: 14px 22px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(11, 11, 16, .7); }
.period-pick { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.period-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.period-select { width: auto; min-width: 250px; max-width: 100%; font-weight: 600; }
.pay-when { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; padding-bottom: 9px; }
.pay-when .ico { width: 16px; height: 16px; color: var(--magenta-text); }
.pay-when strong { color: #fff; }
.toolbar-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }
@media (max-width: 720px) {
  .toolbar-actions { margin-left: 0; width: 100%; }
  .period-pick { width: 100%; }
  .period-select { min-width: 0; flex: 1 1 100%; }
  .pay-when { padding-bottom: 0; }
}
.total-card { display: flex; flex-direction: column; gap: 10px; background: linear-gradient(160deg, rgba(210, 47, 134, .12), transparent 55%), var(--surface); border-color: rgba(210, 47, 134, .3); }
.big-amounts { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.big-amount { font-size: clamp(32px, 4vw, 44px); font-weight: 600; letter-spacing: -.04em; line-height: 1.1; color: #fff; }
.payers { display: grid; gap: 2px; margin-top: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.payer { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; font-size: 14px; flex-wrap: wrap; }
.payer-name { color: var(--text-2); }
.payer-val { color: #fff; font-weight: 600; }
.fx-line { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; font-family: var(--f-mono); }
.fx-line .ico { width: 15px; height: 15px; color: var(--aqua); }
.excluded-total { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--amber); font-size: 14px; }
.excluded-total .ico { width: 16px; height: 16px; }
.notes { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--text-2); font-size: 14px; }
.notes li::marker { color: var(--magenta-text); }
.notes-extra { margin-top: 10px; }
.notes-head { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.item-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.item-line + .item-line { margin-top: 4px; }
.ledger-label { display: block; font-weight: 500; color: #fff; }
.ledger td { padding-top: 13px; padding-bottom: 13px; }

/* ---------- tabelle ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.table-wrap:focus-visible { outline-offset: -2px; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.table th {
  padding: 12px 14px; text-align: left; white-space: nowrap;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3);
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .015);
}
.table td { padding: 12px 14px; vertical-align: top; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .r { text-align: right; }
.table td.num, .table td .num, .table th.r { font-variant-numeric: tabular-nums; }
.table tfoot td { border-top: 1px solid var(--line-2); border-bottom: 0; font-weight: 600; color: #fff; background: rgba(255, 255, 255, .02); }
.table tr.total td { font-size: 15px; }
.table-compact td { padding: 8px 10px; }
.table-compact th { padding: 9px 10px; }
.table-edit td { vertical-align: middle; }
.table-edit .input { min-height: 36px; padding: 6px 10px; }
.cell-sub { display: block; margin-top: 3px; font-size: 13px; color: var(--text-3); line-height: 1.35; }
.table td.r .cell-sub, .table td .mono, .table td.mono { white-space: nowrap; }
.quote { font-style: italic; }
.row-click { cursor: pointer; transition: background .15s; }
.row-click:hover td { background: rgba(255, 255, 255, .025); }
.row-click.is-open td { background: rgba(210, 47, 134, .07); }
.row-click.is-closed .row-link { color: #d4d4d8; }
.row-click.is-muted td { opacity: .62; }
.row-link { color: #fff; font-weight: 600; text-decoration: none; }
.row-link:hover { color: var(--magenta-text); text-decoration: underline; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions .icon-btn { width: 32px; height: 32px; margin-left: 4px; }
.table-card { min-height: 120px; }
.list-meta { display: flex; justify-content: space-between; margin: 0 4px 10px; color: var(--text-3); font-size: 13px; font-family: var(--f-mono); }
.sec { display: inline-flex; align-items: center; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.sec-lang { padding: 2px 7px; font-family: var(--f-mono); background: rgba(255, 255, 255, .06); color: #fff; }
.sec-kind { padding: 2px 8px; color: var(--text-2); }
.sec-it .sec-lang { background: rgba(210, 47, 134, .22); }
.sec-en .sec-lang { background: rgba(80, 217, 215, .16); }
.sec-es .sec-lang { background: rgba(245, 165, 36, .18); }

/* filtri */
.filters {
  display: grid; gap: 10px; align-items: end; margin-bottom: 12px;
  grid-template-columns: minmax(220px, 2.2fr) repeat(5, minmax(120px, 1fr)) auto;
}
.filters .input { min-height: 40px; }
.search { position: relative; }
.search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-3); pointer-events: none; }
.search .input { padding-left: 36px; }
.filter-date { position: relative; display: block; min-width: 0; }
.filter-date > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.filter-date .input { padding-left: 44px; }
.filters-sales { grid-template-columns: repeat(2, minmax(170px, 1.2fr)) repeat(3, minmax(130px, 1fr)) auto; }
@media (max-width: 1180px) {
  .filters { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
  .filters .search { grid-column: 1 / -1; }
  .filters-reset { justify-self: start; }
}

/* duplicati */
.dup-card { margin-bottom: 16px; border-color: rgba(245, 158, 11, .3); }
.dups { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dup {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line);
}
.dup-sale { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dup-src { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.dup-arrow { color: var(--amber); }
.dup-arrow .ico { width: 18px; height: 18px; }
.dup-meta { display: flex; flex-wrap: wrap; gap: 4px; }
@media (max-width: 900px) {
  .dup { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .dup-meta { grid-column: 1 / -1; }
  .dup > .btn { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- pannello laterale e finestre ---------- */
dialog { color: var(--text); }
dialog::backdrop { background: rgba(0, 0, 1, .66); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.drawer {
  margin: 0 0 0 auto; padding: 0; border: 0; border-left: 1px solid var(--line-2);
  width: min(620px, 100vw); max-width: 100vw; height: 100vh; height: 100dvh; max-height: 100dvh;
  background: #08080d; box-shadow: -24px 0 60px rgba(0, 0, 0, .5);
}
.drawer[open] { animation: drawer-in .3s var(--ease); }
@keyframes drawer-in { from { transform: translateX(28px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-inner { display: flex; flex-direction: column; height: 100%; }
.drawer-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 20px 24px 16px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(210, 47, 134, .10), transparent);
}
.drawer-head-text { min-width: 0; }
.drawer-title { font: 700 22px/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .01em; overflow-wrap: anywhere; }
.drawer-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; }
.drawer-sub:empty { display: none; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 24px 48px; display: flex; flex-direction: column; gap: 22px; overscroll-behavior: contain; }
@media (max-width: 560px) { .drawer-head { padding: 16px; } .drawer-body { padding: 16px 16px 40px; } }
.d-section { display: flex; flex-direction: column; gap: 10px; }
.d-section + .d-section { padding-top: 20px; border-top: 1px solid var(--line); }
.d-title { font: 700 13px/1.2 var(--f-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.d-hero .who-name { font-size: 18px; font-family: var(--f-display); text-transform: uppercase; }
.d-hero .dot { width: 14px; height: 14px; margin-top: 7px; }
.d-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.d-form { display: flex; flex-direction: column; gap: 14px; }
.dl { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.dl dt { color: var(--text-3); }
.dl dd { margin: 0; color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.dl-grid { grid-template-columns: minmax(150px, 46%) 1fr; }
.evidence { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ev { display: flex; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.ev-win { border-color: rgba(210, 47, 134, .4); background: rgba(210, 47, 134, .06); }
.ev-prio { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 8px; background: rgba(255, 255, 255, .06); font-size: 13px; font-weight: 700; }
.ev-win .ev-prio { background: var(--magenta); color: #fff; }
.ev-other { border-color: rgba(245, 158, 11, .3); }
.ev-other .ev-prio { background: rgba(245, 158, 11, .16); color: var(--amber); }
.ev-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.ev-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ev-title .who .dot { margin-top: 0; }
.ev-title .who { align-items: center; }
.ev-detail { color: var(--text-3); font-size: 13px; overflow-wrap: anywhere; }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mini-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; }
.mini-list li > .num { margin-left: auto; }

.modal {
  width: min(500px, calc(100vw - 32px)); padding: 24px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: #0b0b10; box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.modal[open] { animation: pop .22s var(--ease); }
@keyframes pop { from { transform: scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.modal .h3 { font-size: 20px; text-transform: uppercase; }
.modal-body { display: grid; gap: 8px; margin: 12px 0 16px; color: var(--text-2); font-size: 14.5px; }
.modal .check { margin: 4px 0 14px; color: #fff; }
.modal .field { margin-bottom: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* toast (popover: resta sopra le finestre modali) */
.toasts {
  position: fixed; inset: auto 20px 20px auto; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px; max-width: min(440px, calc(100vw - 40px)); z-index: 1000;
}
.toasts:not(:popover-open) { display: none; }
.toasts:empty { display: none; }
.toast {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 14px;
  border: 1px solid; background: #0e0e14; box-shadow: 0 12px 34px rgba(0, 0, 0, .55); font-size: 14px; color: #fff;
  animation: toast-in .3s var(--ease);
}
.toast .ico { width: 18px; height: 18px; margin-top: 1px; }
.toast-ok { border-color: rgba(16, 185, 129, .4); }
.toast-ok .ico { color: var(--emerald); }
.toast-bad { border-color: rgba(239, 68, 68, .45); }
.toast-bad .ico { color: var(--red); }
.toast-info { border-color: rgba(80, 217, 215, .4); }
.toast-info .ico { color: var(--aqua); }
.toast.is-out { opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .toasts { inset: auto 12px 12px 12px; max-width: none; align-items: stretch; } }

/* ---------- creator ---------- */
.creator-edit-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 1fr)); }
.creator-edit { --c: #8b8b96; display: flex; flex-direction: column; gap: 18px; border-top: 2px solid var(--c); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 7%, transparent), transparent 120px), var(--surface); }
.creator-edit > .skel-wrap { grid-column: 1 / -1; }
.ce-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ce-flags { display: inline-flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.color-row { display: flex; gap: 8px; align-items: center; }
.color-row .input { flex: 1; }
.color-input { width: 44px; height: 40px; padding: 3px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--field); cursor: pointer; flex: none; }
.color-input::-webkit-color-swatch-wrapper { padding: 0; }
.color-input::-webkit-color-swatch { border: 0; border-radius: 7px; }
.creator-new { display: flex; flex-direction: column; gap: 16px; border-style: dashed; border-color: var(--line-2); }
.set-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.set-foot .btn { margin-left: auto; }
.dirty-hint { visibility: hidden; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--amber); }
.dirty-hint::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.is-dirty .dirty-hint { visibility: visible; }

/* ---------- impostazioni ---------- */
.settings { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
/* resta fisso subito sotto la barra in cima (--topbar-h la misura app.js: una o due righe di schede) */
.settings-nav {
  position: sticky; top: calc(var(--topbar-h, 96px) + 16px); display: flex; flex-direction: column; gap: 2px;
  max-height: calc(100vh - var(--topbar-h, 96px) - 32px); overflow-y: auto; scrollbar-width: thin;
}
.settings-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 999px; border: 0;
  background: transparent; color: #d4d4d8; font-size: 14px; font-weight: 500; text-align: left; cursor: pointer;
}
.settings-link .ico { width: 16px; height: 16px; color: var(--text-3); }
.settings-link:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.settings-link:hover .ico { color: var(--magenta-text); }
.settings-content { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.settings-content > * { scroll-margin-top: calc(var(--topbar-h, 96px) + 16px); }
@media (max-width: 900px) {
  .settings { grid-template-columns: minmax(0, 1fr); }
  .settings-nav { position: static; max-height: none; flex-direction: row; overflow-x: auto; overflow-y: visible; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .settings-nav::-webkit-scrollbar { display: none; }
  .settings-link { flex: none; border: 1px solid var(--line); }
  .settings-content > * { scroll-margin-top: 20px; }
}
.set-card { display: flex; flex-direction: column; gap: 18px; padding: 22px; }
.set-head { display: flex; gap: 14px; align-items: flex-start; }
.set-head .h3 { font-size: 18px; text-transform: uppercase; letter-spacing: .02em; }
.set-head p { margin-top: 4px; max-width: 70ch; }
.set-body { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.set-sub { font: 700 12.5px/1.2 var(--f-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-top: 6px; }
[data-nodirty] > .table-wrap + p { margin-top: 10px; }
.list-editor { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.list-editor > .table-wrap { width: 100%; border: 1px solid var(--line); border-radius: 12px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); width: fit-content; max-width: 100%; overflow-x: auto; }
.tab { padding: 8px 14px; border-radius: 999px; border: 0; background: transparent; color: #d4d4d8; font-size: 13.5px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.tab:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.tab.is-on { background: rgba(210, 47, 134, .16); color: #fff; box-shadow: inset 0 0 0 1px rgba(210, 47, 134, .5); }
.shop-status { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; padding: 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.shop-status .dl { flex: 1 1 320px; }
.shop-status + .notice { margin-top: 12px; }
.contracts { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.contract { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.contract.is-editing { border-color: rgba(245, 158, 11, .45); background: linear-gradient(0deg, rgba(245, 158, 11, .04), rgba(245, 158, 11, .04)), var(--surface-2); }
.contract-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.contract-head .h3 { text-transform: uppercase; }
.contract .dl { font-size: 13.5px; }
.contract .dl dd { font-family: var(--f-mono); font-size: 13px; }
.contract-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* ---------- accesso ---------- */
.auth { min-height: calc(100vh - 140px); display: grid; place-items: center; padding: 20px 0; }
.auth-card { width: min(560px, 100%); padding: 36px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; border-color: rgba(210, 47, 134, .22); box-shadow: 0 30px 90px rgba(210, 47, 134, .08); }
.auth-logo { height: 56px; width: auto; margin-bottom: 18px; }
.auth-card .lead { font-size: 15px; margin-bottom: 18px; }
.auth-card .notice { text-align: left; width: 100%; margin-bottom: 16px; }
.auth-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }

@media (max-width: 560px) {
  main { padding-top: 24px; }
  .card { padding: 16px; }
  .card-flush { padding: 0; }
  .card-pad { padding: 16px 16px 2px; }
  .set-card { padding: 16px; }
  .auth-card { padding: 26px 18px; }
  .lead { font-size: 15px; }
  .dl, .dl-grid { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .dl dd { margin-bottom: 8px; }
  .mini-stats { grid-template-columns: 1fr 1fr; }
  .segmented { border-radius: 18px; }
  .seg { flex: 1 1 auto; text-align: center; padding: 8px 12px; }
  .toolbar-statement { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .fn-bar, .hbar-fill, .meter-fill, .legend-sw, .dot { forced-color-adjust: none; }
}

/* =========================================================================
   Stampa: foglio chiaro del rendiconto (#print-root), il resto dell'app sparisce
   ========================================================================= */
#print-root { display: none; }
@media print {
  @page { size: A4; margin: 14mm 12mm 16mm; }
  :root { color-scheme: light only; }
  html, body { background: #fff !important; color: #111 !important; }
  body.has-print-sheet > :not(#print-root) { display: none !important; }
  body.has-print-sheet #print-root { display: block; }
  /* pagine senza foglio dedicato: stampa leggibile su carta */
  body:not(.has-print-sheet) .topbar, body:not(.has-print-sheet) .bg-glow, body:not(.has-print-sheet) .toolbar,
  body:not(.has-print-sheet) .filters, body:not(.has-print-sheet) .page-actions, body:not(.has-print-sheet) .btn { display: none !important; }
  body:not(.has-print-sheet) * { color: #111 !important; background: transparent !important; box-shadow: none !important; border-color: #ccc !important; }
}
.ps { font: 10pt/1.45 var(--f-sans); color: #111; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ps-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18pt; padding-bottom: 10pt; margin-bottom: 6pt; border-bottom: 2pt solid #d22f86; }
.ps-brand { display: flex; align-items: center; gap: 10pt; }
.ps-mark { width: 38pt; height: 38pt; }
.ps-title { font: 700 17pt/1.1 var(--f-display); letter-spacing: .02em; color: #111; }
.ps-x { color: #d22f86; }
/* PDF di Pagamenti Insured: il suo marchio rosso e il suo accento (Danilo 1/11: «usa quello suo rosso») */
.ps-insured .ps-head { border-bottom-color: #d7151e; }
.ps-insured .ps-x { color: #d7151e; }
.ps-sub { margin-top: 3pt; font-size: 9pt; color: #555; max-width: 300pt; }
.ps-meta { display: grid; grid-template-columns: auto auto; gap: 2pt 12pt; margin: 0; font-size: 8.8pt; }
.ps-meta dt { color: #666; white-space: nowrap; }
.ps-meta dd { margin: 0; font-weight: 600; text-align: right; color: #111; white-space: nowrap; }
.ps h2 { font: 700 10.5pt/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .05em; color: #111; margin: 15pt 0 5pt; padding-bottom: 3pt; border-bottom: 1px solid #ddd; break-after: avoid; }
.ps-table { width: 100%; border-collapse: collapse; font-size: 8.8pt; }
.ps-table th { text-align: left; font-weight: 600; color: #555; padding: 4pt 5pt; border-bottom: 1px solid #aaa; white-space: nowrap; }
.ps-table td.nw { white-space: nowrap; }
.ps-table td { padding: 4pt 5pt; border-bottom: 1px solid #eee; vertical-align: top; color: #111; }
.ps-table .r { text-align: right; font-family: var(--f-mono); white-space: nowrap; }
.ps-table thead { display: table-header-group; }
.ps-table tr { break-inside: avoid; }
.ps-table tr.total td, .ps-table tfoot td { border-top: 1.5pt solid #111; border-bottom: 0; font-weight: 700; }
.ps-ref { color: #666; font-size: 8pt; }
.ps-payers { display: flex; flex-wrap: wrap; gap: 6pt 24pt; margin-top: 8pt; font-size: 9pt; }
.ps-payers div { display: flex; gap: 8pt; }
.ps-payers span { color: #555; }
.ps-notes { margin: 0; padding-left: 14pt; font-size: 9pt; color: #333; }
.ps-foot { margin-top: 18pt; padding-top: 6pt; border-top: 1px solid #ddd; font-size: 7.8pt; color: #666; }
.ps-neg { color: #c0262d; font-weight: 600; }
.money-lines { display: inline-flex; flex-direction: column; gap: 2px; }
.cc-units { grid-column: 1 / -1; }
.cc-units dd .chips { margin-top: 4px; }

/* =========================================================================
   Schede dei creator, complessivo, lucchetto Naito
   ========================================================================= */
.cc-link { color: inherit; text-decoration: none; }
.cc-link:hover { color: var(--c); }
.cc-more { margin-top: 16px; }
.who-link { text-decoration: none; display: inline-flex; }
.who-link:hover .who-name { color: var(--magenta-text); }
.ov-total { margin-top: 16px; }
.row-unattributed td { background: rgba(255, 255, 255, .012); }

.creator-top { --c: #8b8b96; margin-bottom: 24px; }
.creator-top .page-head { margin-bottom: 18px; }
.badge-creator {
  display: inline-flex; align-items: center; gap: 9px; color: #fff;
  background: color-mix(in srgb, var(--c) 12%, transparent); border-color: color-mix(in srgb, var(--c) 42%, transparent);
}
.h1 .accent-creator { color: var(--c); }
.subtabs {
  display: flex; gap: 4px; padding: 4px; width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02);
}
.subtabs::-webkit-scrollbar { display: none; }
.subtab {
  display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 9px 18px; border-radius: 999px;
  color: #d4d4d8; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s;
}
.subtab .ico { width: 16px; height: 16px; opacity: .8; }
.subtab:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.subtab.is-on { background: color-mix(in srgb, var(--c) 17%, transparent); color: #fff; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent); }
.subtab.is-on .ico { color: var(--c); opacity: 1; }

.funnel-lg { gap: 16px; margin: 4px 0 18px; }
.funnel-lg .fn-track { height: 14px; }
.fn-hint { color: var(--text-3); font-size: 13px; }
.fn-step-3 .fn-bar { background: color-mix(in srgb, var(--c) 38%, var(--surface)); }
.fn-step-4 .fn-bar { background: var(--c); }
.funnel-card .cc-stats > div:last-child dd { font-family: var(--f-mono); font-weight: 600; font-size: 14px; color: #fff; }
.total-card-c {
  --c: var(--magenta);
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 14%, transparent), transparent 55%), var(--surface);
  border-color: color-mix(in srgb, var(--c) 34%, transparent);
}
.unit-block { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.unit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.unit-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 12px;
  border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; color: var(--text-2);
}
.unit-list strong { color: #fff; font-size: 15px; }

.conv-filters { display: grid; gap: 10px; align-items: center; padding: 0 20px 14px; grid-template-columns: minmax(200px, 1.7fr) repeat(2, minmax(150px, 1fr)) auto; }
.conv-filters .count, .card-meta .count { color: var(--text-3); font-size: 13px; font-family: var(--f-mono); white-space: nowrap; }
.conv-filters .count { justify-self: end; }
.card-meta { margin: 0 20px 10px; }
.filter-chip-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 0 20px 12px; }
.more-row:not(:empty) { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; padding: 14px; border-top: 1px solid var(--line); text-align: center; }
.ref-btn {
  padding: 1px 8px; border-radius: 6px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  color: var(--aqua); font-size: 13px; line-height: 1.6; cursor: pointer; transition: background .15s, border-color .15s;
}
.ref-btn:hover { border-color: rgba(80, 217, 215, .45); background: rgba(80, 217, 215, .08); }
.table td .cell-sub .ref-btn { margin-top: 1px; }
.ticket-link { color: var(--text-2); text-decoration: none; font-family: var(--f-mono); }
.ticket-link:hover { color: var(--aqua); text-decoration: underline; }
.table tr.is-closed td:first-child { color: var(--text-2); }
@media (max-width: 760px) {
  .conv-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 0 16px 12px; }
  .conv-filters .search { grid-column: 1 / -1; }
  .conv-filters .count { grid-column: 1 / -1; justify-self: start; }
  .card-meta { margin: 0 16px 10px; }
  .filter-chip-row { padding: 0 16px 12px; }
}

.input[aria-invalid='true'] { border-color: rgba(239, 68, 68, .6); }
.settings-link.is-on { background: rgba(210, 47, 134, .12); color: #fff; }
.settings-link.is-on .ico { color: var(--magenta-text); }

/* creator dentro Impostazioni: schede chiuse, si aprono con «Modifica» */
.set-body .creator-edit-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.creator-edit.is-collapsed { gap: 0; padding-bottom: 16px; }
.creator-edit.is-collapsed > :not(.ce-head) { display: none; }
.ce-toggle { flex: none; }
.ce-summary { flex-basis: 100%; margin-top: 2px; color: var(--text-3); font-size: 13px; overflow-wrap: anywhere; }
.creator-edit:not(.is-collapsed) .ce-summary { display: none; }
@media (max-width: 560px) {
  /* le schede vanno a capo: con i due «Pagamenti …» di Viero l'ultima finirebbe fuori schermo */
  .subtabs { flex-wrap: wrap; width: 100%; border-radius: 20px; }
  .subtab { flex: 1 1 auto; justify-content: center; padding: 8px 14px; font-size: 13.5px; }
  .ce-flags { margin-left: 0; }
}

/* ---------- dati di prova: fascia ambra in cima a ogni pagina (database dimostrativo) ---------- */
.demo-banner {
  position: relative; z-index: 31;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px 10px;
  padding: 10px var(--gutter); text-align: center;
  color: var(--amber);
  background:
    repeating-linear-gradient(-45deg, rgba(251, 191, 36, .16) 0 14px, rgba(251, 191, 36, .07) 14px 28px),
    #120d00;
  border-bottom: 1px solid rgba(251, 191, 36, .55);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .6), 0 6px 24px rgba(251, 191, 36, .08);
}
.demo-banner strong { font: 700 15px/1.25 var(--f-display); letter-spacing: .16em; text-transform: uppercase; }
.demo-banner span { font: 500 14px/1.25 var(--f-sans); color: #fde68a; }
.demo-banner .demo-ico { width: 18px; height: 18px; flex: none; }
.demo-tag {
  flex: none; padding: 4px 9px; border-radius: 999px;
  font: 700 10.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: #1a1200; background: var(--amber);
}
@media (max-width: 560px) {
  .demo-banner { padding: 8px 16px; }
  .demo-banner strong { font-size: 13.5px; }
  .demo-banner span { font-size: 13px; }
}
.ps-demo {
  display: flex; align-items: center; justify-content: center; gap: 6pt; margin: 0 0 10pt; padding: 6pt 8pt;
  border: 1.5pt solid #b45309; border-radius: 4pt; background: #fef3c7; color: #92400e;
  font: 600 9.5pt/1.3 var(--f-sans); -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.ps-demo strong { font: 700 10.5pt/1.2 var(--f-display); letter-spacing: .12em; }
.ps-demo .demo-ico { width: 12pt; height: 12pt; flex: none; }

/* ---------- funnel di conversione: ordini dal sito accanto al numero, nuovi dal tracker sotto la barra ---------- */
.fn-label { min-width: 0; }
.fn-vals { display: inline-flex; align-items: baseline; justify-content: flex-end; flex: none; gap: 8px; }
.fn-aside {
  padding: 2px 7px; border-radius: 999px; white-space: nowrap;
  font: 500 11.5px/1.3 var(--f-sans); color: var(--text-3);
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
}
.fn-note { margin-top: 5px; font-size: 13px; line-height: 1.35; color: var(--text-3); }
.fn-site { color: #8fe7e5; border-color: rgba(80, 217, 215, .3); background: rgba(80, 217, 215, .06); }
.kpi-value-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; }
.kpi-value-row .fn-aside { align-self: center; }

/* ---------- doppia valuta (22/10): euro in chiaro, dollari tra parentesi in grigio sulla stessa riga ---------- */
.mfx { display: inline-flex; flex-wrap: wrap; align-items: baseline; column-gap: .45em; row-gap: 0; vertical-align: baseline; }
td.r .mfx, .payer-val .mfx, .r > .mfx { justify-content: flex-end; text-align: right; }
.mfx-v { white-space: nowrap; }
.fx-eq {
  display: inline; font-family: var(--f-mono); font-weight: 500; font-size: max(12.5px, .78em); line-height: 1.3; color: var(--text-3);
  letter-spacing: 0; white-space: nowrap;
}
.fx-inline { display: inline; margin-left: 4px; }
.big-amount .fx-eq { font-size: .42em; letter-spacing: 0; }
.money-lines .mfx + .mfx { margin-top: 4px; }
.mboth { display: inline-flex; flex-direction: column; gap: 2px; }
td.r .mboth { align-items: flex-end; }
.mb-v { white-space: nowrap; }
.kpi-multi.mboth { font-size: .8em; gap: 4px; }
.approx { color: var(--text-3); font-weight: 500; }
.tip-fx { display: block; margin-top: 3px; color: var(--text-3); font-size: 13px; }
.fx-week {
  display: flex; align-items: flex-start; gap: 8px; margin: 0 2px 14px;
  color: var(--text-2); font-size: 13px; line-height: 1.45;
}
.fx-week .ico { flex: none; width: 15px; height: 15px; margin-top: 1px; color: var(--aqua); }
.fx-week strong { color: #fff; font-weight: 600; font-family: var(--f-mono); }
.fx-week.is-missing .ico { color: var(--text-3); }
@media print { .fx-week, .tip-fx { display: none !important; } }
/* «Ticket senza creator» da solo nella card delle risposte: tutta la riga */
.mini-stats > div:only-child { grid-column: 1 / -1; }

/* ---------- quote fisse del Mese Contrattuale di Viero nella scheda Conversioni (fisso e rata del server Discord) ---------- */
.fixed-block { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.fixed-block .payers { margin-top: 2px; border-top: 0; padding-top: 0; }
.fixed-block .payer-name { display: flex; flex-direction: column; gap: 1px; }
.fixed-block .payer-val { display: inline-flex; flex-direction: column; align-items: flex-end; text-align: right; }

/* complessivo: il totale dei creator sopra quello del negozio */
.table tr.total-sub td { font-size: 14px; color: var(--text-2); background: transparent; }

/* totali del prossimo pagamento: tutto in dollari e tutto in euro */
.payer-total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 10px; }
.payer-total .payer-name { color: #fff; font-weight: 600; }
.payout-breakdown .payer-name { display: flex; flex-direction: column; gap: 1px; }
.payout-breakdown .payer-val { display: inline-flex; flex-direction: column; align-items: flex-end; text-align: right; }

/* ---------- ordinamento automatico dei ticket per lingua (17/10 sera) ---------- */
.notice[hidden] { display: none; }
.field[hidden] { display: none; }
/* chip «Spostato ES → IT · lingua spagnola»: va a capo invece di uscire dalla cella (motivi lunghi, telefono) */
.sort-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; min-width: 150px; max-width: 260px; }
.chip-sort { white-space: normal; line-height: 1.35; padding-top: 2px; padding-bottom: 2px; }
.d-row .chip-sort { max-width: 100%; }
.sort-move { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.sort-arrow { width: 14px; height: 14px; color: var(--text-3); flex: none; }
.sort-preview { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sort-preview > .table-wrap { border: 1px solid var(--line); border-radius: 12px; }
.sort-preview-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px 18px; flex-wrap: wrap; margin-bottom: 12px; }
.sort-preview-head p { flex: 1 1 300px; max-width: 70ch; }
.sort-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sort-totals { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sort-total { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.sort-total-head { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.sort-total-n { margin-top: 4px; font-size: 24px; font-weight: 600; line-height: 1.2; color: #fff; }
.sort-total .cell-sub { margin-top: 0; }
.sort-list-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.sort-list-meta .count { color: var(--text-3); font-size: 13px; font-family: var(--f-mono); }
.sort-auto .chips { margin-left: 4px; vertical-align: middle; }
.check-cell { padding: 6px; }
/* bandiere accanto a sezione e lingua (SVG: Windows non disegna le emoji delle bandiere) */
.flag { display: inline-block; flex: none; width: 15px; height: 10px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); vertical-align: -1px; }
.sec-lang { display: inline-flex; align-items: center; gap: 5px; }
.flag-text { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.flag-select { display: inline-flex; align-items: center; gap: 8px; }
.flag-slot { display: inline-flex; width: 15px; flex: none; }
/* Ticket Italia nella scheda Naito */
.it-stats { margin: 0 20px 16px; }
.it-capped { padding-bottom: 16px; }
@media (max-width: 560px) {
  .it-stats { margin: 0 16px 14px; }
  .sort-totals { gap: 8px; }
  .sort-total { padding: 10px; }
  .sort-total-n { font-size: 20px; }
}

/* ---------- loghi: Naito nella barra, PayPal e Shopify nelle vendite, creator (17/10 sera) ---------- */
.ico-brand { width: 16px; height: 16px; flex: none; }
.ico-xs { width: 12px; height: 12px; flex: none; vertical-align: -1px; }
.nav-link .ico-brand { width: 18px; height: 18px; }
.chip-brand { display: inline-flex; align-items: center; gap: 5px; }
.chip-brand .ico-brand { width: 12px; height: 12px; }
.chip-shopify { color: #c9e59a; background: rgba(149, 191, 71, .10); border-color: rgba(149, 191, 71, .32); }
.chip-shopify .ico-brand { color: #95bf47; }
.chip-paypal { color: #b9d7ff; background: rgba(0, 112, 224, .12); border-color: rgba(0, 156, 222, .34); }
.chip-paypal .ico-brand { color: #3ea6ff; }
.chip-whatsapp { color: #b9f5cf; background: rgba(37, 211, 102, .12); border-color: rgba(37, 211, 102, .34); }
.chip-whatsapp .ico-brand { color: #25d366; }
/* negozio InsuredFrames (20/10): audio, nel cyano dei creator */
.chip-insured { display: inline-flex; align-items: center; gap: 5px; color: #b7f0ef; background: rgba(80, 217, 215, .08); border-color: rgba(80, 217, 215, .32); }
.chip-insured .ico { width: 12px; height: 12px; color: var(--aqua); }

/* link del creator sotto il titolo della sua scheda (20/10): apri e copia */
.creator-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.creator-link {
  display: inline-flex; align-items: stretch; max-width: 100%; border-radius: 999px; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--c) 38%, transparent); background: color-mix(in srgb, var(--c) 8%, transparent);
}
.cl-open {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 6px 8px 14px;
  color: var(--text); text-decoration: none; font-size: 14px;
}
.cl-open:hover .cl-url { color: #fff; }
.cl-open .ico { width: 15px; height: 15px; color: var(--c); }
.cl-label { font-weight: 600; white-space: nowrap; }
.cl-url { color: var(--text-2); font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-copy {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; border: 0;
  border-left: 1px solid color-mix(in srgb, var(--c) 28%, transparent); background: transparent; color: var(--text-2); cursor: pointer;
}
.cl-copy:hover, .cl-copy:focus-visible { color: #fff; background: color-mix(in srgb, var(--c) 16%, transparent); }
.cl-copy .ico { width: 15px; height: 15px; }
.sale-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
a.chip { text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
/* logo del creator come maschera nel suo colore (file in /assets/creators/<slug>.png) */
.nav-logo {
  display: inline-block; flex: none; width: 18px; height: 18px; background: var(--c, #8b8b96);
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
}


/* ---------- design (Danilo, 17/10 sera): titoli in maiuscolo, testi leggibili, niente aggiunte «· …» ---------- */
.h3 { text-transform: uppercase; letter-spacing: .035em; }
.h2 { text-transform: uppercase; }
.kpi-label { text-transform: uppercase; letter-spacing: .07em; font-weight: 700; font-size: 13px; color: var(--text-2); }
.kpi-sub { display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; color: var(--text-2); line-height: 1.4; }
.kpi-sub-line { display: block; }
.fn-label { text-transform: uppercase; letter-spacing: .06em; font-weight: 700; font-size: 13.5px; color: var(--text); }
.fn-hint { display: block; margin-top: 3px; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 13.5px; color: var(--text-2); }
.fn-note { font-size: 13.5px; color: var(--text-2); }
.section-sub { font-size: 14px; color: var(--text-2); }
.cell-sub { font-size: 13px; }
.small { font-size: 14px; }
.chip-sm { padding: 2px 9px; font-size: 12.5px; }
.chip-ico { display: inline-flex; align-items: center; gap: 4px; }
.chip-ico .ico { width: 13px; height: 13px; }
.payout-kicker { display: block; margin-bottom: 4px; font: 700 12.5px/1 var(--f-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.payout-date { display: block; margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--magenta-text, #ff7ac0); }
.channel-split { display: grid; gap: 6px; margin-top: 4px; }
.channel-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.channel-row .chip { margin: 0; }

.channel-row { align-items: flex-start; }
.channel-amt { display: grid; justify-items: end; gap: 2px; }
/* prova del pagamento */
.ico-sm { width: 15px; height: 15px; flex: none; }
/* 23/10: «solo icona magenta accanto all'ordine», senza box */
.proof-btn {
  display: inline-grid; place-items: center; padding: 2px; margin-left: 6px; vertical-align: middle; cursor: pointer;
  color: var(--magenta-text); background: none; border: 0; border-radius: 4px;
}
.proof-btn .ico { width: 17px; height: 17px; }
.order-line { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.cell-sub.neg { color: #fca5a5; }
.order-line + .chip-ico { margin-left: 6px; }
/* 23/10: «l'icona vip sposta verso il basso il numero ordine» → pillola compatta, alta quanto la riga del numero */
.chip.chip-vip { gap: 3px; padding: 0 6px; font-size: 12.5px; line-height: 1.3; vertical-align: 1px; }
.chip-vip .ico { width: 11px; height: 11px; }
.proof-btn:hover { color: var(--magenta-hi); }
.proof-btn:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }
.proof-overlay {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px;
  background: rgba(5, 5, 8, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.proof-card { width: min(720px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column; gap: 14px; padding: 20px; margin: 0; overflow: auto; }
.proof-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.proof-img { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: contain; border-radius: 12px; background: #0b0b0f; border: 1px solid var(--line); }

/* ticket aperti su Discord (solo admin) */
.discord-link { display: inline-flex; align-items: center; gap: 5px; color: var(--aqua); text-decoration: none; }
/* Danilo 18/10: «il ticket mostralo sotto al nome» (nelle tabelle il link a Discord va a capo come le altre sottorighe) */
.cell-sub.discord-link { display: flex; width: fit-content; margin-top: 3px; }
.discord-link:hover { text-decoration: underline; }
.ticket-links { display: inline-flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* login con notifica nell'app di Discord (17/10 sera) */
.push-login { display: grid; gap: 10px; width: min(380px, 100%); margin: 0 auto; text-align: left; }
.push-login .btn { justify-content: center; }
.push-status:empty { display: none; }
.push-step { font-size: 15px; color: var(--text); }
.push-code { font: 800 44px/1 var(--f-display); letter-spacing: .08em; color: var(--aqua); text-align: center; padding: 10px 0; }
.push-ok { color: var(--emerald); font-weight: 600; }
.login-alt { display: grid; gap: 10px; justify-items: center; width: min(380px, 100%); margin: 6px auto 0; }
.login-or { font: 700 12.5px/1 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.login-alt .btn { width: 100%; justify-content: center; }

.ticket-state { display: block; margin-top: 6px; }
.ticket-state.reply-chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* vendite: quelle non italiane più scure, le italiane risaltano (Danilo, 17/10 sera) */
.row-click.is-foreign td { opacity: .42; }
.row-click.is-foreign:hover td, .row-click.is-foreign.is-open td { opacity: .8; }
.row-click.is-italian td:first-child { box-shadow: inset 3px 0 0 var(--aqua); }
.fn-step-5 .fn-bar { background: color-mix(in srgb, var(--c) 62%, #ffffff 0%); opacity: .75; }
.chip-outcome { display: inline-flex; align-items: center; gap: 5px; }
/* risposte dello staff nella pagina Ticket (18/10) */
.reply-card { margin-bottom: 16px; }
.reply-tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.reply-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); }
.reply-tile.has-none { border-color: rgba(245, 158, 11, .35); }
.reply-sec { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; font-size: 13px; }
.reply-sec .sec-lang { border-radius: 6px; border: 1px solid var(--line-2); }
.reply-num, .reply-sub { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.reply-num { display: flex; align-items: baseline; gap: 8px; }
.reply-num strong { font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; line-height: 1; letter-spacing: -.03em; color: #fff; }
.reply-tile.has-none .reply-num strong { color: var(--amber); }
.reply-num span { font-size: 14px; font-weight: 500; color: var(--text-2); }
.reply-sub { font-size: 13px; color: var(--text-2); }
.reply-num:hover span, .reply-sub:hover { color: var(--aqua); text-decoration: underline; }
.reply-num:focus-visible, .reply-sub:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 4px; }
.reply-old { margin: 0; font-size: 13px; color: var(--text-3); }
.reply-head { flex-wrap: wrap; }
.reply-head-text { flex: 1 1 260px; min-width: 0; }
.reply-send { flex: none; margin-left: auto; }

/* ---------- dashboard su telefono e tablet (Danilo 18/10: «rendere l'intera dash responsive e funzionale anche da
   mobile»; «nella dash questo esce dallo spazio») ---------- */
.table { min-width: var(--table-min, 0px); }
/* nomi dei ticket: vanno a capo invece di allargare la tabella oltre il riquadro */
.table td .ticket-link, .table td .discord-link.cell-sub { white-space: normal; overflow-wrap: anywhere; }
/* niente testi sotto i 12,5 px */
.fn-aside, .fx-eq { font-size: 12.5px; }
.eyebrow { font-size: 12.5px; }
@media (max-width: 1100px) {
  /* ogni riga diventa una scheda: etichetta della colonna a sinistra, valore a destra */
  .table-wrap:has(> .table-stack) { overflow-x: visible; }
  .table.table-stack { display: block; min-width: 0; }
  .table-stack thead { display: none; }
  .table-stack tbody, .table-stack tfoot { display: block; }
  .table-stack tr { display: block; padding: 10px 16px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .table-stack tbody tr:last-child { border-bottom: 0; }
  .table-stack tfoot tr { border-top: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); }
  .table-stack td {
    display: grid; grid-template-columns: minmax(92px, 32%) minmax(0, 1fr); align-items: start; justify-items: start;
    column-gap: 12px; row-gap: 4px; padding: 6px 0; border: 0 !important; text-align: left !important; background: none !important;
  }
  /* l'etichetta nella prima riga a sinistra, tutto il contenuto della cella nella colonna di destra */
  .table-stack td::before {
    content: attr(data-label); grid-column: 1; grid-row: 1; padding-top: 2px;
    font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3);
  }
  .table-stack td > * { grid-column: 2; max-width: 100%; margin-top: 0; }
  .table-stack td:not([data-label]), .table-stack td[data-label=''] { grid-template-columns: minmax(0, 1fr); }
  .table-stack td:not([data-label]) > *, .table-stack td[data-label=''] > * { grid-column: 1; }
  .table-stack td:not([data-label])::before, .table-stack td[data-label='']::before { content: none; }
  .table-stack td > * { min-width: 0; }
  .table-stack td .mono, .table-stack td.mono, .table-stack td .cell-sub, .table-stack td.nowrap { white-space: normal; overflow-wrap: anywhere; }
  .table-stack .row-actions { white-space: normal; }
  .table-stack .row-click:hover { background: rgba(255, 255, 255, .025); }
  .table-stack .row-click.is-open { background: rgba(210, 47, 134, .07); }
  .table-stack .row-click.is-muted { opacity: .62; }
  .table-stack .row-click.is-muted td { opacity: 1; }
  /* vendite italiane: la barretta cyano sul bordo della scheda, vendite non italiane più scure */
  .table-stack .row-click.is-italian td:first-child { box-shadow: none; }
  .table-stack .row-click.is-italian { box-shadow: inset 3px 0 0 var(--aqua); }
  .table-stack .row-click.is-foreign td { opacity: 1; }
  .table-stack .row-click.is-foreign { opacity: .55; }
  .table-stack .row-click.is-foreign:hover, .table-stack .row-click.is-foreign.is-open { opacity: .85; }
  .table-stack.table-edit td { align-items: center; }
  .table-stack.table-edit .input, .table-stack.table-edit select { width: 100%; }
}
/* tabelle larghe (ticket, vendite, conversioni): schede già sotto i 1280 px */
@media (min-width: 1101px) and (max-width: 1280px) {
  /* ogni riga diventa una scheda: etichetta della colonna a sinistra, valore a destra */
  .table-wrap:has(> .table-stack-wide) { overflow-x: visible; }
  .table.table-stack-wide { display: block; min-width: 0; }
  .table-stack-wide thead { display: none; }
  .table-stack-wide tbody, .table-stack-wide tfoot { display: block; }
  .table-stack-wide tr { display: block; padding: 10px 16px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .table-stack-wide tbody tr:last-child { border-bottom: 0; }
  .table-stack-wide tfoot tr { border-top: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); }
  .table-stack-wide td {
    display: grid; grid-template-columns: minmax(92px, 32%) minmax(0, 1fr); align-items: start; justify-items: start;
    column-gap: 12px; row-gap: 4px; padding: 6px 0; border: 0 !important; text-align: left !important; background: none !important;
  }
  /* l'etichetta nella prima riga a sinistra, tutto il contenuto della cella nella colonna di destra */
  .table-stack-wide td::before {
    content: attr(data-label); grid-column: 1; grid-row: 1; padding-top: 2px;
    font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3);
  }
  .table-stack-wide td > * { grid-column: 2; max-width: 100%; margin-top: 0; }
  .table-stack-wide td:not([data-label]), .table-stack-wide td[data-label=''] { grid-template-columns: minmax(0, 1fr); }
  .table-stack-wide td:not([data-label]) > *, .table-stack-wide td[data-label=''] > * { grid-column: 1; }
  .table-stack-wide td:not([data-label])::before, .table-stack-wide td[data-label='']::before { content: none; }
  .table-stack-wide td > * { min-width: 0; }
  .table-stack-wide td .mono, .table-stack-wide td.mono, .table-stack-wide td .cell-sub, .table-stack-wide td.nowrap { white-space: normal; overflow-wrap: anywhere; }
  .table-stack-wide .row-actions { white-space: normal; }
  .table-stack-wide .row-click:hover { background: rgba(255, 255, 255, .025); }
  .table-stack-wide .row-click.is-open { background: rgba(210, 47, 134, .07); }
  .table-stack-wide .row-click.is-muted { opacity: .62; }
  .table-stack-wide .row-click.is-muted td { opacity: 1; }
  /* vendite italiane: la barretta cyano sul bordo della scheda, vendite non italiane più scure */
  .table-stack-wide .row-click.is-italian td:first-child { box-shadow: none; }
  .table-stack-wide .row-click.is-italian { box-shadow: inset 3px 0 0 var(--aqua); }
  .table-stack-wide .row-click.is-foreign td { opacity: 1; }
  .table-stack-wide .row-click.is-foreign { opacity: .55; }
  .table-stack-wide .row-click.is-foreign:hover, .table-stack-wide .row-click.is-foreign.is-open { opacity: .85; }
  .table-stack-wide.table-edit td { align-items: center; }
  .table-stack-wide.table-edit .input, .table-stack-wide.table-edit select { width: 100%; }
}
/* canali nel netto totale: con il riquadro stretto (tablet) gli importi vanno sotto l'etichetta invece di uscire */
.channel-row { flex-wrap: wrap; row-gap: 2px; }
.channel-amt { margin-left: auto; min-width: 0; text-align: right; }
.channel-amt > * { white-space: nowrap; }
/* VIP e mance nel netto totale (solo admin, 18/10): sotto i canali, separati da una riga */
.channel-label { font-size: 13px; color: var(--text-2); }
.channel-label.strong { color: #fff; font-weight: 600; }
.channel-vip { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); }
.channel-shopify-total .channel-amt { color: #fff; font-weight: 600; }
/* riquadri dei numeri su telefono (18/10: «conversione complessiva si legge ancora fuori dal box»): icona sopra
   l'etichetta, così le parole lunghe hanno tutta la larghezza del riquadro */
.kpi, .kpi-top, .kpi-label { min-width: 0; }
.kpi-label { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .kpi { padding: 14px; }
  .kpi-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .kpi-label { letter-spacing: .04em; }
}
/* telefono (18/10: «la barra di navigazione in basso diventa bianca»): la pagina continua sotto le barre del sistema
   con lo stesso fondo nero (viewport-fit=cover in index.html); i contenuti restano sopra la zona dei gesti */
html, body { background-color: var(--bg); }
@supports (min-height: 100dvh) { body { min-height: 100dvh; } }
body { padding-bottom: env(safe-area-inset-bottom, 0px); }
.toasts { margin-bottom: env(safe-area-inset-bottom, 0px); }
.drawer-body { padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
.reply-audio { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 13px; color: var(--text-2); }
.reply-audio .ico { color: var(--text-3); }

/* ---------- riordino UX (Danilo, 19/10/2026: «più comprensibili e minimal le sezioni»): meno riquadri, in alto i
   numeri che contano, elenchi a una riga per voce, il resto chiuso ---------- */
.section-title { align-items: flex-start; margin: 40px 0 14px; }
.section-title::after { margin-top: 14px; }
.section-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.section-title .section-sub { order: 0; margin: 0; font-size: 14px; color: var(--text-2); }
.kpi-grid-hero { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); }
.kpi-hero { background: linear-gradient(135deg, rgba(210, 47, 134, .16), transparent 62%), var(--surface); border-color: rgba(210, 47, 134, .3); }
.kpi-hero .kpi-value { font-size: clamp(25px, 2.8vw, 34px); }
.kpi .mboth-row, .mboth-row { flex-direction: row; flex-wrap: wrap; gap: 2px 22px; font-size: 1em; }
.kpi-more summary { cursor: pointer; font-size: 13.5px; color: var(--aqua); width: max-content; }
.kpi-more[open] summary { margin-bottom: 8px; }
@media (max-width: 760px) {
  .kpi-grid-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-hero { grid-column: 1 / -1; }
}
.lrows { display: flex; flex-direction: column; gap: 8px; }
.lrow {
  display: flex; align-items: center; gap: 14px; min-width: 0; padding: 14px 18px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface); color: inherit; text-decoration: none;
}
a.lrow:hover { border-color: rgba(80, 217, 215, .4); background: var(--surface-2); color: inherit; }
.lrow-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.lrow-name { font-weight: 600; font-size: 15px; color: #fff; min-width: 0; }
.lrow .who:not(.who-none) .who-name { color: var(--aqua); }
.lrow-meta { font-size: 13.5px; color: var(--text-2); overflow-wrap: anywhere; }
.lrow-end { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; text-align: right; }
.lrow-val { font-weight: 600; font-size: 15px; color: #fff; white-space: nowrap; }
.lrow-sub { font-size: 13px; color: var(--text-3); white-space: nowrap; }
.lrow-go { width: 16px; height: 16px; flex: none; color: var(--text-3); }
.lrow-muted { background: transparent; border-style: dashed; }
.lrow-total { background: rgba(255, 255, 255, .025); border-color: var(--line-2); }
@media (max-width: 560px) {
  .lrow { padding: 12px 14px; gap: 10px; }
  .lrow-go { display: none; }
}
.fold { margin-top: 12px; }
.fold > summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer;
  list-style: none; border: 1px dashed var(--line-2); border-radius: 12px; color: var(--text-2); font-size: 14px; font-weight: 500;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: '▾'; color: var(--text-3); }
.fold[open] > summary { margin-bottom: 12px; }
.fold[open] > summary::after { content: '▴'; }
.fold > summary:hover { color: #fff; border-color: var(--line-3); }
.page-foot { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); }
.page-foot .sys { margin: 0; }
.funnel-body { display: grid; gap: 20px 32px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.funnel-side { display: flex; flex-direction: column; gap: 10px; padding-left: 28px; border-left: 1px solid var(--line); }
.quotas-fold { margin-top: 6px; }
.quotas-fold > summary { padding: 10px 12px; font-size: 13.5px; }
@media (max-width: 900px) {
  .funnel-body { grid-template-columns: minmax(0, 1fr); }
  .funnel-side { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
/* tabelle a schede compatte (19/10): due celle per riga, etichetta sopra il valore */
@media (max-width: 1100px) {
  .table-cards tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; padding: 14px 16px; }
  .table-cards tbody td { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 0; }
  .table-cards tbody td::before { padding-top: 0; }
  .table-cards tbody td.tc-wide, .table-cards tbody td.empty-row { grid-column: 1 / -1; }
  .table-cards tbody td.empty-row::before { content: none; }
  .table-cards td .mfx, .table-cards td .mboth { align-items: flex-start; text-align: left; }
}
@media (min-width: 1101px) and (max-width: 1280px) {
  .table-stack-wide.table-cards tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; padding: 14px 16px; }
  .table-stack-wide.table-cards tbody td { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 0; }
  .table-stack-wide.table-cards tbody td::before { padding-top: 0; }
  .table-stack-wide.table-cards tbody td.tc-wide, .table-stack-wide.table-cards tbody td.empty-row { grid-column: 1 / -1; }
  .table-stack-wide.table-cards tbody td.empty-row::before { content: none; }
  .table-stack-wide.table-cards td .mfx, .table-stack-wide.table-cards td .mboth { align-items: flex-start; text-align: left; }
}
/* filtri: i principali in una riga, gli altri dietro «Altri filtri» */
.filters.filters-split { grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(140px, 1fr)) auto auto; }
.filters-sales.filters-split { grid-template-columns: repeat(2, minmax(170px, 1.2fr)) minmax(150px, 1fr) auto auto; }
.filters-more { grid-column: 1 / -1; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.filters-more[hidden] { display: none; }
.filters-toggle[aria-expanded='true'] { border-color: var(--line-3); color: #fff; }
@media (max-width: 1180px) {
  .filters.filters-split, .filters-sales.filters-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters-split .filters-toggle, .filters-split .filters-reset { justify-self: stretch; }
  .filters-sales.filters-split .filter-date + .filter-date + select { grid-column: 1 / -1; }
}
.ticket-who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; }
.sale-state { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
td.sale-state { display: table-cell; }
td.sale-state > .chip { margin: 0 4px 4px 0; }
.sales-totals { margin-bottom: 16px; }
.settings-link.has-dirty::after { content: ''; width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: var(--amber); }
.reply-tile .reply-old { color: var(--text-2); }
.settings-content > [hidden] { display: none !important; }
@media (max-width: 1280px) {
  .table-cards tbody td.tc-wide::before { content: none; }
  .table-cards tbody .chip { white-space: normal; max-width: 100%; }
}
/* risposte dello staff: le tre lingue sempre affiancate, come nella bozza (19/10) */
.reply-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) {
  .reply-tiles { gap: 8px; }
  .reply-tile { padding: 10px; gap: 6px; }
  .reply-sec { flex-wrap: wrap; gap: 4px; }
  .reply-num { flex-direction: column; gap: 2px; }
  .reply-num span, .reply-sub, .reply-old { font-size: 12.5px; }
  .reply-send { margin-left: 0; }
}

/* 23/10: icone del tipo di pagamento accanto al cliente (WhatsApp, Shopify, PayPal) */
.cust-line { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.pay-icons { display: inline-flex; align-items: center; gap: 5px; }
.pay-ico { display: inline-grid; place-items: center; }
.pay-ico .ico-brand { width: 15px; height: 15px; }
.pay-shopify { color: #95bf47; }
.pay-paypal { color: #3ea6ff; }
.pay-whatsapp { color: #25d366; }

/* 23/10: «+N» con la mini finestra al passaggio del mouse */
.more-btn { cursor: pointer; font-family: inherit; }
.more-btn:hover, .more-btn[aria-expanded='true'] { color: var(--text); border-color: var(--line-3); }
.pop-card {
  position: fixed; z-index: 120; max-width: min(320px, calc(100vw - 16px)); padding: 12px 14px;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(210, 47, 134, .10);
  animation: pop-in .14s var(--ease);
}
.pop-head { display: block; margin-bottom: 8px; font: 700 12.5px/1 var(--f-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.pop-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pop-chips .chip { white-space: normal; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* 23/10: calendario nello stile della dashboard al posto di quello del browser */
input.input.date-input { min-width: 156px; padding-right: 38px; cursor: pointer; background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef63ad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E"); }
input.input.date-input::-webkit-calendar-picker-indicator { display: none; }
.date-pop {
  position: fixed; z-index: 120; width: 292px; padding: 14px;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .6), 0 0 0 1px rgba(210, 47, 134, .10);
  animation: pop-in .14s var(--ease);
}
.date-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.date-title { font: 700 15px/1.2 var(--f-display); letter-spacing: .04em; text-transform: uppercase; color: var(--text); }
.date-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.date-dow { padding: 4px 0; text-align: center; font: 600 12.5px/1 var(--f-sans); color: var(--text-3); }
.date-day {
  height: 34px; border: 1px solid transparent; border-radius: var(--r-xs); background: none; cursor: pointer;
  font: 600 13px/1 var(--f-mono); color: var(--text); transition: background .12s, border-color .12s;
}
.date-day:hover:not(:disabled) { background: rgba(210, 47, 134, .12); border-color: rgba(210, 47, 134, .35); }
.date-day.is-out { color: var(--text-3); }
.date-day.is-today { border-color: var(--aqua); color: var(--aqua); }
.date-day.is-sel { background: var(--magenta); border-color: var(--magenta); color: #fff; box-shadow: 0 4px 16px rgba(210, 47, 134, .35); }
.date-day:disabled { opacity: .3; cursor: default; }
.date-day:focus-visible { outline: 2px solid var(--magenta-text); outline-offset: 1px; }
.date-foot { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.date-link { padding: 4px 6px; border: 0; background: none; cursor: pointer; font: 600 13px/1 var(--f-sans); color: var(--magenta-text); }
.date-link:hover:not(:disabled) { color: var(--magenta-hi); text-decoration: underline; }
.date-link:disabled { opacity: .35; cursor: default; }

/* ---------- sezione Creators (5/11/2026) ---------- */
.hub-toolbar { gap: 12px; }
.hub-month { display: inline-flex; align-items: center; gap: 10px; color: var(--aqua); }
.hub-month .select { min-width: 180px; }
.hub-search { flex: 1 1 220px; max-width: 320px; margin-left: auto; }
.hub-kpis { margin-bottom: 20px; }
.hub-row { cursor: pointer; transition: background .15s; }
.hub-row:hover, .hub-row:focus-visible { background: rgba(80, 217, 215, .05); outline: none; }
.hub-who { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; min-width: 0; }
.hub-who-text { display: flex; flex-direction: column; min-width: 0; }
.hub-name { font-weight: 600; font-size: 15px; }
.hub-row:hover .hub-name { color: var(--aqua); }
.hub-codes { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.code-tag { font: 500 12.5px/1 var(--f-mono); padding: 5px 8px; border-radius: 6px; color: #e4e4e7; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.hub-note { margin-top: 14px; max-width: 80ch; }
.cav { --cav: 36px; flex: none; width: var(--cav); height: var(--cav); border-radius: 50%; display: inline-grid; place-items: center; overflow: hidden;
  background: rgba(80, 217, 215, .08); border: 1px solid rgba(80, 217, 215, .22); color: var(--aqua); --c: var(--aqua); }
.cav img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cav-initials { font: 600 13px/1 var(--f-display); letter-spacing: .02em; }
.cav-has-logo .cav-logo { width: 58%; height: 58%; }
.site-foot { padding: 28px 20px calc(28px + env(safe-area-inset-bottom, 0px)); text-align: center; color: #8b8b96; font-size: 13px; }
.site-foot p { margin: 0; }
.site-foot a { color: #e4e4e7; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.site-foot a:hover { color: var(--aqua); border-bottom-color: var(--aqua); }
@media print { .site-foot { display: none; } }
@media (max-width: 700px) {
  .hub-search { max-width: none; margin-left: 0; flex-basis: 100%; }
  .hub-month { flex: 1 1 100%; }
  .hub-month .select { flex: 1; }
}

/* elenco Creators per livello (5/11/2026 sera: «non mi sembra user friendly») */
.hub-groups { display: grid; gap: 28px; }
.hub-group-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 10px; }
.hub-group-head .h3 { display: inline-flex; align-items: center; gap: 10px; }
.hub-count { font: 500 12.5px/1 var(--f-mono); color: var(--text-2); padding: 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.hub-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.hub-list > li + li { border-top: 1px solid var(--line); }
.hub-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) 96px 210px 210px 20px; align-items: center; gap: 20px;
  padding: 14px 18px; color: var(--text); text-decoration: none; transition: background .15s var(--ease);
}
.hub-item:hover { background: rgba(80, 217, 215, .045); color: var(--text); }
.hub-item:focus-visible { outline-offset: -2px; border-radius: 0; }
.hub-main { display: grid; gap: 7px; min-width: 0; }
.hub-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; min-width: 0; }
.hub-name { font-weight: 600; font-size: 15.5px; }
.hub-item:hover .hub-name { color: var(--aqua); }
.hub-flag { font: 500 12.5px/1 var(--f-mono); color: var(--text-2); }
.hub-warn { font-size: 12.5px; color: var(--amber); }
.hub-sales, .hub-due, .hub-pay { display: grid; gap: 3px; text-align: right; }
.hub-sales-val { font: 600 16px/1.1 var(--f-mono); }
.hub-sales-sub, .hub-due-sub { font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.hub-due-val { font: 700 16px/1.1 var(--f-mono); color: var(--text); white-space: nowrap; }
.hub-due-val.is-zero { color: var(--text-3); font-weight: 500; }
.hub-due-none { font-size: 13px; color: var(--text-3); }
.hub-go { color: var(--text-3); }
.hub-go .ico { width: 18px; height: 18px; }
.hub-item:hover .hub-go { color: var(--aqua); }
.creator-title { display: flex; align-items: center; gap: 16px; }
@media (max-width: 1040px) {
  .hub-item { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: 'av main main' 'av sales sales' 'av due pay'; gap: 8px 14px; padding: 14px; }
  .hub-item > .cav { grid-area: av; align-self: start; }
  .hub-main { grid-area: main; }
  .hub-sales { grid-area: sales; text-align: left; display: flex; align-items: baseline; gap: 6px; }
  .hub-sales-val { font-size: 13.5px; }
  .hub-due { grid-area: due; text-align: left; }
  .hub-pay { grid-area: pay; }
  .hub-go { display: none; }
  .creator-title { gap: 12px; }
  .creator-title .cav { --cav: 44px !important; }
}

/* Creators: chi non ha venduto nel mese resta in elenco ma passa in secondo piano */
.hub-item.is-idle .hub-sales-val { color: var(--text-3); font-weight: 500; }

/* Contratto in PDF nella testa della scheda del creator */
.contract-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.contract-box:empty { display: none; }

/* =====================================================================================================================
   Restyling del 5/11/2026. Danilo: «più spinta e d'impatto»; da togliere troppi riquadri, troppe scritte, troppi
   effetti e colori, telefono scomodo; riferimento Stockify (Behance) coi colori e il font di Italian Tweaks.
   Meno scatole: numeri in una fascia unica col principale grande, elenchi in un pannello solo con le righe divise da
   una linea, niente icone decorative nei titoli dei riquadri, niente griglia di punti né vetro; sul telefono le
   sezioni stanno in una barra in basso, a portata di pollice. Vedi PRODUCT.md.
   ===================================================================================================================== */
:root { --surface: #09090d; --line: rgba(255, 255, 255, .075); --r: 14px; }

/* sfondo: un alone solo, niente griglia di punti */
.bg-glow { background: radial-gradient(1100px 520px at 8% -16%, rgba(210, 47, 134, .17), transparent 64%); }
.bg-glow::after { display: none; }

/* titoli più grandi e compatti, niente riga sfumata dopo i titoli di sezione */
.h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1; letter-spacing: -.01em; margin: 8px 0 12px; text-wrap: balance; }
.section-title { margin: 52px 0 16px; }
.section-title::after { display: none; }
.h2 { font-size: 22px; letter-spacing: .02em; }

/* barra in alto: piena, senza vetro né ombra */
.nav { background: rgba(9, 9, 13, .94); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; border-color: var(--line-2); }
.nav-link[aria-current='page'] { box-shadow: none; background: rgba(210, 47, 134, .18); }
.nav-short { display: none; }

/* pulsanti: niente vetro, niente sollevamento, niente alone */
.btn { -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.btn:hover:not(:disabled) { transform: none; }
.btn-primary, .btn-primary:hover:not(:disabled) { box-shadow: none; }

/* riquadri: nessuna icona decorativa accanto al titolo */
.card-head > .ico-box { display: none; }
.kpi:hover { border-color: var(--line); }

/* ---------- fascia dei numeri: il principale grande, gli altri accanto divisi da una linea ---------- */
.kpi-grid-hero {
  display: grid; gap: 0; grid-auto-flow: column;
  grid-template-columns: minmax(0, 1.7fr); grid-auto-columns: minmax(0, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.kpi-grid-hero > .kpi { background: none; border: 0; border-radius: 0; padding: 22px 24px; gap: 12px; }
.kpi-grid-hero > .kpi + .kpi { border-left: 1px solid var(--line); }
.kpi-grid-hero > .kpi-hero { background: linear-gradient(115deg, rgba(210, 47, 134, .16), rgba(210, 47, 134, 0) 72%); }
.kpi-label { font-size: 12.5px; letter-spacing: .08em; color: var(--text-3); }
.kpi .kpi-value.num { font-family: var(--f-display); font-weight: 600; letter-spacing: 0; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.05; }
.kpi-hero .kpi-value.num { font-size: clamp(38px, 4.4vw, 58px); line-height: .95; }
.kpi .kpi-value .fx-eq { font-family: var(--f-mono); font-weight: 500; font-size: max(12.5px, .42em); color: var(--text-3); }
.kpi-hero .kpi-value .fx-eq { font-size: max(13px, .3em); }
.kpi-sub { color: var(--text-3); }
@media (max-width: 900px) {
  .kpi-grid-hero { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-grid-hero > .kpi-hero { grid-column: 1 / -1; }
  .kpi-grid-hero > .kpi + .kpi { border-left: 0; border-top: 1px solid var(--line); }
  .kpi-grid-hero > .kpi-hero ~ .kpi:nth-child(odd) { border-left: 1px solid var(--line); }
  .kpi-grid-hero > .kpi-hero ~ .kpi:last-child:nth-child(even) { grid-column: 1 / -1; }
  .kpi-grid-hero > .kpi { padding: 18px; }
}
@media (max-width: 380px) {
  .kpi-grid-hero { grid-template-columns: minmax(0, 1fr); }
  .kpi-grid-hero > .kpi-hero ~ .kpi:nth-child(odd) { border-left: 0; }
}

/* ---------- elenchi: un pannello solo, righe divise da una linea (prima una scatola per riga) ---------- */
.lrows { gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.lrows > .lrow { border: 0; border-radius: 0; background: none; padding: 15px 20px; }
.lrows > .lrow + .lrow { border-top: 1px solid var(--line); }
.lrows > a.lrow:hover { background: rgba(80, 217, 215, .045); }
.lrows > .lrow-total { background: rgba(255, 255, 255, .03); }
.lrow-val { font-family: var(--f-display); font-size: 16px; }
.fold-idle { margin-top: 10px; }

/* ---------- telefono: sezioni dell'admin in una barra fissa in basso ---------- */
@media (max-width: 760px) {
  .nav.nav-admin { flex-wrap: nowrap; border-radius: 999px; padding: 8px 8px 8px 14px; }
  .nav.nav-admin .nav-user { margin-left: auto; }
  .nav.nav-admin .nav-links {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; order: 0; flex-basis: auto; margin: 0;
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    background: rgba(6, 6, 9, .97); border-top: 1px solid var(--line-2);
    overflow: visible; -webkit-mask-image: none; mask-image: none;
  }
  .nav.nav-admin .nav-sep { display: none; }
  .nav.nav-admin .nav-link {
    flex-direction: column; justify-content: center; gap: 4px; min-width: 0; min-height: 54px;
    padding: 6px 2px; border-radius: 12px; font-size: 12.5px; font-weight: 600; color: var(--text-2);
  }
  .nav.nav-admin .nav-link .ico, .nav.nav-admin .nav-link .brand-ico { width: 20px; height: 20px; }
  .nav.nav-admin .nav-link[aria-current='page'] { color: #fff; background: rgba(210, 47, 134, .18); }
  .nav.nav-admin .nav-label { display: none; }
  .nav.nav-admin .nav-short { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.has-tabbar main { padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }
  body.has-tabbar .toasts { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  body.has-tabbar .site-foot { padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
}
@media print { .nav-links { position: static !important; } }
