/* Trade Lee — shared design system (landing + game) */
/*
 * LAYOUT SAFETY RULE (read before adding any wrapper, modal, or sheet):
 * - Page-level wrappers use min-height, never a fixed height, and never
 *   overflow-y: hidden — the page must always be free to grow and scroll.
 * - Any modal / bottom sheet / overlay card gets max-height: 90vh plus
 *   overflow-y: auto, so it degrades to an internal scroll on a short
 *   window instead of clipping content with no way to reach it.
 * - overflow-x: hidden on html/body is fine (kills horizontal scroll from
 *   full-bleed sections); overflow-y must always stay open at that level.
 * A fixed-height stack (chart-card, etc.) is the #1 way this site has
 * broken on real 1366x768 / 1280x600 desktop windows — browser chrome eats
 * into the visible viewport, so anything sized off raw vh assuming a tall
 * window silently pushes controls below the fold. Prefer vh with a sane
 * min/max clamp over a rigid px height for anything above the fold.
 */

:root {
  /* ---------- elevation system: bg < surface < raised ----------
     bg = page background. surface = a normal card, one step up.
     raised = actively-focused content (hover, modal, active tab) — a touch
     lighter with a barely-visible top-light gradient, never plain black. */
  --bg: #05070c;
  --surface: #12161f;
  --surface-2: #1a2030;
  --surface-raised: #1c2230;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* ---------- contrast ladder: 4 intensity levels ----------
     DATA (--text-data) beats everything else on screen — prices, P&L,
     candle values, ratings. PRIMARY (--text) is headlines/body copy, one
     step down. SUPPORT (--text-dim) is labels/legends/nav. STRUCTURE is
     --border/--border-strong above — barely visible, never competes. */
  --text-data: #ffffff;
  --text: #e7ebf3;
  --text-dim: #8b95a7;

  /* single shadow scale — every elevated element picks one of these three */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.45);
  /* one transition duration for anything that isn't a spring/bounce button press */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;

  /* ---------- motion system: one easing curve, three durations ----------
     micro = state changes (hover, toggle, chip). standard = card/panel/
     sheet entrances. emphasis = big reveals (candle draw-in, milestone
     pop). The springy button-press curve below is the one deliberate
     exception to "one easing curve" — everything else uses --ease. */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --duration-micro: 150ms;
  --duration-standard: 250ms;
  --duration-emphasis: 400ms;

  --green: #22c55e;
  --green-dark: #16843a;
  --red: #ef4444;
  --red-dark: #b91c1c;
  --gold: #f5b400;
  --purple: #c792ea;

  /* candle colors (kept distinct from UI green/red for chart familiarity) */
  --candle-green: #26a69a;
  --candle-red: #ef5350;

  /* fonts */
  --font-display: "Chakra Petch", "Segoe UI", Arial, sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; }

.hidden { display: none !important; }

/* persistent top progress strip — shown on lesson/drill screens only;
   platforms have chrome, toys don't */
.session-progress-strip {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: var(--border); z-index: 500; pointer-events: none;
}
.session-progress-fill {
  height: 100%; width: 0%; background: var(--green);
  transition: width 0.3s ease;
}

/* ---------- layered site background ---------- */
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 520px at 50% -8%, rgba(34, 197, 94, 0.045), transparent 65%),
    radial-gradient(ellipse 140% 140% at 50% 30%, transparent 45%, rgba(0, 0, 0, 0.35) 100%),
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: auto, auto, 46px 46px, 46px 46px;
  background-attachment: fixed, fixed, fixed, fixed;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  animation: tlPageFadeIn var(--duration-micro) var(--ease);
}
@keyframes tlPageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- buttons: one consistent system ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  padding: 16px 22px;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  transition: transform var(--duration-micro) var(--ease-spring), box-shadow var(--duration-micro) var(--ease), opacity var(--duration-micro) var(--ease);
  -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), inset 0 -1px 0 rgba(0,0,0,0.12), 0 6px 20px var(--btn-shadow-color, rgba(0,0,0,0.2));
}
.btn:active { transform: translateY(1px) scale(0.98); box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), inset 0 -1px 0 rgba(0,0,0,0.12), 0 2px 8px var(--btn-shadow-color, rgba(0,0,0,0.18)); }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; }

