/* ==========================================================================
   Console admin MyScraper v1 (sola lettura) · 19/10/2026
   Token --ms-* identici ad area.css:7-93 (sito), componenti .adm-* nuovi
   (design-admin/direzione.md §7-§8). Nessuna dipendenza da fogli dell'area
   clienti, nessun CDN: font e grafici sono locali.
   ========================================================================== */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/Inter-latin.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap; src: url(fonts/JetBrainsMono-latin.woff2) format('woff2'); }

:root {
  --ms-canvas: #0B0F14; --ms-sunken: #080C14; --ms-surface: #111827; --ms-surface-2: #161E2E; --ms-surface-3: #1B2436;
  --ms-input: #0D121B; --ms-overlay: rgba(4, 6, 10, 0.72);
  --ms-border: #1A2035; --ms-border-strong: #2A3550; --ms-border-input: #5F6B80;
  --ms-text: #F3F4F6; --ms-text-2: #9CA3AF; --ms-text-3: #8A93A3; --ms-text-disabled: #6B7280; --ms-text-on-accent: #05080F;
  --ms-cyan: #00E5FF; --ms-cyan-strong: #00B8CC; --ms-cyan-soft: rgba(0, 229, 255, 0.12);
  --ms-purple: #7C4DFF; --ms-purple-text: #B388FF; --ms-purple-soft: rgba(124, 77, 255, 0.14);
  --ms-grad-brand: linear-gradient(135deg, #00E5FF 0%, #7C4DFF 100%);
  --ms-grad-cta: linear-gradient(135deg, #00E5FF 0%, #8E66FF 100%);
  --ms-success: #00E676; --ms-success-soft: rgba(0, 230, 118, 0.12);
  --ms-warning: #FF6D00; --ms-warning-soft: rgba(255, 109, 0, 0.12); --ms-warning-text: #FF9E40;
  --ms-danger: #FF5252; --ms-danger-soft: rgba(255, 82, 82, 0.12); --ms-danger-solid: #D93636;
  --ms-neutral: #9CA3AF; --ms-neutral-soft: rgba(156, 163, 175, 0.12);
  --ms-plan-trial: #9CA3AF; --ms-plan-basic: #CBD5E1; --ms-plan-medium: #00E5FF; --ms-plan-rocket: #B388FF;
  --ms-svc-scraping: #00A5C3; --ms-svc-linkedin: #2370DB; --ms-svc-email: #AB8704; --ms-svc-voice-out: #935EDF; --ms-svc-voice-in: #E64887;
  --ms-svc-numbers: #8A93A3; --ms-svc-domains: #5B6678;
  --ms-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ms-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ms-e1: 0 1px 0 rgba(255,255,255,0.03) inset, 0 1px 2px rgba(0,0,0,0.40);
  --ms-e2: 0 8px 24px rgba(0,0,0,0.35);
  --ms-e3: 0 24px 64px rgba(0,0,0,0.55);
  --ms-dur-fast: 120ms; --ms-dur-base: 200ms; --ms-dur-slow: 320ms;
  --ms-ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ms-ease-emph: cubic-bezier(0.16, 1, 0.3, 1);
  --ms-focus: 0 0 0 2px var(--ms-canvas), 0 0 0 4px var(--ms-cyan);
  /* console */
  --adm-row: 36px; --adm-sidebar-w: 248px; --adm-topbar-h: 60px; --adm-content-max: 1600px;
  --adm-grad-text: linear-gradient(100deg, #00E5FF 0%, #38D8FF 30%, #00E676 100%);
  --adm-chart-grid: #1A2035; --adm-chart-axis: #2A3550; --adm-chart-ghost: #2A3550;
  --adm-head: #0F1522;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--ms-canvas); }
body {
  font-family: var(--ms-font); font-size: 14px; line-height: 22px; background: var(--ms-canvas); color: var(--ms-text);
  -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01'; min-height: 100vh;
}
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
svg { flex: none; }
:focus-visible { outline: none; box-shadow: var(--ms-focus); border-radius: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--ms-mono); font-size: 12px; letter-spacing: -0.01em; }
.tnum { font-variant-numeric: tabular-nums; }
.t2 { color: var(--ms-text-2); } .t3 { color: var(--ms-text-3); }
.ok { color: var(--ms-success); } .bad { color: var(--ms-danger); } .warn { color: var(--ms-warning-text); }
.link { color: var(--ms-cyan); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.link svg { width: 14px; height: 14px; }
.adm-env svg { width: 12px; height: 12px; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0,229,255,.5); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ms-cyan); color: #05080F; padding: 8px 12px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }

/* ==========================================================================
   Shell
   ========================================================================== */
.adm-shell { display: grid; grid-template-columns: var(--adm-sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.adm-sb { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--ms-sunken); border-right: 1px solid var(--ms-border); z-index: 40; }
.adm-sb-head { display: flex; align-items: center; gap: 10px; padding: 18px 18px 16px; }
.adm-logo { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: #0F1626; border: 1px solid var(--ms-border-strong); box-shadow: 0 0 18px rgba(0,229,255,.10); }
.adm-logo img { width: 22px; height: 22px; filter: invert(1); }
.adm-brand { font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }
.adm-pill-admin { margin-left: auto; font: 700 10px/16px var(--ms-mono); letter-spacing: .14em; color: #E4D9FF; background: var(--ms-purple-soft); border: 1px solid rgba(124,77,255,.5); border-radius: 999px; padding: 1px 8px; }
.adm-sb-nav { flex: 1; overflow-y: auto; padding: 6px 12px 12px; scrollbar-width: thin; scrollbar-color: #1f2940 transparent; }
.adm-sb-grp { font: 700 10px/16px var(--ms-mono); letter-spacing: .16em; color: var(--ms-text-3); padding: 16px 10px 6px; text-transform: uppercase; }
.adm-sb-link { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 10px; color: var(--ms-text-2); font-weight: 500; font-size: 13.5px; position: relative; transition: background var(--ms-dur-fast) var(--ms-ease-out), color var(--ms-dur-fast) var(--ms-ease-out); }
.adm-sb-link .n { font: 600 10.5px/1 var(--ms-mono); color: var(--ms-text-3); width: 16px; }
.adm-sb-link svg { width: 17px; height: 17px; color: var(--ms-text-3); transition: color var(--ms-dur-fast); }
.adm-sb-link:hover { background: rgba(255,255,255,0.04); color: var(--ms-text); }
.adm-sb-link[aria-current="page"] { background: linear-gradient(90deg, rgba(0,229,255,.12), rgba(0,229,255,.03) 70%, transparent); color: var(--ms-text); font-weight: 600; box-shadow: inset 0 0 0 1px rgba(0,229,255,.14); }
.adm-sb-link[aria-current="page"]::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ms-cyan); box-shadow: 0 0 12px rgba(0,229,255,.7); }
.adm-sb-link[aria-current="page"] svg, .adm-sb-link[aria-current="page"] .n { color: var(--ms-cyan); }
.adm-sb-link .cnt { margin-left: auto; font: 600 11px/18px var(--ms-font); color: var(--ms-text-3); }
.adm-sb-link .alert { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 700 10.5px/18px var(--ms-font); color: #FFB4B4; background: var(--ms-danger-soft); border: 1px solid rgba(255,82,82,.35); padding: 0 7px; border-radius: 999px; }
.adm-sb-link .alert i { width: 6px; height: 6px; border-radius: 50%; background: var(--ms-danger); box-shadow: 0 0 8px var(--ms-danger); }
.adm-sb-link .soon { margin-left: auto; font: 600 9.5px/16px var(--ms-mono); letter-spacing: .08em; color: var(--ms-text-3); border: 1px solid var(--ms-border-strong); border-radius: 6px; padding: 0 5px; }
.adm-sb-foot { border-top: 1px solid var(--ms-border); padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.adm-sb-env { margin: 0 12px 10px; padding: 10px 12px; border-radius: 12px; border: 1px dashed rgba(255,158,64,.45); background: rgba(255,109,0,.06); font-size: 11.5px; line-height: 16px; color: #FFCF9E; }
.adm-sb-env b { display: block; font: 700 10px/16px var(--ms-mono); letter-spacing: .14em; color: var(--ms-warning-text); }
.adm-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #fff; background: var(--ms-grad-brand); flex: none; position: relative; }
.adm-avatar.sq { border-radius: 10px; }
.adm-avatar.lg { width: 56px; height: 56px; border-radius: 16px; font-size: 19px; }
.adm-who { min-width: 0; flex: 1; }
.adm-who b { display: block; font-size: 13px; line-height: 18px; }
.adm-who span { display: block; font-size: 11.5px; line-height: 16px; color: var(--ms-text-3); }

.adm-main { min-width: 0; display: flex; flex-direction: column; }
.adm-top { position: sticky; top: 0; z-index: 30; height: var(--adm-topbar-h); display: flex; align-items: center; gap: 10px; padding: 0 32px; background: rgba(11,15,20,.72); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); border-bottom: 1px solid var(--ms-border); }
.adm-menu { display: none !important; }
.adm-search { display: flex; align-items: center; gap: 10px; width: min(440px, 38vw); height: 36px; padding: 0 8px 0 12px; border-radius: 10px; background: var(--ms-input); border: 1px solid var(--ms-border-strong); color: var(--ms-text-3); font-size: 13px; cursor: text; transition: border-color var(--ms-dur-fast), box-shadow var(--ms-dur-fast); text-align: left; }
.adm-search:hover { border-color: #3a4766; }
.adm-search svg { width: 16px; height: 16px; }
.adm-search span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
kbd, .kbd { font: 600 11px/18px var(--ms-mono); color: var(--ms-text-2); border: 1px solid var(--ms-border-strong); border-bottom-width: 2px; border-radius: 6px; padding: 0 6px; background: #121A2A; }
.adm-top-sp { flex: 1; }
.adm-updated { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ms-text-3); white-space: nowrap; }
.adm-live { width: 7px; height: 7px; border-radius: 50%; background: var(--ms-success); box-shadow: 0 0 0 3px rgba(0,230,118,.15); animation: adm-pulse 2.4s ease-in-out infinite; }
.adm-env { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font: 700 10.5px/1 var(--ms-mono); letter-spacing: .1em; color: var(--ms-warning-text); background: rgba(255,109,0,.08); border: 1px solid rgba(255,158,64,.4); white-space: nowrap; }

.adm-content { width: 100%; max-width: var(--adm-content-max); margin: 0 auto; padding: 28px 32px 64px; }
.adm-content.wide { max-width: none; padding-left: 24px; padding-right: 24px; }
.adm-content.wide .adm-tabs { margin-left: -24px; margin-right: -24px; padding-left: 24px; padding-right: 24px; }
[role="tabpanel"] { min-height: calc(100vh - 110px); }

/* ==========================================================================
   Controlli
   ========================================================================== */
.adm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 10px; font: 600 13px/1 var(--ms-font); border: 1px solid var(--ms-border-strong); background: var(--ms-surface-2); color: var(--ms-text); cursor: pointer; white-space: nowrap; transition: background var(--ms-dur-fast), border-color var(--ms-dur-fast), transform 80ms; }
.adm-btn:hover { background: #1c263a; border-color: #3a4766; }
.adm-btn:active { transform: scale(.98); }
.adm-btn svg { width: 15px; height: 15px; }
.adm-btn.primary { background: var(--ms-grad-cta); color: var(--ms-text-on-accent); border: 0; box-shadow: 0 6px 20px rgba(0,229,255,.18); }
.adm-btn.primary:hover { filter: brightness(1.06); }
.adm-btn.ghost { background: transparent; }
.adm-btn.danger { background: var(--ms-danger-soft); border-color: rgba(255,82,82,.4); color: #FFB4B4; }
.adm-btn.sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.adm-btn[disabled] { opacity: .45; pointer-events: none; }
.adm-ib { width: 30px; height: 30px; border-radius: 8px; display: inline-grid; place-items: center; border: 1px solid transparent; background: transparent; color: var(--ms-text-3); cursor: pointer; transition: background var(--ms-dur-fast), color var(--ms-dur-fast), border-color var(--ms-dur-fast); }
.adm-ib:hover { background: rgba(255,255,255,.05); color: var(--ms-text); border-color: var(--ms-border-strong); }
.adm-ib[aria-pressed="true"] { color: var(--ms-cyan); background: var(--ms-cyan-soft); border-color: rgba(0,229,255,.3); }
.adm-ib svg { width: 16px; height: 16px; }
.adm-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--ms-input); border: 1px solid var(--ms-border-strong); }
.adm-seg button { height: 26px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--ms-text-2); font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background var(--ms-dur-fast), color var(--ms-dur-fast); }
.adm-seg button:hover { color: var(--ms-text); }
.adm-seg button[aria-pressed="true"] { background: #1E2940; color: var(--ms-text); box-shadow: inset 0 0 0 1px rgba(0,229,255,.28); }
.adm-select { height: 34px; padding: 0 30px 0 12px; border-radius: 10px; border: 1px solid var(--ms-border-strong); background: var(--ms-input) 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='%239CA3AF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; color: var(--ms-text); font: 500 13px var(--ms-font); appearance: none; cursor: pointer; }
.adm-input { height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--ms-border-strong); background: var(--ms-input); color: var(--ms-text); font: 400 13px var(--ms-font); min-width: 0; }
.adm-input::placeholder { color: var(--ms-text-3); }
.adm-input:focus, .adm-select:focus, textarea:focus { outline: none; border-color: var(--ms-cyan); box-shadow: 0 0 0 3px rgba(0,229,255,.15); }
.adm-field { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--ms-border-strong); background: var(--ms-input); color: var(--ms-text-3); flex: 1; min-width: 220px; max-width: 420px; }
.adm-field input { flex: 1; border: 0; background: transparent; color: var(--ms-text); font: 400 13px var(--ms-font); outline: none; min-width: 0; }
.adm-field svg { width: 15px; height: 15px; }
.adm-field:focus-within { border-color: var(--ms-cyan); box-shadow: 0 0 0 3px rgba(0,229,255,.15); }
.adm-period { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 12px; border-radius: 10px; border: 1px solid var(--ms-border-strong); background: var(--ms-surface-2); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.adm-period svg { width: 15px; height: 15px; color: var(--ms-text-3); }
.adm-period:hover { border-color: #3a4766; }
.adm-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ms-text-2); cursor: pointer; user-select: none; white-space: nowrap; }
.adm-toggle i { width: 30px; height: 18px; border-radius: 999px; background: #222c42; position: relative; transition: background var(--ms-dur-base); border: 1px solid var(--ms-border-strong); }
.adm-toggle i::after { content: ''; position: absolute; width: 12px; height: 12px; border-radius: 50%; top: 2px; left: 2px; background: #9CA3AF; transition: transform var(--ms-dur-base) var(--ms-ease-emph), background var(--ms-dur-base); }
.adm-toggle[aria-checked="true"] i { background: rgba(0,229,255,.25); border-color: rgba(0,229,255,.5); }
.adm-toggle[aria-checked="true"] i::after { transform: translateX(12px); background: var(--ms-cyan); }
.adm-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px 0 10px; border-radius: 999px; background: var(--ms-cyan-soft); border: 1px solid rgba(0,229,255,.3); color: #BFF7FF; font-size: 12px; font-weight: 600; cursor: pointer; }
.adm-chip svg { width: 13px; height: 13px; }
.adm-chip.add { background: transparent; border-style: dashed; border-color: var(--ms-border-input); color: var(--ms-text-2); padding: 0 10px; }

/* Popover (selettore periodo, colonne) */
.adm-pop { position: fixed; z-index: 70; min-width: 240px; background: var(--ms-surface-3); border: 1px solid var(--ms-border-strong); border-radius: 14px; box-shadow: var(--ms-e3); padding: 6px; animation: adm-pop 180ms var(--ms-ease-emph) both; }
.adm-pop-i { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ms-text); font-size: 13px; cursor: pointer; text-align: left; }
.adm-pop-i:hover, .adm-pop-i:focus-visible { background: rgba(255,255,255,.05); }
.adm-pop-i .ck { width: 16px; height: 16px; color: var(--ms-cyan); visibility: hidden; }
.adm-pop-i[aria-checked="true"] .ck { visibility: visible; }
.adm-pop-i .hint { margin-left: auto; color: var(--ms-text-3); font-size: 11.5px; }
.adm-pop-sep { height: 1px; background: var(--ms-border-strong); margin: 6px 4px; }
.adm-pop-h { font: 700 10px/16px var(--ms-mono); letter-spacing: .14em; color: var(--ms-text-3); padding: 8px 10px 4px; text-transform: uppercase; }

/* ==========================================================================
   Intestazioni di pagina
   ========================================================================== */
.adm-over { display: inline-flex; align-items: center; gap: 10px; font: 700 11px/16px var(--ms-mono); letter-spacing: .14em; color: var(--ms-cyan); text-transform: uppercase; }
.adm-over .n { border: 1px solid rgba(0,229,255,.45); background: rgba(0,229,255,.08); border-radius: 6px; padding: 1px 6px; letter-spacing: .06em; }
.adm-over .sep { color: rgba(0,229,255,.55); }
.adm-ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; flex-wrap: wrap; }
.adm-h1 { font-weight: 800; font-size: 30px; line-height: 36px; letter-spacing: -0.035em; margin-top: 10px; }
.adm-ph-sub { color: var(--ms-text-2); font-size: 14px; line-height: 22px; margin-top: 4px; max-width: 760px; }
.adm-ph-sub b { color: var(--ms-text); font-weight: 600; }
.adm-ph-act { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adm-crumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ms-text-3); margin-bottom: 14px; }
.adm-crumb a:hover { color: var(--ms-text); }
.adm-crumb svg { width: 14px; height: 14px; }

/* Eroe della Panoramica */
.adm-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); gap: 28px; align-items: start; margin: -28px -32px 22px; padding: 30px 32px 6px; overflow: hidden; }
.adm-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse 70% 90% at 20% 0%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 90% at 20% 0%, #000 30%, transparent 75%); }
.adm-aurora { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(10px); }
.adm-aurora.a { width: 620px; height: 420px; left: -120px; top: -220px; background: radial-gradient(closest-side, rgba(0,229,255,.13), rgba(0,229,255,0) 70%); animation: adm-drift 36s ease-in-out infinite alternate; }
.adm-aurora.b { width: 680px; height: 460px; left: 32%; top: -260px; background: radial-gradient(closest-side, rgba(124,77,255,.16), rgba(124,77,255,0) 70%); animation: adm-drift 44s ease-in-out infinite alternate-reverse; }
.adm-hero > *:not(.adm-aurora) { position: relative; }
.adm-hello { font-weight: 800; font-size: 46px; line-height: 50px; letter-spacing: -0.045em; margin-top: 16px; }
.adm-hello .g { background: var(--adm-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.adm-summary { font-size: 17px; line-height: 27px; color: var(--ms-text-2); margin-top: 14px; max-width: 640px; }
.adm-summary b { color: var(--ms-text); font-weight: 650; }
.adm-summary .bad { color: var(--ms-danger); font-weight: 650; }
.adm-hero-act { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

/* Da sistemare */
.adm-fix { position: relative; border-radius: 18px; background: rgba(17,24,39,.86); border: 1px solid var(--ms-border-strong); box-shadow: var(--ms-e2); padding: 16px 18px 10px; overflow: hidden; }
.adm-fix::before { content: ''; position: absolute; left: 12%; right: 12%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,82,82,.9), transparent); box-shadow: 0 0 18px rgba(255,82,82,.6); }
.adm-fix-h { display: flex; align-items: center; gap: 10px; }
.adm-fix-h .t { font: 700 11px/16px var(--ms-mono); letter-spacing: .14em; text-transform: uppercase; }
.adm-fix-h .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ms-danger); box-shadow: 0 0 10px var(--ms-danger); }
.adm-fix-sub { font-size: 12.5px; color: var(--ms-text-3); margin: 2px 0 6px; }
.adm-fix-i { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px solid var(--ms-border); }
.adm-fix-i:first-of-type { border-top: 0; }
.adm-fix-i b { display: block; font-size: 13.5px; line-height: 19px; font-weight: 650; }
.adm-fix-i p { font-size: 12.5px; line-height: 18px; color: var(--ms-text-2); margin-top: 2px; }
.adm-fix-i .link { font-size: 12.5px; margin-top: 4px; }

/* Anelli d'icona del tono */
.adm-ring { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1.5px solid currentColor; position: relative; }
.adm-ring svg { width: 15px; height: 15px; }
.adm-ring::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: currentColor; opacity: .12; }
.adm-ring.danger { color: var(--ms-danger); } .adm-ring.warn { color: var(--ms-warning-text); } .adm-ring.ok { color: var(--ms-success); } .adm-ring.info { color: var(--ms-cyan); } .adm-ring.violet { color: var(--ms-purple-text); } .adm-ring.neutral { color: var(--ms-text-3); }
.adm-ring.sm { width: 28px; height: 28px; } .adm-ring.sm svg { width: 13px; height: 13px; }

/* ==========================================================================
   Griglie, card, KPI
   ========================================================================== */
.adm-grid { display: grid; gap: 16px; }
.adm-kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 16px; }
.adm-pulse { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.adm-pulse span { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(17,24,39,.7); border: 1px solid var(--ms-border-strong); font-size: 12.5px; color: var(--ms-text-2); white-space: nowrap; }
.adm-pulse b { color: var(--ms-text); font-weight: 650; font-variant-numeric: tabular-nums; }
.adm-pulse svg { width: 14px; height: 14px; color: var(--ms-text-3); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-73 { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.g-37 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); }
.g-64 { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.mb { margin-bottom: 16px; }
.span-2 { grid-column: span 2; }

.adm-card { position: relative; min-width: 0; background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0) 120px), var(--ms-surface); border: 1px solid var(--ms-border); border-radius: 16px; box-shadow: var(--ms-e1); display: flex; flex-direction: column; }
.adm-card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 0; }
.adm-card-t { font-weight: 650; font-size: 15px; line-height: 22px; display: flex; align-items: center; gap: 8px; }
.adm-card-s { font-size: 12px; line-height: 17px; color: var(--ms-text-3); margin-top: 2px; }
.adm-card-a { display: flex; align-items: center; gap: 2px; flex: none; }
.adm-card-b { padding: 14px 18px 16px; flex: 1; min-width: 0; }
.adm-card-b.flush { padding: 10px 0 0; }
.adm-card-f { border-top: 1px solid var(--ms-border); padding: 10px 18px; font-size: 11.5px; line-height: 16px; color: var(--ms-text-3); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.adm-card-f .src::before { content: 'Fonte: '; }
.adm-info { width: 16px; height: 16px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--ms-text-3); cursor: help; border: 0; background: transparent; padding: 0; }
.adm-info svg { width: 14px; height: 14px; }
.adm-info:hover { color: var(--ms-cyan); }

