/* =========================================================
   Web Development with Ayomah — course styles
   Clean, neutral, Apple-inspired. One accent colour.
   ========================================================= */
:root {
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --faint: #86868b;
  --line: #d2d2d7;
  --hair: #e8e8ed;
  --bg: #f5f5f7;
  --bg-2: #fbfbfd;
  --card: #ffffff;
  --accent: #0071e3;
  --accent-ink: #0066cc;
  --accent-soft: #eef5fe;
  --green: #248a3d;
  --green-soft: #eef8f0;
  --red: #d70015;
  --red-soft: #fff1f2;
  --orange: #b25000;
  --orange-soft: #fff7ed;
  --code-bg: #1d1d1f;
  --code-ink: #f5f5f7;
  --top: 52px;
  --side: 300px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { font-size: 17px; scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 24px); }
html.presenter { font-size: 21px; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.6; letter-spacing: -0.011em; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.022em; font-weight: 600; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
b, strong { font-weight: 600; }
button { font: inherit; cursor: pointer; letter-spacing: inherit; }
code, kbd, pre { font-family: var(--mono); letter-spacing: 0; }
:not(pre) > code { background: var(--bg); color: var(--ink); padding: .1em .4em; border-radius: 6px; font-size: .86em; border: 1px solid var(--hair); }
kbd { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: .05em .45em; font-size: .82em; box-shadow: 0 1px 0 var(--line); }

/* Icons */
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; flex: none; }
.icon svg { width: 100%; height: 100%; display: block; }
[data-icon] svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; height: var(--top); z-index: 50;
  background: rgba(251, 251, 253, .82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.08);
  display: flex; align-items: center; gap: 16px; padding: 0 22px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; white-space: nowrap; font-size: 15px; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-family: var(--mono); font-weight: 700; font-size: 11px;
}
.brand small { display: none; }
.topbar .crumb { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .spacer { flex: 1; }
.progress-wrap { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.progress-bar { width: 120px; height: 4px; background: var(--hair); border-radius: 99px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.tb-btn {
  background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 99px;
  padding: 5px 14px; font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px;
}
.tb-btn:hover { background: var(--bg); }
.tb-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.menu-btn { display: inline-flex; padding: 6px 8px; border-color: transparent; font-size: 19px; color: var(--ink-2); margin-left: -6px; }
.menu-btn:hover { background: var(--hair); }
.menu-btn[aria-expanded="true"] { color: var(--accent); }

/* ---------- Layout ---------- */
.layout { padding-top: var(--top); }
.sidebar {
  position: fixed; top: var(--top); bottom: 0; left: 0; width: var(--side);
  background: var(--bg-2); border-right: 1px solid var(--hair); overflow-y: auto; z-index: 40; padding: 28px 12px 40px;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), visibility .35s;
}
.side-head { padding: 0 12px 18px; }
.side-head .eyebrow { font-size: 12px; color: var(--muted); font-weight: 500; }
.side-head h2 { font-size: 19px; margin: 4px 0 0; }
.toc, .toc ul { list-style: none; margin: 0; padding: 0; }
.toc > li { margin-bottom: 2px; }
.toc > li > a {
  display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px; color: var(--ink);
  font-weight: 500; font-size: 14px; border-radius: 10px;
}
.toc ul { margin: 2px 0 8px; }
.toc ul a { display: flex; gap: 10px; padding: 5px 12px 5px 40px; color: var(--muted); font-size: 13px; border-radius: 8px; }
.toc a:hover { background: var(--hair); text-decoration: none; }
.toc a.active { background: var(--hair); color: var(--ink); }
.toc ul a.active { color: var(--accent-ink); background: transparent; }
.toc .num { font-variant-numeric: tabular-nums; color: var(--faint); min-width: 30px; font-size: .92em; }
.toc ul .num { min-width: 38px; }
.tick {
  flex: 0 0 16px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line); margin-top: 3px;
  display: grid; place-items: center; color: #fff; transition: background .3s, border-color .3s;
}
.done > a .tick { background: var(--green); border-color: var(--green); }
.done > a .tick::after {
  content: ""; width: 7px; height: 4px; border-left: 1.6px solid #fff; border-bottom: 1.6px solid #fff; transform: rotate(-45deg) translate(1px, -1px);
}
.side-foot { padding: 18px 12px; font-size: 13px; }

.content { margin-left: var(--side); padding: 56px 48px 140px; transition: margin-left .35s cubic-bezier(.2,.8,.2,1); }
@media (min-width: 1001px) {
  html.side-collapsed .sidebar { transform: translateX(-100%); visibility: hidden; }
  html.side-collapsed .content { margin-left: 0; }
}
.content-inner { max-width: 860px; margin: 0 auto; }
html.presenter .content-inner { max-width: 1000px; }

/* ---------- Session hero ---------- */
.session-hero { padding: 24px 0 56px; border-bottom: 1px solid var(--hair); margin-bottom: 64px; }
.session-hero .eyebrow { color: var(--accent-ink); font-weight: 600; font-size: 15px; }
.session-hero h1 { font-size: 3.1rem; margin: 10px 0 18px; letter-spacing: -0.035em; font-weight: 700; }
.session-hero p { max-width: 640px; color: var(--muted); font-size: 1.25rem; line-height: 1.5; margin: 0; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 32px; }
.chip { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 15px; }
.chip .icon { color: var(--accent); font-size: 1.2em; }

/* ---------- Topics & cards ---------- */
.topic { margin-bottom: 96px; }
.topic-head { margin-bottom: 28px; }
.topic-num { display: block; font-size: 15px; font-weight: 600; color: var(--accent-ink); font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.topic-head h2 { margin: 0; font-size: 2.3rem; letter-spacing: -0.03em; font-weight: 700; }
.topic-head p { margin: 8px 0 0; color: var(--muted); font-size: 1.12rem; }

.card { background: var(--card); border-radius: var(--r-lg); padding: 40px 44px; margin-bottom: 20px; }
.card-num { font-size: 13px; font-weight: 500; color: var(--faint); font-variant-numeric: tabular-nums; }
.card h3 { margin: 4px 0 16px; font-size: 1.6rem; letter-spacing: -0.025em; }
.card h4 { margin: 22px 0 8px; font-size: 1.05rem; }
.card p:first-of-type { margin-top: 0; }
.card ul, .card ol { padding-left: 1.25em; }
.card li { margin: 6px 0; }
.card li::marker { color: var(--faint); }
.lead { font-size: 1.2rem; line-height: 1.5; color: var(--ink); }
.muted { color: var(--muted); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Grids & tiles ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 20px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 20px 0; }
.tile { border-radius: var(--r-md); padding: 22px 22px 20px; background: var(--bg); }
.tile .ic { color: var(--accent); font-size: 26px; line-height: 1; margin-bottom: 14px; display: flex; gap: 8px; }
.tile h4 { margin: 0 0 6px; font-size: 1.02rem; }
.tile p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.5; }

.compare { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .95rem; }
.compare th, .compare td { padding: 14px 14px 14px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); }
.compare th { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; border-bottom-color: var(--line); }
.table-wrap { overflow-x: auto; }

