
  @import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');
  :root {
    --black: #0A0A0A; --surface: #111111; --panel: #181818; --border: #252525;
    --gold: #C8972A; --gold-light: #E8B84B; --gold-dim: rgba(200,151,42,0.15);
    --red: #C0392B; --green: #27AE60; --text: #E8E8E8; --muted: #888; --dim: #555;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { background: var(--black); color: var(--text); font-family: 'Inter', sans-serif; min-height: 100vh; }
  .header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 0 24px; display: flex; align-items: center; gap: 16px; height: 60px; position: sticky; top: 0; z-index: 100; }
  .header-logo { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 2px; color: var(--gold); }
  .header-sub { font-size: 11px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
  .header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
  .progress-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
  .progress-bar-wrap { width: 120px; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
  .progress-bar-fill { height: 100%; background: var(--gold); border-radius: 2px; transition: width 0.4s ease; }
  .layout { display: flex; min-height: calc(100vh - 60px); }
  .sidebar { width: 230px; background: var(--surface); border-right: 1px solid var(--border); padding: 20px 0; flex-shrink: 0; position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; }
  .sidebar-section { padding: 0 16px 8px; font-size: 10px; color: var(--dim); letter-spacing: 1.5px; text-transform: uppercase; margin-top: 16px; }
  .nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 16px; cursor: pointer; font-size: 13px; color: var(--muted); border-left: 2px solid transparent; transition: all 0.15s; }
  .nav-item:hover { background: var(--panel); color: var(--text); }
  .nav-item.active { background: var(--gold-dim); color: var(--gold-light); border-left-color: var(--gold); }
  .nav-item.completed .nav-check { color: var(--green); }
  .nav-day { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--dim); min-width: 28px; }
  .nav-item.active .nav-day { color: var(--gold); }
  .nav-check { font-size: 12px; margin-left: auto; }
  .main { flex: 1; padding: 32px; max-width: 940px; }
  .module { display: none; }
  .module.active { display: block; }
  .module-header { margin-bottom: 32px; }
  .module-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
  .module-title { font-family: 'Bebas Neue', sans-serif; font-size: 48px; letter-spacing: 2px; line-height: 1; color: var(--text); margin-bottom: 12px; }
  .module-subtitle { font-size: 15px; color: var(--muted); line-height: 1.6; max-width: 640px; }
  .card { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 24px; margin-bottom: 20px; }
  .card-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gold-light); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
  .card-title .icon { font-size: 16px; }
  .concept-list { list-style: none; }
  .concept-list li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; line-height: 1.6; color: var(--text); display: flex; gap: 10px; align-items: flex-start; }
  .concept-list li:last-child { border-bottom: none; }
  .concept-bullet { color: var(--gold); font-size: 18px; line-height: 1.2; flex-shrink: 0; }
  .obj-table { width: 100%; border-collapse: collapse; }
  .obj-table th { text-align: left; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; padding: 8px 12px; border-bottom: 1px solid var(--border); }
  .obj-table td { padding: 14px 12px; font-size: 13px; border-bottom: 1px solid #1e1e1e; vertical-align: top; line-height: 1.5; }
  .obj-table tr:last-child td { border-bottom: none; }
  .obj-table td:first-child { color: var(--red); font-weight: 600; }
  .obj-table td:last-child { color: #aaa; }
  .roleplay-container { background: #0d0d0d; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
  .roleplay-top { background: var(--panel); padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
  .roleplay-mode { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
  .scenario-badge { background: var(--gold-dim); border: 1px solid var(--gold); color: var(--gold-light); font-size: 11px; padding: 3px 10px; border-radius: 20px; font-weight: 600; }
  .chat-area { padding: 20px; min-height: 280px; max-height: 400px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
  .msg { display: flex; gap: 10px; align-items: flex-start; max-width: 85%; }
  .msg.merchant { align-self: flex-start; }
  .msg.rep { align-self: flex-end; flex-direction: row-reverse; }
  .msg-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
  .merchant .msg-avatar { background: #1a1a2e; border: 1px solid #333; }
  .rep .msg-avatar { background: var(--gold-dim); border: 1px solid var(--gold); }
  .msg-bubble { padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5; }
  .merchant .msg-bubble { background: var(--panel); border: 1px solid var(--border); color: var(--text); border-top-left-radius: 4px; }
  .rep .msg-bubble { background: var(--gold-dim); border: 1px solid var(--gold); color: var(--gold-light); border-top-right-radius: 4px; }
  .msg-label { font-size: 10px; color: var(--dim); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 1px; }
  .rep .msg-label { text-align: right; }
  .chat-input-area { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; align-items: flex-start; }
  .chat-input { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-family: 'Inter', sans-serif; font-size: 13px; padding: 10px 14px; resize: none; min-height: 44px; max-height: 120px; outline: none; transition: border-color 0.15s; }
  .chat-input:focus { border-color: var(--gold); }
  .chat-input::placeholder { color: var(--dim); }
  .btn { padding: 10px 18px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; transition: all 0.15s; font-family: 'Inter', sans-serif; }
  .btn-gold { background: var(--gold); color: #000; }
  .btn-gold:hover { background: var(--gold-light); }
  .btn-gold:disabled { opacity: 0.4; cursor: not-allowed; }
  .btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
  .btn-ghost:hover { color: var(--text); border-color: var(--muted); }
  .scenario-selector { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
  .scenario-btn { padding: 6px 14px; border-radius: 20px; font-size: 12px; cursor: pointer; border: 1px solid var(--border); background: var(--panel); color: var(--muted); transition: all 0.15s; font-family: 'Inter', sans-serif; }
  .scenario-btn:hover, .scenario-btn.active { border-color: var(--gold); color: var(--gold-light); background: var(--gold-dim); }
  .feedback-box { background: #0a1a0a; border: 1px solid var(--green); border-radius: 8px; padding: 16px 20px; margin-top: 12px; display: none; }
  .feedback-box.show { display: block; }
  .feedback-box.warn { background: #1a0a0a; border-color: var(--red); }
  .feedback-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--green); margin-bottom: 8px; }
  .feedback-box.warn .feedback-title { color: var(--red); }
  .feedback-text { font-size: 13px; color: #aaa; line-height: 1.6; }
  .quiz-q { margin-bottom: 24px; }
  .quiz-question { font-size: 15px; font-weight: 600; margin-bottom: 12px; line-height: 1.5; }
  .quiz-options { display: flex; flex-direction: column; gap: 8px; }
  .quiz-option { padding: 12px 16px; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; font-size: 13px; transition: all 0.15s; background: var(--panel); }
  .quiz-option:hover { border-color: var(--gold); color: var(--gold-light); }
  .quiz-option.correct { border-color: var(--green); background: #0a1a0a; color: #7dce9c; }
  .quiz-option.wrong { border-color: var(--red); background: #1a0a0a; color: #e07070; }
  .quiz-option.disabled { cursor: default; }
  .checklist { list-style: none; }
  .checklist li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; line-height: 1.5; cursor: pointer; }
  .checklist li:last-child { border-bottom: none; }
  .check-box { width: 18px; height: 18px; border: 2px solid var(--border); border-radius: 4px; flex-shrink: 0; margin-top: 2px; display: flex; align-items: center; justify-content: center; transition: all 0.15s; font-size: 11px; color: var(--green); }
  .checklist li.done .check-box { background: var(--green); border-color: var(--green); color: #000; }
  .checklist li.done span { color: var(--dim); text-decoration: line-through; }
  .stats-row { display: flex; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
  .stat-box { flex: 1; min-width: 80px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 16px; text-align: center; }
  .stat-number { font-family: 'Bebas Neue', sans-serif; font-size: 32px; color: var(--gold); letter-spacing: 1px; }
  .stat-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
  .formula { background: #0d0d0d; border: 1px solid var(--gold-dim); border-left: 3px solid var(--gold); padding: 16px 20px; border-radius: 0 8px 8px 0; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--gold-light); margin: 12px 0; line-height: 1.8; }
  .loading-dots { display: inline-flex; gap: 4px; align-items: center; padding: 8px 4px; }
  .loading-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: dot-pulse 1.2s ease-in-out infinite; }
  .loading-dots span:nth-child(2) { animation-delay: 0.2s; }
  .loading-dots span:nth-child(3) { animation-delay: 0.4s; }
  @keyframes dot-pulse { 0%,80%,100%{opacity:0.2;transform:scale(0.8)}40%{opacity:1;transform:scale(1)} }
  .day-complete-banner { background: linear-gradient(135deg,#0a1a0a,#0d200d); border: 1px solid var(--green); border-radius: 8px; padding: 20px 24px; text-align: center; margin-top: 24px; display: none; }
  .day-complete-banner.show { display: block; }
  .day-complete-banner h3 { font-family: 'Bebas Neue', sans-serif; font-size: 28px; color: var(--green); letter-spacing: 2px; margin-bottom: 8px; }
  .day-complete-banner p { font-size: 13px; color: var(--muted); }
  .tab-nav { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 24px; gap: 0; flex-wrap: wrap; }
  .tab-btn { padding: 10px 18px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; border: none; background: transparent; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-family: 'Inter', sans-serif; transition: all 0.15s; }
  .tab-btn:hover { color: var(--text); }
  .tab-btn.active { color: var(--gold-light); border-bottom-color: var(--gold); }
  .tab-content { display: none; }
  .tab-content.active { display: block; }
  .tip-box { background: #0d1520; border: 1px solid #1a3a5c; border-left: 3px solid #4a9ede; padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 12px 0; }
  .tip-box p { font-size: 13px; color: #8ab4d4; line-height: 1.6; }
  .tip-box strong { color: #6fc3f0; }
  /* SCRIPT CARDS */
  .script-block { background: #0d0d0d; border: 1px solid #2a2a2a; border-radius: 8px; margin-bottom: 20px; overflow: hidden; }
  .script-header { background: var(--panel); padding: 14px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
  .script-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; padding: 3px 10px; border-radius: 20px; }
  .tag-cold { background: rgba(192,57,43,0.2); color: #e07070; border: 1px solid rgba(192,57,43,0.4); }
  .tag-dialer { background: rgba(200,151,42,0.2); color: var(--gold-light); border: 1px solid rgba(200,151,42,0.4); }
  .tag-inbound { background: rgba(39,174,96,0.2); color: #7dce9c; border: 1px solid rgba(39,174,96,0.4); }
  .tag-email { background: rgba(74,158,222,0.2); color: #8ab4d4; border: 1px solid rgba(74,158,222,0.4); }
  .tag-voicemail { background: rgba(155,89,182,0.2); color: #c39bd3; border: 1px solid rgba(155,89,182,0.4); }
  .script-title { font-size: 14px; font-weight: 600; color: var(--text); }
  .script-body { padding: 20px; font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: #bbb; line-height: 1.9; white-space: pre-wrap; }
  .script-note { padding: 12px 20px; background: #111; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); font-style: italic; }
  /* TERMS GLOSSARY */
  .terms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  @media(max-width:700px){ .terms-grid { grid-template-columns: 1fr; } }
  .term-card { background: #0d0d0d; border: 1px solid var(--border); border-radius: 6px; padding: 14px 16px; }
  .term-name { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--gold-light); font-weight: 600; margin-bottom: 6px; }
  .term-def { font-size: 12px; color: #aaa; line-height: 1.6; }
  /* LENDER TIERS */
  .tier-card { border-radius: 8px; padding: 20px 24px; margin-bottom: 16px; border-left: 4px solid; }
  .tier-a { background: rgba(39,174,96,0.07); border-color: #27AE60; }
  .tier-b { background: rgba(200,151,42,0.07); border-color: var(--gold); }
  .tier-c { background: rgba(192,57,43,0.07); border-color: var(--red); }
  .tier-high { background: rgba(155,89,182,0.07); border-color: #9b59b6; }
  .tier-reverse { background: rgba(74,158,222,0.07); border-color: #4a9ede; }
  .tier-name { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 2px; margin-bottom: 4px; }
  .tier-a .tier-name { color: #27AE60; }
  .tier-b .tier-name { color: var(--gold-light); }
  .tier-c .tier-name { color: #e07070; }
  .tier-high .tier-name { color: #c39bd3; }
  .tier-reverse .tier-name { color: #8ab4d4; }
  .tier-sub { font-size: 12px; color: var(--muted); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px; }
  .tier-specs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
  .tier-spec { background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 4px; padding: 5px 12px; font-size: 11px; color: var(--text); font-family: 'JetBrains Mono', monospace; }
  .tier-bullets { list-style: none; }
  .tier-bullets li { font-size: 13px; color: #bbb; padding: 4px 0; display: flex; gap: 8px; line-height: 1.5; }
  .tier-bullets li::before { content: '&#8250;'; color: var(--muted); flex-shrink: 0; }
  ::-webkit-scrollbar { width: 4px; }
  ::-webkit-scrollbar-track { background: var(--surface); }
  ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

  /* &#9472;&#9472; HAMBURGER MENU (hidden on desktop) &#9472;&#9472; */
  .hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
  }
  .hamburger-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto;
    border-radius: 1px;
  }
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 199;
  }
  .sidebar-overlay.show { display: block; }

  /* &#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552; */
  /* &#9472;&#9472; MOBILE / TABLET RESPONSIVE STYLES &#9472;&#9472; */
  /* &#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552; */
  @media (max-width: 860px) {
    .hamburger-btn { display: flex; }

    .header {
      padding: 0 12px;
      gap: 10px;
      height: 56px;
    }
    .header-logo { font-size: 17px; letter-spacing: 1px; }
    .header-sub { display: none; }
    .header-right { gap: 8px; }
    .progress-label { display: none; }
    .progress-bar-wrap { width: 60px; }

    .layout { display: block; }

    .sidebar {
      position: fixed;
      top: 56px;
      left: 0;
      bottom: 0;
      width: 78%;
      max-width: 320px;
      z-index: 200;
      transform: translateX(-100%);
      transition: transform 0.25s ease;
      box-shadow: 4px 0 24px rgba(0,0,0,0.5);
      height: calc(100vh - 56px);
    }
    .sidebar.open { transform: translateX(0); }

    .main {
      padding: 16px;
      max-width: 100%;
    }

    .module-title { font-size: 32px; letter-spacing: 1px; }
    .module-subtitle { font-size: 13px; }
    .module-eyebrow { font-size: 10px; }
    .module-header { margin-bottom: 20px; }

    .card { padding: 16px; margin-bottom: 14px; }
    .card-title { font-size: 12px; }

    /* Stack any side-by-side grids */
    .stats-row { flex-wrap: wrap; gap: 10px; }
    .stat-box { min-width: 45%; }
    .stat-number { font-size: 26px; }

    /* Deal Builder grid &#8594; single column */
    div[style*="grid-template-columns:1fr 1fr"] {
      grid-template-columns: 1fr !important;
    }

    /* Tables &#8594; horizontal scroll */
    .obj-table { display: block; overflow-x: auto; white-space: nowrap; }
    .obj-table th, .obj-table td { white-space: normal; min-width: 140px; }
    .obj-table td:first-child, .obj-table th:first-child { min-width: 110px; }

    /* Terms glossary grid &#8594; single column */
    .terms-grid { grid-template-columns: 1fr; }

    /* Tab nav becomes horizontally scrollable */
    .tab-nav {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      flex-wrap: nowrap;
      padding-bottom: 2px;
    }
    .tab-btn {
      flex-shrink: 0;
      padding: 10px 14px;
      font-size: 11px;
    }

    /* Scenario selector wraps tighter */
    .scenario-selector { gap: 6px; }
    .scenario-btn { font-size: 11px; padding: 6px 12px; }

    /* Roleplay chat area */
    .chat-area { min-height: 240px; max-height: 320px; }
    .msg { max-width: 92%; }
    .roleplay-top { flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
    .scenario-badge { font-size: 10px; }
    .chat-input-area { flex-direction: column; gap: 10px; padding: 12px 14px; }
    .chat-input-area .btn { width: 100%; }

    /* Lender tier specs wrap better */
    .tier-specs { gap: 6px; }
    .tier-spec { font-size: 10px; padding: 4px 10px; }
    .tier-name { font-size: 18px; }

    /* Formula blocks scroll horizontally if needed */
    .formula { font-size: 12px; padding: 12px 14px; overflow-x: auto; }

    /* Score display in coach feedback - scale down */
    #feedbackText > div:first-child { gap: 14px !important; flex-wrap: wrap; }
    #feedbackText > div:first-child > div:first-child { font-size: 48px !important; }
    #feedbackText > div:first-child > div:last-child > div:first-child { font-size: 30px !important; }
    #feedbackBox { padding: 14px 16px !important; }

    /* Deal builder inputs */
    #day12 input, #day12 select { font-size: 15px; }

    /* Cert exam result */
    #cert-score-display { font-size: 56px !important; }
    #cert-grade-display { font-size: 28px !important; }
    #cert-badge { padding: 20px !important; max-width: 100% !important; }

    /* Quiz options larger tap targets */
    .quiz-option { padding: 14px 16px; font-size: 13px; }

    /* Checklist larger tap targets */
    .checklist li { padding: 12px 0; }

    /* Day complete banner */
    .day-complete-banner h3 { font-size: 22px; }
    .day-complete-banner p { font-size: 12px; }
  }

  @media (max-width: 480px) {
    .module-title { font-size: 26px; }
    .stat-box { min-width: 100%; }
    .header-logo { font-size: 15px; }
    .progress-bar-wrap { width: 44px; }
    #progressText { font-size: 10px !important; }
  }
