/* Standalone document: a small copy of the application's base.css color tokens. */
:root{color-scheme:dark;--theme-bg:#0a0a0f;--theme-surface:#14141c;--theme-card:#1a1a26;--theme-border:#2a2a3a;--theme-hover:#252535;--theme-text:#dddde4;--theme-text-secondary:#8888a0;--brand:#6366f1;--brand-light:#818cf8;--brand-pale:#a5b4fc;--node-markdown:#a855f7;--success:#22c55e;--success-bg:rgba(16,185,129,.15);--warning:#f97316;--warning-bg:rgba(249,115,22,.15);--danger:#ef4444;--white:#fff;--black-alpha-30:rgba(0,0,0,.3)}
[data-theme="light"]{color-scheme:light;--theme-bg:#F4F6FB;--theme-surface:#FFFFFF;--theme-card:#F8FAFD;--theme-border:#E4E8F2;--theme-hover:#EEF1F8;--theme-text:#33364D;--theme-text-secondary:#6E7488;--brand:#7280E4;--brand-light:#5A69D4;--brand-pale:#4F5ECB;--node-markdown:#B294E6;--success:#6ECBAA;--success-bg:rgba(110,203,170,.20);--warning:#F4AC7D;--warning-bg:rgba(244,172,125,.22);--danger:#CE4F62}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:28px}body{margin:0;background:var(--theme-bg);color:var(--theme-text);font:16px/1.85 "Microsoft YaHei","Noto Sans SC",sans-serif}a{color:var(--brand-pale);text-decoration:none}a:hover{text-decoration:underline}button,input,select{font:inherit}button{cursor:pointer}button,a,input,select,summary{touch-action:manipulation}:focus-visible{outline:3px solid var(--brand);outline-offset:4px}[hidden]{display:none}.skip{position:fixed;top:-70px;left:280px;z-index:20;padding:10px;background:var(--theme-surface)}.skip:focus{top:8px}
.toc{position:fixed;width:262px;inset:0 auto 0 0;padding:27px 23px;background:var(--theme-surface);border-right:1px solid var(--theme-border);overflow:auto}.toc strong{font-size:23px;display:block;color:var(--brand-pale)}.toc small{display:block;color:var(--theme-text-secondary);font-size:12px;margin:3px 0 15px}.toc .back{font-size:12px}.toc label{display:block;font-size:12px;margin-top:18px}.toc input{width:100%;margin-top:5px;border:1px solid var(--theme-border);border-radius:8px;padding:8px 10px;background:var(--theme-card);color:var(--theme-text);font-size:13px}.toc .links a{display:block;padding:5px 3px;color:var(--theme-text-secondary);font-size:12px;line-height:1.65;border-radius:5px}.toc .links a[aria-current="location"]{background:color-mix(in srgb,var(--brand) 12%,transparent);color:var(--brand-pale);font-weight:700}.toc .links a[hidden]{display:none}.toc .group{font-size:11px;color:var(--brand-light);letter-spacing:1px;margin:17px 0 5px}.toc .search-status{font-size:11px;line-height:1.6;margin:8px 0;min-height:18px;color:var(--theme-text-secondary)}
main{margin-left:262px;max-width:1560px;padding:42px 44px 70px;min-width:0}.hero{background:linear-gradient(125deg,var(--brand-pale),color-mix(in srgb,var(--node-markdown) 30%,var(--brand-pale)));color:var(--white);padding:38px 40px;border-radius:22px}.eyebrow{font-size:12px;letter-spacing:3px}.hero h1{font-size:35px;line-height:1.4;margin:8px 0 15px}.hero p{margin:0;max-width:760px;opacity:.94}.badge{display:inline-block;font-size:12px;border:1px solid currentColor;border-radius:20px;padding:2px 12px;margin:19px 8px 0 0}.actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:20px}.action{border:1px solid var(--theme-border);border-radius:8px;background:var(--theme-surface);color:var(--brand-pale);padding:8px 14px;font-size:13px;line-height:1.5}.action:hover{background:var(--theme-hover)}
section{background:var(--theme-surface);border:1px solid var(--theme-border);border-radius:18px;padding:29px 33px;margin-top:24px;min-width:0;overflow-wrap:anywhere}h2{font-size:24px;line-height:1.5;margin:0 0 17px;letter-spacing:-.3px}h3{font-size:19px;line-height:1.6;margin:26px 0 10px}h4{font-size:16px;margin:18px 0 8px}p{margin:11px 0}section>p:first-of-type{margin-top:0}.small,figcaption{font-size:13px;color:var(--theme-text-secondary)}.tip,.hold{padding:16px 19px;border-radius:10px;margin:19px 0;border-left:4px solid var(--success);background:var(--success-bg)}.hold{border-color:var(--warning);background:var(--warning-bg)}.steps{padding-left:27px}.steps li{padding-left:6px;margin:11px 0}.steps li::marker{color:var(--brand-light);font-weight:700}ul{padding-left:24px}li{margin:7px 0}code,kbd{background:color-mix(in srgb,var(--brand) 8%,var(--theme-surface));border-radius:4px;padding:2px 5px;overflow-wrap:anywhere;font:13px/1.65 Consolas,"Microsoft YaHei",monospace}kbd{border:1px solid var(--theme-border);white-space:nowrap}pre{margin:0;white-space:pre-wrap;word-break:break-word;padding:18px 20px;background:var(--theme-card);border:1px solid var(--theme-border);border-radius:10px;tab-size:2}pre code{padding:0;background:none;font-size:13px}.code-head{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:15px 0 7px;font-size:12px;color:var(--theme-text-secondary)}.code-head button{flex-shrink:0}
.table-scroll{overflow:auto;margin:16px 0}table{width:100%;border-collapse:collapse;font-size:14px;min-width:570px}th{background:color-mix(in srgb,var(--brand) 8%,var(--theme-surface));text-align:left;color:var(--brand-pale)}td,th{padding:12px 14px;border-bottom:1px solid var(--theme-border);vertical-align:top}tbody tr:last-child td{border-bottom:0}td:first-child{font-weight:600;min-width:135px}table caption{text-align:left;color:var(--theme-text-secondary);font-size:12px;margin-bottom:8px}.flow{display:flex;gap:10px;align-items:stretch;flex-wrap:wrap;margin:18px 0}.flow>div{flex:1;min-width:135px;background:color-mix(in srgb,var(--brand) 7%,var(--theme-surface));border:1px solid color-mix(in srgb,var(--brand) 20%,var(--theme-border));padding:16px 14px;border-radius:10px;font-size:14px;font-weight:700}.flow small{display:block;color:var(--theme-text-secondary);font-size:12px;font-weight:400;margin-top:4px}.flow>span{align-self:center;color:var(--brand-light)}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.cards article{padding:18px;border:1px solid var(--theme-border);border-radius:12px;background:var(--theme-card)}.cards h3{font-size:16px;margin:0 0 6px}.cards p{font-size:13px;margin:0;color:var(--theme-text-secondary)}
figure{margin:22px 0}.annotated{position:relative;border:1px solid var(--theme-border);border-radius:10px;overflow:hidden}.shot-button{display:block;border:0;padding:0;width:100%;background:var(--theme-card);cursor:zoom-in}.shot-button img{display:block;width:100%;height:auto}.pin{position:absolute;transform:translate(-50%,-50%);width:27px;height:27px;border:2px solid var(--white);border-radius:50%;background:var(--danger);color:var(--white);display:grid;place-items:center;font:bold 14px/1 sans-serif;box-shadow:0 1px 7px var(--black-alpha-30);pointer-events:none}.overview-p1{left:13%;top:5%}.overview-p2{left:4%;top:24%}.overview-p3{left:4%;top:50%}.overview-p4{left:42%;top:36%}.overview-p5{left:16%;top:92%}.overview-p6{left:88%;top:89%}.settings-p1{left:33%;top:30%}.settings-p2{left:33%;top:39%}.settings-p3{left:33%;top:49%}.settings-p4{left:33%;top:54%}.legend{display:grid;grid-template-columns:1fr 1fr;list-style:none;padding:0;gap:8px 19px}.legend li{display:flex;gap:9px;font-size:13px;margin:0}.num{background:var(--danger);color:var(--white);border-radius:50%;width:23px;height:23px;flex-shrink:0;display:grid;place-items:center;font:bold 12px sans-serif}figcaption{padding-top:9px;line-height:1.7}.checklist{padding:18px;border:1px solid var(--theme-border);border-radius:12px;background:var(--theme-card)}.checklist label{display:flex;gap:10px;padding:7px 0;align-items:flex-start}.checklist input{margin-top:7px;width:17px;height:17px;accent-color:var(--brand);flex-shrink:0}.checklist label:has(input:checked){color:var(--theme-text-secondary)}details{border:1px solid var(--theme-border);border-radius:10px;padding:13px 17px;margin:12px 0}summary{cursor:pointer;font-weight:600;color:var(--brand-pale)}details[open] summary{margin-bottom:12px}.demo{border:1px solid var(--theme-border);padding:18px;border-radius:12px;margin:20px 0;background:var(--theme-card)}.demo label{display:block;font-size:13px;margin-bottom:12px}.demo input,.demo select{display:block;width:100%;margin-top:4px;padding:8px 10px;border:1px solid var(--theme-border);border-radius:7px;background:var(--theme-surface);color:var(--theme-text);font-size:14px}.demo output{display:block;word-break:break-all;padding:12px;background:var(--theme-surface);border-radius:8px;font:13px/1.8 Consolas,monospace}.tag{display:inline-block;font-size:11px;padding:1px 8px;border-radius:10px;background:color-mix(in srgb,var(--brand) 10%,transparent);color:var(--brand-pale)}footer{font-size:12px;color:var(--theme-text-secondary);text-align:center;margin-top:28px}dialog{max-width:96vw;max-height:94vh;padding:14px;border:1px solid var(--theme-border);border-radius:12px;background:var(--theme-surface);color:var(--theme-text)}dialog::backdrop{background:color-mix(in srgb,var(--theme-text) 75%,transparent)}dialog .zoom-box{max-height:80vh;overflow:auto;margin-top:10px}dialog .annotated{width:1426px;max-width:none}dialog .shot-button{cursor:default}body:has(dialog[open]){overflow:hidden}
.hero{background:linear-gradient(125deg,color-mix(in srgb,var(--brand) 14%,var(--theme-surface)),var(--theme-surface));color:var(--theme-text);border:1px solid var(--theme-border)}.eyebrow{color:var(--brand-pale)}
.toc-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.toc-toggle{display:none}.search-results{max-height:380px;overflow:auto;margin:12px 0;padding:0;list-style:none}.search-results li{margin:0;border-bottom:1px solid var(--theme-border)}.search-results a{display:block;padding:8px 3px;font-size:12px;line-height:1.6}.search-results small{margin:4px 0 0;font-size:11px}.search-results mark{background:var(--warning-bg);color:var(--theme-text);border-radius:3px}.reading-routes{margin-top:24px}.reading-routes h2{font-size:19px;margin-bottom:8px}.reading-routes .cards{margin-top:12px}.reading-routes article{padding:12px}.reading-routes .tag{margin-bottom:8px}h3[id],h4[id]{scroll-margin-top:16px}.section-link{font-size:13px;font-weight:400;margin-left:8px;opacity:0}.section-link:focus-visible,h2:hover .section-link,h3:hover .section-link{opacity:1}
.rail-figure{max-width:610px;margin:22px auto}dialog .series-entry-shot{width:2529px}dialog .rail-shot{width:591px}dialog .workbench-shot{width:2529px}.project-settings-figure{max-width:540px;margin:22px auto}dialog .project-settings-shot{width:766px}
dialog .creative-assets-shot{width:2085px}
dialog .character-library-shot{width:1957px}
dialog .character-actions-shot{width:1912px}
/* Screenshot width plus the annotated frame's two 1px borders; never upscale. */
.intrinsic-figure{max-width:calc(var(--shot-width) + 2px);margin:22px auto}.protocol-editor-figure,.protocol-editor-shot{--shot-width:899px}.batch-reverse-figure,.batch-reverse-shot{--shot-width:769px}.intrinsic-shot img{max-width:var(--shot-width)}dialog .intrinsic-shot{width:calc(var(--shot-width) + 2px)}
@media(min-width:1560px){main{padding-right:64px}}
@media(max-width:1100px){.toc{width:224px;padding:24px 18px}main{margin-left:224px;padding:26px}.hero{padding:29px}section{padding:26px}.cards{grid-template-columns:1fr 1fr}.skip{left:230px}}
@media(max-width:780px){.toc{position:relative;width:auto;border-right:0;padding:22px}.toc .links{display:grid;grid-template-columns:1fr 1fr;gap:2px 15px}.toc .group{grid-column:1/-1;margin-top:10px}.toc .search-status{min-height:0}.toc input{max-width:500px}main{margin:0;padding:16px}.hero{padding:25px}.hero h1{font-size:27px}section{padding:23px 18px;border-radius:13px}h2{font-size:21px}.legend{grid-template-columns:1fr}.pin{width:21px;height:21px;font-size:11px}.flow>span{display:none}.flow>div{min-width:130px}.cards{grid-template-columns:1fr}.skip{left:10px}.code-head{align-items:flex-start}pre{padding:14px}.hero p{font-size:15px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media(max-width:780px){.toc-toggle{display:block}.toc.is-collapsed #toc-links{display:none}.toc small{margin-bottom:8px}.toc .search-results{max-height:260px}.section-link{opacity:1}}
@media print{html{color-scheme:light;scroll-behavior:auto}.toc,.actions,.code-head button,.demo,.skip,dialog{display:none}main{margin:0;padding:0;max-width:none}.hero{background:var(--theme-card);color:var(--theme-text);border:1px solid var(--theme-border);padding:22px}.hero h1{font-size:25px}.badge{margin-top:8px}section{border:0;border-radius:0;padding:14px 0;margin:14px 0}h2,h3,h4{break-after:avoid}figure,.tip,.hold,.cards article{break-inside:avoid}.table-scroll{overflow:visible}table{min-width:0}thead{display:table-header-group}tr{break-inside:avoid}td,th{padding:7px;font-size:10px}body{font-size:11px;line-height:1.7}h2{font-size:18px}h3{font-size:15px}.small,figcaption,.legend li{font-size:10px}pre code,code,kbd{font-size:10px}.pin{width:20px;height:20px;font-size:11px}.checklist{padding:10px}a{color:inherit}details{border:0;padding:0}footer{font-size:10px}}