.adm-kpi { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 12px; border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0) 60%), var(--ms-surface); border: 1px solid var(--ms-border); overflow: hidden; cursor: pointer; transition: border-color var(--ms-dur-base), transform var(--ms-dur-base) var(--ms-ease-out), box-shadow var(--ms-dur-base); text-align: left; color: inherit; font: inherit; }
.adm-kpi::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.08) 50%, transparent 70%); transform: translateX(-100%); transition: transform 700ms var(--ms-ease-out); pointer-events: none; }
.adm-kpi:hover { border-color: var(--ms-border-strong); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.adm-kpi:hover::after { transform: translateX(100%); }
.adm-kpi-l { font-size: 12px; line-height: 16px; color: var(--ms-text-2); display: flex; align-items: center; gap: 6px; font-weight: 500; }
.adm-kpi-v { font-weight: 700; font-size: 26px; line-height: 32px; letter-spacing: -0.025em; white-space: nowrap; }
.adm-kpi-v small { font-size: 14px; font-weight: 600; color: var(--ms-text-2); letter-spacing: 0; margin-left: 2px; }
.adm-kpi-r { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; }
.adm-kpi-sub { font-size: 11.5px; line-height: 16px; color: var(--ms-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-kpi svg.spark { width: 100%; height: 30px; display: block; margin-top: 4px; overflow: visible; }
.adm-kpi.compact { padding: 10px 14px; cursor: default; }
.adm-kpi.compact:hover { transform: none; box-shadow: none; }
.adm-kpi.compact .adm-kpi-v { font-size: 20px; line-height: 26px; }
.adm-delta { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; line-height: 18px; font-weight: 650; padding: 0 7px; border-radius: 999px; white-space: nowrap; }
.adm-delta.good { color: var(--ms-success); background: var(--ms-success-soft); }
.adm-delta.bad { color: #FF7B7B; background: var(--ms-danger-soft); }
.adm-delta.flat { color: var(--ms-text-2); background: var(--ms-neutral-soft); }
.adm-delta .vs { color: var(--ms-text-3); font-weight: 500; }

/* Badge */
.adm-badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 1; white-space: nowrap; border: 1px solid; }
.adm-badge .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.adm-badge.plan-trial { color: var(--ms-plan-trial); border-color: rgba(156,163,175,.35); background: rgba(156,163,175,.08); }
.adm-badge.plan-basic { color: var(--ms-plan-basic); border-color: rgba(203,213,225,.38); background: rgba(203,213,225,.08); }
.adm-badge.plan-medium { color: var(--ms-plan-medium); border-color: rgba(0,229,255,.38); background: rgba(0,229,255,.08); }
.adm-badge.plan-rocket { color: var(--ms-plan-rocket); border-color: rgba(179,136,255,.42); background: rgba(124,77,255,.12); }
.adm-badge.plan-trial .d, .adm-badge.plan-basic .d, .adm-badge.plan-medium .d, .adm-badge.plan-rocket .d { border-radius: 2px; transform: rotate(45deg); width: 6px; height: 6px; }
.adm-badge.s-ok { color: var(--ms-success); border-color: rgba(0,230,118,.32); background: var(--ms-success-soft); }
.adm-badge.s-warn { color: var(--ms-warning-text); border-color: rgba(255,158,64,.35); background: var(--ms-warning-soft); }
.adm-badge.s-bad { color: #FF7B7B; border-color: rgba(255,82,82,.38); background: var(--ms-danger-soft); }
.adm-badge.s-info { color: var(--ms-cyan); border-color: rgba(0,229,255,.32); background: var(--ms-cyan-soft); }
.adm-badge.s-neutral { color: var(--ms-text-2); border-color: rgba(156,163,175,.3); background: var(--ms-neutral-soft); }
.adm-badge.s-violet { color: var(--ms-purple-text); border-color: rgba(179,136,255,.35); background: var(--ms-purple-soft); }
.adm-badge.mono { font-family: var(--ms-mono); font-size: 10.5px; letter-spacing: .06em; }
.adm-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 600; color: var(--ms-text-2); background: #182134; border: 1px solid var(--ms-border-strong); white-space: nowrap; }

/* Id copiabile */
.adm-id { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 7px; background: #0E1420; border: 1px solid var(--ms-border-strong); font: 500 11.5px/1 var(--ms-mono); color: var(--ms-text-2); cursor: pointer; white-space: nowrap; transition: border-color var(--ms-dur-fast), color var(--ms-dur-fast); }
.adm-id:hover { border-color: rgba(0,229,255,.45); color: var(--ms-text); }
.adm-id svg { width: 12px; height: 12px; color: var(--ms-text-3); }
.adm-id.copied { border-color: rgba(0,230,118,.5); color: var(--ms-success); }

/* ==========================================================================
   Tabelle
   ========================================================================== */
.adm-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 14px 18px 12px; }
.adm-toolbar .sp { flex: 1; }
.adm-segs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.adm-segb { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--ms-border); background: var(--ms-surface); color: var(--ms-text-2); font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all var(--ms-dur-fast); }
.adm-segb:hover { color: var(--ms-text); border-color: var(--ms-border-strong); }
.adm-segb .c { font: 600 11px/18px var(--ms-font); color: var(--ms-text-3); background: #172033; padding: 0 6px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.adm-segb[aria-pressed="true"] { color: var(--ms-text); border-color: rgba(0,229,255,.45); background: linear-gradient(180deg, rgba(0,229,255,.10), rgba(0,229,255,.03)); box-shadow: 0 0 0 1px rgba(0,229,255,.12), 0 6px 18px rgba(0,229,255,.06); }
.adm-segb[aria-pressed="true"] .c { color: #BFF7FF; background: rgba(0,229,255,.16); }
.adm-segb .dot { width: 6px; height: 6px; border-radius: 50%; }

.adm-tw { overflow: auto; border-top: 1px solid var(--ms-border); position: relative; scrollbar-width: thin; scrollbar-color: #24304a transparent; }
.adm-tw.capped { max-height: 560px; }
.adm-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; line-height: 20px; }
.adm-table caption { text-align: left; }
.adm-table th { position: sticky; top: 0; z-index: 2; background: var(--adm-head); font-size: 11px; line-height: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ms-text-3); text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--ms-border-strong); white-space: nowrap; user-select: none; }
.adm-table th.sortable { cursor: pointer; }
.adm-table th.sortable:hover { color: var(--ms-text); }
.adm-table th .ar { display: inline-block; width: 10px; margin-left: 4px; color: var(--ms-cyan); }
.adm-table th[aria-sort="none"] .ar { display: none; }
.adm-table th[aria-sort] { }
.adm-table td { height: var(--adm-row); padding: 6px 10px; border-bottom: 1px solid var(--ms-border); white-space: nowrap; vertical-align: middle; background: var(--ms-surface); transition: background 80ms; }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-table tbody tr { cursor: default; }
.adm-table tbody tr.clk { cursor: pointer; }
.adm-table tbody tr:hover td { background: var(--ms-surface-2); }
.adm-table tbody tr.sel td { background: rgba(0,229,255,.05); }
.adm-table tbody tr:focus-visible { outline: none; }
.adm-table tbody tr:focus-visible td { background: #172235; box-shadow: inset 0 1px 0 rgba(0,229,255,.5), inset 0 -1px 0 rgba(0,229,255,.5); }
.adm-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.adm-table th.num { text-align: right; }
.adm-table .c { text-align: center; }
.adm-table .sticky { position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 var(--ms-border); }
.adm-table th.sticky { z-index: 3; }
.adm-table .cb { width: 36px; padding-right: 0; }
.adm-table .wrap { white-space: normal; }
.adm-table .mut { color: var(--ms-text-3); }
.adm-table .t2 { color: var(--ms-text-2); }
.d-comfy { --adm-row: 44px; } .d-dense { --adm-row: 28px; }
.d-dense .adm-table td { padding-top: 3px; padding-bottom: 3px; }
.adm-cust { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.adm-cust .adm-avatar { width: 28px; height: 28px; font-size: 11px; border-radius: 8px; }
.adm-cust > div > b { display: block; font-weight: 600; font-size: 13px; line-height: 18px; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.adm-cust > div > span { display: block; font-size: 11.5px; line-height: 15px; color: var(--ms-text-3); max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.d-dense .adm-cust > div > span { display: none; }
.d-dense .adm-cust .adm-avatar { width: 20px; height: 20px; font-size: 9px; border-radius: 6px; }
.adm-seen { display: inline-flex; align-items: center; gap: 7px; }
.adm-seen .o { width: 7px; height: 7px; border-radius: 50%; background: var(--ms-success); box-shadow: 0 0 0 3px rgba(0,230,118,.16); animation: adm-pulse 2.4s ease-in-out infinite; }
.adm-seen .f { width: 7px; height: 7px; border-radius: 50%; background: #3A4558; }
.adm-minibars { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; vertical-align: middle; margin-left: 8px; }
.adm-minibars i { width: 3px; border-radius: 1.5px 1.5px 0 0; background: #00A5C3; opacity: .85; }
.adm-cb { width: 16px; height: 16px; accent-color: #00E5FF; cursor: pointer; vertical-align: middle; }
.adm-tfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--ms-border); font-size: 12px; color: var(--ms-text-3); flex-wrap: wrap; }
.adm-pager { display: flex; align-items: center; gap: 6px; }
.adm-bulk { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 14px; background: var(--ms-surface-3); border: 1px solid rgba(0,229,255,.35); box-shadow: var(--ms-e3), 0 0 0 4px rgba(0,229,255,.05); transition: all var(--ms-dur-slow) var(--ms-ease-emph); font-size: 13px; }
.adm-bulk.on { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
.adm-meter { height: 6px; border-radius: 999px; background: #1C2740; overflow: hidden; min-width: 60px; }
.adm-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #00E5FF, #00E676); }
.adm-meter.warn i { background: var(--ms-warning); } .adm-meter.bad i { background: var(--ms-danger); }

/* ==========================================================================
   Grafici (SVG fatti in casa)
   ========================================================================== */
.adm-chart { position: relative; width: 100%; }
.adm-chart svg { display: block; width: 100%; overflow: visible; }
.adm-chart .ax { font: 500 11px/1 var(--ms-font); fill: var(--ms-text-3); font-variant-numeric: tabular-nums; }
.adm-chart .gl { stroke: var(--adm-chart-grid); stroke-width: 1; shape-rendering: crispEdges; }
.adm-chart .base { stroke: var(--adm-chart-axis); stroke-width: 1; shape-rendering: crispEdges; }
.adm-chart .hit { fill: transparent; cursor: pointer; }
.adm-chart .hit:hover + .hl, .adm-chart .colg:hover .hl { opacity: 1; }
.adm-chart .hl { fill: rgba(255,255,255,.035); opacity: 0; transition: opacity 80ms; pointer-events: none; }
.adm-chart .bar { transform-box: fill-box; transform-origin: 50% 100%; animation: adm-grow 700ms var(--ms-ease-emph) both; }
.adm-chart .bar.neg { transform-origin: 50% 0%; }
.adm-chart .ghost { fill: var(--adm-chart-ghost); }
.adm-chart .ln { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: adm-draw 900ms var(--ms-ease-out) forwards; }
.adm-chart .ln.est { stroke-dasharray: 4 4; stroke-dashoffset: 0; animation: adm-fade 900ms ease both; opacity: .7; }
.adm-chart .ar { animation: adm-fade 900ms ease both; }
.adm-chart .xh { stroke: var(--ms-text-3); stroke-width: 1; opacity: 0; pointer-events: none; }
.adm-chart .pt { opacity: 0; pointer-events: none; }
.adm-chart .end { animation: adm-fade 600ms 500ms both; }
.adm-chart .ann line { stroke: #3A4766; stroke-width: 1; }
.adm-chart .ann text { font: 600 10px/1 var(--ms-mono); fill: var(--ms-text-3); letter-spacing: .04em; }
.adm-chart .lbl { font: 600 11px/1 var(--ms-font); fill: var(--ms-text-2); font-variant-numeric: tabular-nums; }
.adm-chart .zero { stroke: #3A4766; stroke-width: 1; shape-rendering: crispEdges; }
.adm-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--ms-text-2); margin-bottom: 10px; }
.adm-legend span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.adm-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.adm-legend i.line { height: 2px; width: 14px; border-radius: 1px; }
.adm-legend i.dash { height: 0; width: 14px; border-top: 2px dashed; border-radius: 0; background: none !important; }
.adm-legend .v { color: var(--ms-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.adm-note { display: flex; align-items: center; gap: 8px; font-size: 11.5px; line-height: 16px; color: var(--ms-text-3); margin-top: 10px; }
.adm-note svg { width: 13px; height: 13px; flex: none; }
.adm-banner { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 12.5px; line-height: 18px; margin-bottom: 12px; border: 1px solid; }
.adm-banner svg { width: 15px; height: 15px; margin-top: 1px; flex: none; }
.adm-banner.warn { color: #FFCF9E; background: rgba(255,109,0,.07); border-color: rgba(255,158,64,.3); }
.adm-banner.info { color: #BFF7FF; background: rgba(0,229,255,.06); border-color: rgba(0,229,255,.25); }
.adm-banner.violet { color: #DCCBFF; background: rgba(124,77,255,.08); border-color: rgba(179,136,255,.3); }
.adm-banner.bad { color: #FFC2C2; background: rgba(255,82,82,.07); border-color: rgba(255,82,82,.3); }
.adm-banner b { color: var(--ms-text); }

/* Barre orizzontali, quota, elenco */
.adm-hb { display: flex; flex-direction: column; gap: 3px; }
.adm-hb-r { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 5px 8px; margin: 0 -8px; border-radius: 8px; cursor: pointer; transition: background 80ms; }
.adm-hb-r.norank { grid-template-columns: minmax(0, 1fr) auto; }
.adm-hb-r:hover { background: rgba(255,255,255,.03); }
.adm-hb-r .rk { font: 600 11px/1 var(--ms-mono); color: var(--ms-text-3); }
.adm-hb-r .nm { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; line-height: 18px; margin-bottom: 4px; min-width: 0; }
.adm-hb-r .nm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-hb-r .nm em { font-style: normal; color: var(--ms-text-3); font-size: 11.5px; white-space: nowrap; }
.adm-hb-r .tr { height: 8px; border-radius: 0 4px 4px 0; background: rgba(255,255,255,.035); overflow: hidden; }
.adm-hb-r .tr i { display: block; height: 100%; border-radius: 0 4px 4px 0; transform-origin: left; animation: adm-growx 700ms var(--ms-ease-emph) both; }
.adm-hb-r .vl { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; min-width: 64px; }
.adm-share { display: flex; height: 10px; gap: 2px; border-radius: 3px; overflow: hidden; margin: 6px 0 14px; }
.adm-share i { display: block; height: 100%; transform-origin: left; animation: adm-growx 700ms var(--ms-ease-emph) both; }
.adm-share i:first-child { border-radius: 3px 0 0 3px; } .adm-share i:last-child { border-radius: 0 3px 3px 0; }
.adm-svl { display: grid; gap: 2px; }
.adm-svl-r { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 52px; gap: 10px; align-items: center; font-size: 13px; line-height: 20px; padding: 3px 0; }
.adm-svl-r i { width: 10px; height: 10px; border-radius: 3px; }
.adm-svl-r .v { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.adm-svl-r .p { color: var(--ms-text-3); font-variant-numeric: tabular-nums; text-align: right; font-size: 12px; }

/* Mappe di calore */
.adm-hm { display: grid; gap: 3px; font-size: 11px; }
.adm-hm .lab { color: var(--ms-text-3); display: flex; align-items: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.adm-hm .cl { height: 22px; border-radius: 4px; display: grid; place-items: center; font-weight: 600; font-size: 10.5px; font-variant-numeric: tabular-nums; cursor: default; transition: transform 80ms, box-shadow 80ms; animation: adm-fade 500ms both; }
.adm-hm .cl:hover { transform: scale(1.12); box-shadow: 0 0 0 1px rgba(255,255,255,.4); z-index: 1; position: relative; }
.adm-hm .hd { color: var(--ms-text-3); text-align: center; font-variant-numeric: tabular-nums; }
.adm-hm-leg { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ms-text-3); margin-top: 10px; }
.adm-hm-leg i { width: 18px; height: 10px; border-radius: 2px; }

/* Funnel */
.adm-fn { display: grid; gap: 8px; }
.adm-fn-r { display: grid; grid-template-columns: 170px minmax(0, 1fr) 70px; gap: 12px; align-items: center; font-size: 13px; }
.adm-fn-r .tr { height: 26px; border-radius: 0 6px 6px 0; background: rgba(255,255,255,.03); position: relative; overflow: hidden; }
.adm-fn-r .tr i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 6px 6px 0; transform-origin: left; animation: adm-growx 800ms var(--ms-ease-emph) both; }
.adm-fn-r .tr span { position: absolute; left: 10px; top: 0; line-height: 26px; font-weight: 650; font-variant-numeric: tabular-nums; color: #04161B; }
.adm-fn-r .cv { text-align: right; color: var(--ms-text-3); font-size: 12px; font-variant-numeric: tabular-nums; }

/* Tooltip */
.adm-tip { position: fixed; z-index: 90; pointer-events: none; min-width: 160px; max-width: 300px; background: rgba(27,36,54,.97); border: 1px solid var(--ms-border-strong); border-radius: 10px; box-shadow: var(--ms-e2); padding: 8px 10px; font-size: 12px; line-height: 17px; opacity: 0; transform: translateY(4px); transition: opacity 100ms, transform 100ms; }
.adm-tip.on { opacity: 1; transform: none; }
.adm-tip .h { font-weight: 650; color: var(--ms-text); margin-bottom: 4px; white-space: nowrap; }
.adm-tip .r { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 8px; align-items: center; color: var(--ms-text-2); white-space: nowrap; }
.adm-tip .r i { width: 10px; height: 3px; border-radius: 2px; }
.adm-tip .r b { color: var(--ms-text); font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.adm-tip .r.tot { border-top: 1px solid var(--ms-border-strong); margin-top: 4px; padding-top: 4px; }
.adm-tip .f { color: var(--ms-text-3); font-size: 11px; margin-top: 4px; }

/* ==========================================================================
   Scheda cliente 360°
   ========================================================================== */
.adm-ent { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--ms-border-strong); background: radial-gradient(600px 220px at 0% 0%, rgba(0,229,255,.08), transparent 70%), radial-gradient(600px 260px at 100% 0%, rgba(124,77,255,.10), transparent 70%), var(--ms-surface); box-shadow: var(--ms-e2); margin-bottom: 16px; }
.adm-ent-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; padding: 20px 22px 16px; align-items: start; }
.adm-ent h1 { font-size: 26px; line-height: 32px; font-weight: 800; letter-spacing: -0.03em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.adm-ent .facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ms-text-2); margin-top: 6px; }
.adm-ent .facts span { display: inline-flex; align-items: center; gap: 6px; }
.adm-ent .facts svg { width: 14px; height: 14px; color: var(--ms-text-3); }
.adm-ent .ids { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.adm-ent-act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.adm-ent-kpis { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border-top: 1px solid var(--ms-border); }
.adm-ent-kpis > div { padding: 12px 18px; border-left: 1px solid var(--ms-border); min-width: 0; }
.adm-ent-kpis > div:first-child { border-left: 0; }
.adm-ent-kpis .l { font-size: 11.5px; color: var(--ms-text-3); white-space: nowrap; }
.adm-ent-kpis .v { font-size: 19px; line-height: 26px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.adm-ent-kpis .s { font-size: 11px; color: var(--ms-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-tabs { position: sticky; top: var(--adm-topbar-h); z-index: 20; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; background: rgba(11,15,20,.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--ms-border); margin: 0 -32px 18px; padding: 0 32px; }
.adm-tabs::-webkit-scrollbar { display: none; }
.adm-tabs-id { display: none; position: sticky; left: 0; z-index: 2; background: #0C1118; align-items: center; gap: 10px; padding-right: 14px; margin-right: 6px; border-right: 1px solid var(--ms-border); box-shadow: 12px 0 16px -8px #0B0F14; flex: none; font-weight: 700; font-size: 13.5px; white-space: nowrap; animation: adm-fade 200ms both; }
.adm-tabs-id .adm-avatar { width: 26px; height: 26px; font-size: 10px; border-radius: 8px; }
.adm-tabs.stuck .adm-tabs-id { display: inline-flex; }
.adm-tabs.stuck { box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.adm-tab { position: relative; height: 44px; padding: 0 12px; border: 0; background: transparent; color: var(--ms-text-2); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; transition: color var(--ms-dur-fast); }
.adm-tab:hover { color: var(--ms-text); }
.adm-tab[aria-selected="true"] { color: var(--ms-text); }
.adm-tab svg { width: 15px; height: 15px; color: var(--ms-text-3); }
.adm-tab[aria-selected="true"] svg { color: var(--ms-cyan); }
.adm-tab .c { font-size: 10.5px; font-weight: 700; color: var(--ms-text-3); background: #172033; border-radius: 5px; padding: 0 5px; line-height: 16px; }
.adm-tab-ind { position: absolute; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ms-cyan); box-shadow: 0 0 10px rgba(0,229,255,.8); transition: left var(--ms-dur-base) var(--ms-ease-emph), width var(--ms-dur-base) var(--ms-ease-emph); }

.adm-dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 0; font-size: 13px; line-height: 20px; }
.adm-dl dt { color: var(--ms-text-3); padding: 7px 0; border-bottom: 1px solid var(--ms-border); }
.adm-dl dd { margin: 0; padding: 7px 0; border-bottom: 1px solid var(--ms-border); display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.adm-dl dt:last-of-type, .adm-dl dd:last-of-type { border-bottom: 0; }

/* Linea del tempo */
.adm-tl { position: relative; }
.adm-tl-day { display: flex; align-items: baseline; gap: 10px; padding: 12px 0 6px; font-weight: 700; font-size: 13px; }
.adm-tl-day span { font-weight: 500; color: var(--ms-text-3); font-size: 12px; }
.adm-tl-i { display: grid; grid-template-columns: 46px 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 8px; margin: 0 -8px; border-radius: 10px; transition: background 80ms; }
.adm-tl-i:hover { background: rgba(255,255,255,.03); }
.adm-tl-i time { font: 500 11.5px/1 var(--ms-mono); color: var(--ms-text-3); }
.adm-tl-i b { display: block; font-size: 13px; line-height: 18px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-tl-i p { font-size: 12px; line-height: 16px; color: var(--ms-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-tl-i .amt { font-weight: 650; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Stato del sistema */
.adm-status { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(255,82,82,.3); background: radial-gradient(500px 160px at 0% 50%, rgba(255,82,82,.10), transparent 70%), var(--ms-surface); margin-bottom: 16px; }
.adm-status h2 { font-size: 19px; line-height: 26px; font-weight: 750; letter-spacing: -0.02em; }
.adm-sr { display: grid; grid-template-columns: 34px minmax(180px, 1fr) minmax(0, 1.6fr) 180px 120px; gap: 16px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--ms-border); }
.adm-sr:first-child { border-top: 0; }
.adm-sr b { display: block; font-size: 13.5px; line-height: 19px; font-weight: 650; }
.adm-sr .w { font-size: 12px; font-weight: 650; }
.adm-sr p { font-size: 12.5px; line-height: 18px; color: var(--ms-text-2); }
.adm-sr .when { font: 500 11.5px/16px var(--ms-mono); color: var(--ms-text-3); }
.adm-up { display: flex; gap: 1px; height: 26px; align-items: stretch; min-width: 0; overflow: hidden; }
.adm-up i { flex: 1; border-radius: 1px; background: #00C766; opacity: .75; min-width: 1px; transition: opacity 80ms, transform 80ms; }
.adm-up i:hover { opacity: 1; transform: scaleY(1.15); }
.adm-up i.w { background: var(--ms-warning); opacity: .9; } .adm-up i.e { background: var(--ms-danger); opacity: 1; } .adm-up i.n { background: #273148; }

/* Cassetto, dialoghi, palette */
.adm-veil { position: fixed; inset: 0; z-index: 80; background: var(--ms-overlay); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: adm-fade 150ms both; }
.adm-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 85; width: min(500px, 100vw); background: var(--ms-surface-3); border-left: 1px solid var(--ms-border-strong); box-shadow: var(--ms-e3); display: flex; flex-direction: column; animation: adm-drawer 320ms var(--ms-ease-emph) both; }
.adm-drawer-h { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--ms-border-strong); }
.adm-drawer-b { flex: 1; overflow-y: auto; padding: 16px 20px 24px; }
.adm-drawer-f { padding: 12px 20px; border-top: 1px solid var(--ms-border-strong); display: flex; gap: 8px; justify-content: flex-end; }
.adm-dialog { position: fixed; z-index: 86; left: 50%; top: 14vh; transform: translateX(-50%); width: min(560px, calc(100vw - 32px)); background: var(--ms-surface-3); border: 1px solid var(--ms-border-strong); border-radius: 18px; box-shadow: var(--ms-e3); animation: adm-dlg 220ms var(--ms-ease-emph) both; }
.adm-dialog-h { padding: 20px 22px 0; display: flex; gap: 14px; align-items: flex-start; }
.adm-dialog-h h2 { font-size: 17px; line-height: 24px; font-weight: 700; }
.adm-dialog-b { padding: 14px 22px 4px; font-size: 13.5px; color: var(--ms-text-2); }
.adm-dialog-b textarea { width: 100%; min-height: 84px; resize: vertical; border-radius: 10px; border: 1px solid var(--ms-border-input); background: var(--ms-input); color: var(--ms-text); font: 400 13px/20px var(--ms-font); padding: 10px 12px; margin-top: 6px; }
.adm-dialog-f { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 22px 20px; }
.adm-pb { display: grid; grid-template-columns: 1fr 24px 1fr; gap: 10px; align-items: center; margin: 12px 0 6px; }
.adm-pb > div { border-radius: 10px; border: 1px solid var(--ms-border-strong); padding: 10px 12px; font-size: 12.5px; background: #141C2B; }
.adm-pb > div b { display: block; font-size: 16px; color: var(--ms-text); margin-top: 2px; }
.adm-pb svg { width: 18px; height: 18px; color: var(--ms-cyan); }

.adm-pal { position: fixed; z-index: 86; left: 50%; top: 11vh; transform: translateX(-50%); width: min(660px, calc(100vw - 32px)); background: rgba(27,36,54,.98); border: 1px solid var(--ms-border-strong); border-radius: 18px; box-shadow: var(--ms-e3), 0 0 0 1px rgba(0,229,255,.06), 0 0 80px rgba(0,229,255,.06); overflow: hidden; animation: adm-dlg 200ms var(--ms-ease-emph) both; }
.adm-pal-in { display: flex; align-items: center; gap: 12px; padding: 0 18px; height: 60px; border-bottom: 1px solid var(--ms-border-strong); }
.adm-pal-in svg { width: 19px; height: 19px; color: var(--ms-cyan); }
.adm-pal-in input { flex: 1; border: 0; background: transparent; color: var(--ms-text); font: 400 18px var(--ms-font); outline: none; }
.adm-pal-in input:focus, .adm-pal-in input:focus-visible { box-shadow: none; outline: none; }
.adm-pal-in input::placeholder { color: var(--ms-text-3); }
.adm-pal-l { max-height: min(460px, 60vh); overflow-y: auto; padding: 6px 8px 8px; }
.adm-pal-g { font: 700 10px/16px var(--ms-mono); letter-spacing: .14em; color: var(--ms-text-3); padding: 10px 10px 4px; text-transform: uppercase; }
.adm-pal-o { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 7px 10px; border-radius: 10px; cursor: pointer; position: relative; }
.adm-pal-o .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: #141C2B; border: 1px solid var(--ms-border-strong); color: var(--ms-text-2); font-size: 11px; font-weight: 700; }
.adm-pal-o .ic svg { width: 15px; height: 15px; }
.adm-pal-o b { display: block; font-size: 13.5px; line-height: 19px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-pal-o b mark { background: none; color: var(--ms-cyan); }
.adm-pal-o span { display: block; font-size: 12px; line-height: 16px; color: var(--ms-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-pal-o .r { font-size: 11.5px; color: var(--ms-text-3); display: flex; gap: 6px; align-items: center; }
.adm-pal-o[aria-selected="true"] { background: rgba(0,229,255,.09); box-shadow: inset 0 0 0 1px rgba(0,229,255,.22); }
.adm-pal-o[aria-selected="true"] .ic { color: var(--ms-cyan); border-color: rgba(0,229,255,.4); }
.adm-pal-o[aria-selected="true"]::before { content: ''; position: absolute; left: -8px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ms-cyan); }
.adm-pal-f { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--ms-border-strong); font-size: 11.5px; color: var(--ms-text-3); }
.adm-pal-f span { display: inline-flex; gap: 6px; align-items: center; }
.adm-pal-empty { padding: 26px 16px; text-align: center; color: var(--ms-text-3); font-size: 13px; }

.adm-toast { position: fixed; z-index: 95; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--ms-surface-3); border: 1px solid var(--ms-border-strong); box-shadow: var(--ms-e3); font-size: 13px; animation: adm-toast 260ms var(--ms-ease-emph) both; }
.adm-toast svg { width: 16px; height: 16px; color: var(--ms-success); }

/* Stati vuoti e scheletri */
.adm-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 28px 16px; color: var(--ms-text-2); font-size: 13px; }
.adm-empty .adm-ring { width: 42px; height: 42px; }
.adm-empty b { color: var(--ms-text); font-size: 14px; }
.adm-sk { border-radius: 8px; background: linear-gradient(90deg, #141C2B 0%, #1B2538 50%, #141C2B 100%); background-size: 200% 100%; animation: adm-shimmer 1400ms linear infinite; }
.adm-lock { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px dashed rgba(179,136,255,.4); background: rgba(124,77,255,.06); font-size: 13px; color: var(--ms-text-2); }
.adm-lock b { color: var(--ms-text); display: block; }

/* JSON */
.adm-json { font: 500 12px/19px var(--ms-mono); background: #0B111C; border: 1px solid var(--ms-border-strong); border-radius: 12px; padding: 12px 14px; white-space: pre; overflow: auto; color: var(--ms-text-2); }
.adm-json .k { color: #7FDFF0; } .adm-json .s { color: #C7E88A; } .adm-json .n { color: #FFB86B; } .adm-json .m { color: var(--ms-danger); }

/* Ingresso pagina */
.adm-in > * { animation: adm-in 320ms var(--ms-ease-out) both; }
.adm-in > *:nth-child(2) { animation-delay: 40ms; } .adm-in > *:nth-child(3) { animation-delay: 80ms; } .adm-in > *:nth-child(4) { animation-delay: 120ms; }
.adm-in > .adm-bulk { animation: none; }
.adm-in > *:nth-child(5) { animation-delay: 160ms; } .adm-in > *:nth-child(n+6) { animation-delay: 200ms; }
.adm-kpis.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 1700px) { .adm-kpis.k4 { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.adm-kpis > * { animation: adm-in 320ms var(--ms-ease-out) both; }
.adm-kpis > *:nth-child(2) { animation-delay: 40ms; } .adm-kpis > *:nth-child(3) { animation-delay: 80ms; } .adm-kpis > *:nth-child(4) { animation-delay: 120ms; }
.adm-kpis > *:nth-child(5) { animation-delay: 160ms; } .adm-kpis > *:nth-child(n+6) { animation-delay: 200ms; }
.flash td { animation: adm-flash 600ms ease; }

@keyframes adm-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes adm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes adm-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes adm-growx { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes adm-draw { to { stroke-dashoffset: 0; } }
@keyframes adm-pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(0,230,118,.16); } 50% { box-shadow: 0 0 0 6px rgba(0,230,118,.04); } }
@keyframes adm-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(80px, 30px) scale(1.08); } }
@keyframes adm-pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes adm-dlg { from { opacity: 0; transform: translateX(-50%) translateY(8px) scale(.98); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes adm-drawer { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes adm-toast { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes adm-shimmer { to { background-position: -200% 0; } }
@keyframes adm-flash { 0% { background: rgba(0,229,255,.16); } 100% { background: var(--ms-surface); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .adm-aurora { animation: none !important; }
  .adm-chart .ln { stroke-dashoffset: 0; }
}

/* ==========================================================================
   Larghezze
   ========================================================================== */
@media (min-width: 1800px) {
  .adm-content { padding-left: 40px; padding-right: 40px; }
  .adm-hero { margin-left: -40px; margin-right: -40px; padding-left: 40px; padding-right: 40px; }
  .adm-tabs { margin-left: -40px; margin-right: -40px; padding-left: 40px; padding-right: 40px; }
  .g-xl-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1279px) {
  .adm-content { padding: 24px 24px 56px; }
  .adm-top { padding: 0 24px; }
  .adm-hero { grid-template-columns: 1fr; margin: -24px -24px 20px; padding: 26px 24px 4px; }
  .g-73, .g-37, .g-64, .g-3 { grid-template-columns: 1fr; }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-ent-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .adm-sr { grid-template-columns: 34px minmax(0, 1fr) 120px; }
  .adm-sr .adm-up, .adm-sr .hide-md { display: none; }
  .adm-tabs { margin: 0 -24px 18px; padding: 0 24px; }
}
@media (max-width: 1023px) {
  .adm-shell { grid-template-columns: 1fr; }
  .adm-sb { display: none; }
  .adm-sb.open { display: flex; position: fixed; left: 0; top: 0; bottom: 0; width: 248px; box-shadow: var(--ms-e3); z-index: 88; }
  .adm-menu { display: inline-grid !important; }
  .adm-kpis.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-ent-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-2, .g-4 { grid-template-columns: 1fr; }
  .adm-updated .t { display: none; }
}
@media (max-width: 767px) {
  .adm-content { padding: 18px 16px 48px; }
  .adm-top { padding: 0 16px; }
  .adm-hello { font-size: 32px; line-height: 36px; }
  .adm-ent-top { grid-template-columns: 1fr; }
  .adm-ent-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-env { display: none; }
  html[data-mode="demo"] body::after, html[data-mode="emu"] body::after { content: "DATI DI PROVA"; position: fixed; right: 12px; bottom: 12px; z-index: 9999; padding: 6px 10px; border-radius: 999px; font: 700 10px/1 var(--ms-mono); letter-spacing: .1em; color: var(--ms-warning-text); background: rgba(20,14,8,.92); border: 1px solid rgba(255,158,64,.5); pointer-events: none; }
  html[data-mode="emu"] body::after { content: "EMULATORE"; }
}
@media (forced-colors: active) {
  .adm-chart .bar, .adm-share i, .adm-hb-r .tr i { forced-color-adjust: none; }
}
.adm-table th.cb, .adm-table td.cb { position: sticky; left: 0; z-index: 1; width: 36px; min-width: 36px; }
.adm-table th.cb { z-index: 3; }
.adm-table td.cb + td.sticky, .adm-table th.cb + th.sticky { left: 36px; }

/* ---- revisione critica 19/10: sintesi della scheda, KPI a 8, tabelle con bordo sfumato quando scorrono ---- */
.adm-ent-sum { display: flex; gap: 10px; align-items: flex-start; margin: 0 22px 14px; padding: 10px 14px; border-radius: 12px; background: rgba(0,229,255,.05); border: 1px solid rgba(0,229,255,.16); font-size: 13.5px; line-height: 20px; color: var(--ms-text-2); }
.adm-ent-sum svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--ms-cyan); }
.adm-ent-sum b { color: var(--ms-text); font-weight: 650; }
.adm-ent-sum b.ok { color: #3DD68C; } .adm-ent-sum b.bad { color: #FF6B6B; }
.adm-tw.more-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), rgba(0,0,0,.18)); mask-image: linear-gradient(to right, #000 calc(100% - 56px), rgba(0,0,0,.18)); }
.adm-tw.more-l.more-r { -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,.18), #000 56px, #000 calc(100% - 56px), rgba(0,0,0,.18)); mask-image: linear-gradient(to right, rgba(0,0,0,.18), #000 56px, #000 calc(100% - 56px), rgba(0,0,0,.18)); }
.adm-tw.more-l:not(.more-r) { -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,.18), #000 56px); mask-image: linear-gradient(to right, rgba(0,0,0,.18), #000 56px); }
.adm-tw-hint { display: none; }
.adm-card:has(.adm-tw.more-r) .adm-tw-hint, .adm-tw-hint.on { display: inline-flex; }

/* ==========================================================================
   Console v1 (dati veri da adminApi): accesso, stati, sola lettura.
   ========================================================================== */
.adm-gate { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.adm-gate-in { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; max-width: 440px; }
.adm-gate-in h1 { font-size: 22px; line-height: 28px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 0; }
.adm-gate-in p { margin: 0; color: var(--ms-text-2); font-size: 14px; line-height: 21px; }
.adm-gate-bar { width: 160px; height: 3px; border-radius: 3px; background: #1B2538; overflow: hidden; }
.adm-gate-bar i { display: block; width: 40%; height: 100%; background: var(--ms-cyan); border-radius: 3px; animation: adm-gatebar 1.1s ease-in-out infinite; }
@keyframes adm-gatebar { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.adm-note.bad { color: var(--ms-danger); }
.adm-note.bad svg { color: var(--ms-danger); }
.adm-sb-env.ro { border-color: rgba(0,229,255,.28); background: rgba(0,229,255,.05); color: #B7EEF7; }
.adm-sb-env.ro b { color: var(--ms-cyan); }
.adm-kpi-v .adm-tag { vertical-align: middle; font-weight: 600; letter-spacing: 0; }
.adm-audit-line { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(0,229,255,.22); background: rgba(0,229,255,.05); color: #B7EEF7; font-size: 12.5px; line-height: 18px; }
.adm-audit-line svg { width: 14px; height: 14px; flex: none; color: var(--ms-cyan); }
.adm-progress { height: 6px; border-radius: 6px; background: #1B2538; overflow: hidden; }
.adm-progress i { display: block; height: 100%; background: var(--ms-cyan); border-radius: 6px; transition: width 400ms; }
.adm-kgrid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important; }
@media (max-width: 720px) { .adm-kgrid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (prefers-reduced-motion: reduce) { .adm-gate-bar i { animation: none; width: 100%; } }
.adm-chart-tbl { margin-top: 4px; }
@media (max-width: 1279px) { .adm-updated .t { display: none; } .adm-search { width: min(300px, 26vw); } .adm-env .lg { display: none; } }
/* --- critica: piede della barra laterale con email lunga, contatori, conto del cliente --- */
.adm-who b, .adm-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-sb-link .nb { margin-left: auto; display: inline-flex; }
.adm-sb-link .nb:empty { display: none; }
.adm-sb-link .nb .cnt, .adm-sb-link .nb .alert { margin-left: 0; }
.adm-ledger { display: grid; gap: 0; margin-bottom: 14px; }
.adm-ledger > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--ms-border); }
.adm-ledger > div:first-child { border-top: 0; padding-top: 2px; }
.adm-ledger span { font-size: 13px; color: var(--ms-text-2); }
.adm-ledger em { font-style: normal; font: 600 10.5px/16px var(--ms-mono); color: var(--ms-text-3); margin-left: 6px; letter-spacing: .02em; }
.adm-ledger b { font-size: 22px; line-height: 28px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.adm-ledger .tot { border-top: 1px solid var(--ms-border-strong); }
.adm-ledger .tot span { color: var(--ms-text); font-weight: 600; }
.adm-ledger .tot b { font-size: 26px; line-height: 32px; }
