/* Acharya Desk. Layout: a study desk. Left rail of subjects, a prerequisite map in the middle, the selected node beside it; practice replaces the map. */
/* Dusk and clay: the same look as the landing, so signing in does not change the room. One theme, always dark. */
:root {
  --bg: #17163a; --panel: #232150; --panel-2: #1c1b47; --sunk: #121130;
  --indigo: #b8b4ff; --marigold: #ffd36b; --accent-ink: #f2ae62; --room: #2a2860;
  --clay: #d9893c; --clay-hi: #f2ae62; --clay-lo: #9d5a22; --board: #2f4d46; --board-hi: #3d5f56; --chalk: #f8f5ec;
  --ink: #f8f5ec; --ink-2: #cfcbe3; --ink-3: #a09cc2; --rule: #36356b; --rule-2: #4a4984;
  --ml: #7f9bff; --music: #e486c0; --nx1: #4fd0ae; --ux: #f0a650; --agent: #b39bff; --llmapp: #5cc6ea; --fde: #e0c24f; --de: #8bd36f; --sec: #f08a93; --sre: #a9b8cf; --mlops: #d3a381; --fullstack: #f08fb4; --ds: #f0b84a; --aipm: #d08fe3; --aitest: #a6d492;
  --good: #7ed39d; --good-bg: #17352b; --bad: #f19a85; --bad-bg: #3b2330; --due: #ffd36b; --due-bg: #3a3421;
  --display: "Baloo 2", "Hind", ui-sans-serif, system-ui, sans-serif;
  --body: "Hind", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --chalkf: "Kalam", "Comic Sans MS", cursive;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sub: var(--ml);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button { font: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, .nodebox:focus-visible { outline: 2px solid var(--sub); outline-offset: 2px; }

.top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--rule); background: var(--panel); }
.brand { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand small { font-family: var(--body); font-weight: 500; font-size: 12px; color: var(--ink-3); margin-left: 8px; letter-spacing: 0; }
.top .sp { flex: 1 1 10px; }
.chip { font-family: var(--mono); font-size: 12px; padding: 4px 9px; border: 1px solid var(--rule-2); border-radius: 999px; color: var(--ink-2); background: var(--panel-2); white-space: nowrap; }
.chip.due { border-color: var(--due); color: var(--due); background: var(--due-bg); }
.btn { border: 1px solid var(--sub); background: var(--sub); color: var(--panel); padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: 13.5px; }
.btn.ghost { background: transparent; color: var(--sub); }
.btn.quiet { background: transparent; color: var(--ink-2); border-color: var(--rule-2); font-weight: 500; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: calc(100% - 58px); }
.rail { border-right: 1px solid var(--rule); background: var(--panel-2); padding-block: 14px; padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: 12px; display: flex; flex-direction: column; gap: 6px; }
.rail h3 { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin: 6px 6px 2px; }
.subj { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 4px 10px; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 10px; padding: 9px 10px; color: var(--ink); }
.subj:hover { background: var(--panel); }
.subj[aria-current="true"] { background: var(--panel); border-color: var(--rule); box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.subj .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.subj .nm { font-weight: 600; font-size: 13.5px; }
.subj .ct { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.subj .bar { grid-column: 2 / 4; height: 4px; background: var(--sunk); border-radius: 2px; overflow: hidden; }
.subj .bar i { display: block; height: 100%; background: var(--c); }
.subj .duect { color: var(--due); }
.railnote { margin-top: auto; font-size: 12px; color: var(--ink-3); padding: 10px 6px 0; border-top: 1px solid var(--rule); }

main { min-width: 0; padding-block: 18px 60px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.subhead { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 20px; margin-bottom: 14px; }
.subhead h1 { font-family: var(--display); font-size: 26px; line-height: 1.1; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
.subhead p { margin: 4px 0 0; color: var(--ink-2); max-width: 64ch; font-size: 13.5px; }
.goal { display: flex; flex-direction: column; gap: 4px; margin-left: auto; min-width: 0; }
label.lbl, .lbl { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
select, input[type=text], textarea { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--rule-2); border-radius: 8px; padding: 7px 10px; max-width: 100%; }

.next { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; background: var(--panel); border: 1px solid var(--rule); border-left: 4px solid var(--sub); border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; }
.next .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.next .v { font-family: var(--display); font-weight: 600; font-size: 18px; }
.next .why { font-size: 13px; color: var(--ink-2); }
.next .grow { flex: 1 1 260px; min-width: 0; }

.work { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 1080px) { .work { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--panel); border: 1px solid var(--rule); border-radius: 12px; min-width: 0; }
.card .hd { display: flex; align-items: baseline; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.card .hd h2 { margin: 0; font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.card .hd .note { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.card .bd { padding: 14px; }
.mapwrap { overflow-x: auto; padding: 10px 6px 4px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0 14px 12px; font-size: 12px; color: var(--ink-3); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; border: 1.5px solid var(--sub); }

svg.map text { font-family: var(--body); }
.nodebox { cursor: pointer; }

.pill { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--rule-2); color: var(--ink-3); white-space: nowrap; }
.pill.mastered { background: var(--good-bg); border-color: var(--good); color: var(--good); }
.pill.learning { border-color: var(--sub); color: var(--sub); }
.pill.due { background: var(--due-bg); border-color: var(--due); color: var(--due); }
.pill.ready { border-style: dashed; color: var(--ink-2); }

.detail h3 { font-family: var(--display); font-size: 19px; margin: 0 0 6px; line-height: 1.2; text-wrap: balance; }
.meter { height: 8px; background: var(--sunk); border-radius: 4px; overflow: hidden; margin: 10px 0 4px; }
.meter i { display: block; height: 100%; background: var(--sub); }
.teach { font-size: 13.5px; color: var(--ink); margin: 10px 0; }
dl.stats { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 10px 0; font-size: 12.5px; }
dl.stats dt { color: var(--ink-3); }
dl.stats dd { margin: 0; font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink-2); }
ul.unmet { margin: 6px 0 10px; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.muted { color: var(--ink-3); font-size: 12.5px; }
.prq { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.prq button { border: 1px solid var(--rule-2); background: var(--panel-2); color: var(--ink-2); border-radius: 6px; padding: 3px 8px; font-size: 12px; }

.session { max-width: 760px; }
.qhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.dots { display: flex; gap: 5px; }
.dots i { width: 22px; height: 6px; border-radius: 3px; background: var(--sunk); }
.dots i.r { background: var(--good); } .dots i.w { background: var(--bad); } .dots i.p { background: var(--due); } .dots i.c { background: var(--sub); }
.prompt { font-size: 17px; font-weight: 500; margin: 0 0 12px; max-width: 64ch; }
pre.code { font-family: var(--mono); font-size: 13.5px; background: var(--panel-2); border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; overflow-x: auto; margin: 0 0 14px; white-space: pre; }
.opts { display: grid; gap: 8px; margin-bottom: 12px; }
.opt { text-align: left; border: 1px solid var(--rule-2); background: var(--panel); color: var(--ink); border-radius: 9px; padding: 10px 12px; font-size: 14.5px; }
.opt:hover:not(:disabled) { border-color: var(--sub); }
.opt.sel { border-color: var(--sub); box-shadow: inset 0 0 0 1px var(--sub); }
.opt.right { border-color: var(--good); background: var(--good-bg); }
.opt.wrong { border-color: var(--bad); background: var(--bad-bg); }
.numin { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.numin input { width: 180px; font-family: var(--mono); font-size: 16px; }
.crit { margin: 0 0 12px; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); }
.fb { border-radius: 10px; padding: 12px 14px; margin: 12px 0; font-size: 14px; }
.fb.ok { background: var(--good-bg); border: 1px solid var(--good); }
.fb.no { background: var(--bad-bg); border: 1px solid var(--bad); }
.fb.mid { background: var(--due-bg); border: 1px solid var(--due); }
.fb b { font-weight: 600; }
.claude { border: 1px dashed var(--rule-2); border-radius: 10px; padding: 10px 12px; margin-top: 10px; font-size: 13.5px; white-space: pre-wrap; color: var(--ink-2); }
textarea { width: 100%; min-height: 110px; line-height: 1.5; resize: vertical; }
.sumgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
.sumgrid div { background: var(--panel-2); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; }
.sumgrid b { display: block; font-family: var(--display); font-size: 22px; font-variant-numeric: tabular-nums; }
.sumgrid span { font-size: 12px; color: var(--ink-3); }
.duelist { display: flex; flex-direction: column; }
.duerow { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.duerow:last-child { border-bottom: 0; }
.duerow .grow { flex: 1 1 220px; min-width: 0; }
.notice { background: var(--due-bg); border: 1px solid var(--due); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 13.5px; }


.grouphead { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin: 26px 2px 10px; }
.cards4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.scard { background: var(--panel); border: 1px solid var(--rule); border-top: 4px solid var(--sub); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.scard h2 { font-family: var(--display); font-size: 17px; margin: 0; }
.scard p { margin: 0; }
.dot2 { width: 10px; height: 10px; border-radius: 3px; background: var(--sub); flex: none; }
.nextline { font-size: 13.5px; }
.duenote { font-size: 12.5px; color: var(--due); }
.sesshead { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 20px; margin-bottom: 14px; }
.sesshead h1 { font-family: var(--display); font-size: 24px; margin: 2px 0 0; line-height: 1.15; text-wrap: balance; }
ol.phases { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 0 auto; padding: 0; }
ol.phases li { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--rule-2); color: var(--ink-3); }
ol.phases li.done { color: var(--sub); border-color: var(--sub); }
ol.phases li.now { background: var(--sub); border-color: var(--sub); color: var(--panel); }
.sessgrid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .sessgrid { grid-template-columns: minmax(0, 1fr); } }
.chatcard { display: flex; flex-direction: column; }
.chat { max-height: min(62vh, 640px); min-height: 220px; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 86%; }
.msg .who { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
.msg .txt { white-space: pre-wrap; font-size: 15px; line-height: 1.55; padding: 10px 13px; border-radius: 12px; }
.msg.tutor .txt { background: var(--panel-2); border: 1px solid var(--rule); }
.msg.me { align-self: flex-end; }
.msg.me .who { text-align: right; }
.msg.me .txt { background: var(--sub); color: var(--panel); }
.phasenote { align-self: center; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--sub); border-top: 1px solid var(--rule); padding-top: 6px; width: 100%; text-align: center; }
.checkcard { border: 1px dashed var(--sub); border-radius: 12px; padding: 12px; background: var(--panel); }
.itembody .prompt { font-size: 16px; }
.composer { border-top: 1px solid var(--rule); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.composer textarea { min-height: 70px; }
.sp { flex: 1 1 10px; }
.nooutput { margin: 0 14px 10px; background: var(--bad-bg); border: 1px solid var(--bad); border-radius: 10px; padding: 8px 12px; font-size: 13.5px; font-weight: 600; }
#banner { margin: 0 14px 10px; }
.fatal { margin: 8px 14px 0; white-space: pre-wrap; word-break: break-word; }
.fatal button { margin-left: 8px; }
.sideinfo { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.armv { font-family: var(--display); font-size: 22px; font-weight: 600; margin: 2px 0 4px; font-variant-numeric: tabular-nums; }
.armv.warn { color: var(--bad); }
.armline { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; margin: 14px 0 6px; padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--rule); border-radius: 10px; }
pre.zones { white-space: pre-wrap; font-family: var(--mono); font-size: 12px; background: var(--panel-2); border-radius: 8px; padding: 8px; margin: 6px 0 0; }
dl.tgt { grid-template-columns: 1fr; gap: 2px; }
dl.tgt dd { font-family: var(--body); margin-bottom: 6px; color: var(--ink); }
.n1 { border-top: 1px solid var(--rule); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.n1 h3 { font-family: var(--display); margin: 0; font-size: 17px; }
.n1item { display: flex; flex-direction: column; gap: 6px; }
.n1item textarea { min-height: 52px; }
.grade3, .scale5 { display: flex; gap: 6px; flex-wrap: wrap; }
.opt.small { padding: 5px 12px; font-size: 13px; }
.h1s { font-family: var(--display); font-size: 22px; margin: 4px 0 6px; }
details.key { margin-top: 12px; border: 1px dashed var(--rule-2); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
details.key summary { cursor: pointer; color: var(--ink-2); }
table.logt { border-collapse: collapse; width: 100%; font-size: 13px; }
table.logt th { text-align: left; font-weight: 500; color: var(--ink-3); padding: 6px 10px 6px 0; border-bottom: 1px solid var(--rule-2); white-space: nowrap; }
table.logt td { padding: 7px 10px 7px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }

@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--rule); padding-block: 8px; }
  .rail h3, .railnote { display: none; }
  .subj { flex: 0 0 auto; min-width: 150px; }
  .goal { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ===================== Acharya Desk additions ===================== */
.bootmsg { padding: 40vh 24px 0; text-align: center; color: var(--ink-3); font-family: var(--mono); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.small { font-size: 12.5px; }
.btn.big { padding: 14px 20px; font-size: 16px; border-radius: 12px; width: 100%; }
.btn.small { padding: 5px 10px; font-size: 12.5px; }
.notice.good { background: var(--good-bg); border-color: var(--good); }
input[type=email], input[type=text], select, textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--panel); border: 1px solid var(--rule-2); border-radius: 10px; padding: 11px 12px; width: 100%; }
.legal a, .vbox a { color: var(--ink-2); }
.verifypage, .legalpage { background: var(--bg); color: var(--ink); font-family: var(--body); margin: 0; }
.vbox { max-width: 420px; margin: 0 auto; padding: 18vh 22px 0; display: flex; flex-direction: column; gap: 12px; }
.vbox h1 { font-family: var(--display); margin: 0; }
.legal { max-width: 720px; margin: 0 auto; padding: 28px 18px 60px; line-height: 1.65; }
.legal h1 { font-family: var(--display); } .legal h2 { font-family: var(--display); font-size: 18px; margin-top: 24px; }
.trialbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; padding: 7px 16px; background: var(--due-bg); color: var(--due); font-size: 13.5px; border-bottom: 1px solid var(--rule); }
.paywall { max-width: 520px; margin: 24px auto; } .paywall .bd { display: flex; flex-direction: column; gap: 12px; }
ul.pw { margin: 0; padding-left: 20px; } ul.pw li { margin: 3px 0; }
.scard .blurb { font-size: 13.5px; color: var(--ink-2); }
.h1s { font-family: var(--display); margin: 4px 0 8px; font-size: 24px; }

@media (max-width: 760px) {
  body { font-size: 15px; }
  .top { padding-block: 8px; gap: 8px; } .top .chip#today { display: none; } .brand small { display: none; }
  .btn { min-height: 40px; }
  main { padding-block: 14px 80px; }
  .rail { gap: 6px; } .subj { min-width: 138px; }
  .cards4 { grid-template-columns: minmax(0, 1fr); }
  .sesshead { flex-direction: column; align-items: flex-start; gap: 8px; } ol.phases { margin: 0; }
  .chat { max-height: none; height: auto; min-height: 0; overflow: visible; }
  .msg { max-width: 94%; scroll-margin-bottom: 200px; }
  .composer { position: sticky; bottom: 0; background: var(--panel); padding-bottom: max(12px, env(safe-area-inset-bottom)); z-index: 5; }
  .composer textarea { min-height: 56px; }
  .composer .row { flex-wrap: wrap; }
  .sideinfo { order: 2; }
  .mapwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ---------------------------------------------------------------- the room (Acharya Worlds): landing hero and tutor stage */
.stage { position: absolute; inset: 0; }
.stagebox { position: absolute; inset: 0; overflow: hidden; background: var(--room) url("/worlds/packs/llmapp/poster.jpg") center / cover no-repeat; }   /* the room's still, there before any script runs */
.stagebox canvas.aw-3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }   /* required by the Worlds viewer: the canvas is sized in device pixels, CSS must fit it */

.stageslot { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 58vh; min-height: 220px; border-radius: 12px 12px 0 0; overflow: hidden; background: var(--room); }
.chatcard .stageslot { border-bottom: 1px solid var(--rule); }
.checks { padding: 12px 14px 0; display: flex; flex-direction: column; gap: 10px; }
.transcript { border-top: 1px solid var(--rule); }
.transcript > summary { cursor: pointer; padding: 11px 14px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); list-style: none; }
.transcript > summary::-webkit-details-marker { display: none; }
.transcript > summary::before { content: "\25B8  "; } .transcript[open] > summary::before { content: "\25BE  "; }
.transcript > summary:hover { color: var(--ink-2); }
.transcript .chat { border-top: 1px solid var(--rule); }
.composer { border-top: 0; }
@media (max-width: 760px) { .stageslot { max-height: 54vh; min-height: 0; } .sesshead h1 { font-size: 21px; } }
@media (max-width: 520px) { .stageslot { aspect-ratio: 4 / 5; } }   /* a phone held upright: the room's portrait framing shows the whole board with Acharya under it */
@media (max-width: 900px) and (max-height: 520px) { .stageslot { aspect-ratio: 16 / 9; max-height: 80vh; } }   /* a phone held sideways: the board is the page */

/* ---------------------------------------------------------------- dusk and clay: the signed-in app wears the landing's look */
body { font-size: 15.5px; }
.top { background: rgba(26,25,64,.92); border-bottom-color: var(--rule); }
.brand { font-weight: 800; font-size: 23px; letter-spacing: .01em; display: flex; align-items: baseline; gap: 8px; }
.brand::before { content: ""; width: 11px; height: 11px; border-radius: 50%; align-self: center; background: radial-gradient(circle at 35% 30%, var(--clay-hi), var(--clay) 55%, var(--clay-lo)); box-shadow: 0 0 14px rgba(242,174,98,.55); }
.brand small { margin-left: 0; font-size: 13px; }
/* the clay button: soft, pressable, the same one as the landing */
.btn { border: 0; border-radius: 999px; padding: 9px 18px; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .01em; color: #2a1606;
  background: linear-gradient(180deg, var(--clay-hi), var(--clay) 60%, #c57731);
  box-shadow: inset 0 2px 0 rgba(255,236,205,.55), inset 0 -3px 0 rgba(120,60,16,.45), 0 4px 0 var(--clay-lo), 0 10px 16px -6px rgba(0,0,0,.55);
  transition: transform .2s ease, filter .2s ease; }
.btn:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(255,236,205,.55), inset 0 -2px 0 rgba(120,60,16,.45), 0 1px 0 var(--clay-lo); }
.btn.ghost, .btn.quiet { background: transparent; box-shadow: none; border: 1.5px solid var(--rule-2); color: var(--ink); font-weight: 600; }
.btn.ghost { border-color: var(--clay); color: var(--clay-hi); }
.btn.ghost:hover:not(:disabled), .btn.quiet:hover:not(:disabled) { background: rgba(255,255,255,.06); transform: none; }
.btn.big { padding: 14px 22px; font-size: 17px; }
.chip { background: rgba(255,255,255,.06); border-color: var(--rule-2); color: var(--ink-2); }
.chip.due { background: var(--due-bg); }
.rail { background: rgba(18,17,48,.55); }
.subj:hover { background: rgba(255,255,255,.06); }
.subj[aria-current="true"] { background: var(--panel); box-shadow: 0 0 0 1px var(--clay-lo); border-color: var(--clay); }
.subj .nm { font-family: var(--display); font-weight: 700; font-size: 15px; }
.subhead h1, .sesshead h1, .h1s, .scard h2, .detail h3 { font-family: var(--display); font-weight: 800; letter-spacing: 0; }
.subhead h1 { font-size: 30px; } .sesshead h1 { font-size: 27px; }
/* cards are slates in a soft frame */
.card, .scard, .checkcard { border-radius: 18px; border-color: var(--rule); box-shadow: 0 18px 30px -18px rgba(0,0,0,.6); }
.scard { border-top-width: 5px; }
.next { border-radius: 16px; border-left-color: var(--clay); }
select, input[type=text], input[type=email], textarea { background: var(--sunk); border-color: var(--rule-2); border-radius: 14px; }
.opt { background: var(--panel); border-radius: 14px; }
.opt:hover:not(:disabled) { border-color: var(--clay); }
.opt.sel { border-color: var(--clay); box-shadow: inset 0 0 0 1px var(--clay); }
.msg.me .txt { background: linear-gradient(180deg, var(--clay-hi), var(--clay)); color: #2a1606; font-weight: 500; }
.msg .who, ol.phases li, .pill, .lbl, .grouphead { font-family: var(--body); letter-spacing: .1em; }
ol.phases li.now { color: #2a1606; background: var(--clay-hi); border-color: var(--clay-hi); }
.legend i { border-color: var(--clay); }
pre.code, .claude, details.key { background: var(--sunk); }
/* the tutor's session card is a clay-framed chalkboard: the room on top, the learner's checks and the composer under it */
.chatcard { border: 0; border-radius: 22px; padding: 10px; background: linear-gradient(160deg, var(--clay-hi), var(--clay) 45%, var(--clay-lo)); box-shadow: 0 22px 40px -18px rgba(0,0,0,.7), inset 0 2px 0 rgba(255,236,205,.5); }
.chatcard > * { background: var(--board); }
.chatcard .stageslot { border-radius: 12px 12px 0 0; }
.chatcard .composer { border-radius: 0 0 12px 12px; background: var(--board-hi); }
.chatcard .checks { padding-bottom: 12px; }
.chatcard .transcript { background: var(--board); }
.chatcard .msg.tutor .txt { background: rgba(0,0,0,.18); border-color: rgba(248,245,236,.18); font-family: var(--chalkf); font-size: 17px; }
.chatcard textarea { background: rgba(0,0,0,.22); border-color: rgba(248,245,236,.25); font-family: var(--chalkf); font-size: 17px; }
.trialbar { background: var(--due-bg); }
.paywall, .vbox { color: var(--ink); }
.verifypage, .legalpage { background: var(--bg); }
@media (max-width: 760px) { body { font-size: 16px; } .chatcard { padding: 6px; border-radius: 18px; } .composer { background: var(--board-hi); } .subhead h1 { font-size: 26px; } }
