
:root { color-scheme: light; --ink:#17202a; --muted:#607080; --line:#d8dee6; --paper:#f6f7f9; --panel:#fff; --blue:#2f6f9f; --green:#2d7d5f; --amber:#a66a00; --red:#ad3b3b; --violet:#5f5596; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
body { margin:0; background:var(--paper); color:var(--ink); display:grid; grid-template-columns:236px 1fr; min-height:100vh; overflow-x:hidden; line-height:1.55; }
body.standalone-page { display:block; }
body.standalone-page p + p { margin-top:.72em; }
body.standalone-page li + li { margin-top:.42em; }
*,*::before,*::after { box-sizing:border-box; }
.sidebar { background:#22313c; color:white; padding:24px 18px; position:sticky; top:0; height:100vh; }
.brand { display:flex; align-items:center; gap:12px; margin-bottom:28px; }
.mark { display:grid; place-items:center; width:44px; height:44px; border-radius:8px; background:#f0b429; color:#1d2730; font-weight:900; }
.brand strong, .brand small { display:block; }
.brand small { color:#c9d6df; margin-top:3px; }
nav { display:grid; gap:8px; }
nav a { color:#e9f2f8; text-decoration:none; padding:10px 12px; border-radius:6px; }
nav a:hover { background:rgba(255,255,255,.1); }
main { width:100%; max-width:1500px; margin:0 auto; padding:32px; display:grid; gap:28px; min-width:0; }
main > * { width:100%; min-width:0; max-width:100%; }
h1,h2,h3,h4,p { margin:0; }
h1 { font-size:40px; line-height:1.05; }
h2 { font-size:24px; }
h3 { font-size:18px; }
p,li { line-height:1.65; overflow-wrap:anywhere; }
.overview,.today-surface,.today-head,.today-action-grid,.today-review-grid,.today-prompt-grid,.band,.oral-grid,.lesson-columns,.mc-more-grid,.visual-support-grid,.formula-grid,.topic-grid,.steps,.beginner-step-grid,.beginner-confusion-grid { display:grid; gap:16px; }
.title-block { display:grid; gap:10px; align-content:start; }
.hub-summary { max-width:760px; font-size:17px; color:#34495a; }
.overview { grid-template-columns:minmax(0,1fr) minmax(300px,380px); align-items:stretch; }
.today-surface { background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:24px; }
.today-head { grid-template-columns:minmax(0,1fr) minmax(300px,380px); align-items:start; }
.today-action-grid { grid-template-columns:minmax(0,1.55fr) minmax(280px,.8fr); }
.today-review-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.today-prompt-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.today-panel { border:1px solid var(--line); border-radius:8px; background:#fbfcfd; padding:18px; min-width:0; display:grid; gap:14px; }
.section-title-group p { color:#3d4c59; }
.empty-state { border-style:dashed; background:#fffdf7; }
.due-list li { border-left:4px solid var(--amber); background:white; border-radius:6px; padding:10px 12px; display:grid; gap:4px; }
.today-prompt { display:grid; gap:12px; min-width:0; }
.today-prompt .prompt-head { margin-bottom:0; align-items:center; }
.today-prompt textarea { width:100%; min-height:230px; border:1px solid var(--line); border-radius:6px; padding:10px; font:13px/1.5 ui-monospace, Consolas, monospace; resize:vertical; background:white; }
.today-prompt button { min-height:36px; border:1px solid var(--blue); background:var(--blue); color:white; border-radius:6px; padding:7px 11px; font-weight:700; cursor:pointer; }
.log-workflow-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.log-workflow-grid article { border:1px solid var(--line); border-radius:8px; background:white; padding:12px; display:grid; gap:6px; }
.log-workflow pre { font-size:12px; max-height:340px; }
.personalization-panel { background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:24px; }
.personal-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:14px; }
.lesson-personal { display:flex; flex-wrap:wrap; gap:8px; align-items:center; justify-content:space-between; }
.lesson-personal span { border:1px solid #b9c8d4; background:#eef5f8; color:#102a3a; border-radius:999px; padding:4px 8px; font-size:12px; font-weight:800; }
.personal-order { border:1px dashed #b9c8d4; border-radius:8px; padding:10px 12px; background:#fff; }
.personal-order summary { cursor:pointer; color:var(--blue); font-weight:800; }
.practice-section { background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:24px; display:grid; gap:18px; }
.practice-prompts { background:#f8fbff; }
.band { grid-template-columns:1.1fr 1fr 1fr; gap:18px; }
.cheat-sheet { background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:24px; }
.cheat-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:14px; align-items:start; }
.cheat-block-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.cheat-block { min-width:0; border-left:3px solid var(--blue); padding-left:10px; }
.cheat-block h4 { margin:0 0 6px; color:var(--blue); font-size:14px; }
.cheat-block ul,.cheat-sources ul { margin:0; padding-left:18px; }
.cheat-block li,.cheat-sources li { margin-bottom:5px; }
.cheat-sources summary { cursor:pointer; color:var(--blue); font-weight:800; }
.metrics { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.metrics div,.panel,.oral-lab,.mc-checklist,.concept-lessons,.topics-section,.study-plan,.commands,.detail-page,.formula-section,.beginner-guide,.visual-explainer,.learning-blocks,.markdown-body-lesson,.prompt-box { background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:24px; }
.metrics span { display:block; font-size:26px; font-weight:800; }
.metrics small,.activity-list small,.section-title-group span,.lesson-head span { color:var(--muted); font-weight:700; }
.activity-list { list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.section-head,.prompt-head { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; margin-bottom:18px; }
.section-head p { max-width:860px; color:#3d4c59; }
.oral-grid { grid-template-columns:320px minmax(0,1fr); }
.oral-controls { display:grid; gap:12px; align-content:start; }
.oral-controls label { display:grid; gap:6px; }
.oral-controls select,.oral-controls input,.oral-controls button,.prompt-panel textarea,.detail-prompt { width:100%; border:1px solid var(--line); border-radius:6px; font:inherit; padding:10px; }
.oral-controls button,.lesson-link,.back-link,.copy-inline { min-height:38px; border:1px solid var(--blue); background:var(--blue); color:white; border-radius:6px; padding:8px 12px; font-weight:700; text-decoration:none; cursor:pointer; }
.prompt-panel textarea { min-height:260px; }
.mc-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; align-items:start; }
.mc-more h4 { color:var(--blue); margin-bottom:8px; }
.trap-preview { border-left:4px solid var(--amber); }
.mc-more { border-top:1px solid var(--line); padding-top:12px; }
.mc-more summary { cursor:pointer; color:var(--blue); font-weight:800; padding:8px 0; }
.mc-more-grid { grid-template-columns:1fr 1fr; margin-top:14px; gap:18px; }
.lesson-columns { grid-template-columns:1fr 1fr; }
.panel { display:grid; gap:14px; }
.lesson-why { color:#34495a; border-left:4px solid var(--blue); padding:8px 10px; background:#f8fbff; border-radius:6px; }
.lesson-preview { border:1px dashed #cbd8e2; border-radius:8px; background:#fff; padding:10px 12px; }
.lesson-preview summary { cursor:pointer; color:var(--blue); font-weight:800; }
.lesson-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-top:2px; }
.lesson-actions .lesson-link,.lesson-actions .back-link { min-width:104px; text-align:center; justify-content:center; }
.lesson-cockpit { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr); gap:18px; border:1px solid #bdd3e5; border-radius:8px; background:#f7fbff; padding:20px; box-shadow:inset 0 3px 0 var(--blue); }
.cockpit-main { display:grid; gap:11px; align-content:start; }
.detail-kicker { color:var(--blue); font-size:13px; font-weight:900; text-transform:uppercase; letter-spacing:.02em; }
.cockpit-main h2 { font-size:24px; color:#102a3a; }
.cockpit-main p { color:#33485a; max-width:780px; }
.cockpit-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.back-link.subtle { background:white; color:var(--blue); border-color:#b9c8d4; }
.cockpit-steps { display:grid; gap:8px; }
.cockpit-step { border:1px solid #d2dee8; border-radius:8px; background:white; padding:11px 12px; display:grid; gap:4px; min-width:0; }
.cockpit-step strong { color:var(--blue); font-size:14px; }
.cockpit-step span { color:#405363; line-height:1.45; }
.math-strip { display:flex; flex-wrap:wrap; gap:8px; }
.math-chip,.related-link { border:1px solid #9fb8cc; border-radius:6px; padding:7px 11px; background:#e6f1f8; color:#102a3a; font-family:"Segoe UI Symbol", ui-monospace, Consolas, monospace; font-weight:800; overflow-wrap:anywhere; box-shadow:inset 0 -1px 0 rgba(16,42,58,.08); }
.analogy { border-left:4px solid var(--amber); padding:10px 12px; background:#fff8e8; color:#4f3a10; }
.formula-grid,.visual-support-grid,.beginner-step-grid,.beginner-confusion-grid { grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); }
.visual-support-grid article,.beginner-step-grid article,.beginner-confusion-grid article,.beginner-example,.beginner-analogy { border:1px solid var(--line); border-radius:8px; background:#fbfcfd; padding:14px; min-width:0; }
.formula-entry h3,.visual-support-grid h3 { color:var(--blue); margin-bottom:8px; }
.math-block { min-width:0; max-width:100%; overflow-x:auto; overflow-y:hidden; white-space:nowrap; background:#f2f8fc; border:1px solid #b8ccdd; border-left:5px solid var(--blue); border-radius:8px; padding:13px 14px; font-family:"Cambria Math", "Segoe UI Symbol", ui-monospace, Consolas, monospace; font-size:17px; font-weight:800; color:#102a3a; }
.math-block mjx-container { margin:0 !important; font-size:116% !important; }
.math-block>.math-tex { display:block; min-width:0; max-width:100%; overflow-x:auto; overflow-y:hidden; }
.math-fallback { display:none; }
.question-inline-math { display:inline-block; min-width:0; max-width:100%; overflow-x:auto; overflow-y:hidden; padding:.08em .22em; border-radius:5px; color:#17384d; background:#edf5fa; vertical-align:-.12em; }
.question-inline-math>.math-tex { display:inline-block; min-width:0; max-width:100%; overflow-x:auto; overflow-y:hidden; }
.question-inline-math mjx-container { margin:0 !important; }
.formula-token-row { display:flex; flex-wrap:wrap; gap:7px 10px; min-width:0; max-width:100%; margin-top:7px; }
.formula-token-row .question-inline-math { flex:0 1 auto; }
.formula-entry ul { margin:8px 0 0; padding-left:18px; color:#3d4c59; }
.recurrence-visual { display:grid; gap:14px; margin:0; }
.recurrence-formula-strip { display:flex; flex-wrap:wrap; gap:8px; }
.recurrence-formula-strip span,.worked-tag,.not-applicable span { border:1px solid #b9c8d4; border-radius:6px; padding:7px 10px; background:#eef5f8; color:#102a3a; font-family:"Segoe UI Symbol", ui-monospace, Consolas, monospace; font-weight:700; overflow-wrap:anywhere; }
.recurrence-visual-grid { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(280px,.7fr); gap:14px; align-items:start; }
.recurrence-panel { border:1px solid var(--line); border-radius:8px; background:#fbfcfd; padding:14px; min-width:0; display:grid; gap:10px; }
.recurrence-panel svg { width:100%; height:auto; display:block; border:1px solid var(--line); border-radius:8px; background:white; }
.case-selector { display:grid; gap:10px; }
.worked-tag { background:#e9f6ef; border-color:#9ed2ad; }
.not-applicable { display:flex; flex-wrap:wrap; gap:8px; align-items:center; border-left:4px solid var(--red); background:#fff7f7; padding:10px 12px; border-radius:6px; }
.not-applicable span { background:white; border-color:#efc7c7; color:#6e2323; }
.loop-proof-visual { display:grid; gap:12px; margin:0; }
.loop-panel { border:1px solid var(--line); border-radius:8px; background:#fbfcfd; padding:14px; display:grid; gap:10px; }
.array-row { display:flex; flex-wrap:wrap; gap:6px; align-items:center; font-family:ui-monospace, Consolas, monospace; }
.cell { min-width:42px; min-height:38px; display:grid; place-items:center; border:2px solid #cbd8e2; border-radius:6px; font-weight:800; }
.cell.proven { background:#e9f6ef; border-color:#2d7d5f; color:#19533f; }
.cell.key { background:#fff4dc; border-color:#a66a00; color:#704700; }
.cell.rest { background:#f3f5f7; color:#607080; }
.arrow { font-weight:900; color:var(--blue); }
.visual-note { border-left:4px solid var(--blue); padding:10px 12px; background:#eef5f8; }
.trap-block { border-left:4px solid var(--amber); }
.recall-block { border-left:4px solid var(--green); }
.topic-grid { grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:16px; }
.status { display:inline-block; border-radius:999px; padding:3px 8px; font-size:12px; font-weight:700; margin-bottom:8px; }
.status.ready { color:var(--green); background:#e9f6ef; }
.status.review { color:var(--amber); background:#fff3d7; }
.status.focus { color:var(--red); background:#fbe7e7; }
dl { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:0; }
dt { color:var(--muted); font-size:12px; }
dd { margin:2px 0 0; font-weight:800; }
.steps { grid-template-columns:repeat(5,1fr); }
.steps div { border:1px solid var(--line); border-radius:8px; padding:14px; display:grid; gap:8px; }
pre { overflow-x:auto; background:#17202a; color:#e9f2f8; border-radius:8px; padding:16px; line-height:1.55; }
.detail-body { display:block; }
.detail-main { max-width:1060px; margin:0 auto; padding:28px; display:grid; gap:16px; }
.detail-page { display:grid; gap:22px; }
.detail-page section { display:block; }
.detail-prompt { min-height:300px; font:14px/1.55 ui-monospace, Consolas, monospace; }
.related-links { display:flex; flex-wrap:wrap; gap:8px; }
.back-link { width:fit-content; background:white; color:var(--blue); }
.copy-inline { width:fit-content; }
.updated { color:var(--muted); font-size:13px; }
.recurrence-master-page { line-height:1.65; }
.recurrence-hero { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:18px; align-items:stretch; background:#ffffff; border:1px solid var(--line); border-radius:8px; padding:20px; }
.recurrence-hero h2 { margin:6px 0 10px; font-size:30px; line-height:1.18; }
.detail-kicker { color:var(--blue); font-weight:800; font-size:13px; text-transform:uppercase; letter-spacing:.02em; }
.recurrence-formula-stack { display:grid; gap:8px; align-content:center; border:1px solid #bed7ef; background:#eef5f8; border-radius:8px; padding:16px; font-family:"Segoe UI Symbol", ui-monospace, Consolas, monospace; }
.recurrence-formula-stack strong { font-size:22px; color:#102a3a; }
.lecture-section,.warning-section { background:#ffffff; border:1px solid var(--line); border-radius:8px; padding:20px; }
.lecture-section h2 { margin:0; font-size:24px; }
.lecture-section h3 { margin:0 0 8px; font-size:17px; }
.code-lecture { margin:0; overflow:auto; background:#17202a; color:#f6f7f9; border-radius:8px; padding:14px; font:14px/1.55 ui-monospace, Consolas, monospace; }
.derivation-grid,.worked-grid,.case-grid-rich { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.derivation-grid article,.worked-grid article,.case-grid-rich article { border:1px solid var(--line); border-radius:8px; padding:14px; background:#f8fafb; min-width:0; }
.case-grid-rich article { background:#ffffff; border-top:4px solid var(--blue); }
.case-grid-rich article:nth-child(2) { border-top-color:var(--green); }
.case-grid-rich article:nth-child(3) { border-top-color:var(--amber); }
.formula-line { border-left:4px solid var(--green); background:#f4fbf6; padding:10px 12px; }
.source-note { color:var(--muted); font-size:14px; }
.tree-visual { display:grid; gap:8px; border:1px solid #bed7ef; background:#f8fbff; border-radius:8px; padding:16px; overflow:auto; }
.tree-visual { max-width:100%; overflow-x:auto; }
.tree-row { display:flex; gap:10px; align-items:center; min-width:720px; }
.node { display:inline-grid; place-items:center; min-width:78px; min-height:42px; border:2px solid var(--blue); border-radius:8px; background:#ffffff; font-family:"Segoe UI Symbol", ui-monospace, Consolas, monospace; font-weight:800; }
.node.root { background:#eef5f8; }
.node.small { min-width:64px; border-color:var(--amber); }
.branches { color:var(--muted); font:22px/1 ui-monospace, Consolas, monospace; padding-left:32px; }
.tree-footer { min-width:720px; border-top:1px solid #bed7ef; padding-top:10px; font-weight:800; color:#245681; }
.warning-section { border-color:#e0b6b6; background:#fffafa; }
.warning-section h2 { color:#7b2323; }
@media (max-width: 820px) {
  .recurrence-hero,.derivation-grid,.worked-grid,.case-grid-rich { grid-template-columns:1fr; }
  .recurrence-hero h2 { font-size:24px; }
}
.asymptotic-page { line-height:1.65; }
.asymptotic-hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(280px,340px); gap:18px; align-items:stretch; background:#fff; border:1px solid var(--line); border-radius:8px; padding:20px; }
.asymptotic-hero h2 { margin:6px 0 10px; font-size:30px; line-height:1.18; }
.asymptotic-quick-summary { display:block; padding:16px 0; }
.asymptotic-quick-summary strong { font-size:20px; color:#102a3a; }
.asymptotic-quick-summary span { display:block; padding:8px 0; font-weight:700; }
.asymptotic-formula-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.asymptotic-worked-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.growth-ladder { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.growth-ladder span { border:1px solid #b9c8d4; border-radius:6px; padding:9px 12px; background:#eef5f8; color:#102a3a; font-family:"Segoe UI Symbol", ui-monospace, Consolas, monospace; font-weight:800; }
.growth-ladder-wide span::after { content:""; }
.asymptotic-bound-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.asymptotic-bound-grid article { border:1px solid var(--line); border-radius:8px; padding:14px; background:#fbfcfd; min-width:0; display:grid; gap:10px; }
.asymptotic-bound-grid svg { width:100%; height:auto; display:block; background:white; border:1px solid var(--line); border-radius:8px; }
.asymptotic-trap-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:12px; }
.asymptotic-trap-grid article { border:1px solid var(--line); border-left:4px solid var(--amber); border-radius:8px; padding:14px; background:#fffdf7; }
.asymptotic-trap-grid h3 { color:#815100; margin-bottom:7px; }
@media (max-width: 820px) {
  .asymptotic-hero,.asymptotic-formula-grid,.asymptotic-worked-grid,.asymptotic-bound-grid { grid-template-columns:1fr; }
  .asymptotic-hero h2 { font-size:24px; }
}
.sorting-audit-page .section-title-group p { max-width:82ch; }
.sorting-summary-grid,.sorting-property-grid,.sorting-trap-grid,.sorting-recall-grid { display:grid; gap:12px; }
.sorting-summary-grid { grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); }
.sorting-summary-grid article,.sorting-proof-step,.sorting-trap-grid article,.sorting-recall-grid article { border:1px solid var(--line); border-radius:8px; padding:14px; background:#fbfcfd; }
.sorting-summary-grid h3,.sorting-proof-step h3,.sorting-trap-grid h3,.sorting-recall-grid h3 { color:var(--blue); margin-bottom:7px; }
.sorting-property-grid { overflow-x:auto; }
.sorting-property-table { width:100%; border-collapse:collapse; min-width:760px; background:white; border:1px solid var(--line); border-radius:8px; overflow:hidden; }
.sorting-property-table th,.sorting-property-table td { border-bottom:1px solid var(--line); padding:10px 12px; text-align:left; vertical-align:top; }
.sorting-property-table th { background:#eef5f8; color:#102a3a; font-size:14px; }
.sorting-property-table tr:last-child td { border-bottom:0; }
.sorting-property-table code,.formula-chain code,.sorting-proof-step code { font-family:"Segoe UI Symbol", ui-monospace, Consolas, monospace; font-weight:800; }
.sorting-decision-visual { margin:0; display:grid; gap:12px; }
.sorting-decision-visual svg { width:100%; height:auto; display:block; border:1px solid var(--line); border-radius:8px; background:white; }
.formula-chain { display:flex; flex-wrap:wrap; gap:8px; }
.formula-chain span,.formula-chain strong { border:1px solid #b9c8d4; border-radius:6px; padding:8px 10px; background:#eef5f8; overflow-wrap:anywhere; }
.formula-chain strong { border-color:#8fc79a; background:#edf8ef; color:#1e5c28; }
.sorting-model-warning { border-left:4px solid var(--red); background:#fff7f7; padding:12px 14px; border-radius:6px; }
.sorting-proof-flow { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.sorting-trap-grid,.sorting-recall-grid { grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); }
.sm-summary-grid,.sm-formula-grid,.sm-trap-grid,.sm-recall-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:12px; }
.sm-summary-grid article,.sm-formula-grid article,.sm-trap-grid article,.sm-recall-grid article { border:1px solid var(--line); border-radius:8px; padding:14px; background:#fbfcfd; min-width:0; }
.sm-summary-grid h3,.sm-formula-grid h3,.sm-trap-grid h3,.sm-recall-grid h3 { color:var(--blue); margin-bottom:7px; }
.sm-visual { margin:0; display:grid; gap:12px; }
.sm-visual h3 { color:var(--blue); }
.sm-visual svg { width:100%; height:auto; display:block; border:1px solid var(--line); border-radius:8px; background:white; }
.sm-algo-chips { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.sm-algo-chips span,.sm-algo-chips strong { border:1px solid #b9c8d4; border-radius:6px; padding:8px 10px; background:#eef5f8; overflow-wrap:anywhere; }
.sm-algo-chips strong { border-color:#8fc79a; background:#edf8ef; color:#1e5c28; }
.sm-table-wrap { overflow-x:auto; border:1px solid #bfd2e2; border-radius:8px; background:white; box-shadow:inset 0 3px 0 #e6f1f8; }
.sm-scan-table { width:100%; min-width:760px; border-collapse:collapse; }
.sm-scan-table th,.sm-scan-table td { padding:10px 12px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
.sm-scan-table th { background:#eef5f8; color:#102a3a; font-size:14px; }
.sm-scan-table tr:last-child td { border-bottom:0; }
.sm-scan-table tr.ok td { background:#f1f8ef; }
.sm-scan-table code,.sm-formula-grid code,.sm-trap-grid code,.sm-recall-grid code { font-family:"Segoe UI Symbol", ui-monospace, Consolas, monospace; font-weight:800; }
.loop-hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(280px,380px); gap:18px; align-items:stretch; background:#ffffff; border:1px solid var(--line); border-radius:8px; padding:20px; }
.loop-hero h2 { margin:6px 0 10px; font-size:30px; line-height:1.18; }
.loop-proof-stack { display:grid; gap:10px; border:1px solid #bed7ef; background:#eef5f8; border-radius:8px; padding:16px; align-content:center; }
.loop-proof-stack strong { font-size:32px; color:#102a3a; font-family:"Segoe UI Symbol", ui-monospace, Consolas, monospace; }
.loop-proof-stack span,.loop-array-legend code { border:1px solid #b9c8d4; background:#fff; border-radius:6px; padding:8px 10px; }
.loop-array-legend { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.loop-proof-flow,.loop-template-grid,.loop-trap-table { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:14px; }
.loop-proof-flow article,.loop-template-grid article,.loop-trap-table article { border:1px solid var(--line); background:#fbfcfd; border-radius:8px; padding:14px; min-width:0; display:grid; gap:10px; align-content:start; }
.loop-proof-flow h3,.loop-template-grid h3,.loop-trap-table h3 { color:var(--blue); margin:0; }
.loop-chain { margin-top:8px; }
.interactive-priority { border-color:#a9c7df; box-shadow:inset 0 3px 0 var(--green); }
.interactive-lesson { border-color:#9fc2df; background:#fbfdff; box-shadow:inset 0 3px 0 var(--green); }
.interactive-controls { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:12px; align-items:end; }
.interactive-controls label { display:grid; gap:6px; color:#3d4c59; font-weight:700; }
.interactive-controls select,.interactive-controls input { width:100%; }
.growth-bars { display:grid; grid-template-columns:1fr 1fr; gap:14px; min-height:230px; align-items:end; }
.growth-bars div { min-height:220px; border:1px solid var(--line); border-radius:8px; background:white; padding:12px; display:grid; grid-template-rows:auto 1fr auto; gap:8px; }
.growth-bars span { align-self:end; display:block; min-height:12px; border-radius:6px 6px 0 0; background:linear-gradient(180deg,#2f6f9f,#2d7d5f); }
.growth-bars small,.case-meter span { color:var(--muted); font-weight:700; }
.case-meter { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.case-meter div { border:1px solid var(--line); border-radius:8px; background:white; padding:14px; display:grid; gap:6px; }
.case-meter strong { font-family:"Segoe UI Symbol", ui-monospace, Consolas, monospace; font-size:20px; color:var(--blue); overflow-wrap:anywhere; }
.loop-stepper-controls { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:10px; align-items:center; }
.loop-stepper-controls button { border:1px solid var(--blue); background:var(--blue); color:white; border-radius:6px; padding:8px 12px; font-weight:800; cursor:pointer; }
.loop-stepper-controls output { text-align:center; font-weight:800; color:#102a3a; }
.loop-stepper-array .cell { min-width:54px; }
.trace-widget { display:grid; gap:14px; scroll-margin-top:18px; }
.trace-toolbar { display:grid; grid-template-columns:minmax(220px,1fr) auto auto; gap:10px; align-items:end; }
.trace-toolbar label { display:grid; gap:6px; color:#3d4c59; font-weight:800; }
.trace-toolbar select { width:100%; border:1px solid var(--line); border-radius:6px; padding:9px 10px; font:inherit; }
.trace-toolbar button { border:1px solid var(--blue); background:var(--blue); color:white; border-radius:6px; padding:9px 12px; font-weight:800; cursor:pointer; }
.trace-toolbar button:disabled,.loop-stepper-controls button:disabled { opacity:.45; cursor:not-allowed; }
.trace-stage { border:1px solid #bed7ef; border-radius:8px; background:white; padding:14px; display:grid; gap:12px; }
.trace-stage h3 { margin:0; color:var(--blue); }
.trace-items { display:flex; flex-wrap:wrap; gap:8px; align-items:center; min-height:46px; }
.trace-chip { border:2px solid #b9c8d4; background:#f8fafb; border-radius:8px; padding:8px 10px; min-height:38px; display:inline-grid; place-items:center; font-family:"Segoe UI Symbol", ui-monospace, Consolas, monospace; font-weight:800; }
.trace-chip.active { border-color:var(--blue); background:#eef5f8; color:#102a3a; }
.trace-chip.done { border-color:var(--green); background:#e9f6ef; color:#19533f; }
.trace-chip.warn { border-color:var(--amber); background:#fff4dc; color:#704700; }
.trace-chip.bad { border-color:var(--red); background:#fff0f0; color:#6e2323; }
.trace-step-counter { color:var(--muted); font-weight:800; }
@media (max-width:980px) { body{grid-template-columns:1fr}.sidebar{position:static;height:auto}nav{grid-template-columns:repeat(4,minmax(0,1fr))}.overview,.today-head,.today-action-grid,.today-review-grid,.today-prompt-grid,.log-workflow-grid,.band,.oral-grid,.steps,.mc-grid{grid-template-columns:1fr}.metrics{grid-template-columns:repeat(2,1fr)} }
@media (max-width:760px) { .loop-hero{grid-template-columns:1fr}.loop-hero h2{font-size:24px}.loop-proof-flow,.loop-template-grid,.loop-trap-table{grid-template-columns:1fr} }
@media (max-width:640px) { main,.detail-main{padding:16px}nav{grid-template-columns:repeat(2,minmax(0,1fr))}.mc-grid{grid-template-columns:1fr}.mc-more-grid,.lesson-columns,.visual-support-grid,.formula-grid,.beginner-step-grid,.beginner-confusion-grid,.recurrence-visual-grid,.sorting-proof-flow,.cheat-block-grid,.growth-bars,.case-meter,.loop-stepper-controls,.trace-toolbar,.lesson-cockpit{grid-template-columns:1fr}h1{font-size:30px}.metrics{grid-template-columns:1fr}.today-surface{padding:16px}.lesson-cockpit{padding:16px}.cockpit-main h2{font-size:21px} }
@media print {
  @page { size:A4 portrait; margin:10mm; }
  body { display:block; background:white; }
  .sidebar,.today-surface,.band,.oral-lab,.mc-checklist,.concept-lessons,.topics-section,.study-plan,.commands { display:none; }
  main { padding:0; }
  .cheat-sheet { border:0; padding:0; }
  .cheat-grid { grid-template-columns:1fr 1fr; gap:8px; }
  .cheat-block-grid { gap:6px; }
  .cheat-block h4 { font-size:11px; }
}
.so25-promo { display:flex; justify-content:space-between; gap:24px; align-items:center; padding:28px; color:white; background:linear-gradient(135deg,#20354a,#2f6f9f); border-radius:18px; box-shadow:0 16px 36px rgba(20,40,60,.16); }
.so25-promo h2,.so25-promo p { margin:0 0 8px; }
.so25-promo>div:last-child { display:grid; gap:12px; min-width:180px; text-align:right; }
.so25-promo a { color:#162432; background:#f0b429; text-decoration:none; font-weight:800; padding:10px 14px; border-radius:10px; }
.so25-main { max-width:1100px; min-width:0; overflow-x:clip; }
.so25-hero { padding:clamp(24px,5vw,56px); border-radius:22px; color:white; background:linear-gradient(135deg,#172d40,#356f98); }
.so25-hero h1 { margin:.15em 0; font-size:clamp(2rem,6vw,4rem); line-height:1.05; }
.so25-progress { display:flex; gap:18px; margin-top:24px; flex-wrap:wrap; }
.so25-progress>* { padding:8px 12px; border:1px solid rgba(255,255,255,.3); border-radius:999px; }
.so25-unit-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:16px; }
.so25-section,.so25-question { background:white; border:1px solid var(--line); border-radius:16px; padding:22px; }
.so25-section { display:grid; gap:16px; }
.so25-section>h2 { margin:0; font-size:1.55rem; }
.so25-fact { padding:14px 0; border-bottom:1px solid #e8ebef; }
.so25-fact:last-child { border-bottom:0; }
.so25-fact>strong { display:block; color:#315f7c; text-transform:capitalize; }
.so25-question { background:#f9fbfc; }
.so25-stem { font-size:1.08rem; font-weight:750; }
.translation { color:#526474; }
.so25-options { display:grid; gap:10px; }
.so25-option { display:grid; grid-template-columns:24px 36px minmax(0,1fr); gap:12px; padding:14px; border:1px solid #dce3e8; border-radius:12px; background:white; }
.so25-option:not(:has(input)) { grid-template-columns:36px minmax(0,1fr); }
.so25-option.correct { border-color:#5aa47f; background:#f0faf5; }
.so25-option-label { width:32px; height:32px; display:grid; place-items:center; border-radius:50%; background:#e7edf2; font-weight:900; }
.so25-option p { margin:0 0 6px; }
.so25-option-explanation { margin-top:12px; padding-top:12px; border-top:1px dashed #cbd6dd; }
.so25-answer { margin-top:16px; border:1px solid #bfd0dc; border-radius:12px; padding:14px; background:white; }
.so25-answer>summary { cursor:pointer; font-weight:850; color:#245d84; }
.so25-warning { border-color:#e2aa49; background:#fff7e7; }
.so25-beginner-deep-dive { margin:18px 0; overflow:hidden; border:2px solid #7a5b19; border-radius:16px; background:#fffdf7; }
.so25-beginner-deep-dive>summary { display:flex; align-items:center; gap:12px; padding:16px 18px; cursor:pointer; color:#fff; background:linear-gradient(135deg,#5b4210,#9a6b12); list-style:none; }
.so25-beginner-deep-dive>summary::-webkit-details-marker { display:none; }.so25-beginner-deep-dive>summary::after { content:"펼침"; margin-left:auto; padding:4px 8px; border:1px solid rgba(255,255,255,.4); border-radius:999px; font-size:.72rem; }.so25-beginner-deep-dive[open]>summary::after { content:"접기"; }
.so25-beginner-deep-dive>summary span { color:#ffe5a0; font-size:.7rem; font-weight:950; letter-spacing:.13em; }.so25-beginner-deep-dive>summary strong { font-size:1.08rem; }
.beginner-deep-dive-body { display:grid; grid-template-columns:minmax(0,1fr); gap:34px; min-width:0; padding:clamp(18px,4vw,42px); }.beginner-deep-dive-body>section,.beginner-deep-dive-body>.concept-page-link { min-width:0; max-width:78ch; margin-inline:auto; width:100%; }.beginner-deep-dive-body>section+section { padding-top:30px; border-top:1px solid #d7dfe5; }.beginner-deep-dive-body h4 { margin:0 0 14px; color:#563e0d; font-size:1.4rem; line-height:1.35; }.beginner-deep-dive-body h5 { margin:0 0 10px; color:#244f6b; font-size:1.16rem; line-height:1.42; overflow-wrap:anywhere; }.beginner-deep-dive-body h6 { margin:0 0 9px; color:#31566c; font-size:.92rem; }.beginner-deep-dive-body p { margin:0 0 13px; line-height:1.82; overflow-wrap:anywhere; }
.beginner-orientation,.beginner-worked-solution,.beginner-answer-template { padding:6px 0 6px 20px; background:transparent; }.beginner-orientation { border-left:6px solid #d2941b; }.beginner-worked-solution { border-left:6px solid var(--blue); }.beginner-answer-template { border-left:6px solid var(--green); }
.beginner-concept-prose { display:block; min-width:0; }.beginner-lesson-section { position:relative; min-width:0; padding:26px 0 28px; }.beginner-lesson-section+.beginner-lesson-section { border-top:1px dashed #b9c8d4; }.prose-step-label { margin-bottom:7px; color:#8a5e08; font-size:.79rem; font-weight:900; letter-spacing:.08em; }.beginner-analogy { display:block; margin:17px 0; padding:14px 17px; border:0; border-left:5px solid #6d8daa; border-radius:0; background:#edf5fa; line-height:1.75; }.beginner-analogy small { display:block; margin-top:8px; color:#53636d; }.beginner-formula-stack { display:grid; grid-template-columns:minmax(0,1fr); gap:10px; min-width:0; margin:19px 0; }.beginner-formula-stack .math-block { min-width:0; max-width:100%; padding:17px 18px; font-size:1.08rem; white-space:normal; }.beginner-key-points { margin:17px 0 0; padding-left:18px; border-left:4px solid var(--green); }.formula-note { display:flex; gap:10px; align-items:baseline; padding:12px 14px; border-left:5px solid var(--green); background:#f2faf5; }.formula-note strong { flex:0 0 auto; color:#205f47; }.formula-note span { line-height:1.65; }.formula-explained { display:grid; grid-template-columns:minmax(0,1fr); gap:7px; min-width:0; }.formula-explained>p { margin:0; color:#405b6b; font-weight:800; }
.beginner-process-visual { margin:20px 0 28px; }.beginner-process-visual figcaption { margin-bottom:12px; color:#35556a; font-weight:850; }.beginner-process-visual>div { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:28px 12px; }.beginner-process-visual article { position:relative; min-width:0; padding:14px; border:2px solid #aac4d5; border-radius:10px; background:#f8fbfd; }.beginner-process-visual article:not(:last-child)::after { content:"→"; position:absolute; right:-18px; top:50%; z-index:2; color:#6c561a; font-size:1.35rem; font-weight:950; }.beginner-process-visual article>span { display:grid; place-items:center; width:27px; height:27px; margin-bottom:8px; border-radius:50%; color:#fff; background:#2f6f9f; font-weight:900; }.beginner-process-visual article p { margin:7px 0 0; font-size:.9rem; line-height:1.55; }
.beginner-solve-steps { display:grid; grid-template-columns:minmax(0,1fr); gap:0; min-width:0; max-width:100%; padding-left:34px; border-left:3px solid #bdd0dc; counter-reset:solve-step; }.beginner-solve-steps li { position:relative; min-width:0; max-width:100%; padding:0 0 25px 18px; background:transparent; overflow-wrap:anywhere; }.beginner-solve-steps li::marker { color:#9a6b12; font-size:1.05rem; font-weight:900; }.beginner-solve-steps li::before { content:""; position:absolute; left:-27px; top:5px; width:11px; height:11px; border:3px solid #fff; border-radius:50%; background:#2f6f9f; box-shadow:0 0 0 2px #2f6f9f; }.beginner-solve-steps .math-block { min-width:0; max-width:100%; margin-top:11px; }.worked-line { min-width:0; max-width:100%; margin-top:10px; padding:11px 13px; overflow-wrap:anywhere; border-radius:8px; color:#17384d; background:#eaf3f8; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-weight:750; }
.beginner-option-list { display:grid; gap:0; margin:0; padding:0; list-style:none; }.beginner-option-list>li { padding:18px 0 20px; border-bottom:1px solid #d8e0e5; }.beginner-option-list>li:last-child { border-bottom:0; }.beginner-option-list>li.is-true { padding-left:14px; border-left:5px solid #2d7d5f; }.beginner-option-list>li.is-false { padding-left:14px; border-left:5px solid #b44949; }.option-verdict { display:flex; align-items:center; gap:10px; margin-bottom:9px; }.option-verdict span { display:grid; place-items:center; width:31px; height:31px; border-radius:50%; color:#fff; background:#415b6b; font-weight:900; }.beginner-option-list>li.is-true .option-verdict span { background:#2d7d5f; }.beginner-traps { padding:16px 18px; border:0; border-left:6px solid #d5a334; border-radius:0; background:#fff8e8; }
.concept-page-link { display:block; padding:12px 16px; border:1px solid #2f6f9f; border-radius:8px; color:#164c70; background:#eef6fb; text-align:center; text-decoration:none; font-weight:900; }.concept-page-link:hover { background:#deeff9; }.standalone-deep-dive { border:0; border-radius:0; overflow:visible; background:#fff; }.standalone-deep-dive-title { max-width:78ch; margin:0 auto; padding:24px clamp(18px,4vw,42px) 0; }.standalone-deep-dive-title span,.source-boundary-label { color:#8a5e08; font-size:.8rem; font-weight:900; letter-spacing:.06em; }.standalone-question-nav { display:flex; flex-wrap:wrap; gap:10px; }.standalone-question-brief,.standalone-next-action { padding:24px; border:1px solid #d7dfe5; border-radius:14px; background:#fff; }.original-option-list { margin-top:16px; }.question-lesson-directory ul,.so25-question-lesson-links ul { display:grid; gap:8px; }.question-lesson-directory a,.so25-question-lesson-links a { color:#195c85; font-weight:800; }.so25-question-lesson-links { width:100%; margin:7px 0 12px; }.so25-question-lesson-links summary { cursor:pointer; color:#245d84; font-weight:850; }
.beginner-self-check { margin:8px 0; padding:12px 14px; border:1px solid #cbd7de; border-radius:9px; background:#fff; }.beginner-self-check summary { cursor:pointer; color:#245d84; font-weight:850; }.beginner-self-check p { margin:10px 0 0; }.beginner-sources { padding-top:14px; border-top:1px dashed #c4b891; }.beginner-sources li { margin-bottom:9px; }.beginner-sources small { color:var(--muted); }
.so25-session-dashboard { display:flex; justify-content:space-between; align-items:center; gap:18px; margin:-18px 20px 20px; padding:16px 20px; position:relative; z-index:2; background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:0 10px 28px rgba(23,45,64,.12); }
.so25-session-dashboard>div:first-child { display:grid; gap:2px; }
.so25-session-dashboard span,.so25-lab-heading span { color:var(--blue); font-size:.72rem; font-weight:900; letter-spacing:.12em; }
.so25-session-dashboard small { color:var(--muted); }
.so25-dashboard-actions,.so25-solve-toolbar,.lab-controls,.lab-choice-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.so25-solve-toolbar { margin-top:14px; padding:12px; border-radius:12px; background:#edf3f7; }
.so25-solve-toolbar label { display:flex; align-items:center; gap:8px; font-weight:750; }
.so25-solve-toolbar button,.so25-ambiguity button,.lab-button { appearance:none; border:1px solid #b9c8d3; border-radius:9px; background:#fff; color:var(--ink); padding:9px 13px; font:inherit; font-weight:750; cursor:pointer; }
.so25-solve-toolbar button:hover,.so25-ambiguity button:hover,.lab-button:hover { border-color:var(--blue); transform:translateY(-1px); }
.so25-solve-toolbar button:focus-visible,.so25-choice:focus-visible+.so25-option-label,.lab-button:focus-visible,.lab-select:focus-visible,.lab-input:focus-visible { outline:3px solid rgba(47,111,159,.28); outline-offset:2px; }
.so25-solve-toolbar .primary,.lab-button.primary { border-color:var(--blue); background:var(--blue); color:#fff; }
.so25-solve-toolbar button:disabled,.lab-button:disabled { cursor:not-allowed; opacity:.55; transform:none; }
.so25-choice { inline-size:20px; block-size:20px; margin:6px 0 0; accent-color:var(--blue); }
.so25-option:has(.so25-choice:checked) { border-color:var(--blue); box-shadow:0 0 0 2px rgba(47,111,159,.14); }
.so25-option.picked { border-width:2px; }
.so25-option.wrong-picked { border-color:var(--red); background:#fff1f1; }
.so25-feedback { min-height:1.5em; margin:10px 0 0; padding:0 12px; font-weight:800; }
.so25-feedback.good { color:#176846; }.so25-feedback.bad { color:#9c2f2f; }.so25-feedback.warn { color:#8b5a00; }
.so25-hint { margin-top:10px; padding:13px 15px; border-left:4px solid var(--amber); border-radius:8px; background:#fff6df; }
.so25-ambiguity { margin-top:14px; padding:14px; border-radius:12px; }
.so25-ambiguity [data-ambiguity-panel] { margin-top:10px; padding:12px; border-radius:8px; background:rgba(255,255,255,.7); }
.trap-word { padding:1px 4px; border-radius:4px; color:#713c00; background:#ffe29a; font-weight:900; }
.so25-lab-shell { padding:0; overflow:hidden; border-color:#b9cfdf; }
.so25-lab-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:22px; color:#fff; background:linear-gradient(135deg,#19364c,#356f98); }
.so25-lab-heading h2,.so25-lab-heading p { margin:3px 0; }.so25-lab-heading span { color:#f0b429; }
.so25-lab-heading output { flex:0 0 auto; padding:7px 11px; border:1px solid rgba(255,255,255,.35); border-radius:999px; font-weight:800; }
.so25-lab { display:grid; gap:18px; padding:20px; background:#eef3f6; }
.lab-panel { min-width:0; padding:18px; overflow:hidden; border:1px solid #d4dee5; border-radius:14px; background:#fff; }
.lab-panel-head { display:flex; justify-content:space-between; align-items:start; gap:18px; margin-bottom:14px; }
.lab-panel-head h3,.lab-panel-head p,.lab-panel h4 { margin:0 0 5px; }.lab-panel-head p,.lab-note { color:var(--muted); }
.lab-controls { margin:10px 0 14px; }.lab-select,.lab-input { max-width:100%; min-height:40px; padding:7px 10px; border:1px solid #b9c8d3; border-radius:8px; background:#fff; font:inherit; }
.lab-range { width:min(240px,100%); accent-color:var(--blue); }.lab-check { display:flex; align-items:center; gap:7px; font-weight:750; }
.lab-readout,.lab-state { display:block; margin:10px 0; padding:11px 13px; overflow-wrap:anywhere; border-left:4px solid var(--blue); border-radius:7px; background:#eef5f9; font-variant-numeric:tabular-nums; }
.lab-svg { display:block; width:100%; min-height:210px; margin-top:10px; border:1px solid #dce4e9; border-radius:12px; background:#fbfdfe; }
.grid-line { stroke:#e5eaee; stroke-width:1; }.tree-edge,.graph-edge,.butterfly-line,.root-ray { stroke:#78909f; stroke-width:3; }.graph-edge.active,.butterfly-line.done { stroke:#e36d32; stroke-width:6; }
.graph-edge.tree { stroke:#2d7d5f; }.graph-edge.cross { stroke:#8a63a8; stroke-dasharray:8 5; }.graph-edge.unclassified { stroke:#a8b5bd; }.graph-edge.cut-edge { stroke:#d13f3f; stroke-width:7; }.residual-edge { stroke:#8a63a8; stroke-width:2; stroke-dasharray:7 5; }.graph-edge.negative-cycle { stroke:#d13f3f; stroke-width:5; fill:none; stroke-dasharray:8 5; }
.tree-node,.graph-node { fill:#e9f2f7; stroke:#285e80; stroke-width:3; }.tree-node.active,.graph-node.visited { fill:#f0b429; stroke:#805600; }.tree-node.black { fill:#263238; }.tree-node.red { fill:#b83232; }
.tree-label { fill:#15232d; font-size:17px; font-weight:900; }.tree-node.black+.tree-label,.tree-node.red+.tree-label { fill:#fff; }.edge-label { fill:#374b59; font-size:14px; font-weight:800; paint-order:stroke; stroke:#fff; stroke-width:4px; stroke-linejoin:round; }
.structure-view,.bucket-grid,.bit-grid,.sort-tray,.complexity-choice-row { display:flex; gap:8px; flex-wrap:wrap; align-items:center; min-height:54px; }
.structure-node,.bucket,.bit,.sort-chip,.formula-chip { display:grid; place-items:center; min-width:48px; min-height:44px; padding:7px; border:2px solid #7d9bad; border-radius:9px; background:#f8fbfd; font-weight:850; }
.pointer { color:var(--blue); font-size:1.5rem; font-weight:900; }.bucket { grid-template-rows:auto 1fr; min-width:64px; font-size:.75rem; }.bucket strong { font-size:.95rem; }
.bucket.selected,.queue-token.selected { border-color:#e36d32; background:#fff1e8; box-shadow:0 0 0 2px rgba(227,109,50,.16); }
.bit { min-width:38px; border-color:#c4cdd3; }.bit.on { color:#fff; border-color:#176846; background:#2d7d5f; }
.sort-chip { cursor:grab; user-select:none; }.sort-chip:focus,.sort-chip.selected { color:#fff; border-color:#245d84; background:#2f6f9f; }
.paradigm-board { display:grid; gap:10px; margin-top:14px; }.drop-zone-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }.drop-zone { min-height:54px; padding:10px; border:2px dashed #9fb0bb; border-radius:10px; color:#425866; background:#f7fafb; font-size:.82rem; font-weight:850; }.drop-zone>.sort-chip { margin-top:7px; color:var(--ink); background:#fff; }
.lab-two-col { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }.lab-callout { padding:12px; border:1px solid #d7e0e6; border-radius:10px; background:#f8fafb; }
.step-rail { display:flex; gap:8px; margin:12px 0; overflow-x:auto; }.step-pill { flex:0 0 auto; padding:6px 10px; border-radius:999px; background:#e7edf2; font-size:.82rem; font-weight:800; }.step-pill.active { color:#fff; background:var(--blue); }
.queue-view { display:flex; gap:5px; align-items:center; padding:10px; border:2px dashed #a9bac5; border-radius:10px; min-height:52px; }.queue-token { padding:5px 9px; border-radius:7px; background:#e3eef5; font-weight:850; }
.dp-grid { display:grid; grid-template-columns:repeat(var(--cols),minmax(36px,1fr)); gap:3px; overflow:auto; }.dp-cell { display:grid; place-items:center; min-width:36px; min-height:36px; border-radius:5px; background:#edf3f6; font-variant-numeric:tabular-nums; }.dp-cell.head { color:#fff; background:#315f7c; font-weight:850; }.dp-cell.path { color:#713c00; background:#ffe29a; font-weight:900; }
.unit-circle { fill:none; stroke:#8da0ad; stroke-width:2; }.root-point { fill:#e36d32; }.butterfly-point { fill:#dce5ea; }.butterfly-done { fill:#2d7d5f; }
.quiz-target { cursor:pointer; }.quiz-target:hover { filter:drop-shadow(0 0 5px rgba(47,111,159,.5)); }
.sr-only { position:absolute; inline-size:1px; block-size:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media (min-width:850px) { .so25-lab { grid-template-columns:repeat(2,minmax(0,1fr)); }.so25-lab>.lab-panel:only-child,.so25-lab>.lab-panel:first-child:nth-last-child(3) { grid-column:1/-1; } }
@media (prefers-reduced-motion:no-preference) { .so25-option,.lab-button,.sort-chip { transition:border-color .15s,background-color .15s,transform .15s; } }
@media (max-width:760px) { .so25-promo,.so25-session-dashboard,.so25-lab-heading { align-items:flex-start; flex-direction:column; } .so25-promo>div:last-child { width:100%; text-align:left; } .so25-option { grid-template-columns:24px 30px 1fr; padding:12px; }.so25-option>.so25-option-label:first-child { grid-column:1 }.so25-option:not(:has(input)) { grid-template-columns:30px 1fr; } .so25-unit-grid,.lab-two-col { grid-template-columns:1fr; }.so25-session-dashboard { margin:-10px 8px 16px; }.so25-dashboard-actions { width:100%; }.so25-dashboard-actions .lab-button { flex:1 1 auto; }.lab-panel { padding:14px; }.lab-svg { min-height:170px; }.so25-solve-toolbar>* { flex:1 1 140px; }.so25-beginner-deep-dive>summary { align-items:flex-start; flex-direction:column; }.so25-beginner-deep-dive>summary::after { margin-left:0; }.beginner-deep-dive-body { padding:14px; }.beginner-orientation,.beginner-worked-solution,.beginner-answer-template { padding:14px; }.beginner-solve-steps { padding-left:24px; } }
@media (max-width:760px) { .beginner-process-visual>div { grid-template-columns:1fr; gap:22px; }.beginner-process-visual article:not(:last-child)::after { content:"↓"; right:auto; left:50%; top:auto; bottom:-24px; transform:translateX(-50%); }.beginner-orientation,.beginner-worked-solution,.beginner-answer-template { padding:5px 0 5px 14px; }.standalone-question-brief,.standalone-next-action { padding:17px; }.formula-note { display:block; }.formula-note strong { display:block; margin-bottom:5px; } }

/* 2026-08 문서형 전면 개편: 카드 격자를 없애고 위에서 아래로 읽는 강의 문서로 통일한다. */
:root { --ink:#172631; --muted:#4f626f; --line:#c5d0d7; --paper:#f5f7f8; --panel:#ffffff; --blue:#1f5d82; --green:#246b51; --amber:#8a5b0a; --red:#9a3434; }
html { background:var(--paper); }
body { background:var(--paper); color:var(--ink); line-height:1.75; }
main { max-width:1180px; padding:46px clamp(22px,4vw,58px) 90px; gap:0; }
.detail-main,.so25-main { max-width:980px; padding:40px clamp(18px,4vw,42px) 88px; display:block; }
.detail-main>.back-link,.detail-main>nav { margin-bottom:28px; }
h1 { max-width:24ch; font-size:clamp(2.2rem,5vw,3.8rem); line-height:1.12; letter-spacing:-.035em; }
h2 { margin:0 0 14px; font-size:clamp(1.55rem,3vw,2rem); line-height:1.28; }
h3 { margin:0 0 9px; font-size:1.18rem; line-height:1.4; }
p,li,dd,td { line-height:1.78; }
.course-term { color:#526674; font-size:.86em; font-weight:650; }
.detail-page,.sorting-audit-page,.high-priority-concept-page { display:block; background:transparent; border:0; border-radius:0; padding:0; }
.detail-page>section,.detail-page>.lecture-section,.detail-page>.formula-section,.detail-page>.beginner-guide,.detail-page>.learning-blocks,.detail-page>.visual-explainer { margin:0; padding:38px 0; border:0; border-top:1px solid var(--line); border-radius:0; background:transparent; box-shadow:none; }
.detail-page>.lesson-head { padding:0 0 30px; }
.detail-page>.lesson-head h1 { margin-top:7px; }
.lesson-cockpit,.recurrence-hero,.asymptotic-hero,.loop-hero { display:block; margin:0; padding:30px 0 38px; border:0; border-top:2px solid #8da8b9; border-radius:0; background:transparent; box-shadow:none; }
.cockpit-steps { margin-top:25px; padding-left:1.4rem; counter-reset:cockpit-step; }
.cockpit-step { position:relative; display:block; padding:8px 0; border:0; border-radius:0; background:transparent; }
.cockpit-step strong { display:block; }
.lesson-columns,.today-action-grid,.today-review-grid,.today-prompt-grid,.band,.oral-grid,.learning-document,.formula-grid,.visual-support-grid,.beginner-step-grid,.beginner-confusion-grid,.worked-grid,.derivation-grid,.case-grid-rich,.sorting-summary-grid,.sorting-trap-grid,.sorting-recall-grid,.sm-summary-grid,.sm-formula-grid,.sm-trap-grid,.sm-recall-grid,.loop-proof-flow,.loop-template-grid,.loop-trap-table,.asymptotic-bound-grid,.asymptotic-trap-grid,.recurrence-visual-grid,.so25-unit-grid,.lab-two-col { display:block; }
.lesson-columns>*+*,.today-action-grid>*+*,.band>*+*,.oral-grid>*+*,.learning-document>*+*,.formula-document>*+*,.visual-support-list>li+li { margin-top:28px; }
.document-section,.today-surface,.personalization-panel,.practice-section,.cheat-sheet,.oral-lab,.mc-checklist,.concept-lessons,.topics-section,.study-plan,.commands { margin:0; padding:42px 0; border:0; border-top:1px solid var(--line); border-radius:0; background:transparent; box-shadow:none; }
.today-surface { padding-top:0; border-top:0; }
.today-head { display:block; }
.metrics { display:flex; flex-wrap:wrap; gap:10px 28px; margin-top:26px; padding:18px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.metrics div { min-width:120px; padding:0; border:0; border-radius:0; background:transparent; }
.metrics span { color:#143f58; }
.review-document-list,.personalized-document-list,.summary-document-list,.workflow-list,.so25-unit-list { margin:18px 0 0; padding-left:1.5rem; }
.review-entry,.personalized-entry,.summary-document-list>li,.workflow-list>li,.so25-unit-entry { padding:20px 0; }
.review-entry+li,.personalized-entry+li,.summary-document-list>li+li,.workflow-list>li+li,.so25-unit-entry+li { border-top:1px solid #d6dee3; }
.review-meta { display:flex; flex-wrap:wrap; gap:8px 18px; color:#315c75; font-size:.88rem; font-weight:850; }
.prompt-entry,.activity-section,.mc-entry,.lesson-entry,.topic-entry,.formula-entry,.document-subsection { margin:0; padding:25px 0; border:0; border-radius:0; background:transparent; box-shadow:none; }
.prompt-entry+.prompt-entry,.activity-section+.activity-section,.mc-entry+.mc-entry,.lesson-entry+.lesson-entry,.topic-entry+.topic-entry,.formula-entry+.formula-entry,.document-subsection+.document-subsection { border-top:1px solid #d5dde2; }
.prompt-entry textarea,.prompt-output textarea,.detail-prompt { background:#fff; color:#172631; border:1px solid #9fb0bb; border-radius:2px; }
.exam-path { display:flex; justify-content:space-between; align-items:flex-start; gap:28px; padding:38px 0; border-top:2px solid #7694a7; color:var(--ink); background:transparent; }
.exam-path>div:last-child { min-width:180px; text-align:right; }
.exam-path a,.so25-unit-entry>a { display:inline-block; margin-top:8px; padding:9px 13px; border-radius:3px; color:#fff; background:#174f6b; text-decoration:none; font-weight:850; }
.lesson-document,.mc-document,.topic-document { display:block; }
.lesson-entry,.mc-entry,.topic-entry { padding:31px 0; }
.lesson-entry .lesson-personal { justify-content:flex-start; margin:12px 0; }
.lesson-entry .lesson-personal span { border:0; border-radius:0; padding:0; background:transparent; color:#315c75; }
.lesson-preview,.personal-order,.mc-more,.so25-question-lesson-links { padding:12px 0; border:0; border-top:1px solid #cbd5dc; border-bottom:1px solid #cbd5dc; border-radius:0; background:transparent; }
.lesson-why { padding:8px 0 8px 15px; border-radius:0; background:transparent; }
.topic-entry dl { max-width:520px; }
.status { border-radius:2px; }
.steps { display:block; padding-left:1.4rem; counter-reset:study-step; }
.steps div { display:list-item; margin:9px 0; padding:0; border:0; border-radius:0; background:transparent; }

/* 보조 패널도 본문 흐름을 끊는 상자처럼 보이지 않도록 평탄화한다. */
:is(article,section,div)[class*="panel"] { border:0!important; border-radius:0!important; box-shadow:none!important; background:transparent!important; }
.lab-panel { margin:24px 0; }

/* 개념 본문에서 여러 칸으로 잘리던 내용을 연속 문단으로 바꾼다. */
.worked-grid>article,.derivation-grid>article,.case-grid-rich>article,.sorting-summary-grid>article,.sorting-trap-grid>article,.sorting-recall-grid>article,.sm-summary-grid>article,.sm-formula-grid>article,.sm-trap-grid>article,.sm-recall-grid>article,.loop-proof-flow>article,.loop-template-grid>article,.loop-trap-table>article,.asymptotic-bound-grid>article,.asymptotic-trap-grid>article,.visual-support-grid>article,.beginner-step-grid>article,.beginner-confusion-grid>article { display:block; margin:0; padding:23px 0; border:0; border-radius:0; background:transparent; box-shadow:none; }
.worked-grid>article+article,.derivation-grid>article+article,.case-grid-rich>article+article,.sorting-summary-grid>article+article,.sorting-trap-grid>article+article,.sorting-recall-grid>article+article,.sm-summary-grid>article+article,.sm-formula-grid>article+article,.sm-trap-grid>article+article,.sm-recall-grid>article+article,.loop-proof-flow>article+article,.loop-template-grid>article+article,.loop-trap-table>article+article,.asymptotic-bound-grid>article+article,.asymptotic-trap-grid>article+article { border-top:1px solid #d7dfe4; }
.formula-document,.learning-document,.visual-support-list,.beginner-step-list,.beginner-confusion-list { display:block; margin:18px 0 0; }
.visual-support-list,.beginner-confusion-list { padding-left:1.3rem; }
.formula-entry { max-width:78ch; }
.math-block { margin:15px 0; padding:16px 18px; border:0; border-left:5px solid #27688d; border-radius:0; background:#eaf3f8; color:#102f42; white-space:normal; }
.math-block>.math-tex,mjx-container[display="true"] { max-width:100%; overflow-x:auto; overflow-y:hidden; }
.mathjax-failed .math-tex { display:none!important; }
.mathjax-failed .math-fallback { display:inline-block!important; white-space:normal; color:#102f42; background:transparent; font-family:"Cambria Math","Segoe UI Symbol",ui-monospace,monospace; }
.mathjax-failed .math-block>.math-fallback { display:block!important; }
.math-chip,.related-link,.question-inline-math { border-radius:2px; box-shadow:none; }
.formula-line,.visual-note,.not-applicable,.formula-note,.beginner-analogy,.analogy,.beginner-traps,.so25-hint,.source-boundary { border-radius:0; }
.beginner-process-visual>div { display:block; border-left:3px solid #8da8b9; }
.beginner-process-visual article { margin:0; padding:9px 0 18px 18px; border:0; border-radius:0; background:transparent; }
.beginner-process-visual article::after { display:none; }
.beginner-self-check { padding:13px 0; border:0; border-top:1px solid #cbd5dc; border-radius:0; background:transparent; }

/* SO25 문항·강의 페이지도 하나의 흰 문서 면으로 읽힌다. */
.so25-hero { padding:0 0 34px; border:0; border-bottom:2px solid #8da8b9; border-radius:0; color:var(--ink); background:transparent; }
.so25-hero h1 { font-size:clamp(2.1rem,5vw,3.6rem); }
.so25-progress>* { padding:0; border:0; border-radius:0; color:#315c75; }
.so25-section,.so25-question,.standalone-question-brief,.standalone-next-action,.question-lesson-directory { display:block; margin:0; padding:35px 0; border:0; border-bottom:1px solid var(--line); border-radius:0; background:transparent; box-shadow:none; }
.so25-question { scroll-margin-top:18px; }
.so25-unit-list { list-style:decimal; }
.so25-unit-entry { background:transparent; border-radius:0; }
.unit-status { color:#246b51; font-size:.82rem; font-weight:900; letter-spacing:.05em; }
.so25-beginner-deep-dive { margin:22px 0; border:0; border-top:1px solid #9d7b35; border-bottom:1px solid #9d7b35; border-radius:0; background:transparent; overflow:visible; }
.so25-beginner-deep-dive>summary { padding:15px 0; color:#4f3c11; background:transparent; }
.so25-beginner-deep-dive>summary span { color:#79530c; }
.so25-beginner-deep-dive>summary::after { border:0; border-radius:0; }
.beginner-deep-dive-body { padding:28px 0; }
.so25-session-dashboard { margin:0; padding:18px 0; border:0; border-bottom:1px solid var(--line); border-radius:0; background:transparent; box-shadow:none; }
.so25-option { border-radius:3px; color:var(--ink); background:#fff; }
.so25-answer { padding:14px 0; border:0; border-top:1px solid #9fb2be; border-bottom:1px solid #9fb2be; border-radius:0; background:transparent; }
.so25-lab-shell { border:0; }
.so25-lab-heading { display:block; padding:22px 0; border-radius:0; color:var(--ink); background:transparent; border-top:2px solid #7593a6; border-bottom:1px solid var(--line); }
.so25-lab-heading h2,.so25-lab-heading p { color:var(--ink); }
.so25-lab-heading span,.so25-lab-heading output { color:#315c75; border-color:#8ca1ae; background:transparent; }
.so25-lab { display:block; padding:18px 0; background:transparent; }
.lab-panel { margin:0; padding:24px 0!important; overflow:visible; }
.lab-panel+.lab-panel { position:relative; padding-top:34px!important; }
.lab-panel+.lab-panel::before { content:""; position:absolute; inset:14px 0 auto; height:1px; background:var(--line); }
.lab-svg { border-radius:2px; }

/* 폭이 큰 옛 시각화와 수식 그리드가 문서 전체를 밀어내지 않도록 한다. */
.detail-main,.detail-page,.document-section,.lesson-entry,.formula-section,.formula-document,.concept-visual { min-width:0!important; max-width:100%!important; }
.detail-page section { display:block!important; min-width:0!important; max-width:100%!important; }
.detail-page section>* { min-width:0!important; max-width:100%!important; }
.lesson-columns,.lesson-cockpit,.formula-document,.math-strip,.detail-page [class*="formula-grid"],.detail-page [class*="summary-grid"],.detail-page [class*="trap-grid"],.detail-page [class*="recall-grid"] { display:block!important; min-width:0!important; max-width:100%!important; }
.math-strip { overflow:hidden; }
.math-strip>.math-chip,.formula-document>.formula-entry { display:block; width:100%; min-width:0; max-width:100%; margin:0; padding:20px 0; border:0; border-radius:0; background:transparent; box-shadow:none; }
.math-strip>.math-chip .question-inline-math { display:block; width:100%; min-width:0; max-width:100%; overflow-x:auto; }
.math-strip>.math-chip+.math-chip,.formula-document>.formula-entry+.formula-entry { border-top:1px solid #d5dde2; }
figure.concept-visual,.detail-page figure { min-width:0!important; max-width:100%!important; overflow-x:auto!important; }
.detail-page svg,.concept-visual svg,.detail-main img { min-width:0!important; max-width:100%!important; height:auto; }
.concept-visual article,.concept-visual aside { min-width:0!important; max-width:100%!important; border:0!important; border-radius:0!important; background:transparent!important; box-shadow:none!important; padding:18px 0!important; }
.concept-visual article+article { border-top:1px solid #d5dde2!important; }
.detail-page p,.detail-page li,.detail-page dd,.detail-page td,.detail-page th,.detail-page figcaption,.lesson-entry { overflow-wrap:anywhere; }
.standalone-deep-dive,.beginner-deep-dive-body,.beginner-option-list,.beginner-option-list>li,.notation-prose,.term-prose,.notation-prose>div,.term-prose>div { min-width:0!important; max-width:100%!important; }
.detail-page pre,.detail-main pre,.detail-prompt,.prompt-output { max-width:100%; overflow-x:auto; }
.panel-summary { border:0!important; border-radius:0!important; background:transparent!important; box-shadow:none!important; }
.prompt-box { margin:0!important; padding:35px 0!important; border:0!important; border-radius:0!important; background:transparent!important; box-shadow:none!important; }
.asymptotic-quick-summary,.asymptotic-quick-summary span { border:0!important; border-radius:0!important; background:transparent!important; box-shadow:none!important; }
.asymptotic-quick-summary span { display:block; padding:7px 0!important; }
.avl-rb-page>section { display:block!important; margin:0!important; padding:30px 0!important; border:0!important; border-bottom:1px solid var(--line)!important; border-radius:0!important; background:transparent!important; box-shadow:none!important; }
.avl-rb-flow { display:grid!important; grid-template-columns:minmax(0,1fr)!important; width:100%!important; min-width:0!important; max-width:100%!important; margin-left:0!important; padding-left:1.35rem!important; }
.avl-rb-flow>li { min-width:0!important; max-width:100%!important; overflow-wrap:anywhere; }

.sidebar { background:#20313d; color:#fff; }
.sidebar nav a { color:#f2f6f8; }
.status.ready { color:#205f47; }
.back-link,.lesson-link,.copy-inline,.oral-controls button,.lab-button,.so25-solve-toolbar button { border-radius:3px; }
.back-link .course-term,.lesson-link .course-term,.copy-inline .course-term,button .course-term,summary .course-term { color:inherit; }
table { color:var(--ink); background:#fff; }
th { color:var(--ink)!important; background:#eef5f8!important; }
thead th { color:#fff!important; background:#244f68!important; }
tbody th { color:var(--ink)!important; background:#eef5f8!important; }
th .course-term { color:inherit!important; }
td { background:#fff; }
pre { border-radius:2px; }
.document-header .course-term,.so25-hero .course-term,.sidebar .course-term,[class*="dark"] .course-term { color:inherit!important; }
h1,h2,h3,h4,h5,h6,th,td { min-width:0; max-width:100%; overflow-wrap:anywhere; }
.question-inline-math { display:inline-block; max-width:100%; overflow-x:auto; overflow-y:hidden; vertical-align:middle; }
mjx-container:not([display="true"]) { max-width:100%; overflow-x:auto; overflow-y:hidden; }
.detail-page table { max-width:100%; }
.detail-page table th,.detail-page table td { overflow-wrap:anywhere; word-break:normal; }

@media (max-width:980px) {
  body { display:block; }
  .sidebar { position:static; height:auto; }
  .sidebar nav { display:flex; flex-wrap:wrap; gap:4px 12px; }
  .sidebar nav a { padding:7px 5px; }
}
@media (max-width:700px) {
  main,.detail-main,.so25-main { padding:28px 17px 68px; }
  h1 { font-size:2.15rem; }
  .exam-path { display:block; }
  .exam-path>div:last-child { margin-top:16px; text-align:left; }
  .metrics { display:grid; grid-template-columns:1fr 1fr; }
  .so25-option { grid-template-columns:22px 28px minmax(0,1fr); gap:9px; padding:12px 8px; }
  .so25-option:not(:has(input)) { grid-template-columns:28px minmax(0,1fr); }
  .beginner-deep-dive-body { padding:22px 0; }
  .question-inline-math.long-math { display:block; width:100%; min-width:0; max-width:100%; margin:.42em 0; padding:.32em .45em; overflow-x:auto; }
  .question-inline-math.long-math>.math-tex,.question-inline-math.long-math mjx-container { display:block; width:max-content; min-width:0; max-width:none; }
  .detail-page [class*="-grid"],.detail-page [class*="-row"],.concept-visual [class*="-grid"],.concept-visual [class*="-row"] { display:block!important; grid-template-columns:minmax(0,1fr)!important; min-width:0!important; max-width:100%!important; }
  .detail-page [class*="-grid"]>*+*,.concept-visual [class*="-grid"]>*+* { margin-top:18px; }
}
@media print {
  body,.so25-hero,.exam-path,.so25-promo,.so25-lab-heading,.sidebar,pre { color:#172631!important; background:#fff!important; background-image:none!important; }
  .sidebar { display:none!important; }
  .so25-lab-heading output,.so25-lab-heading span,.so25-promo a { color:#172631!important; border-color:#6d7d87!important; background:#fff!important; }
  a,button { color:#173f5f!important; background:transparent!important; box-shadow:none!important; }
  thead th,tbody th { color:#172631!important; background:#fff!important; border-bottom:2px solid #172631!important; }
}
