:root {
    color-scheme: light dark;
    --bg: #f5f6fa; --surface: #ffffff; --surface2: #f0f2f7;
    --border: rgba(0,0,0,0.08); --border2: rgba(0,0,0,0.13);
    --text: #111827; --text2: #4b5563; --text3: #9ca3af;
    --accent: #3b82f6; --accent-bg: rgba(59,130,246,0.08); --accent-border: rgba(59,130,246,0.2);
    --green: #10b981; --green-bg: rgba(16,185,129,0.08);
    --red: #ef4444; --red-bg: rgba(239,68,68,0.07);
    --orange: #f59e0b; --orange-bg: rgba(245,158,11,0.08);
    --purple: #8b5cf6; --purple-bg: rgba(139,92,246,0.08);
    --shadow: 0 1px 3px rgba(0,0,0,0.07); --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --bg: #0d0f14; --surface: #1a1e2a; --surface2: #222636;
      --border: rgba(255,255,255,0.07); --border2: rgba(255,255,255,0.12);
      --text: #eef0f6; --text2: #9aa3bc; --text3: #5c6480;
      --accent: #60a5fa; --accent-bg: rgba(96,165,250,0.1); --accent-border: rgba(96,165,250,0.2);
      --green: #34d399; --green-bg: rgba(52,211,153,0.08);
      --red: #f87171; --red-bg: rgba(248,113,113,0.08);
      --orange: #fbbf24; --orange-bg: rgba(251,191,36,0.08);
      --purple: #a78bfa; --purple-bg: rgba(167,139,250,0.08);
      --shadow: 0 1px 3px rgba(0,0,0,0.3); --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
    }
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body { background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, sans-serif; font-size: 14px; line-height: 1.65; max-width: 800px; margin: 0 auto; padding: 48px 24px 80px; }
  .header { text-align: center; margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
  .header-tag { font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: var(--text3); margin-bottom: 12px; }
  .header h1 { font-size: clamp(34px, 7vw, 62px); font-weight: 700; letter-spacing: 2px; line-height: 1; color: var(--text); text-transform: uppercase; }
  .header h1 span { color: var(--accent); }
  .header-sub { margin-top: 10px; color: var(--text3); font-size: 12px; }
  .disclaimer-box { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; margin-bottom: 28px; box-shadow: var(--shadow); }
  .disclaimer-inner { display: flex; gap: 14px; align-items: flex-start; }
  .disclaimer-icon { font-size: 20px; flex-shrink: 0; }
  .disclaimer-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
  .disclaimer-text { font-size: 12px; color: var(--text2); line-height: 1.6; margin-bottom: 10px; }
  .disclaimer-text strong { color: var(--text); }
  .disclaimer-pills { display: flex; flex-wrap: wrap; gap: 6px; }
  .pill { background: var(--surface2); border: 1px solid var(--border); border-radius: 20px; padding: 4px 12px; font-size: 11px; font-weight: 500; color: var(--text2); }
  .nav-tabs { display: flex; gap: 2px; background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 0 0; overflow-x: auto; position: sticky; top: 0; z-index: 200; backdrop-filter: blur(16px); margin: 0 -24px; padding: 8px 24px 0; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
  .nav-tab { font-size: 12px; font-weight: 500; color: var(--text3); padding: 8px 14px; cursor: pointer; border-radius: 9px 9px 0 0; white-space: nowrap; transition: all 0.18s; background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
  .nav-tab:hover { color: var(--text); }
  .nav-tab.active { color: var(--accent); font-weight: 600; border-bottom-color: var(--accent); }
  .tab-section { display: none; }
  .tab-section.active { display: block; animation: fadeIn 0.22s ease; padding-top: 16px; }
  .quick-nav { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px; background: var(--surface2); border-bottom: 1px solid var(--border); position: sticky; top: 49px; z-index: 100; margin: 0 -24px 24px; padding-left: 24px; padding-right: 24px; }
  .qn-btn { font-size: 11px; font-weight: 500; color: var(--accent); background: var(--accent-bg); border: 1px solid var(--accent-border); border-radius: 20px; padding: 5px 13px; cursor: pointer; transition: all 0.15s; white-space: nowrap; }
  .qn-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }
  .section { margin-bottom: 36px; }
  .section-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
  .step-num { font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); background: var(--accent-bg); border: 1px solid var(--accent-border); padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
  .section-title { font-size: 17px; font-weight: 600; color: var(--text); }
  .script-box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 12px; box-shadow: var(--shadow); }
  .script-box-header { background: var(--surface2); border-bottom: 1px solid var(--border); padding: 10px 16px; display: flex; align-items: center; gap: 8px; }
  .script-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
  .script-box-header span { font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--text3); }
  .script-content { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
  .script-line { display: flex; gap: 10px; align-items: flex-start; }
  .script-badge { font-size: 9px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 3px 8px; border-radius: 5px; white-space: nowrap; flex-shrink: 0; margin-top: 2px; }
  .script-badge.audio { color: var(--accent); background: var(--accent-bg); border: 1px solid var(--accent-border); }
  .script-badge.scritto { color: var(--text2); background: var(--surface2); border: 1px solid var(--border); }
  .script-badge.green { color: var(--green); background: var(--green-bg); border: 1px solid rgba(16,185,129,0.2); }
  .script-badge.red { color: var(--red); background: var(--red-bg); border: 1px solid rgba(239,68,68,0.2); }
  .script-badge.gold { color: var(--orange); background: var(--orange-bg); border: 1px solid rgba(245,158,11,0.2); }
  .script-text { font-size: 13px; color: var(--text2); line-height: 1.75; }
  .script-text strong { color: var(--text); font-weight: 600; font-style: normal; }
  .script-divider { height: 1px; background: var(--border); }
  .voice-indicator { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; background: var(--accent-bg); border: 1px solid var(--accent-border); border-radius: 6px; padding: 3px 9px; }
  .voice-indicator span:first-child { font-size: 11px; }
  .voice-indicator span:last-child { font-size: 9px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); }
  .copy-btn { margin-top: 9px; background: var(--accent-bg); border: 1px solid var(--accent-border); border-radius: 6px; color: var(--accent); font-size: 11px; font-weight: 600; padding: 5px 12px; cursor: pointer; display: inline-block; font-family: inherit; transition: all 0.15s; }
  .copy-btn:hover { background: var(--accent); color: white; }
  .copy-disclaimer { font-size: 10px; color: var(--text3); margin-top: 4px; }
  .case-box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 10px; box-shadow: var(--shadow); }
  .case-header { padding: 10px 14px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); }
  .case-header.blue { border-left: 3px solid var(--accent); }
  .case-header.orange { border-left: 3px solid var(--orange); }
  .case-header.red { border-left: 3px solid var(--red); }
  .case-header.green { border-left: 3px solid var(--green); }
  .case-header.purple { border-left: 3px solid var(--purple); }
  .case-title { font-size: 13px; font-weight: 600; color: var(--text); }
  .case-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
  .tip { background: var(--green-bg); border: 1px solid rgba(16,185,129,0.2); border-radius: 10px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
  .tip p { font-size: 12px; color: var(--text2); line-height: 1.6; }
  .tip strong { color: var(--green); }
  .alert { background: var(--red-bg); border: 1px solid rgba(239,68,68,0.2); border-radius: 10px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
  .alert p { font-size: 12px; color: var(--text2); line-height: 1.6; }
  .alert strong { color: var(--red); }
  .alert-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
  .ph { display: inline-block; background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.35); border-radius: 4px; color: var(--orange); font-size: 11px; font-weight: 600; padding: 1px 6px; margin: 0 1px; }
  .divider { height: 1px; background: var(--border); margin: 28px 0; }
  .feed-block { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 18px; box-shadow: var(--shadow); }
  .feed-block-label { padding: 11px 18px; font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--text3); border-bottom: 1px solid var(--border); background: var(--surface2); }
  .feed-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.15s; }
  .feed-row:last-child { border-bottom: none; }
  .feed-row:hover { background: var(--surface2); }
  .feed-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
  .feed-row-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
  .feed-row-sub { font-size: 11px; color: var(--text3); }
  .feed-arrow { color: var(--text3); font-size: 15px; margin-left: auto; flex-shrink: 0; }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
  @media (max-width: 560px) { body { padding: 24px 14px 60px; } .nav-tab { padding: 7px 10px; font-size: 11px; } }