.btn-primary {
  background: linear-gradient(180deg, var(--green), var(--green-dark));
  --btn-shadow-color: rgba(34, 197, 94, 0.25);
}
.btn-primary:hover { box-shadow: 0 8px 26px rgba(34, 197, 94, 0.35); }

.btn-danger {
  background: linear-gradient(180deg, var(--red), var(--red-dark));
  --btn-shadow-color: rgba(239, 68, 68, 0.25);
}

.btn-gold {
  background: linear-gradient(135deg, #ffb020, #ff5e3a);
  color: #1a0a00;
  --btn-shadow-color: rgba(255, 130, 0, 0.3);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  box-shadow: none;
}
.btn-ghost:active { box-shadow: none; }
.btn-ghost:hover { border-color: var(--text-dim); }

/* ---------- cards ---------- */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 40%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-micro) var(--ease), box-shadow var(--duration-micro) var(--ease), border-color var(--duration-micro) var(--ease);
  will-change: transform;
}
.card:hover {
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 40%), var(--surface-raised);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

/* ---------- tabular / terminal numerals ---------- */
.mono-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.2px;
}

/* ---------- site header / nav (marketing pages) ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}
.nav-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 7px;
}
.nav-links-desktop {
  display: none;
  align-items: center;
  gap: 34px;
}
.nav-links-desktop a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links-desktop a:hover { color: var(--green); }
.nav-disabled {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: default;
  user-select: none;
}
.soon-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--gold);
  border: 1px solid rgba(245, 180, 0, 0.4);
  border-radius: 999px;
  padding: 2px 6px;
}

/* ---------- nav dropdowns (desktop) ---------- */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  background: none; border: none; color: var(--text); font-family: var(--font-body);
  font-size: 0.92rem; font-weight: 500; cursor: pointer; padding: 0;
  display: flex; align-items: center; gap: 4px; transition: color 0.15s ease;
}
.nav-dropdown-trigger:hover { color: var(--green); }
.nav-dropdown .caret { font-size: 0.65rem; transition: transform 0.15s ease; display: inline-block; }
.nav-dropdown.open .caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%), var(--surface-raised);
  border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 8px; min-width: 180px; flex-direction: column; gap: 2px;
  box-shadow: var(--shadow-lg); z-index: 60;
}
.nav-dropdown.open .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a, .nav-dropdown-menu .nav-disabled-item {
  padding: 9px 12px; border-radius: 8px; font-size: 0.9rem; text-decoration: none;
  color: var(--text); display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--surface-2); color: var(--green); }
