  :root {
    --cream: #f5f0e6;
    --cream-dark: #ede7d9;
    --cream-darker: #e0d9c8;
    --red: #c0272d;
    --red-pale: rgba(192,39,45,0.08);
    --red-border: rgba(192,39,45,0.2);
    --black: #1a1208;
    --charcoal: #3a3028;
    --grey: #6b6258;
    --grey-light: #9a8f84;
    --border: rgba(26,18,8,0.12);
    --green: #2d7a4a;
    --green-pale: rgba(45,122,74,0.06);
    --green-border: rgba(45,122,74,0.2);
    --sidebar-w: 280px;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { color-scheme: light only; }

  @media (prefers-color-scheme: dark) {
    :root { --cream: #f5f0e6; --cream-dark: #ede7d9; --cream-darker: #e0d9c8; --red: #c0272d; --black: #1a1208; --charcoal: #3a3028; --grey: #6b6258; --grey-light: #9a8f84; --border: rgba(26,18,8,0.12); }
    body { background: #f5f0e6 !important; color: #1a1208 !important; }
    .sidebar { background: #1a1208 !important; }
    .card, .goal-box, .lock-card, .law-tile, .metric-card, .tool-card, .checklist-section, .compare-card, .time-window, .platform-card, .calc-panel, .furn-group, .ai-form-section { background: #fff !important; }
    .ai-field input { background: var(--cream) !important; color: var(--black) !important; }
    .sub-card, .callout-cream { background: #ede7d9 !important; }
    .checklist-footer { background: #ede7d9 !important; }
    .check-item:hover { background: #f5f0e6 !important; }
  }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--black);
    line-height: 1.7;
    font-size: 16px;
    display: flex;
    min-height: 100vh;
  }

  /* ── SIDEBAR ── */
  .sidebar {
    width: var(--sidebar-w);
    background: #1a1208;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    overflow-y: auto;
    z-index: 200;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
  }

  .sidebar-brand {
    padding: 24px 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
  }

  .sidebar-logo-icon { font-size: 20px; }

  .sidebar-logo-name {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
  }

  .sidebar-tagline {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 2px;
  }

  /* Overall progress */
  .sidebar-progress {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .sidebar-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
  }

  .sidebar-progress-title {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .sidebar-progress-pct {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--red);
    font-weight: 500;
  }

  .sidebar-progress-track {
    background: rgba(255,255,255,0.1);
    border-radius: 100px;
    height: 4px;
    overflow: hidden;
  }

  .sidebar-progress-fill {
    background: var(--red);
    height: 100%;
    border-radius: 100px;
    transition: width 0.5s ease;
  }

  /* Nav */
  .sidebar-nav { flex: 1; padding: 12px 0 24px; overflow-y: auto; }

  .nav-dashboard {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    margin: 0 12px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
  }
  .nav-dashboard:hover { background: rgba(255,255,255,0.06); color: #fff; }
  .nav-dashboard.active { background: rgba(192,39,45,0.2); color: var(--red); }
  .nav-dashboard-icon { font-size: 15px; }

  .nav-part {
    padding: 8px 24px 4px;
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    margin-top: 8px;
  }

  .nav-lesson {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 24px;
    margin: 0 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
  }

  .nav-lesson:hover:not(.locked) { background: rgba(255,255,255,0.06); }
  .nav-lesson.active { background: rgba(192,39,45,0.15); }
  .nav-lesson.active::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 20px; background: var(--red); border-radius: 0 2px 2px 0; }
  .nav-lesson.locked { cursor: default; opacity: 0.35; }

  .nav-lesson-num {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: rgba(255,255,255,0.3);
    width: 22px;
    flex-shrink: 0;
  }
  .nav-lesson.active .nav-lesson-num { color: var(--red); }

  .nav-lesson-title {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    line-height: 1.3;
    flex: 1;
  }
  .nav-lesson.active .nav-lesson-title { color: #fff; font-weight: 600; }

  .nav-lesson-status {
    font-size: 11px;
    flex-shrink: 0;
  }

  .nav-lesson.complete .nav-lesson-title { color: rgba(255,255,255,0.4); }
  .nav-lesson.complete .nav-lesson-num { color: var(--green); }

  /* ── MAIN CONTENT ── */
  .main-content {
    margin-left: var(--sidebar-w);
    flex: 1;
    min-height: 100vh;
  }


  /* ── FLOATING BOTTOM TAB BAR (mobile only) ── */
  .tabbar {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
    background: rgba(245,240,230,0.92);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-top: 1px solid var(--red-border);
    box-shadow: 0 -4px 24px -8px rgba(26,18,8,0.18);
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
  }
  .tabbar-inner { display: flex; max-width: 520px; margin: 0 auto; }
  .tabbar button {
    flex: 1; background: none; border: none; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 2px; border-radius: 12px; color: var(--grey);
    font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 600;
    letter-spacing: 0.01em; transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  }
  .tabbar button svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar button:active { transform: scale(0.9); }
  .tabbar button.active { color: var(--red); }
  .tabbar button.active svg { stroke: var(--red); }
  @media (max-width: 768px) {
    .tabbar { display: block; }
    .main-content { padding-bottom: 84px !important; }
  }

  /* Top bar (mobile) */
  .topbar {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(245,240,230,0.96);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--red);
    padding: 12px 20px;
    z-index: 150;
    align-items: center;
    justify-content: space-between;
  }

  .topbar-title {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--red);
  }

  .hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px;
  }
  .hamburger span { display: block; width: 20px; height: 2px; background: var(--black); border-radius: 2px; transition: all 0.2s; }

  /* Pages */
  .page { display: none; }
  .page.active { display: block; }

  /* ── DASHBOARD ── */
  .dashboard {
    max-width: 780px;
    margin: 0 auto;
    padding: 60px 40px 80px;
  }

  .dash-hero {
    margin-bottom: 48px;
  }

  .dash-eyebrow {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--red);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
  }

  .dash-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px,5vw,56px);
    font-weight: 900;
    line-height: 1.05;
    color: var(--black);
    margin-bottom: 16px;
  }

  .dash-title span { color: var(--red); }

  .dash-sub {
    font-size: 17px;
    color: var(--grey);
    max-width: 480px;
    line-height: 1.6;
  }

  .dash-progress-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 40px;
  }

  .dash-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
  }

  .dash-progress-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--black);
  }

  .dash-progress-num {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--red);
    line-height: 1;
  }

  .dash-progress-num span {
    font-family: 'DM Mono', monospace;
    font-size: 13px;
    color: var(--grey-light);
    font-weight: 400;
  }

  .dash-progress-track {
    background: var(--cream-dark);
    border-radius: 100px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 10px;
  }

  .dash-progress-fill {
    background: var(--red);
    height: 100%;
    border-radius: 100px;
    transition: width 0.6s ease;
  }

  .dash-progress-sub {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--grey-light);
    letter-spacing: 0.06em;
  }

  /* Course outline cards */
  .dash-section-title {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--grey-light);
    margin-bottom: 16px;
  }

  .part-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
  }

  .part-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
  }

  .part-card-num {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 900;
    color: var(--cream-darker);
    line-height: 1;
    flex-shrink: 0;
  }

  .part-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--black);
    flex: 1;
  }

  .part-card-badge {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 100px;
  }

  .badge-available { background: var(--red-pale); color: var(--red); border: 1px solid var(--red-border); }
  .badge-locked { background: rgba(26,18,8,0.05); color: var(--grey-light); border: 1px solid var(--border); }
  .badge-done { background: var(--green-pale); color: var(--green); border: 1px solid var(--green-border); }

  .part-lessons-list {
    list-style: none;
  }

  .part-lesson-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s;
  }
  .part-lesson-item:last-child { border-bottom: none; }
  .part-lesson-item:hover:not(.locked) { background: var(--cream); }
  .part-lesson-item.locked { cursor: default; }

  .pli-num {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--grey-light);
    width: 24px;
    flex-shrink: 0;
  }
  .pli-num.done { color: var(--green); }

  .pli-title { font-size: 14px; color: var(--charcoal); flex: 1; }
  .pli-title.locked { color: var(--grey-light); }

  .pli-status { font-size: 13px; }

  /* ── LESSON PAGES ── */
  .lesson-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 40px 80px;
  }

  /* Video placeholder */
  /* ── LOOM FACADE — thumbnail shown, iframe loaded on click ── */
  .loom-facade { position:relative; margin-bottom:36px; border-radius:14px; overflow:hidden; background:#1a1208; cursor:pointer; }
  .loom-facade img { width:100%; display:block; transition:opacity .2s; }
  .loom-facade:hover img { opacity:0.88; }
  .loom-facade .loom-over { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; pointer-events:none; }
  .loom-facade .loom-play-btn { width:62px;height:62px;border-radius:50%;background:rgba(255,255,255,0.93);display:flex;align-items:center;justify-content:center;box-shadow:0 6px 22px rgba(0,0,0,0.45);transition:transform .2s; }
  .loom-facade:hover .loom-play-btn { transform:scale(1.08); }
  .loom-facade .loom-play-btn svg { width:22px;height:22px;fill:#1a1208;margin-left:3px; }
  .loom-facade-label { font-family:'DM Mono',monospace;font-size:11px;letter-spacing:0.12em;text-transform:uppercase;color:rgba(255,255,255,0.6); }
  .loom-facade-fallback { aspect-ratio:16/9; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; background:linear-gradient(135deg,#1a1208,#2b2113); }
  .loom-facade iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
  .video-placeholder {
    background: #1a1208;
    border-radius: 16px;
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
  }

  .video-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
      45deg,
      transparent,
      transparent 20px,
      rgba(255,255,255,0.01) 20px,
      rgba(255,255,255,0.01) 40px
    );
  }

  .video-play {
    width: 60px; height: 60px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    position: relative;
    z-index: 1;
  }

  .video-label {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
  }

  /* Shared lesson styles */
  .lesson-block { }
  .lesson-header { display: flex; align-items: center; gap: 20px; margin-bottom: 36px; }
  .lesson-num { font-family: 'Playfair Display', serif; font-size: 48px; font-weight: 900; color: var(--cream-darker); line-height: 1; flex-shrink: 0; }
  .lesson-title-block { }
  .lesson-eyebrow { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--red); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px; }
  h2 { font-family: 'Playfair Display', serif; font-size: clamp(24px,3.5vw,34px); font-weight: 900; color: var(--black); line-height: 1.15; }
  h3 { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--red); margin-top: 44px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--red-border); }
  p { font-size: 16px; color: var(--charcoal); line-height: 1.75; margin-bottom: 16px; }
  h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--charcoal); margin-bottom: 14px; margin-top: 28px; }
  h4:first-of-type { margin-top: 0; }
  em { font-style: italic; }
  strong { font-weight: 600; }

  /* Cards */
  .goal-box { background: #fff; border: 2px solid var(--red); border-radius: 14px; padding: 24px 28px; margin-bottom: 40px; position: relative; }
  .goal-box-label { position: absolute; top: -11px; left: 20px; background: var(--red); color: #fff; font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 12px; border-radius: 100px; }
  .goal-box p { margin-bottom: 0; font-size: 15px; line-height: 1.65; }
  .card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 24px 28px; margin-bottom: 16px; }
  .card-title { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 700; color: var(--black); margin-bottom: 18px; }
  .card-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
  .icon-red { background: rgba(192,39,45,0.1); }
  .icon-warm { background: rgba(26,18,8,0.06); }
  .icon-green { background: rgba(45,122,74,0.1); }

  /* Lists */
  ul.checks { list-style: none; display: flex; flex-direction: column; gap: 10px; }
  ul.checks li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--charcoal); line-height: 1.6; }
  ul.checks li .cb { width: 20px; height: 20px; border: 2px solid var(--cream-darker); border-radius: 5px; flex-shrink: 0; margin-top: 2px; }
  ul.warns { list-style: none; display: flex; flex-direction: column; gap: 10px; }
  ul.warns li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--charcoal); line-height: 1.6; }
  ul.warns li::before { content: '!'; min-width: 20px; height: 20px; background: rgba(192,39,45,0.12); color: var(--red); font-size: 11px; font-weight: 700; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; font-family: 'DM Mono', monospace; }
  ul.dots { list-style: none; display: flex; flex-direction: column; gap: 8px; padding-left: 4px; }
  ul.dots li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--grey); line-height: 1.6; }
  ul.dots li::before { content: '–'; color: var(--cream-darker); flex-shrink: 0; font-family: 'DM Mono', monospace; }

  /* Callouts */
  .callout { border-radius: 12px; padding: 20px 24px; margin: 24px 0; font-size: 15px; line-height: 1.65; }
  .callout-red { background: rgba(192,39,45,0.06); border: 1px solid rgba(192,39,45,0.18); border-left: 3px solid var(--red); color: var(--charcoal); }
  .callout-cream { background: var(--cream-dark); border: 1px solid var(--border); border-left: 3px solid var(--grey-light); color: var(--charcoal); }
  .callout-green { background: rgba(45,122,74,0.06); border: 1px solid rgba(45,122,74,0.18); border-left: 3px solid var(--green); color: var(--charcoal); }
  .callout strong { color: var(--black); font-weight: 700; }
  .callout-sky { background: rgba(79,195,247,0.06); border: 1px solid rgba(79,195,247,0.2); border-left: 3px solid #4fc3f7; color: var(--charcoal); }

  /* Grids */
  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

  /* Sub card */
  .sub-card { background: var(--cream-dark); border: 1px solid var(--border); border-radius: 10px; padding: 18px 22px; margin-top: 16px; }
  .sub-label { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--grey-light); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; }

  /* Law tiles */
  .law-tile { background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--red); border-radius: 10px; padding: 18px 16px; text-align: center; }
  .law-tile-icon { font-size: 24px; margin-bottom: 8px; }
  .law-tile-title { font-size: 13px; font-weight: 700; color: var(--black); }
  .law-tile-sub { font-size: 12px; color: var(--grey); margin-top: 4px; line-height: 1.4; }

  /* Compliance list */
  .compliance-list { list-style: none; display: flex; flex-direction: column; gap: 0; margin: 0; }
  .compliance-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .compliance-item:last-child { border-bottom: none; }
  .compliance-num { font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 500; color: var(--red); background: var(--red-pale); border: 1px solid var(--red-border); border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
  .compliance-title { font-size: 14px; font-weight: 700; color: var(--black); margin-bottom: 2px; }
  .compliance-desc { font-size: 13px; color: var(--grey); line-height: 1.5; }

  /* Lock cards */
  .lock-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px; }
  .lock-card.recommended { border-color: var(--red); border-width: 2px; }
  .lock-badge { display: inline-block; font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--red); color: #fff; padding: 3px 10px; border-radius: 100px; margin-bottom: 10px; }
  .lock-name { font-size: 15px; font-weight: 700; color: var(--black); margin-bottom: 6px; }
  .lock-tagline { font-size: 13px; color: var(--grey); margin-bottom: 12px; line-height: 1.5; }
  .lock-features { list-style: none; display: flex; flex-direction: column; gap: 6px; }
  .lock-features li { font-size: 13px; color: var(--charcoal); display: flex; gap: 8px; line-height: 1.5; }
  .lock-features li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

  /* Amazon button */
  .amazon-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; background: transparent; color: var(--grey) !important; font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 500; padding: 7px 14px; border-radius: 100px; border: 1px solid var(--border); text-decoration: none; transition: all 0.2s; letter-spacing: 0.04em; }
  .amazon-btn:hover { border-color: #FF9900; color: #c47a00 !important; background: rgba(255,153,0,0.06); }

  /* Metric grid (1B) */
  .metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
  .metric-card { background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--red); border-radius: 12px; padding: 18px 16px; text-align: center; }
  .metric-icon { font-size: 22px; margin-bottom: 8px; }
  .metric-abbr { font-family: 'DM Mono', monospace; font-size: 13px; font-weight: 500; color: var(--red); margin-bottom: 4px; }
  .metric-name { font-size: 12px; font-weight: 700; color: var(--black); margin-bottom: 6px; }
  .metric-desc { font-size: 12px; color: var(--grey); line-height: 1.5; }

  /* Tool cards (1B) */
  .tool-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px 24px; margin-bottom: 14px; }
  .tool-card.featured { border: 2px solid var(--red); }
  .tool-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
  .tool-name { font-size: 16px; font-weight: 700; color: var(--black); }
  .tool-url { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--grey-light); margin-top: 3px; }
  .tool-badge { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 12px; border-radius: 100px; flex-shrink: 0; white-space: nowrap; }
  .badge-red { background: var(--red); color: #fff; }
  .badge-free { background: rgba(45,122,74,0.12); color: var(--green); border: 1px solid rgba(45,122,74,0.25); }
  .badge-paid { background: rgba(192,39,45,0.08); color: var(--red); border: 1px solid var(--red-border); }
  .badge-freemium { background: rgba(26,18,8,0.06); color: var(--charcoal); border: 1px solid var(--border); }
  .tool-desc { font-size: 14px; color: var(--grey); line-height: 1.6; margin-bottom: 12px; }
  .tool-features { list-style: none; display: flex; flex-direction: column; gap: 6px; }
  .tool-features li { font-size: 13px; color: var(--charcoal); display: flex; gap: 8px; line-height: 1.5; }
  .tool-features li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

  /* Highlight box (1B) */
  .highlight-box { background: var(--red); color: #fff; border-radius: 16px; padding: 28px 32px; margin: 28px 0; position: relative; overflow: hidden; }
  .highlight-box::after { content: '10%'; position: absolute; right: 20px; top: -10px; font-family: 'Playfair Display', serif; font-size: 90px; font-weight: 900; color: rgba(255,255,255,0.07); line-height: 1; pointer-events: none; }
  .highlight-box-title { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 900; color: #fff; margin-bottom: 10px; }
  .highlight-box p { color: rgba(255,255,255,0.8); font-size: 15px; margin-bottom: 0; }

  /* Divider */
  .divider { display: flex; align-items: center; gap: 16px; margin: 44px 0 32px; }
  .divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
  .divider-text { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--grey-light); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }

  /* Checklist */
  .checklist-section { margin-top: 60px; background: #fff; border: 2px solid var(--red); border-radius: 20px; overflow: hidden; }
  .checklist-header { background: var(--red); padding: 28px 36px; }
  .checklist-header-title { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 900; color: #fff; margin-bottom: 4px; }
  .checklist-header-sub { font-family: 'DM Mono', monospace; font-size: 11px; color: rgba(255,255,255,0.6); letter-spacing: 0.08em; text-transform: uppercase; }
  .checklist-progress-bar-wrap { background: rgba(255,255,255,0.15); border-radius: 100px; height: 6px; margin-top: 16px; overflow: hidden; }
  .checklist-progress-bar { background: #fff; height: 100%; border-radius: 100px; transition: width 0.4s ease; }
  .checklist-progress-label { font-family: 'DM Mono', monospace; font-size: 11px; color: rgba(255,255,255,0.7); margin-top: 8px; letter-spacing: 0.06em; }
  .checklist-group { padding: 0 36px; }
  .checklist-group-title { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-light); padding: 20px 0 10px; border-bottom: 1px solid var(--border); }
  .check-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.15s; user-select: none; border-radius: 4px; margin: 0 -4px; }
  .check-item:last-child { border-bottom: none; }
  .check-item:hover { background: var(--cream); }
  .check-box { width: 22px; height: 22px; border: 2px solid var(--cream-darker); border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; color: transparent; transition: all 0.2s; margin-top: 1px; font-family: 'DM Mono', monospace; font-weight: 700; }
  .check-item.done .check-box { background: var(--red); border-color: var(--red); color: #fff; }
  .check-item.done .check-text { color: var(--grey-light); text-decoration: line-through; text-decoration-color: var(--cream-darker); }
  .check-text { font-size: 15px; color: var(--charcoal); line-height: 1.5; padding-top: 1px; transition: all 0.2s; }
  .check-text small { display: block; font-size: 12px; color: var(--grey-light); margin-top: 2px; }
  .checklist-footer { background: var(--cream-dark); padding: 16px 36px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); }
  .checklist-footer-text { font-size: 13px; color: var(--grey); }
  .checklist-footer-text strong { color: var(--black); }
  .btn-reset { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.08em; color: var(--grey); background: none; border: 1px solid var(--border); border-radius: 100px; padding: 6px 14px; cursor: pointer; transition: all 0.2s; text-transform: uppercase; }
  .btn-reset:hover { border-color: var(--red); color: var(--red); }

  /* ── LESSON COMPLETE CELEBRATION ── */
  .checklist-complete {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 36px;
    background: linear-gradient(135deg, rgba(45,122,74,0.06), rgba(45,122,74,0.02));
    border-top: 1px solid rgba(45,122,74,0.2);
    position: relative;
    overflow: hidden;
  }
  .checklist-complete.show { display: flex; }

  .complete-icon {
    width: 72px; height: 72px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 16px;
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    box-shadow: 0 8px 24px rgba(45,122,74,0.3);
  }

  @keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }

  @keyframes confettiFall {
    0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(60px) rotate(360deg); opacity: 0; }
  }

  .confetti-piece {
    position: absolute;
    width: 8px; height: 8px;
    border-radius: 2px;
    animation: confettiFall 1.2s ease forwards;
    opacity: 0;
  }

  .complete-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 900;
    color: var(--green);
    margin-bottom: 6px;
    animation: fadeUp 0.4s 0.2s ease both;
  }

  .complete-sub {
    font-size: 14px;
    color: var(--grey);
    margin-bottom: 20px;
    animation: fadeUp 0.4s 0.3s ease both;
  }

  .complete-next-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    animation: fadeUp 0.4s 0.4s ease both;
    text-decoration: none;
  }
  .complete-next-btn:hover { background: #236b3d; transform: translateY(-1px); }

  .checklist-section.completed .checklist-group { opacity: 0.45; pointer-events: none; }
  .checklist-section.completed .checklist-header { background: var(--green); }
  .checklist-section.completed .checklist-header-title::after { content: ' ✓'; }
  .checklist-section.completed .checklist-progress-bar { background: rgba(255,255,255,0.9); }

  /* Coming soon */
  .coming-soon {
    text-align: center;
    padding: 80px 40px;
  }
  .coming-soon-icon { font-size: 48px; margin-bottom: 20px; }
  .coming-soon-title { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 900; color: var(--black); margin-bottom: 10px; }
  .coming-soon-sub { font-size: 15px; color: var(--grey); max-width: 360px; margin: 0 auto; line-height: 1.6; }

  /* Next lesson button */
  .next-lesson-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    background: var(--red);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
  }
  .next-lesson-btn:hover { background: #a8202a; transform: translateY(-1px); }

  /* Sidebar overlay (mobile) */
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 190;
  }
  .sidebar-overlay.show { display: block; }

  /* Responsive */
  @media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .topbar { display: flex; }
    .dashboard { padding: 80px 20px 60px; }
    .lesson-page { padding: 80px 20px 60px; }
    .grid-2, .grid-3, .metric-grid { grid-template-columns: 1fr; }
    .checklist-group { padding: 0 20px; }
    .checklist-header { padding: 24px 20px; }
    .checklist-footer { padding: 14px 20px; flex-direction: column; gap: 12px; align-items: flex-start; }
  }

  /* ── BONUS: FURNISHING CHECKLIST (app-grade) ── */
  .furnx-hero { background:radial-gradient(130% 150% at 85% 0%, #3a2418 0%, #1a1208 60%); border:1px solid rgba(255,255,255,0.09); border-radius:24px; padding:40px 40px 36px; margin-bottom:22px; color:#fff; position:relative; overflow:hidden; box-shadow:0 30px 70px -28px rgba(26,18,8,0.5); }
  .furnx-hero::before { content:''; position:absolute; top:0; left:0; right:0; height:1px; background:linear-gradient(90deg,transparent,rgba(255,255,255,0.28),transparent); }
  .furnx-hero::after { content:'\2605'; position:absolute; right:18px; bottom:-40px; font-size:170px; color:rgba(240,180,41,0.08); pointer-events:none; line-height:1; }
  .furnx-eyebrow { display:inline-flex; align-items:center; gap:7px; font-family:'DM Mono',monospace; font-size:10px; letter-spacing:0.16em; text-transform:uppercase; color:#f0b429; background:rgba(240,180,41,0.1); border:1px solid rgba(240,180,41,0.25); padding:6px 14px; border-radius:100px; margin-bottom:20px; }
  .furnx-title { font-family:'Playfair Display',serif; font-size:clamp(30px,4.5vw,46px); font-weight:900; color:#fff; line-height:1.05; margin-bottom:14px; position:relative; z-index:1; }
  .furnx-sub { font-size:15px; color:rgba(255,255,255,0.7); max-width:540px; line-height:1.65; position:relative; z-index:1; }
  .furnx-ring-wrap { position:absolute; top:34px; right:38px; z-index:2; text-align:center; }
  .furnx-ring-track { fill:none; stroke:rgba(255,255,255,0.12); }
  .furnx-ring-fg { fill:none; stroke:#f0b429; stroke-linecap:round; transition:stroke-dashoffset .6s cubic-bezier(0.22,1,0.36,1); }
  .furnx-ring-pct { font-family:'Playfair Display',serif; font-weight:900; font-size:20px; fill:#fff; }
  .furnx-ring-label { font-family:'DM Mono',monospace; font-size:9px; letter-spacing:0.1em; text-transform:uppercase; color:rgba(255,255,255,0.45); margin-top:6px; }
  .furnx-tip { background:linear-gradient(135deg, rgba(240,180,41,0.08), rgba(240,180,41,0.02)); border:1px solid rgba(240,180,41,0.22); border-left:3px solid #f0b429; border-radius:14px; padding:18px 22px; margin-bottom:22px; font-size:14px; color:var(--charcoal); line-height:1.6; }
  .furnx-tip strong { color:var(--black); }
  .furnx-bar { position:sticky; top:14px; z-index:40; background:rgba(26,18,8,0.93); backdrop-filter:blur(12px); border:1px solid rgba(255,255,255,0.1); border-radius:16px; padding:14px 20px; margin-bottom:22px; display:flex; align-items:center; gap:16px; box-shadow:0 12px 30px -10px rgba(26,18,8,0.4); }
  .furnx-bar-count { font-family:'DM Mono',monospace; font-size:13px; color:#fff; font-variant-numeric:tabular-nums; white-space:nowrap; }
  .furnx-bar-count b { color:#f0b429; }
  .furnx-bar-track { flex:1; height:8px; background:rgba(255,255,255,0.1); border-radius:100px; overflow:hidden; }
  .furnx-bar-fill { height:100%; border-radius:100px; background:linear-gradient(90deg,#c0272d,#f0b429,#4ade80); width:0%; transition:width .5s cubic-bezier(0.22,1,0.36,1); }
  .furnx-reset { font-family:'DM Mono',monospace; font-size:10px; letter-spacing:0.08em; text-transform:uppercase; color:rgba(255,255,255,0.55); background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.14); border-radius:100px; padding:7px 14px; cursor:pointer; transition:all .2s; white-space:nowrap; }
  .furnx-reset:hover { border-color:#f0b429; color:#f0b429; }
  .furnx-cols { columns:2; column-gap:16px; }
  .furn-group { break-inside:avoid; -webkit-column-break-inside:avoid; page-break-inside:avoid; background:#fff; border:1px solid var(--border); border-radius:18px; padding:0 22px 10px; margin:0 0 16px; display:inline-block; width:100%; box-shadow:0 2px 12px rgba(26,18,8,0.04); transition:box-shadow .2s; }
  .furn-group:hover { box-shadow:0 8px 28px rgba(26,18,8,0.09); }
  .furn-group-head { display:flex; align-items:center; gap:13px; padding:18px 0 14px; border-bottom:1px solid var(--border); }
  .furn-group-icon { width:40px; height:40px; border-radius:11px; background:linear-gradient(135deg,var(--cream-dark),var(--cream-darker)); display:flex; align-items:center; justify-content:center; font-size:19px; flex-shrink:0; box-shadow:inset 0 1px 0 rgba(255,255,255,0.5); }
  .furn-group-title { font-size:16px; font-weight:700; color:var(--black); }
  .furn-group-sub { font-size:11.5px; color:var(--grey); margin-top:2px; line-height:1.4; }
  .furn-group-tally { margin-left:auto; font-family:'DM Mono',monospace; font-size:11px; color:var(--grey-light); background:var(--cream); border:1px solid var(--border); border-radius:100px; padding:3px 10px; flex-shrink:0; transition:all .2s; align-self:flex-start; margin-top:2px; }
  .furn-group.complete .furn-group-tally { background:var(--green); color:#fff; border-color:var(--green); }
  .furn-group.complete .furn-group-icon { background:linear-gradient(135deg, rgba(45,122,74,0.2), rgba(45,122,74,0.1)); }
  .furn-item { display:flex; align-items:center; gap:13px; padding:12px 0; border-bottom:1px solid var(--border); cursor:pointer; transition:background .15s; user-select:none; border-radius:8px; margin:0 -10px; padding-left:10px; padding-right:10px; }
  .furn-item:last-child { border-bottom:none; }
  .furn-item:hover { background:var(--cream); }
  .furn-box { width:22px; height:22px; border:2px solid var(--cream-darker); border-radius:7px; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:12px; color:transparent; transition:all .2s cubic-bezier(0.34,1.56,0.64,1); font-family:'DM Mono',monospace; font-weight:700; }
  .furn-item:hover .furn-box { border-color:var(--green); }
  .furn-item.done .furn-box { background:var(--green); border-color:var(--green); color:#fff; transform:scale(1.05); }
  .furn-content { flex:1; min-width:0; }
  .furn-name { font-size:14.5px; color:var(--charcoal); transition:all .2s; }
  .furn-item.done .furn-name { color:var(--grey-light); text-decoration:line-through; text-decoration-color:var(--cream-darker); }
  .furn-note { font-size:11.5px; color:var(--grey-light); margin-top:2px; line-height:1.4; }
  .furn-amazon { flex-shrink:0; display:inline-flex; align-items:center; gap:5px; font-family:'DM Mono',monospace; font-size:10px; font-weight:500; color:#c47a00; background:rgba(255,153,0,0.08); border:1px solid rgba(255,153,0,0.25); border-radius:100px; padding:5px 11px; text-decoration:none; transition:all .2s; letter-spacing:0.04em; }
  .furn-amazon:hover { border-color:#FF9900; background:rgba(255,153,0,0.18); transform:translateY(-1px); }
  @media (max-width:760px){ .furnx-cols{columns:1;} .furnx-hero{padding:28px 22px;} .furnx-ring-wrap{display:none;} }

  .ai-prompt-box { background:#1a1208; border-radius:14px; padding:24px 28px; margin-bottom:16px; }

  /* ── AI THEME FORM ── */
  .ai-form-wrap { display:flex; flex-direction:column; gap:20px; margin:24px 0; }
  .ai-form-section { background:#fff; border:1px solid var(--border); border-radius:16px; padding:22px 26px; }
  .ai-form-section-title { font-size:15px; font-weight:700; color:var(--black); margin-bottom:18px; padding-bottom:12px; border-bottom:1px solid var(--border); }
  .ai-field { margin-bottom:14px; }
  .ai-field:last-child { margin-bottom:0; }
  .ai-field label { display:block; font-size:13px; font-weight:600; color:var(--charcoal); margin-bottom:5px; }
  .ai-field-hint { font-size:11px; color:var(--grey-light); font-weight:400; margin-left:6px; }
  .ai-field input { width:100%; padding:10px 14px; font-family:'DM Sans',sans-serif; font-size:14px; color:var(--black); background:var(--cream); border:1px solid var(--border); border-radius:10px; outline:none; transition:border .2s; }
  .ai-field input:focus { border-color:var(--red); background:#fff; }
  .ai-prompt-output-wrap { background:var(--black); border-radius:16px; padding:24px; margin-top:28px; }
  .ai-prompt-output-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
  .ai-prompt-output-label { font-family:'DM Mono',monospace; font-size:11px; color:rgba(255,255,255,0.5); letter-spacing:0.1em; text-transform:uppercase; display:flex; align-items:center; }
  .ai-copy-btn { font-family:'DM Mono',monospace; font-size:11px; letter-spacing:0.08em; text-transform:uppercase; background:var(--red); color:#fff; border:none; border-radius:100px; padding:8px 18px; cursor:pointer; transition:all .2s; }
  .ai-copy-btn:hover { background:#a8202a; transform:translateY(-1px); }
  .ai-copy-btn.copied { background:var(--green); }
  .ai-prompt-text { font-family:'DM Mono',monospace; font-size:12px; line-height:1.8; color:rgba(255,255,255,0.85); white-space:pre-wrap; word-break:break-word; min-height:120px; }

  /* ── CALC X — app-grade calculator ── */
  .vs-num { font-family:'Playfair Display',serif;font-size:28px;font-weight:900;line-height:1; }
  .calcx { background:radial-gradient(130% 140% at 12% 0%, #2b2113 0%, #1a1208 58%); border:1px solid rgba(255,255,255,0.09); border-radius:24px; padding:34px; margin:32px 0; color:#fff; box-shadow:0 30px 70px -28px rgba(26,18,8,0.55); position:relative; overflow:visible; }
  .calcx::before { content:''; position:absolute; top:0; left:0; right:0; height:1px; background:linear-gradient(90deg,transparent,rgba(255,255,255,0.28),transparent); border-radius:24px 24px 0 0; }
  .calcx-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:26px; }
  .calcx-title { font-family:'Playfair Display',serif; font-size:26px; font-weight:900; color:#fff; }
  .calcx-sub { font-family:'DM Mono',monospace; font-size:11px; color:rgba(255,255,255,0.4); letter-spacing:0.08em; text-transform:uppercase; margin-top:4px; }
  .calcx-live { display:flex; align-items:center; gap:7px; font-family:'DM Mono',monospace; font-size:10px; letter-spacing:0.14em; color:#4ade80; background:rgba(74,222,128,0.08); border:1px solid rgba(74,222,128,0.25); padding:6px 12px; border-radius:100px; flex-shrink:0; }
  .calcx-live-dot { width:6px; height:6px; border-radius:50%; background:#4ade80; animation:calcxPulse 2s ease-in-out infinite; }
  @keyframes calcxPulse { 0%,100%{opacity:1; box-shadow:0 0 0 0 rgba(74,222,128,0.45);} 50%{opacity:0.65; box-shadow:0 0 0 6px rgba(74,222,128,0);} }
  .calcx-grid { display:grid; grid-template-columns:1fr auto 1fr; gap:16px; align-items:stretch; }
  .calcx-card { background:rgba(255,255,255,0.045); border:1px solid rgba(255,255,255,0.09); border-radius:18px; padding:22px; min-width:0; }
  .calcx-card-bnb { background:linear-gradient(165deg, rgba(192,39,45,0.18), rgba(192,39,45,0.05)); border-color:rgba(192,39,45,0.45); }
  .calcx-card-head { display:flex; align-items:center; gap:10px; font-size:14px; font-weight:700; color:#fff; margin-bottom:18px; padding-bottom:14px; border-bottom:1px solid rgba(255,255,255,0.09); }
  .calcx-card-emoji { width:32px; height:32px; border-radius:9px; background:rgba(255,255,255,0.09); display:flex; align-items:center; justify-content:center; font-size:15px; flex-shrink:0; }
  .calcx-field { margin-bottom:14px; }
  .calcx-field:last-child { margin-bottom:0; }
  .calcx-field label { display:block; font-size:12px; font-weight:600; color:rgba(255,255,255,0.85); margin-bottom:6px; }
  .calcx-inwrap { display:flex; align-items:center; background:rgba(0,0,0,0.32); border:1px solid rgba(255,255,255,0.13); border-radius:12px; transition:border-color .2s, box-shadow .2s, background .2s; min-width:0; }
  .calcx-inwrap:focus-within { border-color:#e85d63; box-shadow:0 0 0 3px rgba(192,39,45,0.3); background:rgba(0,0,0,0.46); }
  .calcx-inwrap .pre { padding-left:14px; color:rgba(255,255,255,0.35); font-family:'DM Mono',monospace; font-size:14px; }
  .calcx-inwrap input { flex:1; min-width:0; background:transparent; border:none; outline:none; color:#fff; font-family:'DM Mono',monospace; font-size:16px; font-variant-numeric:tabular-nums; padding:11px 14px 11px 6px; }
  .calcx-inwrap input::-webkit-outer-spin-button, .calcx-inwrap input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
  .calcx-inwrap input[type=number] { -moz-appearance:textfield; appearance:textfield; }
  .calcx-hint { font-size:11px; color:rgba(255,255,255,0.35); margin-top:5px; line-height:1.4; }
  .calcx-vs { display:flex; align-items:center; justify-content:center; }
  .calcx-vs span { width:44px; height:44px; border-radius:50%; background:#1a1208; border:1px solid rgba(255,255,255,0.16); display:flex; align-items:center; justify-content:center; font-family:'DM Mono',monospace; font-size:11px; color:rgba(255,255,255,0.5); letter-spacing:0.05em; box-shadow:0 8px 22px rgba(0,0,0,0.45); }
  .calcx-results { margin-top:18px; background:rgba(0,0,0,0.3); border:1px solid rgba(255,255,255,0.08); border-radius:18px; padding:26px; }
  .calcx-bar-row { display:grid; grid-template-columns:62px 1fr auto; align-items:center; gap:14px; margin-bottom:14px; }
  .calcx-bar-row:last-of-type { margin-bottom:0; }
  .calcx-bar-label { font-family:'DM Mono',monospace; font-size:10px; letter-spacing:0.1em; text-transform:uppercase; color:rgba(255,255,255,0.45); }
  .calcx-track { height:14px; background:rgba(255,255,255,0.07); border-radius:100px; overflow:hidden; }
  .calcx-fill { height:100%; border-radius:100px; transition:width .6s cubic-bezier(0.22,1,0.36,1); width:0%; }
  .calcx-fill-rent { background:linear-gradient(90deg,#6b6258,#9a8f84); }
  .calcx-fill-bnb { background:linear-gradient(90deg,#c0272d,#f0b429); }
  .calcx-bar-num { font-family:'DM Mono',monospace; font-size:15px; color:#fff; font-variant-numeric:tabular-nums; min-width:88px; text-align:right; }
  .calcx-verdict { text-align:center; margin-top:24px; padding-top:24px; border-top:1px solid rgba(255,255,255,0.09); }
  .calcx-verdict-label { font-family:'DM Mono',monospace; font-size:10px; letter-spacing:0.14em; text-transform:uppercase; color:rgba(255,255,255,0.4); margin-bottom:8px; }
  .calcx-verdict-num { font-family:'Playfair Display',serif; font-size:clamp(40px,6vw,58px); font-weight:900; line-height:1; background:linear-gradient(100deg,#4ade80,#bef264); -webkit-background-clip:text; background-clip:text; color:transparent; font-variant-numeric:tabular-nums; }
  .calcx-verdict-num.neg { background:linear-gradient(100deg,#f87171,#fca5a5); -webkit-background-clip:text; background-clip:text; }
  .calcx-chip { display:inline-flex; align-items:center; gap:6px; margin-top:14px; font-family:'DM Mono',monospace; font-size:12px; color:#4ade80; background:rgba(74,222,128,0.08); border:1px solid rgba(74,222,128,0.25); padding:7px 16px; border-radius:100px; }
  .calcx-foot { margin-top:16px; font-size:11px; color:rgba(255,255,255,0.3); text-align:center; }
  .calcx-duo { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
  .calcx-duo > div { min-width:0; }
  @media (max-width:900px){
    .calcx { padding:22px 16px; }
    .calcx-grid { grid-template-columns:1fr; gap:12px; }
    .calcx-vs { margin:0; align-self:center; }
    .calcx-bar-row { grid-template-columns:52px 1fr auto; }
    .calcx-bar-num { min-width:74px; font-size:13px; }
    .calcx-duo { grid-template-columns:1fr; }
    .calcx-inwrap input { font-size:16px; }
  }

  /* ── LESSON 1C STYLES ──*/
  ul.source-list { list-style:none;display:flex;flex-direction:column;gap:0; }
  ul.source-list li { display:flex;align-items:flex-start;gap:12px;padding:12px 0;border-bottom:1px solid var(--border); }
  ul.source-list li:last-child { border-bottom:none; }
  ul.source-list li .cb { width:20px;height:20px;border:2px solid var(--cream-darker);border-radius:5px;flex-shrink:0;margin-top:2px; }
  .source-content { flex:1; }
  .source-name { font-size:14px;font-weight:700;color:var(--black);margin-bottom:2px; }
  .source-desc { font-size:13px;color:var(--grey);line-height:1.5; }


  /* ── MAINTENANCE TABLE ── */
  .mnt-table { display:flex; flex-direction:column; gap:0; }
  .mnt-row { display:grid; grid-template-columns:1.4fr 0.9fr 1.6fr; gap:14px; padding:12px 0; border-bottom:1px solid var(--border); align-items:start; }
  .mnt-row:last-child { border-bottom:none; }
  .mnt-task { font-size:13px; font-weight:700; color:var(--black); }
  .mnt-freq { font-size:12px; font-family:'DM Mono',monospace; color:var(--red); font-weight:600; }
  .mnt-note { font-size:12px; color:var(--grey); line-height:1.5; }
  @media(max-width:680px){ .mnt-row { grid-template-columns:1fr; gap:3px; padding:14px 0; } .mnt-freq { order:-1; } }

  /* ── ICON GOLD ── */
  .icon-gold { background:linear-gradient(135deg,#f0b429,#d99a0a); color:#fff; }

  /* ── COURSE FINISH PAGE ── */
  .finish-hero { text-align:center; padding:40px 24px 32px; background:radial-gradient(120% 130% at 50% 0%, #2b2113 0%, #1a1208 60%); border-radius:24px; color:#fff; margin-bottom:32px; position:relative; overflow:hidden; }
  .finish-hero::before { content:''; position:absolute; top:0; left:0; right:0; height:1px; background:linear-gradient(90deg,transparent,rgba(240,180,41,0.6),transparent); }
  .finish-badge { width:72px; height:72px; border-radius:50%; background:linear-gradient(135deg,#f0b429,#c0272d); display:flex; align-items:center; justify-content:center; font-size:34px; margin:0 auto 20px; box-shadow:0 12px 40px -8px rgba(240,180,41,0.5); }
  .finish-eyebrow { font-family:'DM Mono',monospace; font-size:12px; letter-spacing:0.14em; text-transform:uppercase; color:#f0b429; margin-bottom:12px; }
  .finish-title { font-family:'Playfair Display',serif; font-size:38px; font-weight:800; line-height:1.1; margin:0 0 16px; color:#fff; }
  .finish-sub { font-size:16px; line-height:1.6; color:rgba(255,255,255,0.78); max-width:560px; margin:0 auto; }
  .finish-signoff { text-align:center; padding:36px 24px; margin-top:32px; border-top:1px solid var(--border); }
  .finish-signoff p { font-size:16px; color:var(--charcoal); line-height:1.6; max-width:520px; margin:0 auto 8px; }
  .finish-signoff-name { font-family:'Playfair Display',serif; font-size:22px; font-weight:700; color:var(--black) !important; margin-top:12px !important; }
  .finish-signoff-plane { font-size:28px; color:var(--red); margin-top:16px; }
  @media(max-width:600px){ .finish-title { font-size:30px; } }

  /* ── MESSAGE TEMPLATES ── */
  .airbnb-var { display:inline-block; background:#dbeafe; color:#1e40af; font-size:12px; font-weight:600; padding:1px 8px; border-radius:100px; font-family:'DM Sans',sans-serif; white-space:nowrap; }
  .tmpl-fill { display:inline; background:#fff8e6; border:1px solid #f0b429; border-radius:6px; padding:0px 6px; font-family:'DM Mono',monospace; font-size:11px; color:#92620a; font-weight:600; white-space:nowrap; }
  .tmpl-fill-empty { opacity:0.5; border-style:dashed; }
  .tmpl-box { background:var(--black); border-radius:12px; padding:20px 22px; font-family:'DM Sans',sans-serif; font-size:14px; line-height:1.75; color:rgba(255,255,255,0.82); }
  .tmpl-line { display:block; }
  @media(max-width:600px){ .ai-form-section > div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns:1fr !important; } }

  /* ── STACK LIST — clean stacked heading + body rows ── */
  .stack-list { display:flex; flex-direction:column; gap:0; }
  .stack-item { padding:16px 0 16px 18px; border-left:2px solid var(--cream-darker); border-bottom:1px solid var(--border); }
  .stack-item:first-child { padding-top:4px; }
  .stack-item:last-child { border-bottom:none; padding-bottom:0; }
  .stack-head { font-size:15px; font-weight:700; color:var(--black); margin-bottom:5px; letter-spacing:-0.01em; }
  .stack-body { font-size:14px; color:var(--grey); line-height:1.65; }
  .q-list { list-style:none;display:flex;flex-direction:column;gap:0; }
  .q-item { display:flex;align-items:flex-start;gap:16px;padding:16px 0;border-bottom:1px solid var(--border); }
  .q-num { font-family:'DM Mono',monospace;font-size:12px;font-weight:500;color:#fff;background:var(--red);border-radius:50%;width:26px;height:26px;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px; }
  .q-content { flex:1; }
  .q-text { font-size:15px;font-weight:600;color:var(--black);margin-bottom:4px; }
  .q-why { font-size:13px;color:var(--grey);line-height:1.5; }
  .compare-card { background:#fff;border:1px solid var(--border);border-radius:12px;padding:20px 24px;margin-bottom:12px; }
  .compare-type { font-family:'DM Mono',monospace;font-size:10px;letter-spacing:0.12em;text-transform:uppercase;margin-bottom:8px; }
  .compare-type.individual { color:var(--green); }
  .compare-type.company { color:var(--red); }
  .compare-title { font-size:15px;font-weight:700;color:var(--black);margin-bottom:10px; }
  .platform-card { background:#fff;border:1px solid var(--border);border-radius:12px;padding:18px 22px;margin-bottom:10px; }
  .platform-header { display:flex;align-items:center;justify-content:space-between;margin-bottom:8px; }
  .platform-name { font-size:15px;font-weight:700;color:var(--black); }
  .platform-url { font-family:'DM Mono',monospace;font-size:11px;color:var(--grey-light); }
  .platform-badge { font-family:'DM Mono',monospace;font-size:10px;letter-spacing:0.08em;text-transform:uppercase;padding:3px 10px;border-radius:100px; }
  .badge-global { background:rgba(79,195,247,0.1);color:#1a7a9a;border:1px solid rgba(79,195,247,0.3); }
  .badge-au { background:rgba(45,122,74,0.1);color:var(--green);border:1px solid var(--green-border); }
  .platform-desc { font-size:13px;color:var(--grey);line-height:1.6; }
  .time-window { background:#fff;border:1px solid var(--border);border-radius:14px;padding:28px;margin:20px 0; }
  .time-track { position:relative;height:48px;background:var(--cream-dark);border-radius:100px;margin:20px 0;overflow:hidden; }
  .time-checkout { position:absolute;left:0;top:0;bottom:0;width:25%;background:rgba(192,39,45,0.15);display:flex;align-items:center;justify-content:center; }
  .time-clean { position:absolute;left:25%;top:0;bottom:0;width:37.5%;background:rgba(45,122,74,0.2);display:flex;align-items:center;justify-content:center; }
  .time-checkin { position:absolute;left:62.5%;top:0;bottom:0;width:37.5%;background:rgba(192,39,45,0.1);display:flex;align-items:center;justify-content:center; }
  .time-label { font-family:'DM Mono',monospace;font-size:10px;font-weight:500;text-align:center;line-height:1.3; }
  .time-label.checkout { color:var(--red); }
  .time-label.clean { color:var(--green); }
  .time-label.checkin { color:var(--charcoal); }
  .time-row { display:flex;justify-content:space-between;margin-top:8px; }
  .time-point { font-family:'DM Mono',monospace;font-size:11px;color:var(--grey); }

  @keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
  .page.active .lesson-block, .page.active .dashboard { animation: fadeUp 0.4s ease both; }

  /* ── SEARCH ── */
  .sidebar-search { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .search-box-wrap { position: relative; }
  .search-box {
    width: 100%; padding: 10px 32px 10px 32px;
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 100px; color: #fff; font-family: 'DM Sans', sans-serif; font-size: 13px;
    transition: all 0.18s; -webkit-appearance:none;
  }
  .search-box::placeholder { color: rgba(255,255,255,0.35); }
  .search-box:focus { outline: none; background: rgba(255,255,255,0.12); border-color: rgba(192,39,45,0.6); }
  .search-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; color: rgba(255,255,255,0.35); pointer-events: none; }
  .search-clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: rgba(255,255,255,0.4); font-size: 16px; cursor: pointer; padding: 0 4px; line-height: 1; display: none; }
  .search-clear:hover { color: #fff; }
  .search-clear.show { display: block; }

  .search-results { position: fixed; inset: 0; background: var(--cream); z-index: 400; overflow-y: auto; display: none; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .search-results.show { display: block; }
  .sr-inner { max-width: 760px; margin: 0 auto; padding: 0 24px calc(110px + env(safe-area-inset-bottom)); }

  /* sticky search bar inside the overlay */
  .sr-bar { position: sticky; top: 0; z-index: 2; background: var(--cream); padding: 16px 0 12px; }
  .sr-bar-wrap { position: relative; }
  .sr-bar input {
    width: 100%; padding: 14px 42px 14px 40px;
    background: #fff; border: 1px solid var(--border); border-radius: 100px;
    font-family: 'DM Sans', sans-serif; font-size: 16px; color: var(--black);
    -webkit-appearance: none; transition: all 0.18s;
  }
  .sr-bar input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(192,39,45,0.09); }
  .sr-bar-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 15px; color: var(--grey-light); pointer-events: none; }
  .sr-bar-x { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: var(--black); color: #fff; border: none; width: 28px; height: 28px; border-radius: 50%; font-size: 15px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
  .sr-bar-x:hover { background: var(--red); }

  .sr-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
  .sr-count { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); }
  .sr-close { background: var(--black); color: #fff; border: none; font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; padding: 9px 16px; border-radius: 100px; cursor: pointer; }
  .sr-close:hover { background: var(--red); }
  .sr-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 9px; cursor: pointer; transition: all 0.15s; }
  .sr-item:hover { border-color: var(--red); transform: translateX(3px); box-shadow: 0 3px 14px rgba(26,18,8,0.07); }
  .sr-badge { display: inline-block; font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); background: rgba(192,39,45,0.08); border: 1px solid rgba(192,39,45,0.18); padding: 3px 9px; border-radius: 100px; margin-bottom: 7px; }
  .sr-title { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700; color: var(--black); line-height: 1.3; margin-bottom: 5px; }
  .sr-snip { font-size: 13.5px; color: var(--grey); line-height: 1.6; }
  .sr-snip mark { background: rgba(240,180,41,0.35); color: var(--black); padding: 0 2px; border-radius: 2px; font-weight: 600; }
  .sr-empty { text-align: center; padding: 60px 20px; }
  .sr-empty-ico { font-size: 34px; margin-bottom: 12px; opacity: 0.4; }
  .sr-empty-t { font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 700; margin-bottom: 8px; }
  .sr-empty-x { font-size: 14px; color: var(--grey); line-height: 1.6; }
  .search-hit { animation: hitFlash 2.4s ease; }
  @keyframes hitFlash { 0%,70% { background: rgba(240,180,41,0.28); } 100% { background: transparent; } }

/* ── LEDGER ─────────────────────────────────────────────────────────────────
   A money comparison read as a set of books. Figures sit in a right aligned
   tabular column so the digits line up and two of these can be compared by
   running your eye down them, which a bullet list with the numbers buried
   mid-sentence cannot do. The double rule above the net is the accounting
   convention for a result. */
.ledger {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 22px 24px 20px; margin-bottom: 14px;
}
.ledger-head { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.ledger-ico {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; font-size: 17px; flex: 0 0 auto;
}
.ledger-rent .ledger-ico { background: var(--cream-dark); }
.ledger-bnb  .ledger-ico { background: var(--green-pale); }
.ledger-title { font-size: 15.5px; font-weight: 700; color: var(--black); }

.ledger-row { display: flex; align-items: baseline; gap: 12px; padding: 5px 0; }
.ledger-label { font-size: 14px; color: var(--charcoal); flex: 1; min-width: 0; }
.ledger-amt {
  font-family: 'DM Mono', monospace; font-size: 14px; color: var(--charcoal);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.ledger-row-income .ledger-label { font-size: 15px; font-weight: 700; color: var(--black); }
.ledger-row-income .ledger-amt { font-size: 19px; font-weight: 500; color: var(--black); }
.ledger-note { font-size: 12.5px; color: var(--grey-light); margin: -2px 0 2px; }
.ledger-cap {
  font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--grey-light); margin: 12px 0 2px;
}
.ledger-rule { height: 1px; background: var(--border); margin: 10px 0; }
.ledger-sub .ledger-label { font-weight: 600; color: var(--black); }
.ledger-sub .ledger-amt { font-weight: 500; color: var(--black); }
.ledger-rule-net {
  height: 3px; margin: 12px 0 10px;
  border-top: 1px solid rgba(26,18,8,0.28); border-bottom: 1px solid rgba(26,18,8,0.28);
}
.ledger-net { display: flex; align-items: baseline; gap: 12px; }
.ledger-net .ledger-label {
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--grey); flex: 1;
}
.ledger-net .ledger-amt {
  font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 900; line-height: 1;
}
.ledger-rent .ledger-net .ledger-amt { color: var(--charcoal); }
.ledger-bnb  .ledger-net .ledger-amt { color: var(--green); }

/* The two ledgers resolve into this. */
.verdict {
  background: var(--black); border-radius: 16px; padding: 22px 24px;
  text-align: center; color: var(--cream); margin-bottom: 28px;
}
.verdict-cap {
  font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(245,240,230,0.55); margin-bottom: 6px;
}
.verdict-num {
  font-family: 'Playfair Display', serif; font-size: 38px; font-weight: 900;
  line-height: 1; color: #fff;
}
.verdict-sub { font-size: 13px; color: rgba(245,240,230,0.7); margin-top: 8px; }

@media (max-width: 430px) {
  .ledger { padding: 20px 18px 18px; }
  .ledger-net .ledger-amt { font-size: 27px; }
  .verdict-num { font-size: 34px; }
}

/* The three list variants above are flex rows, so any inline element inside an
   item, a <strong> most often, used to become its own flex item and split the
   sentence into columns. render.js now wraps each item's text; this keeps that
   wrapper filling the row. */
ul.checks li .li-text,
ul.warns li .li-text,
ul.dots li .li-text { flex: 1; min-width: 0; }
