/* ═══ TOKENS ═══ */
:root {
  /* Values from the Harsa ERP stylesheet. */
  color-scheme: light dark;
  --bg: #fafafa;
  --surface: #ffffff;
  --hover: #f4f4f5;
  --text: #09090b;
  --muted: #6b6b73;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --accent: #3446e0;
  --accent-hover: #2a3ac4;
  --accent-text: #ffffff;
  --accent-soft: #eceefb;
  --accent-ink: #3446e0;
  --star: #8a5a0a;
  --good: #16794f;
  --good-bg: #e4f5ec;
  --wait: #8a5a0a;
  --wait-bg: #fbf1df;
  --error: #b42318;
  --error-bg: #fdecea;
  --callout: #ffffff;
  --cover: #f4f4f5;
  --band: #18181b;
  --band-text: #fafafa;
  --band-muted: #d4d4d8;
  --iso-a-top: #7c89f5;
  --iso-a-left: #3446e0;
  --iso-a-right: #2534b0;
  --iso-n-top: #e4e4e7;
  --iso-n-left: #a1a1aa;
  --iso-n-right: #71717a;
  --iso-l-top: #ffffff;
  --iso-l-left: #d4d4d8;
  --iso-l-right: #a1a1aa;
  --tip-bg: #09090b;
  --tip-text: #fafafa;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0b;
    --surface: #131315;
    --hover: #1b1b1e;
    --text: #fafafa;
    --muted: #a1a1aa;
    --border: #27272a;
    --border-strong: #3f3f46;
    --accent: #7c89f5;
    --accent-hover: #929df7;
    --accent-text: #0a0a0b;
    --accent-soft: #20244a;
    --accent-ink: #aab3f9;
    --star: #e8b14d;
    --good: #4ade94;
    --good-bg: #12301f;
    --wait: #e8b14d;
    --wait-bg: #3a2c10;
    --error: #f97066;
    --error-bg: #3a1512;
    --callout: #131315;
    --cover: #1b1b1e;
    --band: #18181b;
    --iso-a-top: #aab3f9;
    --iso-a-left: #7c89f5;
    --iso-a-right: #4a58d6;
    --iso-n-top: #52525b;
    --iso-n-left: #3f3f46;
    --iso-n-right: #27272a;
    --iso-l-top: #e4e4e7;
    --iso-l-left: #a1a1aa;
    --iso-l-right: #71717a;
    --tip-bg: #fafafa;
    --tip-text: #09090b;
  }
}
/* 12px on panels, 9px on controls */
.btn, input, select, textarea, .file, .notice { --radius: 9px; }

/* ═══ BASE ═══ */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 Inter, -apple-system, "Segoe UI", sans-serif;
}
button, input, textarea { font: inherit; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.demo-banner { padding: 6px 16px; background: var(--wait-bg); color: var(--wait); font-size: 13px; text-align: center; }

/* ═══ HEADER ═══ */
.bar { display: flex; align-items: center; gap: 20px; padding: 10px 24px; background: var(--surface); border-bottom: 1px solid var(--border); }
.nw-sprite { position: absolute; color: var(--text); }
.mark { display: block; flex: none; width: 29px; height: 24px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 19px; font-weight: 600; letter-spacing: -.03em; line-height: 1; text-decoration: none; white-space: nowrap; }
.logo b { font-weight: 400; }
.bar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
#account-open { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ═══ MENU ═══ */
#nav-toggle { display: none; flex: none; place-items: center; width: 40px; height: 40px; padding: 0; background: none; border: 0; border-radius: 9px; color: var(--text); cursor: pointer; }
#nav-toggle:hover { background: var(--hover); }
#nav-toggle svg.i { width: 22px; height: 22px; }
#nav-scrim { position: fixed; inset: 0; z-index: 19; background: rgb(0 0 0 / .5); }
.app-shell { display: grid; grid-template-columns: 200px minmax(0, 1fr); }
.side-nav { position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; gap: 2px; max-height: 100vh; overflow-y: auto; padding: 12px 10px; }
.nav-community { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 6px 8px 12px; border-bottom: 1px solid var(--border); }
.nav-community strong, .nav-community small { display: block; line-height: 1.3; }
.nav-community small { font-size: 12px; }
.nav-rule { width: 100%; margin: 12px 0 8px; border: 0; border-top: 1px solid var(--border); }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; }
.side-nav a:hover { background: var(--hover); color: var(--text); }
.side-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); }
.app-main { min-width: 0; min-height: 80vh; border-left: 1px solid var(--border); }

