/* Copyright (c) 2026 OriginMind. All rights reserved. */
:root{--ink:#183449;--muted:#526b7b;--blue:#19699c;--line:#d8e5eb;--pale:#edf5f8}*{box-sizing:border-box}body{margin:0;background:#f5f8fa;color:var(--ink);font:15px/1.7 system-ui,-apple-system,"Microsoft YaHei",sans-serif}button,select,textarea{font:inherit}button,a,select,summary{touch-action:manipulation}button{border:0;border-radius:8px;padding:10px 17px;background:var(--blue);color:#fff;cursor:pointer;font-weight:600}button:disabled{opacity:.45;cursor:wait}button.secondary{background:#edf3f6;color:#28556f;border:1px solid var(--line)}a{color:var(--blue)}header{height:72px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line);padding:0 30px}.brand{text-decoration:none;color:var(--ink);font-weight:800;letter-spacing:1px}.brand span{display:block;font-size:11px;font-weight:500;color:var(--muted);letter-spacing:0}.back{font-size:13px;text-decoration:none}.layout{max-width:1560px;margin:auto;display:grid;grid-template-columns:235px minmax(0,1fr)}.directory{padding:30px 22px}.directory h2{font-size:20px}.directory button{display:block;width:100%;text-align:left;color:var(--muted);background:transparent;font-size:13px;margin:5px 0;padding:12px}.directory button.active{background:#e2eff6;color:#14597f}.eyebrow{font-size:11px;letter-spacing:1.4px;color:var(--blue);font-weight:750}.muted{color:var(--muted)}.small{font-size:12px}main{padding:28px 34px;min-width:0}h1{font-size:30px;line-height:1.4;margin:10px 0}h2{font-size:21px;line-height:1.5;margin:8px 0 14px}h3{font-size:16px;margin:20px 0 10px}p{margin:10px 0 16px}.intro>p:not(.eyebrow){color:var(--muted)}.tabs{display:flex;gap:8px;overflow:auto;margin:23px 0 22px;padding-bottom:3px}.tabs button{white-space:nowrap;background:transparent;color:var(--muted);font-size:14px}.tabs button.active{background:#193c52;color:#fff}.card{padding:26px;background:#fff;border:1px solid var(--line);border-radius:13px;margin-bottom:18px}.unit-head{display:flex;justify-content:space-between;color:var(--muted);font-size:12px}.do{padding:13px 16px;background:var(--pale);border-radius:8px}.do p{margin:6px 0}details{margin:16px 0}summary{color:var(--blue);cursor:pointer;font-weight:600}details p{color:var(--muted)}label{display:block;font-weight:650;margin:18px 0 8px}label span{font-weight:400;font-size:12px;margin-left:10px;color:var(--muted)}textarea{width:100%;border:1px solid #b9cdd8;border-radius:8px;padding:14px;background:#fbfdfe;color:var(--ink);resize:vertical;min-height:110px}textarea:focus,button:focus-visible,a:focus-visible,select:focus-visible{outline:2px solid #3d91bd;outline-offset:2px}#code{min-height:345px;font:14px/1.65 ui-monospace,Consolas,monospace;tab-size:4;white-space:pre;overflow:auto}#csv{min-height:135px;font:14px/1.65 ui-monospace,Consolas,monospace}#question{min-height:80px}.row{display:flex;align-items:center;justify-content:space-between;gap:15px}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.results{display:grid;grid-template-columns:1fr 1fr;gap:16px}.results>div{min-width:0}pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#102c3e;color:#deedf4;border-radius:9px;padding:18px;font:12px/1.65 ui-monospace,Consolas,monospace;max-height:380px;overflow:auto;min-height:90px}.warning{padding:12px;background:#fff5df;color:#785317;border-radius:7px}.feedback{white-space:pre-wrap;overflow-wrap:anywhere;border-top:1px solid var(--line);padding-top:18px;line-height:1.9}.submission{border-top:1px solid var(--line);padding:18px 0}.submission .actions{margin-top:8px}.submission h3{margin:0}.submission .meta{font-size:12px;color:var(--muted)}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#153c53;color:white;padding:12px 20px;border-radius:8px;max-width:90vw;z-index:5}select{border:1px solid var(--line);border-radius:6px;padding:8px;background:white;max-width:100%}[hidden]{display:none!important}@media(max-width:900px){.layout{grid-template-columns:185px minmax(0,1fr)}.directory{padding:20px 12px}main{padding:23px 18px}.card{padding:20px}.results{grid-template-columns:1fr}}@media(max-width:620px){header{height:65px;padding:0 16px}.layout{display:block}.directory{padding:14px 16px 0}.directory>h2,.directory>.eyebrow,.directory>.muted{display:none}#courses{display:flex;overflow:auto;gap:6px}#courses button{width:auto;white-space:nowrap;padding:8px;font-size:12px}main{padding:14px 12px 32px}h1{font-size:25px}.card{padding:19px 16px}.tabs{gap:3px;margin:17px 0}.tabs button{padding:9px 11px;font-size:13px}.row{flex-wrap:wrap;gap:8px}textarea,#code,#csv{font-size:16px}#code{min-height:300px}.actions button{flex:1 1 auto}.results{gap:5px}.intro .eyebrow{margin-top:0}label span{display:block;margin:3px 0}.brand{font-size:13px}}

/* Course title, collapsible left directory, persistent four-section navigation. */
body{padding-bottom:calc(84px + env(safe-area-inset-bottom))}
.course-header{height:auto;min-height:94px;gap:20px;padding:18px 30px;align-items:flex-start}
.course-header>div{min-width:0}.course-header h1{margin:0;font-size:28px}.course-header .eyebrow{margin:6px 0 0}.course-header .back{flex-shrink:0;margin-top:8px}
.directory details{margin:0}.directory summary{padding:10px 0;font-size:15px}.directory{position:sticky;top:0;align-self:start;max-height:calc(100dvh - 88px);overflow:auto}
.layout:has(#course-directory:not([open])){grid-template-columns:125px minmax(0,1fr)}
.tabs{position:fixed;z-index:20;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:0;padding:10px max(12px,calc((100vw - 1000px)/2)) calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);overflow:visible;box-shadow:0 -4px 18px #18344908}
.tabs button{min-width:0;padding:12px 4px;font-size:14px;border-radius:9px}.tabs button.active{background:#193c52;color:#fff}
#toast{bottom:calc(90px + env(safe-area-inset-bottom));z-index:30}html{scroll-padding-bottom:100px}
@media(max-width:620px){.course-header{padding:16px;gap:12px;min-height:90px}.course-header h1{font-size:21px}.course-header .back{font-size:12px}.layout,.layout:has(#course-directory:not([open])){display:block}.directory{position:static;max-height:none;padding:8px 16px 0}.directory details>h2,.directory details>.eyebrow,.directory details>.muted{display:none}.directory summary{padding:8px 0}#courses{display:block;max-height:40dvh;overflow:auto}#courses button{width:100%;white-space:normal;text-align:left;padding:10px 12px}main{padding-top:8px}.tabs{gap:2px;padding-left:8px;padding-right:8px}.tabs button{font-size:13px;padding:12px 2px}}

.header-actions{display:flex;align-items:center;gap:14px;flex-shrink:0}.header-actions button{min-height:44px;font-size:13px}.layout.directory-collapsed{grid-template-columns:minmax(0,1fr)}.layout.directory-collapsed main{max-width:1200px;width:100%;margin:auto}.directory>div>h2{margin-top:8px}@media(max-width:620px){.course-header{flex-wrap:wrap}.header-actions{width:100%;justify-content:space-between}.header-actions .back{margin:0}.directory>div>h2,.directory>div>.eyebrow,.directory>div>.muted{display:none}.layout.directory-collapsed{display:block}}

/* Chat-style course drawer */
.course-header{align-items:center;flex-wrap:nowrap;padding:14px 20px;gap:16px}.header-title{flex:1;min-width:0}.menu-toggle{flex-shrink:0;background:transparent;color:var(--ink);font-size:24px;width:44px;height:44px;padding:0}.header-actions{width:auto}.course-header h1{font-size:24px}.directory-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.directory-heading button{background:transparent;color:var(--ink);font-size:26px;padding:0;width:44px;height:44px}.directory{background:#eef3f5;border-right:1px solid var(--line)}#directory-backdrop{position:fixed;inset:0;z-index:40;background:#102c3e66;border-radius:0;padding:0}.directory-collapsed main{max-width:1100px!important}
@media(max-width:1100px){.layout{display:block}.directory{position:fixed;z-index:50;left:0;top:0;bottom:0;width:min(300px,85vw);max-height:100dvh;padding:20px;overflow-y:auto;box-shadow:8px 0 32px #18344922}.drawer-open{overflow:hidden}.directory #courses{display:block;max-height:none}.directory #courses button{display:block;width:100%;text-align:left;white-space:normal;padding:12px}.directory>div>h2,.directory>div>.eyebrow,.directory>div>.muted{display:block}.course-header h1{font-size:22px}}
@media(max-width:620px){.course-header{padding:12px;gap:8px}.course-header h1{font-size:18px}.course-header .eyebrow{font-size:10px}.header-actions .back{font-size:11px}.directory>div>.muted{font-size:12px}}

.track{margin:12px 0;border-top:1px solid var(--line);padding-top:12px}.track summary{font-size:14px;line-height:1.6;white-space:normal}.track ul{padding-left:20px;color:var(--muted);font-size:13px}.directory{padding-bottom:100px}.directory-heading{margin-bottom:8px}.conversation{display:flex;flex-direction:column;gap:14px;max-height:45vh;overflow:auto;padding:12px 0}.chat-message{white-space:pre-wrap;overflow-wrap:anywhere;padding:14px 18px;border-radius:14px;max-width:92%;background:#edf3f6;align-self:flex-start}.chat-message.student{background:#193c52;color:white;align-self:flex-end}.answer-box{border-top:1px solid var(--line);padding-top:16px}.ta-chat{max-width:1000px;margin:auto}.directory .track #courses{max-height:none}.directory .track[open]>summary{margin-bottom:10px}

.stage{padding-left:10px;margin:12px 0}.stage summary{font-size:13px}.stage p,.track>p{font-size:12px;line-height:1.7}.directory{width:auto}@media(max-width:1100px){.directory{width:min(340px,90vw)}}

.profile-entry{background:transparent;color:var(--ink);padding:8px 12px;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#login-dialog{border:1px solid var(--line);border-radius:16px;padding:24px;max-width:min(440px,90vw);color:var(--ink)}#login-dialog::backdrop{background:#102c3e66}.login-link{display:inline-block;background:var(--blue);color:white;border-radius:8px;padding:10px 16px;text-decoration:none}.gated-track summary::after{content:' · 登录学习';font-size:10px;font-weight:400;color:var(--muted)}

#learning-login input,#review-profile input:not([type=checkbox]),#review-profile select{display:block;width:100%;max-width:560px;border:1px solid #b9cdd8;border-radius:8px;padding:12px;font:inherit;color:var(--ink);background:#fbfdfe}#learning-login input:focus,#review-profile input:focus{outline:2px solid #3d91bd;outline-offset:2px}#review-profile .learning-check{display:flex;gap:10px;align-items:center}#review-profile .learning-check input{width:20px;height:20px}#review-profile details{max-height:340px;overflow:auto;padding:12px;border:1px solid var(--line);border-radius:8px}

#git-workspace{padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--pale)}#git-content{min-height:180px;font-family:ui-monospace,monospace}#git-message{width:100%;padding:12px;border:1px solid var(--line);border-radius:8px;font:inherit}#code[readonly],#csv[readonly]{background:#eef3f5}#lab-contract,#ta-context{overflow-wrap:anywhere}#code-label{font-weight:650;font-size:inherit;color:var(--ink);margin:0}#lab input:focus-visible{outline:2px solid #3d91bd;outline-offset:2px}.structured-field{min-height:76px}#structured-workspace select{width:100%;min-height:44px}

/* Chinese reading rhythm and restrained course layout. */
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",sans-serif;font-size:16px;line-height:1.85}
.layout{max-width:1240px}.layout main,.layout.directory-collapsed main{width:100%;max-width:900px!important;margin:0 auto;padding:28px 30px}
.course-header h1{font-size:24px;line-height:1.45;font-weight:700;letter-spacing:0}.eyebrow{letter-spacing:.04em;font-size:12px}.course-header .eyebrow{font-weight:500;color:#526b7b}
.card{padding:26px 28px;margin-bottom:22px;border-radius:12px}.card h2{font-size:22px;line-height:1.55;margin:8px 0 16px}.card p,.card li,.intro p{line-break:strict;word-break:normal;overflow-wrap:break-word}.card p{margin:12px 0 18px}.intro>p:not(.eyebrow){color:#526b7b}.unit-head{font-size:13px}.do{padding:14px 18px;border-left:3px solid #b6d3e2;border-radius:6px}.do p{margin:6px 0}.card summary{font-weight:600;line-height:1.75;padding:4px 0}.card ul{padding-left:1.4em}.card li+li{margin-top:8px}
.directory button{font-size:14px;line-height:1.65}.directory .small,.stage p,.track>p{font-size:13px;color:#526b7b}.directory .track summary{font-size:15px}.directory .stage summary{font-size:14px}.gated-track summary::after{content:' · 敬请期待'}
button,select{min-height:44px}.tabs button{font-size:14px}label{font-size:15px}.small{font-size:13px}.row>div{min-width:0}.results pre{font-size:13px;line-height:1.75}#git-content{white-space:pre;overflow:auto}#question,#reflection,.structured-field{line-height:1.85}#lab-description,#runtime-note,#ta-context{color:#526b7b}
@media(max-width:620px){body{font-size:16px;line-height:1.85}.layout main,.layout.directory-collapsed main{padding:18px 12px 28px}.card{padding:20px 17px;margin-bottom:16px}.card h2{font-size:20px}.course-header h1{font-size:18px}.course-header .eyebrow{font-size:11px}.do{padding:12px 13px}.tabs button{font-size:13px;min-height:44px}.header-actions .profile-entry{max-width:72px;padding:8px}.course-header{gap:8px}.card .actions{gap:8px}.unit-head{font-size:12px}.card summary{font-size:15px}}

.unit-head{justify-content:flex-end}.course-note{font-size:13px;color:#526b7b;margin:24px 0 8px;line-height:1.75}.project-card{border-top:3px solid #19699c}

/* Show a concrete patrol task before the project and lesson text. */
.mission-card{padding:26px 28px;background:linear-gradient(180deg,#fff 0%,#f8fcfe 100%)}.mission-kicker{font-size:13px;font-weight:650;color:#19699c;margin:0 0 6px!important}.mission-card h2{font-size:25px;line-height:1.5}.patrol-figure{margin:22px 0 20px}.patrol-legend{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:14px;color:#526b7b;margin-bottom:10px}.patrol-legend b{display:inline-flex;justify-content:center;align-items:center;width:25px;height:25px;border-radius:7px;background:#e2eff6;color:#19699c;margin-right:5px}.patrol-map{display:block;width:100%;height:auto;border:1px solid #d8e5eb;border-radius:13px;background:#f4f9fb}.patrol-controls{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;margin:14px 0}.patrol-controls label{display:flex;flex-direction:column;gap:5px;margin:0;font-size:13px;font-weight:500}.patrol-controls select{font-size:14px;min-height:44px}.patrol-controls button{font-size:14px;padding:9px 14px}#patrol-status{min-height:3.6em;padding:12px 14px;background:#edf5f8;border-radius:8px;font-size:15px;margin:12px 0!important}.mission-card[data-phase="blocked"] #patrol-status{background:#fff3df;color:#785317}.mission-card[data-phase="complete"] #patrol-status{background:#e8f4ed;color:#256343}.patrol-steps{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:0!important;margin:12px 0 16px;counter-reset:patrol}.patrol-steps li{display:flex;gap:7px;align-items:center;border:1px solid #d8e5eb;border-radius:8px;padding:8px;font-size:13px;line-height:1.6;margin:0!important;background:white}.patrol-steps li::before{counter-increment:patrol;content:counter(patrol);display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:21px;height:21px;border-radius:50%;background:#edf3f6;color:#526b7b}.patrol-steps .current{border-color:#19699c;background:#eaf4fa}.patrol-steps .done::before{content:'✓';background:#e2f3e9;color:#256343}.patrol-figure figcaption{font-size:13px;line-height:1.75;color:#526b7b}.mission-focus{border-top:1px solid #d8e5eb;padding-top:16px}.mission-focus>strong{font-size:15px}.mission-focus ol{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:10px 0 0}.mission-focus li{font-size:14px;background:#edf5f8;border-radius:8px;padding:8px 12px;margin:0!important}.mission-focus li+li::before{content:'→';color:#19699c;margin-right:10px}#git-message-help{line-height:1.9;margin:10px 0 16px}
@media(max-width:620px){.mission-card{padding:20px 17px}.mission-card h2{font-size:21px}.patrol-figure{margin-top:18px}.patrol-legend{font-size:13px}.patrol-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.patrol-controls{gap:8px}.patrol-controls button{padding:9px 12px;font-size:13px}.mission-focus ol{display:block}.mission-focus li{margin-top:8px!important}.mission-focus li+li::before{content:none}.patrol-map{border-radius:10px}}
@media(prefers-reduced-motion:reduce){.mission-card *{scroll-behavior:auto}}

.mission-card h2{text-wrap:balance}

.instructor-panel{overflow-wrap:anywhere}.instructor-panel .actions{flex-wrap:wrap}.instructor-panel .actions input,.instructor-panel .actions select{min-width:0;max-width:100%;flex:1 1 180px}.instructor-panel pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:32rem;overflow:auto}.instructor-panel .submission button{margin:4px}.instructor-panel label{display:block}

/* Use the Foundation cards, typography, project panel and four learning tabs in every track. */
.gated-track>summary::after{content:' · 登录学习';font-size:11px}body[data-learning-authenticated="true"] .gated-track>summary::after{content:none}
.learning-step-status{min-height:3.6em;padding:12px 14px;background:#edf5f8;border-radius:8px;font-size:15px;margin:12px 0!important}.stage-prerequisite{margin-top:18px!important}#advanced-heading:focus{outline:none}#advanced-course textarea{min-height:150px}#advanced-course #framework-plan,#advanced-course #framework-evidence{min-height:220px}#advanced-course button:disabled{cursor:not-allowed;opacity:.55}
.learning-table-wrap{max-width:100%;overflow-x:auto}.learning-table-wrap table{width:100%;border-collapse:collapse;font-size:14px;line-height:1.7}.learning-table-wrap th,.learning-table-wrap td{padding:12px 10px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}.learning-table-wrap th{background:var(--pale)}.learning-table-wrap td:first-child{min-width:92px;font-weight:600}
@media(max-width:620px){.learning-table-wrap table{font-size:13px}.learning-table-wrap th,.learning-table-wrap td{padding:10px 7px}}

/* Screen reading values are course design choices, not mandatory standard values. */
body{font-size:17px;line-height:1.75;text-align:left}
.card p,.card li{line-height:1.75;text-indent:0;overflow-wrap:anywhere}
.card p{margin:.75em 0 1em}.card p:last-child{margin-bottom:0}
.card h2{font-size:1.3rem;line-height:1.5}.card h3.unit-title{font-size:1.2rem;line-height:1.5;margin:8px 0 16px}
.card h3.demo-question{font-size:1.15rem;line-height:1.55;margin:14px 0}



.learning-goals{border-top:3px solid var(--blue)}.learning-goals li+li{margin-top:6px}
.section-heading{padding:8px 3px 4px;margin:18px 0 12px}.section-heading h2{font-size:1.3rem;margin:0 0 8px}.section-heading p{margin:0 0 10px;font-size:15px}
[data-learning-anchor]{scroll-margin-top:18px}[data-learning-anchor]:focus{outline:2px solid #3d91bd;outline-offset:4px}
.learning-formula{margin:20px 0;padding:14px;background:#f4f8fa;border-radius:8px;overflow-x:auto}
.learning-formula math{font-size:1.2em}.learning-formula p{margin-bottom:0}
.patrol-figure figcaption{margin-top:12px;font-size:14px;line-height:1.75}.patrol-figure figcaption strong{font-weight:600}
.patrol-map{max-width:100%}.card img,.card video{max-width:100%;height:auto}
.learning-table-wrap{max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain}
.learning-table-wrap table{min-width:560px;font-size:15px;line-height:1.75}
.learning-table-wrap th,.learning-table-wrap td{padding:12px;text-indent:0}
main pre{white-space:pre;overflow-wrap:normal;word-break:normal;overflow:auto;max-width:100%;font-size:14px;line-height:1.7;tab-size:4}
#code,#csv,#git-content{white-space:pre;overflow-wrap:normal;overflow:auto;tab-size:4;font-size:15px;line-height:1.7}
#question,#reflection,.structured-field{font-size:1rem;line-height:1.75}
.copy-block{position:relative;min-width:0;max-width:100%}.copy-block pre{margin-top:8px}
.copy-control{display:block;margin:8px 0 12px auto;padding:7px 12px;font-size:13px;min-height:36px}
.copy-block>.copy-control{margin-bottom:4px}.improvement-guide{border-top:1px solid var(--line);padding-top:14px;margin-top:22px}
.step-kicker{font-size:14px;font-weight:650;color:var(--blue)}.submission-guide{margin:16px 0;padding:0 0 12px;border-bottom:1px solid var(--line)}
.card,main,.panel{min-width:0}.course-header h1{overflow-wrap:anywhere}.card .do p{margin:6px 0}
@media(max-width:620px){body{font-size:16px;line-height:1.75}.card{padding:20px 17px}.card h2{font-size:1.2rem}.card h3.unit-title{font-size:1.1rem}.section-heading h2{font-size:1.2rem}.card p{margin:.75em 0 1em}#code,#csv,#git-content{font-size:16px}.learning-table-wrap table{font-size:14px}.patrol-figure figcaption{font-size:14px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Account menu and bottom sheet share the learning site's palette. */
.profile-entry{display:flex;align-items:center;gap:8px;max-width:220px;border:1px solid transparent;border-radius:24px}
.profile-entry:hover,.profile-entry[aria-expanded="true"]{background:#e9f0f4;border-color:var(--line)}
#profile-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-avatar{display:inline-flex;align-items:center;justify-content:center;flex:none;width:32px;height:32px;border-radius:50%;background:#dcecf3;color:#225875;font-size:14px;font-weight:650}
.account-menu{position:fixed;z-index:80;right:20px;top:66px;width:288px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 90px);overflow:auto;padding:8px;background:#fff;border:1px solid #dfe6eb;border-radius:18px;box-shadow:0 12px 42px #18344924;animation:account-menu-in .16s ease-out}
.account-menu-identity{display:flex;align-items:center;gap:12px;padding:12px 10px 16px;margin-bottom:5px;border-bottom:1px solid var(--line)}
.account-menu-identity>div{min-width:0}.account-menu-identity strong{font-size:16px}.account-menu-identity small{display:block;color:var(--muted);font-size:12px;overflow-wrap:anywhere}
.account-menu button{display:flex;align-items:center;gap:12px;width:100%;min-height:46px;background:transparent;color:var(--ink);padding:10px 12px;text-align:left;font-size:15px;font-weight:500;border-radius:10px}
.account-menu button:hover,.account-menu button:focus-visible{background:#edf4f7}
.account-menu button svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.account-menu-divider{height:1px;background:var(--line);margin:6px 10px}
.account-dialog-open{overflow:hidden}
.account-dialog{width:min(580px,calc(100% - 32px));max-width:580px;max-height:calc(100dvh - 40px);margin:auto auto 20px;border:1px solid #e0e8ed;border-radius:26px;padding:10px 28px 22px;background:#fff;color:var(--ink);box-shadow:0 24px 80px #18344930;overflow:auto;overscroll-behavior:contain}
.account-dialog[open]{animation:account-sheet-in .22s ease-out}
.account-dialog::backdrop{background:#16263266;backdrop-filter:blur(2px)}
.sheet-handle{width:38px;height:5px;border-radius:10px;margin:0 auto 8px;background:#ccd6db}
.account-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.account-dialog-heading h2{margin:4px 0;font-size:24px;font-weight:650;letter-spacing:.03em}
#account-close{display:inline-flex;align-items:center;justify-content:center;flex:none;width:42px;height:42px;border-radius:50%;padding:0;background:transparent;color:var(--muted)}
#account-close:hover{background:#eef3f5}
.account-body>.card{border:0;border-radius:0;padding:0;margin:0;background:transparent}
.account-body>.card>h2:first-child{display:none}
.account-body p{font-size:15px;line-height:1.7}.account-body h3{font-size:16px}
.account-body input:not([type="checkbox"]),.account-body textarea,.account-body select{width:100%;max-width:100%;font:inherit;font-size:16px;border:1px solid #cddce5;border-radius:12px;min-height:46px;padding:10px 13px;background:#fbfdfe;color:var(--ink)}
.account-body input:focus-visible{outline:2px solid #3d91bd;outline-offset:2px}
.account-body label{font-size:14px;margin:14px 0 7px}.account-body textarea{min-height:100px}
.account-email{overflow-wrap:anywhere;font-size:14px!important;color:var(--muted)}
.login-code-row{display:flex;gap:8px;align-items:stretch}.login-code-row input{min-width:0}.login-code-row button{flex-shrink:0;white-space:nowrap;font-size:13px;border-radius:12px}
#learning-login .actions>button{width:100%;border-radius:12px;min-height:46px}
#learning-login .learning-check{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:400}.learning-check input{width:18px;height:18px;accent-color:var(--blue)}
#learning-login-status:empty,#account-status:empty{display:none}
#account-status{margin:16px 0 0;font-size:14px;padding:10px 12px;border-radius:10px;background:#edf5f8;color:#225875}
.remembered-account-card{display:flex;align-items:center;gap:12px;width:100%;border:1px solid var(--line);background:#fff;color:var(--ink);padding:14px;border-radius:16px;text-align:left}
.remembered-account-card>span:last-child{min-width:0}.remembered-account-card small{display:block;font-size:12px;font-weight:400;color:var(--muted);overflow-wrap:anywhere}
.account-text-button{display:block;margin:6px 0 0 auto;padding:4px 0;background:transparent;color:var(--blue);font-size:13px}
.account-body .preference-row{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0;padding:18px 0;border-bottom:1px solid var(--line);cursor:pointer}
.preference-row>span{margin:0;font-weight:400;font-size:15px;color:var(--ink)}.preference-row strong{display:block;font-weight:600}.preference-row small{display:block;margin-top:4px;font-size:13px;line-height:1.6;color:var(--muted)}
.preference-row input{appearance:none;flex:none;width:42px;height:25px;border:1px solid #b6c7d0;border-radius:20px;margin:0;background:#dbe4e9;position:relative;cursor:pointer}
.preference-row input::after{content:'';position:absolute;width:19px;height:19px;border-radius:50%;background:#fff;left:2px;top:2px;box-shadow:0 1px 3px #18344933;transition:transform .16s}
.preference-row input:checked{background:var(--blue);border-color:var(--blue)}.preference-row input:checked::after{transform:translateX(17px)}
.account-body>.secondary{margin-top:20px}.reading-large main .card p,.reading-large main .card li,.reading-large main .section-heading p{font-size:19px}
.reading-spacious main .card p,.reading-spacious main .card li{line-height:2.05}
@keyframes account-menu-in{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
@keyframes account-sheet-in{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}
@keyframes directory-slide-in{from{transform:translateX(-100%)}to{transform:translateX(0)}}
@media(max-width:1100px){#course-directory:not([hidden]){animation:directory-slide-in .2s ease-out;overscroll-behavior:contain}}
@media(max-width:620px){.header-actions .profile-entry{max-width:135px;padding:5px 7px;gap:5px}.profile-entry .account-avatar{width:28px;height:28px;font-size:12px}.account-menu{right:12px;top:60px}.account-dialog{width:100%;max-width:100%;margin:auto 0 0;max-height:92dvh;border-radius:24px 24px 0 0;padding:10px 20px max(20px,env(safe-area-inset-bottom))}.account-dialog-heading h2{font-size:22px}.account-body .actions button{flex:1}.login-code-row button{padding:8px 10px;font-size:12px}}
.reduce-motion .account-dialog,.reduce-motion .account-menu,.reduce-motion #course-directory,.reduce-motion .preference-row input::after{animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){.account-dialog,.account-menu,#course-directory,.preference-row input::after{animation:none!important;transition:none!important}}

/* Use the bottom navigation once; compact the first-screen header and theory introduction. */
.course-header{min-height:72px;padding:10px 20px;gap:12px}.course-header h1{font-size:22px}.course-header .eyebrow{margin-top:3px}
.layout main,.layout.directory-collapsed main{padding-top:18px}
.theory-section>.section-heading{margin:4px 0 12px;padding-top:0}.theory-section>.section-heading p{margin:0;font-size:14px}
.learning-goals .theory-subtitle{font-size:16px;line-height:1.6;margin:10px 0 6px}.learning-goals>h2{margin-top:0;margin-bottom:10px}
.learning-goals>p{margin:8px 0 12px}.learning-goals>ul{margin:8px 0}.theory-section .mission-card>.theory-subtitle{font-size:19px;margin:0 0 12px}
.card .demo-question{font-size:1.15rem;line-height:1.55;margin:14px 0;font-weight:650}
@media(max-width:620px){.course-header{min-height:64px;padding:8px 12px;gap:8px}.course-header h1{font-size:18px;line-height:1.4}.course-header .eyebrow{margin-top:2px}.layout main,.layout.directory-collapsed main{padding-top:12px}.learning-goals{padding-top:17px;padding-bottom:17px}}
/* Illustrated practice guides and readable Chinese feedback. */
.lab-guide{margin:22px 0 28px}.lab-guide-kicker{color:var(--blue);font-weight:650;font-size:14px;margin-bottom:6px!important}.lab-guide>h3{font-size:1.25rem;line-height:1.5;margin:4px 0 12px;text-wrap:balance}.lab-guide-figure{margin:22px 0;background:#f5f9fb;border:1px solid var(--line);border-radius:12px;padding:16px}.lab-guide-svg{display:block;width:100%;max-width:600px;height:auto;margin:0 auto}.lab-guide-figure figcaption{font-size:14px;line-height:1.75;color:var(--muted);margin:12px 0 0}.lab-worked-example{padding:16px 18px;border-left:3px solid #24887c;background:#edf7f3;border-radius:6px}.lab-worked-example p{margin:8px 0}.lab-worked-example details{margin:8px 0 0}.lab-worked-example pre{min-height:0;max-height:220px}.lab-guide h4{font-size:1rem;margin:20px 0 8px}.lab-guide-steps{padding-left:1.5em;margin:8px 0 20px}.lab-guide-steps li::marker{color:var(--blue);font-weight:700}.lab-guide-tips{display:grid;grid-template-columns:1fr 1fr;gap:16px}.lab-guide-tips>div{min-width:0;padding:16px;border:1px solid var(--line);border-radius:10px;background:#fbfdfe}.lab-guide-tips h4{margin:0 0 8px;color:var(--blue)}.lab-guide-tips p{margin:0;font-size:15px}.lab-contract{border-block:1px solid var(--line);padding:12px 0;margin:24px 0}.lab-contract p{font-size:15px}.lab-editors{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:18px}.lab-editors>div{min-width:0}#advanced-course #advanced-code,#advanced-course #advanced-data{height:340px;min-height:240px;font:15px/1.75 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;white-space:pre;overflow:auto;overflow-wrap:normal;word-break:normal;tab-size:4}#advanced-course #advanced-question{min-height:100px}#advanced-course #advanced-reflection{min-height:220px}.advanced-workspace>[role=status]:empty{display:none}.advanced-workspace>[role=status]:not(:empty){background:var(--pale);padding:12px 16px;border-radius:8px}.lab-results pre{min-height:120px;max-height:320px}.lab-drafts{padding-top:12px;border-top:1px solid var(--line)}.lab-drafts .actions button{font-size:14px}.learning-rich-text,.chat-message.learning-rich-text,.feedback.learning-rich-text{white-space:normal}.learning-rich-text p,.learning-rich-text li{white-space:pre-line;overflow-wrap:anywhere}.learning-rich-text>p:first-child{margin-top:0}.learning-rich-text>p:last-child{margin-bottom:0}.learning-rich-text h4{font-size:1.05em;line-height:1.65;margin:1.25em 0 .5em;color:var(--ink)}.learning-rich-text h4:first-child{margin-top:0}.learning-rich-text ul,.learning-rich-text ol{padding-left:1.5em;margin:12px 0}.learning-rich-text code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.92em;background:#e9f0f4;padding:.12em .3em;border-radius:4px;overflow-wrap:anywhere}.learning-rich-text pre{white-space:pre;min-height:0;margin:16px 0}.learning-rich-text pre code{background:none;color:inherit;padding:0;font-size:inherit}.learning-rich-text blockquote{margin:16px 0;padding:8px 16px;border-left:3px solid #abc6d5;background:#f4f8fa}.learning-rich-text hr{border:0;border-top:1px solid var(--line);margin:22px 0}.learning-rich-text .learning-table-wrap{margin:16px 0}.learning-rich-text .learning-table-wrap table{min-width:420px}.chat-message.learning-rich-text{max-width:100%;min-width:0}
@media(max-width:700px){.lab-editors,.lab-guide-tips{grid-template-columns:1fr}.lab-editors{gap:0}#advanced-course #advanced-code{height:320px}#advanced-course #advanced-data{height:220px;min-height:180px}.lab-guide-figure{padding:10px;margin:18px 0}.lab-guide-figure figcaption{font-size:13px}.lab-guide>h3{font-size:1.15rem}.lab-guide-tips{gap:10px}.lab-guide-tips>div{padding:14px}.lab-worked-example{padding:14px}.lab-results{grid-template-columns:1fr}.lab-guide-svg text{font-weight:500}}
@media(max-width:620px){#advanced-course #advanced-code,#advanced-course #advanced-data{font-size:16px}.advanced-workspace .learning-rich-text{font-size:1rem}.lab-guide-tips p,.lab-contract p{font-size:16px}}

/* Suppress generated arrows inside inactive lesson content. */
#lesson[hidden] li::before{content:none!important;display:none!important}

/* Finger-following directory and project emphasis. */
.directory button.directory-project strong{font-weight:750;color:var(--ink)}
@media(max-width:1100px){
 #course-directory{transform:translateX(-100%);transition:transform 200ms ease;will-change:transform;touch-action:pan-y}
 #course-directory[data-open="true"]{transform:translateX(0)}
 #directory-backdrop{opacity:0;transition:opacity 200ms ease}
 #directory-backdrop[data-open="true"]{opacity:1}
 .directory-dragging #course-directory,.directory-dragging #directory-backdrop{transition:none}
}
@media(prefers-reduced-motion:reduce){#course-directory,#directory-backdrop{transition:none}}
body.reduce-motion #course-directory,body.reduce-motion #directory-backdrop{transition:none}

.rover-study .rover-scope{background:#edf5f8;border-left:3px solid #19699c;padding:12px;font-size:13px}
.rover-settings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.rover-settings label{margin:10px 0;font-size:13px}
.rover-settings select{display:block;width:100%;padding:9px;border:1px solid #b9cdd8;border-radius:8px;background:#fff;color:var(--ink)}
.rover-study .rover-overview{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:400}
.rover-overview input{width:18px;height:18px;flex:none}
.rover-map{display:block;width:100%;max-width:864px;height:auto;border-radius:10px}
.rover-status{font-weight:650;min-height:2em}
.rover-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.rover-metrics>div{background:#edf3f6;border-radius:8px;padding:10px;min-width:0}
.rover-metrics span{display:block;font-size:12px;color:var(--muted)}
.rover-metrics strong{font-size:17px}
.rover-log{max-height:280px;overflow:auto;padding-left:24px}
.rover-study select:focus-visible,.rover-overview input:focus-visible{outline:2px solid #3d91bd;outline-offset:2px}
@media(max-width:620px){.rover-settings{grid-template-columns:1fr}.rover-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.rover-study .actions button{flex:1;min-width:110px}}

.course-scaffold{margin-block:20px}.course-scaffold video{display:block;width:100%;max-width:900px;background:#15364b;border-radius:12px}.course-scaffold details{padding:12px 0}.course-scaffold summary{font-weight:700;cursor:pointer}.course-scaffold label{display:block;margin:14px 0}.course-scaffold input,.course-scaffold select,.course-scaffold textarea{display:block;width:100%;max-width:100%;box-sizing:border-box;margin-top:8px;padding:10px;font:inherit}.course-scaffold fieldset{min-width:0;border:1px solid #cbdce6;border-radius:10px;margin:16px 0;padding:14px}.course-scaffold table{width:100%;border-collapse:collapse;table-layout:fixed}.course-scaffold td{border:1px solid #d2e0e8;padding:10px;overflow-wrap:anywhere}.course-scaffold td:first-child{width:22%;font-weight:700}.course-scaffold button{white-space:normal}.course-scaffold .actions{flex-wrap:wrap}

/* Reuse the course account control for the unified identity. */
.course-header .header-actions #profile-entry.unified-account-entry{width:auto;height:auto;min-height:44px;max-width:180px;padding:5px 8px;flex:0 1 auto;gap:6px;border-radius:24px}
.course-header .header-actions #profile-entry.unified-account-entry #profile-name{display:block;min-width:0}
.course-header .header-actions #profile-entry.unified-account-entry #profile-chevron{display:block;flex-shrink:0}
.header-actions .unified-account-entry{max-width:180px;min-width:44px;flex-shrink:1}
.unified-account-entry #profile-name{min-width:0}
@media(max-width:620px){
  .course-header:has(#profile-entry.unified-account-entry){grid-template-columns:28px minmax(0,1fr) auto auto}
  .course-header:has(#profile-entry.unified-account-entry):has(.learning-global-nav[hidden]){grid-template-columns:28px minmax(0,1fr) auto}
  .course-header .header-actions #profile-entry.unified-account-entry{max-width:100px;padding:5px 7px;gap:4px}
  .course-header .header-actions #profile-entry.unified-account-entry #profile-avatar{display:none}
  .course-header .header-actions{gap:8px;max-width:48%;min-width:0}
  .header-actions .unified-account-entry{max-width:100px;padding:5px 7px;gap:4px}
  .unified-account-entry #profile-avatar{display:none}
  .unified-account-entry #profile-chevron{flex-shrink:0}
}

.directory .directory-group-title{font-size:14px;line-height:1.5;margin:18px 0 6px;color:var(--muted,#596c63)}
.directory .directory-group-note{font-size:12px;line-height:1.6;margin:0 0 8px;color:var(--muted,#596c63);overflow-wrap:anywhere}

/* Keep bilingual stage names readable in the course directory. */
#course-directory .track > summary { word-break: keep-all; overflow-wrap: normal; }

/* OmindOS course identity; keep the active lesson heading and controls intact. */
.course-brand{margin:0 0 22px;padding:2px 0 20px;border-bottom:1px solid #dce3e7}
.course-brand .course-brand-title{margin:0;color:#183445;font-size:clamp(24px,3vw,32px);font-weight:700;line-height:1.35;letter-spacing:0;overflow-wrap:normal;word-break:keep-all}
.course-brand .course-brand-tagline{margin:8px 0 0;color:#526b7b;font-size:15px;font-weight:400;line-height:1.75;overflow-wrap:break-word}
@media(max-width:600px){.course-brand{margin-bottom:16px;padding-bottom:16px}.course-brand .course-brand-title{font-size:24px}.course-brand .course-brand-tagline{font-size:14px;line-height:1.7}}

/* Course overview uses the existing ARTS shell, account menu and course routes. */
#course-home{--omh-ground:#faf9f5;--omh-paper:#fff;--omh-soft:#eeeee7;--omh-ink:#233844;--omh-muted:#5e6c71;--omh-line:#d8ddd9;--omh-action:#233d49;display:none;max-width:1180px;margin:0 auto;padding:0 38px 34px;background:var(--omh-ground);color:var(--omh-ink);font:400 15px/1.65 system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;overflow-wrap:anywhere}
html[data-course-entry="home"] body.lab-learning-family{background:#faf9f5;padding-bottom:0}
html[data-course-entry="home"] :is(.layout,#course-directory,#directory-backdrop,.tabs,.course-home-return){display:none!important}
html[data-course-entry="home"] #course-home{display:block}
html[data-course-entry="home"] .course-header :is(#directory-toggle,.header-title){display:none!important}
html[data-course-entry="home"] body.lab-learning-family .course-header{display:flex!important;position:relative;top:auto;transform:none!important;min-height:68px;height:auto;padding:12px max(24px,calc((100% - 1104px)/2));gap:16px}
.course-home-nav{display:none;align-items:center;gap:24px;flex-wrap:wrap;min-width:0}
html[data-course-entry="home"] .course-home-nav{display:flex}
.course-home-nav a,.course-home-return{font-size:13px;line-height:1.6;text-decoration:none;color:inherit;min-height:44px;display:inline-flex;align-items:center}
.course-home-nav a:first-child{font-weight:600}
.course-home-return{white-space:nowrap}
#course-home h1,#course-home h2,#course-home h3,#course-home p{margin:0;letter-spacing:normal}
#course-home a{text-decoration:none;color:inherit}
#course-home .omh-hero{padding:50px 0 42px}
#course-home .omh-kicker{display:flex;align-items:center;gap:9px;color:var(--omh-muted);font-size:12px;letter-spacing:1.5px}
#course-home .omh-kicker::before{content:"";width:22px;height:1px;background:var(--omh-muted)}
#course-home h1{margin-top:18px;font-size:clamp(28px,4.4vw,46px);line-height:1.3;font-weight:600;overflow-wrap:normal;word-break:keep-all}
#course-home .omh-tagline{margin-top:18px;color:var(--omh-muted);font-size:clamp(15px,1.9vw,19px)}
#course-home .omh-hero-bottom{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-top:30px}
#course-home .omh-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
#course-home .omh-start{display:inline-flex;align-items:center;justify-content:center;gap:28px;min-height:46px;padding:10px 20px;border-radius:4px;background:var(--omh-action);color:#fff;font-size:14px;font-weight:500}
#course-home .omh-subaction{display:inline-flex;align-items:center;min-height:44px;font-size:13px;color:var(--omh-muted)}
#course-home .omh-entry{font-size:12px;color:var(--omh-muted);text-align:right}
#course-home .omh-entry span{display:block;color:var(--omh-ink);font-size:13px}
#course-home .omh-section{padding:30px 0 36px;border-top:1px solid var(--omh-line);scroll-margin-top:24px}
#course-home .omh-section-title{display:flex;align-items:baseline;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:20px}
#course-home h2{font-size:23px;font-weight:600;line-height:1.5}
#course-home .omh-section-title p{font-size:12px;color:var(--omh-muted)}
#course-home .omh-route-layout{display:grid;grid-template-columns:minmax(220px,.9fr) minmax(0,1.8fr);gap:24px}
#course-home .omh-stages{display:flex;flex-direction:column;gap:5px}
#course-home .omh-stages button{display:flex;align-items:center;gap:15px;width:100%;min-height:60px;padding:9px 13px;border:1px solid transparent;border-radius:4px;background:transparent;color:var(--omh-muted);text-align:left;font-family:inherit;font-size:13px;line-height:1.6;font-weight:400;box-shadow:none}
#course-home .omh-stages button[aria-pressed="true"]{background:var(--omh-soft);border-color:var(--omh-line);color:var(--omh-ink)}
#course-home .omh-number{min-width:21px;font-size:12px}
#course-home .omh-stage-label{display:grid;gap:0;flex:1;min-width:0}
#course-home .omh-stage-label>span{font-size:13px}
#course-home .omh-stage-label small{font-size:12px}
#course-home .omh-stage-arrow{opacity:0;font-size:18px}
#course-home [aria-pressed="true"] .omh-stage-arrow{opacity:1}
#course-home .omh-stage-panels{min-width:0;display:flex}
#course-home .omh-stage-detail{display:flex;flex-direction:column;align-items:flex-start;width:100%;padding:25px 28px;border:1px solid var(--omh-line);border-radius:6px;background:var(--omh-paper)}
#course-home .omh-stage-meta{color:var(--omh-muted);font-size:11px;letter-spacing:1.5px}
#course-home h3{font-size:24px;font-weight:500;line-height:1.5}
#course-home .omh-stage-detail h3{margin-top:10px}
#course-home .omh-stage-description{margin-top:9px;color:var(--omh-muted);font-size:14px}
#course-home .omh-topic-list{display:flex;flex-wrap:wrap;gap:7px;margin:18px 0 22px;padding:0;list-style:none}
#course-home .omh-topic-list li{padding:3px 9px;border-radius:3px;background:var(--omh-soft);font-size:12px}
#course-home .omh-prerequisite{display:grid;grid-template-columns:auto 1fr;gap:14px;width:100%;margin-top:auto;padding-top:16px;border-top:1px solid var(--omh-line);font-size:12px}
#course-home .omh-prerequisite>span{color:var(--omh-muted)}
#course-home .omh-enter{display:inline-flex;align-items:center;min-height:44px;margin-top:8px;font-size:13px;color:var(--omh-ink)}
#course-home .omh-enter[aria-disabled="true"]{color:var(--omh-muted);cursor:default}
#course-home .omh-projects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
#course-home .omh-project{display:flex;flex-direction:column;min-width:0;padding:22px;border:1px solid var(--omh-line);border-radius:5px;background:var(--omh-paper)}
#course-home .omh-project-category{font-size:11px;letter-spacing:.6px;color:var(--omh-muted)}
#course-home .omh-project h3{margin-top:19px;font-size:17px;font-weight:500}
#course-home .omh-project>p:not(.omh-project-category){margin-top:9px;color:var(--omh-muted);font-size:13px}
#course-home .omh-project .omh-enter{margin-top:auto;padding-top:12px}
#course-home .omh-methods{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
#course-home .omh-methods>div{padding-top:14px;border-top:2px solid var(--omh-line)}
#course-home .omh-methods h3{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:500}
#course-home .omh-methods h3 span{font-size:11px;color:var(--omh-muted)}
#course-home .omh-methods p{margin-top:7px;font-size:12px;color:var(--omh-muted)}
#course-home-status:empty{display:none}
#course-home .course-handbook{margin:0;padding:18px 0;border:0;border-top:1px solid var(--omh-line);border-radius:0;background:transparent}
#course-home .course-handbook>summary{min-height:44px;align-content:center;font-weight:600;cursor:pointer}
#course-home .course-handbook h2{margin:24px 0 12px;font-size:20px}
#course-home .course-handbook h3{margin:20px 0 10px;font-size:17px}
#course-home .course-handbook p{margin:12px 0;font-size:14px;line-height:1.85}
@media(max-width:680px){
  #course-home{padding-inline:22px}
  html[data-course-entry="home"] body.lab-learning-family .course-header{padding:9px 22px;gap:10px;flex-wrap:wrap}
  .course-home-nav{gap:16px;flex:1 1 auto}
  .course-home-nav a{font-size:12px}
  html[data-course-entry="home"] .course-header .header-actions{margin-left:auto;max-width:100%;gap:8px}
  html[data-course-entry="home"] .course-header .learning-global-nav{display:none}
  #course-home .omh-hero{padding:35px 0 30px}
  #course-home .omh-hero-bottom{flex-direction:column;align-items:flex-start;gap:20px}
  #course-home .omh-entry{text-align:left}
  #course-home .omh-entry span{display:inline;margin-right:8px}
  #course-home .omh-route-layout{grid-template-columns:minmax(0,1fr);gap:15px}
  #course-home .omh-stages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
  #course-home .omh-stages button{padding:9px;gap:9px}
  #course-home .omh-stages button:last-child{grid-column:1 / -1}
  #course-home .omh-stage-arrow{display:none}
  #course-home .omh-stage-detail{padding:22px}
  #course-home .omh-projects{grid-template-columns:minmax(0,1fr);gap:10px}
  #course-home .omh-project{padding:18px}
  #course-home .omh-project h3{margin-top:14px}
  #course-home .omh-methods{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 18px}
}
@media(max-width:380px){#course-home{padding-inline:16px}html[data-course-entry="home"] body.lab-learning-family .course-header{padding-inline:16px}.course-home-nav{gap:11px}#course-home .omh-stage-label>span{font-size:12px}.course-header .course-home-return{font-size:12px}}

/* Compact mobile course chrome; preserve full lesson titles and 44px controls. */
.course-home-icon,.course-profile-icon{display:none}
@media screen and (max-width:640px){
  body.om-site-app.lab-learning-family.lab-course-page{
    --om-site-header-height:56px;
  }
  body.lab-learning-family.lab-course-page .om-site-header{
    padding-inline:14px;
  }
  body.lab-learning-family.lab-course-page .om-site-header .om-brand-lab img{
    width:112px;height:auto;
  }
  body.lab-learning-family.lab-course-page .om-site-header .om-site-menu-button{
    width:44px;min-width:44px;height:44px;margin:0;
  }
  body.lab-learning-family.lab-course-page .lab-learning-breadcrumb{display:none}
  html[data-course-entry="lesson"] body.lab-learning-family.lab-course-page .course-header:has(#profile-entry){
    display:grid;grid-template-columns:44px minmax(0,1fr) 44px 44px;
    grid-template-areas:"menu title home profile";
    align-items:center;min-height:60px;height:auto;
    padding:6px 10px;gap:2px;
  }
  html[data-course-entry="lesson"] body.lab-learning-family.lab-course-page .course-header>.header-title{
    grid-area:title;padding:0;min-width:0;
  }
  html[data-course-entry="lesson"] body.lab-learning-family.lab-course-page .header-title h1{
    margin:0;font-size:17px;line-height:1.45;
    white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;
  }
  html[data-course-entry="lesson"] body.lab-learning-family.lab-course-page .course-header>.menu-toggle{
    grid-area:menu;width:44px;min-width:44px;height:44px;min-height:44px;
    margin:0;padding:0;display:flex;align-items:center;justify-content:center;
  }
  html[data-course-entry="lesson"] body.lab-learning-family.lab-course-page .course-header .header-actions{
    display:contents;margin:0;max-width:none;
  }
  html[data-course-entry="lesson"] body.lab-learning-family.lab-course-page .course-home-return{
    grid-area:home;width:44px;min-width:44px;height:44px;min-height:44px;
    margin:0;padding:0;display:flex;align-items:center;justify-content:center;
  }
  html[data-course-entry="lesson"] body.lab-learning-family.lab-course-page .course-header #profile-entry{
    grid-area:profile;justify-self:end;display:flex;align-items:center;justify-content:center;
    width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;
    margin:0;padding:0;gap:0;
  }
  html[data-course-entry="lesson"] body.lab-learning-family.lab-course-page :is(.course-home-icon,.course-profile-icon){
    display:block;flex:none;
  }
  html[data-course-entry="lesson"] body.lab-learning-family.lab-course-page :is(.course-home-text,#profile-name){
    position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
    clip-path:inset(50%);white-space:nowrap;
  }
  html[data-course-entry="lesson"] body.lab-learning-family.lab-course-page #profile-entry :is(#profile-avatar,#profile-chevron){display:none}
  html[data-course-entry="lesson"] body.lab-learning-family.lab-course-page .layout main{padding-top:12px}
}
