/* ==========================================================================
   IDEABRO STUDIO ACADEMY — stylesheet
   Follows /DESIGN-SYSTEM.md. The :root block must stay identical to
   css/style.css. Paper + ink, Archivo + JetBrains Mono, pink accent, lime = done.
   ========================================================================== */

:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --muted: #6f6f6f;
  --line: #e4e4e4;
  --accent: #0a0a0a;   /* Academy is monochrome: the accent IS ink (see DESIGN-SYSTEM.md §2.1) */
  --lime: #0a0a0a;     /* done / live states are ink too */
  --blue: #0a0a0a;
  --on-accent: #ffffff; /* text on an accent / lime fill */
  --ink-2: #1a1a1a;
  --ink-3: #2c2c2c;
  --paper-2: #f6f6f6;
  --danger: #d00000;
  --nav-h: 56px;
  --side-w: 248px;
  --pad: clamp(16px, 2.5vw, 40px);
  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  animation: pageIn .5s var(--ease) both;
}
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.02; letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Type utilities
   -------------------------------------------------------------------------- */
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.mono.sm { font-size: 11px; }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.dark .kicker, .ink .kicker { color: #aaa; }
.display { font-size: clamp(36px, 6.5vw, 108px); font-weight: 900; letter-spacing: -.045em; line-height: .92; text-transform: uppercase; }
.display .accent, .h1 .accent, .h2 .accent { color: var(--accent); }
.display .outline { -webkit-text-stroke: 1.5px currentColor; color: transparent; }
.h1 { font-size: clamp(32px, 4.5vw, 64px); font-weight: 900; letter-spacing: -.04em; line-height: .95; text-transform: uppercase; }
.h2 { font-size: clamp(28px, 4vw, 64px); font-weight: 800; letter-spacing: -.035em; line-height: .98; text-transform: uppercase; }
.h3 { font-size: clamp(20px, 2.2vw, 32px); font-weight: 700; letter-spacing: -.03em; text-transform: uppercase; }
.h4 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.lead { font-size: clamp(18px, 2vw, 26px); line-height: 1.3; letter-spacing: -.01em; max-width: 34ch; }
.body { font-size: 16px; line-height: 1.55; max-width: 62ch; color: #2a2a2a; }
.body + .body { margin-top: 1em; }
.small { font-size: 14px; }
.muted { color: var(--muted); }
.hl { background: var(--lime); padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hl.pink { background: var(--accent); color: #fff; }
.wrap { padding-left: var(--pad); padding-right: var(--pad); }
.container { max-width: 1120px; }
.prose { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stack > * + * { margin-top: 16px; }
.stack.lg > * + * { margin-top: 32px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.5vw, 32px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.section { padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(32px, 4vw, 56px); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.divider.ink { background: var(--ink); }
.kbd { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; border: 1px solid var(--line); padding: 2px 6px; border-radius: 999px; color: var(--muted); white-space: nowrap; }

/* --------------------------------------------------------------------------
   Buttons, pills, tags
   -------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--ink); padding: 14px 22px; border-radius: 999px; transition: .25s var(--ease); white-space: nowrap; background: var(--paper); color: var(--ink); }
.btn:hover { background: var(--ink); color: #fff; }
.btn.fill { background: var(--ink); color: #fff; }
.btn.fill:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn.accent:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.light { border-color: #fff; color: #fff; background: transparent; }
.btn.light:hover { background: #fff; color: var(--ink); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn.sm { padding: 10px 16px; font-size: 11px; gap: 8px; }
.btn.xs { padding: 7px 12px; font-size: 10px; gap: 6px; }
.btn.block { width: 100%; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ink); display: inline-grid; place-items: center; transition: .2s; flex: none; background: var(--paper); }
.icon-btn:hover { background: var(--ink); color: #fff; }
.icon-btn.sm { width: 32px; height: 32px; }
.icon-btn.light { border-color: rgba(255,255,255,.4); color: #fff; background: transparent; }
.icon-btn.light:hover { background: #fff; color: var(--ink); }

.pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid currentColor; padding: 7px 12px; border-radius: 999px; white-space: nowrap; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; background: var(--paper); color: var(--ink); padding: 5px 9px; border-radius: 999px; border: 1px solid var(--paper); white-space: nowrap; }
.tag.ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.tag.accent { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.tag.lime { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.tag.line { background: transparent; border-color: var(--ink); }
.tag.muted { background: var(--paper-2); border-color: var(--paper-2); color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; }
.chips span { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--ink); padding: 9px 14px; border-radius: 999px; cursor: pointer; transition: .2s; user-select: none; }
.chips input:checked + span { background: var(--ink); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button, .tabs a { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; transition: .2s; background: var(--paper); }
.tabs button:hover, .tabs a:hover { border-color: var(--ink); }
.tabs .is-active, .tabs [aria-selected="true"], .tabs [aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.ink .tabs .is-active, .ink .tabs [aria-selected="true"] { background: var(--accent); color: var(--ink); border-color: var(--accent); }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 22px; }
.form .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 560px) { .form .cols { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label, .field .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field .hint { font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 10px 0; outline: none; width: 100%;
  transition: border-color .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom: 2px solid var(--accent); }
.field.boxed input, .field.boxed select, .field.boxed textarea { border: 1px solid var(--ink); padding: 12px 14px; }
.field.boxed input:focus, .field.boxed select:focus, .field.boxed textarea:focus { border: 1px solid var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--danger); }
.field .err { font-family: var(--mono); font-size: 11px; color: var(--danger); display: none; }
.field.invalid .err { display: block; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230a0a0a' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.field.boxed select { padding-right: 36px; }
.search { position: relative; }
.search input { padding-left: 40px !important; padding-right: 52px !important; }
.search .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; pointer-events: none; }
.search .kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.switch { position: relative; width: 44px; height: 24px; border-radius: 999px; background: var(--line); border: 0; transition: .25s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); transition: .25s var(--ease); }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(20px); background: #fff; }
.check { width: 22px; height: 22px; border: 1px solid var(--ink); background: var(--paper); display: inline-grid; place-items: center; flex: none; transition: .2s; color: transparent; font-size: 13px; font-weight: 700; }
.check.on, .check[aria-checked="true"] { background: var(--lime); color: var(--ink); }
.check:hover { border-color: var(--accent); }
.note { border: 1px solid var(--ink); padding: 16px 18px; font-size: 14px; line-height: 1.5; border-radius: var(--radius); }
.note.soft { border-color: var(--line); background: var(--paper-2); }
.note.accent { border-color: var(--accent); }
.note strong { font-weight: 700; }

/* --------------------------------------------------------------------------
   Cards, lists, tables, progress
   -------------------------------------------------------------------------- */
.card { border: 1px solid var(--line); background: var(--paper); padding: 28px; border-radius: var(--radius); }
.card.compact { padding: 20px; }
.card.feature { padding: 40px; }
.card.hover { transition: border-color .2s; }
.card.hover:hover { border-color: var(--ink); }
.card.ink { background: var(--ink); color: #fff; border-color: var(--ink-3); }
.card.ink .muted { color: #9a9a9a; }
.card.accent { background: var(--accent); border-color: var(--accent); }
.card.lime { background: var(--lime); border-color: var(--lime); }
.card.paper-2 { background: var(--paper-2); border-color: var(--paper-2); }
.card.line-ink { border-color: var(--ink); }
.rule-list { border-top: 1px solid var(--line); }
.rule-list > li { display: grid; grid-template-columns: 48px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.rule-list .n { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--muted); padding-top: 3px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; color: var(--muted); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--ink); }
.table td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap { overflow-x: auto; }
.meta-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; font-size: 15px; }
.meta-list dt { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.meta-list dd { margin: 0; }
.progress { height: 6px; background: var(--line); position: relative; overflow: hidden; width: 100%; }
.progress > i { position: absolute; inset: 0 auto 0 0; background: var(--accent); transition: width .6s var(--ease); }
.progress.done > i { background: var(--lime); }
.progress.thin { height: 3px; }
.ink .progress { background: var(--ink-3); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 0 18px; color: #2a2a2a; max-width: 60ch; }
.steps { counter-reset: step; display: grid; gap: 16px; }
.step { border: 1px solid var(--line); padding: 20px; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; border-radius: var(--radius); }
.step .num { width: 32px; height: 32px; background: var(--accent); color: var(--ink); display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 500; }
.step h4 { font-size: 17px; margin-bottom: 4px; }
.step p { font-size: 14px; color: #2a2a2a; }
.avatars { display: inline-flex; align-items: center; }
.avatars i { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 10px; display: grid; place-items: center; border: 2px solid var(--paper); margin-left: -8px; font-style: normal; }
.avatars i:first-child { margin-left: 0; }
.avatars i:nth-child(2) { background: var(--accent); color: var(--ink); }
.avatars i:nth-child(3) { background: var(--lime); color: var(--ink); }

/* --------------------------------------------------------------------------
   Feedback: toast, banner, modal, empty, help
   -------------------------------------------------------------------------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; font-size: 13px; padding: 12px 18px; border-radius: 999px; opacity: 0; transition: .3s var(--ease); z-index: 90; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.banner-note { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 10px var(--pad); font-size: 14px; background: var(--accent); color: var(--ink); text-align: center; }
.banner-note.ink { background: var(--ink); color: #fff; }
.banner-note.lime { background: var(--lime); }
.banner-note button { font-size: 18px; line-height: 1; flex: none; }
.empty { text-align: center; padding: 48px 24px; border: 1px dashed var(--line); display: grid; gap: 12px; justify-items: center; border-radius: var(--radius); }
.modal-scrim { position: fixed; inset: 0; background: rgba(10,10,10,.6); z-index: 80; display: grid; place-items: center; padding: 16px; animation: fadeIn .2s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--paper); color: var(--ink); width: 100%; max-width: 720px; max-height: calc(100vh - 32px); overflow: auto; padding: 40px; position: relative; border: 1px solid var(--ink); border-radius: var(--radius); }
.modal .close { position: absolute; top: 16px; right: 16px; }
@media (max-width: 560px) { .modal { padding: 28px 20px; } }

.help-fab { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--ink); border: 1px solid var(--ink); border-radius: 999px; padding: 12px 18px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; transition: .2s; }
.help-fab:hover { background: var(--ink); color: #fff; }
.help-panel { position: fixed; right: 20px; bottom: 76px; z-index: 71; width: 360px; max-width: calc(100vw - 40px); height: 520px; max-height: calc(100vh - 100px); background: var(--paper); border: 1px solid var(--ink); display: none; grid-template-rows: auto 1fr auto; border-radius: var(--radius); overflow: hidden; }
.help-panel.is-open { display: grid; }
.help-panel .hd { background: var(--ink); color: #fff; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.help-panel .hd strong { display: block; font-size: 14px; }
.help-panel .hd span { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #9a9a9a; }
.help-panel .msgs { overflow: auto; padding: 16px; display: grid; gap: 10px; align-content: start; }
.help-panel .msg { max-width: 85%; padding: 10px 14px; font-size: 14px; line-height: 1.45; border: 1px solid var(--line); border-radius: 8px; }
.help-panel .msg.me { margin-left: auto; background: var(--ink); color: #fff; border-color: var(--ink); }
.help-panel .msg time { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--muted); margin-top: 6px; }
.help-panel .msg.me time { color: #9a9a9a; }
.help-panel form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.help-panel form input { flex: 1; border: 1px solid var(--ink); padding: 10px 12px; font: inherit; font-size: 14px; outline: none; min-width: 0; }
.help-panel form input:focus { border-color: var(--accent); }
.help-panel .tickets { padding: 12px; display: grid; gap: 8px; overflow: auto; }
.help-panel .ticket { border: 1px solid var(--line); padding: 12px; text-align: left; display: grid; gap: 4px; border-radius: 8px; }
.help-panel .ticket:hover { border-color: var(--ink); }

/* --------------------------------------------------------------------------
   App shell: sidebar + main
   -------------------------------------------------------------------------- */
.app { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; }
.app.is-collapsed { grid-template-columns: 72px 1fr; }
.side { position: sticky; top: 0; height: 100vh; overflow: auto; background: var(--ink); color: #fff; display: flex; flex-direction: column; padding: 20px 16px; gap: 8px; border-right: 1px solid var(--ink-3); }
.side .brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 16px; }
.side .brand .mark { width: 36px; height: 36px; background: var(--accent); color: var(--ink); display: grid; place-items: center; font-weight: 900; font-size: 13px; letter-spacing: -.04em; flex: none; }
.side .brand b { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.side .brand small { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: #9a9a9a; margin-top: 3px; }
.side .search-trigger { display: flex; align-items: center; gap: 10px; width: 100%; border: 1px solid var(--ink-3); padding: 10px 12px; font-size: 13px; color: #bdbdbd; border-radius: 10px; transition: .2s; }
.side .search-trigger:hover { border-color: #fff; color: #fff; }
.side .search-trigger .kbd { margin-left: auto; border-color: var(--ink-3); color: #9a9a9a; }
.side nav { display: grid; gap: 1px; margin-top: 8px; }
.side nav a, .side nav button { display: flex; align-items: center; gap: 8px; padding: 7px 10px; font-size: 13px; font-weight: 500; border-radius: 10px; transition: .2s; color: #fff; text-align: left; width: 100%; overflow: hidden; }
.side nav a:hover, .side nav button:hover { background: var(--ink-2); }
.side nav a[aria-current="page"], .side nav a.is-active, .side nav button.is-active { background: var(--accent); color: var(--ink); }
.side nav .sub { padding-left: 34px; font-size: 13px; font-weight: 400; color: #bdbdbd; }
.side nav .sub[aria-current="page"] { color: var(--ink); }
.side nav .grp { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #9a9a9a; padding: 14px 12px 4px; }
.side .ico { width: 18px; height: 18px; flex: none; }
.side .num { width: 18px; height: 18px; border: 1px solid #fff; border-radius: 5px; display: grid; place-items: center; font-family: var(--mono); font-size: 10px; flex: none; }
.side nav a[aria-current="page"] .num { border-color: var(--ink); }
.side nav .meta { margin-left: auto; font-family: var(--mono); font-size: 9px; letter-spacing: .04em; color: #9a9a9a; white-space: nowrap; flex: none; }
.side nav .lbl { min-width: 0; }
.side nav a[aria-current="page"] .meta { color: var(--ink); }
.side .foot { margin-top: auto; display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--ink-3); }
.side .foot .lang { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; background: transparent; color: #fff; border: 1px solid var(--ink-3); padding: 9px 12px; width: 100%; appearance: none; -webkit-appearance: none; border-radius: 999px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.side .foot .legal { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #9a9a9a; text-align: center; padding: 6px; }
.side .foot .legal:hover { color: #fff; }
.side .tools { display: flex; gap: 8px; align-items: center; }
.side .tools .icon-btn { position: relative; }
.side .badge { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; border-radius: 999px; background: var(--accent); color: var(--ink); font-family: var(--mono); font-size: 9px; display: grid; place-items: center; padding: 0 4px; }
.side .collapse { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #9a9a9a; padding: 10px 12px; border: 1px dashed var(--ink-3); width: 100%; margin-top: 12px; }
.side .collapse:hover { color: #fff; border-color: #fff; }
.side .back { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 12px; border: 1px dashed #666; width: 100%; margin-bottom: 8px; }
.side .back:hover { border-color: #fff; }
.side .user { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 13px; color: #bdbdbd; }
.side .user i { width: 28px; height: 28px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-family: var(--mono); font-size: 11px; font-style: normal; flex: none; }
.app.is-collapsed .side { padding: 20px 12px; }
.app.is-collapsed .side .brand b, .app.is-collapsed .side .brand small, .app.is-collapsed .side .search-trigger span, .app.is-collapsed .side nav .lbl, .app.is-collapsed .side nav .meta, .app.is-collapsed .side nav .grp, .app.is-collapsed .side nav .sub, .app.is-collapsed .side .foot .lang, .app.is-collapsed .side .foot .legal, .app.is-collapsed .side .collapse span, .app.is-collapsed .side .back span, .app.is-collapsed .side .user span, .app.is-collapsed .side .kbd { display: none; }
.app.is-collapsed .side nav a, .app.is-collapsed .side nav button, .app.is-collapsed .side .search-trigger, .app.is-collapsed .side .back, .app.is-collapsed .side .collapse { justify-content: center; padding-left: 0; padding-right: 0; }

.main { min-width: 0; }
.main .content { padding: clamp(24px, 3vw, 40px) var(--pad) 96px; max-width: 1200px; }
.topbar { position: sticky; top: 0; z-index: 30; height: var(--nav-h); background: var(--paper); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 var(--pad); }
.topbar .search { flex: 1; max-width: 480px; }
.topbar .search input { border: 1px solid var(--ink); padding: 9px 14px; font: inherit; font-size: 13px; width: 100%; outline: none; border-radius: 999px; }
.topbar .search input:focus { border-color: var(--accent); }
.topbar .hello { margin-left: auto; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.mobile-bar { display: none; }
.side .mclose { display: none; justify-content: flex-end; }
.crumbs { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.crumbs b { color: var(--ink); font-weight: 500; }
.page-head { margin-bottom: clamp(24px, 3vw, 40px); display: grid; gap: 14px; }
.page-head .meta { display: flex; gap: 14px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.page-head .meta span + span::before { content: "•"; margin-right: 14px; }

@media (max-width: 900px) {
  .app, .app.is-collapsed { grid-template-columns: 1fr; }
  .side { display: none; position: fixed; inset: 0; z-index: 60; height: 100vh; }
  .side.is-open { display: flex; }
  .side .collapse { display: none; }
  .mobile-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--ink); color: #fff; padding: 12px var(--pad); position: sticky; top: 0; z-index: 40; }
  .mobile-bar .brand { display: flex; align-items: center; gap: 10px; }
  .mobile-bar .brand .mark { width: 32px; height: 32px; background: var(--accent); color: var(--ink); display: grid; place-items: center; font-weight: 900; font-size: 12px; }
  .mobile-bar .brand b { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
  .mobile-bar .brand small { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: #9a9a9a; }
  .mobile-bar .menu { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; border: 1px solid #fff; padding: 8px 14px; border-radius: 999px; }
  .side .mclose { display: flex; }
}

/* --------------------------------------------------------------------------
   Auth pages
   -------------------------------------------------------------------------- */
.grid-bg { background-color: var(--paper); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 40px; }
.auth { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }
.auth .top { display: flex; justify-content: space-between; align-items: center; padding: 20px var(--pad); }
.auth .box { width: 100%; max-width: 520px; margin: 0 auto; padding: 0 16px 64px; display: grid; gap: 24px; align-content: start; }
.auth .card { padding: clamp(24px, 4vw, 40px); border-color: var(--ink); background: var(--paper); border-radius: var(--radius); }
.auth #view:empty { display: none; }
.auth .card .h3 { text-transform: none; letter-spacing: -.03em; font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin-bottom: 8px; }
.auth .links { display: grid; gap: 10px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 14px; }
.auth .links a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.auth .links a:hover { color: var(--accent); }
.auth .wordmark { font-weight: 900; letter-spacing: -.05em; text-transform: uppercase; font-size: 22px; text-align: center; }
.auth .wordmark span { color: var(--accent); }
.auth .fine { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* --------------------------------------------------------------------------
   Landing
   -------------------------------------------------------------------------- */
.landing { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.landing .hero { padding: clamp(48px, 10vh, 120px) var(--pad); display: grid; gap: 28px; align-content: center; max-width: 1200px; }
.landing .hero .display { max-width: 12ch; }
.landing .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.landing .strip { border-top: 1px solid var(--line); padding: 20px var(--pad); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.landing .facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); max-width: 1200px; margin: 0 var(--pad); }
.landing .facts div { padding: 24px 0; border-bottom: 1px solid var(--line); }
.landing .facts div + div { border-left: 1px solid var(--line); padding-left: 20px; }
.landing .facts .num { font-size: clamp(36px, 5vw, 72px); font-weight: 900; letter-spacing: -.05em; line-height: .9; }
@media (max-width: 720px) { .landing .facts { grid-template-columns: 1fr; } .landing .facts div + div { border-left: 0; padding-left: 0; } }

/* --------------------------------------------------------------------------
   Dashboard
   -------------------------------------------------------------------------- */
.offers { display: flex; align-items: center; gap: 12px; background: var(--accent); border: 1px solid var(--ink); padding: 10px 14px; margin-bottom: 28px; overflow: hidden; border-radius: var(--radius); }
.offers .track { display: flex; gap: 40px; white-space: nowrap; flex: 1; overflow: hidden; }
.offers .item { font-size: 14px; display: inline-flex; gap: 10px; align-items: center; }
.offers .item a { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; }
.offers .icon-btn { background: transparent; }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.course-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); background: var(--paper); transition: border-color .2s; border-radius: var(--radius); overflow: hidden; }
.course-card:hover { border-color: var(--ink); }
.course-card .cover { aspect-ratio: 4 / 3; background: var(--ink); overflow: hidden; }
.course-card .cover img, .course-card .cover svg { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.course-card:hover .cover img, .course-card:hover .cover svg { transform: scale(1.035); }
.course-card .bd { padding: 22px; display: grid; gap: 12px; align-content: start; }
.course-card h3 { font-size: 22px; letter-spacing: -.03em; }
.course-card p { font-size: 14px; color: #2a2a2a; }
.course-card .cta { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); margin-top: 6px; }
.course-card .joined { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.upsell { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; border: 1px solid var(--ink); padding: 32px; border-radius: var(--radius); }
.upsell .price { border: 1px solid var(--line); padding: 24px; display: grid; gap: 12px; align-content: start; }
.upsell .price .big { font-size: clamp(40px, 5vw, 64px); font-weight: 900; letter-spacing: -.05em; line-height: .9; }
.upsell ul li { display: flex; gap: 10px; font-size: 14px; padding: 4px 0; }
.upsell ul li::before { content: "→"; font-family: var(--mono); color: var(--accent); }
.examples { display: grid; gap: 12px; }
.examples .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.examples .clip { border: 1px solid var(--ink); aspect-ratio: 9 / 12; background: var(--paper-2); position: relative; display: grid; place-items: center; border-radius: var(--radius); overflow: hidden; }
.examples .clip .tag { position: absolute; top: 10px; left: 10px; }
.examples .clip .play { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); border: 1px solid var(--ink); display: grid; place-items: center; }
.dots { display: flex; gap: 6px; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--ink); }
.dots button[aria-selected="true"] { background: var(--accent); }
@media (max-width: 900px) { .upsell { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Course page
   -------------------------------------------------------------------------- */
.continue { position: relative; background: var(--ink); color: #fff; padding: clamp(18px, 3vw, 28px); min-height: 180px; display: grid; align-content: end; gap: 10px; overflow: hidden; border: 1px solid var(--ink); border-radius: var(--radius); }
.continue .bg { position: absolute; inset: 0; opacity: .3; }
.continue .bg img, .continue .bg svg { width: 100%; height: 100%; object-fit: cover; }
.continue > * { position: relative; }
.continue .k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.continue h2 { font-size: clamp(22px, 3vw, 36px); letter-spacing: -.035em; text-transform: uppercase; font-weight: 900; }
.continue .pr { display: flex; align-items: center; gap: 16px; max-width: 420px; }
.continue .pr .progress { background: rgba(255,255,255,.2); }
.continue .pr span { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; white-space: nowrap; color: #bdbdbd; }
.mod-carousel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.mod-carousel::-webkit-scrollbar { display: none; }
.module-card { flex: 0 0 240px; scroll-snap-align: start; border: 1px solid var(--line); background: var(--paper); transition: border-color .2s; position: relative; border-radius: var(--radius); overflow: hidden; }
.module-card:hover { border-color: var(--ink); }
.module-card .cover { aspect-ratio: 16 / 9; background: var(--paper-2); overflow: hidden; border-bottom: 1px solid var(--line); }
.module-card .cover svg, .module-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.module-card .bd { padding: 12px; display: grid; gap: 6px; }
.module-card h3 { font-size: 16px; letter-spacing: -.02em; }
.module-card .m { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; color: var(--muted); }
.module-card .pr { display: flex; align-items: center; gap: 10px; }
.module-card .pr span { font-family: var(--mono); font-size: 11px; white-space: nowrap; }
.mod-head { position: relative; background: var(--ink); color: #fff; padding: clamp(16px, 3vw, 28px); overflow: hidden; display: grid; gap: 8px; border: 1px solid var(--ink); border-radius: var(--radius); }
.mod-head .k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #9a9a9a; }
.mod-head h2 { font-size: clamp(22px, 3vw, 36px); letter-spacing: -.035em; text-transform: uppercase; font-weight: 900; }
.mod-head p { color: #bdbdbd; max-width: 60ch; }
.mod-head .ghost { position: absolute; right: 24px; top: -10px; font-size: clamp(80px, 12vw, 160px); font-weight: 900; letter-spacing: -.06em; line-height: 1; color: var(--ink-3); pointer-events: none; }
.mod-head .pr { display: flex; align-items: center; gap: 14px; max-width: 420px; }
.mod-head .pr .progress { background: rgba(255,255,255,.2); }
.mod-head .pr span { font-family: var(--mono); font-size: 11px; }
.lesson-list { display: grid; gap: 6px; }
.lesson-row { display: grid; grid-template-columns: 22px 44px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); padding: 10px 14px; background: var(--paper); transition: border-color .2s; border-radius: var(--radius); }
.lesson-row:hover { border-color: var(--ink); }
.lesson-row.is-locked { opacity: .6; }
.lesson-row .idx { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.lesson-row .t { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lesson-row .d { font-size: 12px; color: var(--muted); margin-top: 2px; }
.lesson-row .dur { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.lesson-row .t a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lesson-group { border: 1px solid var(--line); background: var(--paper-2); border-radius: var(--radius); overflow: hidden; }
.lesson-group > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 44px 1fr 120px 24px; gap: 12px; align-items: center; padding: 10px 14px; }
.lesson-group > summary::-webkit-details-marker { display: none; }
.lesson-group > summary .idx { font-family: var(--mono); font-size: 12px; font-weight: 500; }
.lesson-group > summary .t { font-weight: 700; font-size: 14px; }
.lesson-group > summary .m { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.lesson-group > summary .chev { transition: transform .25s var(--ease); }
.lesson-group[open] > summary .chev { transform: rotate(180deg); }
.lesson-group .lesson-list { padding: 0 12px 12px; }
@media (max-width: 600px) { .lesson-row { grid-template-columns: 22px 1fr auto; padding: 8px 12px; gap: 10px; } .lesson-row .idx { display: none; } .lesson-row .dur { display: none; } .lesson-group > summary { grid-template-columns: 1fr 24px; padding: 8px 12px; } .lesson-group > summary .idx, .lesson-group > summary .m { display: none; } .module-card { flex: 0 0 85vw; } .continue { min-height: 140px; } }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.res-card { border: 1px solid var(--line); padding: 18px; display: grid; gap: 8px; align-content: start; transition: border-color .2s; position: relative; background: var(--paper); border-radius: var(--radius); }
.res-card:hover { border-color: var(--ink); }
.res-card h4 { font-size: 16px; display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.res-card p { font-size: 13px; color: #2a2a2a; }
.res-card .shot { aspect-ratio: 16 / 10; background: var(--paper-2); border: 1px solid var(--line); margin-bottom: 6px; display: grid; place-items: center; }
.model-table td:first-child { font-weight: 700; }
.model-table .rec { display: block; margin-top: 4px; }
.callout { border: 1px solid var(--ink); background: var(--ink); color: #fff; padding: 20px 24px; text-align: center; font-weight: 600; font-size: 16px; display: grid; gap: 6px; border-radius: var(--radius); }
.callout b { color: var(--lime); }

/* --------------------------------------------------------------------------
   Lesson player page
   -------------------------------------------------------------------------- */
.lesson-bar { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 10px var(--pad); }
.lesson-bar .mid { display: grid; gap: 6px; justify-items: center; }
.lesson-bar .mid .t { font-weight: 700; font-size: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
.lesson-bar .mid .pr { display: flex; align-items: center; gap: 10px; width: min(360px, 60vw); }
.lesson-bar .mid .pr span { font-family: var(--mono); font-size: 10px; color: var(--muted); white-space: nowrap; }
.lesson-bar .nav { display: flex; gap: 8px; }
@media (max-width: 720px) { .lesson-bar { grid-template-columns: auto 1fr; } .lesson-bar .nav { grid-column: 1 / -1; justify-content: space-between; } .lesson-bar .mid { justify-items: start; } .lesson-bar .mid .t { justify-content: flex-start; } }
.lesson { display: grid; grid-template-columns: minmax(0, var(--split, 58fr)) 8px minmax(0, var(--rest, 42fr)); gap: 0 20px; padding: clamp(20px, 3vw, 36px) var(--pad) 64px; max-width: 1400px; align-items: start; }
.lesson .handle { width: 8px; align-self: stretch; cursor: col-resize; display: grid; place-items: center; }
.lesson .handle::before { content: ""; width: 2px; height: 48px; background: var(--line); border-radius: 2px; }
.lesson .handle:hover::before { background: var(--ink); }
.lesson.is-stacked { grid-template-columns: 1fr; }
.lesson.is-stacked .handle { display: none; }
.lesson.is-stacked .doc-col { max-width: 900px; }
@media (max-width: 1000px) { .lesson { grid-template-columns: 1fr; } .lesson .handle { display: none; } }
.lesson .head { display: grid; gap: 10px; margin-bottom: 18px; }
.lesson .head h1 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -.035em; text-transform: uppercase; font-weight: 900; }
.lesson .head p { color: #2a2a2a; max-width: 60ch; }
.player { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border: 1px solid var(--ink); overflow: hidden; }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .cover { position: absolute; inset: 0; display: grid; place-items: center; }
.player .cover img, .player .cover svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.player .cover .play { position: relative; width: 72px; height: 72px; border-radius: 50%; background: var(--accent); border: 2px solid var(--ink); display: grid; place-items: center; transition: transform .2s var(--ease); }
.player .cover:hover .play { transform: scale(1.06); }
.player .dur { position: absolute; right: 12px; bottom: 12px; background: var(--paper); color: var(--ink); font-family: var(--mono); font-size: 11px; padding: 4px 8px; }
.player .none { position: absolute; inset: 0; display: grid; place-items: center; color: #9a9a9a; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-align: center; padding: 20px; }
.chapters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.chapters .dur { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.doc-col { display: grid; gap: 14px; }
.doc-col .tabs-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.doc { border: 1px solid var(--ink); background: var(--paper); padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; border-radius: var(--radius); }
.doc h2 { font-size: clamp(22px, 2.4vw, 30px); text-transform: uppercase; letter-spacing: -.035em; font-weight: 900; }
.doc h3 { font-size: 18px; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.doc h3 .n { width: 28px; height: 28px; background: var(--accent); border: 1px solid var(--ink); display: grid; place-items: center; font-family: var(--mono); font-size: 12px; flex: none; }
.doc h4 { font-size: 15px; }
.doc p, .doc li { font-size: 15px; line-height: 1.55; color: #2a2a2a; }
.doc ul.bul li { padding-left: 18px; position: relative; }
.doc ul.bul li::before { content: "→"; position: absolute; left: 0; font-family: var(--mono); color: var(--accent); }
.doc ul.checks li { display: flex; gap: 10px; }
.doc ul.checks li::before { content: "✓"; font-weight: 700; color: var(--ink); background: var(--lime); width: 18px; height: 18px; display: grid; place-items: center; font-size: 11px; flex: none; margin-top: 3px; }
.doc .media { border: 1px solid var(--line); background: var(--paper-2); aspect-ratio: 9 / 12; max-width: 260px; display: grid; place-items: center; position: relative; border-radius: 8px; overflow: hidden; }
.doc .media.wide { aspect-ratio: 16 / 9; max-width: none; }
.doc .media .tag { position: absolute; top: 8px; left: 8px; }
.doc .media .play { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); border: 1px solid var(--ink); display: grid; place-items: center; }
.doc .media-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.prompt { border: 1px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.prompt .hd { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--ink); background: var(--paper-2); }
.prompt .hd .dots { display: flex; gap: 4px; }
.prompt .hd .dots i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--ink); }
.prompt .hd .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; flex: 1; }
.prompt .sub { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 10px 14px 0; }
.prompt .txt { padding: 12px 14px 16px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; color: #2a2a2a; }
.prompt .part { padding: 10px 14px; border-top: 1px dashed var(--line); display: grid; gap: 6px; }
.prompt .part .tag { justify-self: start; }
.prompt .part p { font-size: 14px; }
.legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.legend div { border: 1px solid var(--line); padding: 10px 12px; font-size: 13px; display: grid; gap: 4px; border-radius: 8px; }
.finish { border: 1px solid var(--ink); padding: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; border-radius: var(--radius); }
.finish h3 { font-size: 18px; }
.finish p { font-size: 13px; color: var(--muted); }
.lesson-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px var(--pad) 40px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line); }
.lesson-foot button { text-decoration: underline; text-underline-offset: 3px; }
.feedback-box textarea { width: 100%; }

/* --------------------------------------------------------------------------
   Announcements, proposals, referrals, settings, work with us
   -------------------------------------------------------------------------- */
.timeline { display: grid; gap: 0; position: relative; padding-left: 0; }
.timeline .tl-item { display: grid; grid-template-columns: 110px 1fr; gap: 20px; position: relative; padding-bottom: 24px; }
.timeline .tl-item::before { content: ""; position: absolute; left: 110px; top: 0; bottom: 0; width: 1px; background: var(--line); transform: translateX(-10px); }
.timeline .tl-item::after { content: ""; position: absolute; left: 110px; top: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1px solid var(--ink); transform: translateX(-14px); }
.timeline .date { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--ink); padding: 6px 10px; justify-self: start; align-self: start; background: var(--paper); }
.timeline .tl-item.unread::after { background: var(--accent); }
.ann { border: 1px solid var(--line); padding: 22px; display: grid; gap: 12px; background: var(--paper); border-radius: var(--radius); }
.ann .hd { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.ann h3 { font-size: 18px; letter-spacing: -.02em; }
.ann .bd { font-size: 15px; line-height: 1.55; color: #2a2a2a; white-space: pre-line; }
.reactions { display: flex; gap: 6px; flex-wrap: wrap; }
.reactions button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); padding: 6px 10px; border-radius: 999px; font-size: 14px; transition: .2s; }
.reactions button span { font-family: var(--mono); font-size: 11px; }
.reactions button:hover { border-color: var(--ink); }
.reactions button.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.read-btn { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.read-btn.is-on { color: var(--ink); }
@media (max-width: 600px) { .timeline .tl-item { grid-template-columns: 1fr; gap: 8px; } .timeline .tl-item::before, .timeline .tl-item::after { display: none; } }
.bell-pop { position: absolute; left: 16px; bottom: 120px; width: 300px; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); z-index: 65; display: none; border-radius: var(--radius); overflow: hidden; }
.bell-pop.is-open { display: block; }
.bell-pop .hd { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.bell-pop .hd a { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; text-decoration: underline; }
.bell-pop ul { max-height: 320px; overflow: auto; }
.bell-pop li a { display: grid; gap: 3px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.bell-pop li a:hover { background: var(--paper-2); }
.bell-pop li a time { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--muted); font-weight: 400; }
.bell-pop .grp { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 8px 14px 2px; }

.proposal { border: 1px solid var(--line); padding: 18px 20px; display: grid; grid-template-columns: 1fr 64px; gap: 16px; background: var(--paper); transition: border-color .2s; border-radius: var(--radius); }
.proposal:hover { border-color: var(--ink); }
.proposal h3 { font-size: 17px; letter-spacing: -.02em; }
.proposal .d { font-size: 14px; color: #2a2a2a; margin-top: 4px; }
.proposal .reply { border-left: 2px solid var(--accent); padding: 6px 12px; margin-top: 10px; font-size: 14px; }
.proposal .reply b { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.proposal .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--muted); }
.vote { width: 64px; height: 64px; border: 1px solid var(--ink); display: grid; place-items: center; align-content: center; gap: 2px; font-family: var(--mono); font-size: 12px; transition: .2s; align-self: start; background: var(--paper); }
.vote:hover { background: var(--paper-2); }
.vote.is-on { background: var(--accent); }
.vote small { font-size: 9px; letter-spacing: .1em; }
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kanban .col { border: 1px solid var(--line); padding: 14px; display: grid; gap: 12px; align-content: start; background: var(--paper-2); border-radius: var(--radius); }
.kanban .col > h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; font-weight: 500; }
.kanban .col > h4 b { background: var(--ink); color: #fff; padding: 2px 8px; font-weight: 500; }
.kanban .card-sm { border: 1px solid var(--line); background: var(--paper); padding: 14px; display: grid; grid-template-columns: 48px 1fr; gap: 12px; border-radius: 8px; }
.kanban .card-sm .vote { width: 48px; height: 48px; font-size: 11px; }
.kanban .card-sm h5 { font-size: 14px; margin: 0 0 4px; }
.kanban .card-sm p { font-size: 13px; color: #2a2a2a; }
@media (max-width: 900px) { .kanban { grid-template-columns: 1fr; } }
.link-builder { border: 1px solid var(--ink); padding: 24px; display: grid; gap: 16px; border-radius: var(--radius); }
.link-builder .out { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); padding: 10px 12px; font-family: var(--mono); font-size: 13px; word-break: break-all; background: var(--paper-2); }
.link-builder .out code { flex: 1; }
.receipt { border: 1px solid var(--line); padding: 20px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; border-radius: var(--radius); }
.receipt .m { font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.split-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: end; padding: clamp(24px, 4vw, 56px) 0; }
.split-hero .display { font-size: clamp(40px, 6vw, 88px); text-transform: none; letter-spacing: -.045em; line-height: .95; }
@media (max-width: 900px) { .split-hero { grid-template-columns: 1fr; } }
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.who > div { border-top: 1px solid var(--ink); padding-top: 16px; }
.who h4 { font-size: 18px; margin-bottom: 8px; }
.who p { font-size: 14px; color: #2a2a2a; }
@media (max-width: 720px) { .who { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Command palette
   -------------------------------------------------------------------------- */
.palette-scrim { position: fixed; inset: 0; background: rgba(10,10,10,.6); z-index: 85; display: none; padding: 10vh 16px 16px; justify-content: center; align-items: flex-start; }
.palette-scrim.is-open { display: flex; }
.palette { width: 100%; max-width: 640px; background: var(--paper); border: 1px solid var(--ink); display: grid; grid-template-rows: auto 1fr auto; max-height: 70vh; border-radius: var(--radius); overflow: hidden; }
.palette input { border: 0; border-bottom: 1px solid var(--ink); padding: 16px 18px; font: inherit; font-size: 16px; outline: none; width: 100%; }
.palette ul { overflow: auto; }
.palette .grp { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 10px 18px 4px; }
.palette li a { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 18px; font-size: 14px; font-weight: 600; }
.palette li a .idx { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.palette li a .ctx { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.palette li a:hover, .palette li a.is-sel { background: var(--accent); }
.palette li a:hover .idx, .palette li a.is-sel .idx, .palette li a:hover .ctx, .palette li a.is-sel .ctx { color: var(--ink); }
.palette .ft { display: flex; gap: 14px; padding: 10px 18px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); flex-wrap: wrap; }
.palette .none { padding: 24px 18px; font-size: 14px; color: var(--muted); }

/* Tour modal */
.tour .video { aspect-ratio: 16 / 9; background: var(--ink); display: grid; place-items: center; color: #9a9a9a; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin: 20px 0; border-radius: 8px; }
.tour h4 { font-size: 16px; display: flex; gap: 8px; align-items: center; margin-top: 16px; }
.tour h4::before { content: ""; width: 8px; height: 8px; background: var(--accent); }
.tour p { font-size: 14px; color: #2a2a2a; margin-top: 6px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .side, .help-fab, .help-panel, .topbar, .lesson-bar { display: none !important; } .app { grid-template-columns: 1fr; } }

/* ==========================================================================
   MOTION LAYER — see DESIGN-SYSTEM.md §2.5. One easing, 160–450 ms, opacity +
   small translate. Everything below is disabled by prefers-reduced-motion.
   ========================================================================== */
:root { --t-fast: .18s; --t-base: .32s; --t-slow: .5s; }
body { transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
body.is-leaving { opacity: 0; transform: none; }

/* Reveal on enter (applied by shell.js to cards, rows and sections) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .06s; } .reveal[data-delay="2"] { transition-delay: .12s; } .reveal[data-delay="3"] { transition-delay: .18s; } .reveal[data-delay="4"] { transition-delay: .24s; } .reveal[data-delay="5"] { transition-delay: .3s; }
.fade-in { animation: fadeUp var(--t-base) var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Press + hover feedback */
.btn, .icon-btn, .vote, .check, .reactions button, .tabs button, .tabs a, .chips span, .switch, .help-fab, .dots button { transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.btn:active, .icon-btn:active, .vote:active, .check:active, .reactions button:active, .tabs button:active, .tabs a:active, .help-fab:active, .side nav a:active, .course-card:active, .module-card:active, .res-card:active { transform: scale(.97); }
.btn.fill:hover, .btn.accent:hover { transform: translateY(-1px); }
.course-card, .module-card, .res-card, .card.hover, .proposal, .ann, .lesson-row, .step { transition: border-color var(--t-fast) var(--ease), transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease); }
.course-card:hover, .module-card:hover, .res-card:hover { transform: translateY(-3px); box-shadow: 0 12px 0 -6px var(--accent); }
.lesson-row:hover { transform: translateX(3px); }
.proposal:hover { transform: translateY(-2px); }
.side nav a, .side nav button { transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.side nav a:hover, .side nav button:hover { transform: translateX(3px); }
.side nav a[aria-current="page"]:hover { transform: none; }
.lesson-group > summary .chev, .faq summary::after { transition: transform var(--t-base) var(--ease); }
.faq details[open] p, .lesson-group[open] .lesson-list { animation: fadeUp var(--t-base) var(--ease) both; }
.continue .btn, .player .cover .play { transition: transform var(--t-base) var(--ease), background-color var(--t-fast) var(--ease); }
.continue:hover .btn { transform: translateX(4px); }
.player .cover .play { animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,46,136,.45); } 60% { box-shadow: 0 0 0 16px rgba(255,46,136,0); } }
.player .cover:hover .play { animation: none; transform: scale(1.08); }

/* Checkbox tick pop, vote pop, reaction bump */
@keyframes pop { 0% { transform: scale(.7); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
.check.pop, .vote.pop, .reactions button.pop, .switch.pop::after { animation: pop var(--t-base) var(--ease); }
.check.on { animation: pop var(--t-base) var(--ease); }

/* Progress bars grow in */
.progress > i { transform-origin: left center; animation: grow .9s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Overlays: palette, help, bell, modal, sidebar */
.palette-scrim { display: flex; opacity: 0; visibility: hidden; transition: opacity var(--t-fast) var(--ease), visibility 0s linear var(--t-fast); }
.palette-scrim.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.palette { transform: translateY(-10px) scale(.98); transition: transform var(--t-base) var(--ease); }
.palette-scrim.is-open .palette { transform: none; }
.help-panel { display: grid; opacity: 0; visibility: hidden; transform: translateY(14px) scale(.98); transform-origin: bottom right; transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease), visibility 0s linear var(--t-base); }
.help-panel.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.help-panel .msg { animation: fadeUp var(--t-base) var(--ease) both; }
.bell-pop { display: block; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility 0s linear var(--t-fast); }
.bell-pop.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.modal { animation: modalIn var(--t-base) var(--ease) both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-scrim.is-closing { animation: fadeOut var(--t-fast) var(--ease) both; }
@keyframes fadeOut { to { opacity: 0; } }
.banner-note { animation: slideDown var(--t-base) var(--ease) both; }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: none; } }
.banner-note.is-closing { transition: transform var(--t-fast) var(--ease), opacity var(--t-fast); transform: translateY(-100%); opacity: 0; }
.offers { animation: fadeUp var(--t-slow) var(--ease) both; }
.offers .track { animation: offersMarquee 28s linear infinite; }
.offers:hover .track { animation-play-state: paused; }
@keyframes offersMarquee { to { transform: translateX(-50%); } }
.offers .track { width: max-content; overflow: visible; }
.offers .track .item { padding-right: 40px; }
.toast { transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease); }
.lesson-bar .nav a, .lesson-bar .icon-btn { transition: transform var(--t-fast) var(--ease), background-color var(--t-fast), color var(--t-fast); }
.lesson-bar .nav a:hover .arrow { transform: translateX(3px); }
.tabs button, .tabs a { position: relative; }
#panel, #view, #content > * { animation: none; }
.panel-swap { animation: fadeUp var(--t-base) var(--ease) both; }
.app.is-collapsed .side, .side { transition: padding var(--t-base) var(--ease); }
.app { transition: grid-template-columns var(--t-base) var(--ease); }

/* Mobile sidebar slides in instead of popping */
@media (max-width: 900px) {
  .side { display: flex; transform: translateX(-100%); visibility: hidden; transition: transform var(--t-base) var(--ease), visibility 0s linear var(--t-base); }
  .side.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .side nav a, .side nav button { padding: 13px 14px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  body.is-leaving { opacity: 1; transform: none; }
  .offers .track { animation: none; width: auto; }
  .offers .item { white-space: normal; }
  .player .cover .play { animation: none; }
}

/* ==========================================================================
   RESPONSIVE FIXES — phones (≤ 560), tablets (561–1024), laptops (≥ 1025)
   ========================================================================== */
.course-grid { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.res-grid { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.legend { grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); }
.doc .media-row { grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); }
.split-form { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(16px, 2.5vw, 32px); align-items: start; }
.split-aside { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(16px, 2.5vw, 32px); align-items: start; }
.split-aside > aside { position: sticky; top: 24px; }
.landing .hero .display { font-size: clamp(34px, 7vw, 108px); }
.page-head .lead { max-width: 60ch; }
.lesson-bar .mid .t { font-size: 13px; }
@media (max-width: 1024px) {
  .split-aside { grid-template-columns: 1fr; }
  .split-aside > aside { position: static; }
  .upsell { grid-template-columns: 1fr; }
  .lesson .doc-col { margin-top: 24px; }
}
@media (max-width: 900px) {
  .split-form { grid-template-columns: 1fr; }
  .split-hero { padding-top: 16px; }
  .main .content { padding-top: 20px; }
  .topbar { height: auto; padding: 10px var(--pad); flex-wrap: wrap; }
  .topbar .search { max-width: none; flex-basis: 100%; }
  .topbar .hello { display: none; }
  .help-fab { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .help-panel { right: 12px; bottom: calc(68px + env(safe-area-inset-bottom)); }
  .side .foot { padding-bottom: env(safe-area-inset-bottom); }
}
@media (max-width: 560px) {
  .page-head .row.between { flex-direction: column; align-items: stretch; }
  .page-head form.row { max-width: none; }
  .receipt { grid-template-columns: 1fr; }
  .receipt .btn { justify-self: start; }
  .finish { flex-direction: column; align-items: stretch; }
  .finish .row { justify-content: stretch; }
  .finish .btn { flex: 1; }
  .proposal { grid-template-columns: 1fr 56px; padding: 16px; }
  .vote { width: 56px; height: 56px; }
  .upsell { padding: 20px; }
  .examples .pair { grid-template-columns: 1fr 1fr; gap: 8px; }
  .continue { min-height: 200px; }
  .continue h2 { font-size: 26px; }
  .mod-head .ghost { font-size: 110px; right: 8px; }
  .mod-head h2 { font-size: 26px; }
  .lesson { padding: 16px var(--pad) 48px; }
  .lesson .head h1 { font-size: 26px; }
  .doc { padding: 18px 16px; }
  .doc h2 { font-size: 20px; }
  .doc-col .tabs-row { flex-direction: column; align-items: stretch; }
  .doc-col .tabs { justify-content: flex-start; }
  .doc-col .tabs-row > .btn { align-self: flex-start; }
  .chapters .dur { margin-left: 0; flex-basis: 100%; }
  .kanban .col { padding: 10px; }
  .timeline .tl-item { padding-bottom: 16px; }
  .ann { padding: 16px; }
  .link-builder { padding: 16px; }
  .link-builder .row { flex-direction: column; align-items: stretch; }
  .auth .top { padding: 14px var(--pad); }
  .auth .card .h3 { font-size: 22px; }
  .modal .h3 { font-size: 20px; }
  .btn { padding: 13px 18px; }
  .lesson-foot { flex-direction: column; gap: 8px; }
  .offers { padding: 8px 10px; }
  .offers .item { font-size: 13px; }
  .landing .ctas .btn { width: 100%; }
  .table th, .table td { padding-right: 16px; font-size: 14px; }
}
/* Touch devices: bigger tap targets, no hover-only affordances */
@media (hover: none) {
  .btn.xs { padding: 10px 14px; font-size: 11px; }
  .btn.sm { padding: 12px 18px; }
  .icon-btn.sm { width: 40px; height: 40px; }
  .check { width: 26px; height: 26px; }
  .reactions button { padding: 8px 12px; }
  .course-card:hover, .module-card:hover, .res-card:hover, .lesson-row:hover, .proposal:hover { transform: none; box-shadow: none; }
  .player .cover .play { animation: none; }
}
/* Large laptops / desktops: let the content breathe */
@media (min-width: 1440px) {
  .main .content { max-width: 1320px; padding-left: 48px; padding-right: 48px; }
  .lesson { max-width: 1560px; }
}

/* ==========================================================================
   MONOCHROME THEME — white paper, black ink, nothing else.
   Overrides every rule that put ink text on a pink or lime fill, and every
   pink used on the dark sidebar (where ink would vanish).
   ========================================================================== */
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.display .accent, .h1 .accent, .h2 .accent { color: var(--ink); text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .08em; }
.hl, .hl.pink { background: var(--ink); color: #fff; }
.btn.fill:hover { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.btn.accent { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.accent:hover { background: var(--paper); color: var(--ink); }
.tag.accent, .tag.lime { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill i { background: var(--ink); }
.check.on, .check[aria-checked="true"] { background: var(--ink); color: #fff; }
.check:hover { border-color: var(--ink); background: var(--paper-2); }
.switch[aria-checked="true"] { background: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom: 2px solid var(--ink); }
.field.boxed input:focus, .field.boxed select:focus, .field.boxed textarea:focus { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.card.accent, .card.lime { background: var(--ink); color: #fff; border-color: var(--ink); }
.progress > i, .progress.done > i { background: var(--ink); }
.ink .progress > i, .continue .pr .progress > i, .mod-head .pr .progress > i { background: #fff; }
.step .num, .doc h3 .n { background: var(--ink); color: #fff; }
.doc ul.bul li::before { color: var(--ink); }
.doc ul.checks li::before { background: var(--ink); color: #fff; }
.avatars i:nth-child(2) { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.avatars i:nth-child(3) { background: var(--paper-2); color: var(--ink); border-color: var(--line); }
.banner-note { background: var(--ink); color: #fff; }
.banner-note.accent { background: var(--ink); color: #fff; }
.banner-note.lime { background: var(--paper-2); color: var(--ink); border-bottom: 1px solid var(--line); }
.help-fab { background: var(--ink); color: #fff; }
.help-fab:hover { background: var(--paper); color: var(--ink); }
.side .brand .mark { background: var(--paper); color: var(--ink); }
.side nav a[aria-current="page"], .side nav a.is-active, .side nav button.is-active { background: var(--paper); color: var(--ink); }
.side .badge { background: var(--paper); color: var(--ink); }
.side .user i { background: var(--paper); color: var(--ink); }
.mobile-bar .brand .mark { background: var(--paper); color: var(--ink); }
.ink .tabs .is-active, .ink .tabs [aria-selected="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.auth .wordmark span { color: var(--ink); }
.offers { background: var(--paper-2); border-color: var(--ink); }
.course-card:hover, .module-card:hover, .res-card:hover { box-shadow: 0 12px 0 -6px var(--ink); }
.continue .k, .mod-head .k { color: #bdbdbd; }
.continue .btn, .lesson-bar .nav a.accent { background: var(--ink); color: #fff; border-color: #fff; }
.continue:hover .btn { background: #fff; color: var(--ink); }
.player .cover .play, .examples .clip .play, .doc .media .play { background: var(--ink); color: #fff; border-color: var(--paper); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(10,10,10,.35); } 60% { box-shadow: 0 0 0 16px rgba(10,10,10,0); } }
.callout b { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.dots button[aria-selected="true"] { background: var(--ink); }
.vote.is-on { background: var(--ink); color: #fff; }
.proposal .reply { border-left-color: var(--ink); }
.timeline .tl-item.unread::after { background: var(--ink); }
.note.accent { border-color: var(--ink); background: var(--paper-2); }
.palette li a:hover, .palette li a.is-sel { background: var(--ink); color: #fff; }
.palette li a:hover .idx, .palette li a.is-sel .idx, .palette li a:hover .ctx, .palette li a.is-sel .ctx { color: #bdbdbd; }
.upsell .price .big, .stat .num { color: var(--ink); }
.upsell ul li::before { color: var(--ink); }
.toast { background: var(--ink); color: #fff; }
.side .foot .legal[href="admin/"] { color: #fff; text-decoration: underline; }

/* ==========================================================================
   COLLAPSED SIDEBAR — 72px icon rail (laptop / desktop only)
   ========================================================================== */
.side .mini { display: none; }
.app.is-collapsed .side { width: 72px; padding: 16px 12px; align-items: center; overflow-x: hidden; }
.app.is-collapsed .side > * { width: 48px; }
.app.is-collapsed .side .full { display: none !important; }
.app.is-collapsed .side .mini { display: inline-grid; }
.app.is-collapsed .side .brand { padding: 0 0 12px; justify-content: center; }
.app.is-collapsed .side .brand .mark { width: 40px; height: 40px; }
.app.is-collapsed .side .search-trigger { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 14px; margin: 0 auto; }
.app.is-collapsed .side .search-trigger .ico { width: 18px; height: 18px; margin: 0; }
.app.is-collapsed .side nav { gap: 6px; margin-top: 8px; }
.app.is-collapsed .side nav a, .app.is-collapsed .side nav button { width: 48px; height: 48px; padding: 0; justify-content: center; border-radius: 14px; margin: 0 auto; gap: 0; }
.app.is-collapsed .side nav a:hover { transform: none; }
.app.is-collapsed .side nav .ico { width: 20px; height: 20px; }
.app.is-collapsed .side nav .num { width: 26px; height: 26px; font-size: 12px; }
.app.is-collapsed .side nav .grp, .app.is-collapsed .side nav .sub { display: none; }
.app.is-collapsed .side .back { width: 48px; height: 48px; padding: 0; justify-content: center; border-radius: 14px; margin: 0 auto 4px; }
.app.is-collapsed .side .collapse { width: 48px; height: 40px; padding: 0; justify-content: center; border-radius: 14px; margin: 12px auto 0; }
.app.is-collapsed .side .collapse .glyph { display: inline-block; transform: rotate(180deg); }
.app.is-collapsed .side .foot { width: 48px; padding-top: 12px; justify-items: center; gap: 8px; }
.app.is-collapsed .side .foot .tools { flex-direction: column; gap: 8px; }
.app.is-collapsed .side .foot .lang, .app.is-collapsed .side .foot .legal, .app.is-collapsed .side .foot .full { display: none !important; }
.app.is-collapsed .side .user { padding: 0; justify-content: center; }
.app.is-collapsed .side .user span { display: none; }
.app.is-collapsed .side .note { display: none; }
.app.is-collapsed .side .kbd { display: none; }
@media (max-width: 900px) {
  .app.is-collapsed .side { width: auto; padding: 20px 16px; align-items: stretch; }
  .app.is-collapsed .side > * { width: auto; }
  .app.is-collapsed .side .full { display: inline-flex !important; }
  .app.is-collapsed .side .mini { display: none !important; }
  .app.is-collapsed .side .brand b, .app.is-collapsed .side .brand small, .app.is-collapsed .side .search-trigger span, .app.is-collapsed .side nav .lbl, .app.is-collapsed .side nav .meta, .app.is-collapsed .side nav .grp, .app.is-collapsed .side nav .sub, .app.is-collapsed .side .foot .lang, .app.is-collapsed .side .foot .legal, .app.is-collapsed .side .back span, .app.is-collapsed .side .user span, .app.is-collapsed .side .kbd { display: revert; }
  .app.is-collapsed .side nav a, .app.is-collapsed .side nav button, .app.is-collapsed .side .search-trigger, .app.is-collapsed .side .back { width: 100%; height: auto; padding: 13px 14px; justify-content: flex-start; border-radius: 10px; gap: 10px; }
  .app.is-collapsed .side .brand { justify-content: flex-start; padding: 4px 8px 16px; }
  .app.is-collapsed .side .foot { width: auto; justify-items: stretch; }
  .app.is-collapsed .side .foot .tools { flex-direction: row; }
}

/* Brand mark = the Ideabro logo, loaded from the URL in js/config.js → brand.logo */
.side .brand .mark, .mobile-bar .brand .mark { background: var(--ink); color: #fff; overflow: hidden; padding: 0; border: 1px solid var(--ink-3); border-radius: 10px; }
.side .brand .mark img, .mobile-bar .brand .mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo-lockup { display: grid; justify-items: center; gap: 12px; }
.logo-tile { width: 56px; height: 56px; overflow: hidden; border: 1px solid var(--ink); background: var(--ink); display: block; border-radius: 10px; }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo-tile.sm { width: 36px; height: 36px; }
.logo-lockup.row { display: inline-flex; align-items: center; gap: 12px; }
.logo-lockup .logo-sm { width: 36px; height: 36px; }
.admin .side .brand .mark { outline: 0; }

/* ==========================================================================
   Landing page — integrated nav + centered hero
   ========================================================================== */
.lp-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0 var(--pad);
  overflow: hidden;
}
.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(10,10,10,.04), transparent 70%);
  pointer-events: none;
}

/* Nav */
.lp-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}
.lp-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lp-nav-name {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.lp-nav-links .mono { font-size: 12px; letter-spacing: .1em; transition: color .2s; }
.lp-nav-links .mono:hover { color: var(--muted); }
.lp-nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.lp-nav-toggle span { width: 22px; height: 2px; background: var(--ink); transition: .25s var(--ease); }
.lp-nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lp-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.lp-nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Logo — curved square */
.lp-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  overflow: hidden;
  display: block;
  flex: none;
  background: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: 0 2px 12px rgba(10,10,10,.12);
  transition: transform .3s var(--ease);
}
.lp-nav-brand:hover .lp-logo { transform: rotate(-4deg) scale(1.05); }
.lp-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-logo.sm { width: 32px; height: 32px; border-radius: 10px; }

/* Hero body — centered */
.lp-hero-body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 24px;
  padding: clamp(40px, 8vh, 80px) 0;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}
.lp-hero-kicker { justify-content: center; }
.lp-hero-kicker::before { display: none; }
.lp-hero-title {
  font-size: clamp(40px, 8vw, 120px);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: .9;
  text-transform: uppercase;
  max-width: 14ch;
  margin: 0 auto;
  color: transparent;
  background: linear-gradient(135deg, #0a0a0a 0%, #707070 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.lp-hero-title .accent {
  color: #0a0a0a;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  text-decoration: none;
}
.lp-hero-lead {
  max-width: 52ch;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.4;
  letter-spacing: -.01em;
  color: #2a2a2a;
}
.lp-hero-ctas { justify-content: center; }
.lp-hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 11px;
  letter-spacing: .12em;
  animation: lpScroll 2s var(--ease) infinite;
}
@keyframes lpScroll { 0%, 100% { transform: translate(-50%, 0); opacity: .6; } 50% { transform: translate(-50%, 6px); opacity: 1; } }

/* Stats */
.lp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1200px;
  margin: 0 var(--pad);
}
.lp-stats > div { padding: 28px 24px; border-bottom: 1px solid var(--line); display: grid; justify-items: center; text-align: center; gap: 10px; }
.lp-stats > div + div { border-left: 1px solid var(--line); }
.lp-stats .num { font-size: clamp(36px, 5vw, 72px); font-weight: 900; letter-spacing: -.05em; line-height: .9; }

/* Sections */
.lp-section {
  padding: clamp(48px, 8vw, 96px) var(--pad);
  max-width: 1200px;
  margin: 0 auto;
}
.lp-section-head { display: grid; gap: 14px; margin-bottom: 40px; justify-items: center; text-align: center; }
.lp-section-head .h2 { max-width: 18ch; }

/* Why grid */
.lp-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.lp-why-card {
  border: 1px solid var(--line);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.lp-why-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.lp-why-num { font-size: 13px; letter-spacing: .12em; color: var(--muted); }
.lp-why-card .h4 { font-size: 19px; }
.lp-why-card .body { font-size: 15px; color: #3a3a3a; }

/* Courses section — dark */
.lp-section-ink {
  background: var(--ink);
  color: #fff;
  max-width: none;
  margin: 0;
}
.lp-section-ink .kicker { color: #aaa; }
.lp-section-ink .h2 { color: #fff; }
.lp-courses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.lp-course-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  border: 1px solid var(--ink-3);
  padding: 32px 28px;
  min-height: 220px;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.lp-course-card:hover { border-color: #fff; transform: translateY(-3px); }
.lp-course-card .h3 { font-size: 22px; color: #fff; }
.lp-courses-cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* Footer */
.lp-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 28px var(--pad);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.lp-foot-brand { display: flex; align-items: center; gap: 12px; }
.lp-foot-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.lp-foot-links .mono { font-size: 12px; letter-spacing: .1em; color: var(--muted); transition: color .2s; }
.lp-foot-links .mono:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 900px) {
  .lp-why-grid { grid-template-columns: 1fr 1fr; }
  .lp-courses { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .lp-stats { grid-template-columns: repeat(3, 1fr); margin: 0 auto; width: 100%; }
  .lp-stats > div + div { border-left: 1px solid var(--line); }
  .lp-stats > div { padding: 16px 8px; }
  .lp-stats .num { font-size: clamp(24px, 7vw, 40px); }
  .lp-stats .mono { font-size: 10px; letter-spacing: .06em; }
  .lp-nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s var(--ease);
  }
  .lp-nav-links.is-open { max-height: 320px; padding: 12px var(--pad); gap: 16px; }
  .lp-nav-links .mono { width: 100%; padding: 8px 0; font-size: 14px; }
  .lp-nav-links .btn { margin-top: 8px; }
  .lp-nav-toggle { display: flex; }
  .lp-nav { padding: 16px 0; }
  .lp-foot { flex-direction: column; gap: 16px; padding: 20px var(--pad); }
  .lp-foot-links { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .lp-hero-body { gap: 18px; padding: clamp(28px, 5vh, 50px) 0; }
  .lp-hero-title { font-size: clamp(34px, 11vw, 64px); }
  .lp-hero-lead { font-size: clamp(15px, 4vw, 18px); }
  .lp-hero-ctas { flex-direction: column; align-items: stretch; gap: 10px; }
  .lp-hero-ctas .btn { width: 100%; text-align: center; }
  .lp-hero-scroll { display: none; }
  .lp-section { padding: clamp(32px, 6vw, 56px) var(--pad); }
  .lp-section-head { margin-bottom: 28px; }
  .lp-why-card { padding: 24px 20px; }
  .lp-course-card { padding: 24px 20px; min-height: 180px; }
}
@media (max-width: 400px) {
  .lp-nav-name { font-size: 12px; }
  .lp-logo { width: 36px; height: 36px; border-radius: 10px; }
  .lp-hero-title { font-size: clamp(28px, 10vw, 48px); }
  .lp-hero-lead { font-size: 15px; }
  .lp-ctas .btn { font-size: 13px; padding: 12px 20px; }
  .lp-course-card .h3 { font-size: 19px; }
  .lp-why-card .h4 { font-size: 17px; }
}