.nav-dropdown-menu .nav-disabled-item { color: var(--text-dim); cursor: default; }
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  align-items: center;
}
.hamburger-btn span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  overflow-y: auto;
  padding: 70px 20px 30px;
}
.mobile-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.mobile-menu-overlay a,
.mobile-menu-overlay .nav-disabled-mobile {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-menu-overlay .nav-disabled-mobile {
  color: var(--text-dim);
}
.mobile-menu-label {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  margin: 20px 0 2px;
  width: 100%;
  text-align: center;
}
.mobile-menu-overlay .mobile-menu-label:first-of-type { margin-top: 0; }
.mobile-menu-close {
  position: absolute;
  top: 18px; right: 20px;
  width: 44px; height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
}

@media (min-width: 720px) {
  .nav-links-desktop { display: flex; }
  .hamburger-btn { display: none; }
}

/* ---------- shared footer (marketing pages) ---------- */
.site-footer {
  padding: 50px 0 30px;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}
.site-footer .footer-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.site-footer .footer-tagline {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-bottom: 18px;
}
.site-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
}
.site-footer .footer-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.site-footer .footer-links a:hover { border-color: var(--text-dim); color: var(--text); }
.site-footer .footer-legal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 10px;
  font-size: 0.78rem;
}
.site-footer .footer-legal a {
  color: var(--text-dim);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-footer .footer-legal a:hover { color: var(--text); }
.site-footer .footer-disclaimer {
  color: var(--text-dim);
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ---------- coming soon pages ---------- */
.coming-soon {
  text-align: center;
  padding: 90px 20px 70px;
  max-width: 560px;
  margin: 0 auto;
}
.coming-soon .badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--gold);
  border: 1px solid rgba(245, 180, 0, 0.4);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 18px;
}
.coming-soon h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 2.8rem);
  margin: 0 0 14px;
}
.coming-soon p.teaser {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0 0 34px;
}
.notify-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
  margin: 0 auto;
}
@media (min-width: 480px) {
  .notify-form { flex-direction: row; }
}
.notify-form input[type="email"] {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 14px 16px;
  outline: none;
}
.notify-form input[type="email"]:focus { border-color: var(--border-strong); }
.notify-form .btn { white-space: nowrap; }
.notify-note {
  color: var(--text-dim);
  font-size: 0.75rem;
  margin-top: 12px;
  opacity: 0.7;
}

/* ---------- content pages (risk, strategies) ---------- */
.content-page { max-width: 760px; margin: 0 auto; padding: 50px 20px 80px; }
@media (min-width: 960px) {
  .content-page { padding: 75px 20px 120px; }
  /* each .content-card is a distinct group (own heading + topic) — give the
     boundary between them more air on desktop; content inside a card stays
     at its own tighter rhythm */
  .content-card { margin-bottom: 22px; }
}
.content-hero { text-align: center; margin-bottom: 40px; }
.content-hero .badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 16px;
}
.content-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 2.8rem);
  margin: 0 0 12px;
}
.content-hero p {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 560px;
  margin: 0 auto;
}
.content-card { padding: 26px 24px; margin-bottom: 18px; }
.content-card h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.content-card h2 .card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-data);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.content-card p {
  color: var(--text);
  line-height: 1.65;
  margin: 0 0 14px;
  font-size: 0.96rem;
}
.content-card p:last-child { margin-bottom: 0; }
.content-card .formula {
  font-family: var(--font-mono);
  font-size: 1rem;
  text-align: center;
  color: var(--gold);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 12px;
  margin: 18px 0;
  font-weight: 700;
  line-height: 1.5;
}
.data-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.88rem; }
.data-table th, .data-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table tbody tr { transition: background-color 0.12s ease; }
.data-table tbody tr:hover { background-color: var(--surface-2); }
.data-table th {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.data-table td { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text-data); }
.data-table tr:last-child td { border-bottom: none; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: 0.95rem; line-height: 1.55; color: var(--text);
}
.checklist li:last-child { border-bottom: none; }
.checklist li .check-icon { color: var(--green); flex-shrink: 0; margin-top: 2px; font-weight: 700; }
.content-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
}
.content-cta:hover { text-decoration: underline; }
.content-card .the-catch {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 16px;
}
.content-card .the-catch .catch-label {
  color: var(--red);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
  display: block;
}
.content-card .summary {
  color: var(--text-dim);
  font-style: italic;
  font-size: 0.95rem;
  margin: 0 0 16px;
}
.strategy-block-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--green);
  margin: 18px 0 8px;
  font-weight: 700;
}

