    :root {
      --bg-primary: #ffffff; --bg-secondary: #f8f9fb; --bg-card: #ffffff;
      --bg-hover: #f1f3f7; --border: #e2e5eb; --border-light: #ebeef2;
      --text-primary: #1a1f2e; --text-secondary: #5a6178; --text-muted: #8b90a0;
      --accent: #1a5fb4; --accent-hover: #1752a0; --accent-light: #e8f0fc; --accent-bg: rgba(26,95,180,0.06);
      --danger: #d93025; --danger-bg: rgba(217,48,37,0.08);
      --success: #188038; --success-bg: rgba(24,128,56,0.08);
      --warning: #b05e0a; --warning-bg: rgba(176,94,10,0.08);
      --radius: 10px; --radius-lg: 16px;
      --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
      --shadow-lg: 0 8px 40px rgba(0,0,0,0.15), 0 2px 10px rgba(0,0,0,0.08);
    }
    * { margin:0; padding:0; box-sizing:border-box; }
    body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background:var(--bg-secondary); color:var(--text-primary); min-height:100vh; line-height:1.5; }
    .header { background:#ffffff; border-bottom:1px solid var(--border); padding:14px 28px; display:flex; justify-content:space-between; align-items:center; position:sticky; top:0; z-index:100; box-shadow:0 1px 4px rgba(0,0,0,0.08); }
    .logo { font-size:19px; font-weight:700; color:var(--text-primary); display:flex; align-items:center; gap:12px; }
    .logo-icon { width:38px; height:38px; background:var(--accent); border-radius:10px; display:flex; align-items:center; justify-content:center; color:#fff; font-size:16px; font-weight:800; }
    .header-info { font-size:12px; color:var(--text-muted); }
    .nav { display:flex; background:#ffffff; border-bottom:1px solid var(--border); padding:0 28px; gap:0; overflow:visible; }
    .nav-btn { padding:13px 22px; background:none; border:none; color:var(--text-secondary); cursor:pointer; font-size:13px; font-weight:500; border-bottom:2px solid transparent; transition:0.2s; white-space:nowrap; }
    .nav-btn:hover { color:var(--text-primary); background:var(--bg-hover); border-bottom:2px solid rgba(26,95,180,0.3); }
    .nav-btn.active { color:var(--accent); border-bottom:3px solid var(--accent); font-weight:600; }
    .main { max-width:1200px; margin:0 auto; padding:24px; }
    .toolbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; flex-wrap:wrap; gap:12px; }
    .toolbar h2 { font-size:18px; font-weight:600; }
    .search-box { padding:12px 16px; height:48px; background:#fff; border:1px solid var(--border); border-radius:var(--radius); color:var(--text-primary); font-size:14px; width:260px; outline:none; transition:0.2s; }
    .search-box:focus { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-light); }
    .search-box::placeholder { color:var(--text-muted); }
    .btn { padding:8px 16px; border-radius:var(--radius); border:none; cursor:pointer; font-size:13px; font-weight:500; transition:all 0.2s ease; }
    .btn-primary { background:linear-gradient(135deg, #1a5fb4, #3584e4); color:#fff; box-shadow:0 2px 8px rgba(26,95,180,0.25); }
    .btn-primary:hover { box-shadow:0 4px 16px rgba(26,95,180,0.4); transform:translateY(-1px); background:linear-gradient(135deg, #1752a0, #2f78d4); }
    .btn-danger { background:var(--danger-bg); color:var(--danger); transition:all 0.2s ease; }
    .btn-danger:hover { background:var(--danger); color:#fff; transform:translateY(-1px); }
    .btn-success { background:var(--success-bg); color:var(--success); transition:all 0.2s ease; }
    .btn-success:hover { background:var(--success); color:#fff; transform:translateY(-1px); }
    .btn-sm { padding:5px 10px; font-size:12px; }
    .btn-ghost { background:transparent; color:var(--text-secondary); border:1px solid var(--border); transition:all 0.2s ease; }
    .btn-ghost:hover { background:var(--bg-hover); color:var(--text-primary); transform:translateY(-1px); }
    table { width:100%; border-collapse:collapse; }
    thead th { text-align:left; padding:11px 14px; font-size:11px; text-transform:uppercase; letter-spacing:0.6px; color:var(--text-muted); border-bottom:2px solid var(--border); font-weight:600; background:#f8f9fb; }
    tbody td { padding:11px 14px; font-size:13px; border-bottom:1px solid var(--border-light); vertical-align:middle; }
    tbody tr:hover { background:var(--bg-hover); }
    .badge { padding:3px 10px; border-radius:20px; font-size:11px; font-weight:600; display:inline-block; }
    .badge-success { background:var(--success-bg); color:var(--success); }
    .badge-warning { background:var(--warning-bg); color:var(--warning); }
    .badge-danger { background:var(--danger-bg); color:var(--danger); }
    .badge-info { background:var(--accent-bg); color:var(--accent); }
    .card { background:var(--bg-card); border:1px solid var(--border); border-radius:12px; padding:0; margin-bottom:16px; box-shadow:0 2px 8px rgba(0,0,0,0.06); overflow-x:auto; transition:box-shadow 0.2s; }
    .card:hover { box-shadow:0 4px 16px rgba(0,0,0,0.1); }
    .stats { display:grid; grid-template-columns:repeat(5, 1fr); gap:16px; margin-bottom:24px; }
    .stat-card { background:#fff; border:1px solid var(--border); border-radius:12px; padding:18px 20px; box-shadow:0 2px 8px rgba(0,0,0,0.06); transition:all 0.25s ease; display:flex; align-items:center; gap:14px; min-height:80px; }
    .stat-card:hover { box-shadow:0 6px 20px rgba(0,0,0,0.1); transform:translateY(-2px); }
    .stat-icon { width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:20px; flex-shrink:0; }
    .stat-content { flex:1; min-width:0; }
    .stat-label { font-size:11px; text-transform:uppercase; letter-spacing:0.6px; color:var(--text-muted); margin-bottom:4px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .stat-value { font-size:26px; font-weight:700; letter-spacing:-0.5px; }
    .dash-section { background:#fff; border:1px solid var(--border); border-radius:12px; padding:20px; box-shadow:0 2px 8px rgba(0,0,0,0.06); transition:box-shadow 0.2s; }
    .dash-section:hover { box-shadow:0 4px 16px rgba(0,0,0,0.1); }
    .dash-section-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
    .dash-section-header h3 { font-size:15px; font-weight:600; display:flex; align-items:center; gap:8px; }
    .dash-section-header .dash-count { font-size:11px; background:var(--accent-bg); color:var(--accent); padding:2px 8px; border-radius:20px; font-weight:600; }
    .dash-section-header a { font-size:12px; color:var(--accent); text-decoration:none; font-weight:600; }
    .dash-section-header a:hover { text-decoration:underline; }
    .dash-row { display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:1px solid var(--border-light); transition:background 0.15s; }
    .dash-row:last-child { border-bottom:none; }
    .dash-row:hover { background:var(--bg-hover); margin:0 -12px; padding:10px 12px; border-radius:8px; }
    .dash-empty { text-align:center; padding:24px 16px; color:var(--text-muted); font-size:13px; }
    .dash-empty-icon { font-size:28px; margin-bottom:8px; display:block; }
    @keyframes dashFadeUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
    .dash-animate { animation:dashFadeUp 0.4s ease both; }
    .dash-animate-1 { animation-delay:0.05s; }
    .dash-animate-2 { animation-delay:0.1s; }
    .dash-animate-3 { animation-delay:0.15s; }
    .dash-animate-4 { animation-delay:0.2s; }
    .dash-animate-5 { animation-delay:0.25s; }
    @keyframes sectionFadeIn { from { opacity:0; } to { opacity:1; } }
    .scad-badge { padding:3px 10px; border-radius:20px; font-size:11px; font-weight:600; display:inline-block; }
    .scad-green { background:rgba(24,128,56,0.08); color:#188038; }
    .scad-yellow { background:rgba(176,94,10,0.08); color:#b05e0a; }
    .scad-red { background:rgba(217,48,37,0.08); color:#d93025; }
    .verifica-star { font-size:14px; cursor:help; }
    .analisi-panel { background:var(--bg-secondary); border:1px solid var(--border); border-radius:12px; padding:20px; margin-top:16px; }
    .analisi-badge-level { display:inline-flex; align-items:center; gap:4px; padding:4px 12px; border-radius:20px; font-size:11px; font-weight:600; }
    .analisi-badge-ocr { background:rgba(90,97,120,0.1); color:var(--text-secondary); }
    .analisi-badge-ai { background:rgba(26,95,180,0.1); color:var(--accent); }
    .analisi-score { display:inline-flex; align-items:center; justify-content:center; width:52px; height:52px; border-radius:50%; font-size:18px; font-weight:800; border:3px solid; }
    .analisi-score-green { color:var(--success); border-color:var(--success); background:rgba(24,128,56,0.06); }
    .analisi-score-yellow { color:var(--warning); border-color:var(--warning); background:rgba(176,94,10,0.06); }
    .analisi-score-red { color:var(--danger); border-color:var(--danger); background:rgba(217,48,37,0.06); }
    .analisi-campo { display:flex; align-items:flex-start; gap:8px; padding:6px 0; font-size:13px; border-bottom:1px solid var(--border-light); }
    .analisi-campo:last-child { border-bottom:none; }
    .analisi-campo-icon { font-size:14px; flex-shrink:0; margin-top:1px; }
    .analisi-anomalia { padding:8px 12px; border-radius:8px; font-size:12px; margin-bottom:6px; }
    .analisi-anomalia-critica { background:var(--danger-bg); border-left:3px solid var(--danger); }
    .analisi-anomalia-importante { background:var(--warning-bg); border-left:3px solid var(--warning); }
    .analisi-anomalia-minore { background:var(--accent-light); border-left:3px solid var(--accent); }
    .modal-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.35); z-index:200; align-items:center; justify-content:center; backdrop-filter:blur(2px); }
    .modal-overlay.active { display:flex; animation:overlayFadeIn 0.2s ease both; }
    @keyframes overlayFadeIn { from { opacity:0; } to { opacity:1; } }
    @keyframes modalScaleIn { from { opacity:0; transform:scale(0.95) translateY(10px); } to { opacity:1; transform:scale(1) translateY(0); } }
    .modal { background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg); padding:28px; width:90%; max-width:560px; max-height:85vh; overflow-y:auto; box-shadow:var(--shadow-lg); animation:modalScaleIn 0.2s ease-out both; }
    .modal h3 { margin-bottom:20px; font-size:17px; font-weight:600; }
    .form-group { margin-bottom:16px; }
    .form-group label { display:block; font-size:12px; color:var(--text-secondary); margin-bottom:5px; font-weight:600; }
    .form-group input, .form-group select, .form-group textarea { width:100%; padding:12px 16px; height:44px; background:#fff; border:1px solid var(--border); border-radius:10px; color:var(--text-primary); font-size:14px; outline:none; transition:0.2s; }
    .form-group textarea { height:auto; }
    .form-group select { cursor:pointer; }
    .form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(26,95,180,0.15); }
    .form-group textarea { min-height:60px; resize:vertical; padding:12px 16px; }
    .form-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
    .form-actions { display:flex; gap:10px; justify-content:flex-end; margin-top:24px; padding-top:16px; border-top:1px solid var(--border-light); }
    .empty { text-align:center; padding:48px; color:var(--text-muted); }
    .section { display:none; }
    .section.active { display:block; animation:sectionFadeIn 0.25s ease both; }
    #toast-container { position:fixed; top:16px; right:16px; z-index:300; }
    .toast { padding:12px 18px; border-radius:var(--radius); margin-bottom:8px; font-size:13px; font-weight:500; animation:slideIn 0.3s; box-shadow:var(--shadow-lg); }
    .toast.success { background:#f0faf3; color:var(--success); border:1px solid rgba(24,128,56,0.2); }
    .toast.error { background:#fef2f1; color:var(--danger); border:1px solid rgba(217,48,37,0.2); }
    .toast.info { background:var(--accent-light); color:var(--accent); border:1px solid rgba(26,95,180,0.2); }
    @keyframes slideIn { from { transform:translateX(100%); opacity:0; } to { transform:translateX(0); opacity:1; } }
    .priority-high { border-left:3px solid var(--danger); }
    .row-done { opacity:0.45; }
    .actions { display:flex; gap:6px; }
    /* RESPONSIVE */
    @media(max-width:768px) {
      .form-row { grid-template-columns:1fr !important; }
      .toolbar { flex-direction:column; align-items:stretch; }
      .toolbar h2 { margin-bottom:8px; }
      .search-box { width:100% !important; }
      .header { padding:10px 12px; flex-wrap:wrap; gap:8px; }
      .logo { font-size:16px; gap:8px; }
      .logo-icon { width:32px; height:32px; font-size:14px; }
      .logo>div>span { display:none; }
      .user-bar { font-size:11px; gap:6px; flex-wrap:wrap; }
      .user-bar .ruolo-badge { font-size:9px; padding:1px 6px; }
      .nav { padding:0 8px; -webkit-overflow-scrolling:touch; }
      .nav-btn { padding:10px 14px; font-size:12px; }
      .main { padding:12px; }
      .stats { grid-template-columns:1fr 1fr !important; gap:8px !important; }
      .stat-card { padding:12px 14px; gap:10px; }
      .stat-icon { width:36px; height:36px; font-size:16px; border-radius:10px; }
      .stat-value { font-size:20px; }
      .stat-label { font-size:10px; }
      .card { border-radius:var(--radius-lg); overflow-x:auto; }
      table { min-width:600px; }
      thead th { padding:8px 10px; font-size:10px; }
      tbody td { padding:8px 10px; font-size:12px; }
      .btn { padding:7px 12px; font-size:12px; }
      .btn-sm { padding:4px 8px; font-size:11px; }
      .actions { gap:4px; }
      .modal { padding:20px; width:95%; max-height:90vh; }
      .modal h3 { font-size:15px; margin-bottom:14px; }
      .form-group label { font-size:11px; }
      .form-group input, .form-group select, .form-group textarea { font-size:14px; }
      .form-actions { flex-wrap:wrap; }
      .login-box { padding:28px 24px; width:95%; }
      .login-box h2 { font-size:22px; }
      .login-lang-select { top:12px; right:12px; }
      .login-footer { font-size:10px; padding:0 16px; }
      .tooltip-box { width:260px; right:-20px; }
      .empty { padding:24px; font-size:13px; }
      #cruscotto-grid { grid-template-columns:1fr !important; }
      .doc-tab { padding:8px 12px; font-size:12px; }
      .live-header { flex-direction:column; gap:8px; align-items:flex-start; }
      .live-steps { flex-wrap:wrap; }
      .live-step { padding:6px 12px; font-size:12px; }
      .live-body { padding:12px; }
      .live-vote-row { flex-direction:column; align-items:flex-start; gap:6px; padding:12px 8px; }
      .vote-btn { padding:8px 16px; }
    }
    @media(max-width:480px) {
      .stats { grid-template-columns:1fr !important; }
      table { min-width:500px; }
      .nav-btn { padding:8px 10px; font-size:11px; }
      .header { position:relative; }
      .login-box .form-row { grid-template-columns:1fr; }
      #piano-cards-grid { grid-template-columns:1fr !important; }
    }
    @media(max-width:768px) {
      #piano-cards-grid { grid-template-columns:1fr 1fr !important; }
      #piano-usage-bars { grid-template-columns:1fr !important; }
    }
    .login-page { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:100vh; gap:20px; background:linear-gradient(135deg, #0f1729 0%, #1a2744 50%, #1e3a5f 100%); position:relative; overflow:hidden; }
    .login-page::before { content:''; position:absolute; inset:0; background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); z-index:0; }
    .login-page .login-box { position:relative; z-index:1; }
    .login-box { background:#fff; padding:44px 40px; border-radius:var(--radius-lg); box-shadow:0 8px 40px rgba(0,0,0,0.25), 0 2px 10px rgba(0,0,0,0.1); width:420px; max-width:92%; animation:loginAppear 0.6s cubic-bezier(0.16,1,0.3,1) both; }
    @keyframes loginAppear { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
    .login-box h2 { text-align:center; margin-bottom:6px; font-size:26px; font-weight:800; color:var(--text-primary); letter-spacing:-0.3px; }
    .login-box .subtitle { text-align:center; color:var(--text-muted); font-size:14px; margin-bottom:28px; letter-spacing:2px; text-transform:uppercase; font-weight:500; }
    .login-box .form-group { margin-bottom:16px; }
    .login-box .form-group .input-icon-wrap { position:relative; }
    .login-box .form-group .input-icon-wrap input { padding-left:42px; }
    .login-box .form-group .input-icon-wrap .input-icon { position:absolute; left:14px; top:50%; transform:translateY(-50%); color:var(--text-muted); pointer-events:none; }
    .login-box .form-group .input-icon-wrap .input-icon svg { width:16px; height:16px; display:block; }
    .login-box .btn-primary { width:100%; padding:13px; font-size:15px; font-weight:600; }
    .login-error { color:var(--danger); font-size:12px; text-align:center; margin-top:12px; display:none; }
    .login-logo-icon { width:64px; height:64px; background:linear-gradient(135deg, #1a5fb4, #3584e4); border-radius:16px; display:flex; align-items:center; justify-content:center; color:#fff; font-size:28px; font-weight:800; margin:0 auto 18px; box-shadow:0 4px 20px rgba(26,95,180,0.35); }
    .login-lang-select { position:absolute; top:16px; right:16px; padding:4px 8px; border:1px solid var(--border-light); border-radius:6px; font-size:11px; color:var(--text-muted); background:#fff; cursor:pointer; opacity:0.7; transition:opacity 0.2s; }
    .login-lang-select:hover { opacity:1; }
    .login-footer { text-align:center; margin-top:24px; font-size:11px; color:rgba(255,255,255,0.4); position:relative; z-index:1; }
    .pw-strength-bar { height:4px; background:var(--border-light); border-radius:2px; margin-top:6px; overflow:hidden; }
    .pw-strength-fill { height:100%; border-radius:2px; transition:width 0.3s, background 0.3s; width:0%; }
    .pw-strength-label { font-size:11px; margin-top:3px; min-height:16px; }
    .confirm-banner { background:var(--warning-bg); border:1px solid rgba(176,94,10,0.2); border-radius:var(--radius-lg); padding:16px 20px; margin-bottom:20px; }
    .confirm-banner strong { color:var(--warning); }
    .user-bar { display:flex; align-items:center; gap:12px; font-size:12px; color:var(--text-muted); }
    .user-bar .ruolo-badge { font-size:10px; padding:2px 8px; }
    .scadenza-alert { color:var(--danger); font-weight:600; }
    .scadenza-warning { color:var(--warning); font-weight:600; }
    .hidden { display:none !important; }
    .live-panel { display:none; position:fixed; inset:0; background:var(--bg-secondary); z-index:500; overflow-y:auto; }
    .live-panel.active { display:block; }
    .live-header { background:#fff; border-bottom:2px solid var(--accent); padding:12px 24px; display:flex; justify-content:space-between; align-items:center; position:sticky; top:0; z-index:10; }
    .live-header h2 { font-size:16px; }
    .live-steps { display:flex; gap:0; margin:0; }
    .live-step { padding:8px 20px; font-size:13px; font-weight:500; color:var(--text-muted); border-bottom:3px solid transparent; cursor:pointer; }
    .live-step.active { color:var(--accent); border-bottom-color:var(--accent); font-weight:700; }
    .live-step.done { color:var(--success); }
    .live-body { max-width:1000px; margin:0 auto; padding:24px; }
    .live-quorum { padding:16px 20px; border-radius:var(--radius-lg); margin-bottom:20px; font-size:14px; }
    .live-quorum.ok { background:var(--success-bg); border:1px solid rgba(24,128,56,0.2); }
    .live-quorum.no { background:var(--danger-bg); border:1px solid rgba(217,48,37,0.2); }
    .live-vote-row { display:flex; justify-content:space-between; align-items:center; padding:10px 12px; border-bottom:1px solid var(--border-light); }
    .live-vote-row:hover { background:var(--bg-hover); }
    .vote-btn { padding:6px 14px; border:1px solid var(--border); border-radius:var(--radius); background:#fff; cursor:pointer; font-size:12px; font-weight:600; transition:all 0.2s ease; }
    .vote-btn.sel-fav { background:var(--success); color:#fff; border-color:var(--success); }
    .vote-btn.sel-con { background:var(--danger); color:#fff; border-color:var(--danger); }
    .vote-btn.sel-ast { background:var(--warning-bg); color:var(--warning); border-color:var(--warning); }
    .ocr-progress { width:100%; height:4px; background:var(--border-light); border-radius:2px; margin-top:6px; overflow:hidden; }
    .ocr-progress-bar { height:100%; background:var(--accent); border-radius:2px; transition:width 0.3s; width:0%; }
    .ocr-tag { display:inline-block; padding:2px 8px; background:var(--accent-light); color:var(--accent); border-radius:4px; font-size:11px; margin:2px; cursor:pointer; }
    .ocr-tag:hover { background:var(--accent); color:#fff; }
    .doc-tab { padding:10px 18px; background:none; border:none; color:var(--text-secondary); cursor:pointer; font-size:13px; font-weight:500; border-bottom:2px solid transparent; margin-bottom:-2px; transition:0.2s; white-space:nowrap; }
    .doc-tab:hover { color:var(--text-primary); background:var(--bg-hover); }
    .doc-tab.active { color:var(--accent); border-bottom-color:var(--accent); font-weight:600; }
    /* NAV DROPDOWN */
    .nav-dropdown { position:relative; }
    .nav-dropdown-btn { padding:13px 22px; background:none; border:none; color:var(--text-secondary); cursor:pointer; font-size:13px; font-weight:500; border-bottom:2px solid transparent; transition:0.2s; white-space:nowrap; display:flex; align-items:center; gap:5px; }
    .nav-dropdown-btn:hover { color:var(--text-primary); background:var(--bg-hover); border-bottom:2px solid rgba(26,95,180,0.3); }
    .nav-dropdown-btn.active { color:var(--accent); border-bottom:3px solid var(--accent); font-weight:600; }
    .nav-dropdown-btn svg { width:12px; height:12px; transition:transform 0.2s; }
    .nav-dropdown.open .nav-dropdown-btn svg { transform:rotate(180deg); }
    .nav-dropdown-menu { display:none; position:absolute; top:100%; left:0; background:#fff; border:1px solid var(--border); border-radius:0 0 var(--radius-lg) var(--radius-lg); box-shadow:var(--shadow-lg); min-width:200px; z-index:120; padding:4px 0; }
    .nav-dropdown.open .nav-dropdown-menu { display:block; }
    .nav-dropdown-menu button { display:block; width:100%; text-align:left; padding:10px 18px; background:none; border:none; color:var(--text-secondary); cursor:pointer; font-size:13px; font-weight:500; transition:0.15s; }
    .nav-dropdown-menu button:hover { background:var(--bg-hover); color:var(--text-primary); }
    .nav-dropdown-menu button.active { color:var(--accent); font-weight:600; }
    /* HAMBURGER */
    .hamburger { display:none; background:none; border:none; cursor:pointer; padding:8px; color:var(--text-primary); }
    .hamburger svg { width:24px; height:24px; }
    @media(max-width:768px) {
      .hamburger { display:block; }
      .nav { display:none; flex-direction:column; padding:0; gap:0; position:absolute; top:100%; left:0; right:0; background:#fff; border-bottom:1px solid var(--border); box-shadow:var(--shadow-lg); z-index:110; max-height:80vh; overflow-y:auto; }
      .nav.open { display:flex; }
      .nav-btn, .nav-dropdown-btn { padding:12px 20px; border-bottom:none; border-left:3px solid transparent; }
      .nav-btn.active, .nav-dropdown-btn.active { border-bottom:none; border-left-color:var(--accent); }
      .nav-dropdown { width:100%; }
      .nav-dropdown-menu { position:static; box-shadow:none; border:none; border-radius:0; background:var(--bg-secondary); }
      .nav-dropdown-menu button { padding-left:36px; }
    }
    @media(max-width:1024px) { #cruscotto-grid,#cruscotto-grid2{grid-template-columns:1fr!important} }
    @media(max-width:768px) { #cruscotto-grid,#cruscotto-grid2{grid-template-columns:1fr!important} }
    .cruscotto-row { display:flex; justify-content:space-between; align-items:center; padding:8px 0; border-bottom:1px solid var(--border-light); font-size:13px; }
    .cruscotto-row:last-child { border-bottom:none; }
    .cruscotto-count { font-weight:700; font-size:15px; }
    .cruscotto-bar { height:6px; background:var(--border-light); border-radius:3px; margin-top:4px; overflow:hidden; }
    .cruscotto-bar-fill { height:100%; border-radius:3px; }
    .tooltip-wrap { position:relative; display:inline-block; }
    .tooltip-box { display:none; position:absolute; bottom:calc(100% + 10px); right:0; width:340px; background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg); padding:16px 18px; box-shadow:var(--shadow-lg); z-index:150; font-size:12px; line-height:1.6; color:var(--text-secondary); }
    .tooltip-box::after { content:''; position:absolute; top:100%; right:20px; border:7px solid transparent; border-top-color:#fff; }
    .tooltip-box::before { content:''; position:absolute; top:100%; right:19px; border:8px solid transparent; border-top-color:var(--border); }
    .tooltip-wrap:hover .tooltip-box { display:block; }
    .tooltip-box h4 { font-size:13px; color:var(--text-primary); margin-bottom:8px; }
    .tooltip-box ul { margin:0; padding-left:16px; }
    .tooltip-box li { margin-bottom:4px; }
    .tooltip-box .tip-section { margin-top:10px; padding-top:8px; border-top:1px solid var(--border-light); }
    /* OAUTH BUTTONS */
    .oauth-divider { display:flex; align-items:center; gap:12px; margin:22px 0 18px; color:var(--text-muted); font-size:12px; font-weight:500; }
    .oauth-divider::before, .oauth-divider::after { content:''; flex:1; height:1px; background:linear-gradient(90deg, transparent, var(--border), transparent); }
    .oauth-btn { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; padding:12px 16px; border-radius:10px; font-size:14px; font-weight:500; cursor:pointer; transition:all 0.25s ease; border:1px solid; text-decoration:none; }
    .oauth-btn-google { background:#fff; color:#1f1f1f; border-color:#dadce0; }
    .oauth-btn-google:hover { background:#f7f8f8; box-shadow:0 2px 8px rgba(0,0,0,0.12); transform:translateY(-1px); }
    .oauth-btn-google svg { width:18px; height:18px; }
