/* Quiet functional workbench. Directional flow geometry stays in sequence.css. */
:root{--cloud:#fcfaf6;--paper:#fcfaf6;--ink:#1d1d1d;--muted:#666666;--line:#e2e2e2;--quiet:#f1f1f1;--harbour:#272727;--harbour-dark:#121212;--good:#535353;--warn:#595959;--warn-bg:#f9f9f9;--danger:#424242;--radius:14px;font:14px/1.65 'Segoe UI Variable','Segoe UI','Microsoft YaHei',sans-serif;letter-spacing:.005em}
body{background:var(--cloud)}h1,h2,h3,p{overflow-wrap:anywhere}h1{font-size:28px;font-weight:650;letter-spacing:-.025em;line-height:1.25;margin:0 0 10px}h2{font-size:18px;line-height:1.4;font-weight:650;letter-spacing:-.012em;margin:0 0 16px}h3{font-size:14px;font-weight:650;margin:0 0 14px}p{margin:0 0 14px}.help,.muted{color:var(--muted);font-size:12px;line-height:1.7}label{color:#464646;font-size:12px;font-weight:600;min-width:0;display:grid;gap:8px}button,.button{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:8px;line-height:1.4;padding:10px 16px;border:1px solid #dadada;border-radius:9px;background:var(--paper);font-size:13px;font-weight:550;text-align:center;text-decoration:none;white-space:normal;max-width:100%;color:var(--ink);transition:background .12s,border-color .12s}button:hover,.button:hover{background:#f1f1f1;border-color:#bababa;color:var(--ink)}button:active{background:#e9e9e9}.primary{background:#272727;color:#ffffff;border-color:#272727}.primary:hover{background:#121212;color:#ffffff;border-color:#121212}button:disabled{cursor:default;opacity:.42}.small{min-height:36px;font-size:12px;padding:8px 12px}.plain{border-color:transparent;background:transparent}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #5e5e5e;outline-offset:3px;box-shadow:none}input,select,textarea{min-width:0;width:100%;max-width:100%;min-height:44px;padding:10px 12px;border:1px solid #dadada;border-radius:8px;background:var(--paper);font-size:14px;font-weight:400;line-height:1.5;box-shadow:0 1px 2px #00000002}textarea{resize:vertical;min-height:86px}input[type=checkbox],input[type=radio]{width:18px;min-width:18px;min-height:18px;height:18px;accent-color:#272727;box-shadow:none}input[aria-invalid=true]{border-color:var(--danger)}
.layout{display:grid;grid-template-columns:216px minmax(0,1fr);min-height:100vh}.rail{width:216px;position:fixed;height:100vh;inset:0 auto 0 0;padding:28px 14px 20px;background:#f3f3f3;border-right:1px solid var(--line);display:flex;flex-direction:column}.brand{padding:0 12px;margin-bottom:32px;gap:12px}.brand .icon{width:26px;height:26px;color:#373737}.brand strong{font-size:21px;letter-spacing:-.025em}.brand span{font-size:10px;color:var(--muted);margin-top:2px}.rail nav{display:grid;gap:5px}.nav-link{border:0;min-height:44px;padding:12px 14px;border-radius:8px;gap:12px;color:#666666;font-size:13px;font-weight:500}.nav-link:hover{background:#ebebeb;color:#1d1d1d}.nav-link[aria-current=page]{background:var(--paper);color:#222222;box-shadow:0 1px 4px #00000005}.nav-link .icon{width:17px;height:17px;stroke-width:1.6}.rail-bottom{margin-top:auto;border-top:1px solid var(--line);padding:18px 12px 0;display:grid;gap:8px}.rail-bottom p{font-size:10px;line-height:1.8;color:#666666;margin:0 0 7px}.rail-bottom button{justify-content:flex-start;background:transparent;min-height:36px;font-size:11px;border-color:transparent;padding:6px 0}.rail-bottom button:hover{text-decoration:underline}.main-shell{grid-column:2;min-width:0}.topbar{min-height:106px;padding:22px 36px;background:#fcfaf6ed;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:24px;position:relative;z-index:5}.case-pick{display:block;flex:1;min-width:0;max-width:650px}.case-pick>label{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#777777;margin:0 0 5px}.case-line{display:flex;align-items:center;gap:14px;min-width:0}.case-line select{min-height:38px;width:auto;max-width:390px;flex:1;font-size:15px;font-weight:600;border:0;box-shadow:none;background:#f6f6f6;padding:7px 30px 7px 10px;text-overflow:ellipsis;border-radius:7px}.case-status{display:flex;gap:8px;align-items:center;flex-wrap:wrap;flex-shrink:0}.case-status .tag{border:0;padding:0;border-radius:0;background:none;color:#666666;font-size:10px;line-height:1.5}.case-status .tag+.tag:before{content:'·';margin-right:8px;color:#b4b4b4}.case-status .version-text{display:none}.top-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.top-actions button{min-height:38px;font-size:12px;padding:9px 13px}.language-control{display:block;min-width:115px}.language-control>span{display:none}.language-control select{background:var(--paper);min-height:38px;font-size:12px;padding:8px 24px 8px 11px}.main{padding:32px 36px 60px;max-width:1536px;margin:0 auto}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin:0 0 24px}.page-head>div:first-child{min-width:0;max-width:780px}.page-head p{font-size:13px;color:var(--muted);max-width:74ch;margin:0}.page-head .actions{gap:8px;justify-content:flex-end;align-items:center}.page-head .actions select{width:min(310px,100%);font-size:12px;min-height:40px}.page-head .actions button{min-height:40px;font-size:12px;padding:9px 12px}.actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 284px;gap:24px;align-items:start}.stack{display:grid;gap:24px;min-width:0}.section,.context-card{min-width:0;background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:28px;box-shadow:none}.section>p:last-child{margin-bottom:0}.context-card{background:transparent;border:0;border-left:1px solid var(--line);border-radius:0;padding:4px 0 4px 24px}.context-card h2{font-size:14px;margin-bottom:18px}.context-card dl{font-size:12px}.context-card dt{font-size:11px;color:var(--muted);margin-top:16px}.context-card dd{margin:4px 0 0;font-size:13px}.context-card .help{margin-top:20px;font-size:11px}.section-head{gap:14px;align-items:center;margin-bottom:20px}.section-head h2{margin:0}.section-head .tag{font-size:10px}.tag{font-size:10px;font-weight:500;line-height:1.5;border-radius:5px;padding:3px 7px;border:0;background:#f2f2f2;color:#5d5d5d}.tag.sim{background:#f2f2f2;color:#666666}.tag.good{background:#f3f3f3;color:#535353}.tag.warn{background:#f6f6f6;color:#595959}.tag.internal{background:#f2f2f2;color:#666666}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 18px}.form-grid .wide{grid-column:1/-1}.source-box{padding:22px;background:#f9f9f9;border:1px solid #e9e9e9;border-radius:10px;margin:24px 0}.source-box .help:last-child{margin-bottom:0}.source-label{font-size:10px;color:#777777;font-weight:400;line-height:1.6}.guide{font-size:13px;line-height:1.8;color:#666666;max-width:78ch}.attention{padding:18px 20px;background:#f9f9f9;border:1px solid #e5e5e5;border-left:3px solid #a0a0a0;border-radius:9px;margin:20px 0;color:#535353;font-size:12px}.attention .help{color:#646464}.attention p:last-child{margin:0}.attention ul{padding-left:18px;margin:8px 0}.form-error{font-size:12px;line-height:1.7;color:var(--danger);margin:16px 0;overflow-wrap:anywhere}.form-error:empty{display:none}.details{padding:18px 0;border:0;border-top:1px solid var(--line);margin:20px 0 0;background:none}.details summary{padding:0;min-height:32px;line-height:1.7;font-size:13px;font-weight:600;color:#4a4a4a}.details[open]>summary{margin-bottom:18px}.scopebar{padding:0 0 18px;background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.scopebar button{align-self:end;min-height:44px}.scopebar select,.scopebar input{font-size:12px;padding:9px}.inline-form{gap:16px;align-items:end;display:flex;flex-wrap:wrap}.inline-form label{flex:1;min-width:180px}.inline-form .form-error{flex-basis:100%}.manual-steps{gap:0;margin-bottom:22px;font-size:10px;counter-reset:steps}.manual-steps span{background:none;border:0;border-radius:0;padding:0 14px 0 0;color:#666666}.manual-steps span+span:before{content:'→';color:#a9a9a9;margin-right:14px}.request{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.8 'Segoe UI','Microsoft YaHei',sans-serif;max-height:320px;overflow:auto;background:#f8f8f8;border:1px solid #e6e6e6;border-radius:9px;padding:20px;margin:20px 0}.return-values{display:grid;gap:14px;margin:24px 0}.return-row{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) 66px;gap:14px;align-items:end;padding:18px;background:#f8f8f8;border:1px solid #e9e9e9;border-radius:10px}.return-row>label{min-width:0;display:grid;gap:8px}.return-row select,.return-row input{font-size:13px}.return-row .remove-return{font-size:11px;min-height:44px;padding:7px}.return-actionbar{border-top:1px solid var(--line);padding-top:20px;margin-top:24px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.return-actionbar>button{min-height:44px}.reconcile-form{display:grid;gap:16px}.checks{gap:14px;display:grid;margin:18px 0}.checks label{display:flex;align-items:flex-start;gap:10px;font-weight:400;line-height:1.8}.checks input{margin-top:4px;flex-shrink:0}.checks+button{margin-top:10px}.output-section{scroll-margin-top:24px;border-color:#cfcfcf}.section-eyebrow{font-size:9px;letter-spacing:.12em;color:#777777;margin-bottom:8px;font-weight:650}.output-section h2{font-size:21px;letter-spacing:-.02em;margin-bottom:8px}.generate-form{margin-top:24px}.generate-form>.form-grid{max-width:660px;gap:20px}.generate-form>.actions{margin-top:24px}.generate-form>.actions button{min-width:210px;min-height:46px}.generate-form>.help{margin-top:16px;max-width:74ch}.generate-form .commercial-controls{margin:0 0 26px}.commercial-controls>label{max-width:430px}.output-empty{display:flex;align-items:center;gap:14px;padding:16px 0;color:#7f7f7f;font-size:12px}.output-empty p{margin:0}.output-file-icon{display:inline-flex;align-items:center;justify-content:center;width:40px;height:44px;border:1px solid #e4e4e4;border-radius:8px;color:#8a8a8a}.output-ready{padding:18px 20px;background:#f4f4f4;border:1px solid #e6e6e6;border-radius:10px;margin:20px 0;color:#505050}.output-ready strong{font-size:14px}.output-ready p{font-size:12px;margin:6px 0 0;color:#686868}.file-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.file-actions .button:first-child{background:#272727;border-color:#272727;color:#ffffff}.artifact-title{font-size:15px;font-weight:600;line-height:1.6}.file-meta{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}.list-row{padding:22px 0;border:0;border-bottom:1px solid var(--line);gap:16px;min-width:0}.list-row>div{min-width:0}.list-row:last-child{border-bottom:0}.list-row p{font-size:11px;line-height:1.8;color:#777777;overflow-wrap:anywhere;margin:10px 0}.list{display:block}.empty{background:#fbfbfb;border:1px dashed #e2e2e2;border-radius:9px;padding:24px;color:#777777;font-size:13px}.notes-list{font-size:12px;line-height:1.8;color:#666666;overflow-wrap:anywhere;word-break:normal}.reason{margin:22px 0}.separator{margin:26px 0;background:var(--line)}.completion-summary{margin:18px 0;font-size:11px;color:#777777}.warning-note{font-size:11px;color:#595959}.context-column>.section{padding:22px}.context-column h2{font-size:14px}.file-preview{border:1px solid var(--line);border-radius:10px}.toolbar{gap:16px}.toolbar label{min-width:190px}.toolbar input,.toolbar select{width:100%}.table-scroll{border:1px solid var(--line);border-radius:9px}.table-scroll table{font-size:12px}.table-scroll th{background:#f9f9f9;color:#666666;font-weight:600}.table-scroll td{vertical-align:top}.focus-task{padding:32px;border:1px solid var(--line);border-radius:14px;background:var(--paper);color:var(--ink);box-shadow:none}.focus-task h2{font-size:24px;max-width:30ch}.focus-task p{font-size:13px;color:var(--muted)}.facts-strip{border-block:1px solid var(--line);padding:20px 0;margin:24px 0;gap:24px}.facts-strip dt{color:#777777;font-size:11px}.facts-strip dd{font-size:22px}.facts-strip small{font-size:11px;color:#777777}.calculation{gap:24px 16px}.calculation span{font-size:11px;color:#777777}.calculation strong{font-size:20px;font-weight:600}.branch-grid{gap:16px}.branch-button{padding:24px;text-align:left;display:grid;justify-content:start;align-content:start;gap:12px;border-radius:12px}.branch-button small{color:#777777;font-weight:400;font-size:12px}.trace-list details{border-color:var(--line)}.route a{color:#373737}.empty-header{display:flex;align-items:center;justify-content:space-between;max-width:1100px;margin:0 auto;padding:28px 40px;border-bottom:1px solid var(--line)}.empty-header strong{font-size:22px;letter-spacing:-.04em}.error-page{max-width:760px;margin:76px auto 0;padding:0 36px}.error-page h1{font-size:32px;max-width:22ch}.error-page>p{font-size:14px;color:#666666;max-width:60ch;margin:20px 0 28px}.first-use-note{max-width:760px;margin:24px auto;padding:0 36px;color:#777777;font-size:12px}.first-use-note:before{content:'↳';margin-right:10px}.error-page .actions{margin:24px 0}.dialog-head{gap:20px}.dialog-head h2{margin:0}.dialog-head button{min-width:60px}.dialog-head+ p{font-size:12px;color:#666666}dialog{border:1px solid #dadada;border-radius:18px;padding:30px;max-width:570px;box-shadow:0 24px 80px #00000020}dialog::backdrop{background:#1d1d1d55}dialog label{margin-top:18px}dialog label:has(input[type=checkbox]){display:flex;align-items:flex-start;gap:10px;font-weight:400}dialog input[type=checkbox]{margin-top:3px;flex-shrink:0}#toast{background:#272727;color:#ffffff;border-radius:10px;font-size:12px;padding:14px 20px;box-shadow:0 8px 30px #0000001a;bottom:22px}.skip:focus{z-index:200;background:var(--paper);color:#1d1d1d}
/* Flow first: short toolbar, then real task cards and directional arrows. */
.map-toolbar.section{padding:16px 20px;border-radius:12px;background:var(--paper);margin:0 0 24px}.map-toolbar-head{gap:12px;margin-bottom:12px}.map-toolbar-head strong{font-size:12px;font-weight:600}.map-toolbar-head>span{font-size:10px}.map-toolbar .actions{margin:0;gap:8px}.map-toolbar .actions button{min-height:36px;font-size:11px;padding:8px 12px}.map-toolbar>.help{font-size:10px;line-height:1.7;margin:12px 0 0;max-width:120ch}.map-tree{margin:0 0 40px}.sequence-order-header{margin-bottom:6px;gap:8px 16px}.sequence-order-header>span{font-size:10px}.sequence-order-header h2{font-size:15px;letter-spacing:-.01em}.sequence-order-header p{font-size:9px;color:#8d8d8d}.sequence-current{column-gap:40px;row-gap:36px}.sequence-arrow{stroke:#a6a6a6;stroke-width:1.4}.sequence-arrows marker path{fill:#a6a6a6}.map-node{background:var(--paper);border:1px solid #e2e2e2;border-radius:12px;box-shadow:0 2px 3px #00000002}.map-node.map-selected{outline:1px solid #5a5a5a;border-color:#5a5a5a}.map-open{padding:20px;gap:9px;min-height:150px}.map-open:hover{background:#fbfbfb}.map-open strong{font-size:15px;line-height:1.5;font-weight:600;letter-spacing:-.01em}.map-position{font-size:11px;color:#777777;font-weight:500}.map-position>span{font-size:9px;color:#9b9b9b}.map-status{font-size:10px;color:#777777}.map-status.map-ready{color:#535353}.map-missing{font-size:10px;color:#9b9b9b}.sequence-last{font-size:9px;color:#777777}.map-node-controls{border-top:1px solid #f0f0f0;gap:6px;padding:8px 12px}.map-node-controls button{border:0;background:transparent;font-size:10px;min-height:36px;min-width:36px;padding:7px 4px;color:#777777}.map-node-controls button:hover{background:#f1f1f1}.map-node-controls .map-grip{min-width:28px;color:#a5a5a5}.map-node-controls .icon{width:16px;height:16px}.map-drop-target{height:18px;min-height:18px;margin:2px 0}.map-dependencies{font-size:10px;padding:0 20px 12px;color:#777777}.map-message{color:#464646;font-size:11px}.map-preview{font-size:12px}.map-preview ol{font-size:11px}.map-tree button:focus-visible{outline:3px solid #5e5e5e;outline-offset:-3px}.is-map-dragging .map-drop-target{border-color:#b3b3b3;background:#efefef}.is-map-dragging .map-drop-active{background:#e4e4e4;border-color:#4b4b4b}.map-drop-target>span{color:#464646;white-space:normal;text-align:center}.map-order-note{margin-top:12px}.sequence-history h2{font-size:16px}
@media(min-width:1700px){.main{padding-top:40px}.sequence-current{column-gap:48px}.workspace{grid-template-columns:minmax(0,1fr) 300px}}
@media(max-width:1250px){.layout{grid-template-columns:188px minmax(0,1fr)}.rail{width:188px;padding-inline:10px}.topbar{padding:20px 28px;gap:18px}.main{padding:28px}.workspace{grid-template-columns:minmax(0,1fr) 240px;gap:20px}.section{padding:24px}.case-line{display:block}.case-line select{width:100%;max-width:100%}.case-status{margin-top:6px;gap:8px}.top-actions .compact-button{display:none}.page-head{flex-wrap:wrap}.page-head>div:first-child{max-width:100%}.page-head>.actions{justify-content:flex-start}.scopebar{grid-template-columns:repeat(2,minmax(0,1fr))}.return-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.return-row .remove-return{grid-column:2;justify-self:end}.context-card{padding-left:20px}}
@media(max-width:1050px){.workspace{grid-template-columns:1fr}.context-column{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.context-card{border:1px solid var(--line);border-radius:12px;padding:24px}.sequence-current{--sequence-columns:2;column-gap:32px;row-gap:30px}.page-head h1{font-size:26px}.map-open strong{font-size:14px}.top-actions{gap:8px}}
@media(max-width:740px){:root{font-size:14px}.layout{display:block}.rail{position:relative;height:auto;width:auto;padding:16px 16px 0;border:0;border-bottom:1px solid var(--line);display:block}.brand{margin:0 0 14px;padding:0 3px}.brand strong{font-size:20px}.brand span{font-size:10px}.brand .icon{width:23px;height:23px}.rail nav{display:flex;gap:3px;overflow:auto;padding-bottom:10px;scrollbar-width:thin}.nav-link{font-size:11px;flex-shrink:0;white-space:nowrap;padding:10px 12px;min-height:40px;gap:7px}.nav-link .icon{width:14px;height:14px}.rail-bottom{display:none}.main-shell{display:block}.topbar{padding:18px 18px;gap:14px;align-items:flex-start;min-height:0;flex-wrap:wrap}.case-pick{flex:1 1 100%;max-width:none}.case-pick>label{font-size:9px}.case-line{display:flex;gap:12px;align-items:center}.case-line select{font-size:14px;max-width:none;min-width:0;flex:1;width:0}.case-status{margin:0;flex:0 0 auto;display:grid;gap:4px}.case-status .tag{font-size:9px}.case-status .tag+.tag:before{content:none}.top-actions{width:100%;gap:8px;justify-content:space-between}.top-actions .language-control{min-width:116px;max-width:150px;margin-right:auto}.top-actions button{min-height:38px;font-size:12px}.top-actions .compact-button{display:inline-flex}.main{padding:24px 18px 40px}.page-head{display:block;margin-bottom:22px}.page-head h1{font-size:25px;line-height:1.35}.page-head p{font-size:12px}.page-head .actions{margin-top:18px;gap:8px;display:flex;flex-wrap:wrap}.page-head .actions select{width:100%;max-width:none;flex:1 1 100%}.page-head .actions button{font-size:12px}.section,.context-card{padding:22px 18px;border-radius:12px}.section h2{font-size:17px}.section-head{align-items:flex-start}.context-column{grid-template-columns:1fr}.stack{gap:20px}.form-grid{grid-template-columns:1fr;gap:18px}.form-grid .wide{grid-column:auto}input,select,textarea{font-size:16px;min-height:44px}label{font-size:12px;line-height:1.6}.scopebar{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.scopebar select,.scopebar input{font-size:13px}.scopebar label:last-of-type{grid-column:1/-1}.source-box{padding:18px;margin:22px 0}.source-box h3{font-size:13px}.source-label{font-size:10px}.return-row{grid-template-columns:minmax(0,1fr);padding:16px;gap:14px}.return-row .remove-return{grid-column:1;justify-self:start;min-height:38px}.return-row select,.return-row input{font-size:14px}.return-actionbar{gap:14px;align-items:stretch}.return-actionbar button{flex:1 1 100%;min-height:44px}.return-actionbar button:first-child{order:0}.return-actionbar .primary{order:1}.generate-form>.form-grid{max-width:none;gap:20px}.generate-form>.actions button{width:100%;min-height:48px}.generate-form .form-grid select{font-size:14px}.file-actions{gap:10px}.file-actions .button:first-child{flex:1 1 100%;min-height:44px}.file-actions .small{font-size:11px;min-height:40px}.file-meta .tag{font-size:9px}.list-row{flex-wrap:wrap;padding:20px 0}.list-row>div{width:100%}.row-controls{flex-wrap:wrap}.inline-form label{min-width:100%}.notes-list{font-size:12px}.manual-steps{gap:8px 0}.manual-steps span{font-size:10px}.focus-task{padding:24px 20px}.focus-task h2{font-size:22px}.facts-strip{gap:12px}.facts-strip dd{font-size:20px}.branch-grid{grid-template-columns:1fr}.toolbar{gap:12px}.toolbar label,.toolbar input{width:100%}.calculation{grid-template-columns:repeat(2,minmax(0,1fr))}.map-toolbar.section{padding:16px;margin-bottom:22px}.map-toolbar-head{display:block;margin-bottom:14px}.map-toolbar-head strong{display:block;margin-bottom:5px}.map-toolbar .actions{gap:8px}.map-toolbar .actions button{flex:1 1 45%;min-height:40px;font-size:10px;padding:8px}.map-toolbar .actions button:last-child{flex-basis:100%}.map-toolbar>.help{font-size:10px}.sequence-current{--sequence-columns:1;row-gap:30px}.sequence-order-header{display:block}.sequence-order-header>span{font-size:9px}.sequence-order-header h2{font-size:15px;margin:5px 0}.sequence-order-header p{font-size:9px}.map-open{padding:20px;min-height:140px}.map-open strong{font-size:16px}.map-status,.map-missing{font-size:11px}.map-node-controls button{min-height:40px;font-size:11px}.map-position{font-size:12px}.map-position>span{font-size:10px}.map-dependencies{font-size:11px}.sequence-history>ol{grid-template-columns:1fr}.empty-header{padding:22px}.error-page{margin:46px 0 0;padding:0 24px}.error-page h1{font-size:29px}.error-page .actions{display:grid;gap:12px}.first-use-note{margin:24px 0;padding:0 24px}.mobile-utilities{display:flex;gap:8px;flex-wrap:wrap;margin-top:24px}.mobile-utilities button{font-size:11px}dialog{padding:24px;max-height:calc(100dvh - 32px);overflow:auto}.output-section{scroll-margin-top:18px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}

:root,body,h1,h2,h3,.brand strong,.case-pick>label,.section-eyebrow,.map-open strong,.sequence-order-header h2,.error-page h1,.empty-header strong{letter-spacing:0}.map-node,.section,.context-card,.source-box,.return-row,.output-ready,.n15-line,.branch-button,.map-toolbar.section,.empty,.output-empty{border-radius:8px}.map-open{justify-content:stretch;align-items:start}.actions[hidden]{display:none}

.map-tree:not(.is-arranging) .map-node-controls,.map-tree:not(.is-arranging) .map-drop-target{display:none}.map-toolbar-quiet{background:transparent;padding:0 0 14px;border:0;border-bottom:1px solid var(--line);margin-bottom:24px}.map-toolbar-quiet .map-toolbar-head{margin:0}.map-toolbar p[hidden]{display:none}.map-tree:not(.is-arranging) .map-open{min-height:156px}.map-tree:not(.is-arranging) .sequence-current{row-gap:40px}.document-language-note{font-size:11px;color:#777777}*{letter-spacing:0!important}@media(max-width:740px){.map-toolbar-quiet{padding-bottom:12px;margin-bottom:20px}.map-toolbar-quiet .map-toolbar-head{display:flex;align-items:center;gap:12px}.map-toolbar-quiet .map-toolbar-head strong{margin:0}.map-tree:not(.is-arranging) .map-open{min-height:150px}}

.map-missing,.map-status,.source-label{font-size:11px;color:#666666}.map-position{font-size:12px;color:#666666}.map-position>span,.sequence-order-header p{color:#707070}.map-node-controls button{color:#666666}.map-toolbar-head>span,.rail-bottom p,.case-status .tag,.document-language-note,.help{color:#666666}

.calculation{grid-template-columns:repeat(2,minmax(0,1fr))}.calculation>div{min-width:0}.calculation strong{max-width:100%;overflow-wrap:anywhere}.field-name{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.field-name .tag{display:inline-flex;width:auto;justify-self:start;font-size:9px;padding:1px 5px}.source-label{font-weight:400}

.main[aria-busy=true]{opacity:.5;pointer-events:none}#case-loading{display:block;margin-top:6px}

@media(max-width:740px){.return-row .remove-return{grid-row:auto}}

/* ExportStride trial corrections; keep the accepted visual system. */
.brand{align-items:flex-start;gap:10px;padding-inline:8px}.brand .icon{width:22px;height:22px;flex:0 0 22px;margin-top:3px}.brand>div{min-width:0}.brand strong{font-size:18px;line-height:1.3;white-space:nowrap}.brand span{font-size:10px;line-height:1.5;white-space:normal}.empty-brand{display:grid;gap:4px}.empty-brand>span{font-size:11px;color:var(--muted)}
.node-footer{margin-top:32px;border-top:1px solid var(--line);padding-top:24px;min-width:0}.node-footer-actions{display:flex;gap:14px;align-items:center;justify-content:space-between}.node-footer-actions button{min-height:44px;max-width:72ch}.node-footer .help{margin-top:12px}.file-toolbar{display:grid;grid-template-columns:minmax(220px,300px) auto auto;align-items:end;gap:16px}.file-toolbar>label{min-width:0;margin:0}.file-toolbar>button,.file-toolbar>a.button,.file-toolbar select{height:44px;min-height:44px;align-self:end;margin:0}.file-toolbar select{width:100%}
@media(max-width:740px){.brand{padding-inline:3px}.brand strong{font-size:18px}.node-footer-actions{display:grid;grid-template-columns:1fr;gap:12px}.node-footer-actions button{width:100%;max-width:100%}.file-toolbar{grid-template-columns:1fr;gap:14px}.file-toolbar>label{width:100%;min-width:0}.file-toolbar>button,.file-toolbar>a.button{width:100%}}

@media(max-width:1050px){.file-toolbar{grid-template-columns:1fr;gap:14px}.file-toolbar>label{min-width:0;width:100%}.file-toolbar>button,.file-toolbar>a.button{width:100%}}
