/* Code Drills. One dark theme, two layouts: phone (9:16, tab bar + docked commands) and desktop (sidebar + two columns).
   body.desk switches to the desktop layout. */
:root {
  --bg: #0b0d12; --side: #0e1118; --card: #12151c; --raise: #1a1f2c; --line: #262b36;
  --text: #e8ebf2; --muted: #8b93a7; --accent: #6ea8ff; --good: #3ecf8e; --warn: #f5b84a; --bad: #ff6b6b;
  --plan: #22c55e; --code: #0a0c10;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: #000; color: var(--text); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--accent); }
kbd { font: 11px ui-monospace, Consolas, monospace; background: #1c2230; border: 1px solid #2c3446; border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; color: #b6bdcf; margin-left: 6px; }
.muted { color: var(--muted); font-size: 13px; }
.chip { background: #1b2030; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; white-space: nowrap; text-decoration: none; color: inherit; display: inline-block; }
.chip:hover { border-color: var(--accent); }
.btn { border: 1px solid var(--line); background: var(--raise); border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 14.5px; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #07101f; }
.btn.plan { background: var(--plan); border-color: var(--plan); color: #04140a; font-weight: 800; }
.btn.danger { color: var(--bad); }
.btn.warn { border-color: #6b5320; color: var(--warn); background: #17130a; }
.btn.warn.on { background: var(--warn); color: #1a1100; }
.btn.good { background: var(--good); border-color: var(--good); color: #05150d; }
.btn.good.on { box-shadow: 0 0 0 3px rgba(62, 207, 142, .35); }
.btn kbd { background: rgba(0, 0, 0, .25); border-color: rgba(255, 255, 255, .15); color: inherit; }
.row { display: flex; gap: 9px; flex-wrap: wrap; }
.row .btn { flex: 1 1 0; min-width: 0; }
.brand { font-weight: 800; font-size: 17px; letter-spacing: .2px; }
.brand b { color: var(--plan); }
.layoutseg { display: inline-flex; flex: none; border: 1px solid #3a4560; border-radius: 999px; overflow: hidden; }
.layoutseg button { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 0; color: var(--muted); padding: 6px 11px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.layoutseg button.on { background: var(--accent); color: #07101f; }
.layoutseg.three { display: flex; width: 100%; }
.layoutseg.three button { flex: 1; justify-content: center; padding: 10px 6px; font-size: 14px; }
.layoutseg .lbl { display: none; }
body.desk .layoutseg .lbl { display: inline; }

/* ───────── shell ───────── */
.phone { position: relative; height: min(100dvh, calc(100vw * 16 / 9)); aspect-ratio: 9 / 16; margin: 0 auto; background: var(--bg); overflow: hidden; display: flex; }
@media (max-aspect-ratio: 9/16) { .phone { width: 100vw; height: 100dvh; aspect-ratio: auto; } }
.workspace { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.side, .shortcuts { display: none; }

/* ───────── phone: top bar, tab bar ───────── */
.bar { height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px 0 16px; flex: none; }
.tools { display: flex; gap: 8px; align-items: center; }
.icon { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; font-size: 16px; padding: 0; }
.icon.on { border-color: var(--accent); }
.searchrow { display: flex; gap: 8px; align-items: center; padding: 0 14px 8px; }
.searchrow[hidden] { display: none; }
.searchrow input { flex: 1; min-width: 0; background: var(--code); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 9px 14px; font: inherit; font-size: 14px; }
.searchrow input:focus { outline: 1px solid var(--accent); }
.searchrow .muted { white-space: nowrap; font-variant-numeric: tabular-nums; }

.tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: var(--side); padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); flex: none; }
.tab { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11.5px; color: var(--muted); font-weight: 600; padding: 0; }
.tab .ic { width: 52px; height: 28px; border-radius: 99px; display: grid; place-items: center; font-size: 16px; }
.tab small { color: var(--muted); font-weight: 500; }
.tab.on { color: var(--text); }
.tab.on .ic { background: var(--raise); }
.tab.plan { color: #4ade80; }
.tab.plan .ic { background: var(--plan); color: #04140a; font-weight: 800; }
.tab.plan.on .ic { box-shadow: 0 0 0 2px var(--side), 0 0 0 4px #86efac; }

/* ───────── feed and cards ───────── */
.feed { flex: 1; min-height: 0; overflow-y: auto; scroll-snap-type: y mandatory; scroll-behavior: smooth; overscroll-behavior: contain; scrollbar-width: none; outline: none; }
.feed::-webkit-scrollbar { display: none; }
.card { height: 100%; scroll-snap-align: start; scroll-snap-stop: always; padding: 8px 16px 0; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; border-bottom: 1px solid var(--line); }
.card.end { align-items: center; justify-content: center; text-align: center; padding-bottom: 16px; }
.cardtop { display: flex; align-items: center; gap: 12px; flex: none; }

/* where am I: the plan stage or the bank topic */
.ctx { flex: 1; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px 12px; display: grid; grid-template-columns: auto 1fr auto; gap: 8px 10px; align-items: center; }
.ctxchip { background: var(--plan); color: #04140a; font-weight: 800; font-size: 11px; letter-spacing: .6px; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.ctx.bank .ctxchip { background: var(--accent); color: #07101f; }
.ctxlabel { font-size: 13px; color: #cfd5e4; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ctxclear { background: #1b2030; border: 1px solid var(--line); border-radius: 99px; width: 22px; height: 22px; font-size: 11px; line-height: 1; margin-left: 6px; padding: 0; }
.ctxcount { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ctxcount small { color: var(--muted); font-weight: 500; font-size: 13px; }
.ctxbar { grid-column: 1 / -1; height: 5px; background: #1c2230; border-radius: 99px; overflow: hidden; }
.ctxbar i { display: block; height: 100%; background: linear-gradient(90deg, #16a34a, var(--plan)); border-radius: 99px; }
.ctx.bank .ctxbar i { background: var(--accent); }
.navbtns { display: none; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; flex: none; }
.tag { font-size: 12px; padding: 3px 9px; border-radius: 7px; border: 1px solid var(--line); background: var(--card); color: #b6bdcf; white-space: nowrap; }
.tag.d1 { color: var(--good); border-color: #1d5a40; background: #0a1a13; }
.tag.d2 { color: var(--warn); border-color: #5a4616; background: #1a1608; }
.tag.d3 { color: var(--bad); border-color: #6b2a2a; background: #1b0d0d; }
.tag.cat { color: var(--accent); border-color: #2d4670; background: #0f1a2d; }
.tag.status.new { color: var(--muted); }
.tag.status.attempted { color: var(--warn); border-color: #5a4616; }
.tag.status.completed { color: var(--good); border-color: #1d5a40; }
h1 { font-size: 23px; line-height: 1.2; margin: 0; flex: none; }
.prompt { margin: 0; color: #cfd5e4; font-size: 15px; }
.label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: flex; justify-content: space-between; margin-bottom: -4px; }
.label.verified { color: var(--good); }
.label.unverified { color: var(--warn); }
.cols { display: flex; flex-direction: column; gap: 10px; }
.col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
pre { margin: 0; background: var(--code); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; overflow-x: auto; font: 13px/1.55 ui-monospace, "Cascadia Code", Consolas, monospace; color: #dfe6f5; white-space: pre; scrollbar-width: thin; scrollbar-color: #2a3142 transparent; }
textarea { width: 100%; min-height: 116px; resize: vertical; background: var(--code); color: #dfe6f5; border: 1px solid #2d4670; border-radius: 12px; padding: 10px 12px; font: 13px/1.55 ui-monospace, "Cascadia Code", Consolas, monospace; tab-size: 4; }
textarea:focus { outline: none; box-shadow: 0 0 0 3px rgba(110, 168, 255, .15); border-color: var(--accent); }

/* phone: secondary tools under the editor, verdict docked at the bottom of the card */
.quick { display: flex; gap: 8px; }
.quick button { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 4px; text-align: center; line-height: 1.2; background: transparent; border: 1px dashed #36405a; border-radius: 10px; padding: 8px 4px; font-size: 12.5px; color: #b6bdcf; }
.quick button b { color: var(--accent); font-weight: 600; }
.quick button.has { color: var(--warn); border-color: #6b5320; }
.dock { position: sticky; bottom: 0; margin: auto -16px 0; padding: 4px 14px 10px; background: linear-gradient(to bottom, rgba(11, 13, 18, 0), var(--bg) 24%); flex: none; z-index: 2; }
.dock .hint { text-align: center; font-size: 11.5px; color: var(--muted); padding: 7px 0 7px; }
.dockbtns { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 9px; }
.dockbtns .btn { height: 50px; border-radius: 14px; font-size: 14.5px; }
.answer { display: none; flex-direction: column; gap: 8px; scroll-margin-bottom: 100px; }
.answer.open { display: flex; }
.explain { margin: 0; color: #cfd5e4; font-size: 14px; }
.source { font-size: 12px; color: var(--muted); }
.deskonly { display: none; }
.hiddenans { display: none; }

/* ───────── sheets (phone: full screen; desktop: right drawer) ───────── */
.sheet { position: absolute; inset: 0; z-index: 12; background: var(--bg); display: flex; flex-direction: column; padding: 14px 14px 0; overflow-y: auto; }
.sheet[hidden] { display: none; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 2px 2px 10px; flex: none; }
.sheet h2 { margin: 0; font-size: 20px; }
.moregroup { padding: 12px 2px; border-top: 1px solid var(--line); }
.mlabel { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.trow { display: flex; align-items: center; gap: 10px; padding: 10px 4px; font-size: 15px; color: var(--text); text-decoration: none; }
.trow.link { justify-content: space-between; }
.trow.link::after { content: "›"; color: var(--muted); }
.trow input { width: 18px; height: 18px; accent-color: var(--accent); }
.moregroup .muted { margin-top: 8px; }

/* stages and topics list (the sidebar on desktop, the Topics sheet on phone) */
.navlist { display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.navhead { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 2px 4px; display: flex; justify-content: space-between; }
.stg { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 4px 12px 9px; }
.stg.done { opacity: .75; }
.stg.cur { border-color: #1f6b3d; background: #0c1711; }
.stghead { display: flex; justify-content: space-between; width: 100%; background: none; border: 0; padding: 6px 0 2px; font-size: 14px; font-weight: 700; text-align: left; }
.stghead small { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.stg .p { height: 4px; border-radius: 99px; background: #1c2230; margin: 5px 0 6px; overflow: hidden; }
.stg .p i { display: block; height: 100%; background: var(--plan); border-radius: 99px; }
.items { display: flex; flex-direction: column; gap: 1px; }
.it { display: flex; gap: 8px; width: 100%; background: none; border: 0; text-align: left; font-size: 13px; padding: 5px 6px; border-radius: 7px; color: #b6bdcf; }
.it .m { width: 14px; text-align: center; color: var(--good); flex: none; }
.it.att .m { color: var(--warn); }
.it.here { background: #143321; color: var(--text); font-weight: 700; }
.it.here .m { color: var(--plan); }
.it.todo { color: #6f778b; }
.it.todo .m { color: #3a4254; }
.topic { display: grid; grid-template-columns: 26px 1fr auto; gap: 2px 8px; align-items: center; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; width: 100%; }
.topic:hover, .topic.active { border-color: var(--accent); }
.topic.empty { opacity: .55; }
.topic .tn { color: var(--muted); font-size: 12px; }
.topic .tt b { font-size: 14px; display: block; }
.topic .tt small { color: var(--muted); font-size: 11px; }
.topic .tc { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 14px; }
.topic .bar { grid-column: 2 / 4; height: 4px; background: #1c2230; border-radius: 4px; overflow: hidden; display: flex; }
.topic .bar i { display: block; height: 100%; }
.topic .bar .c { background: var(--good); }
.topic .bar .a { background: var(--warn); }
.topic.all { grid-template-columns: 1fr auto; font-weight: 700; font-size: 14px; }

/* ───────── modals ───────── */
.modal { position: absolute; inset: 0; z-index: 15; background: rgba(0, 0, 0, .62); display: flex; align-items: flex-end; }
.modal[hidden] { display: none; }
.modal-card { width: 100%; max-height: 82%; overflow-y: auto; background: var(--card); border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; padding: 16px 16px 22px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.modal-head h2 { margin: 0; font-size: 20px; }
.pt-q { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.pt { display: grid; grid-template-columns: 40px 1fr; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.pt .n { color: var(--accent); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.pt b { display: block; margin-bottom: 2px; font-size: 14px; }
.pt p { margin: 0; color: #cfd5e4; font-size: 15px; }
.pt-link { display: inline-block; margin-top: 8px; font-size: 14px; }
#noteText { min-height: 170px; margin-top: 4px; }
.toast { position: absolute; z-index: 20; left: 50%; bottom: 96px; transform: translateX(-50%); background: #222a3d; border: 1px solid var(--line); border-radius: 16px; padding: 9px 14px; font-size: 13px; width: max-content; max-width: calc(100% - 32px); text-align: center; line-height: 1.35; }
.toast[hidden] { display: none; }

/* ───────── desktop layout ───────── */
body.desk .phone { width: 100%; max-width: none; height: 100dvh; aspect-ratio: auto; margin: 0; display: grid; grid-template-columns: 316px minmax(0, 1fr); }
body.desk .bar, body.desk .tabs, body.desk #barSearchSlot, body.desk .quick, body.desk .dock { display: none; }
body.desk .side { display: flex; flex-direction: column; background: var(--side); border-right: 1px solid var(--line); padding: 18px 16px 14px; min-height: 0; }
body.desk .side .brand { font-size: 20px; margin-bottom: 16px; }
.views { display: grid; grid-template-columns: 1.5fr 1fr; gap: 8px; margin-bottom: 12px; }
.vbtn { height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-weight: 700; }
.vbtn.on { border-color: var(--accent); }
.vbtn.plan { background: var(--plan); border-color: var(--plan); color: #04140a; font-weight: 800; }
.vbtn.plan span { font-weight: 600; opacity: .8; margin-left: 4px; }
.vbtn.plan.on { box-shadow: 0 0 0 2px var(--side), 0 0 0 4px #86efac; }
#sideSearchSlot { margin-bottom: 14px; }
body.desk #sideSearchSlot .searchrow { padding: 0; }
body.desk #sideSearchSlot .searchrow input { height: 40px; }
body.desk .side .navlist { flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2a3142 transparent; }
.foot { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.footrow { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #b6bdcf; }
.footrow.links a, .linkbtn { color: var(--muted); text-decoration: none; background: none; border: 0; padding: 0; font-size: 13px; }
.footrow.links a:hover, .linkbtn:hover { color: var(--text); }

body.desk .workspace { min-height: 0; }
body.desk .card { padding: 14px max(28px, calc((100% - 1180px) / 2)) 24px; gap: 12px; }
body.desk .cardtop { justify-content: space-between; min-height: 40px; }
body.desk .ctx { background: none; border: 0; padding: 0; display: flex; gap: 10px; align-items: baseline; }
body.desk .ctxchip { background: none; padding: 0; color: #4ade80; font-size: 13px; letter-spacing: 0; }
body.desk .ctx.bank .ctxchip { color: var(--accent); background: none; }
body.desk .ctxlabel { flex: 0 1 auto; font-weight: 500; color: var(--muted); font-size: 14px; }
body.desk .ctxcount { font-size: 14px; }
body.desk .ctxbar { display: none; }
body.desk .navbtns { display: flex; gap: 8px; align-items: center; }
.nav { height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-size: 13.5px; font-weight: 600; }
.nav:hover { border-color: var(--accent); }
body.desk h1 { font-size: 32px; line-height: 1.15; }
body.desk .prompt { font-size: 17px; max-width: 62ch; }
body.desk .cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: start; }
body.desk pre { font-size: 14px; max-height: 56vh; overflow: auto; padding: 14px 16px; }
body.desk textarea { min-height: 252px; font-size: 14px; padding: 14px 16px; }
body.desk .deskonly.tools { display: flex; gap: 10px; flex-wrap: wrap; }
body.desk .deskonly.verdict { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; }
body.desk .deskonly.pointcard { display: flex; }
.tools .btn { height: 42px; padding: 0 14px; }
.tools .btn.has { color: var(--warn); border-color: #6b5320; }
.verdict .btn { height: 54px; border-radius: 14px; font-size: 15.5px; font-weight: 800; }
.pointcard { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; gap: 12px; align-items: center; color: #cfd5e4; font-size: 14px; text-align: left; width: 100%; }
.pointcard:hover { border-color: var(--accent); }
.pointcard .ptext { flex: 1; }
.pointcard .go { color: var(--accent); font-weight: 600; font-size: 13px; white-space: nowrap; }
body.desk .answer { scroll-margin-bottom: 20px; }
body.desk .hiddenans { display: flex; justify-content: space-between; border: 1px dashed #36405a; border-radius: 12px; padding: 13px 15px; color: var(--muted); font-size: 14px; }
body.desk .hiddenans b { color: #b6bdcf; font-weight: 600; }
body.desk .card:has(.answer.open) .hiddenans { display: none; }
body.desk .shortcuts { display: flex; flex: none; height: 44px; align-items: center; gap: 22px; padding: 0 28px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
body.desk .shortcuts kbd { margin: 0 6px 0 0; }
body.desk .sheet { inset: 0 0 0 auto; width: min(480px, 100%); border-left: 1px solid var(--line); box-shadow: -12px 0 32px rgba(0, 0, 0, .45); padding: 16px 18px; }
body.desk #navSheet { display: none; }
body.desk .modal { align-items: center; justify-content: center; }
body.desk .modal-card { width: min(640px, 92%); max-height: 84%; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px 24px; }
body.desk .toast { bottom: 64px; }
body.desk .side .brand { display: block; }

/* a desktop-style window too narrow for two columns (tablet held upright): stack them, shrink the sidebar */
@media (max-width: 999px) {
  body.desk .phone { grid-template-columns: 264px minmax(0, 1fr); }
  body.desk .cols { grid-template-columns: minmax(0, 1fr); }
  body.desk .card { padding-left: 18px; padding-right: 18px; }
  body.desk .shortcuts { display: none; }
}

/* ───────── About and Plan pages (nav.js adds the bar) ───────── */
body.doc-page { background: var(--bg); }
.doc { max-width: 680px; margin: 0 auto; padding: 20px 16px 60px; }
.doc h1 { font-size: 26px; margin: 8px 0 4px; }
.doc .sub { color: var(--muted); margin: 0 0 18px; }
.doc h2 { font-size: 18px; margin: 28px 0 4px; }
.doc .count { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.doc .item { display: grid; grid-template-columns: 52px 1fr; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.doc .n { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14px; padding-top: 2px; }
.doc .item b { display: block; margin-bottom: 2px; }
.doc .item p { margin: 0 0 4px; color: #cfd5e4; font-size: 15px; }
.doc .item .real { color: var(--muted); font-size: 14px; }
.doc .group { margin: 22px 0 0; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
body.desk .doc { max-width: 860px; }
body:not(.desk) .doc { max-width: 560px; }
.docnav { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.docnav .links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.docnav a { text-decoration: none; font-size: 14px; }
.docnav a.navlink { color: var(--muted); font-weight: 600; }
.docnav a.navlink[aria-current="page"] { color: var(--text); border-bottom: 2px solid var(--accent); }
.docnav a.planbtn { background: var(--plan); color: #04140a; font-weight: 800; border-radius: 999px; padding: 8px 16px; }

/* "Run in editor" button in the Your answer header */
.label.answerhead { align-items: center; margin-bottom: 0; }
.savednote { font-size: 11.5px; color: var(--muted); margin-top: -4px; text-align: right; }

/* T-SQL card extras */
.facts { display: flex; flex-direction: column; gap: 8px; }
.kv { display: grid; gap: 2px; font-size: 13.5px; color: #b9c0d1; }
.kv b { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.kv .mono { font: 12.5px/1.5 ui-monospace, "Cascadia Code", Consolas, monospace; color: #cfe0ff; }
ol.walk { margin: 0; padding-left: 20px; color: #cfd5e4; font-size: 14px; display: grid; gap: 5px; }
.takeaway { margin: 0; background: #0f2219; border: 1px solid #1f5a40; border-radius: 12px; padding: 10px 12px; color: #cdeedd; font-size: 14px; }
pre.bad { border-color: #5a2a2a; background: #170d0d; color: #ffb3b3; white-space: pre-wrap; }
.label.answerhead { align-items: center; margin-bottom: 0; }