/* ---------- accounts: auth modal + sign-in prompts (shared via auth.js) ---------- */
.auth-modal-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(5, 7, 12, 0.75);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none;
  transition: opacity 0.15s ease;
}
.auth-modal-overlay.show { opacity: 1; pointer-events: auto; }
.auth-modal-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%), var(--surface-raised);
  border: 1px solid var(--border-strong); border-radius: 16px;
  padding: 28px 24px; max-width: 380px; width: 100%; position: relative;
  max-height: 90vh; overflow-y: auto; box-sizing: border-box;
  box-shadow: var(--shadow-lg);
}
.auth-modal-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); cursor: pointer; font-size: 1rem;
}
.auth-modal-card h3 { font-family: var(--font-display); font-size: 1.3rem; margin: 0 0 8px; }
.auth-modal-card p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.5; margin: 0 0 18px; }
.legal-consent-line, .auth-modal-card p.legal-consent-line {
  font-size: 0.75rem; color: var(--text-dim); opacity: 0.75; text-align: center;
  margin: 10px 0 0; line-height: 1.4;
}
.legal-consent-line a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; }
.auth-modal-card input {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 12px 14px; color: var(--text); font-family: var(--font-body); font-size: 0.95rem;
  margin-bottom: 12px; outline: none; box-sizing: border-box;
}
.auth-modal-card input:focus { border-color: var(--border-strong); }
.auth-modal-error { color: var(--red); font-size: 0.82rem; margin: -4px 0 12px; }
.auth-modal-success { color: var(--green); font-size: 0.95rem; font-weight: 600; }
.auth-modal-card .btn { width: 100%; }
.auth-modal-card .btn:disabled { opacity: 0.5; cursor: default; }
.auth-password-field { position: relative; margin-bottom: 12px; }
.auth-password-field input { padding-right: 56px; margin-bottom: 0; }
.auth-password-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-dim); font-size: 0.78rem;
  font-family: var(--font-body); font-weight: 600; cursor: pointer; padding: 6px 8px;
}
.auth-password-toggle:hover { color: var(--text); }
.auth-modal-links {
  display: flex; justify-content: space-between; gap: 10px; margin: 12px 0 4px;
  font-size: 0.82rem; flex-wrap: wrap;
}
.auth-modal-links .link-btn, .auth-modal-switch .link-btn {
  background: none; border: none; color: var(--text-dim); text-decoration: underline;
  text-underline-offset: 2px; font-family: var(--font-body); font-size: inherit; cursor: pointer; padding: 0;
}
.auth-modal-links .link-btn:hover, .auth-modal-switch .link-btn:hover { color: var(--text); }
.auth-modal-switch { text-align: center; font-size: 0.85rem; color: var(--text-dim); margin: 14px 0 0; }
.tl-account-menu {
  position: absolute; z-index: 500; min-width: 200px;
  background: var(--card); border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 6px; box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,0.4));
  display: flex; flex-direction: column; gap: 2px;
  animation: coachIn var(--duration-micro, 150ms) var(--ease, ease);
}
.tl-account-menu-item {
  background: none; border: none; color: var(--text); text-align: left;
  font-family: var(--font-body); font-size: 0.88rem; padding: 10px 12px;
  border-radius: 8px; cursor: pointer; white-space: nowrap;
}
.tl-account-menu-item:hover { background: var(--surface-2); }
.tl-account-menu-signout { color: var(--red); }
.signin-prompt {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; text-align: center; font-size: 0.88rem; color: var(--text-dim);
  margin-top: 12px; line-height: 1.5;
}
.signin-prompt button.link-btn {
  background: none; border: none; color: var(--green); font-weight: 700; cursor: pointer;
  text-decoration: underline; font-size: 0.88rem; padding: 0; font-family: inherit;
}
.account-chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-dim);
}
.account-chip button.link-btn {
  background: none; border: none; color: var(--text-dim); text-decoration: underline; cursor: pointer;
  font-size: 0.78rem; padding: 0; font-family: inherit;
}
.skeleton-line {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border-strong) 37%, var(--surface-2) 63%);
  background-size: 400% 100%;
  animation: skeletonShimmer 1.4s ease infinite;
  border-radius: 6px;
  height: 14px;
}
@keyframes skeletonShimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
.offline-notice {
  background: rgba(139, 149, 167, 0.08); border: 1px solid var(--border);
  color: var(--text-dim); border-radius: 10px; padding: 10px 14px;
  font-size: 0.8rem; text-align: center; margin-bottom: 14px;
}