/* ---------- Callouts ---------- */
.callout { border-radius: var(--r-md); padding: 18px 22px; margin: 22px 0; background: var(--bg); }
.callout > strong:first-child { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--ink); }
.callout p { margin: 4px 0; color: var(--ink-2); }
.callout.note > strong:first-child { color: var(--accent-ink); }
.callout.tip > strong:first-child { color: var(--green); }
.callout.ghana > strong:first-child { color: var(--orange); }
.callout.warn { background: var(--red-soft); }
.callout.warn > strong:first-child { color: var(--red); }

/* Teacher notes (visible only with ?teacher) */
.teacher-note { display: none; }
html.teacher .teacher-note {
  display: block; border: 1px dashed #b4b4bb; background: #fff; border-radius: var(--r-md);
  padding: 14px 18px; margin: 18px 0; font-size: .92rem; color: var(--ink-2);
}
html.teacher .teacher-note::before {
  content: "Teacher note"; display: block; font-weight: 600; font-size: 12px; color: #8944ab; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .05em;
}

/* ---------- Activity boxes ---------- */
.box { border-radius: var(--r-lg); background: #fff; margin: 28px 0; border: 1px solid var(--hair); overflow: hidden; }
.topic > .box { border: 0; }
.box-head { display: flex; align-items: center; gap: 12px; padding: 20px 28px 0; font-weight: 600; font-size: 1.12rem; letter-spacing: -0.015em; }
.box-head .tag {
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px;
  background: var(--bg); color: var(--muted);
}
.box.sim .tag { background: var(--accent-soft); color: var(--accent-ink); }
.box.cyu .tag { background: var(--green-soft); color: var(--green); }
.box.lab .tag { background: var(--orange-soft); color: var(--orange); }
.box.assignment .tag { background: #f6effb; color: #8944ab; }
.box.quiz-final .tag { background: var(--ink); color: #fff; }
.box-body { padding: 18px 28px 26px; }
.card .box-head { padding: 18px 22px 0; }
.card .box-body { padding: 14px 22px 22px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 99px;
  padding: 9px 20px; font-weight: 500; font-size: .94rem; background: var(--accent); color: #fff; transition: background .2s;
}
.btn:hover { background: #0077ed; text-decoration: none; }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn.ghost { background: var(--hair); color: var(--ink); }
.btn.ghost:hover { background: #dcdce1; }
.btn.green { background: var(--ink); }
.btn.green:hover { background: #333336; }
.btn.gold { background: var(--accent); color: #fff; }
.btn.link { background: none; color: var(--accent-ink); padding: 9px 4px; }
.btn.link:hover { text-decoration: underline; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }

/* ---------- Quizzes ---------- */
.q { padding: 20px 0; border-bottom: 1px solid var(--hair); }
.q:last-of-type { border-bottom: 0; }
.q > p { font-weight: 600; margin: 0 0 12px; }
.q-n { color: var(--faint); margin-right: 6px; font-variant-numeric: tabular-nums; }
.opts { display: grid; gap: 8px; }
.opt {
  text-align: left; display: flex; gap: 14px; align-items: center; width: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; color: var(--ink);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.opt:hover { border-color: #a1a1a6; }
.opt-letter {
  flex: 0 0 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 12px;
  border: 1px solid var(--line); color: var(--muted);
}
.opt.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.opt.sel .opt-letter { background: var(--accent); border-color: var(--accent); color: #fff; }
.answered .opt { cursor: default; }
.opt.right { border-color: var(--green); background: var(--green-soft); box-shadow: 0 0 0 1px var(--green); }
.opt.right .opt-letter { background: var(--green); border-color: var(--green); color: #fff; }
.opt.wrong { border-color: var(--red); background: var(--red-soft); box-shadow: 0 0 0 1px var(--red); }
.opt.wrong .opt-letter { background: var(--red); border-color: var(--red); color: #fff; }
.explain { display: none; margin-top: 12px; font-size: .94rem; color: var(--ink-2); }
.answered .explain { display: block; }
.explain::before { font-weight: 600; margin-right: 6px; }
.answered.is-right .explain::before { content: "Correct."; color: var(--green); }
.answered.is-wrong .explain::before { content: "Not quite."; color: var(--red); }
.multi-hint { font-size: .85rem; color: var(--muted); font-weight: 400; }
.score { font-weight: 500; font-size: .94rem; color: var(--ink-2); }
.score.pass { color: var(--green); }
.score.fail { color: var(--red); }
.cyu-msg { color: var(--red); font-size: .9rem; }

/* ---------- Code playground ---------- */
.playground { border-radius: var(--r-md); overflow: hidden; margin: 18px 0; background: var(--code-bg); box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 12px 30px rgba(0,0,0,.08); }
.pg-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #2c2c2e; color: #a1a1a6; font-size: 12.5px; }
.pg-bar .dots { display: flex; gap: 7px; margin-right: 8px; }
.pg-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; display: block; }
.pg-bar .dots i:nth-child(2) { background: #febc2e; }
.pg-bar .dots i:nth-child(3) { background: #28c840; }
.pg-bar .file { font-family: var(--mono); color: #e5e5ea; }
.pg-bar .spacer { flex: 1; }
.pg-bar button { background: #3a3a3c; color: #e5e5ea; border: 0; border-radius: 6px; padding: 4px 11px; font-size: 12px; }
.pg-bar button:hover { background: #48484a; }
.pg-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 340px; }
.pg-split textarea {
  width: 100%; height: 100%; min-height: 340px; resize: vertical; border: 0; outline: none; padding: 16px 18px;
  background: var(--code-bg); color: var(--code-ink); font-family: var(--mono); font-size: 13.5px; line-height: 1.65;
  tab-size: 2; white-space: pre; overflow: auto;
}
html.presenter .pg-split textarea { font-size: 16.5px; }
.pg-preview { background: #fff; display: flex; flex-direction: column; }
.pg-preview .label { font-size: 11px; font-weight: 500; color: var(--faint); padding: 7px 14px; border-bottom: 1px solid var(--hair); }
.pg-preview iframe { flex: 1; width: 100%; border: 0; min-height: 300px; background: #fff; }

/* ---------- Assignment ---------- */
.tasks { list-style: none; padding: 0 !important; margin: 14px 0; border-top: 1px solid var(--hair); }
.tasks li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 2px; border-bottom: 1px solid var(--hair); margin: 0 !important; }
.tasks .st {
  flex: 0 0 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; margin-top: 2px; color: #fff;
}
.tasks li.pass .st { background: var(--green); border-color: var(--green); }
.tasks li.pass .st::after { content: ""; width: 8px; height: 4px; border-left: 1.6px solid #fff; border-bottom: 1.6px solid #fff; transform: rotate(-45deg) translate(1px,-1px); }
.tasks li.fail .st { border-color: var(--red); }
.tasks li.fail .st::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.tasks .hint { display: none; font-size: .88rem; color: var(--red); margin-top: 4px; }
.tasks li.fail .hint { display: block; }
.success-banner { display: none; margin-top: 18px; padding: 18px 22px; border-radius: var(--r-md); background: var(--green-soft); color: var(--ink); }
.success-banner strong { color: var(--green); }
.success-banner.show { display: block; animation: rise .5s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Checklist */
.checklist { list-style: none; padding: 0 !important; margin: 10px 0; }
.checklist li { margin: 0 !important; border-bottom: 1px solid var(--hair); }
.checklist li:last-child { border-bottom: 0; }
.checklist label { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; padding: 13px 2px; }
.checklist input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.checklist input:checked + span { color: var(--faint); text-decoration: line-through; text-decoration-color: var(--line); }

/* ---------- Flip cards ---------- */
.flip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 18px; }
.flip { perspective: 1000px; height: 168px; cursor: pointer; border: 0; padding: 0; background: none; text-align: left; }
.flip-inner { position: relative; width: 100%; height: 100%; transition: transform .6s cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d; }
.flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--r-md); padding: 18px; display: flex; flex-direction: column; justify-content: center; }
.flip-front { background: var(--bg); align-items: center; text-align: center; gap: 6px; }
.flip-front .big { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.flip-front small { color: var(--faint); font-size: 12px; }
.flip-back { transform: rotateY(180deg); background: var(--ink); color: #f5f5f7; font-size: .9rem; line-height: 1.45; }
.flip-back b { display: block; color: #fff; margin-bottom: 4px; }
.c2 { color: var(--green); } .c3 { color: var(--accent); } .c4 { color: var(--orange); } .c5 { color: var(--red); }

/* ---------- Sorter ---------- */
.sorter { margin-top: 14px; border-top: 1px solid var(--hair); }
.sort-item { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 14px 2px; border-bottom: 1px solid var(--hair); }
.sort-item .txt { flex: 1 1 300px; }
.sort-item .choices { display: inline-flex; background: var(--hair); border-radius: 9px; padding: 2px; }
.sort-item .choices button { border: 0; background: transparent; border-radius: 7px; padding: 5px 12px; font-size: .84rem; font-weight: 500; color: var(--ink); }
.sort-item .choices button:hover { background: #fff; }
.sort-item .why { flex-basis: 100%; font-size: .88rem; color: var(--muted); display: none; }
.sort-item.right .why, .sort-item.wrong .why { display: block; }
.sort-item .why .res { font-weight: 600; margin-right: 4px; }
.sort-item.right .why .res { color: var(--green); }
.sort-item.wrong .why .res { color: var(--red); }

/* ---------- Glossary ---------- */
.glossary-search {
  width: 100%; padding: 12px 16px 12px 42px; border: 0; border-radius: 12px; font: inherit; margin-bottom: 18px; background: var(--bg)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 15px center / 17px;
}
.glossary-search:focus { outline: none; box-shadow: 0 0 0 3px rgba(0,113,227,.25); }
.glossary dl { margin: 0; }
.glossary .term { padding: 14px 0; border-bottom: 1px solid var(--hair); display: grid; grid-template-columns: 220px 1fr; gap: 16px; }
.glossary dt { font-weight: 600; }
.glossary dd { margin: 0; color: var(--ink-2); font-size: .95rem; }
.glossary .term.hide { display: none; }

/* ---------- Tabs ---------- */
.tabs { display: inline-flex; gap: 2px; background: var(--hair); border-radius: 9px; padding: 2px; margin-top: 18px; margin-bottom: 10px; }
.tabs button { border: 0; background: none; padding: 5px 14px; font-weight: 500; font-size: .85rem; color: var(--ink); border-radius: 7px; font-family: var(--mono); }
.tabs button.on { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
pre.code { background: var(--code-bg); color: var(--code-ink); padding: 16px 18px; border-radius: var(--r-md); overflow-x: auto; margin: 0; font-size: 13px; line-height: 1.6; }
html.presenter pre.code { font-size: 15.5px; }

.session-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.site-foot { text-align: center; color: var(--faint); font-size: 12.5px; padding: 40px 0 0; }

/* =========================================================
   Session 1 simulations
   ========================================================= */
.jr-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.jr-controls label { color: var(--muted); font-size: .92rem; }
.jr-controls select { font: inherit; color: var(--ink); padding: 7px 12px; border-radius: 9px; border: 1px solid var(--line); margin-left: 8px; background: #fff; }
.jr-urlbar {
  flex: 1 1 280px; background: var(--bg); border-radius: 9px; padding: 8px 14px; color: var(--ink-2);
  font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; gap: 8px; align-items: center;
}
.jr-urlbar .icon { color: var(--faint); }
.jr-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 18px; align-items: start; }
.jr-wrap svg { width: 100%; height: auto; background: var(--bg); border-radius: var(--r-md); }
.jr-node .frame { fill: #fff; stroke: var(--line); stroke-width: 1.5; transition: stroke .3s; }
.jr-node.on .frame { stroke: var(--accent); stroke-width: 2.5; }
.jr-node .glyph { fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.jr-node.on .glyph { stroke: var(--accent); }
.jr-line { stroke: #c7c7cc; stroke-width: 2; stroke-dasharray: 4 6; }
.jr-line.on { stroke: var(--accent); animation: dash .8s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }
#jr-packet rect { fill: var(--accent); }
#jr-packet.bad rect { fill: var(--red); }
.card .jr-steps, .jr-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.card .jr-steps li { margin: 0; }
.jr-steps button {
  width: 100%; text-align: left; border: 0; background: transparent; border-radius: 8px; padding: 7px 10px;
  font-size: .84rem; color: var(--faint);
}
.jr-steps button:hover { background: var(--bg); }
.jr-steps li.past button { color: var(--ink-2); }
.jr-steps li.on button { color: #fff; background: var(--accent); font-weight: 500; }
.jr-caption { margin-top: 18px; padding: 16px 20px; border-radius: var(--r-md); background: var(--bg); min-height: 76px; font-size: 1.02rem; line-height: 1.55; }
.jr-caption.bad { background: var(--red-soft); }

.url-input { width: 100%; font-family: var(--mono); font-size: .95rem; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; }
.url-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,113,227,.2); }
.url-examples { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 12px 0; font-size: .88rem; color: var(--muted); }
.url-examples .btn { padding: 5px 13px; font-size: .82rem; }
.url-err { color: var(--red); font-size: .9rem; min-height: 1em; }
.url-out {
  display: flex; flex-wrap: wrap; align-items: flex-start; row-gap: 14px; font-family: var(--mono); font-size: 1.3rem; font-weight: 600;
  background: var(--bg); border-radius: var(--r-md); padding: 22px 20px 16px; margin: 8px 0 18px; word-break: break-all;
}
html.presenter .url-out { font-size: 1.45rem; }
.url-part { color: var(--c); border-bottom: 3px solid var(--c); padding: 0 1px 6px; cursor: pointer; display: inline-flex; flex-direction: column; transition: opacity .2s; outline: none; }
.url-part .url-txt { white-space: pre; }
.url-part small { font-family: var(--font); font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 6px; white-space: nowrap; letter-spacing: 0; }
.url-part .sep { color: var(--faint); }
.url-part.dim { opacity: .2; }
.url-legend { border-top: 1px solid var(--hair); }
.url-card { padding: 14px 4px 14px 18px; border-bottom: 1px solid var(--hair); position: relative; transition: background .2s; border-radius: 8px; }
.url-card::before { content: ""; position: absolute; left: 4px; top: 21px; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.url-card.focus { background: var(--bg); }
.url-card-h code { color: var(--c); background: transparent; border: 0; font-weight: 600; padding: 0; }
.url-card p { margin: 4px 0 0; font-size: .94rem; color: var(--ink-2); }

/* iOS-style switches */
.layer-toggles { display: flex; flex-wrap: wrap; gap: 26px; }
.lt { display: inline-flex; gap: 10px; align-items: center; font-weight: 500; cursor: pointer; user-select: none; }
.lt input { appearance: none; -webkit-appearance: none; width: 42px; height: 26px; border-radius: 99px; background: #e5e5ea; position: relative; cursor: pointer; transition: background .25s; margin: 0; flex: none; }
.lt input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.lt input:checked { background: #34c759; }
.lt input:checked::after { transform: translateX(16px); }
.lt input:disabled { opacity: .55; cursor: default; }
.layer-note { margin: 16px 0; color: var(--ink-2); }
.layer-note b { color: var(--ink); }
.layer-frame { width: 100%; height: 470px; border: 0; border-radius: var(--r-md); background: var(--bg); }

/* =========================================================
   Course home
   ========================================================= */
.home-wrap { padding-top: var(--top); }
.home-hero { background: #fff; text-align: center; padding: 96px 24px 0; overflow: hidden; }
.home-hero .eyebrow { color: var(--accent-ink); font-weight: 600; font-size: 17px; }
.home-hero h1 { font-size: 4.2rem; margin: 10px auto 18px; letter-spacing: -0.045em; font-weight: 700; max-width: 900px; line-height: 1.04; }
.home-hero p.sub { font-size: 1.35rem; color: var(--muted); max-width: 680px; margin: 0 auto; line-height: 1.45; }
.home-hero .btn-row { justify-content: center; margin-top: 30px; }
.home-hero .btn { padding: 12px 24px; font-size: 1rem; }
.hero-window { max-width: 760px; margin: 64px auto 0; border-radius: 14px 14px 0 0; overflow: hidden; text-align: left; box-shadow: 0 30px 80px rgba(0,0,0,.18); }
.hero-code { margin: 0; background: var(--code-bg); color: #f5f5f7; padding: 26px 30px 34px; font-size: 15px; line-height: 1.75; overflow-x: auto; }
.hero-code .t { color: #6cb6ff; } .hero-code .s { color: #ffcf70; } .hero-code .p { color: #d2a8ff; } .hero-code .v { color: #7ee2a8; } .hero-code .k { color: #ff9b8f; } .hero-code .c { color: #8e8e93; }

.how { max-width: 1080px; margin: 0 auto; padding: 88px 24px 24px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; }
.how-item { display: flex; flex-direction: column; gap: 6px; }
.how-item .ic { color: var(--accent); font-size: 28px; margin-bottom: 8px; }
.how-item b { font-size: 1.02rem; }
.how-item span { color: var(--muted); font-size: .92rem; line-height: 1.45; }

.curriculum { max-width: 1080px; margin: 64px auto 0; padding: 0 24px; }
.curriculum > h2 { font-size: 2.6rem; margin: 0; letter-spacing: -0.035em; font-weight: 700; }
.curriculum > .sub { color: var(--muted); margin: 8px 0 0; font-size: 1.15rem; }
.week { margin: 48px 0; }
.week-label { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.week-label span { font-weight: 600; color: var(--accent-ink); font-size: 15px; }
.week-label b { font-size: 1.5rem; letter-spacing: -0.025em; }
.week-sessions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sess { background: #fff; border-radius: var(--r-lg); padding: 24px 24px 22px; color: var(--ink); display: flex; flex-direction: column; transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.sess:hover { text-decoration: none; }
.sess.live:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.08); }
.sess-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sess-n { font-size: 13px; font-weight: 500; color: var(--faint); }
.badge { font-size: 12px; font-weight: 500; color: var(--faint); }
.sess.live .badge { color: var(--green); }
.sess h3 { margin: 8px 0 10px; font-size: 1.22rem; letter-spacing: -0.02em; }
.sess.soon h3 { color: var(--ink-2); }
.sess ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .88rem; flex: 1; line-height: 1.55; }
.sess ul li::marker { color: #c7c7cc; }
.sess-prog { margin-top: 18px; }
.progress-bar.light { width: 100%; }
.progress-bar.light span { background: var(--green); }
.sess-prog small { color: var(--muted); font-size: .8rem; display: block; margin-top: 6px; }
.sess-cta { margin-top: 16px; color: var(--accent-ink); font-weight: 500; font-size: .94rem; display: inline-flex; align-items: center; gap: 4px; }

.final-project { max-width: 1032px; margin: 32px auto 0; background: var(--ink); color: #f5f5f7; border-radius: 24px; padding: 56px; }
.final-project .eyebrow { color: #a1a1a6; font-weight: 600; font-size: 15px; }
.final-project h2 { margin: 8px 0 14px; font-size: 2.4rem; letter-spacing: -0.035em; font-weight: 700; color: #fff; }
.final-project p { margin: 0; color: #a1a1a6; max-width: 640px; font-size: 1.12rem; line-height: 1.5; }
.final-project p b { color: #fff; }
body.home .site-foot { padding-bottom: 48px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .sidebar { transform: translateX(-100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); box-shadow: 0 0 40px rgba(0,0,0,.12); }
  body.menu-open .sidebar { transform: none; }
  .content { margin-left: 0; padding: 36px 20px 100px; }
  .menu-btn { display: inline-flex; }
  .topbar .crumb { display: none; }
  .how { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .jr-wrap { grid-template-columns: 1fr; }
  .jr-steps { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (max-width: 720px) {
  html { font-size: 16px; }
  .topbar { padding: 0 14px; gap: 10px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .pg-split { grid-template-columns: 1fr; }
  .progress-bar { width: 60px; }
  .brand-text { display: none; }
  .session-hero h1 { font-size: 2.3rem; }
  .session-hero p { font-size: 1.08rem; }
  .hero-meta { gap: 14px 22px; }
  .topic { margin-bottom: 72px; }
  .topic-head h2 { font-size: 1.85rem; }
  .card { padding: 26px 20px; border-radius: 18px; }
  .card h3 { font-size: 1.35rem; }
  .box-head, .card .box-head { padding: 16px 16px 0; }
  .box-body, .card .box-body { padding: 12px 16px 18px; }
  .glossary .term { grid-template-columns: 1fr; gap: 2px; }
  .home-hero { padding-top: 64px; }
  .home-hero h1 { font-size: 2.6rem; }
  .home-hero p.sub { font-size: 1.12rem; }
  .hero-code { font-size: 13px; padding: 20px; }
  .how { grid-template-columns: 1fr 1fr; gap: 26px; padding-top: 60px; }
  .curriculum > h2 { font-size: 2rem; }
  .week-sessions { grid-template-columns: 1fr; }
  .final-project { margin: 32px 16px 0; padding: 36px 24px; }
  .final-project h2 { font-size: 1.8rem; }
}

/* Sidebar accordion */
.toc > li { position: relative; }
.toc > li > a { padding-right: 38px; }
.toc > li > ul { display: none; }
.toc > li.open > ul { display: block; animation: tocIn .25s cubic-bezier(.2,.8,.2,1); }
@keyframes tocIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.toc-chev {
  position: absolute; right: 6px; top: 5px; width: 28px; height: 28px; border: 0; background: none; border-radius: 8px;
  color: var(--faint); display: grid; place-items: center; padding: 0;
}
.toc-chev:hover { background: var(--hair); color: var(--ink); }
.toc-chev svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.toc > li.open .toc-chev svg { transform: rotate(90deg); }

/* =========================================================
   Session 2 simulations
   ========================================================= */
.anat-tabs { margin-top: 0; }
.anat-tabs button { font-family: var(--font); }
.sk-label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 4px 0 8px; }
.sk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 18px; }
.sk-pool { display: flex; flex-direction: column; gap: 6px; }
.sk-pool button {
  text-align: left; font-family: var(--mono); font-size: 12.5px; background: #fff; border: 1px solid var(--line);
  border-radius: 9px; padding: 8px 12px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sk-pool button:hover { border-color: var(--accent); }
.sk-pool button.shake { border-color: var(--red); background: var(--red-soft); animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.sk-file { min-height: 260px; white-space: pre; }
.sk-msg { margin-top: 16px; padding: 14px 18px; border-radius: var(--r-md); background: var(--bg); color: var(--ink-2); }
.sk-msg.good { background: var(--green-soft); }
.sk-msg.good b { color: var(--green); }
.sk-msg.bad { background: var(--red-soft); }
.sk-msg.bad b { color: var(--red); }

.pf-controls { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-bottom: 16px; }
.pf-controls label { color: var(--muted); font-size: .92rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pf-controls select { font: inherit; font-family: var(--mono); font-size: .88rem; color: var(--ink); padding: 7px 12px; border-radius: 9px; border: 1px solid var(--line); background: #fff; }
.pf-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.pf-tree { background: var(--bg); border-radius: var(--r-md); padding: 12px 8px; font-family: var(--mono); font-size: 13px; }
.pf-row { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 7px; color: var(--ink-2); }
.pf-row svg { width: 15px; height: 15px; fill: none; stroke: var(--faint); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pf-row.dir { color: var(--ink); font-weight: 600; }
.pf-row em { font-family: var(--font); font-style: normal; font-size: 10.5px; margin-left: auto; font-weight: 600; white-space: nowrap; padding-left: 8px; }
.pf-row.from { background: var(--accent-soft); color: var(--accent-ink); }
.pf-row.from svg { stroke: var(--accent); }
.pf-row.to { background: var(--green-soft); color: var(--green); }
.pf-row.to svg { stroke: var(--green); }
.pf-path { font-family: var(--mono); font-size: 1.4rem; font-weight: 600; margin: 0 0 12px; word-break: break-all; min-height: 1.6em; }
.pf-seg { display: inline-block; animation: rise .4s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d); }
.pf-seg:nth-child(odd) { color: var(--accent-ink); }
.pf-seg:nth-child(even) { color: #8944ab; }
.card .pf-steps { padding-left: 1.3em; margin: 0 0 16px; }
.pf-steps li { font-size: .94rem; }
@media (max-width: 760px) {
  .sk-grid, .pf-grid { grid-template-columns: 1fr; }
}
.anat-out { row-gap: 10px; padding: 26px 22px 22px; }
.anat-out .url-part { padding: 0 0 5px; }
.anat-out .url-part small { display: none; }
.anat-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: -4px 0 14px; font-size: .85rem; color: var(--muted); }
.anat-key span { display: inline-flex; align-items: center; gap: 6px; }
.anat-key i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); display: block; }

/* ---------- Session 3 sims ---------- */
.sem-palette { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.sem-palette button { font-family: var(--mono); font-size: .85rem; padding: 7px 12px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink); transition: border-color .15s, opacity .15s; }
.sem-palette:not(.ready) button { opacity: .55; }
.sem-palette button:hover { border-color: var(--accent); }
.sem-palette button.shake { border-color: var(--red); background: var(--red-soft); animation: shake .4s; }
.sem-page { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-2); font-size: .85rem; color: var(--muted); }
.sem-r { position: relative; border: 1.5px dashed var(--line); border-radius: 10px; padding: 34px 12px 12px; background: #fff; transition: border-color .2s, background .2s; }
.sem-r.done { border-style: solid; border-color: var(--green); background: var(--green-soft); }
.sem-full { grid-column: 1 / -1; }
.sem-main { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 8px; background: var(--bg); }
.sem-main > .sem-r { min-height: 120px; }
.sem-slot { position: absolute; top: 7px; left: 8px; font-family: var(--mono); font-size: .8rem; font-weight: 600; min-width: 30px; padding: 2px 9px; border-radius: 7px; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent-ink); cursor: pointer; }
.sem-slot.on { background: var(--accent); color: #fff; box-shadow: 0 0 0 3px rgba(0,113,227,.25); }
.sem-slot:disabled { cursor: default; border-color: var(--green); background: #fff; color: var(--green); }
.sem-r b { color: var(--ink); display: block; margin-bottom: 4px; font-size: .92rem; }
.sem-bar { height: 7px; border-radius: 4px; background: var(--hair); margin-top: 7px; }
.sem-bar.short { width: 60%; }
.sem-links { display: flex; flex-wrap: wrap; gap: 14px; color: var(--accent-ink); }
.sem-logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1rem; }
.sem-logo i { width: 26px; height: 26px; border-radius: 7px; background: var(--ink); display: block; }
.sem-actions { margin-top: 14px; }

.tb-controls { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; margin-bottom: 16px; font-size: .92rem; color: var(--muted); }
.tb-step { display: inline-flex; align-items: center; gap: 8px; }
.tb-step span.seg { display: inline-flex; background: var(--hair); border-radius: 9px; padding: 2px; }
.tb-step button { border: 0; background: transparent; width: 30px; height: 26px; border-radius: 7px; font-size: 1rem; color: var(--ink); }
.tb-step button:hover { background: #fff; }
.tb-step output { min-width: 1.2em; text-align: center; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.tb-controls label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.tb-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.tb-preview { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; overflow-x: auto; }
.tb-preview table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.tb-preview caption { text-align: left; font-weight: 600; padding-bottom: 8px; color: var(--ink); }
.tb-preview th, .tb-preview td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; transition: background .15s; }
.tb-preview th { background: var(--bg); font-weight: 600; }
.tb-preview .hot { background: var(--accent-soft) !important; }
.tb-code { min-height: 200px; white-space: pre; }
.tb-line { display: inline-block; min-width: 100%; border-radius: 4px; transition: background .15s; }
.tb-line.hot { background: rgba(10,132,255,.35); }

.ix-grid { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: start; }
.ix-types { display: flex; flex-direction: column; gap: 4px; }
.ix-types button { text-align: left; font-family: var(--mono); font-size: .86rem; padding: 7px 12px; border-radius: 9px; border: 0; background: transparent; color: var(--ink); }
.ix-types button:hover { background: var(--bg); }
.ix-types button.on { background: var(--accent); color: #fff; }
.ix-form { background: var(--bg); border-radius: var(--r-md); padding: 18px; display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-bottom: 14px; }
.ix-field { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; }
.ix-field p { margin: 0; font-weight: 600; font-size: .92rem; }
.ix-field label { font-weight: 600; font-size: .92rem; }
.ix-field label:has(input[type=checkbox]), .ix-field label:has(input[type=radio]) { font-weight: 400; display: flex; align-items: center; gap: 8px; }
.ix-field input:not([type=checkbox]):not([type=radio]), .ix-field select, .ix-field textarea { font: inherit; font-size: .95rem; padding: 9px 12px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.ix-field input:focus, .ix-field select:focus, .ix-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,113,227,.2); }
.ix-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; }
.ix-meta div { background: var(--bg); border-radius: var(--r-sm); padding: 12px 14px; font-size: .9rem; color: var(--ink-2); }
.ix-meta b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 4px; }
.ix-sent { margin-top: 12px; font-size: .9rem; color: var(--muted); }
.ix-sent.good { color: var(--ink); }
.ix-sent.good b { color: var(--green); }
.ix-sent code { margin-right: 6px; }

.box-demo { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; margin-top: 10px; }
.box-demo .blk { background: var(--accent-soft); border: 1px solid #b9d6fb; border-radius: 6px; padding: 6px 10px; }
.box-demo .inl { background: var(--orange-soft); border: 1px solid #f5c9a1; border-radius: 4px; padding: 0 4px; }

@media (max-width: 760px) {
  .tb-grid, .ix-grid, .ix-meta { grid-template-columns: 1fr; }
  .sem-page { grid-template-columns: 1fr; }
  .sem-main { grid-template-columns: 1fr; }
  .ix-types { flex-direction: row; flex-wrap: wrap; }
}

/* ---------- Accounts: top-bar menu ---------- */
.acct { position: relative; margin-left: 8px; }
.acct-btn { display: inline-flex; align-items: center; gap: 8px; padding-left: 6px; }
.acct-btn img, .acct-initial { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.acct-initial { display: inline-grid; place-items: center; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; }
.acct-signin { text-decoration: none; color: var(--ink); }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 12px 32px rgba(0,0,0,.12); padding: 6px; z-index: 100; }
.acct-menu .acct-who { padding: 10px 12px; border-bottom: 1px solid var(--hair); margin-bottom: 4px; }
.acct-menu .acct-who b, .acct-menu .acct-who small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-menu .acct-who small { color: var(--muted); }
.acct-menu a, .acct-menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: none; font: inherit; font-size: 14px; color: var(--ink); border-radius: var(--r-sm); cursor: pointer; text-decoration: none; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--bg); }
@media (max-width: 600px) { .acct-name { display: none; } }

/* ---------- Accounts: sign-in and join pages ---------- */
.auth-wrap { min-height: 100vh; padding: calc(var(--top) + 48px) 16px 48px; display: flex; justify-content: center; align-items: flex-start; }
.auth-card { width: 100%; max-width: 460px; background: var(--card); border-radius: var(--r-lg); padding: 40px 32px; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.auth-card h1 { font-size: 1.8rem; letter-spacing: -0.03em; line-height: 1.15; margin: 14px 0 10px; }
.auth-card .sub { color: var(--muted); margin: 0 0 22px; }
.auth-card .eyebrow { color: var(--accent-ink); font-weight: 600; font-size: 14px; }
.auth-card .brand-mark.big { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--ink); color: #fff; font-family: var(--mono); font-weight: 700; }
.google-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px 18px; background: #fff; color: var(--ink); border: 1px solid var(--line); }
.google-btn:hover { background: var(--bg); }
.auth-card .fine { font-size: 13px; color: var(--muted); margin-top: 22px; }
.auth-err { color: var(--red); background: var(--red-soft); border-radius: var(--r-sm); padding: 10px 12px; font-size: 14px; margin-top: 16px; }
.auth-card .price { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; margin: 4px 0 6px; }
.auth-card .who { font-size: 14px; color: var(--ink-2); }
.auth-card .notice { background: var(--accent-soft); color: var(--ink-2); border-radius: var(--r-md); padding: 14px 16px; font-size: 14.5px; text-align: left; }
.btn-row.center { justify-content: center; }