/* ═══ BUTTONS ═══ */
.btn { display: inline-block; padding: 6px 12px; border: 1px solid transparent; border-radius: var(--radius); font-size: 14px; font-weight: 500; text-align: center; text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--accent); color: var(--accent-text); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.primary:disabled { opacity: .6; cursor: wait; }
.btn.ghost { background: none; color: var(--text); }
.btn.ghost:hover { background: var(--hover); }
.btn.outline { background: none; color: var(--text); border-color: var(--border-strong); }
.btn.outline:hover { background: var(--hover); }
.btn.large { padding: 10px 16px; font-size: 15px; }
.wide { width: 100%; }
.link { padding: 0; background: none; border: 0; color: var(--muted); font-size: 14px; text-decoration: underline; cursor: pointer; }

/* ═══ PAGE ═══ */
.page { padding: 0 24px; }
.section { padding-top: 56px; }
.section-title { margin-bottom: 16px; font-size: 24px; }
.muted { color: var(--muted); }
.footer { margin: 72px 0 0; padding: 20px 24px 32px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }

/* ═══ HOME ═══ */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.pill { padding: 3px 10px; background: none; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 14px; cursor: pointer; }
.pill:hover { background: var(--hover); }
.pill[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.two { grid-template-columns: repeat(2, 1fr); }

/* ═══ PRODUCT CARD ═══ */
.product { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: inherit; text-decoration: none; overflow: hidden; }
.product:hover { background: var(--hover); }
.cover { display: flex; align-items: center; justify-content: center; height: 148px; padding: 12px; background: var(--cover); border-bottom: 1px solid var(--border); }
.iso { display: block; height: 100%; max-width: 100%; }
.iso polygon { stroke: var(--cover); stroke-width: .5; stroke-linejoin: round; }
.iso-a-top { fill: var(--iso-a-top); } .iso-a-left { fill: var(--iso-a-left); } .iso-a-right { fill: var(--iso-a-right); }
.iso-n-top { fill: var(--iso-n-top); } .iso-n-left { fill: var(--iso-n-left); } .iso-n-right { fill: var(--iso-n-right); }
.iso-l-top { fill: var(--iso-l-top); } .iso-l-left { fill: var(--iso-l-left); } .iso-l-right { fill: var(--iso-l-right); }
.product-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.product-body h3 { font-size: 17px; }
.product-body .sub { color: var(--muted); font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tag { padding: 0 6px; background: var(--hover); border-radius: 4px; color: var(--muted); font-size: 12px; font-weight: 500; }
.tag.bestseller { background: var(--accent-soft); color: var(--accent-ink); }
.tag.good { background: var(--good-bg); color: var(--good); }
.tag.wait { background: var(--wait-bg); color: var(--wait); }
.tag.bad { background: var(--error-bg); color: var(--error); }
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.rating strong { color: var(--star); }
.stars { color: var(--star); letter-spacing: 1px; }

/* ═══ CALLOUT AND PLANS ═══ */
.callout { display: flex; gap: 12px; padding: 16px; background: var(--callout); border: 1px solid var(--border); border-radius: var(--radius); }
.callout-icon { font-size: 20px; line-height: 1.4; }
.callout h3 { margin-bottom: 4px; font-size: 17px; }
.review { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); }
.review p { margin-top: 6px; }
.review .who { color: var(--muted); font-size: 13px; }

/* ═══ PRODUCT DETAIL ═══ */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; padding-top: 32px; }
.crumb { font-size: 14px; color: var(--muted); }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.detail-icon { display: none; height: 96px; margin-top: 16px; }
.detail h1 { margin-top: 8px; font-size: clamp(28px, 5vw, 40px); letter-spacing: -.01em; }
.detail .lead { margin-top: 8px; font-size: 18px; color: var(--muted); }
.detail-meta { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.detail .section { padding-top: 40px; }
.detail .section-title { font-size: 20px; }
.learn-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); list-style: none; }
.learn-list li::before { content: "✓ "; color: var(--muted); }
.detail-main, .detail-rest { grid-column: 1; }
.buybox-cta { display: contents; }
.buybox { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.buybox .cover { height: 170px; }
.buybox-body { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.price { font-size: 18px; font-weight: 700; }
.buybar { display: none; }

/* ═══ TOGGLES (CURRICULUM) ═══ */
details { border-bottom: 1px solid var(--border); }
details:first-of-type { border-top: 1px solid var(--border); }
summary { padding: 10px 4px; font-weight: 600; cursor: pointer; }
summary:hover { background: var(--hover); }
details ul { padding: 0 0 10px 22px; color: var(--muted); }

/* ═══ TOKEN ECONOMICS ═══ */
.table-wrap { margin-top: 12px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 7px 10px; border: 1px solid var(--border); text-align: right; white-space: nowrap; }
th { color: var(--muted); font-weight: 500; }
th:first-child, td:first-child { text-align: left; }
tfoot td { font-weight: 700; }
.fine { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* ═══ MY LEARNING ═══ */
.learning-list { display: flex; flex-direction: column; gap: 12px; }
.learning-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: inherit; text-decoration: none; }
.learning-item:hover { background: var(--hover); }
.learning-item .cover { height: 72px; padding: 6px; border: 1px solid var(--border); border-radius: 9px; }
.progress { height: 4px; margin-top: 8px; background: var(--border); border-radius: 2px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--accent); }

/* ═══ PLAYER ═══ */
.player { display: grid; grid-template-columns: minmax(0, 1fr) 340px; border-bottom: 1px solid var(--border); }
.screen { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: #0f0f0f; color: var(--muted); font-size: 14px; text-align: center; padding: 16px; }
.lesson-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; }
.lesson-head h1 { font-size: 20px; }
.lesson-side { border-left: 1px solid var(--border); }
.lesson-side h2 { padding: 12px 16px; font-size: 15px; border-bottom: 1px solid var(--border); }
.lesson-group { padding: 10px 16px 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.lesson { display: flex; gap: 8px; width: 100%; padding: 8px 16px; background: none; border: 0; color: var(--text); font-size: 14px; text-align: left; cursor: pointer; }
.lesson:hover { background: var(--hover); }
.lesson[aria-current="true"] { background: var(--hover); font-weight: 600; }
.lesson .check { color: var(--muted); }

/* ═══ ADMIN ═══ */
.admin-title { margin-top: 24px; }
.admin-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.admin-crumb { padding-top: 32px; margin-bottom: 8px; }
.notice { margin-bottom: 16px; padding: 10px 12px; background: var(--callout); border-radius: var(--radius); font-size: 14px; }
.was { color: var(--muted); font-size: 14px; font-weight: 400; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
#product-table th:first-child, #product-table td:first-child, #creative-table th:first-child, #creative-table td:first-child { position: sticky; left: 0; z-index: 1; background: var(--bg); }
.kpi { padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.kpi p { font-size: 13px; }
.kpi strong { display: block; font-size: 20px; overflow-wrap: anywhere; }
[data-tip] { position: relative; }
[data-tip]:hover::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); z-index: 4; transform: translateX(-50%); padding: 3px 8px; background: var(--tip-bg); border-radius: 4px; color: var(--tip-text); font-size: 12px; white-space: nowrap; pointer-events: none; }
.chart { display: flex; align-items: flex-end; gap: 2px; height: 180px; border-bottom: 1px solid var(--border); }
.bar-slot { display: flex; flex: 1; align-items: flex-end; justify-content: center; min-width: 0; height: 100%; }
.bar-slot:first-child[data-tip]:hover::after { left: 0; transform: none; }
.bar-slot:last-child[data-tip]:hover::after { left: auto; right: 0; transform: none; }
.bar-slot:hover { background: var(--hover); }
.bar-slot span { display: block; width: 100%; max-width: 14px; background: var(--accent); border-radius: 4px 4px 0 0; }
.chart-axis { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--muted); }
details.plain { margin-top: 10px; border: 0; }
details.plain summary { padding: 4px 0; color: var(--muted); font-size: 13px; font-weight: 500; }
.funnel { display: flex; flex-direction: column; gap: 10px; }
.funnel-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 130px; gap: 12px; align-items: center; font-size: 14px; }
.funnel-track { display: block; height: 10px; background: var(--border); border-radius: 0 4px 4px 0; }
.funnel-track span { display: block; height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; }
.funnel-value { color: var(--muted); text-align: right; }
.group-title { margin: 28px 0 10px; font-size: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid label { margin: 0; }
.form-actions { display: flex; align-items: flex-end; gap: 8px; }
select, textarea { width: 100%; padding: 8px 10px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); font: inherit; }
.file { padding: 8px 10px; margin: 0; border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.file input { padding: 0; border: 0; background: none; font-size: 13px; }
.section-editor { margin: 0 0 12px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); }
.lesson-rows { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.lesson-row { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 9px; }
.token-input input { width: 110px; padding: 4px 6px; text-align: right; }

/* ═══ BUILDER LANDING ═══ */
.eyebrow { margin-bottom: 14px; color: var(--accent-ink); font-size: 14px; font-weight: 600; }
.terminal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.terminal-head { padding: 8px 14px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.terminal pre { margin: 0; padding: 14px; overflow-x: auto; font: 13px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; }
.terminal .prompt { color: var(--accent-ink); }
.terminal .ok { color: var(--good); }
.terminal .dim { color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); counter-increment: step; }
.steps li::before { content: counter(step); display: block; margin-bottom: 10px; color: var(--accent-ink); font-weight: 700; }
.steps h3 { margin-bottom: 4px; font-size: 17px; }
.steps p { color: var(--muted); font-size: 15px; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 24px; align-items: center; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.feature h2 { margin-bottom: 6px; font-size: 22px; }
.feature .iso { height: 130px; margin: 0 auto; }
.feature .btn { margin-top: 14px; }

/* ═══ AFFILIATE ═══ */
.link-row { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.link-row code { overflow-wrap: anywhere; color: var(--muted); font-size: 13px; }
.rules { display: flex; flex-direction: column; gap: 6px; padding-left: 20px; color: var(--muted); }

/* ═══ ACCOUNT DIALOG ═══ */
dialog { width: min(420px, calc(100vw - 32px)); padding: 20px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 8px; }
dialog::backdrop { background: rgb(0 0 0 / .6); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.tagline { letter-spacing: .08em; }
dialog h2 { margin-bottom: 8px; font-size: 22px; }
#signed-in p { margin-bottom: 12px; color: var(--muted); }
label { display: block; margin-bottom: 12px; }
label span { display: block; margin-bottom: 4px; font-size: 14px; color: var(--muted); }
input { width: 100%; padding: 8px 10px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); }
.error { margin-bottom: 12px; font-size: 14px; color: var(--error); }

/* ═══ TABLET AND PHONE ═══ */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .detail { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .buybox { grid-column: 1; grid-row: auto; position: static; }
  .buybox .cover { display: none; }
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  #nav-toggle { display: grid; }
  .side-nav { position: fixed; top: 0; left: 0; bottom: 0; z-index: 20; width: min(280px, 84vw); max-height: none; padding: 12px 10px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-right: 1px solid var(--border); visibility: hidden; transform: translateX(-100%); transition: transform .18s, visibility .18s; }
  body.nav-open .side-nav { visibility: visible; transform: none; }
  body.nav-open { overflow: hidden; }
  .side-nav a { min-height: 44px; padding: 0 10px; }
  .app-main { border-left: 0; }
  .detail-icon { display: block; }
  .detail-icon .iso { height: 96px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .player { grid-template-columns: minmax(0, 1fr); }
  .lesson-side { border-left: 0; }
}
@media (max-width: 640px) {
  .bar { flex-wrap: wrap; gap: 6px 8px; padding: 8px 16px; }
  .bar > .logo { flex: 1; }
  #signup { display: none; }
  .page { padding: 0 16px; }
  .section { padding-top: 40px; }
  .grid, .two, .learn-list { grid-template-columns: minmax(0, 1fr); }
  .footer { margin-top: 48px; padding: 16px 16px 24px; }
  .lesson-head { padding: 12px 16px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .funnel-row { grid-template-columns: minmax(0, 1fr) auto; }
  .funnel-track { grid-column: 1 / -1; grid-row: 2; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi strong { font-size: 16px; }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature .iso { height: 100px; margin: 0; }
  .link-row { grid-template-columns: minmax(0, 1fr) auto; }
  .link-row code { grid-column: 1 / -1; grid-row: 2; }
  #product-table td:first-child, #creative-table td:first-child { max-width: 150px; white-space: normal; }
  .buybox-cta { display: none; }
  .has-buybar { padding-bottom: 76px; }
  .buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; padding-bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 8px; padding: 10px 16px; background: var(--surface); border-top: 1px solid var(--border); }
  .buybar .btn { flex: 1; padding: 10px 8px; }
}

/* ═══ COURSE PAGE ═══ */
.course-wrap { padding: 0 24px; }
.course-band { padding: 32px 0; background: var(--band); color: var(--band-text); }
.course-band .detail-main { max-width: 680px; }
.course-band .crumb, .course-band .lead, .course-band .rating { color: var(--band-muted); }
.course-band .crumb a { color: inherit; }
.course-band h1 { margin-top: 12px; font-size: clamp(26px, 4vw, 34px); letter-spacing: -.015em; }
.course-band .lead { margin-top: 10px; font-size: 18px; }
.course-band .detail-meta { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.course-band .rating strong, .course-band .stars { color: #e8b14d; }
.course-band .tag { background: rgb(255 255 255 / .12); color: var(--band-text); }
.course-band .tag.bestseller { background: var(--wait-bg); color: var(--wait); }
.course-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; padding-top: 32px; padding-bottom: 32px; }
.course-body .buybox { grid-column: 2; grid-row: 1; position: sticky; top: 16px; margin-top: -240px; z-index: 1; }
.detail-rest { grid-column: 1; grid-row: 1; min-width: 0; }
.buybox h3 { margin-top: 8px; font-size: 15px; }
.includes { display: flex; flex-direction: column; gap: 6px; padding: 0; list-style: none; font-size: 14px; }
.includes li, .accordion li { display: flex; align-items: center; gap: 10px; }
.learn-box { padding: 20px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.learn-box .section-title { margin-bottom: 14px; font-size: 22px; }
.learn-box .learn-list { padding: 0; border: 0; }
.learn-box .learn-list li { display: flex; gap: 10px; }
.learn-box .learn-list li::before { content: none; }
.detail-rest .section { padding-top: 32px; }
.detail-rest .section-title { font-size: 22px; }
.content-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 14px; }
.accordion { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.accordion details { border: 0; border-top: 1px solid var(--border); }
.accordion details:first-child { border-top: 0; }
.accordion summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--hover); list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::before { content: ""; flex: none; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .12s; }
.accordion details[open] summary::before { transform: rotate(45deg); }
.accordion summary span { flex: 1; min-width: 0; }
.accordion summary small { flex: none; font-weight: 400; }
.accordion ul { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; list-style: none; color: var(--text); font-size: 14px; }
.accordion li span:first-of-type { flex: 1; min-width: 0; }
.plain-list { padding-left: 20px; }
.prewrap { white-space: pre-wrap; }

/* ═══ ICONS ═══ */
svg.i { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ═══ COURSE WIZARD ═══ */
.wizard { display: flex; flex-direction: column; gap: 20px; max-width: 720px; margin: 32px auto; }
.wizard h1 { margin-bottom: 8px; font-size: clamp(22px, 3vw, 28px); text-align: center; }
.wizard section > .muted { margin-bottom: 20px; text-align: center; }
.row-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.wizard [data-wizard-next], .wizard [type=submit] { margin-left: auto; }
dialog#account { border-radius: 12px; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.choice { margin: 0; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice-box { display: flex !important; flex-direction: column; align-items: center; gap: 8px; margin: 0 !important; padding: 24px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; color: var(--text) !important; text-align: center; }
.choice-box small { color: var(--muted); }
.choice input:checked + .choice-box { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input:focus-visible + .choice-box { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ═══ COURSE EDITOR ═══ */
.editor-top { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 12px; margin: 16px 0; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.editor-top .btn { margin-left: auto; }
.editor-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.editor { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; align-items: start; }
.editor-steps { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 14px; }
.editor-group { padding: 0 10px 4px; font-size: 13px; font-weight: 600; }
.editor-steps button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; background: none; border: 0; border-left: 2px solid transparent; color: var(--muted); font-size: 14px; text-align: left; cursor: pointer; }
.editor-steps button:hover { background: var(--hover); color: var(--text); }
.editor-steps button[aria-current="true"] { border-left-color: var(--accent); color: var(--text); font-weight: 500; }
.step-dot { flex: none; display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--border-strong); border-radius: 50%; margin: 0; }
.step-dot.done { background: var(--good); border-color: var(--good); color: var(--bg); }
.step-dot svg.i { width: 12px; height: 12px; stroke-width: 3; }
.panel { min-width: 0; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.panel h2 { margin-bottom: 6px; font-size: 20px; }
.panel > .muted { margin-bottom: 16px; font-size: 14px; }
.panel > .form-grid { margin-top: 12px; }
.note { margin-top: 16px; padding: 9px 11px; background: var(--hover); border-radius: 9px; color: var(--muted); font-size: 13px; }
.section-editor { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.section-editor > .btn { align-self: flex-start; }
.lesson-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.lesson-content { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.lesson-content .file { flex: 1 1 240px; }
.check { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; cursor: pointer; }
.check input { width: auto; }

/* ═══ SIGN IN ═══ */
#signed-out h2, .auth-mark { text-align: center; }
#signed-out h2 { margin-bottom: 20px; font-size: 22px; }
.dialog-head { position: relative; justify-content: center; }
#account-close { position: absolute; top: -4px; right: -4px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; background: none; border: 0; border-radius: 9px; color: var(--muted); cursor: pointer; }
#account-close:hover { background: var(--hover); color: var(--text); }
.float { position: relative; margin-bottom: 12px; }
.float input { height: 56px; padding: 22px 16px 6px; background: var(--surface); border-color: var(--border-strong); }
.float input:focus { border-color: var(--accent); outline: 1px solid var(--accent); outline-offset: -2px; }
.float label { margin: 0; }
.float span { position: absolute; top: 17px; left: 17px; margin: 0; color: var(--text); font-size: 15px; font-weight: 600; line-height: 22px; pointer-events: none; transition: top .12s, font-size .12s; }
.float input:focus + span, .float input:not(:placeholder-shown) + span { top: 8px; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 16px; }
#password-field input { padding-right: 48px; }
#pw-toggle { position: absolute; top: 10px; right: 8px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; background: none; border: 0; border-radius: 9px; color: var(--muted); cursor: pointer; }
#pw-toggle:hover { background: var(--hover); }
#pw-toggle[aria-pressed="true"] { color: var(--accent); }
#pw-hint { margin: -6px 0 12px; }
#auth-form .btn.wide { min-height: 48px; }
.auth-switch { margin-top: 20px; padding: 16px; background: var(--hover); border-radius: 9px; font-size: 14px; text-align: center; }
.auth-switch button { padding: 0; background: none; border: 0; color: var(--accent-ink); font-weight: 600; text-decoration: underline; cursor: pointer; }

/* ═══ MENU, TABLET AND PHONE ═══ */
@media (max-width: 1024px) {
  .course-body { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .course-body .buybox { grid-column: 1; grid-row: 1; position: static; margin-top: 0; }
  .detail-rest { grid-row: 2; }
  .editor { grid-template-columns: minmax(0, 1fr); }
  .editor-steps { position: static; flex-direction: row; gap: 4px; overflow-x: auto; }
  .editor-steps > div { display: flex; flex: none; gap: 4px; }
  .editor-group { display: none; }
  .editor-steps button { width: auto; border: 0; border-bottom: 2px solid transparent; white-space: nowrap; }
  .editor-steps button[aria-current="true"] { border-bottom-color: var(--accent); }
}
@media (max-width: 640px) {
  .course-wrap { padding: 0 16px; }
  .course-band { padding: 20px 0; }
  .choices { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 16px; }
  .learn-box { padding: 16px; }
  .accordion summary small { display: none; }
  dialog#account { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; border-radius: 0; }
  dialog#account::backdrop { background: var(--surface); }
  /* Only while open: display on a closed dialog would show it on the page. */
  dialog#account[open] { display: flex; flex-direction: column; justify-content: center; }
  dialog#account .dialog-head { position: static; }
  dialog#account #account-close { top: 12px; right: 12px; }
}

/* ═══ COMMUNITY PAGE ═══ */
.whop { padding: 0 0 32px; }
.whop-banner { display: flex; align-items: center; justify-content: center; gap: 14px; height: 170px; background: var(--band); color: var(--band-text); font-family: Inter, sans-serif; font-size: 38px; font-weight: 600; letter-spacing: -.03em; }
.whop-banner .mark { width: 54px; height: 45px; }
.whop-profile { padding: 0 24px; }
.whop-avatar { display: grid; place-items: center; width: 76px; height: 76px; margin-top: -38px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; position: relative; }
.whop-avatar .mark { width: 42px; height: 35px; }
.whop-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 2px; }
.whop-title h1 { font-size: 24px; letter-spacing: -.015em; }
.whop-profile > .muted { font-size: 14px; }
.whop-tabs { display: flex; gap: 4px; margin-top: 12px; padding: 0 16px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.whop-tabs a { flex: 1; padding: 11px 12px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 14px; font-weight: 500; text-align: center; text-decoration: none; white-space: nowrap; }
.whop-tabs a:hover { color: var(--text); }
.whop-tabs a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--text); }
.whop > section, .whop > .learning-list { padding: 20px 24px 0; }
.whop-feed { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px 24px 0; }
.whop-feed .post:first-child { grid-column: 1 / -1; }
#catalog .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.post h2 { font-size: 24px; letter-spacing: -.015em; }
.post h3 { font-size: 16px; }
.post-head { display: flex; align-items: center; gap: 10px; width: 100%; font-size: 14px; }
.post-head .tag { margin-left: auto; }
.avatar { flex: none; display: grid; place-items: center; width: 34px; height: 34px; background: var(--hover); border-radius: 9px; }
.avatar .mark { width: 20px; height: 17px; }
.post .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.post .steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; padding: 10px 12px; background: var(--bg); }
.post .steps li::before { grid-row: span 2; margin: 0; }
.post .steps h3 { margin: 0; font-size: 14px; }
.post .steps p { font-size: 13px; }
.post-product { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 9px; color: inherit; text-decoration: none; }
.post-product:hover { background: var(--hover); }
.post-product .cover { flex: none; width: 72px; height: 56px; padding: 4px; border: 0; border-radius: 7px; }
.post-product strong, .post-product small { display: block; }

/* ═══ TESTED ═══ */
.tested-action { margin-top: 12px; }
.tested-own { display: flex; flex-wrap: wrap; gap: 8px; }
.tested-own input { flex: 1 1 240px; }
#tested-table th, #tested-table td { text-align: left; }
#tested-table .wrap { min-width: 200px; white-space: normal; }
.row-actions .link { margin-right: 8px; }

/* ═══ DISCOVER ═══ */
.no-nav .app-shell { grid-template-columns: minmax(0, 1fr); }
.no-nav .side-nav, .no-nav #nav-toggle { display: none !important; }
.no-nav .app-main { border-left: 0; }
.landing-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 64px 0 32px; }
.landing-hero h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -.02em; line-height: 1.12; }
.landing-lead { max-width: 620px; margin-top: 16px; font-size: 18px; }
#landing { padding-bottom: 32px; }
.landing-login { display: block; margin-top: 14px; }
.landing-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.landing-path { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.landing-path h2 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.015em; }
.landing-path > .btn { margin-top: auto; }
.landing-kicker { color: var(--accent-ink); font-size: 14px; font-weight: 600; }
.landing-points { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.landing-points li { display: flex; gap: 10px; }
.landing-points svg.i { margin-top: 3px; color: var(--good); }
.landing-cta { margin-top: 56px; padding: 40px; background: var(--band); border-radius: 12px; color: var(--band-text); text-align: center; }
.landing-cta h2 { font-size: clamp(22px, 3vw, 32px); letter-spacing: -.015em; }
.landing-cta .actions { justify-content: center; }
.landing-cta .btn.outline { background: none; border-color: var(--band-muted); color: var(--band-text); }
.landing-cta .btn.outline:hover { background: rgb(255 255 255 / .1); }
a.nav-community { color: inherit; text-decoration: none; border-radius: 0; }
.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.market-card { display: flex; flex-direction: column; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; color: inherit; text-decoration: none; transition: border-color .12s; }
.market-card:hover { border-color: var(--muted); }
.market-card.first { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.market-head { display: flex; align-items: center; gap: 12px; }
.market-name { flex: 1; min-width: 0; }
.market-name strong, .market-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-name strong { font-size: 16px; }
.market-name small { font-size: 13px; }
.market-rank { flex: none; padding: 2px 9px; background: var(--hover); border-radius: 9px; color: var(--muted); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.market-card.first .market-rank { background: var(--accent); color: var(--accent-text); }
.market-label { margin-top: 18px; font-size: 13px; }
.earned { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.earned.is-hidden { color: var(--muted); font-size: 18px; font-weight: 600; line-height: 1.8; letter-spacing: 0; }
.market-bar { height: 4px; margin-top: 10px; background: var(--hover); border-radius: 2px; overflow: hidden; }
.market-bar span { display: block; height: 100%; background: var(--accent); }
.market-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-top: 14px; color: var(--muted); font-size: 13px; }
.market-rating strong { color: var(--text); }
.market-rating .stars { margin-right: 3px; letter-spacing: 0; }
#market .seller-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 16px; }
.section-tight { padding-top: 16px; }
.community-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.community-card { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; color: inherit; text-decoration: none; }
.community-card:hover { background: var(--hover); }
.community-card-body { display: flex; flex-direction: column; min-width: 0; }
.community-card-body small { font-size: 13px; }
.whop-avatar.small { flex: none; width: 56px; height: 56px; margin: 0; border-radius: 12px; }
.whop-avatar.small .mark { width: 32px; height: 27px; }
.badge-letter { color: var(--accent-ink); font-size: 20px; font-weight: 700; }
.whop-avatar .badge-letter { font-size: 30px; }
.callout-action { margin-top: 12px; }

/* ═══ CHECKOUT ═══ */
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 20px; align-items: start; margin-top: 16px; }
.checkout-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.checkout-lead { margin-bottom: 14px; font-size: 14px; }
.checkout-main .float { margin-bottom: 12px; }
.checkout-login { margin-top: 10px; }
.checkout-login .link { font-size: inherit; }
.checkout-main .note { margin: 8px 0 14px; }
.checkout-main .btn.wide { min-height: 48px; }
.checkout-summary { position: sticky; top: 16px; }
.checkout-plans { margin: 12px 0 0; }
.checkout-plans a { text-decoration: none; }
.checkout-item { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.checkout-item .cover { flex: none; width: 76px; height: 60px; padding: 5px; border: 0; border-radius: 9px; }
.checkout-item strong, .checkout-item small { display: block; }
.checkout-lines { margin: 16px 0 0; }
.checkout-lines > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; }
.checkout-lines dt { color: var(--muted); }
.checkout-lines dd { margin: 0; font-variant-numeric: tabular-nums; }
.checkout-total { margin-top: 6px; padding-top: 12px !important; border-top: 1px solid var(--border); font-size: 16px !important; font-weight: 700; }
.checkout-total dt { color: var(--text); }
.checkout-thanks { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 560px; margin: 32px auto; padding: 32px 24px; text-align: center; }
.checkout-thanks .step-dot { width: 40px; height: 40px; }
.checkout-thanks .step-dot svg.i { width: 22px; height: 22px; }
.checkout-thanks h1 { font-size: 26px; }
.checkout-thanks .actions { justify-content: center; }

/* ═══ SELLERS ═══ */
.guide { display: flex; flex-direction: column; margin: 12px 0 0; padding: 0; list-style: none; }
.guide li { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 0; border-top: 1px solid var(--border); }
.guide-label { flex: 1; min-width: 0; font-size: 14px; }
.app-card { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.settings-form { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.settings-form > .btn { align-self: flex-start; }
.settings-form label { margin: 0; }
#sell-link { display: block; margin-bottom: 8px; box-sizing: border-box; }
#seller-form { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
#seller-form > .btn { align-self: flex-start; }
#seller-form label { margin: 0; }
#seller-table .wrap { min-width: 200px; white-space: normal; }
#seller-table th, #seller-table td, #seller-courses th, #seller-courses td { text-align: left; }
.seller-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 8px; }
#sell-page .steps { margin-top: 8px; }

/* ═══ APP PAGES ═══ */
.app-page { padding-top: 24px; padding-bottom: 32px; }
.app-page h1 { font-size: clamp(22px, 3vw, 28px); letter-spacing: -.015em; }
.app-lead { margin: 2px 0 16px; }
.join-prompt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; padding: 12px 14px; background: var(--hover); border-radius: 9px; }
.chat { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 460px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.chat-channels { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-right: 1px solid var(--border); }
.chat-channels button { padding: 7px 10px; background: none; border: 0; border-radius: 9px; color: var(--muted); font-size: 14px; text-align: left; cursor: pointer; white-space: nowrap; }
.chat-channels button:hover { background: var(--hover); }
.chat-channels button[aria-current="true"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 500; }
.chat-main { display: flex; flex-direction: column; min-width: 0; padding: 14px; }
.chat-log { flex: 1; display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; overflow-wrap: anywhere; }
.message strong { font-size: 14px; }
.chat-form { display: flex; gap: 8px; }
.chat-form input { flex: 1; min-width: 0; }
.chat-main .join-prompt { margin: 0; }
.app-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.app-row-body { flex: 1 1 220px; min-width: 0; }
.app-row-body h3 { font-size: 15px; }
.date-box { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 56px; height: 56px; background: var(--accent-soft); border-radius: 9px; color: var(--accent-ink); line-height: 1.15; }
.date-box strong { font-size: 18px; }
.date-box small { font-size: 12px; }
.thread-form { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 12px; }
.thread-form label { width: 100%; }
.thread-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; font-size: 14px; }
.thread-reply { padding: 8px 12px; background: var(--hover); border-radius: 9px; }
.empty-note { margin-top: 12px; padding: 24px 16px; border: 1px dashed var(--border-strong); border-radius: 12px; color: var(--muted); text-align: center; }
.tool-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.callout > div { flex: 1; min-width: 0; }
#calc-form .price { margin-top: 14px; }
.panel > .table-wrap { margin-top: 10px; }

@media (max-width: 1024px) {
  .whop-feed, .post .steps, .landing-hero, .landing-paths, .checkout-grid { grid-template-columns: minmax(0, 1fr); }
  .checkout-summary { position: static; order: -1; }
  .landing-hero { gap: 24px; padding-top: 32px; }
  #catalog .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  #catalog .grid { grid-template-columns: minmax(0, 1fr); }
  .market-grid { grid-template-columns: minmax(0, 1fr); }
  .landing-path { padding: 20px; }
  .landing-cta { margin-top: 32px; padding: 24px 16px; }
  .whop-banner { height: 120px; font-size: 28px; }
  .whop-banner .mark { width: 40px; height: 33px; }
  .whop-profile { padding: 0 16px; }
  .whop > section, .whop > .learning-list { padding: 16px 16px 0; }
  .whop-feed { padding: 12px 16px 0; }
  .chat { grid-template-columns: minmax(0, 1fr); min-height: 380px; }
  .chat-channels { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .app-row .btn { width: 100%; }
}
