/* Two-page prototype. This file only applies to handbook routes and lifecycle. */
.workspace-prototype{--lab-bg:#f8fafc;--lab-surface:#fff;--lab-ink:#202b3b;--lab-muted:#526176;--lab-line:#dce3eb;--lab-accent:#1762c4;--lab-panel:#172435;--ink:var(--lab-ink);--muted:var(--lab-muted);--line:var(--lab-line);--blue:var(--lab-accent);--surface:#fff;--paper:var(--lab-bg);background:var(--lab-bg);color:var(--ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
.workspace-prototype h1,.workspace-prototype h2,.workspace-prototype h3,.workspace-prototype .lab-brand{font-family:inherit;letter-spacing:0!important}.workspace-prototype h1{font-size:30px;line-height:1.45!important}.workspace-prototype a:hover{color:#10488f}.workspace-prototype .lab-header{min-height:68px;padding:10px 32px;background:#fff;gap:24px}.workspace-prototype .lab-brand{font-size:17px;font-weight:700}.workspace-prototype .lab-mark{border:0;border-radius:5px;background:#eaf2ff}.workspace-prototype .lab-nav{gap:25px}.workspace-prototype .lab-nav a{font-size:13px}.workspace-prototype .lab-breadcrumb{margin:18px 0;font-size:12px}.workspace-prototype button,.workspace-prototype .button{border-radius:5px;background:#fff;border-color:#ccd6e2}.workspace-prototype button:hover:not(:disabled),.workspace-prototype .button:hover{background:#edf4ff;border-color:#8cadd9}.workspace-prototype button.primary,.workspace-prototype .button.primary{background:var(--lab-accent);border-color:var(--lab-accent);color:white}.workspace-prototype button.primary:hover:not(:disabled),.workspace-prototype .button.primary:hover{background:#104fa3;border-color:#104fa3;color:white}.workspace-prototype :is(button,a,input,select,textarea,summary,pre,video):focus-visible{outline:3px solid #3989ec;outline-offset:3px}.workspace-prototype .badge{background:#eaf2ff;color:#245b9e;border-radius:4px}.workspace-prototype .safe-note{background:#eff4fa;border-color:#7799be}.workspace-prototype .learning-return{background:#eff4fa}
/* No outer rail: functional tabs are horizontal, the only rail is the chapter directory. */
.learning-page.workspace-prototype .learn-shell{display:block;max-width:1512px;padding:0 32px}.learning-page.workspace-prototype .learn-nav{position:sticky;top:0;display:flex;flex-direction:row;gap:28px;margin:0 0 24px;padding:0;border:0;border-bottom:1px solid var(--line);background:var(--lab-bg);overflow-x:auto;z-index:25}.learning-page.workspace-prototype .learn-nav a{flex-shrink:0;padding:11px 0;min-height:48px;font-size:14px;border-bottom:2px solid transparent;white-space:nowrap}.learning-page.workspace-prototype .learn-nav a::before{display:none}.learning-page.workspace-prototype .learn-nav a[aria-current]{border-bottom-color:var(--lab-accent)}.learning-page.workspace-prototype #workspace{padding:0 0 36px}.learning-page.workspace-prototype .lesson-tools{margin:0 0 22px;gap:10px}.learning-page.workspace-prototype .lesson-tools .subtle{margin-left:auto}.learning-page.workspace-prototype .lesson-tools :is(button,a){font-size:13px}.learning-page.workspace-prototype .book-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:40px;align-items:start}.learning-page.workspace-prototype .book-nav{position:sticky;top:72px;max-height:calc(100dvh - 96px);overflow-y:auto;overscroll-behavior:contain;border:0;border-right:1px solid var(--line);padding:0 20px 12px 0;scrollbar-width:thin}.workspace-prototype .book-nav-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}.workspace-prototype .book-nav-head strong{font-size:14px}.workspace-prototype .book-nav-head small{font-size:11px;font-weight:500;color:var(--muted);margin-left:8px}.workspace-prototype .book-nav input{background:#fff;border:1px solid #cbd5e1;border-radius:5px;padding:11px 12px;font-size:13px;min-height:44px}.learning-page.workspace-prototype .book-nav a{display:grid;grid-template-columns:25px minmax(0,1fr);gap:9px;padding:11px 10px;margin:2px 0;border-radius:4px;color:var(--muted);font-size:14px;line-height:1.65;border-left:2px solid transparent;white-space:normal}.workspace-prototype .book-number{font:12px/1.95 ui-monospace,Consolas,monospace;color:#6d7b8d}.workspace-prototype .book-title{overflow-wrap:break-word;word-break:normal;min-width:0}.learning-page.workspace-prototype .book-nav a:hover{background:#edf2f8;color:var(--ink)}.learning-page.workspace-prototype .book-nav a[aria-current]{background:#eaf2ff;border-left-color:var(--lab-accent);color:#1557ac;font-weight:600}.workspace-prototype .book-nav a[aria-current] .book-number{color:inherit}.learning-page.workspace-prototype .book-layout>.card:not(.book-nav){padding:0;border:0;min-width:0;max-width:100%}.workspace-prototype .book-body{min-width:0}.workspace-prototype .book-body :is(h1,h2,p,ul,details>summary){max-width:820px}.workspace-prototype .book-body h1{margin:12px 0 20px;font-size:30px;overflow-wrap:break-word}.workspace-prototype .book-body h2{font-family:inherit;font-size:21px;margin:36px 0 13px;padding-top:8px}.workspace-prototype .book-body p{line-height:1.95;margin:14px 0;color:#344155}.workspace-prototype .book-body .version{background:#eff4fa;border-left:3px solid #8dadcf;color:#526176;font-size:13px}.workspace-prototype .book-body pre{background:var(--lab-panel);color:#e1eaf5;border-radius:6px;padding:22px 24px;font-size:14px;line-height:1.85;max-width:100%;overflow-x:auto}.workspace-prototype .book-body .subtle{font-size:13px;color:var(--muted)}.workspace-prototype .book-body li{line-height:1.9}.workspace-prototype .book-body section{border-bottom:1px solid #edf0f5;padding-bottom:14px}.workspace-prototype .reading-check{font-size:14px}.workspace-prototype .reading-check input{accent-color:var(--lab-accent)}.workspace-prototype #book-menu,.workspace-prototype #book-close{display:none}.workspace-prototype #book-backdrop{display:none}
/* Lifecycle: neutral workspace; A/B retain semantic colors shared with the video. */
.lifecycle-page.workspace-prototype main{max-width:1320px;padding:0 32px}.lifecycle-page.workspace-prototype .intro{padding:0 0 20px}.lifecycle-page.workspace-prototype .intro .eyebrow{letter-spacing:.06em;color:var(--muted)}.lifecycle-page.workspace-prototype .intro h1{font-size:30px;margin:6px 0 9px}.lifecycle-page.workspace-prototype .intro>p:not(.eyebrow){font-size:15px;margin:0 0 13px;max-width:820px}.lifecycle-page.workspace-prototype .intro nav{gap:25px;font-size:14px}.lifecycle-page.workspace-prototype .section-head{border-top:1px solid var(--line);padding:18px 0 14px;margin:0}.lifecycle-page.workspace-prototype h2{font-size:20px}.lifecycle-page.workspace-prototype section[id]{margin-top:32px;scroll-margin-top:20px}.lifecycle-page.workspace-prototype .map-shell,.lifecycle-page.workspace-prototype .theater{background:#fff;border:1px solid var(--line);border-radius:7px;color:var(--ink)}.lifecycle-page.workspace-prototype .state-map{height:290px;margin:12px 24px 0}.lifecycle-page.workspace-prototype .state-node{border:1px solid #b8c8da;border-radius:5px;background:#fff}.lifecycle-page.workspace-prototype .state-node[aria-pressed=true]{background:#eaf2ff;border:2px solid var(--lab-accent);color:#1557ac}.lifecycle-page.workspace-prototype .state-map path:not(defs path){stroke:#a9b9cc}.lifecycle-page.workspace-prototype .state-map path.edge-active{stroke:var(--lab-accent)}.lifecycle-page.workspace-prototype .state-map svg text{fill:#53677f}.lifecycle-page.workspace-prototype .state-info{background:#f1f5fa;grid-template-columns:240px minmax(0,1fr);padding:20px 24px}.lifecycle-page.workspace-prototype .state-info h3{font-size:20px}.lifecycle-page.workspace-prototype .controls{margin:14px 0;gap:8px}.lifecycle-page.workspace-prototype .controls button{font-size:14px}.lifecycle-page.workspace-prototype .scene-top{padding:22px 28px 0;gap:20px}.lifecycle-page.workspace-prototype .scene-top span{color:var(--lab-accent)}.lifecycle-page.workspace-prototype .scene-top h3{font-size:23px}.lifecycle-page.workspace-prototype .stage{height:260px;background:#f8fafc;margin-top:16px;border-top:1px solid #edf1f6}.lifecycle-page.workspace-prototype .thread>span:last-child{color:#526176;font-size:12px}.lifecycle-page.workspace-prototype .monitor{background:#fff;color:var(--ink);border-color:#b4c2d1;box-shadow:0 5px 0 #e7edf5;border-radius:6px;padding:14px 8px}.lifecycle-page.workspace-prototype .monitor[data-owner=A]{border-color:var(--teal)}.lifecycle-page.workspace-prototype .monitor[data-owner=B]{border-color:var(--amber)}.lifecycle-page.workspace-prototype .scene-detail{border-color:var(--line);padding:20px 28px;min-height:94px;line-height:1.85}.lifecycle-page.workspace-prototype .prediction{background:#eff5ff;border-color:#bfd2ec;border-radius:5px;margin:0 20px 20px}.lifecycle-page.workspace-prototype .choices button{background:#fff}.lifecycle-page.workspace-prototype .choices button[aria-pressed=true]{border-color:var(--lab-accent)}.lifecycle-page.workspace-prototype .timeline{gap:8px}.lifecycle-page.workspace-prototype .timeline button{border-radius:5px;height:82px;background:#fff}.lifecycle-page.workspace-prototype .timeline .past{background:#f0f5fb}.lifecycle-page.workspace-prototype .timeline button[aria-current=step]{background:var(--lab-accent);color:#fff}.lifecycle-page.workspace-prototype .code-grid{gap:20px}.lifecycle-page.workspace-prototype pre{background:var(--lab-panel);color:#e1eaf5;font-size:13px;line-height:1.95;border-radius:6px;padding:20px 10px}.lifecycle-page.workspace-prototype .code-line.hot{background:#284f73;border-left-color:#80b7fa;color:#fff}.lifecycle-page.workspace-prototype .code-line i{color:#8ba1bb}.lifecycle-page.workspace-prototype .footnote,.lifecycle-page.workspace-prototype .story-note{font-size:13px;line-height:1.8}.lifecycle-page.workspace-prototype .reading{max-width:880px}.lifecycle-page.workspace-prototype video{max-height:620px;border-radius:6px}.lifecycle-page.workspace-prototype .continue-hint{color:#526176}.lifecycle-page.workspace-prototype .theater :focus-visible{outline-color:#3989ec}
@media(min-width:1024px) and (max-width:1279px){.learning-page.workspace-prototype .learn-shell{padding:0 24px}.learning-page.workspace-prototype .book-layout{grid-template-columns:260px minmax(0,1fr);gap:28px}.learning-page.workspace-prototype .book-nav{padding-right:16px}.learning-page.workspace-prototype .book-nav a{padding-left:7px;padding-right:7px;font-size:13px}}
@media(max-width:1023px){.learning-page.workspace-prototype .book-layout{display:block}.learning-page.workspace-prototype .book-layout>.card:not(.book-nav){max-width:880px;margin:0 auto}.learning-page.workspace-prototype .book-nav{display:none;position:fixed;inset:0 auto 0 0;z-index:101;width:min(340px,88vw);height:100dvh;max-height:none;padding:22px 18px;border:0;background:#fff;overflow:auto}.learning-page.workspace-prototype.book-drawer-open .book-nav{display:block}.workspace-prototype #book-menu,.workspace-prototype #book-close{display:inline-flex;align-items:center;justify-content:center}.workspace-prototype.book-drawer-open #book-backdrop{display:block;position:fixed;inset:0;background:#14263d66;z-index:100}.learning-page.workspace-prototype .lesson-tools .subtle{flex-basis:100%;margin:0}.workspace-prototype .book-body h1{font-size:28px}.lifecycle-page.workspace-prototype .state-info{grid-template-columns:210px minmax(0,1fr)}.lifecycle-page.workspace-prototype .timeline{grid-template-columns:repeat(6,1fr)}}
@media(max-width:700px){.workspace-prototype .lab-header{display:block;padding:13px 18px 0}.workspace-prototype .lab-nav{gap:23px;overflow:auto;margin-top:6px}.workspace-prototype .lab-nav a{font-size:12px}.learning-page.workspace-prototype .learn-shell,.lifecycle-page.workspace-prototype main{padding-left:18px;padding-right:18px}.learning-page.workspace-prototype .learn-nav{gap:24px;margin-bottom:18px}.learning-page.workspace-prototype .learn-nav a{font-size:13px}.workspace-prototype .book-body h1{font-size:25px}.workspace-prototype .book-body h2{font-size:20px;margin-top:28px}.workspace-prototype .book-body pre{font-size:12px;padding:18px 16px}.workspace-prototype .book-body p{font-size:15px}.learning-page.workspace-prototype .lesson-tools{gap:8px}.learning-page.workspace-prototype .lesson-tools :is(button,a){padding:8px 10px;font-size:12px}.lifecycle-page.workspace-prototype .intro h1{font-size:26px}.lifecycle-page.workspace-prototype .intro nav{font-size:13px;flex-wrap:wrap;gap:10px 20px}.lifecycle-page.workspace-prototype .state-map{height:255px;margin:10px 8px 0}.lifecycle-page.workspace-prototype .state-node span{font-size:9px}.lifecycle-page.workspace-prototype .state-info{display:block;padding:18px}.lifecycle-page.workspace-prototype .section-head h2{font-size:18px}.lifecycle-page.workspace-prototype .scene-top{padding:18px 16px 0;gap:12px}.lifecycle-page.workspace-prototype .scene-top h3{font-size:18px}.lifecycle-page.workspace-prototype .stage{height:210px}.lifecycle-page.workspace-prototype .thread>span:last-child{font-size:10px}.lifecycle-page.workspace-prototype .monitor{padding:10px 4px}.lifecycle-page.workspace-prototype .scene-detail{padding:18px;font-size:14px}.lifecycle-page.workspace-prototype .controls button{font-size:12px;padding:8px 10px}.lifecycle-page.workspace-prototype .timeline{gap:5px}.lifecycle-page.workspace-prototype .timeline button{height:84px}.lifecycle-page.workspace-prototype .code-grid{grid-template-columns:1fr;gap:8px}.lifecycle-page.workspace-prototype pre{font-size:12px}.lifecycle-page.workspace-prototype .prediction{margin:0 12px 12px;padding:16px}.lifecycle-page.workspace-prototype .choices button{min-width:100%}.lifecycle-page.workspace-prototype .footnote,.lifecycle-page.workspace-prototype .story-note{font-size:12px}}
@media print{.workspace-prototype .book-nav,.workspace-prototype #book-backdrop,.workspace-prototype .lesson-tools{display:none!important}.learning-page.workspace-prototype .book-layout{display:block}.workspace-prototype .book-body pre{white-space:pre-wrap;color:#000;background:#f0f0f0}.learning-page.workspace-prototype .learn-shell{padding:0}.workspace-prototype{overflow:visible!important}}
