  :root {
    --navy-deep: #0a1628;
    --navy: #0e1d33;
    --navy-card: #14263f;
    --navy-line: #1f3a5c;
    --orange: #f5a623;
    --orange-bright: #ffb938;
    --orange-deep: #e08e0b;
    --teal: #4fd1c5;
    --teal-glow: #6ee7db;
    --cream: #f5e6c8;
    --text: #eaf2ff;
    --text-dim: #9fb4d4;
    --green: #5ed47a;
    --red: #ff7b6b;
    --purple: #9d7bea;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
  [x-cloak] { display: none !important; }

  html, body {
    background: var(--navy-deep);
    font-family: 'Nunito', sans-serif;
    color: var(--text);
    overflow-x: hidden;
  }

  body {
    min-height: 100vh;
    background:
      radial-gradient(ellipse 80% 50% at 50% 0%, rgba(79,209,197,0.10), transparent 60%),
      radial-gradient(ellipse 60% 40% at 80% 90%, rgba(245,166,35,0.08), transparent 60%),
      var(--navy-deep);
  }

  .app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    /* room for the fixed "Ask Webo" FAB so it never overlaps the last lesson card */
    padding-bottom: 110px;
  }

  /* ---------- Header ---------- */
  header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px 12px;
  }
  .brand { display: flex; align-items: center; gap: 9px; }
  .brand-mark {
    width: 30px; height: 30px; border-radius: 7px;
    background: var(--text); display: grid; place-items: center;
  }
  .brand-mark svg { width: 20px; height: 20px; }
  .brand-name { font-family: 'Baloo 2'; font-weight: 700; font-size: 16px; letter-spacing: .2px; }
  .brand-name span { color: var(--orange); }
  .star-count {
    display: flex; align-items: center; gap: 5px;
    background: var(--navy-card); border: 1px solid var(--navy-line);
    padding: 6px 11px; border-radius: 20px; font-weight: 800; font-size: 13px;
  }
  .star-count svg { width: 15px; height: 15px; }

  /* ---------- World / Hub ---------- */
  .world {
    margin: 6px 16px 0;
    background:
      radial-gradient(ellipse at 50% 120%, rgba(79,209,197,0.12), transparent 70%),
      linear-gradient(180deg, var(--navy-card), var(--navy));
    border: 1px solid var(--navy-line);
    border-radius: 26px;
    padding: 18px 18px 22px;
    position: relative;
    overflow: hidden;
  }
  .world-stars { position: absolute; inset: 0; pointer-events: none; }
  .world-stars i {
    position: absolute; width: 2px; height: 2px; border-radius: 50%;
    background: #cfe3ff; opacity: .5; animation: twinkle 3s infinite ease-in-out;
  }
  @keyframes twinkle { 0%,100%{opacity:.2} 50%{opacity:.8} }

  .world-title {
    font-family: 'Baloo 2'; font-weight: 700; font-size: 13px;
    color: var(--text-dim); text-align: center; letter-spacing: 1.5px; text-transform: uppercase;
    margin-bottom: 4px;
  }
  .world-stage {
    height: 250px; position: relative; display: grid; place-items: center;
  }

  /* world props that fill in */
  .prop {
    position: absolute; bottom: 38px;
    opacity: 0; transform: translateY(14px) scale(.6);
    transition: opacity .6s ease, transform .6s cubic-bezier(.34,1.56,.64,1);
  }
  .prop.on { opacity: 1; transform: translateY(0) scale(1); }

  /* Swapped-in art (see lib/lesson-kit.mjs + assets/README.md). No effect until a
     WEBO_ART path / prop.img is set - the placeholder SVG renders by default. */
  .webo-art { width: 100%; height: auto; display: block; }
  .prop-img { width: 56px; height: auto; display: block; filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)); }

  .prop-jars { left: 4%; bottom: 6px; }
  .jar { width: 22px; height: 30px; display: inline-block; margin: 0 1px; position: relative; vertical-align: bottom;
    border: 2px solid var(--cream); border-top: none; border-radius: 4px 4px 7px 7px; }
  .jar::after { content:""; position:absolute; left:1px; right:1px; bottom:1px; height: 55%;
    border-radius: 3px; }
  .jar.spend::after { background: var(--red); }
  .jar.save::after { background: var(--teal); }
  .jar.grow::after { background: var(--green); }
  .jar::before { content:""; position:absolute; top:-5px; left:-3px; right:-3px; height:5px;
    background: var(--cream); border-radius: 3px; }

  .prop-tree { left: 77%; bottom: 86px; }
  .prop-tree svg { width: 78px; height: 110px; display: block; }

  .prop-rocket { left: 44%; bottom: 192px; }
  .prop-rocket svg { width: 40px; height: 64px; filter: drop-shadow(0 0 12px rgba(245,166,35,.5)); }
  .prop-rocket .flame { transform-origin: 50% 0; animation: flicker .35s infinite alternate; }
  @keyframes flicker { from{transform:scaleY(.8)} to{transform:scaleY(1.15)} }

  .prop-basket { left: 74%; bottom: 6px; }
  .prop-basket svg { width: 64px; height: 56px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)); }

  .prop-kite { left: 11%; bottom: 182px; }
  .prop-kite svg { width: 50px; height: 76px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)); animation: bob 3.4s ease-in-out infinite; }

  .prop-coins { left: 76%; bottom: 178px; }
  .prop-coins svg { width: 56px; height: 46px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)); }

  /* ---------- Webo character (pure CSS/SVG) ---------- */
  .webo { width: 120px; position: relative; z-index: 3; margin-bottom: 0;
    animation: bob 3.4s ease-in-out infinite; cursor: pointer; }
  @keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }
  .webo svg { width: 100%; display: block; filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); }
  .webo .eye { animation: blink 4.5s infinite; transform-origin: center; }
  @keyframes blink { 0%,94%,100%{transform:scaleY(1)} 97%{transform:scaleY(.1)} }
  .webo-glow { position: absolute; inset: -10% 10% 20%; border-radius: 50%;
    background: radial-gradient(circle, rgba(245,166,35,.25), transparent 70%); z-index: -1;
    filter: blur(6px); }

  .webo-hint {
    text-align: center; font-size: 12px; color: var(--text-dim); margin-top: 8px;
    font-weight: 700; position: relative; z-index: 4;
  }

  /* ---------- Progress dots ---------- */
  .progress {
    display: flex; justify-content: center; gap: 8px; margin: 8px 0 4px;
  }
  .progress .dot {
    width: 9px; height: 9px; border-radius: 50%; background: var(--navy-line);
    transition: all .3s;
  }
  .progress .dot.done { background: var(--orange); box-shadow: 0 0 8px rgba(245,166,35,.6); }

  /* ---------- Lesson cards ---------- */
  .section-label {
    font-family: 'Baloo 2'; font-weight: 700; font-size: 12px; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--text-dim); margin: 22px 22px 10px;
  }
  .lessons { display: flex; flex-direction: column; gap: 12px; padding: 0 16px; }
  .lesson-card {
    display: flex; align-items: center; gap: 14px;
    background: var(--navy-card); border: 1px solid var(--navy-line);
    border-radius: 18px; padding: 14px 15px; cursor: pointer;
    transition: transform .18s ease, border-color .18s, box-shadow .18s;
    position: relative; overflow: hidden;
  }
  .lesson-card:active { transform: scale(.985); }
  .lesson-card:hover { border-color: var(--orange); box-shadow: 0 6px 24px rgba(0,0,0,.3); }
  .lesson-card.locked { opacity: .5; cursor: not-allowed; }
  .lesson-card.locked:hover { border-color: var(--navy-line); box-shadow: none; }
  .lesson-card.complete::before {
    content:""; position:absolute; inset:0; border-radius:18px;
    background: linear-gradient(90deg, rgba(94,212,122,.10), transparent 60%);
  }
  .lesson-ico {
    width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0;
    display: grid; place-items: center; font-size: 26px;
    background: linear-gradient(145deg, var(--navy-line), var(--navy));
  }
  .lesson-body { flex: 1; min-width: 0; }
  .lesson-no { font-size: 11px; font-weight: 800; color: var(--orange); letter-spacing: .5px; }
  .lesson-name { font-family: 'Baloo 2'; font-weight: 700; font-size: 16.5px; line-height: 1.15; }
  .lesson-sub { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }
  .lesson-status { flex-shrink: 0; }
  .lesson-status svg { width: 24px; height: 24px; }

  /* ---------- Lesson overlay ---------- */
  /* ---------- Lesson scaffold: a reusable 3-region template ----------
     Every lesson uses the SAME structure so regions never conflict:
       .lesson-top     (header) -> fixed, never scrolls
       .lesson-scroll  (body)   -> flexes + scrolls; holds intro / stage / feedback
       .lesson-actions (footer) -> pinned to the bottom; the primary button lives here
     A new lesson only has to fill these regions. */
  .overlay {
    position: fixed; inset: 0; z-index: 50; display: none;
    background: var(--navy-deep);
    max-width: 480px; margin: 0 auto;
  }
  .overlay.show { display: flex; flex-direction: column; animation: slideUp .35s ease; }
  @keyframes slideUp { from{transform:translateY(30px); opacity:0} to{transform:translateY(0); opacity:1} }

  .lesson-top {
    flex: 0 0 auto; z-index: 5;
    display: flex; align-items: center; gap: 12px;
    padding: 16px 18px; background: rgba(10,22,40,.85); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--navy-line);
  }
  .back-btn {
    width: 36px; height: 36px; border-radius: 11px; border: 1px solid var(--navy-line);
    background: var(--navy-card); color: var(--text); display: grid; place-items: center;
    cursor: pointer; font-size: 18px; flex-shrink: 0;
  }
  .lesson-top h2 { font-family: 'Baloo 2'; font-weight: 700; font-size: 17px; }

  /* Region 2: scrollable body. Lays its sub-regions out top-to-bottom.
     (Named .lesson-scroll, not .lesson-body, to avoid colliding with the
     lesson-card text column which already uses .lesson-body.) */
  .lesson-scroll {
    flex: 1 1 auto; overflow-y: auto;
    padding: 20px 20px 16px;
    display: flex; flex-direction: column;
  }
  /* Designated sub-regions every lesson fills, stacked in visual order:
     .lesson-intro (Webo speech) -> .lesson-stage (interactive game) -> .feedback (tip). */
  .lesson-intro { flex: 0 0 auto; }
  /* The interactive game; sizes to its content. Top padding gives variable-height
     stage content reliable clearance from the intro/header above it. */
  .lesson-stage { flex: 0 0 auto; padding-top: 8px; }

  /* Region 3: pinned action footer. Primary button is always visible here. */
  .lesson-actions {
    flex: 0 0 auto;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--navy-line);
    background: rgba(10,22,40,.92); backdrop-filter: blur(10px);
  }
  .lesson-actions:empty { display: none; }
  .lesson-actions .btn { margin-top: 0; }

  .speech {
    display: flex; gap: 12px; align-items: flex-start; margin-bottom: 22px;
  }
  .speech .mini-webo { width: 52px; flex-shrink: 0; }
  .speech .mini-webo svg { width: 100%; }
  .bubble {
    background: var(--navy-card); border: 1px solid var(--navy-line);
    border-radius: 4px 16px 16px 16px; padding: 13px 15px; font-size: 15px;
    line-height: 1.5; font-weight: 600;
  }

  .step-img { text-align: center; margin: 8px 0 20px; }

  h3.q { font-family: 'Baloo 2'; font-weight: 700; font-size: 19px; margin-bottom: 14px; text-align: center; }

  .btn {
    width: 100%; border: none; border-radius: 15px; padding: 15px;
    font-family: 'Baloo 2'; font-weight: 700; font-size: 16px; cursor: pointer;
    background: linear-gradient(145deg, var(--orange-bright), var(--orange-deep));
    color: #2a1a00; box-shadow: 0 6px 16px rgba(245,166,35,.3);
    transition: transform .15s; margin-top: 8px;
  }
  .btn:active { transform: scale(.97); }
  .btn.ghost { background: var(--navy-card); color: var(--text); border: 1px solid var(--navy-line); box-shadow: none; }
  .btn:disabled { opacity: .4; cursor: not-allowed; }

  .choices { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 8px; }
  .choice {
    border: 1.5px solid var(--navy-line); background: var(--navy-card); color: var(--text);
    border-radius: 14px; padding: 15px; font-size: 15px; font-weight: 700; cursor: pointer;
    text-align: left; transition: all .15s; font-family: 'Nunito';
  }
  .choice:hover { border-color: var(--orange); }
  .choice.correct { border-color: var(--green); background: rgba(94,212,122,.12); }
  .choice.wrong { border-color: var(--red); background: rgba(255,123,107,.12); }

  .feedback {
    border-radius: 14px; padding: 14px; font-size: 14.5px; font-weight: 600; line-height: 1.5;
    margin-top: 12px; display: none;
  }
  .feedback.show { display: block; animation: slideUp .3s; }
  .feedback.good { background: rgba(94,212,122,.10); border: 1px solid rgba(94,212,122,.4); }
  .feedback.info { background: rgba(79,209,197,.10); border: 1px solid rgba(79,209,197,.4); }

  /* Jars interactive */
  .jar-game { display: flex; justify-content: space-around; gap: 8px; margin: 4px 0 16px; }
  .jar-col { flex: 1; text-align: center; }
  .jar-vessel { position: relative; padding-top: 9px; }
  .jar-rim { position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: calc(100% + 10px); height: 9px; background: var(--cream); border-radius: 5px;
    z-index: 2; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
  .jar-big {
    height: 116px; border: 3px solid var(--cream); border-top: 2px solid var(--cream);
    border-radius: 5px 5px 16px 16px; position: relative; overflow: hidden;
    background: rgba(255,255,255,.04); cursor: pointer; transition: transform .12s;
  }
  .jar-big:active { transform: scale(.96); }
  .jar-fill { position: absolute; bottom: 0; left: 0; right: 0; height: 0;
    transition: height .45s cubic-bezier(.34,1.56,.64,1); }
  .jar-col.spend .jar-fill { background: linear-gradient(var(--red), #d9594a); }
  .jar-col.save .jar-fill { background: linear-gradient(var(--teal), #2fb3a8); }
  .jar-col.grow .jar-fill { background: linear-gradient(var(--green), #3fae5c); }
  .jar-shine { position: absolute; top: 7px; left: 9px; width: 7px; height: 56%;
    border-radius: 6px; background: linear-gradient(rgba(255,255,255,.4), rgba(255,255,255,0));
    pointer-events: none; z-index: 1; }
  .coin-drop { position: absolute; top: 2px; left: 50%; font-size: 20px; line-height: 1;
    pointer-events: none; z-index: 1; }
  .jar-label { display: inline-block; font-family: 'Baloo 2'; font-weight: 800; font-size: 12px;
    letter-spacing: .5px; margin-top: 10px; padding: 2px 11px; border-radius: 999px; }
  .jar-col.spend .jar-label { color: var(--red);   background: rgba(255,123,107,.15); }
  .jar-col.save  .jar-label { color: var(--teal);  background: rgba(79,209,197,.15); }
  .jar-col.grow  .jar-label { color: var(--green); background: rgba(94,212,122,.15); }
  .jar-amt { font-size: 12px; color: var(--text-dim); font-weight: 700; margin-top: 4px; }
  @media (prefers-reduced-motion: reduce) {
    .jar-fill, .jar-big { transition: none; }
  }
  .coins-left { text-align: center; font-family: 'Baloo 2'; font-weight: 700; font-size: 15px; margin-bottom: 24px; }
  .coins-left b { color: var(--orange); font-size: 20px; }

  /* Penny slider */
  .penny-display { text-align: center; margin: 10px 0 6px; }
  .penny-day { font-size: 13px; color: var(--text-dim); font-weight: 700; }
  .penny-val { font-family: 'Baloo 2'; font-weight: 800; font-size: 42px; color: var(--orange);
    line-height: 1.1; transition: color .3s; }
  .penny-vs { font-size: 13px; color: var(--text-dim); margin-top: 4px; font-weight: 700; }
  input[type=range] { width: 100%; margin: 18px 0 6px; accent-color: var(--orange); height: 6px; }
  .penny-bar-wrap { height: 90px; display: flex; align-items: flex-end; gap: 3px; margin: 14px 0; }
  .penny-bar { flex: 1; background: linear-gradient(var(--orange-bright), var(--orange-deep));
    border-radius: 3px 3px 0 0; min-height: 2px; transition: height .2s; opacity: .85; }

  /* Seeds game */
  .seed-field { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 6px 0 14px; }
  .seed {
    aspect-ratio: 1; border-radius: 16px; border: 1.5px solid var(--navy-line);
    background: var(--navy-card); display: grid; place-items: center; font-size: 30px;
    cursor: pointer; transition: all .2s; position: relative;
  }
  .seed:active { transform: scale(.93); }
  .seed.planted { cursor: default; }
  .seed.grown { border-color: var(--green); background: rgba(94,212,122,.12); }
  .seed.failed { border-color: var(--red); background: rgba(255,123,107,.10); opacity: .7; }
  .seed.slow { border-color: var(--teal); background: rgba(79,209,197,.10); }

  /* Needs vs Wants */
  .nw-progress { text-align: center; font-family: 'Baloo 2'; font-weight: 700; font-size: 13px; color: var(--text-dim); margin-bottom: 12px; }
  .nw-item { text-align: center; font-size: 72px; line-height: 1; margin: 6px 0 18px; }
  .nw-name { font-family: 'Baloo 2'; font-weight: 700; font-size: 18px; color: var(--text); margin-top: 8px; }
  .nw-choices { display: flex; gap: 12px; margin-bottom: 4px; }
  .nw-choices .choice { flex: 1; text-align: center; font-family: 'Baloo 2'; }

  /* Lesson 6: Earning Money */
  .earn-total { text-align: center; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 19px; color: var(--orange-bright); margin-bottom: 14px; }
  .earn-count { font-size: 24px; }
  .earn-jobs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
  .earn-jobs .choice { display: flex; align-items: center; text-align: left; font-family: 'Baloo 2', sans-serif; font-weight: 700; }
  .earn-pay { margin-left: auto; color: var(--green); font-size: 13px; white-space: nowrap; }

  /* Lesson 5: Saving for a Goal */
  .goal-top { text-align: center; font-size: 40px; line-height: 1; margin-bottom: 8px; }
  .goal-count { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 20px; color: var(--orange-bright); vertical-align: middle; margin-left: 6px; }
  .goal-bar { height: 16px; background: var(--navy-card); border: 1px solid var(--navy-line); border-radius: 10px; overflow: hidden; margin: 4px 0 14px; }
  .goal-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--green)); border-radius: 10px; transition: width .5s cubic-bezier(.34,1.56,.64,1); }
  .goal-week { text-align: center; font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 14px; color: var(--text-dim); margin-bottom: 12px; }
  .goal-choices { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
  .goal-choices .choice { text-align: center; font-family: 'Baloo 2', sans-serif; font-weight: 700; }

  /* Reward modal */
  .reward {
    position: fixed; inset: 0; z-index: 80; display: none;
    background: rgba(5,12,24,.8); backdrop-filter: blur(6px);
    align-items: center; justify-content: center; padding: 30px;
  }
  .reward.show { display: flex; animation: slideUp .3s; }
  .reward-card {
    background: linear-gradient(160deg, var(--navy-card), var(--navy));
    border: 1px solid var(--orange); border-radius: 26px; padding: 30px 26px;
    text-align: center; max-width: 360px; width: 100%;
    box-shadow: 0 0 50px rgba(245,166,35,.25);
  }
  .reward-card .big-webo { width: 110px; margin: 0 auto 6px; animation: bob 3s ease-in-out infinite; }
  .reward-card .big-webo svg { width: 100%; }
  .reward-card h2 { font-family: 'Baloo 2'; font-weight: 800; font-size: 24px; margin-bottom: 6px; }
  .reward-card p { font-size: 14.5px; color: var(--text-dim); font-weight: 600; line-height: 1.5; margin-bottom: 8px; }
  .reward-stars { font-size: 30px; margin: 10px 0 18px; letter-spacing: 6px; }
  .confetti { position: fixed; top: -10px; width: 9px; height: 14px; z-index: 90; pointer-events: none; }

  /* Save / move-to-another-device progress code (anonymous, no PII) */
  .head-right { display: flex; align-items: center; gap: 10px; }
  .device-btn {
    background: var(--navy-card); border: 1px solid var(--navy-line); color: var(--text-dim);
    border-radius: 10px; padding: 6px 10px; cursor: pointer; font-family: inherit; font-weight: 800;
    font-size: 12px; display: inline-flex; align-items: center; gap: 5px;
  }
  .device-btn svg { width: 14px; height: 14px; }
  .device-btn:active { transform: scale(.97); }
  .code-block {
    font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 30px; letter-spacing: 5px;
    color: var(--orange-bright); background: var(--navy-deep); border: 1px dashed var(--orange);
    border-radius: 14px; padding: 14px; margin: 10px 0; user-select: all;
  }
  .code-hint { font-size: 12.5px; color: var(--text-dim); font-weight: 600; line-height: 1.5; }
  .code-divider { height: 1px; background: var(--navy-line); margin: 18px 0; }
  .code-input {
    width: 100%; background: var(--navy-card); border: 1px solid var(--navy-line); color: var(--text);
    border-radius: 12px; padding: 12px; font-family: 'Baloo 2', sans-serif; font-weight: 800;
    font-size: 20px; letter-spacing: 4px; text-align: center; text-transform: uppercase;
  }
  .code-input:focus { outline: none; border-color: var(--orange); }
  .code-msg { font-size: 13px; font-weight: 700; margin-top: 10px; min-height: 18px; }
  .code-msg.ok { color: var(--green); }
  .code-msg.err { color: var(--red); }
  .btn.small { font-size: 14px; padding: 11px; margin-top: 10px; }

  /* Ask Webo chat */
  .ask-fab {
    /* Sit in the right gutter BESIDE the 480px column on desktop (240px half-column
       + 72px gap); clamp to 16px from the edge on narrow screens where there is no gutter. */
    position: fixed; bottom: 20px; right: max(16px, calc(50% - 312px)); z-index: 40;
    background: linear-gradient(145deg, #3a5f8a, #1f3a5c);
    color: #eaf2ff; border: none; border-radius: 26px; padding: 13px 18px 13px 14px;
    font-family: 'Baloo 2'; font-weight: 700; font-size: 14px; cursor: pointer;
    display: flex; align-items: center; gap: 8px; box-shadow: 0 8px 22px rgba(10,22,40,.5);
    animation: bob 3.4s ease-in-out infinite;
  }
  @media (max-width: 480px){ .ask-fab { right: 16px; } }
  .ask-fab .fab-webo { width: 30px; height: 30px; }
  .ask-fab .fab-webo svg { width: 100%; }

  .chat {
    position: fixed; inset: 0; z-index: 70; display: none;
    max-width: 480px; margin: 0 auto; flex-direction: column;
    background: var(--navy-deep);
  }
  .chat.show { display: flex; animation: slideUp .3s; }
  .chat-head {
    display: flex; align-items: center; gap: 12px; padding: 16px 18px;
    border-bottom: 1px solid var(--navy-line); background: var(--navy);
  }
  .chat-head .mini-webo { width: 40px; }
  .chat-head .mini-webo svg { width: 100%; }
  .chat-head .ch-name { font-family: 'Baloo 2'; font-weight: 700; font-size: 16px; }
  .chat-head .ch-sub { font-size: 11.5px; color: var(--teal); font-weight: 700; }
  .chat-head .close-x { margin-left: auto; width: 34px; height: 34px; border-radius: 10px;
    border: 1px solid var(--navy-line); background: var(--navy-card); color: var(--text);
    cursor: pointer; font-size: 18px; }
  .chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
  .msg { max-width: 82%; padding: 12px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; font-weight: 600; }
  .msg.bot { align-self: flex-start; background: var(--navy-card); border: 1px solid var(--navy-line); border-radius: 4px 16px 16px 16px; }
  .msg.me { align-self: flex-end; background: linear-gradient(145deg, var(--orange-bright), var(--orange-deep)); color: #2a1a00; border-radius: 16px 16px 4px 16px; }
  .typing span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--text-dim); margin: 0 1px; animation: typing 1.2s infinite; }
  .typing span:nth-child(2){ animation-delay:.2s } .typing span:nth-child(3){ animation-delay:.4s }
  @keyframes typing { 0%,60%,100%{transform:translateY(0); opacity:.4} 30%{transform:translateY(-5px); opacity:1} }
  .chat-suggest { display: flex; gap: 8px; padding: 0 14px 10px; overflow-x: auto; }
  .chat-suggest button { white-space: nowrap; border: 1px solid var(--navy-line); background: var(--navy-card);
    color: var(--text-dim); border-radius: 16px; padding: 8px 13px; font-size: 12.5px; font-weight: 700; cursor: pointer; flex-shrink: 0; }
  .chat-input { display: flex; gap: 9px; padding: 12px 14px; border-top: 1px solid var(--navy-line); background: var(--navy); }
  .chat-input input { flex: 1; background: var(--navy-card); border: 1px solid var(--navy-line);
    border-radius: 14px; padding: 13px 15px; color: var(--text); font-size: 15px; font-family: 'Nunito'; font-weight: 600; }
  .chat-input input:focus { outline: none; border-color: var(--orange); }
  .chat-input button { width: 48px; border: none; border-radius: 14px; cursor: pointer;
    background: linear-gradient(145deg, var(--orange-bright), var(--orange-deep)); color: #2a1a00; font-size: 18px; }
  .chat-input button:disabled { opacity: .4; }

  .footer-note { text-align: center; font-size: 11px; color: var(--text-dim); opacity: .6; padding: 22px 30px 8px; line-height: 1.5; }
