/* IssueGate presentation system. */
/* Static copy should not select or show an editing caret. */
body,body *{-webkit-user-select:none;user-select:none;caret-color:transparent}
body{cursor:default}
a[href],button,summary,select,[role="button"],[role="tab"]{cursor:pointer}
input:not([type]),input[type="text"],input[type="url"],input[type="search"],input[type="email"],input[type="tel"],input[type="password"],input[type="number"],textarea,[contenteditable="true"],[contenteditable="plaintext-only"],[role="textbox"]{cursor:text;-webkit-user-select:text;user-select:text;caret-color:auto}
*{box-sizing:border-box}html{scroll-padding-top:90px}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.7 var(--sans);-webkit-font-smoothing:antialiased;caret-color:transparent}body,button,input,select,textarea{font-family:var(--sans)}input,textarea,select,[contenteditable="true"],[contenteditable="plaintext-only"]{caret-color:auto}h1,h2,h3,h4,p,ul,ol{margin:0}h1,h2,h3,h4{font-weight:600;line-height:1.4}h1{font-size:44px;letter-spacing:-1.5px}h2{font-size:28px;letter-spacing:-.6px}h3{font-size:19px}p{color:var(--muted)}a{color:inherit;text-decoration:none}button,input,select,textarea{font-size:15px}button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a,button{transition:color .16s,background-color .16s,border-color .16s}button:disabled{cursor:wait;opacity:.5}:focus-visible{outline:2px solid var(--accent);outline-offset:5px}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-offset:3px}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.mono,code{font-family:var(--mono);font-size:.88em}small{font-size:13px}.meta,.note,.live-hint{color:var(--muted);font-size:13px;line-height:1.7}.small-label,.page-index,.eyebrow{display:block;color:var(--muted);font-size:12px;letter-spacing:.06em}.icon-arrow{display:inline-block;position:relative;width:16px;height:10px;margin-left:8px;vertical-align:middle}.icon-arrow:before{content:'';position:absolute;width:14px;height:1px;background:currentColor;top:4px;left:0}.icon-arrow:after{content:'';position:absolute;width:6px;height:6px;border-top:1px solid;border-right:1px solid;transform:rotate(45deg);right:2px;top:1px}.icon-external{display:inline-block;width:9px;height:9px;border-right:1px solid;border-top:1px solid;position:relative;margin-left:5px;vertical-align:middle}.icon-external:after{content:'';position:absolute;width:11px;height:1px;background:currentColor;transform:rotate(-45deg);top:4px;right:-2px}.logo-symbol{display:inline-block;width:18px;height:19px;border-left:3px solid var(--text);border-right:3px solid var(--text);position:relative}.logo-symbol:before{content:'';position:absolute;left:3px;top:7px;width:7px;height:3px;background:var(--accent)}
.nav{position:sticky;top:0;z-index:20;background:var(--bg);border-bottom:1px solid var(--line-soft)}.nav-inner{max-width:1392px;padding:0 48px;margin:auto;min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:30px}.logo{display:flex;align-items:center;gap:11px;font-size:21px;font-weight:650;letter-spacing:-.6px}.nav-links{display:flex;gap:32px;align-items:center;align-self:stretch}.nav-links a{font-size:14px;color:var(--muted);display:flex;align-items:center;position:relative;white-space:nowrap}.nav-links a:hover,.nav-links a.active{color:var(--text)}.nav-links a.active:after{content:'';position:absolute;bottom:0;left:0;right:0;height:2px;background:var(--text)}.section{display:none;max-width:1392px;padding:48px 48px 80px;margin:auto}.section.active{display:block}.page-head{margin-bottom:36px}.page-index{margin-bottom:14px}.page-head h1{max-width:960px}.page-sub{font-size:16px;max-width:760px;margin-top:16px;line-height:1.9}.section-block{margin-top:80px}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:22px}.panel-heading h2{font-size:23px}.panel-heading .meta{display:block;margin-top:4px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:10px 19px;border:1px solid var(--line);border-radius:5px;background:var(--surface);color:var(--text);font-weight:550;line-height:1.4}.btn:hover{background:var(--surface-raised);border-color:#687079}.btn.primary{background:#dfe0ff;border-color:#dfe0ff;color:#191c2d}.btn.primary:hover{background:#f0f0ff;border-color:#f0f0ff}.btn.compact{min-height:36px;font-size:13px;padding:8px 13px}.text-link,.text-btn{font-size:14px;color:var(--text)}.text-link:hover,.text-btn:hover{color:var(--accent)}.text-btn{border:0;background:transparent;padding:0;text-decoration:underline;text-underline-offset:4px}.badge{display:inline-block;font:11px/1.5 var(--mono);padding:4px 7px;border:1px solid var(--line);border-radius:3px;color:var(--muted)}.footer{max-width:1392px;margin:auto;padding:25px 48px 36px;border-top:1px solid var(--line-soft);display:flex;justify-content:space-between;gap:30px}.footer p{font-size:12px}.foot-note{max-width:530px;text-align:right}
/* Product overview */
#home{padding-top:68px}.home-hero{display:grid;grid-template-columns:1.2fr 1fr;gap:70px;align-items:end;margin-bottom:46px}.product-category{font-size:14px;color:var(--muted);margin-bottom:18px}.hero-title h1{font-size:clamp(42px,3.8vw,56px);line-height:1.32;letter-spacing:-1.9px}.hero-context{padding-bottom:4px}.hero-context>p{font-size:17px;line-height:1.9;color:#c5c9cf}.cta{display:flex;align-items:center;gap:25px;margin-top:24px}.hero-footnote{display:block;color:var(--muted);font-size:12px;margin-top:17px}.product-window{background:var(--surface);border:1px solid var(--line);border-radius:7px;overflow:hidden}.window-bar{display:flex;align-items:center;gap:28px;padding:16px 25px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}.window-brand{display:flex;align-items:center;gap:9px;color:var(--text);font-size:14px;font-weight:600}.window-brand .logo-symbol{width:13px;height:14px;border-width:2px}.window-brand .logo-symbol:before{left:2px;top:5px;width:5px;height:2px}.window-label{font:10px var(--mono);letter-spacing:.08em;margin-left:auto}.flow{display:grid;grid-template-columns:1fr 3fr 1.2fr;padding:25px 28px 28px;border-bottom:1px solid var(--line);gap:20px}.journey-stages{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.journey-stage,.journey-input,.journey-output{position:relative;display:flex;flex-direction:column;gap:6px}.flow-number{font:11px var(--mono);color:#88919b;position:relative;padding-bottom:17px}.flow-number:after{content:'';position:absolute;left:0;right:-20px;bottom:5px;height:1px;background:#46505a}.journey-output .flow-number:after{right:0;background:var(--warning)}.flow strong{font-size:14px;font-weight:550}.flow strong+span{font-size:11px;color:var(--muted)}.decision-preview{display:grid;grid-template-columns:1fr 1.28fr}.preview-source{padding:32px 36px;border-right:1px solid var(--line)}.preview-repo{display:block;font:12px var(--mono);margin-top:22px;color:var(--muted)}.preview-repo b{font-weight:400;margin-left:9px}.preview-source h2{font-size:22px;margin-top:10px;line-height:1.4;letter-spacing:-.4px}.preview-source>p{font-size:14px;margin:15px 0 24px;line-height:1.8}.preview-decision{padding:32px 36px}.preview-status{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--warning)}.preview-status code{margin-left:auto;color:var(--muted)}.status-dot{width:6px;height:6px;border-radius:50%;background:var(--warning)}.preview-decision h3{font-size:27px;margin:20px 0 10px;letter-spacing:-.6px}.preview-decision>p{font-size:15px;max-width:480px}.preview-evidence{display:flex;gap:25px;border-block:1px solid var(--line);padding:15px 0;margin:24px 0 18px;font-size:12px;color:var(--muted)}.preview-evidence b{color:var(--text);font-weight:500}.preview-caveat{display:flex;gap:18px;align-items:baseline;font-size:12px}.preview-caveat>span{white-space:nowrap;color:var(--warning)}.preview-caveat a{white-space:nowrap;text-decoration:underline;text-underline-offset:3px}.proof-strip{display:grid;grid-template-columns:1.1fr .8fr 1.15fr .85fr;gap:30px;padding:35px 0 27px;border-bottom:1px solid var(--line-soft)}.proof-strip>div:not(:first-child){padding-left:24px;border-left:1px solid var(--line-soft)}.proof-strip strong{display:block;font-size:29px;font-weight:450;line-height:1.3;font-variant-numeric:tabular-nums;letter-spacing:-.8px}.proof-strip strong small{font:12px var(--mono);color:var(--muted);margin-left:6px;letter-spacing:0}.proof-strip span{display:block;font-size:12px;color:var(--muted);margin-top:8px}.proof-caption{font-size:15px}.proof-caption a{font-size:12px;color:var(--muted)}.safety-strip{display:flex;justify-content:space-between;gap:16px;padding:20px 0;font-size:12px;color:var(--success)}.safety-strip>span:first-child{color:var(--muted)}.why-intro{display:grid;grid-template-columns:1fr 2.2fr;gap:70px;margin-bottom:40px}.why-intro h2{font-size:23px}.why-lead{font-size:28px;line-height:1.65;letter-spacing:-.5px;color:var(--text)}.why-table-head,.why-scenario{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:55px}.why-table-head{padding:13px 0;color:var(--muted);font-size:12px;border-bottom:1px solid var(--line)}.why-scenario{padding:28px 0;border-bottom:1px solid var(--line-soft);align-items:center}.why-number{font:11px var(--mono);color:var(--muted)}.why-scenario h3{font-size:19px;margin:7px 0}.why-scenario p{font-size:15px}.why-scenario>div:last-child p{color:#d0d6dc}.mobile-label{display:block;color:var(--muted);font-size:11px;line-height:1.5;margin-bottom:5px}.why-takeaway{display:flex;justify-content:space-between;gap:40px;align-items:center;margin-top:32px}.why-takeaway>strong{font-size:18px;font-weight:500}.why-path{display:flex;align-items:center;gap:14px;font-size:12px;color:var(--muted);white-space:nowrap}.why-path i{width:18px;height:1px;background:#68717b;position:relative}.why-path i:after{content:'';position:absolute;right:0;top:-2px;width:4px;height:4px;border-right:1px solid #68717b;border-top:1px solid #68717b;transform:rotate(45deg)}
/* Workspace */
#demo{max-width:1512px}.workspace-head{display:flex;gap:45px;justify-content:space-between;align-items:flex-start}.workspace-head h1{font-size:36px;letter-spacing:-1px;margin-top:8px}.runtime{flex:0 0 auto;padding-top:9px;text-align:right}.backend-status{font-size:12px;color:var(--muted)}.backend-status.ok{color:var(--success)}.backend-status.off{color:var(--warning)}.runtime-note{font-size:11px;color:var(--muted)}.mode-toggle{display:flex;gap:30px;border-bottom:1px solid var(--line);margin-bottom:26px}.mode-btn{border:0;background:none;color:var(--muted);padding:12px 0;font-size:15px;position:relative}.mode-btn span{font-size:11px;margin-left:5px}.mode-btn.active{color:var(--text)}.mode-btn.active:after{content:'';height:2px;position:absolute;left:0;right:0;bottom:-1px;background:var(--accent)}.live-input{padding:26px 28px;background:var(--surface);border:1px solid var(--line);border-radius:6px}.input-row{display:grid;grid-template-columns:minmax(0,1fr) 185px 155px;gap:16px;align-items:end}.input-row label{display:block;font-size:13px;color:#c5cbd2;margin-bottom:8px}input,select,textarea{background:var(--bg);border:1px solid #485059;border-radius:4px;color:var(--text);min-width:0}input{height:48px;padding:0 14px;width:100%;font-size:15px}input::placeholder{color:#868e97}select{height:42px;padding:0 10px;max-width:100%}.input-row select{height:48px;width:100%;font-size:13px}.input-row .btn{height:48px}.input-meta{display:flex;justify-content:space-between;gap:20px;margin-top:15px}.input-meta .text-btn{font-size:12px}.input-meta .live-hint .text-btn{margin-left:14px}#model-hint{font-size:12px;margin-top:6px}.explain-flow{margin:32px 0 26px}.explain-flow-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:16px}.explain-flow-head .eyebrow{display:none}.explain-flow-head h2{font-size:19px}.flow-state{font-size:12px;color:var(--muted)}.explain-steps{display:flex;align-items:stretch}.explain-step{flex:1;min-width:0;padding:14px 0;display:flex;gap:12px}.explain-index{font:11px var(--mono);color:var(--muted);padding-top:5px}.explain-step strong{font-size:14px;font-weight:500}.explain-step p{font-size:12px;margin-top:6px;max-width:180px}.explain-connector{width:25px;flex:0 0 25px;height:1px;background:var(--line);margin:25px 13px 0 0}.explain-step.is-complete .explain-index{color:var(--success)}.status-panel{display:flex;align-items:center;justify-content:space-between;gap:30px;border-top:1px solid var(--line-soft);padding:22px 0;margin-top:10px}.status-panel strong{font-size:15px;font-weight:500}.status-panel p{font-size:13px;margin-top:4px}.status-panel.error{border-color:var(--danger)}.status-panel.error strong{color:var(--danger)}.status-actions{display:flex;gap:10px;flex-shrink:0}.empty-steps{display:none}.loading-panel{margin-top:30px;border-top:1px solid var(--line);padding:25px 0}.loading-timeline{display:grid;grid-template-columns:repeat(5,1fr);gap:20px;margin:25px 0}.loading-timeline .tl-item{display:block}.loading-timeline .tl-number{display:block;margin-bottom:12px}.loading-timeline .stage-state{display:block;margin-left:0}.replay-banner{font-size:13px;color:var(--warning);padding:12px 0;border-bottom:1px solid var(--line-soft)}.case-selector{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.case-chip{border:1px solid var(--line);border-radius:4px;background:transparent;color:var(--muted);padding:8px 13px;font-size:13px}.case-chip.active{color:var(--text);background:var(--surface-raised);border-color:#5c636b}.replay-story{border-bottom:1px solid var(--line);margin-bottom:30px;padding:8px 0 28px}.story-head{display:flex;align-items:center;justify-content:space-between;gap:30px}.story-head h2{font-size:23px;margin:8px 0}.story-situation{font-size:14px}.story-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px 50px;margin-top:25px}.story-grid>div:first-child{display:none}.story-grid>div:last-child{display:none}.story-grid p{font-size:14px;margin-top:5px}.story-result{display:flex;align-items:center;gap:20px;margin-top:20px}.story-result strong{font-weight:500;font-size:15px}.route-en{font:12px/1.7 var(--mono);color:var(--muted)}
/* Response, action, sources, progressively disclosed technical records */
#analysis-results{margin-top:28px;scroll-margin-top:100px}.result-summary{border-left:3px solid var(--warning);background:var(--surface);padding:28px 32px}.result-summary[data-route=ready_for_coding]{border-color:var(--success)}.summary-top{display:flex;justify-content:space-between;gap:18px;margin-bottom:20px}.summary-main{display:flex;justify-content:space-between;align-items:center;gap:24px}.result-route{font-size:30px;letter-spacing:-.5px}.summary-main .route-en{display:block;margin-top:7px}.admission{font-size:12px;padding:6px 9px;border:1px solid var(--line);border-radius:3px;white-space:nowrap;color:var(--warning)}.admission.approved{color:var(--success)}.result-explanation{display:grid;grid-template-columns:1fr 1.3fr;gap:40px;border-top:1px solid var(--line);padding-top:20px;margin-top:22px}.result-explanation p{font-size:15px;line-height:1.85;color:#c8cdd3;margin-top:6px}.missing-info{margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.missing-info ul{padding-left:20px;margin-top:8px;font-size:15px;color:#d4d8dd}.missing-info li+li{margin-top:6px}.result-next-action{margin-top:24px;display:flex;gap:24px;align-items:baseline}.result-next-action .meta{flex-shrink:0}.result-next-action strong{font-size:16px;font-weight:500}.summary-facts{display:flex;gap:30px;margin-top:24px;border-top:1px solid var(--line);padding-top:15px;font-size:12px;color:var(--muted)}.summary-facts b{font-weight:500;color:var(--text);margin-left:5px}.result-grid{margin-top:32px;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(330px,1fr);gap:35px 45px}.reply-card{grid-column:1;min-width:0}.evidence-card{grid-column:1/-1;padding-top:28px;border-top:1px solid var(--line);min-width:0}.result-support{grid-column:2;grid-row:1}.guardrail-card,.sufficiency-card,.run-card{min-width:0}.result-support>details{border-bottom:1px solid var(--line);padding:0 0 18px;margin-bottom:20px}.result-support summary{font-size:16px;font-weight:500;cursor:pointer}.result-support summary .meta{display:block;font-size:12px;padding-left:17px;font-weight:400}.result-support details[open] summary{margin-bottom:20px}.result-support .panel-heading{display:none}.reply-language select{height:32px;font-size:12px}.reply-card textarea{width:100%;resize:vertical;min-height:270px;padding:18px;line-height:1.85;font-size:14px;background:var(--surface);border-color:var(--line)}.reply-actions{display:flex;align-items:center;gap:16px;margin:14px 0 9px}.evidence-tabs{display:flex;flex-wrap:wrap;gap:5px;border-bottom:1px solid var(--line);padding-bottom:13px;margin-bottom:0}.ev-tab{background:transparent;border:0;border-radius:3px;padding:7px 12px;color:var(--muted);font-size:13px}.ev-tab span{font:11px var(--mono);margin-left:6px}.ev-tab.active{background:var(--surface-raised);color:var(--text)}#evidence-panel{max-height:620px;overflow:auto;overscroll-behavior:contain;scrollbar-color:#505962 transparent}.ev-item{position:relative;padding:24px 0;border-bottom:1px solid var(--line-soft);display:grid;grid-template-columns:150px minmax(0,1fr);column-gap:24px}.ev-head{grid-column:1;grid-row:1/5;padding-top:2px}.ev-kind{font-size:12px;color:var(--muted)}.ev-title{font-size:16px;overflow-wrap:anywhere}.ev-source{font:12px/1.8 var(--mono);color:var(--muted);overflow-wrap:anywhere;margin-top:6px}.ev-source a:hover{color:var(--accent)}.evidence-why{font-size:13px;margin-top:10px}.evidence-why strong{font-weight:400;margin-right:8px;color:var(--text)}.evidence-detail{margin-top:12px;grid-column:2}.evidence-detail summary{cursor:pointer;display:flex;justify-content:space-between;gap:25px;font-size:13px;color:var(--muted);align-items:baseline}.ev-excerpt{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:80%;font-family:var(--mono);font-size:12px}.expand-label{font-size:12px;white-space:nowrap;color:var(--text)}.evidence-detail:not([open]) .when-open,.evidence-detail[open] .when-closed{display:none}.evidence-detail[open] .ev-excerpt{display:none}.ev-full,pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.85 var(--mono);background:var(--bg);padding:18px;margin-top:15px;color:#c6cdd4;max-height:360px;overflow:auto}.ev-id{display:block;font:11px var(--mono);margin-top:12px;color:var(--muted)}.empty-evidence{padding:30px 0}.check-item{display:flex;justify-content:space-between;gap:20px;padding:11px 0;border-bottom:1px solid var(--line-soft);font-size:13px}.ok{color:var(--success)}.warn,.bad-text{color:var(--warning)}.unknown{color:var(--muted)}.sufficiency-card .note,.guardrail-card .note{font-size:12px;margin-top:12px}.gate-flow{display:flex;flex-direction:column;border-left:1px solid var(--line);padding-left:16px;gap:12px;margin-bottom:20px}.gate-flow>span{display:none}.gate-flow strong{display:block;font-size:13px;font-weight:500}.admission-note{font-size:13px;color:var(--warning);margin-top:18px}.gate-warnings{margin-top:15px;font-size:12px}.gate-warnings ul{padding-left:18px}.tl-item{display:flex;gap:18px;padding:12px 0;border-bottom:1px solid var(--line-soft)}.tl-number{font:11px var(--mono);color:var(--muted);padding-top:6px}.tl-title{font-size:14px}.stage-state{font-size:11px;margin-left:12px;color:var(--muted)}.tl-item.complete .stage-state{color:var(--success)}.tl-item.blocked .stage-state{color:var(--warning)}.tl-detail{font-size:12px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}.run-details{grid-column:1/-1;border-top:1px solid var(--line);padding-top:20px}.run-details>summary{cursor:pointer;font-size:16px}.run-details>summary .meta{margin-left:10px}.run-details[open]>summary{margin-bottom:25px}.run-detail-layout{display:grid;grid-template-columns:1fr 1fr;gap:45px}.run-card .panel-heading h2{font-size:19px}.issue-title{font-size:18px;margin:12px 0}.issue-body{font-size:13px}.issue-body p{white-space:pre-wrap;margin-top:15px}.detail-grid{display:grid;grid-template-columns:140px 1fr;font-size:13px;margin:20px 0}.detail-grid dt,.detail-grid dd{padding:8px 0;border-bottom:1px solid var(--line-soft);margin:0;overflow-wrap:anywhere}.detail-grid dt{color:var(--muted)}.technical-details{font-size:13px}.technical-details summary{cursor:pointer}.gate-warnings li{overflow-wrap:anywhere}
/* Evaluation: measurements and calibration */
.eval-caption{display:flex;justify-content:space-between;gap:25px;padding:15px 0;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}.evaluation-overview{display:grid;grid-template-columns:1fr 1.5fr 1fr;padding:32px 0;border-bottom:1px solid var(--line)}.evaluation-overview>div{display:flex;flex-direction:column;padding-left:40px;border-left:1px solid var(--line)}.evaluation-overview>div:first-child{padding-left:0;border:0}.evaluation-overview span{font-size:13px;color:#ccd1d6}.evaluation-overview strong{font-size:42px;line-height:1.3;font-weight:450;margin:12px 0;letter-spacing:-1px;font-variant-numeric:tabular-nums}.evaluation-overview small{color:var(--muted);font-size:12px}.evaluation-overview strong small{font:15px var(--mono);letter-spacing:0;margin-left:10px}.eval-split{display:grid;grid-template-columns:1.1fr 1fr;gap:65px;margin:48px 0}.eval-split h2{font-size:23px}.eval-split .panel-heading{display:block}.eval-split .panel-heading>.meta{margin-top:8px}.route{display:grid;grid-template-columns:1fr auto;padding:18px 0;gap:14px}.route>div:first-child{display:flex;align-items:baseline;gap:15px}.route strong{font-size:15px;font-weight:500}.route code{color:var(--muted);font-size:12px}.route-val{font:16px var(--mono)}.bar{grid-column:1/-1;height:5px;background:var(--surface-raised)}.bar-fill{height:100%;background:var(--warning)}.route-needs-info{width:92.857%;background:var(--success)}.route-ready{width:0}.route-docs{width:33.333%}.eval-route-section>.note{margin-top:14px}.safety-section{border-left:1px solid var(--line);padding-left:45px}.safety-section .panel-heading{display:flex;align-items:baseline;margin-bottom:13px}.safety-section>p{font-size:14px}.verified-label{font-size:12px;color:var(--success)}.safety-ledger{list-style:none;padding:0;margin:18px 0}.safety-ledger li{display:flex;justify-content:space-between;align-items:center;padding:13px 0;border-bottom:1px solid var(--line-soft);font-size:14px}.safety-ledger strong{font:18px var(--mono);color:var(--success)}.safety-ledger strong small{font:11px var(--sans);color:var(--muted)}.calibration{display:grid;grid-template-columns:1fr 1.1fr;gap:60px;padding:35px 40px;background:var(--surface);border-top:1px solid #6b6251}.calibration h2{margin:10px 0 18px}.calibration p{font-size:15px}.calibration-findings>div{padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid var(--line)}.calibration-findings span{display:block;color:var(--muted);font-size:12px}.calibration-findings strong{display:block;font-size:18px;font-weight:500;margin:4px 0}.calibration-findings p{font-size:13px}.calibration-findings .next-priority{border:0;padding:0;margin:0}.next-priority strong{color:var(--warning)}.next-priority code{font-size:12px;color:var(--muted)}.eval-method{display:grid;grid-template-columns:1fr 1.7fr;gap:80px;margin-top:64px}.eval-method h2{font-size:24px;margin-bottom:15px}.eval-method p{font-size:15px}.eval-method dl{margin:0;display:grid;grid-template-columns:100px 1fr;gap:0 30px}.eval-method dt,.eval-method dd{margin:0;font-size:14px;border-bottom:1px solid var(--line-soft);padding:16px 0}.eval-method dd{color:var(--muted)}.page-next{display:flex;justify-content:space-between;gap:30px;border-top:1px solid var(--line);padding-top:25px;margin-top:60px;font-size:19px}.page-next>span{font-size:14px;color:var(--muted)}
/* Responsive: maintain hierarchy, change arrangement rather than shrink text. */
@media(min-width:1700px){.section{padding-top:62px}#home{padding-top:80px}.home-hero{gap:90px;margin-bottom:52px}.hero-title h1{font-size:56px}.preview-source,.preview-decision{padding-block:38px}}
@media(max-width:1150px){.nav-inner,.section{padding-inline:32px}.nav-links{gap:24px}.home-hero{gap:40px}.hero-title h1{font-size:44px}.hero-context>p{font-size:15px}.cta{gap:18px}.cta .btn{font-size:13px}.flow{padding-inline:20px;gap:14px}.journey-stages{gap:14px}.flow strong{font-size:12px}.flow-number:after{right:-14px}.preview-source,.preview-decision{padding:28px}.proof-strip{gap:20px}.proof-strip>div:not(:first-child){padding-left:18px}.proof-strip strong{font-size:25px}.why-intro{gap:40px}.why-lead{font-size:25px}.why-scenario,.why-table-head{gap:30px}.why-takeaway{display:block}.why-path{margin-top:20px}.workspace-head{gap:25px}.workspace-head h1{font-size:32px}.explain-step{gap:7px}.explain-connector{width:12px;flex-basis:12px;margin-right:8px}.explain-step strong{font-size:13px}.explain-step p{font-size:12px}.result-grid{grid-template-columns:minmax(0,1.1fr) minmax(300px,1fr);gap:30px}.eval-split{gap:35px}.safety-section{padding-left:30px}.calibration{gap:40px;padding:30px}.eval-method{gap:50px}}
@media(max-width:900px){.nav-inner{gap:20px}.nav-links{gap:18px}.nav-links a{font-size:13px}.home-hero{grid-template-columns:1fr;gap:25px}.hero-context>p br{display:none}.hero-context>p{max-width:650px;font-size:16px}.hero-title h1{font-size:46px}.cta{margin-top:20px}.hero-footnote{display:none}.decision-preview{grid-template-columns:1fr 1.1fr}.preview-source,.preview-decision{padding:24px}.preview-source h2{font-size:19px}.preview-decision h3{font-size:23px}.preview-evidence{gap:14px;flex-wrap:wrap}.proof-strip{grid-template-columns:1fr 1fr;gap:25px}.proof-strip>div:not(:first-child){border:0;padding-left:0}.proof-strip>div:nth-child(even){border-left:1px solid var(--line);padding-left:30px}.safety-strip{flex-wrap:wrap;justify-content:flex-start;gap:12px 25px}.why-intro{grid-template-columns:1fr;gap:25px}.why-scenario,.why-table-head{gap:25px}.why-scenario p{font-size:14px}.workspace-head{display:block}.runtime{display:flex;gap:16px;text-align:left;margin-top:18px}.result-grid{grid-template-columns:1fr}.result-support{grid-column:1;grid-row:auto;display:grid;grid-template-columns:1fr 1fr;gap:30px}.result-grid{display:flex;flex-direction:column}.result-support{order:1}.reply-card{order:2}.evidence-card{order:3}.run-details{order:4}.reply-card{grid-row:1}.result-explanation{gap:25px}.run-detail-layout{grid-template-columns:1fr;gap:30px}.eval-split{grid-template-columns:1fr;gap:36px}.safety-section{border-left:0;border-top:1px solid var(--line);padding:25px 0 0}.safety-ledger{display:grid;grid-template-columns:1fr 1fr;column-gap:40px}.calibration{grid-template-columns:1fr;gap:30px}.eval-method{grid-template-columns:1fr;gap:25px}.footer{padding-inline:32px;display:block}.foot-note{text-align:left;margin-top:10px}.loading-timeline{grid-template-columns:1fr}.loading-timeline .tl-item{display:flex}}
@media(max-width:620px){h1{font-size:34px;letter-spacing:-.8px}h2{font-size:25px}.nav-inner{padding:0 20px;min-height:102px;display:block}.logo{height:52px;font-size:19px}.nav-links{height:50px;gap:0;justify-content:space-between;overflow-x:auto}.nav-links a{font-size:12px;min-height:44px}.nav-links .gh{display:none}.section{padding:30px 20px 55px}#home{padding-top:34px}.page-head{margin-bottom:27px}.page-sub{font-size:15px;line-height:1.85}.product-category{font-size:12px;margin-bottom:14px}.hero-title h1{font-size:37px;line-height:1.4;letter-spacing:-1.2px}.home-hero{gap:20px;margin-bottom:30px}.hero-context>p{font-size:15px}.cta{gap:17px;flex-wrap:wrap}.cta .btn{font-size:13px;padding-inline:14px}.text-link{font-size:13px}.window-bar{padding:13px 16px;gap:17px;font-size:11px}.window-label{display:none}.flow{display:block;padding:16px}.journey-stages{display:block}.journey-input,.journey-stage,.journey-output{display:grid;grid-template-columns:27px 1fr;gap:2px 10px;padding:10px 0}.flow-number{grid-row:1/3;padding:4px 0 0}.flow-number:after{left:8px;right:auto;width:1px;top:24px;bottom:-7px;height:auto}.journey-output .flow-number:after{display:none}.flow strong{font-size:13px}.flow strong+span{font-size:11px}.decision-preview{grid-template-columns:1fr}.preview-source{border-right:0;border-bottom:1px solid var(--line);padding:22px}.preview-source h2{font-size:20px}.preview-source>p br,.preview-source h2 br{display:none}.preview-source>p{margin:12px 0 16px}.preview-repo{margin-top:14px}.preview-decision{padding:22px}.preview-decision h3{font-size:23px;margin-top:15px}.preview-decision>p{font-size:14px}.preview-evidence{margin:19px 0 15px;gap:17px;font-size:11px}.preview-caveat{display:block}.preview-caveat p{margin-top:4px}.proof-strip{padding:27px 0;gap:27px 20px;grid-template-columns:1fr 1.2fr}.proof-strip>div:nth-child(even){padding-left:18px}.proof-strip strong{font-size:26px}.proof-strip strong small{display:block;margin:6px 0 0;font-size:11px}.proof-strip span{font-size:11px}.proof-caption{font-size:14px}.safety-strip{display:grid;gap:8px;font-size:12px;padding-top:18px}.section-block{margin-top:48px}.why-intro{gap:20px;margin-bottom:25px}.why-intro h2{font-size:22px}.why-lead{font-size:22px;line-height:1.75}.why-table-head{display:none}.why-scenario{display:block;padding:26px 0;border-top:1px solid var(--line);border-bottom:0}.why-scenario>div+div{margin-top:15px}.why-scenario p{font-size:15px}.mobile-label{display:block;color:var(--muted);font-size:11px;margin-bottom:5px}.why-takeaway{border-top:1px solid var(--line);padding-top:22px;margin-top:0}.why-takeaway>strong{font-size:18px}.why-path{white-space:normal;flex-wrap:wrap;gap:9px;font-size:11px}.why-path i{width:10px}.workspace-head h1{font-size:29px;line-height:1.5}.runtime{display:block}.runtime-note{display:block;margin-top:4px}.mode-toggle{gap:26px;margin-bottom:20px}.mode-btn{font-size:14px}.live-input{padding:18px}.input-row{grid-template-columns:minmax(0,1fr) 120px;gap:16px 12px}.url-field{grid-column:1/-1}.input-row .btn{grid-column:2;grid-row:2;font-size:13px;padding-inline:10px}.model-field{grid-column:1;grid-row:2}.model-field label{font-size:11px}.input-row input{font-size:13px}.input-row select{font-size:12px}.input-meta{display:block}.input-meta .live-hint .text-btn{display:block;margin:6px 0}.input-meta>#refresh-backend{margin-top:5px}#model-hint{font-size:11px;margin-top:10px}.explain-flow{margin-block:25px}.explain-flow-head{display:block}.explain-flow-head h2{font-size:18px}.flow-state{display:block;margin-top:6px}.explain-steps{display:block}.explain-step{padding:10px 0;gap:15px}.explain-step p{max-width:none;margin-top:2px}.explain-step strong{font-size:14px}.explain-connector{display:none}.status-panel{display:block}.status-actions{margin-top:18px}.story-head{display:block}.story-action{margin-top:16px}.story-head h2{font-size:20px}.story-grid{grid-template-columns:1fr;gap:15px}.story-result{flex-wrap:wrap;gap:10px}.replay-banner{font-size:12px}.case-chip{font-size:12px;padding:8px 10px}.result-summary{padding:21px 19px}.summary-top{display:block}.summary-top>.meta{display:block;margin-top:5px}.summary-main{display:block}.result-route{font-size:24px}.admission{display:inline-block;margin-top:12px}.result-explanation{grid-template-columns:1fr;gap:20px}.result-explanation p,.missing-info ul{font-size:14px}.result-next-action{display:block}.result-next-action strong{display:block;margin-top:7px;font-size:15px}.summary-facts{display:grid;gap:8px;font-size:11px}.summary-facts b{float:right}.result-support{display:block}.result-grid{gap:25px}.panel-heading h2{font-size:21px}.panel-heading{gap:12px}.reply-card textarea{font-size:14px;min-height:300px}.evidence-card .panel-heading{display:block}#evidence-count{margin-top:12px}.ev-tab{padding:8px;font-size:12px}.ev-item{display:block;padding:20px 0}.ev-head{margin-bottom:7px}.ev-title{font-size:15px}.evidence-why{font-size:12px}.evidence-why strong{display:block}.ev-source{font-size:11px}.ev-full{font-size:11px;padding:12px}.evidence-detail summary{gap:12px}.ev-excerpt{max-width:65%}.detail-grid{grid-template-columns:95px 1fr;font-size:12px}.run-details .panel-heading h2{font-size:19px}.evaluation-overview{grid-template-columns:1fr 1fr;padding:24px 0;gap:25px}.evaluation-overview>div{padding-left:20px}.evaluation-overview>div:last-child{grid-column:1/-1;border:0;padding:20px 0 0;border-top:1px solid var(--line-soft)}.evaluation-overview strong{font-size:31px}.evaluation-overview strong small{display:block;font-size:12px;margin:6px 0 0}.evaluation-overview span,.evaluation-overview small{font-size:11px}.eval-caption{display:block;font-size:11px}.eval-caption>span{display:block}.eval-split{margin:30px 0;gap:28px}.route>div:first-child{display:block}.route code{display:block;margin-top:3px;font-size:11px}.safety-ledger{display:block}.calibration{padding:24px}.calibration h2{font-size:24px}.calibration p{font-size:14px}.eval-method{margin-top:40px}.eval-method dl{grid-template-columns:70px 1fr;gap:0 15px}.eval-method dt,.eval-method dd{font-size:13px}.page-next{display:block;font-size:18px;margin-top:40px}.page-next>span{display:block;margin-top:12px}.footer{padding:22px 20px}.footer p{font-size:11px}.reply-actions{align-items:flex-start}.reply-actions>.note{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}


/* Architecture: one open canvas, then a compact system-layer index. */
#architecture { max-width: 1280px; }
#architecture .arch-page-heading { display: grid; grid-template-columns: 1.05fr 1fr; align-items: end; gap: 72px; margin-bottom: 52px; }
#architecture .arch-page-heading h1 { margin: 0; color: var(--text); font-size: clamp(36px, 3.3vw, 46px); line-height: 1.24; letter-spacing: -.04em; font-weight: 620; }
#architecture .arch-page-intro p { max-width: 475px; margin: 0; color: var(--text); font-size: 16px; line-height: 1.9; }
#architecture .arch-page-intro > span { display: block; margin-top: 18px; color: var(--muted); font-size: 12px; letter-spacing: .035em; }
#architecture .arch-board { min-width: 0; border: 0; border-radius: 0; background: none; }
#architecture .arch-board::before { display: none; }
#architecture .arch-canvas-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; border-block: 1px solid var(--line); }
#architecture .arch-canvas-heading h2 { margin: 0; color: var(--text); font-size: 20px; line-height: 1.4; font-weight: 550; letter-spacing: -.02em; }
#architecture .arch-canvas-heading > span { color: var(--muted); font-size: 13px; }
#architecture .arch-canvas-legend { display: flex; flex-wrap: wrap; gap: 8px 19px; padding: 13px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
#architecture .arch-canvas-legend span { display: inline-flex; align-items: center; gap: 7px; }
#architecture .arch-canvas-legend span::before { content: ""; width: 18px; height: 1px; background: var(--line); }
#architecture .arch-canvas-legend .legend-agent::before { background: var(--text); }
#architecture .arch-canvas-legend .legend-evidence::before { background: var(--accent); }
#architecture .arch-canvas-legend .legend-policy::before { background: var(--warning); }
#architecture .arch-canvas-legend .legend-output::before { background: var(--success); }
#architecture .arch-mobile-overview { display: none; }
#architecture .arch-mobile-overview-wire { fill: none; stroke: var(--accent); stroke-width: 1.1; vector-effect: non-scaling-stroke; }
#architecture .arch-mobile-overview-node rect { fill: var(--surface); stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
#architecture .arch-mobile-overview-node text { fill: var(--muted); font: 8px/1 var(--mono); letter-spacing: .06em; }
#architecture .arch-mobile-overview-node .arch-mobile-overview-label { fill: var(--text); font: 11px/1 var(--sans); font-weight: 550; }
#architecture .arch-mobile-overview-evidence rect { stroke: var(--accent); }
#architecture .arch-mobile-overview-gate rect { fill: color-mix(in srgb, var(--accent) 10%, var(--surface)); stroke: var(--accent); }
#architecture .arch-mobile-overview-output rect { fill: color-mix(in srgb, var(--success) 9%, var(--surface)); stroke: var(--success); }
#architecture .arch-canvas { position: relative; height: 930px; margin-top: 16px; background-image: radial-gradient(circle, color-mix(in srgb, var(--line) 45%, transparent) .6px, transparent .8px); background-size: 18px 18px; }
#architecture .arch-connectors { position: absolute; inset: 0; width: 100%; height: 885px; overflow: visible; pointer-events: none; }
#architecture .arch-wire { fill: none; stroke: color-mix(in srgb, var(--muted) 63%, transparent); stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; color: var(--muted); }
#architecture .arch-wire path { vector-effect: non-scaling-stroke; }
#architecture .arch-wire-evidence { stroke: var(--accent); color: var(--accent); opacity: .78; }
#architecture .arch-wire-branch { stroke: var(--muted); opacity: .78; }
#architecture .arch-junction { fill: var(--muted); }
#architecture .arch-source { position: absolute; top: 24px; left: 1%; width: 18%; min-height: 68px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); }
#architecture .arch-source-mark { display: flex; width: 22px; height: 22px; flex: 0 0 auto; color: var(--muted); }
#architecture .arch-source strong { display: block; color: var(--text); font-size: 15px; line-height: 1.45; font-weight: 580; }
#architecture .arch-source span:not(.arch-source-mark) { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
#architecture .arch-source-note { position: absolute; left: 23%; top: 28px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
#architecture .arch-agent { position: absolute; left: 1%; right: 1%; top: 112px; }
#architecture .arch-component-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
#architecture .arch-component-heading h3 { margin: 0; color: var(--text); font-size: 15px; line-height: 1.5; font-weight: 560; }
#architecture .arch-agent .arch-component-heading h3 { padding-right: 12px; background: var(--bg); }
#architecture .arch-component-heading > span { color: var(--muted); font-size: 11px; letter-spacing: .025em; }
#architecture .arch-agent-track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 4.4%; margin-top: 19px; }
#architecture .agent-step { min-width: 0; height: 108px; padding: 13px 16px; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: var(--surface); box-shadow: none; }
#architecture .arch-step-index { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; line-height: 1; font-variant-numeric: tabular-nums; }
#architecture .agent-step strong { display: block; color: var(--text); font-size: 19px; line-height: 1.3; font-weight: 560; }
#architecture .agent-step p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; white-space: nowrap; }
#architecture .arch-step-retrieve { border-top-color: var(--accent); }
#architecture .arch-step-retrieve .arch-step-index { color: var(--accent); }
#architecture .arch-evidence { position: absolute; left: 4.2%; top: 313px; width: 62.1%; }
#architecture .arch-evidence-sources { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 18px; color: var(--muted); font-size: 12px; line-height: 1.5; }
#architecture .arch-evidence-sources span { position: relative; }
#architecture .arch-evidence-sources span + span::before { content: ""; position: absolute; top: 7px; left: -10px; height: 3px; width: 3px; border-radius: 50%; background: var(--line); }
#architecture .arch-retrieval-track { display: grid; grid-template-columns: 25% 22.3% 31%; justify-content: space-between; align-items: center; margin-top: 47px; }
#architecture .arch-retrieval-inputs { display: grid; gap: 12px; }
#architecture .arch-retrieval-method { height: 44px; padding: 6px 10px; border-left: 2px solid var(--line); background: var(--surface); }
#architecture .arch-retrieval-method span, #architecture .arch-fusion > span, #architecture .arch-snapshot > span { display: block; color: var(--muted); font-size: 11px; line-height: 1.35; }
#architecture .arch-retrieval-method strong { display: block; margin-top: 1px; color: var(--text); font-size: 13px; line-height: 1.3; font-weight: 580; }
#architecture .arch-fusion, #architecture .arch-snapshot { min-height: 64px; padding: 11px 12px; border-block: 1px solid var(--line); background: var(--surface); }
#architecture .arch-fusion strong, #architecture .arch-snapshot strong { display: block; margin-top: 6px; color: var(--text); font-size: 13px; line-height: 1.3; font-weight: 580; white-space: nowrap; }
#architecture .arch-snapshot { border-top-color: var(--accent); background: var(--surface-raised); }
#architecture .arch-evidence-caption { margin: 22px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
#architecture .arch-loop-key { display: inline-block; vertical-align: 3px; width: 15px; height: 1px; margin-right: 8px; background: var(--accent); }
#architecture .arch-assessment { position: absolute; top: 348px; left: 81.5%; width: 17%; min-height: 127px; padding: 13px 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
#architecture .arch-small-label { display: block; color: var(--muted); font-size: 11px; line-height: 1.5; letter-spacing: .015em; }
#architecture .arch-assessment h3 { margin: 6px 0 0; color: var(--text); font-size: 18px; line-height: 1.5; font-weight: 550; }
#architecture .arch-assessment p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
#architecture .arch-assessment p strong { color: var(--text); font-weight: 500; }
#architecture .arch-admission-context { position: absolute; top: 621px; left: 9%; width: 26%; }
#architecture .arch-admission-context h3 { margin: 8px 0 0; color: var(--text); font-size: 20px; line-height: 1.55; font-weight: 520; letter-spacing: -.02em; }
#architecture .arch-gate { position: absolute; top: 589px; left: calc(50% - 68px); width: 136px; height: 136px; display: grid; place-items: center; background: none; border: 0; padding: 0; }
#architecture .arch-gate-shape { position: absolute; inset: 0; width: 136px; height: 136px; color: var(--accent); }
#architecture .arch-gate > div { position: relative; text-align: center; }
#architecture .arch-gate strong { display: block; color: var(--text); font-size: 16px; line-height: 1.4; font-weight: 580; }
#architecture .arch-gate span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
#architecture .arch-gate-criteria { position: absolute; top: 626px; left: 67%; width: 27%; }
#architecture .arch-gate-criteria p { margin: 8px 0 0; color: var(--text); font-size: 13px; line-height: 1.5; }
#architecture .arch-gate-criteria p + p { margin-top: 4px; }
#architecture .arch-outcomes { position: absolute; top: 792px; left: 7%; right: 7%; display: grid; grid-template-columns: 1fr 1fr; gap: 20%; }
#architecture .architecture-branch { position: relative; min-width: 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); background: none; border-radius: 0; }
#architecture .architecture-branch::before, #architecture .architecture-branch::after { display: none; }
#architecture .arch-branch-rule { position: absolute; top: -1px; left: 0; width: 36px; height: 1px; background: var(--warning); }
#architecture .arch-coding .arch-branch-rule { background: var(--success); }
#architecture .architecture-branch h3 { margin: 5px 0 0; color: var(--text); font-size: 20px; line-height: 1.4; font-weight: 550; }
#architecture .architecture-branch p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
#architecture .arch-route-list { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 12px; }
#architecture .arch-route-list code, #architecture .arch-route-list > span { color: var(--muted); font-size: 11px; line-height: 1.5; background: none; }
#architecture .arch-coding .arch-route-list code { color: var(--success); }
#architecture .arch-canvas-footnote { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.7; }
#architecture .arch-stack { margin-top: 86px; }
#architecture .arch-stack-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: end; margin-bottom: 32px; }
#architecture .arch-stack-heading h2 { margin: 0; color: var(--text); font-size: clamp(26px, 2.5vw, 32px); line-height: 1.4; letter-spacing: -.03em; font-weight: 550; }
#architecture .arch-stack-heading p { max-width: 410px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
#architecture .arch-stack-table { border-top: 1px solid var(--line); }
#architecture .arch-stack-row { display: grid; grid-template-columns: 32px 145px 1fr 1.12fr; gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: start; }
#architecture .arch-stack-number { padding-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.7; font-variant-numeric: tabular-nums; }
#architecture .arch-stack-row h3 { margin: 0; color: var(--text); font-size: 17px; line-height: 1.6; font-weight: 550; }
#architecture .arch-stack-row p { max-width: 365px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
#architecture .arch-stack-row > div { display: flex; flex-wrap: wrap; gap: 7px 13px; }
#architecture .arch-stack-row > div > span { color: var(--text); font-size: 12px; line-height: 1.8; }
#architecture .arch-mobile-link, #architecture .arch-mobile-merge { display: none; }

@media (max-width: 1100px) and (min-width: 851px) {
  #architecture .arch-page-heading { gap: 40px; }
  #architecture .agent-step { padding-inline: 12px; }
  #architecture .agent-step p { font-size: 12px; }
  #architecture .arch-retrieval-track { grid-template-columns: 25% 22.3% 31%; }
  #architecture .arch-fusion, #architecture .arch-snapshot { padding-inline: 8px; }
  #architecture .arch-fusion strong, #architecture .arch-snapshot strong { font-size: 12px; }
  #architecture .arch-source { gap: 7px; padding-inline: 8px; }
  #architecture .arch-source strong { font-size: 13px; }
  #architecture .arch-source span:not(.arch-source-mark) { font-size: 10px; }
  #architecture .arch-assessment { width: 18.5%; padding-inline: 10px; }
  #architecture .arch-assessment h3 { font-size: 17px; }
  #architecture .arch-stack-row { grid-template-columns: 28px 125px minmax(0, 1.1fr) minmax(220px, .9fr); gap: 18px; }
}

@media (max-width: 900px) {
  #architecture .arch-canvas-legend { gap: 7px 14px; padding-top: 11px; }
  #architecture .arch-mobile-overview { display: block; width: 100%; height: auto; margin-top: 17px; }
  #architecture .arch-page-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 34px; }
  #architecture .arch-page-heading h1 { font-size: 36px; }
  #architecture .arch-page-intro p { max-width: 610px; font-size: 15px; }
  #architecture .arch-page-intro > span { margin-top: 12px; font-size: 11px; }
  #architecture .arch-canvas-heading { display: block; padding-block: 17px; }
  #architecture .arch-canvas-heading h2 { font-size: 18px; }
  #architecture .arch-canvas-heading > span { display: block; margin-top: 7px; font-size: 12px; }
  #architecture .arch-canvas { height: auto; margin-top: 22px; padding: 0 0 5px; background: none; }
  #architecture .arch-connectors { display: none; }
  #architecture .arch-source, #architecture .arch-source-note, #architecture .arch-agent, #architecture .arch-evidence, #architecture .arch-assessment, #architecture .arch-admission-context, #architecture .arch-gate, #architecture .arch-gate-criteria, #architecture .arch-outcomes { position: relative; inset: auto; width: auto; }
  #architecture .arch-source { width: min(100%, 280px); min-height: 70px; padding: 12px 14px; }
  #architecture .arch-source-note { margin: 13px 0 28px; font-size: 13px; }
  #architecture .arch-source-note br { display: none; }
  #architecture .arch-agent { margin: 0 0 34px; }
  #architecture .arch-agent-track { grid-template-columns: 1fr; gap: 0; margin-top: 15px; }
  #architecture .agent-step { display: grid; grid-template-columns: 28px 52px 1fr; align-items: center; gap: 10px; height: auto; min-height: 62px; padding: 12px 14px; border-bottom: 0; background: var(--surface); }
  #architecture .agent-step:last-child { border-bottom: 1px solid var(--line); }
  #architecture .arch-step-index { margin: 0; font-size: 11px; }
  #architecture .agent-step strong { font-size: 17px; }
  #architecture .agent-step p { margin: 0; font-size: 12px; white-space: normal; }
  #architecture .arch-evidence { margin-bottom: 32px; }
  #architecture .arch-evidence-sources { margin-top: 12px; gap: 5px 18px; }
  #architecture .arch-retrieval-track { display: flex; flex-direction: column; align-items: stretch; margin-top: 24px; }
  #architecture .arch-retrieval-inputs { grid-template-columns: 1fr 1fr; gap: 16px; }
  #architecture .arch-retrieval-method { height: 56px; padding: 9px 12px; }
  #architecture .arch-retrieval-method strong { margin-top: 3px; font-size: 14px; }
  #architecture .arch-mobile-merge { display: block; width: 100%; height: 28px; color: var(--accent); }
  #architecture .arch-mobile-link { display: block; width: 12px; height: 28px; margin-inline: auto; color: var(--accent); }
  #architecture .arch-fusion, #architecture .arch-snapshot { min-height: 62px; padding: 12px 18px; text-align: center; }
  #architecture .arch-fusion strong, #architecture .arch-snapshot strong { font-size: 14px; }
  #architecture .arch-evidence-caption { margin-top: 15px; }
  #architecture .arch-assessment { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0 20px; min-height: 100px; padding: 15px 18px; }
  #architecture .arch-assessment .arch-small-label { grid-column: 1; }
  #architecture .arch-assessment h3 { grid-column: 1; margin-top: 2px; font-size: 18px; }
  #architecture .arch-assessment p { grid-column: 2; grid-row: 1 / 3; margin: 0; }
  #architecture .arch-admission-context { margin-top: 30px; text-align: center; }
  #architecture .arch-admission-context h3 { margin-top: 7px; font-size: 20px; }
  #architecture .arch-admission-context h3 br { display: none; }
  #architecture .arch-gate { width: 136px; height: 136px; margin: 22px auto; }
  #architecture .arch-gate-criteria { margin-bottom: 32px; text-align: center; }
  #architecture .arch-gate-criteria p { margin-top: 5px; font-size: 13px; }
  #architecture .arch-outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin: 0; }
  #architecture .architecture-branch h3 { font-size: 18px; }
  #architecture .architecture-branch p { font-size: 13px; }
  #architecture .arch-canvas-footnote { margin-top: 26px; }
  #architecture .arch-stack { margin-top: 52px; }
  #architecture .arch-stack-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 24px; }
  #architecture .arch-stack-heading h2 { font-size: 28px; }
  #architecture .arch-stack-heading p { font-size: 14px; }
  #architecture .arch-stack-row { grid-template-columns: 24px 1fr; gap: 8px 12px; padding-block: 21px; }
  #architecture .arch-stack-row h3 { grid-column: 2; }
  #architecture .arch-stack-row p, #architecture .arch-stack-row > div { grid-column: 2; max-width: none; }
  #architecture .arch-stack-row > div { margin-top: 2px; }
}

@media (max-width: 1100px) and (min-width: 901px) {
  #architecture .arch-canvas { height: 930px; }
  #architecture .arch-source { top: 25px; width: 20%; }
  #architecture .arch-source-note { left: 25%; top: 31px; }
  #architecture .arch-agent { top: 112px; }
  #architecture .agent-step p { font-size: 12px; }
  #architecture .agent-step p { font-size: 12px; }
  #architecture .arch-evidence { top: 313px; width: 63%; }
  #architecture .arch-assessment { top: 348px; left: 78%; width: 20%; }
  #architecture .arch-admission-context { top: 590px; left: 7%; }
  #architecture .arch-gate { top: 568px; }
  #architecture .arch-gate-criteria { top: 602px; left: 66%; }
  #architecture .arch-outcomes { top: 748px; }
  #architecture .arch-route-evidence { top: 285px; }
  #architecture .arch-route-policy { top: 535px; }
  #architecture .arch-route-human { top: 724px; }
  #architecture .arch-wire > path:nth-child(6) { d: path("M1048 274 V348"); }
  #architecture .agent-step p { font-size: 12px; }
  #architecture .arch-wire > path:nth-child(7) { d: path("M1048 475 V518 H560 V568"); }
  #architecture .arch-wire-branch > path:nth-child(1) { d: path("M560 704 V724 H269 V748"); }
  #architecture .arch-wire-branch > path:nth-child(2) { d: path("M560 704 V724 H851 V748"); }
  #architecture .arch-junction { cy: 724; }
}

@media (max-width: 460px) {
  #architecture .arch-outcomes { grid-template-columns: 1fr; gap: 28px; }
  #architecture .arch-page-heading h1 { font-size: 34px; }
  #architecture .arch-component-heading > span { font-size: 10px; }
  #architecture .agent-step { padding-inline: 10px; grid-template-columns: 24px 48px 1fr; gap: 9px; }
  #architecture .arch-assessment { padding-inline: 12px; gap: 0 12px; }
  #architecture .arch-admission-context h3 { font-size: 18px; }
}


/* Project story: an editorial case study. All rules are scoped to the about route. */
#about { max-width:1280px; color:var(--text); }
#about .story-visual { position: relative; margin: 0 0 8px; padding: 23px 0 25px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: linear-gradient(110deg, rgba(255,255,255,.28), transparent 48%), var(--surface); }
#about .story-visual::before { content:""; position:absolute; inset:0; pointer-events:none; opacity:.46; background: radial-gradient(circle at 82% 22%, rgba(105,105,163,.12), transparent 25%), url("./assets/issuegate-signal-texture.svg") right center / 260px 260px no-repeat; }
#about .story-visual-map { position:relative; z-index:1; display: block; width: 100%; height: auto; min-height: 150px; overflow: visible; color: var(--muted); }
#about .story-visual-map-mobile { display: none; }
#about .story-map-surface { fill: url(#story-map-surface); stroke: rgba(61,69,75,.13); stroke-width: 1; vector-effect: non-scaling-stroke; }
#about .story-map-grid { fill: url(#story-map-grid); opacity: .72; }
#about .story-map-overline { fill: var(--muted); font: 8px/1 var(--mono,ui-monospace,Consolas,monospace); letter-spacing: .14em; }
#about .story-map-route { stroke: rgba(105,105,163,.16); stroke-width: 1; stroke-dasharray: 2 6; vector-effect: non-scaling-stroke; }
#about .story-map-wire { color: var(--accent); stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: .92; }
#about .story-map-wire-mobile { stroke-width: 1.8; }
#about .story-map-node rect { fill: #faf9f5; stroke: rgba(36,40,42,.18); stroke-width: 1; vector-effect: non-scaling-stroke; }
#about .story-map-node-input rect { fill: #f5f4ef; stroke: rgba(91,92,136,.42); }
#about .story-map-node-gate rect { fill: #eeedf7; stroke: var(--accent); stroke-width: 1.25; }
#about .story-map-node-output rect { fill: #edf4ef; stroke: var(--success); stroke-width: 1.25; }
#about .story-map-node-dot { fill: var(--accent); }
#about .story-map-node-input .story-map-node-dot { fill: #6f7479; }
#about .story-map-node-gate .story-map-node-dot { fill: var(--accent); }
#about .story-map-node-output .story-map-node-dot { fill: var(--success); }
#about .story-map-kicker { fill: var(--muted); font: 7px/1 var(--mono,ui-monospace,Consolas,monospace); letter-spacing: .08em; }
#about .story-map-label { fill: var(--text); font: 11px/1.3 var(--sans); font-weight: 600; }
#about .story-map-note { fill: var(--muted); font: 8px/1.3 var(--sans); letter-spacing: .01em; }
#about .story-visual-map-mobile .story-map-surface { fill: url(#story-mobile-surface); }
#about .story-visual-map-mobile .story-map-grid { fill: url(#story-mobile-grid); }
#about .story-visual figcaption { position:relative; z-index:1; display: flex; align-items: baseline; gap: 22px; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.7; }
#about .story-visual figcaption span:first-child { color: var(--text); font-size: 13px; font-weight: 500; }
#about .story-header { display:grid; grid-template-columns:minmax(0,1fr) 260px; gap:64px; align-items:end; padding:12px 0 48px; }
#about .story-page-label { margin:0 0 22px; color:var(--text); font-size:14px; line-height:1.5; }
#about .story-page-label span { margin-left:18px; color:var(--muted); }
#about .story-header h1 { margin:0; font-size:clamp(36px,4vw,52px); line-height:1.24; font-weight:650; letter-spacing:-.04em; }
#about .story-deck { max-width:740px; margin:24px 0 0; color:var(--muted); font-size:17px; line-height:1.85; }
#about .story-deck strong { color:var(--text); font-weight:500; }
#about .story-project-meta { display:grid; gap:21px; margin:0 0 5px; border-left:1px solid var(--line); padding-left:25px; }
#about .story-project-meta dt { margin:0 0 5px; color:var(--muted); font-size:12px; }
#about .story-project-meta dd { margin:0; font-size:14px; line-height:1.7; }
#about .story-chapter { display:grid; grid-template-columns:210px minmax(0,1fr); gap:56px; padding:43px 0; border-top:1px solid var(--line); }
#about .story-chapter-heading { padding-top:4px; }
#about .story-chapter-number { display:block; margin-bottom:10px; color:var(--muted); font:12px/1.4 var(--mono,ui-monospace,Consolas,monospace); }
#about .story-chapter-heading h2 { margin:0; font-size:23px; line-height:1.35; font-weight:600; letter-spacing:-.025em; }
#about .story-chapter-heading p { margin:13px 0 0; max-width:190px; color:var(--muted); font-size:13px; line-height:1.7; }
#about .story-chapter-heading p span { font-size:12px; }
#about .story-chapter-body { min-width:0; }
#about .story-chapter-body > h3 { max-width:780px; margin:0 0 17px; font-size:25px; line-height:1.5; font-weight:550; letter-spacing:-.025em; }
#about .story-chapter-body > p { max-width:800px; margin:0; color:var(--muted); font-size:16px; line-height:1.85; }
#about .story-principle { display:grid; grid-template-columns:80px minmax(0,1fr); gap:20px; margin-top:28px; padding-top:23px; border-top:1px solid var(--line); }
#about .story-principle > span { padding-top:3px; color:var(--muted); font-size:13px; }
#about .story-principle p { margin:0; font-size:16px; line-height:1.85; }
#about .story-principle strong { font-weight:550; }
#about .story-workflow { display:flex; align-items:center; gap:20px; max-width:670px; padding:26px 0 0; font-size:14px; }
#about .story-workflow > span, #about .story-workflow > strong { flex-shrink:0; font-weight:500; }
#about .story-workflow strong { color:var(--text); }
#about .story-workflow small { display:block; margin-top:4px; color:var(--muted); font-size:12px; font-weight:400; }
#about .story-workflow svg { width:48px; min-width:28px; height:12px; fill:none; stroke:var(--line); stroke-width:1.3; }
#about .story-workflow svg:last-of-type { stroke:var(--accent); }
#about .story-evolution { padding-bottom:29px; }
#about .story-timeline { list-style:none; margin:0; padding:0; }
#about .story-step { position:relative; display:grid; grid-template-columns:115px minmax(0,1fr); gap:23px; padding:0 0 27px 25px; }
#about .story-step::before { content:""; position:absolute; top:8px; bottom:-8px; left:3px; border-left:1px solid var(--line); }
#about .story-step::after { content:""; position:absolute; top:8px; left:0; width:7px; height:7px; border:1px solid var(--muted); background:var(--bg); border-radius:50%; }
#about .story-step:last-child::before { bottom:30px; }
#about .story-step + .story-step { padding-top:25px; }
#about .story-step + .story-step::after { top:33px; }
#about .story-step-version { padding-top:1px; }
#about .story-step-version > span { display:block; color:var(--text); font:14px/1.6 var(--mono,ui-monospace,Consolas,monospace); }
#about .story-step-version small { display:block; margin-top:6px; color:var(--muted); font-size:12px; line-height:1.6; }
#about .story-step-content { min-width:0; padding-bottom:25px; border-bottom:1px solid var(--line); }
#about .story-step:last-child .story-step-content { padding-bottom:0; border-bottom:0; }
#about .story-step-content h3 { margin:0 0 13px; font-size:20px; line-height:1.5; font-weight:550; letter-spacing:-.02em; }
#about .story-decisions { display:grid; gap:9px; margin:0; }
#about .story-decisions > div { display:grid; grid-template-columns:60px minmax(0,1fr); gap:12px; }
#about .story-decisions dt { padding-top:2px; color:var(--muted); font-size:12px; line-height:1.8; }
#about .story-decisions dd { margin:0; color:var(--muted); font-size:15px; line-height:1.8; }
#about .story-next-question { margin:13px 0 0; font-size:13px; line-height:1.75; color:var(--text); }
#about .story-step-current::after { background:var(--accent); border-color:var(--accent); }
#about .story-step-current .story-step-version > span { color:var(--accent); }
#about .story-step-current .story-next-question { color:var(--warning); }
#about code { overflow-wrap:anywhere; color:inherit; font: .88em/1.65 var(--mono,ui-monospace,Consolas,monospace); }
#about .story-evaluation { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:32px; padding:25px 0 26px; }
#about .story-evaluation h4 { margin:0 0 18px; font-size:14px; font-weight:500; }
#about .story-safety-findings dl { margin:0; }
#about .story-safety-findings dl > div { display:flex; justify-content:space-between; gap:16px; padding:11px 0; border-top:1px solid var(--line); font-size:14px; }
#about .story-safety-findings dt { color:var(--muted); }
#about .story-safety-findings dd { margin:0; color:var(--success); font:14px/1.5 var(--mono,ui-monospace,Consolas,monospace); }
#about .story-safety-findings dd small { color:var(--muted); font-size:12px; line-height:1.5; }
#about .story-autonomy-finding { padding-left:30px; border-left:1px solid var(--line); }
#about .story-finding-number { margin:0 0 5px; color:var(--warning); font-size:53px; font-weight:500; line-height:1.2; letter-spacing:-.05em; }
#about .story-finding-number span { font-size:31px; letter-spacing:-.02em; }
#about .story-autonomy-finding > p:not(.story-finding-number) { margin:0; font-size:13px; line-height:1.7; }
#about .story-autonomy-finding > p.story-finding-note { max-width:300px; margin-top:14px; color:var(--muted); font-size:14px; }
#about .story-chapter-body > .story-evaluation-note { font-size:13px; line-height:1.8; }
#about .story-evaluation-note strong { color:var(--text); font-weight:500; }
#about .story-text-link { display:inline-flex; align-items:center; gap:12px; margin-top:19px; color:var(--text); font-size:14px; line-height:1.6; text-decoration:none; text-underline-offset:5px; }
#about .story-text-link:hover { color:var(--text); text-decoration:underline; }
#about .story-text-link svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.3; transition:transform 160ms ease; }
#about .story-text-link:hover svg { transform:translateX(3px); }
#about .story-text-link:focus-visible { outline:2px solid var(--accent); outline-offset:5px; }
#about .story-calibration { padding-top:37px; padding-bottom:38px; }
#about .story-chapter-body > .story-calibration-note { margin-top:15px; color:var(--muted); font-size:12px; line-height:1.7; }
#about .story-conclusion { padding:38px 0 6px 266px; border-top:1px solid var(--line); }
#about .story-conclusion > p { margin:0 0 17px; color:var(--muted); font-size:13px; }
#about .story-conclusion blockquote { margin:0; color:var(--muted); font-size:clamp(23px,2.5vw,31px); line-height:1.7; letter-spacing:-.025em; font-weight:400; }
#about .story-conclusion blockquote strong { display:block; color:var(--text); font-weight:550; }
#about .story-mobile-break { display:none; }
@media (max-width:1100px) {
  #about .story-header { grid-template-columns:minmax(0,1fr) 220px; gap:34px; }
  #about .story-chapter { grid-template-columns:170px minmax(0,1fr); gap:34px; }
  #about .story-step { grid-template-columns:95px minmax(0,1fr); gap:15px; }
  #about .story-conclusion { padding-left:204px; }
}
@media (max-width:820px) {
  #about .story-visual { padding-block: 19px 22px; }
  #about .story-visual-map { min-height: 128px; }
  #about .story-visual figcaption { display: block; margin-top: 5px; }
  #about .story-visual figcaption span:first-child { display: block; margin-bottom: 3px; }
  #about .story-header { grid-template-columns:1fr; gap:27px; padding-bottom:36px; }
  #about .story-project-meta { grid-template-columns:minmax(0,1.8fr) minmax(0,1fr) minmax(0,1.8fr); gap:18px; padding:20px 0 0; border-left:0; border-top:1px solid var(--line); }
  #about .story-chapter { grid-template-columns:1fr; gap:25px; padding:32px 0; }
  #about .story-chapter-heading { display:grid; grid-template-columns:28px minmax(0,1fr); align-items:baseline; gap:0 10px; }
  #about .story-chapter-number { margin:0; }
  #about .story-chapter-heading h2 { font-size:21px; }
  #about .story-chapter-heading p { grid-column:2; max-width:none; margin-top:7px; }
  #about .story-chapter-heading p br { display:none; }
  #about .story-chapter-heading p span { margin-left:8px; }
  #about .story-conclusion { padding:31px 0 0; }
  #about .story-step { grid-template-columns:115px minmax(0,1fr); }
}
@media (max-width:560px) {
  #about .story-visual-map { display: none; }
  #about .story-visual-map-mobile { display: block; width: 100%; height: auto; min-height: 0; }
  #about .story-visual-map-mobile .story-map-kicker { font-size: 8px; }
  #about .story-visual-map-mobile .story-map-label { font-size: 13px; }
  #about .story-page-label { margin-bottom:18px; font-size:13px; }
  #about .story-page-label span { margin-left:12px; font-size:12px; }
  #about .story-header h1 { font-size:34px; line-height:1.3; }
  #about .story-deck { margin-top:20px; font-size:16px; line-height:1.85; }
  #about .story-project-meta { grid-template-columns:1fr 1fr; row-gap:17px; }
  #about .story-project-meta > div:first-child { grid-column:1 / -1; }
  #about .story-project-meta dd { font-size:13px; }
  #about .story-chapter-body > h3 { font-size:22px; }
  #about .story-chapter-body > p { font-size:15px; }
  #about .story-principle { grid-template-columns:1fr; gap:8px; margin-top:23px; padding-top:19px; }
  #about .story-principle p { font-size:15px; }
  #about .story-workflow { gap:8px; font-size:12px; }
  #about .story-workflow svg { flex:1; min-width:14px; width:22px; }
  #about .story-workflow small { max-width:100px; font-size:10px; }
  #about .story-step { grid-template-columns:1fr; gap:8px; padding:0 0 19px 23px; }
  #about .story-step + .story-step { padding-top:19px; }
  #about .story-step + .story-step::after { top:27px; }
  #about .story-step-version { display:flex; gap:11px; align-items:baseline; }
  #about .story-step-version small { margin:0; }
  #about .story-step-content { padding-bottom:23px; }
  #about .story-step-content h3 { font-size:19px; }
  #about .story-decisions { gap:11px; }
  #about .story-decisions > div { grid-template-columns:1fr; gap:2px; }
  #about .story-decisions dt { font-size:11px; }
  #about .story-decisions dd { font-size:15px; }
  #about .story-evaluation { grid-template-columns:1fr; gap:25px; padding-top:15px; }
  #about .story-autonomy-finding { padding:22px 0 0; border-left:0; border-top:1px solid var(--line); }
  #about .story-finding-number { font-size:48px; }
  #about .story-autonomy-finding > .story-finding-note { max-width:none; }
  #about .story-conclusion blockquote { font-size:23px; line-height:1.7; }
  #about .story-mobile-break { display:block; }
}
@media (prefers-reduced-motion:reduce) {
  #about .story-text-link svg { transition:none; }
}

/* Presentation polish: keep the data-led surfaces quiet, then add a small amount of motion and colour. */
.home-signal-rail {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 34px;
  padding: 0 25px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 72%, var(--bg));
}
.home-signal-node {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border: 1px solid var(--muted);
  background: var(--surface);
  transform: scale(.82);
  animation: signal-node-breathe 3.8s ease-in-out infinite;
}
.home-signal-node.signal-input { border-color: var(--muted); }
.home-signal-node.signal-evidence { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); animation-delay: .55s; }
.home-signal-node.signal-policy { border-color: var(--warning); background: color-mix(in srgb, var(--warning) 13%, var(--surface)); animation-delay: 1.1s; }
.home-signal-node.signal-output { border-color: var(--warning); background: color-mix(in srgb, var(--warning) 13%, var(--surface)); animation-delay: 1.65s; }
.home-signal-link {
  position: relative;
  flex: 1 1 auto;
  height: 1px;
  margin: 0 11px;
  background: var(--line);
  overflow: hidden;
}
.home-signal-link::after {
  content: "";
  position: absolute;
  top: 0;
  left: -22px;
  width: 22px;
  height: 1px;
  background: var(--accent);
  opacity: .7;
  animation: signal-trace 4.4s linear infinite;
}
.home-signal-link:nth-of-type(4)::after { background: var(--warning); animation-delay: 1.1s; }
.home-signal-link:nth-of-type(6)::after { background: var(--warning); animation-delay: 2.2s; }
@keyframes signal-node-breathe {
  0%, 100% { opacity: .62; transform: scale(.82); }
  45% { opacity: 1; transform: scale(1); }
}
@keyframes signal-trace {
  0% { transform: translateX(0); opacity: 0; }
  12% { opacity: .75; }
  62%, 100% { transform: translateX(calc(100% + 22px)); opacity: 0; }
}

#evaluation .evaluation-signal {
  display: grid;
  grid-template-columns: minmax(230px, .9fr) minmax(0, 1.7fr);
  gap: 54px;
  padding: 28px 0 30px;
  border-bottom: 1px solid var(--line);
}
#evaluation .evaluation-signal-heading { max-width: 360px; }
#evaluation .evaluation-signal-heading h2 { margin: 9px 0 11px; font-size: 21px; line-height: 1.4; font-weight: 550; }
#evaluation .evaluation-signal-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
#evaluation .evaluation-signal-plot { display: grid; gap: 14px; align-content: center; }
#evaluation .evaluation-signal-row { display: grid; grid-template-columns: 144px minmax(0, 1fr); gap: 18px; align-items: center; }
#evaluation .evaluation-signal-row > div:first-child { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
#evaluation .evaluation-signal-row span { color: var(--muted); font-size: 12px; }
#evaluation .evaluation-signal-row strong { color: var(--text); font: 14px/1.4 var(--mono); font-weight: 500; white-space: nowrap; }
#evaluation .signal-meter { height: 5px; background: var(--surface-raised); overflow: hidden; }
#evaluation .signal-meter i { display: block; height: 100%; background: var(--accent); }
#evaluation .signal-row-coding strong { color: var(--warning); }
#evaluation .signal-row-coding .signal-meter i { background: var(--warning); }
#evaluation .signal-row-safety strong { color: var(--success); }
#evaluation .signal-zero-track { display: flex; align-items: center; gap: 8px; height: 5px; }
#evaluation .signal-zero-track::before { content: ""; flex: 1 1 auto; height: 1px; background: var(--line); }
#evaluation .signal-zero-track i { width: 7px; height: 7px; border: 1px solid var(--success); background: color-mix(in srgb, var(--success) 20%, var(--surface)); }

#architecture .arch-wire-branch { opacity: .84; }
#about .story-conclusion { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 56px; padding: 36px 0 8px; max-width: none; }
#about .story-conclusion::before { content: none; }
#about .story-conclusion-meta { display: flex; flex-direction: column; gap: 11px; padding-top: 4px; color: var(--text); font-size: 20px; line-height: 1.4; font-weight: 550; }
#about .story-conclusion-index { color: var(--accent); font: 12px/1.4 var(--mono); letter-spacing: .03em; }
#about .story-conclusion-copy { min-width: 0; max-width: 780px; }
#about .story-conclusion-copy > p { margin: 0 0 16px; color: var(--muted); font-size: 12px; line-height: 1.6; }
#about .story-conclusion blockquote { max-width: 760px; color: var(--muted); font-size: clamp(22px, 1.85vw, 26px); line-height: 1.55; letter-spacing: -.02em; }
#about .story-conclusion blockquote strong { margin-top: 10px; color: var(--text); font-weight: 600; }
#about .story-conclusion .story-text-link { margin-top: 23px; font-size: 13px; }

@media (max-width: 1100px) {
  #about .story-conclusion { grid-template-columns: 170px minmax(0, 1fr); gap: 34px; }
}
@media (max-width: 820px) {
  #about .story-conclusion { grid-template-columns: 1fr; gap: 21px; padding-top: 30px; }
  #about .story-conclusion-meta { flex-direction: row; align-items: baseline; gap: 10px; font-size: 20px; }
  #about .story-conclusion-index { width: 28px; }
}

@media (max-width: 900px) {
  .home-signal-rail { min-height: 30px; padding-inline: 16px; }
  .home-signal-link { margin-inline: 8px; }
  #evaluation .evaluation-signal { grid-template-columns: 1fr; gap: 23px; padding-block: 24px 26px; }
  #evaluation .evaluation-signal-heading { max-width: 600px; }
}
@media (max-width: 560px) {
  .home-signal-rail { min-height: 27px; padding-inline: 16px; }
  .home-signal-node { width: 6px; height: 6px; }
  .home-signal-link { margin-inline: 6px; }
  #evaluation .evaluation-signal-row { grid-template-columns: 116px minmax(0, 1fr); gap: 12px; }
  #evaluation .evaluation-signal-row span { font-size: 11px; }
  #evaluation .evaluation-signal-row strong { font-size: 12px; }
  #about .story-conclusion blockquote { font-size: 20px; line-height: 1.6; }
  #about .story-conclusion blockquote strong { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-signal-node, .home-signal-link::after { animation: none; }
}

/* Architecture polish: reserve visible routing lanes so every connector remains legible. */
#architecture .arch-page-heading { margin-bottom: 46px; }
#architecture .arch-page-heading h1 { max-width: 620px; }
#architecture .arch-page-intro { padding-left: 26px; border-left: 1px solid rgba(91, 92, 136, .34); }
#architecture .arch-page-intro > span { color: var(--accent); font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; }
#architecture .arch-canvas-heading { padding-block: 22px; border-color: rgba(36, 40, 42, .12); }
#architecture .arch-canvas-heading h2 { font-size: 21px; font-weight: 600; }
#architecture .arch-canvas-heading > span { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; }
#architecture .arch-canvas-legend { gap: 10px 24px; padding-top: 15px; font-family: var(--mono); font-size: 11px; letter-spacing: .03em; }
#architecture .arch-canvas-legend span::before { width: 24px; height: 2px; border-radius: 2px; }
#architecture .arch-canvas {
  height: 1048px;
  margin-top: 19px;
  overflow: hidden;
  border: 1px solid rgba(164, 176, 206, .34);
  border-radius: 16px;
  background:
    radial-gradient(circle at 16% 10%, rgba(113, 117, 186, .22), transparent 27%),
    radial-gradient(circle at 86% 58%, rgba(80, 160, 151, .12), transparent 32%),
    linear-gradient(135deg, #182431 0%, #121A23 66%, #0E151D 100%);
  box-shadow: 0 28px 60px rgba(25, 31, 39, .20), inset 0 1px 0 rgba(255, 255, 255, .08);
}
#architecture .arch-canvas::before {
  opacity: .56;
  background-image:
    linear-gradient(rgba(220, 226, 235, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 226, 235, .055) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 48%, rgba(159, 169, 214, .06) 49%, transparent 50% 100%);
  background-size: 48px 48px, 48px 48px, 180px 180px;
}
#architecture .arch-canvas::after { right: 24px; bottom: 19px; color: rgba(214, 220, 229, .42); }
#architecture .arch-canvas-rail {
  position: absolute;
  z-index: 5;
  top: 17px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(214, 220, 229, .48);
  font: 10px/1.4 var(--mono);
  letter-spacing: .11em;
  pointer-events: none;
}
#architecture .arch-rail-status { display: inline-flex; align-items: center; gap: 8px; color: rgba(140, 207, 187, .78); }
#architecture .arch-rail-status i { width: 6px; height: 6px; border-radius: 50%; background: #79C6B3; box-shadow: 0 0 0 4px rgba(121, 198, 179, .12); }
#architecture .arch-connectors { z-index: 1; width: 100%; height: 885px; }
#architecture .arch-atmosphere { opacity: .74; }
#architecture .arch-halo { opacity: .78; }
#architecture .arch-orbit { stroke: rgba(180, 188, 230, .12); }
#architecture .arch-orbit-inner { stroke: rgba(115, 197, 181, .10); }
#architecture .arch-wire { stroke: rgba(212, 221, 230, .76); stroke-width: 1.4; filter: none; }
#architecture .arch-wire-evidence { stroke: url(#arch-wire-accent); opacity: .98; stroke-width: 1.8; }
#architecture .arch-wire-branch { stroke: rgba(208, 217, 227, .74); stroke-width: 1.45; }
#architecture .arch-wire path { vector-effect: non-scaling-stroke; }
#architecture .arch-junction { fill: #B7B9F2; filter: drop-shadow(0 0 5px rgba(173, 176, 241, .85)); }
#architecture .arch-route-label {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(212, 221, 230, .66);
  font: 10px/1.4 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  pointer-events: none;
}
#architecture .arch-route-label::before { content: ""; width: 20px; height: 1px; background: rgba(212, 221, 230, .36); }
#architecture .arch-route-label span { color: #A9A9EC; }
#architecture .arch-route-evidence { top: 304px; left: 6%; }
#architecture .arch-route-evidence::before { background: #A9A9EC; }
#architecture .arch-route-policy { top: 558px; right: 8%; }
#architecture .arch-route-policy span { color: #E7C883; }
#architecture .arch-route-policy::before { background: #E7C883; }
#architecture .arch-route-human { top: 792px; left: 43%; }
#architecture .arch-route-human span { color: #79C6B3; }
#architecture .arch-route-human::before { background: #79C6B3; }
#architecture .arch-canvas [data-arch-node] { z-index: 3; }
#architecture .arch-source {
  top: 31px;
  left: 2%;
  width: 18%;
  min-height: 72px;
  background: linear-gradient(145deg, rgba(37, 50, 64, .96), rgba(20, 30, 40, .96));
  border-color: rgba(188, 193, 232, .48);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 26px rgba(8, 13, 20, .24);
}
#architecture .arch-source-note { left: 23%; top: 37px; }
#architecture .arch-agent { top: 130px; left: 1.5%; right: 1.5%; }
#architecture .arch-agent-track { margin-top: 20px; }
#architecture .agent-step { height: 108px; padding: 14px 16px; background: linear-gradient(145deg, rgba(33, 47, 60, .94), rgba(22, 32, 43, .94)); border-color: rgba(191, 202, 222, .24); }
#architecture .agent-step p { white-space: normal; }
#architecture .arch-evidence { top: 350px; left: 4.2%; width: 62.1%; }
#architecture .arch-evidence::before { inset: -17px -19px -20px; }
#architecture .arch-assessment { top: 350px; left: 81.5%; width: 16.5%; min-height: 127px; }
#architecture .arch-admission-context { top: 654px; left: 8%; width: 27%; }
#architecture .arch-gate { top: 630px; left: calc(50% - 68px); }
#architecture .arch-gate-criteria { top: 658px; left: 67%; width: 27%; }
#architecture .arch-outcomes { top: 818px; left: 7%; right: 7%; gap: 20%; }
#architecture .architecture-branch { padding: 18px 18px 17px; }
#architecture .arch-canvas-footnote { margin-top: 20px; padding: 19px 24px 0; border-color: rgba(198, 208, 220, .16); }
#architecture .arch-agent, #architecture .arch-evidence, #architecture .arch-source, #architecture .arch-assessment, #architecture .arch-admission-context, #architecture .arch-gate, #architecture .arch-gate-criteria, #architecture .arch-outcomes { position: absolute; }
#architecture .arch-evidence, #architecture .arch-agent { isolation: isolate; }
#architecture .arch-evidence, #architecture .arch-agent, #architecture .arch-source, #architecture .arch-assessment, #architecture .arch-admission-context, #architecture .arch-gate, #architecture .arch-gate-criteria, #architecture .arch-outcomes { z-index: 3; }
#architecture .arch-agent-track, #architecture .arch-retrieval-track, #architecture .arch-evidence-sources, #architecture .arch-component-heading { position: relative; z-index: 2; }

/* The connector map is intentionally redrawn in open lanes around the surfaces above. */
#architecture .arch-wire > path:nth-child(1) { d: path("M122 103 V127"); }
#architecture .arch-wire > path:nth-child(2) { d: path("M195 227 H244"); }
#architecture .arch-wire > path:nth-child(3) { d: path("M423 227 H471"); }
#architecture .arch-wire > path:nth-child(4) { d: path("M650 227 H697"); }
#architecture .arch-wire > path:nth-child(5) { d: path("M877 227 H923"); }
#architecture .arch-wire > path:nth-child(6) { d: path("M1019 282 V347"); }
#architecture .arch-wire > path:nth-child(7) { d: path("M1005 477 H1096 V755 H700 V698 H625"); }
#architecture .arch-wire-evidence > path:nth-child(1) { d: path("M560 282 V315 H28 V350 H47"); }
#architecture .arch-wire-evidence > path:nth-child(2) { d: path("M47 350 V478 H47"); }
#architecture .arch-wire-evidence > path:nth-child(3) { d: path("M47 478 V534 H47"); }
#architecture .arch-wire-evidence > path:nth-child(4) { d: path("M221 478 H260 V507 H296"); }
#architecture .arch-wire-evidence > path:nth-child(5) { d: path("M221 534 H260 V507 H296"); }
#architecture .arch-wire-evidence > path:nth-child(6) { d: path("M452 507 H527"); }
#architecture .arch-wire-evidence > path:nth-child(7) { d: path("M743 507 H850 V315 H560 V282"); }
#architecture .arch-wire-branch > path:nth-child(1) { d: path("M560 766 V792 H269 V818"); }
#architecture .arch-wire-branch > path:nth-child(2) { d: path("M560 766 V792 H851 V818"); }
#architecture .arch-junction { cx: 560; cy: 792; }

@media (max-width: 900px) {
  #architecture .arch-page-intro { padding-left: 0; border-left: 0; }
  #architecture .arch-canvas { height: auto; min-height: 0; margin-top: 22px; padding: 0 0 5px; overflow: visible; border-radius: 12px; background: linear-gradient(145deg, #182431, #121A23); }
  #architecture .arch-canvas-rail { position: relative; top: auto; left: auto; right: auto; padding: 17px 17px 0; }
  #architecture .arch-connectors { display: none; }
  #architecture .arch-route-label { display: none; }
  #architecture .arch-canvas [data-arch-node], #architecture .arch-source, #architecture .arch-source-note, #architecture .arch-agent, #architecture .arch-evidence, #architecture .arch-assessment, #architecture .arch-admission-context, #architecture .arch-gate, #architecture .arch-gate-criteria, #architecture .arch-outcomes { position: relative; inset: auto; width: auto; }
  #architecture .arch-source { width: min(100% - 34px, 300px); margin: 20px 17px 0; }
  #architecture .arch-source-note { margin: 13px 17px 28px; }
  #architecture .arch-agent, #architecture .arch-evidence { margin-inline: 17px; }
  #architecture .arch-assessment { margin: 0 17px; }
  #architecture .arch-admission-context { margin: 31px 17px 0; }
  #architecture .arch-gate { width: 136px; height: 136px; margin: 23px auto; }
  #architecture .arch-gate-criteria { margin: 0 17px 32px; }
  #architecture .arch-outcomes { margin: 0 17px; }
  #architecture .arch-canvas-footnote { margin-inline: 17px; padding-inline: 0; }
  #architecture .arch-agent .arch-component-heading h3 { background: transparent; }
  #architecture .arch-canvas-rail { font-size: 9px; }
}

@media (max-width: 460px) {
  #architecture .arch-canvas-rail { display: grid; gap: 8px; justify-content: start; }
  #architecture .arch-rail-status { font-size: 8px; }
  #architecture .arch-source { width: calc(100% - 34px); }
}

/* Evidence Gate visual system: the final layer keeps the paper surface quiet and
   makes Issue, Evidence, Gate and Outcome read as one product language. */
:root {
  --bg: #F6F4EF;
  --surface: #FFFDF9;
  --surface-raised: #F0EEE8;
  --line: #D7D4CC;
  --line-soft: #E6E2DA;
  --text: #20262B;
  --muted: #697177;
  --accent: #5B5C88;
  --success: #47745F;
  --warning: #A8752B;
  --danger: #9B5652;
  --shadow-paper: 0 14px 34px rgba(38, 43, 46, .055);
  --shadow-lift: 0 20px 44px rgba(38, 43, 46, .075);
}

html, body { background: var(--bg); color: var(--text); }
body { letter-spacing: -.005em; }
p { color: var(--muted); }
.nav { background: rgba(246, 244, 239, .94); border-color: var(--line-soft); box-shadow: 0 1px 0 rgba(32, 38, 43, .025); }
.nav-inner, .section, .footer { max-width: 1320px; }
.nav-links a.active::after { background: var(--accent); height: 2px; }
.btn { border-color: var(--line); background: var(--surface); border-radius: 7px; }
.btn:hover { border-color: var(--accent); background: #FAF9F5; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #FFFDF9; box-shadow: 0 8px 18px rgba(91, 92, 136, .16); }
.btn.primary:hover { background: #4E4F78; border-color: #4E4F78; }
.text-link, .text-btn { color: var(--accent); }
.badge { border-color: var(--line); background: rgba(255, 253, 249, .55); }

/* Home: the hero remains editorial, while the product panel reads like a real
   decision record instead of a decorative dashboard. */
#home { padding-top: 62px; }
#home .home-hero { grid-template-columns: minmax(0, 1.02fr) minmax(390px, .98fr); gap: 58px; align-items: center; margin-bottom: 38px; }
#home .product-category { display: flex; align-items: center; gap: 9px; color: var(--muted); }
#home .product-category b { color: var(--text); font-weight: 580; }
#home .category-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(91, 92, 136, .10); }
#home .hero-title h1 { font-size: clamp(44px, 4.5vw, 64px); line-height: 1.18; letter-spacing: -.055em; }
#home .hero-title h1 > span { color: var(--accent); }
#home .hero-context { padding: 18px 0 0 1px; border-left: 2px solid var(--line-soft); }
#home .hero-context > p { max-width: 520px; padding-left: 20px; color: var(--muted); font-size: 17px; line-height: 1.85; }
#home .cta, #home .trust-list { margin-left: 20px; }
#home .hero-visual { border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg, #F9F8F4, #ECEDE8); box-shadow: var(--shadow-lift); }
#home .hero-visual::before { opacity: .18; }
#home .hero-visual::after { display: none; }
#home .hero-visual-diagram > circle { opacity: .2; }
#home .hero-canvas-texture { opacity: .38; }
#home .hero-canvas-contours { opacity: .3; }
#home .hero-orbit { opacity: .18; }
#home .hero-visual-annotation-side { opacity: .65; }
#home .hero-visual-foot { border-color: rgba(36, 40, 42, .12); }
#home .hero-foot-accent { color: var(--warning); }
#home .hero-ready-surface { fill: #E2EFE8; }
#home .hero-ready-title { fill: var(--success); }
#home .product-window { border-color: var(--line); border-radius: 10px; background: rgba(255, 253, 249, .8); box-shadow: var(--shadow-paper); }
#home .window-bar, #home .flow, #home .proof-strip, #home .why-scenario { border-color: var(--line-soft); }
#home .window-bar { padding-block: 14px; }
#home .window-label { color: var(--accent); }
#home .flow { padding-block: 21px 24px; background: rgba(240, 238, 232, .32); }
#home .journey-output { padding-left: 20px; border-left: 1px solid var(--line-soft); }
#home .journey-output strong, #home .preview-status { color: var(--warning); }
#home .flow-number::after { background: var(--line-soft); }
#home .decision-preview { background: rgba(255, 253, 249, .78); }
#home .preview-source, #home .preview-decision { padding: 29px 32px; }
#home .preview-source { border-right-color: var(--line-soft); }
#home .preview-record-label { display: inline-flex; margin-left: 10px; color: var(--accent); font: 10px var(--mono); letter-spacing: .08em; }
#home .preview-repo { margin-top: 16px; }
#home .preview-source h2 { font-size: 24px; letter-spacing: -.03em; }
#home .preview-decision { position: relative; }
#home .preview-decision h3 { font-size: 29px; letter-spacing: -.04em; }
#home .preview-decision > p { color: var(--muted); }
#home .preview-gate-check { margin: 21px 0 18px; padding: 13px 0 0; border-top: 1px solid var(--line-soft); }
#home .preview-gate-check > span { display: block; color: var(--muted); font-size: 11px; letter-spacing: .08em; }
#home .preview-gate-check > div { display: flex; align-items: center; gap: 9px; margin-top: 9px; }
#home .preview-gate-check b { color: var(--text); font-size: 12px; font-weight: 560; }
#home .preview-gate-check i { width: 19px; height: 1px; background: var(--line); }
#home .preview-gate-check b:nth-of-type(4) { color: var(--warning); }
#home .preview-details summary { color: var(--accent); font-size: 12px; }
#home .proof-strip { padding-block: 30px 23px; }
#home .proof-strip strong { color: var(--text); font-weight: 560; }
#home .proof-strip > div:not(:first-child) { border-left-color: var(--line-soft); }
#home .safety-strip { color: var(--success); }
#home .why-intro { margin-bottom: 34px; }
#home .why-lead { color: var(--text); font-size: clamp(24px, 2.45vw, 32px); line-height: 1.5; }
#home .why-scenario { gap: 42px; }
#home .why-scenario > div:last-child p { color: var(--muted); }

/* Analysis: move the action surface into the first reading beat and give the
   result area a clear editorial order. */
#demo { max-width: 1320px; }
#demo .workspace-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(350px, .72fr); gap: 56px; align-items: end; margin-bottom: 27px; }
#demo .workspace-head h1 { font-size: clamp(36px, 3.7vw, 52px); line-height: 1.2; letter-spacing: -.045em; }
#demo .page-sub { max-width: 680px; color: var(--muted); }
#demo .demo-hero-panel { min-width: 0; padding: 20px 0 0 24px; border-left: 1px solid var(--line-soft); background: transparent; }
#demo .demo-decision-visual { padding: 0; }
#demo .demo-decision-kicker { color: var(--muted); font: 11px var(--mono); letter-spacing: .08em; }
#demo .demo-decision-route { margin-top: 18px; color: var(--muted); }
#demo .demo-decision-route b { color: var(--accent); }
#demo .demo-decision-outcome { margin-top: 26px; padding-top: 17px; border-top: 1px solid var(--line-soft); }
#demo .demo-decision-outcome > span { color: var(--accent); font: 10px var(--mono); letter-spacing: .08em; }
#demo .demo-decision-outcome strong { margin-top: 9px; color: var(--text); font-size: 27px; letter-spacing: -.04em; }
#demo .demo-decision-outcome small { color: var(--muted); }
#demo .runtime { margin-top: 24px; padding-top: 13px; border-top: 1px solid var(--line-soft); text-align: left; }
#demo .mode-toggle { margin-bottom: 20px; border-color: var(--line); }
#demo .live-input { padding: 25px 27px 22px; border-color: var(--line); border-radius: 10px; background: rgba(255, 253, 249, .82); box-shadow: var(--shadow-paper); }
#demo .command-label { color: var(--text); }
#demo .command-label span:first-child { color: var(--accent); font-weight: 580; }
#demo .input-row input, #demo .advanced-settings .model-field select { border-color: var(--line); background: var(--surface); color: var(--text); }
#demo .input-row .btn { min-height: 52px; }
#demo .input-meta { padding-top: 12px; border-top: 1px solid var(--line-soft); }
#demo .analysis-assurances { padding-block: 17px 22px; border-bottom: 1px solid var(--line-soft); }
#demo .analysis-assurances i { color: var(--accent); }
#demo .explain-flow { margin-top: 33px; }
#demo .explain-flow-head { margin-bottom: 14px; }
#demo .explain-flow-head h2 { color: var(--text); font-size: 22px; }
#demo .explain-step { padding-block: 17px; }
#demo .explain-step strong { color: var(--text); }
#demo .explain-step.is-current .explain-index, #demo .explain-step.is-complete .explain-index { color: var(--accent); }
#demo .replay-banner { margin-top: 25px; padding: 12px 15px; border: 1px solid rgba(168, 117, 43, .28); border-radius: 7px; background: rgba(168, 117, 43, .06); }
#demo .result-summary { border-left-width: 4px; border-color: var(--warning); border-radius: 0 10px 10px 0; background: var(--surface); box-shadow: var(--shadow-paper); }
#demo .result-summary[data-route="ready_for_coding"] { border-color: var(--success); }
#demo .result-explanation p, #demo .missing-info ul { color: var(--muted); }
#demo .result-grid { grid-template-columns: minmax(310px, .88fr) minmax(0, 1.24fr); gap: 37px 45px; }
#demo .result-support { grid-column: 1; grid-row: 1; }
#demo .reply-card { grid-column: 2; grid-row: 1; padding-left: 25px; border-left: 1px solid var(--line-soft); }
#demo .result-support > details { padding: 17px 0 21px; border-top: 1px solid var(--line-soft); border-bottom: 0; }
#demo .result-support > details:first-child { border-top: 2px solid var(--accent); }
#demo .result-support summary { color: var(--text); }
#demo .result-support details[open] summary { margin-bottom: 17px; }
#demo .guardrail-card, #demo .sufficiency-card { padding: 17px 18px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 253, 249, .72); }
#demo .guardrail-card { border-color: rgba(168, 117, 43, .42); background: #FBF7EE; }
#demo .guardrail-card .panel-heading { display: flex; }
#demo .guardrail-card .panel-heading h2, #demo .sufficiency-card .panel-heading h2 { font-size: 18px; }
#demo .reply-card textarea { min-height: 265px; border-color: var(--line); background: #FBFAF7; }
#demo .evidence-card { padding-top: 31px; border-top-color: var(--line); }
#demo .evidence-tabs { border-color: var(--line-soft); }
#demo .ev-tab.active { color: var(--accent); background: rgba(91, 92, 136, .10); }
#demo .run-details { border-top-color: var(--line); }

/* Evaluation: use two chart grammars for two different truths. */
#evaluation .evaluation-hero { gap: 60px; }
#evaluation .evaluation-hero h1 { font-size: clamp(38px, 4vw, 55px); line-height: 1.16; letter-spacing: -.05em; }
#evaluation .eval-head-signal { border-color: var(--line-soft); background: transparent; box-shadow: none; }
#evaluation .eval-editorial-kicker { color: var(--muted); font: 10px var(--mono); letter-spacing: .08em; }
#evaluation .eval-primary-metric strong { color: var(--accent); }
#evaluation .eval-editorial-insight { border-color: var(--line-soft); }
#evaluation .eval-editorial-insight > strong { color: var(--warning); }
#evaluation .evaluation-overview { border-color: var(--line); }
#evaluation .evaluation-overview > div { border-color: var(--line-soft); }
#evaluation .evaluation-overview strong { color: var(--text); }
#evaluation .primary-performance strong { color: var(--accent); }
#evaluation .evaluation-signal { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr); gap: 45px; padding: 25px 0; border-block: 1px solid var(--line-soft); }
#evaluation .evaluation-signal-heading h2 { font-size: 22px; }
#evaluation .evaluation-signal-plot { display: grid; align-content: center; gap: 13px; }
#evaluation .evaluation-signal-row { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 16px; }
#evaluation .evaluation-signal-row > div:first-child { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 12px; }
#evaluation .evaluation-signal-row strong { color: var(--text); font: 13px var(--mono); }
#evaluation .signal-meter, #evaluation .signal-zero-track { height: 5px; background: var(--surface-raised); }
#evaluation .signal-meter i { display: block; height: 100%; background: var(--accent); }
#evaluation .signal-row-coding .signal-meter { background: rgba(168, 117, 43, .14); }
#evaluation .signal-row-coding .signal-meter i { background: var(--warning); }
#evaluation .signal-zero-track { display: flex; justify-content: flex-end; gap: 7px; background: transparent; }
#evaluation .signal-zero-track i { width: 7px; height: 7px; border: 1px solid var(--success); background: rgba(71, 116, 95, .12); }
#evaluation .eval-split { gap: 55px; }
#evaluation .eval-route-section { padding-right: 25px; border-right: 1px solid var(--line-soft); }
#evaluation .bar { height: 6px; background: var(--surface-raised); }
#evaluation .route-needs-info { background: var(--success); }
#evaluation .route-ready { background: var(--warning); }
#evaluation .route-docs { background: var(--accent); }
#evaluation .safety-section { border-left: 0; padding-left: 0; }
#evaluation .safety-ledger strong { color: var(--success); }
#evaluation .calibration { border-top: 2px solid var(--accent); background: var(--surface); box-shadow: var(--shadow-paper); }
#evaluation .eval-method { border-top: 1px solid var(--line-soft); padding-top: 45px; }

/* About: keep the visual map as one statement and make the real artifacts
   explicit before the causal version timeline. */
#about .story-header h1 { font-size: clamp(40px, 4vw, 56px); line-height: 1.15; letter-spacing: -.055em; }
#about .story-header-visual { border-color: var(--line-soft); background: transparent; box-shadow: none; }
#about .story-header-visual > p { color: var(--text); }
#about .story-header-visual > p em { color: var(--accent); }
#about .story-visual { border-color: var(--line); border-radius: 11px; background: var(--surface); box-shadow: var(--shadow-paper); }
#about .story-artifacts { display: flex; align-items: center; gap: 13px; margin: 16px 0 30px; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 8px; background: rgba(255, 253, 249, .55); overflow-x: auto; }
#about .story-artifacts span { flex: 0 0 auto; color: var(--muted); font: 11px var(--mono); letter-spacing: .025em; white-space: nowrap; }
#about .story-artifacts b { margin-right: 5px; color: var(--accent); font-weight: 500; }
#about .story-artifacts i { width: 24px; height: 1px; flex: 0 0 auto; background: var(--line); }
#about .story-chapter { border-color: var(--line-soft); }
#about .story-step::after { border-color: var(--accent); }
#about .story-step-current::after { background: var(--accent); }
#about .story-step-details summary, #about .story-text-link { color: var(--accent); }
#about .story-conclusion { border-color: var(--line-soft); }
#about .story-conclusion blockquote { color: var(--text); }

@media (max-width: 960px) {
  #home .home-hero { grid-template-columns: 1fr; gap: 34px; }
  #home .hero-visual { max-width: 700px; }
  #demo .workspace-head { grid-template-columns: 1fr; gap: 27px; }
  #demo .demo-hero-panel { padding: 19px 0 0; border-left: 0; border-top: 1px solid var(--line-soft); }
  #evaluation .evaluation-signal { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 700px) {
  #home { padding-top: 40px; }
  #home .hero-title h1 { font-size: clamp(36px, 10vw, 48px); }
  #home .hero-context { padding-top: 14px; }
  #home .hero-context > p { padding-left: 14px; font-size: 15px; }
  #home .cta, #home .trust-list { margin-left: 14px; }
  #home .hero-visual { border-radius: 9px; }
  #home .window-bar { gap: 14px; padding-inline: 15px; }
  #home .window-bar > span:nth-child(2) { font-size: 11px; }
  #home .window-label { display: none; }
  #home .preview-source, #home .preview-decision { padding: 23px 20px; }
  #home .preview-record-label { display: block; margin: 5px 0 0; }
  #home .preview-source h2 { font-size: 21px; }
  #home .preview-gate-check > div { gap: 7px; }
  #home .preview-gate-check b { font-size: 11px; }
  #home .preview-gate-check i { width: 13px; }
  #home .proof-strip { gap: 22px 18px; }
  #home .why-lead { font-size: 23px; }
  #demo .workspace-head h1 { font-size: 34px; }
  #demo .live-input { padding: 20px 17px 17px; }
  #demo .result-grid { display: flex; flex-direction: column; gap: 25px; }
  #demo .result-support { order: -1; }
  #demo .reply-card { order: 0; }
  #demo .evidence-card { order: 1; }
  #demo .run-details { order: 2; }
  #demo .reply-card { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-soft); padding-top: 24px; }
  #evaluation .evaluation-signal { display: block; }
  #evaluation .evaluation-signal-plot { margin-top: 20px; }
  #evaluation .evaluation-signal-row { grid-template-columns: 1fr; gap: 8px; }
  #evaluation .eval-route-section { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--line-soft); padding-bottom: 25px; }
  #about .story-artifacts { margin-top: 13px; margin-bottom: 24px; padding-inline: 12px; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  #home::before, #home .hero-canvas-contours path, #home .hero-evidence-lines .hero-wire,
  #home .hero-visual::after, #demo .demo-hero-panel::after, #evaluation .eval-head-signal::after,
  #about .story-header-visual::after, #architecture .arch-wire-evidence path { animation: none !important; }
}

/* Absolute last pass: measured connector geometry must win over all legacy rules. */
#architecture .arch-canvas { overflow: hidden; }
#architecture .arch-connectors { z-index: 1 !important; pointer-events: none !important; }
#architecture .arch-canvas [data-arch-node], #architecture .arch-source, #architecture .arch-source-note, #architecture .arch-agent, #architecture .arch-evidence, #architecture .arch-assessment, #architecture .arch-admission-context, #architecture .arch-gate, #architecture .arch-gate-criteria, #architecture .arch-outcomes { z-index: 3 !important; }
#architecture .arch-wire { stroke-dasharray: none !important; animation: none !important; filter: none !important; }
#architecture .arch-wire path { stroke-dasharray: none !important; animation: none !important; }
#architecture .arch-wire-evidence { stroke: #5b5c88 !important; opacity: .78 !important; stroke-width: 1.5 !important; }
#architecture .arch-wire-evidence path { stroke-dasharray: 10 16 !important; animation: architecture-evidence-flow 8s linear infinite !important; }
#architecture .arch-wire-branch { stroke: rgba(32,40,45,.57) !important; opacity: .82 !important; }
#architecture .arch-junction { fill: #5b5c88 !important; filter: none !important; }
#architecture .arch-source, #architecture .agent-step, #architecture .arch-retrieval-method, #architecture .arch-fusion, #architecture .arch-snapshot, #architecture .arch-assessment, #architecture .architecture-branch { background: #fffefa !important; }
#architecture .arch-evidence { background: rgba(255,254,250,.90) !important; }
#architecture .arch-evidence::before { background: rgba(255,254,250,.97) !important; }
#architecture .arch-agent .arch-component-heading h3 { position: relative; z-index: 5; background: rgba(251,250,246,.96) !important; }
#architecture .arch-wire > path:nth-child(1) { d: path("M122 103 V127") !important; }
#architecture .arch-wire > path:nth-child(2) { d: path("M195 227 H244") !important; }
#architecture .arch-wire > path:nth-child(3) { d: path("M423 227 H471") !important; }
#architecture .arch-wire > path:nth-child(4) { d: path("M650 227 H697") !important; }
#architecture .arch-wire > path:nth-child(5) { d: path("M877 227 H923") !important; }
#architecture .arch-wire > path:nth-child(6) { d: path("M1019 282 V347") !important; }
#architecture .arch-wire > path:nth-child(7) { d: path("M1005 477 H1096 V755 H700 V698 H625") !important; }
#architecture .arch-wire-evidence > path:nth-child(1) { d: path("M560 282 V315 H28 V350 H47") !important; }
#architecture .arch-wire-evidence > path:nth-child(2) { d: path("M47 350 V478 H47") !important; }
#architecture .arch-wire-evidence > path:nth-child(3) { d: path("M47 478 V534 H47") !important; }
#architecture .arch-wire-evidence > path:nth-child(4) { d: path("M221 478 H260 V507 H296") !important; }
#architecture .arch-wire-evidence > path:nth-child(5) { d: path("M221 534 H260 V507 H296") !important; }
#architecture .arch-wire-evidence > path:nth-child(6) { d: path("M452 507 H527") !important; }
#architecture .arch-wire-evidence > path:nth-child(7) { d: path("M743 507 H850 V315 H560 V282") !important; }
#architecture .arch-wire-branch > path:nth-child(1) { d: path("M560 766 V792 H269 V818") !important; }
#architecture .arch-wire-branch > path:nth-child(2) { d: path("M560 766 V792 H851 V818") !important; }
#architecture .arch-junction { cx: 560 !important; cy: 792 !important; }
#architecture .arch-route-policy { top: 626px !important; }

@media (max-width: 1100px) and (min-width: 901px) {
  #architecture .arch-wire > path:nth-child(7) { d: path("M1005 477 H1096 V755 H700 V698 H625") !important; }
}
@media (max-width: 900px) {
  #architecture .arch-canvas { overflow: visible; background: linear-gradient(145deg, #fffefa 0%, #fbfaf6 58%, #f0f2ed 100%) !important; }
  #architecture .arch-canvas::before { opacity: .24 !important; }
  #architecture .arch-canvas .arch-gate { width: 136px !important; height: 136px !important; inset: auto !important; margin: 22px auto !important; }
  #architecture .arch-agent-track .agent-step { position: relative; overflow: visible; }
  #architecture .arch-agent-track .agent-step:not(:last-child)::after { content: ""; position: absolute; z-index: 4; left: 28px; bottom: -13px; width: 1px; height: 13px; background: rgba(91,92,136,.48); }
}
@media (prefers-reduced-motion: reduce) {
  #architecture .arch-wire-evidence path { animation: none !important; stroke-dashoffset: 0 !important; }
}

/* Last architecture contract: geometry is tied to the measured node edges above. */
#architecture .arch-canvas { overflow: hidden; }
#architecture .arch-connectors { z-index: 1 !important; pointer-events: none !important; }
#architecture .arch-canvas [data-arch-node],
#architecture .arch-source,
#architecture .arch-source-note,
#architecture .arch-agent,
#architecture .arch-evidence,
#architecture .arch-assessment,
#architecture .arch-admission-context,
#architecture .arch-gate,
#architecture .arch-gate-criteria,
#architecture .arch-outcomes { z-index: 3 !important; }
#architecture .arch-wire { stroke-dasharray: none !important; animation: none !important; filter: none !important; }
#architecture .arch-wire path { stroke-dasharray: none !important; animation: none !important; }
#architecture .arch-wire-evidence { stroke: #5b5c88 !important; opacity: .78 !important; stroke-width: 1.5 !important; }
#architecture .arch-wire-evidence path { stroke-dasharray: 10 16 !important; animation: architecture-evidence-flow 8s linear infinite !important; }
#architecture .arch-wire-branch { stroke: rgba(32,40,45,.57) !important; opacity: .82 !important; }
#architecture .arch-junction { fill: #5b5c88 !important; filter: none !important; }
#architecture .arch-source,
#architecture .agent-step,
#architecture .arch-retrieval-method,
#architecture .arch-fusion,
#architecture .arch-snapshot,
#architecture .arch-assessment,
#architecture .architecture-branch { background: #fffefa !important; }
#architecture .arch-evidence { background: rgba(255,254,250,.90) !important; }
#architecture .arch-evidence::before { background: rgba(255,254,250,.97) !important; }
#architecture .arch-agent .arch-component-heading h3 { position: relative; z-index: 5; background: rgba(251,250,246,.96) !important; }

#architecture .arch-wire > path:nth-child(1) { d: path("M122 103 V127") !important; }
#architecture .arch-wire > path:nth-child(2) { d: path("M195 227 H244") !important; }
#architecture .arch-wire > path:nth-child(3) { d: path("M423 227 H471") !important; }
#architecture .arch-wire > path:nth-child(4) { d: path("M650 227 H697") !important; }
#architecture .arch-wire > path:nth-child(5) { d: path("M877 227 H923") !important; }
#architecture .arch-wire > path:nth-child(6) { d: path("M1019 282 V347") !important; }
#architecture .arch-wire > path:nth-child(7) { d: path("M1005 477 H1096 V755 H700 V698 H625") !important; }
#architecture .arch-wire-evidence > path:nth-child(1) { d: path("M560 282 V315 H28 V350 H47") !important; }
#architecture .arch-wire-evidence > path:nth-child(2) { d: path("M47 350 V478 H47") !important; }
#architecture .arch-wire-evidence > path:nth-child(3) { d: path("M47 478 V534 H47") !important; }
#architecture .arch-wire-evidence > path:nth-child(4) { d: path("M221 478 H260 V507 H296") !important; }
#architecture .arch-wire-evidence > path:nth-child(5) { d: path("M221 534 H260 V507 H296") !important; }
#architecture .arch-wire-evidence > path:nth-child(6) { d: path("M452 507 H527") !important; }
#architecture .arch-wire-evidence > path:nth-child(7) { d: path("M743 507 H850 V315 H560 V282") !important; }
#architecture .arch-wire-branch > path:nth-child(1) { d: path("M560 766 V792 H269 V818") !important; }
#architecture .arch-wire-branch > path:nth-child(2) { d: path("M560 766 V792 H851 V818") !important; }
#architecture .arch-junction { cx: 560 !important; cy: 792 !important; }
#architecture .arch-route-policy { top: 626px !important; }

@media (max-width: 1100px) and (min-width: 901px) {
  #architecture .arch-wire > path:nth-child(7) { d: path("M1005 477 H1096 V755 H700 V698 H625") !important; }
}

@media (max-width: 900px) {
  #architecture .arch-canvas { overflow: visible; background: linear-gradient(145deg, #fffefa 0%, #fbfaf6 58%, #f0f2ed 100%) !important; }
  #architecture .arch-canvas .arch-gate { width: 136px !important; height: 136px !important; inset: auto !important; margin: 22px auto !important; }
  #architecture .arch-canvas::before { opacity: .24 !important; }
  #architecture .arch-agent-track .agent-step { position: relative; overflow: visible; }
  #architecture .arch-agent-track .agent-step:not(:last-child)::after { content: ""; position: absolute; z-index: 4; left: 28px; bottom: -13px; width: 1px; height: 13px; background: rgba(91,92,136,.48); }
}

@media (prefers-reduced-motion: reduce) {
  #architecture .arch-wire-evidence path { animation: none !important; stroke-dashoffset: 0 !important; }
}

/* Architecture final polish v3: clean orthogonal routes with opaque node surfaces. */
#architecture .arch-canvas {
  --arch-paper: #fbfaf6;
  --arch-ink: #20282d;
  --arch-muted: #657078;
  --arch-indigo: #5b5c88;
  --arch-mint: #47745f;
  --arch-amber: #9a6c2c;
  isolation: isolate;
  overflow: hidden;
  color: var(--arch-ink) !important;
  border: 1px solid rgba(32,40,45,.17) !important;
  background:
    url("./assets/issuegate-paper-texture.svg") center / cover no-repeat,
    linear-gradient(145deg, #fffefa 0%, var(--arch-paper) 58%, #f0f2ed 100%) !important;
  box-shadow: 0 24px 48px rgba(45,49,46,.12), inset 0 1px 0 rgba(255,255,255,.88) !important;
}
#architecture .arch-canvas::before {
  opacity: .42 !important;
  background-image:
    linear-gradient(rgba(32,40,45,.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32,40,45,.038) 1px, transparent 1px) !important;
  background-size: 48px 48px !important;
}
#architecture .arch-canvas::after { color: rgba(32,40,45,.35) !important; }
#architecture .arch-connectors { z-index: 1 !important; pointer-events: none !important; }
#architecture .arch-canvas [data-arch-node],
#architecture .arch-source,
#architecture .arch-source-note,
#architecture .arch-agent,
#architecture .arch-evidence,
#architecture .arch-assessment,
#architecture .arch-admission-context,
#architecture .arch-gate,
#architecture .arch-gate-criteria,
#architecture .arch-outcomes { z-index: 3 !important; }

#architecture .arch-wire {
  stroke: rgba(32,40,45,.62) !important;
  stroke-width: 1.35 !important;
  filter: none !important;
  stroke-dasharray: none !important;
  animation: none !important;
}
#architecture .arch-wire path {
  stroke-dasharray: none !important;
  animation: none !important;
}
#architecture .arch-wire-evidence {
  stroke: var(--arch-indigo) !important;
  opacity: .78 !important;
  stroke-width: 1.5 !important;
}
#architecture .arch-wire-evidence path {
  stroke-dasharray: 10 16 !important;
  animation: architecture-evidence-flow 8s linear infinite !important;
}
#architecture .arch-wire-branch { stroke: rgba(32,40,45,.57) !important; opacity: .82 !important; }
#architecture .arch-junction { fill: var(--arch-indigo) !important; filter: none !important; }

#architecture .arch-route-label {
  z-index: 4 !important;
  padding: 3px 7px !important;
  border: 1px solid rgba(32,40,45,.11) !important;
  border-radius: 999px !important;
  background: rgba(251,250,246,.92) !important;
  color: rgba(32,40,45,.57) !important;
  box-shadow: 0 2px 8px rgba(45,49,46,.05) !important;
}
#architecture .arch-route-label::before { opacity: .75; }
#architecture .arch-route-evidence span { color: var(--arch-indigo) !important; }
#architecture .arch-route-policy span { color: var(--arch-amber) !important; }
#architecture .arch-route-human span { color: var(--arch-mint) !important; }

#architecture .arch-source,
#architecture .agent-step,
#architecture .arch-retrieval-method,
#architecture .arch-fusion,
#architecture .arch-snapshot,
#architecture .arch-assessment,
#architecture .architecture-branch {
  color: var(--arch-ink) !important;
  border-color: rgba(32,40,45,.17) !important;
  background: #fffefa !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.94), 0 10px 22px rgba(38,47,49,.08) !important;
}
#architecture .arch-source { background: #faf9fd !important; border-color: rgba(91,92,136,.38) !important; }
#architecture .arch-evidence::before {
  background: rgba(255,254,250,.97) !important;
  border-color: rgba(91,92,136,.22) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 14px 30px rgba(38,47,49,.06) !important;
}
#architecture .arch-evidence { background: rgba(255,254,250,.90) !important; }
#architecture .arch-step-retrieve { background: rgba(91,92,136,.10) !important; border-color: rgba(91,92,136,.38) !important; }
#architecture .arch-step-retrieve strong { color: #3f416f !important; }
#architecture .arch-fusion { background: rgba(91,92,136,.08) !important; border-color: rgba(91,92,136,.34) !important; }
#architecture .arch-snapshot { background: rgba(71,116,95,.08) !important; border-color: rgba(71,116,95,.40) !important; }
#architecture .arch-assessment { background: rgba(154,108,44,.09) !important; border-color: rgba(154,108,44,.42) !important; }
#architecture .arch-coding { background: rgba(71,116,95,.08) !important; border-color: rgba(71,116,95,.38) !important; }
#architecture .arch-source strong,
#architecture .agent-step strong,
#architecture .arch-retrieval-method strong,
#architecture .arch-fusion strong,
#architecture .arch-snapshot strong,
#architecture .arch-assessment h3,
#architecture .architecture-branch h3,
#architecture .arch-agent .arch-component-heading h3,
#architecture .arch-evidence .arch-component-heading h3,
#architecture .arch-admission-context h3,
#architecture .arch-gate-criteria p { color: var(--arch-ink) !important; }
#architecture .arch-source span:not(.arch-source-mark),
#architecture .arch-source-note,
#architecture .agent-step p,
#architecture .arch-evidence-sources,
#architecture .arch-retrieval-method span,
#architecture .arch-fusion > span,
#architecture .arch-snapshot > span,
#architecture .arch-assessment p,
#architecture .architecture-branch p,
#architecture .arch-route-list code,
#architecture .arch-route-list > span,
#architecture .arch-canvas-footnote { color: var(--arch-muted) !important; }
#architecture .arch-assessment .arch-small-label { color: var(--arch-amber) !important; }
#architecture .arch-coding .arch-route-list code { color: var(--arch-mint) !important; }
#architecture .arch-gate-shape { color: var(--arch-indigo) !important; filter: drop-shadow(0 0 7px rgba(91,92,136,.22)) !important; }
#architecture .arch-gate strong { color: #35365f !important; }
#architecture .arch-gate span { color: var(--arch-muted) !important; }
#architecture .arch-route-policy { top: 626px !important; }
#architecture .arch-agent .arch-component-heading h3 {
  position: relative;
  z-index: 5;
  padding-left: 4px;
  background: rgba(251,250,246,.96) !important;
}

@media (max-width: 1100px) and (min-width: 901px) {
  #architecture .arch-wire > path:nth-child(6) { d: path("M1019 282 V347"); }
  #architecture .arch-wire > path:nth-child(7) { d: path("M1005 477 H1096 V755 H700 V698 H625"); }
  #architecture .arch-wire-branch > path:nth-child(1) { d: path("M560 724 V755 H269 V787"); }
  #architecture .arch-wire-branch > path:nth-child(2) { d: path("M560 724 V755 H851 V787"); }
  #architecture .arch-junction { cy: 755 !important; }
}

@media (max-width: 900px) {
  #architecture .arch-canvas {
    overflow: visible;
    background: linear-gradient(145deg, #fffefa 0%, #fbfaf6 58%, #f0f2ed 100%) !important;
  }
  #architecture .arch-canvas::before { opacity: .24 !important; }
  #architecture .arch-canvas .arch-gate {
    width: 136px !important;
    height: 136px !important;
    inset: auto !important;
    margin: 22px auto !important;
  }
  #architecture .arch-agent-track .agent-step { position: relative; overflow: visible; }
  #architecture .arch-agent-track .agent-step:not(:last-child)::after {
    content: "";
    position: absolute;
    z-index: 4;
    left: 28px;
    bottom: -13px;
    width: 1px;
    height: 13px;
    background: rgba(91,92,136,.48);
  }
  #architecture .arch-agent-track .agent-step:not(:last-child)::before {
    box-shadow: none !important;
  }
  #architecture .arch-canvas-footnote { color: var(--arch-muted) !important; }
}

@media (prefers-reduced-motion: reduce) {
  #architecture .arch-wire-evidence path { animation: none !important; stroke-dashoffset: 0 !important; }
}

/* Final light architecture theme: keep the system map legible after the legacy layout rules above. */
#architecture .arch-canvas {
  --arch-paper: #fbfaf6;
  --arch-ink: #20282d;
  --arch-muted: #657078;
  --arch-indigo: #5b5c88;
  --arch-mint: #47745f;
  --arch-amber: #9a6c2c;
  color: var(--arch-ink) !important;
  border-color: rgba(32, 40, 45, .18) !important;
  background:
    url("./assets/issuegate-paper-texture.svg") center / cover no-repeat,
    radial-gradient(circle at 16% 8%, rgba(91, 92, 136, .08), transparent 28%),
    linear-gradient(145deg, #fffefa 0%, var(--arch-paper) 58%, #f0f2ed 100%) !important;
  box-shadow: 0 24px 48px rgba(45, 49, 46, .12), inset 0 1px 0 rgba(255,255,255,.86) !important;
}
#architecture .arch-canvas::before {
  opacity: .55 !important;
  background-image:
    linear-gradient(rgba(32, 40, 45, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 40, 45, .045) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 48%, rgba(91, 92, 136, .045) 49%, transparent 50% 100%) !important;
}
#architecture .arch-canvas::after { color: rgba(32, 40, 45, .40) !important; }
#architecture .arch-canvas-rail,
#architecture .arch-route-label { color: rgba(32, 40, 45, .60) !important; }
#architecture .arch-rail-status { color: var(--arch-mint) !important; }
#architecture .arch-rail-status i { background: var(--arch-mint) !important; box-shadow: 0 0 0 4px rgba(71, 116, 95, .11) !important; }
#architecture .arch-route-label::before { background: rgba(32, 40, 45, .30) !important; }
#architecture .arch-route-label span { color: var(--arch-indigo) !important; }
#architecture .arch-route-policy span { color: var(--arch-amber) !important; }
#architecture .arch-route-human span { color: var(--arch-mint) !important; }
#architecture .arch-route-evidence::before { background: var(--arch-indigo) !important; }
#architecture .arch-route-policy::before { background: var(--arch-amber) !important; }
#architecture .arch-route-human::before { background: var(--arch-mint) !important; }
#architecture .arch-connectors { mix-blend-mode: multiply; }
#architecture .arch-orbit { stroke: rgba(91, 92, 136, .14) !important; }
#architecture .arch-orbit-inner { stroke: rgba(71, 116, 95, .12) !important; }
#architecture .arch-wire { stroke: rgba(32, 40, 45, .76) !important; filter: none !important; }
#architecture .arch-wire-evidence { stroke: var(--arch-indigo) !important; opacity: .90 !important; }
#architecture .arch-wire-branch { stroke: rgba(32, 40, 45, .68) !important; opacity: .82 !important; }
#architecture .arch-junction { fill: var(--arch-indigo) !important; filter: drop-shadow(0 0 4px rgba(91, 92, 136, .32)) !important; }
#architecture .arch-source,
#architecture .agent-step,
#architecture .arch-retrieval-method,
#architecture .arch-fusion,
#architecture .arch-snapshot,
#architecture .arch-assessment,
#architecture .architecture-branch {
  color: var(--arch-ink) !important;
  border-color: rgba(32, 40, 45, .18) !important;
  background: rgba(255, 254, 250, .82) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 10px 22px rgba(38, 47, 49, .08) !important;
}
#architecture .arch-source { border-color: rgba(91, 92, 136, .36) !important; background: rgba(250, 249, 253, .90) !important; }
#architecture .arch-source-mark { color: var(--arch-indigo) !important; }
#architecture .arch-source strong,
#architecture .agent-step strong,
#architecture .arch-retrieval-method strong,
#architecture .arch-fusion strong,
#architecture .arch-snapshot strong,
#architecture .arch-assessment h3,
#architecture .architecture-branch h3,
#architecture .arch-agent .arch-component-heading h3,
#architecture .arch-evidence .arch-component-heading h3,
#architecture .arch-admission-context h3,
#architecture .arch-gate-criteria p { color: var(--arch-ink) !important; }
#architecture .arch-source span:not(.arch-source-mark),
#architecture .arch-source-note,
#architecture .agent-step p,
#architecture .arch-evidence-sources,
#architecture .arch-retrieval-method span,
#architecture .arch-fusion > span,
#architecture .arch-snapshot > span,
#architecture .arch-assessment p,
#architecture .architecture-branch p,
#architecture .arch-route-list code,
#architecture .arch-route-list > span,
#architecture .arch-canvas-footnote { color: var(--arch-muted) !important; }
#architecture .arch-step-index { color: rgba(32, 40, 45, .54) !important; }
#architecture .agent-step::before { background: rgba(32, 40, 45, .26) !important; }
#architecture .agent-step:nth-child(3)::before { background: var(--arch-indigo) !important; box-shadow: 0 0 14px rgba(91, 92, 136, .26) !important; }
#architecture .agent-step:nth-child(5)::before { background: var(--arch-mint) !important; }
#architecture .arch-step-retrieve { background: rgba(91, 92, 136, .10) !important; border-color: rgba(91, 92, 136, .36) !important; }
#architecture .arch-step-retrieve strong { color: #3f416f !important; }
#architecture .arch-evidence::before { border-color: rgba(91, 92, 136, .24) !important; background: rgba(248, 248, 244, .76) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.76), 0 14px 30px rgba(38, 47, 49, .07) !important; }
#architecture .arch-evidence-sources span + span::before { background: rgba(32, 40, 45, .26) !important; }
#architecture .arch-retrieval-method { border-left-color: rgba(91, 92, 136, .52) !important; }
#architecture .arch-retrieval-method:nth-child(2) { border-left-color: rgba(71, 116, 95, .58) !important; }
#architecture .arch-fusion { border-color: rgba(91, 92, 136, .34) !important; background: rgba(91, 92, 136, .08) !important; }
#architecture .arch-snapshot { border-color: rgba(71, 116, 95, .40) !important; background: rgba(71, 116, 95, .08) !important; }
#architecture .arch-evidence-caption { color: var(--arch-muted) !important; }
#architecture .arch-loop-key { background: var(--arch-indigo) !important; box-shadow: 0 0 5px rgba(91, 92, 136, .34) !important; }
#architecture .arch-assessment { border-color: rgba(154, 108, 44, .42) !important; background: rgba(154, 108, 44, .09) !important; }
#architecture .arch-assessment .arch-small-label { color: var(--arch-amber) !important; }
#architecture .arch-assessment p { color: #6f5731 !important; }
#architecture .arch-assessment p strong { color: #4e3c22 !important; }
#architecture .arch-admission-context::before,
#architecture .arch-gate-criteria::before { background: linear-gradient(90deg, var(--arch-indigo), transparent) !important; }
#architecture .arch-gate { filter: drop-shadow(0 9px 18px rgba(91, 92, 136, .12)) !important; }
#architecture .arch-gate::before { background: radial-gradient(circle, rgba(91, 92, 136, .19), rgba(91, 92, 136, .05) 58%, transparent 72%) !important; }
#architecture .arch-gate-shape { color: var(--arch-indigo) !important; filter: drop-shadow(0 0 7px rgba(91, 92, 136, .25)) !important; }
#architecture .arch-gate strong { color: #35365f !important; }
#architecture .arch-gate span { color: var(--arch-muted) !important; }
#architecture .architecture-branch { background: rgba(255, 254, 250, .86) !important; }
#architecture .arch-review { border-color: rgba(154, 108, 44, .34) !important; }
#architecture .arch-coding { border-color: rgba(71, 116, 95, .38) !important; background: rgba(71, 116, 95, .08) !important; }
#architecture .arch-review .arch-branch-rule { background: var(--arch-amber) !important; }
#architecture .arch-coding .arch-branch-rule { background: var(--arch-mint) !important; }
#architecture .arch-coding .arch-route-list code { color: var(--arch-mint) !important; }
#architecture .arch-canvas-footnote { border-color: rgba(32, 40, 45, .13) !important; }
#architecture .arch-canvas[data-focus] [data-arch-node] { opacity: .28; filter: saturate(.60); }
#architecture .arch-canvas[data-focus="input"] [data-arch-node="input"],
#architecture .arch-canvas[data-focus="agent"] [data-arch-node="agent"],
#architecture .arch-canvas[data-focus="evidence"] [data-arch-node="evidence"],
#architecture .arch-canvas[data-focus="assessment"] [data-arch-node="assessment"],
#architecture .arch-canvas[data-focus="gate"] [data-arch-node="gate"],
#architecture .arch-canvas[data-focus="review"] [data-arch-node="review"],
#architecture .arch-canvas[data-focus="coding"] [data-arch-node="coding"] { opacity: 1; filter: saturate(1.08) drop-shadow(0 10px 20px rgba(38, 47, 49, .16)); }
#architecture .arch-canvas [data-arch-node]:focus-visible { outline-color: rgba(91, 92, 136, .84) !important; }

@media (max-width: 900px) {
  #architecture .arch-canvas { background: linear-gradient(145deg, #fffefa 0%, #fbfaf6 58%, #f0f2ed 100%) !important; }
}

/* Architecture visual v2: warm paper canvas with a restrained animated evidence flow. */
#architecture .arch-canvas {
  --arch-paper: #fbfaf6;
  --arch-paper-deep: #f2f0e9;
  --arch-ink: #20282d;
  --arch-muted: #657078;
  --arch-rule: rgba(32, 40, 45, .18);
  --arch-rule-soft: rgba(32, 40, 45, .10);
  --arch-indigo: #5b5c88;
  --arch-mint: #47745f;
  --arch-amber: #9a6c2c;
  color: var(--arch-ink);
  border: 1px solid rgba(32, 40, 45, .18);
  background:
    url("./assets/issuegate-paper-texture.svg") center / cover no-repeat,
    radial-gradient(circle at 16% 8%, rgba(91, 92, 136, .08), transparent 28%),
    linear-gradient(145deg, #fffefa 0%, var(--arch-paper) 58%, #f0f2ed 100%);
  box-shadow: 0 24px 48px rgba(45, 49, 46, .12), inset 0 1px 0 rgba(255,255,255,.86);
}
#architecture .arch-canvas::before {
  opacity: .55;
  background-image:
    linear-gradient(rgba(32, 40, 45, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 40, 45, .045) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 48%, rgba(91, 92, 136, .045) 49%, transparent 50% 100%);
  background-size: 48px 48px, 48px 48px, 180px 180px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.72) 76%, transparent 100%);
}
#architecture .arch-canvas::after { color: rgba(32, 40, 45, .40); }
#architecture .arch-canvas-rail { color: rgba(32, 40, 45, .52); }
#architecture .arch-rail-status { color: var(--arch-mint); }
#architecture .arch-rail-status i { background: var(--arch-mint); box-shadow: 0 0 0 4px rgba(71, 116, 95, .11); }
#architecture .arch-route-label { color: rgba(32, 40, 45, .60); }
#architecture .arch-route-label::before { background: rgba(32, 40, 45, .30); }
#architecture .arch-route-label span { color: var(--arch-indigo); }
#architecture .arch-route-evidence::before { background: var(--arch-indigo); }
#architecture .arch-route-policy span { color: var(--arch-amber); }
#architecture .arch-route-policy::before { background: var(--arch-amber); }
#architecture .arch-route-human span { color: var(--arch-mint); }
#architecture .arch-route-human::before { background: var(--arch-mint); }
#architecture .arch-connectors { mix-blend-mode: multiply; }
#architecture .arch-atmosphere { opacity: .52; }
#architecture .arch-halo { mix-blend-mode: multiply; opacity: .55; }
#architecture .arch-orbit { stroke: rgba(91, 92, 136, .14); }
#architecture .arch-orbit-inner { stroke: rgba(71, 116, 95, .12); }
#architecture .arch-wire { stroke: rgba(32, 40, 45, .76); filter: none; }
#architecture .arch-wire-evidence { stroke: var(--arch-indigo); opacity: .90; }
#architecture .arch-wire-branch { stroke: rgba(32, 40, 45, .68); opacity: .82; }
#architecture .arch-junction { fill: var(--arch-indigo); filter: drop-shadow(0 0 4px rgba(91, 92, 136, .32)); }
#architecture .arch-source,
#architecture .agent-step,
#architecture .arch-retrieval-method,
#architecture .arch-fusion,
#architecture .arch-snapshot,
#architecture .arch-assessment,
#architecture .architecture-branch {
  color: var(--arch-ink);
  border-color: rgba(32, 40, 45, .18);
  background: rgba(255, 254, 250, .78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 10px 22px rgba(38, 47, 49, .08);
}
#architecture .arch-source { border-color: rgba(91, 92, 136, .36); background: rgba(250, 249, 253, .88); }
#architecture .arch-source-mark { color: var(--arch-indigo); }
#architecture .arch-source strong,
#architecture .agent-step strong,
#architecture .arch-retrieval-method strong,
#architecture .arch-fusion strong,
#architecture .arch-snapshot strong,
#architecture .arch-assessment h3,
#architecture .architecture-branch h3 { color: var(--arch-ink); }
#architecture .arch-source span:not(.arch-source-mark),
#architecture .arch-source-note,
#architecture .agent-step p,
#architecture .arch-evidence-sources,
#architecture .arch-retrieval-method span,
#architecture .arch-fusion > span,
#architecture .arch-snapshot > span,
#architecture .arch-assessment p,
#architecture .architecture-branch p,
#architecture .arch-route-list code,
#architecture .arch-route-list > span,
#architecture .arch-canvas-footnote { color: var(--arch-muted); }
#architecture .arch-agent .arch-component-heading h3,
#architecture .arch-evidence .arch-component-heading h3 { color: var(--arch-ink); }
#architecture .arch-step-index { color: rgba(32, 40, 45, .54); }
#architecture .agent-step::before { background: rgba(32, 40, 45, .26); }
#architecture .agent-step:nth-child(3)::before { background: var(--arch-indigo); box-shadow: 0 0 14px rgba(91, 92, 136, .26); }
#architecture .agent-step:nth-child(5)::before { background: var(--arch-mint); }
#architecture .arch-step-retrieve { background: rgba(91, 92, 136, .10); border-color: rgba(91, 92, 136, .36); }
#architecture .arch-step-retrieve strong { color: #3f416f; }
#architecture .arch-evidence { isolation: isolate; }
#architecture .arch-evidence::before {
  border-color: rgba(91, 92, 136, .24);
  background: rgba(248, 248, 244, .72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.76), 0 14px 30px rgba(38, 47, 49, .07);
}
#architecture .arch-evidence-sources span + span::before { background: rgba(32, 40, 45, .26); }
#architecture .arch-retrieval-method { border-left-color: rgba(91, 92, 136, .52); }
#architecture .arch-retrieval-method:nth-child(2) { border-left-color: rgba(71, 116, 95, .58); }
#architecture .arch-fusion { border-color: rgba(91, 92, 136, .34); background: rgba(91, 92, 136, .08); }
#architecture .arch-snapshot { border-color: rgba(71, 116, 95, .40); background: rgba(71, 116, 95, .08); }
#architecture .arch-evidence-caption { color: var(--arch-muted); }
#architecture .arch-loop-key { background: var(--arch-indigo); box-shadow: 0 0 5px rgba(91, 92, 136, .34); }
#architecture .arch-assessment { border-color: rgba(154, 108, 44, .42); background: rgba(154, 108, 44, .09); }
#architecture .arch-assessment .arch-small-label { color: var(--arch-amber); }
#architecture .arch-assessment p { color: #6f5731; }
#architecture .arch-assessment p strong { color: #4e3c22; }
#architecture .arch-admission-context h3,
#architecture .arch-gate-criteria p { color: var(--arch-ink); }
#architecture .arch-admission-context::before,
#architecture .arch-gate-criteria::before { background: linear-gradient(90deg, var(--arch-indigo), transparent); }
#architecture .arch-gate { filter: drop-shadow(0 9px 18px rgba(91, 92, 136, .12)); }
#architecture .arch-gate::before { background: radial-gradient(circle, rgba(91, 92, 136, .19), rgba(91, 92, 136, .05) 58%, transparent 72%); }
#architecture .arch-gate-shape { color: var(--arch-indigo); filter: drop-shadow(0 0 7px rgba(91, 92, 136, .25)); }
#architecture .arch-gate strong { color: #35365f; }
#architecture .arch-gate span { color: var(--arch-muted); }
#architecture .architecture-branch { background: rgba(255, 254, 250, .82); }
#architecture .arch-review { border-color: rgba(154, 108, 44, .34); }
#architecture .arch-coding { border-color: rgba(71, 116, 95, .38); background: rgba(71, 116, 95, .08); }
#architecture .arch-review .arch-branch-rule { background: var(--arch-amber); }
#architecture .arch-coding .arch-branch-rule { background: var(--arch-mint); }
#architecture .arch-coding .arch-route-list code { color: var(--arch-mint); }
#architecture .arch-canvas-footnote { border-color: rgba(32, 40, 45, .13); }
#architecture .arch-canvas[data-focus] [data-arch-node] { opacity: .28; filter: saturate(.60); }
#architecture .arch-canvas[data-focus="input"] [data-arch-node="input"],
#architecture .arch-canvas[data-focus="agent"] [data-arch-node="agent"],
#architecture .arch-canvas[data-focus="evidence"] [data-arch-node="evidence"],
#architecture .arch-canvas[data-focus="assessment"] [data-arch-node="assessment"],
#architecture .arch-canvas[data-focus="gate"] [data-arch-node="gate"],
#architecture .arch-canvas[data-focus="review"] [data-arch-node="review"],
#architecture .arch-canvas[data-focus="coding"] [data-arch-node="coding"] {
  opacity: 1;
  filter: saturate(1.08) drop-shadow(0 10px 20px rgba(38, 47, 49, .16));
}
#architecture .arch-canvas [data-arch-node]:focus-visible { outline-color: rgba(91, 92, 136, .84); }

@keyframes arch-flow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -120; }
}
@keyframes arch-node-breathe {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 10px 22px rgba(38, 47, 49, .08); }
  50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 13px 28px rgba(91, 92, 136, .16); }
}
#architecture .arch-wire path { stroke-dasharray: 2 18; animation: arch-flow 8s linear infinite; }
#architecture .arch-wire-evidence path { stroke-dasharray: 5 20; animation-duration: 6.8s; }
#architecture .arch-wire-branch path { stroke-dasharray: 3 19; animation-duration: 8.6s; }
#architecture .arch-step-retrieve { animation: arch-node-breathe 4.8s ease-in-out infinite; }
#architecture .arch-gate-shape { animation: arch-node-breathe 5.2s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  #architecture .arch-wire path,
  #architecture .arch-step-retrieve,
  #architecture .arch-gate-shape { animation: none !important; }
}

@media (max-width: 1100px) and (min-width: 901px) {
  #architecture .agent-step p { font-size: 12px; }
}

/* About motion system: restrained timing, one-way reveals, and no motion-dependent content. */
html.motion-ready #about .motion-reveal {
  opacity: 0;
  transform: translateY(10px);
}
html.motion-ready #about .motion-reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity var(--motion-slow) var(--ease-enter), transform var(--motion-slow) var(--ease-enter);
}
html.motion-ready #about .story-header.motion-reveal {
  opacity: 1;
  transform: none;
  transition: none;
}
html.motion-ready #about .story-header .story-page-label,
html.motion-ready #about .story-header h1,
html.motion-ready #about .story-header .story-deck,
html.motion-ready #about .story-header .story-project-meta {
  opacity: 0;
  transform: translateY(10px);
}
html.motion-ready #about .story-header.is-visible .story-page-label,
html.motion-ready #about .story-header.is-visible h1,
html.motion-ready #about .story-header.is-visible .story-deck,
html.motion-ready #about .story-header.is-visible .story-project-meta {
  opacity: 1;
  transform: none;
  transition: opacity var(--motion-slow) var(--ease-enter), transform var(--motion-slow) var(--ease-enter);
}
html.motion-ready #about .story-header.is-visible h1 { transition-delay: 55ms; }
html.motion-ready #about .story-header.is-visible .story-deck { transition-delay: 105ms; }
html.motion-ready #about .story-header.is-visible .story-project-meta { transition-delay: 135ms; }

html.motion-ready #about .story-map-wire path,
html.motion-ready #about .story-workflow svg path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
html.motion-ready #about .story-visual.is-visible .story-map-wire path,
html.motion-ready #about .story-problem.is-visible .story-workflow svg path {
  animation: about-wire-draw 520ms var(--ease-standard) forwards;
}
html.motion-ready #about .story-visual.is-visible .story-map-wire path:nth-child(2),
html.motion-ready #about .story-problem.is-visible .story-workflow svg path:nth-child(2) { animation-delay: 85ms; }
html.motion-ready #about .story-visual.is-visible .story-map-wire path:nth-child(3) { animation-delay: 170ms; }
html.motion-ready #about .story-visual.is-visible .story-map-wire path:nth-child(4) { animation-delay: 255ms; }
@keyframes about-wire-draw {
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  html.about-motion-active #about .story-map-route { animation: about-route-breathe 3.8s ease-in-out infinite; transform-origin: center; }
  @keyframes about-route-breathe {
    0%, 100% { opacity: .42; }
    50% { opacity: .88; }
  }
}

#about .story-timeline { position: relative; --timeline-progress: 0%; }
html.motion-ready #about .story-timeline::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: auto;
  left: 2px;
  width: 2px;
  height: var(--timeline-progress);
  background: var(--accent);
  opacity: .78;
  transition: height var(--motion-base) var(--ease-standard);
  pointer-events: none;
}
#about .story-step::after {
  transition: transform var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard), background-color var(--motion-fast) var(--ease-standard);
}
html.motion-ready #about .story-step.is-reading::after {
  transform: scale(1.08);
  border-color: var(--accent);
  background: var(--accent);
}
html.motion-ready #about .story-step.is-reading .story-step-version > span,
html.motion-ready #about .story-step.is-reading .story-step-content h3 {
  color: var(--text);
  transition: color var(--motion-fast) var(--ease-standard);
}
html.motion-ready #about .story-step.is-reading .story-step-version > span { color: var(--accent); }

html.motion-ready #about .story-evaluation:not(.is-visible) .story-safety-findings,
html.motion-ready #about .story-evaluation:not(.is-visible) .story-autonomy-finding {
  opacity: 0;
  transform: translateY(7px);
}
html.motion-ready #about .story-evaluation.is-visible .story-safety-findings,
html.motion-ready #about .story-evaluation.is-visible .story-autonomy-finding {
  opacity: 1;
  transform: none;
  transition: opacity var(--motion-base) var(--ease-enter), transform var(--motion-base) var(--ease-enter);
}
html.motion-ready #about .story-evaluation.is-visible .story-autonomy-finding { transition-delay: 110ms; }

html.motion-ready #about .story-conclusion-copy blockquote strong { color: var(--muted); }
html.motion-ready #about .story-conclusion-copy .story-emphasis-action,
html.motion-ready #about .story-conclusion-copy .story-emphasis-stop {
  color: var(--muted);
  transition: color var(--motion-base) var(--ease-standard);
}
html.motion-ready #about .story-conclusion.is-visible .story-emphasis-action {
  color: var(--text);
  transition-delay: 110ms;
}
html.motion-ready #about .story-conclusion.is-visible .story-emphasis-stop {
  color: var(--text);
  transition-delay: 230ms;
}

@media (hover: hover) {
  html.about-motion-active #about .story-step-content {
    transition: border-color var(--motion-fast) var(--ease-standard), background-color var(--motion-fast) var(--ease-standard);
  }
  html.about-motion-active #about .story-step-content:hover {
    border-color: #4b535b;
    background: color-mix(in srgb, var(--surface) 48%, transparent);
  }
  html.about-motion-active #about .story-map-node rect {
    transition: fill var(--motion-fast) var(--ease-standard), stroke var(--motion-fast) var(--ease-standard);
  }
  html.about-motion-active #about .story-map-node:hover rect {
    fill: var(--surface-raised);
    stroke: #69727b;
  }
}

html.about-motion-active .nav-links a { transition: color var(--motion-fast) var(--ease-standard); }
html.about-motion-active .nav-links a::after {
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--motion-fast) var(--ease-standard);
}
html.about-motion-active .nav-links a.active::after { transform: scaleX(1); }

@media (max-width: 560px) {
  html { --motion-base: 220ms; --motion-slow: 460ms; }
  html.motion-ready #about .story-step.is-reading::after { transform: scale(1.04); }
}

/* Homepage hero composition: a quiet evidence map keeps the copy and product story together. */
/* IssueGate visual system: warm paper, ink, and one quiet indigo accent. */
:root {
  color-scheme: light;
  --motion-fast: 160ms;
  --motion-base: 260ms;
  --motion-slow: 560ms;
  --ease-standard: cubic-bezier(.2, .7, .2, 1);
  --ease-enter: cubic-bezier(.22, .75, .25, 1);
  --bg: #F6F4EF;
  --surface: #FFFDF9;
  --surface-raised: #ECE9E1;
  --line: rgba(36, 40, 42, .15);
  --line-soft: rgba(36, 40, 42, .09);
  --text: #202428;
  --muted: #646C72;
  --accent: #5B5C88;
  --success: #47745F;
  --warning: #875A25;
  --danger: #9B5652;
  --portfolio-ink: #202428;
  --portfolio-subtle: #646C72;
  --portfolio-panel: #FFFDF9;
  --portfolio-panel-deep: #ECE9E1;
  --portfolio-lilac: #5B5C88;
  --portfolio-mint: #47745F;
  --portfolio-amber: #875A25;
  --mono: Consolas, "SFMono-Regular", ui-monospace, monospace;
  --sans: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
}
html, body { background: var(--bg); color: var(--text); }
body { font-family: var(--sans); font-size: 16px; line-height: 1.72; }
.nav { background: rgba(246, 244, 239, .92); border-color: var(--line-soft); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(36, 40, 42, .025); }
.nav-inner, .section, .footer { max-width: 1320px; }
.nav-links { gap: clamp(18px, 2.2vw, 30px); }
.nav-links a { font-size: 14px; }
.nav-links a.active::after { background: var(--accent); }
.section { padding: 56px 44px 82px; }
.section:not(#home) { background: none; }
#home { padding-top: 56px; }
#home { position: relative; isolation: isolate; }
#home::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 670px;
  pointer-events: none;
  background:
    url("./assets/issuegate-paper-texture.svg") center top / cover no-repeat,
    radial-gradient(ellipse 54% 62% at 82% 35%, rgba(91, 92, 136, .075), transparent 74%),
    linear-gradient(rgba(91, 92, 136, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 92, 136, .028) 1px, transparent 1px);
  background-size: cover, auto, 64px 64px, 64px 64px;
  background-blend-mode: multiply, normal, normal, normal;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.78) 58%, transparent 100%);
}
#home > * { position: relative; z-index: 1; }
#demo .demo-hero-panel::before, #about .story-header-visual::before { display: block; }
#main-content p { color: var(--muted); }
h1, h2, h3, h4, #main-content strong { color: var(--text); }
h1, h2, h3, h4 { text-shadow: none; }
.page-index, .eyebrow, .small-label { color: var(--muted); }
.page-sub, .hero-context > p, #about .story-deck { color: #545D63; }
.btn, .btn.primary, #demo .input-row .btn.primary { border-radius: 6px; }
.btn.primary, #demo .input-row .btn.primary {
  color: #FFFDF9;
  background: #383A5A;
  border-color: #383A5A;
  box-shadow: none;
}
.btn.primary:hover, #demo .input-row .btn.primary:hover { background: #2B2D49; border-color: #2B2D49; }
.text-link, .text-btn { color: #343943; }
.text-link:hover, .text-btn:hover { color: var(--accent); }

/* Homepage: confident headline, restrained decision path, and a quieter product overview. */
#home .home-hero {
  position: relative;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: clamp(42px, 5vw, 72px);
  align-items: center;
  margin-bottom: 46px;
}
#home .home-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: 0;
  top: 8%;
  width: 48%;
  height: 82%;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(91, 92, 136, .12), transparent 68%);
  filter: blur(34px);
}
#home .hero-copy,
#home .hero-visual { position: relative; z-index: 1; }
#home .product-category {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  max-width: 100%;
  color: #555D62;
  padding: 8px 12px;
  border: 1px solid rgba(91, 92, 136, .16);
  border-radius: 6px;
  background: rgba(91, 92, 136, .04);
  line-height: 1.35;
}
#home .product-category .category-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(91, 92, 136, .10); }
#home .product-category b { padding-left: 9px; border-left: 1px solid rgba(91, 92, 136, .18); }
#home .product-category b { color: #555D62; }
#home .hero-title h1 {
  color: var(--text);
  font-size: clamp(50px, 3.85vw, 58px);
  line-height: 1.18;
  letter-spacing: 0;
  font-weight: 600;
  text-shadow: none;
}
#home .hero-title h1 span { color: var(--accent); background: none; -webkit-text-fill-color: currentColor; }
#home .hero-context > p { max-width: 620px; font-size: 17px; line-height: 1.78; }
#home .cta { gap: 25px; }
#home .hero-context .text-link { color: #30353A; }
#home .trust-list, #home .trust-list span { color: var(--muted); }
#home .trust-list i { color: var(--success); }
#home .hero-visual {
  --hero-ink: #202428;
  --hero-muted: #646C72;
  --hero-accent: #5B5C88;
  --hero-green: #47745F;
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(32, 36, 40, .13);
  border-radius: 12px;
  background-color: #F0EFE9;
  background-image:
    url("./assets/issuegate-hero-atmosphere.svg"),
    url("./assets/issuegate-signal-texture.svg"),
    linear-gradient(145deg, #F7F5EF 0%, #F0EFE9 70%, #E8EEE9 100%),
    radial-gradient(circle at 73% 35%, rgba(91, 92, 136, .10), transparent 48%),
    radial-gradient(circle at 22% 88%, rgba(71, 116, 95, .08), transparent 40%),
    linear-gradient(rgba(91, 92, 136, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 92, 136, .035) 1px, transparent 1px),
    repeating-linear-gradient(132deg, transparent 0 31px, rgba(91, 92, 136, .025) 31px 32px, transparent 32px 64px);
  background-size: cover, cover, auto, auto, auto, 42px 42px, 42px 42px, auto;
  background-blend-mode: multiply, multiply, normal, normal, normal, normal, normal;
  box-shadow: 0 14px 32px rgba(32, 36, 40, .07);
  isolation: isolate;
}
#home .hero-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12% 6% 12%;
  pointer-events: none;
  background: radial-gradient(ellipse at 53% 42%, rgba(91, 92, 136, .16), rgba(91, 99, 182, .05) 46%, transparent 73%);
  filter: blur(28px);
}
#home .hero-visual::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 12px;
  border: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(120deg, transparent 0 42%, rgba(255,255,255,.24) 49%, transparent 56%),
    linear-gradient(90deg, transparent 0 74%, rgba(71,116,95,.10) 100%);
  background-size: 220% 100%, 100% 100%;
  background-position: -160% 0, 0 0;
  mix-blend-mode: screen;
}
#home .hero-visual-head,
#home .hero-visual-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #59636B;
  font: 11px/1.4 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
#home .hero-visual-head { padding: 17px 20px 0; }
#home .hero-visual-annotation {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6A6E83;
  font: 10px/1 var(--mono);
  letter-spacing: .08em;
  pointer-events: none;
}
#home .hero-visual-annotation i {
  display: block;
  width: 22px;
  height: 1px;
  background: rgba(91,92,136,.34);
}
#home .hero-visual-annotation-top { top: 43px; left: 22px; }
#home .hero-visual-annotation-side {
  right: 18px;
  top: 50%;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  color: #6E8278;
  letter-spacing: .08em;
}
#home .hero-visual-annotation-side b { color: #5B5C88; font-weight: 500; }
#home .hero-visual-kicker { display: inline-flex; align-items: center; gap: 8px; color: #4F585E; }
#home .hero-visual-kicker i,
#home .hero-visual-status i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }
#home .hero-visual-kicker i { background: var(--hero-accent); box-shadow: 0 0 0 3px rgba(91, 92, 136, .12); }
#home .hero-visual-status { display: inline-flex; align-items: center; gap: 7px; color: #596A62; }
#home .hero-visual-status i { background: var(--hero-green); box-shadow: 0 0 0 3px rgba(71, 116, 95, .12); }
#home .hero-visual-diagram { display: block; position: relative; z-index: 1; width: 100%; height: auto; padding: 0; overflow: visible; }
#home .hero-visual-diagram .hero-wire { fill: none; stroke: url(#hero-wire); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; opacity: .88; }
#home .hero-visual-diagram .hero-wire-faint { stroke: rgba(91, 92, 136, .24); stroke-dasharray: 2 6; }
#home .hero-wire-halo { fill: none; stroke: url(#hero-wire); stroke-width: 5; opacity: .10; }
#home .hero-visual-diagram .hero-result-wire { stroke: #47745F; opacity: .72; }
#home .hero-canvas-texture { pointer-events: none; }
#home .hero-canvas-contours { fill: none; stroke: url(#hero-contour); stroke-width: .65; }
#home .hero-ground-shadow { fill: #8D9493; opacity: .12; filter: blur(10px); }
#home .hero-wire-node { fill: #FFFDF9; stroke: #5B5C88; stroke-width: 1; filter: drop-shadow(0 0 3px rgba(91, 92, 136, .18)); }
#home .hero-wire-node.node-success { stroke: var(--hero-green); }
#home .hero-evidence-node { --node-accent: #5B5C88; }
#home .hero-evidence-node.code { --node-accent: #557384; }
#home .hero-evidence-node.context { --node-accent: #47745F; }
#home .hero-evidence-node .hero-node-surface { stroke: url(#hero-rim); stroke-width: .8; filter: drop-shadow(0 7px 9px rgba(32, 36, 40, .12)); }
#home .hero-evidence-node.history .hero-node-surface { fill: url(#hero-history-surface); }
#home .hero-evidence-node.code .hero-node-surface { fill: url(#hero-code-surface); }
#home .hero-evidence-node.context .hero-node-surface { fill: url(#hero-ready-surface); }
#home .hero-evidence-node .hero-surface-grain { opacity: .55; }
#home .hero-node-header { fill: rgba(91, 92, 136, .065); }
#home .hero-node-icon { fill: none; stroke: var(--node-accent); stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
#home .hero-node-accent { fill: none; stroke: var(--node-accent); stroke-width: 1.5; stroke-linecap: round; opacity: .7; }
#home .hero-node-detail { fill: none; stroke: var(--node-accent); stroke-width: 1.2; stroke-linecap: round; opacity: .32; }
#home .hero-node-divider { fill: none; stroke: rgba(32, 36, 40, .14); stroke-width: .6; }
#home .hero-code-syntax { fill: none; stroke: var(--node-accent); stroke-width: 1.6; stroke-linecap: round; opacity: .55; }
#home .hero-visual-diagram .hero-node-language,
#home .hero-visual-diagram .hero-node-index { fill: var(--node-accent); font: 10px var(--mono); letter-spacing: .06em; }
#home .hero-visual-diagram .hero-node-title { fill: #202428; font: 12px var(--sans); font-weight: 600; }
#home .hero-issue-card { transform-box: fill-box; transform-origin: center; transition: transform .24s ease; }
#home .hero-issue-card:hover { transform: translateY(-3px); }
#home .hero-issue-card .hero-card-surface { fill: url(#hero-card); stroke: url(#hero-rim); stroke-width: 1; filter: drop-shadow(0 13px 16px rgba(32, 36, 40, .15)); }
#home .hero-visual-diagram .hero-surface-grain { fill: url(#hero-grain-pattern); stroke: none; pointer-events: none; }
#home .hero-visual-diagram .hero-surface-brushed { fill: url(#hero-brushed-pattern); stroke: none; pointer-events: none; }
#home .hero-visual-diagram .hero-surface-sheen { fill: url(#hero-surface-light); stroke: none; pointer-events: none; }
#home .hero-visual-diagram .hero-edge-light { fill: none; stroke: url(#hero-top-light); stroke-width: .8; stroke-linecap: round; }
#home .hero-card-header { fill: rgba(91, 92, 136, .065); }
#home .hero-card-reflection { fill: url(#hero-glass-reflection); pointer-events: none; }
#home .hero-card-fold { fill: rgba(91, 92, 136, .06); stroke: rgba(91, 92, 136, .18); stroke-width: .6; }
#home .hero-card-perforation { fill: url(#hero-microdots); opacity: .40; }
#home .hero-card-accent { fill: none; stroke: #5B5C88; stroke-width: 1.5; opacity: .65; }
#home .hero-issue-divider { stroke: rgba(32, 36, 40, .13); stroke-width: .7; }
#home .hero-issue-card > .hero-issue-description { stroke: rgba(32, 36, 40, .25); stroke-width: 1.4; stroke-linecap: round; }
#home .hero-issue-index { fill: #5B5C88; font: 10px var(--mono); letter-spacing: .055em; }
#home .hero-issue-title { fill: #202428; font: 14px var(--sans); font-weight: 600; }
#home .hero-issue-tag { fill: rgba(91, 92, 136, .10); stroke: rgba(91, 92, 136, .28); stroke-width: .6; }
#home .hero-issue-tag-text { fill: #5B5C88; font: 8px var(--mono); }
#home .hero-status-socket { fill: rgba(246, 244, 239, .85); stroke: rgba(91, 92, 136, .22); stroke-width: .7; }
#home .hero-issue-spark { fill: #5B5C88; filter: drop-shadow(0 0 4px rgba(91, 92, 136, .28)); }
#home .hero-ready-card .hero-ready-surface { fill: url(#hero-ready-surface); stroke: url(#hero-rim); stroke-width: .8; filter: drop-shadow(0 10px 12px rgba(32, 36, 40, .12)); }
#home .hero-ready-accent { fill: none; stroke: #47745F; stroke-width: 2; }
#home .hero-ready-facet { fill: rgba(71, 116, 95, .06); }
#home .hero-ready-seal { fill: rgba(71, 116, 95, .10); stroke: rgba(71, 116, 95, .48); stroke-width: .8; }
#home .hero-ready-check { fill: none; stroke: #47745F; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
#home .hero-ready-kicker { fill: #47745F; font: 8px var(--mono); }
#home .hero-ready-title { fill: #47745F; font: 13px var(--mono); font-weight: 600; }
#home .hero-ready-note { fill: #596A62; font: 9px var(--sans); }
#home .hero-visual-foot { justify-content: center; gap: 12px; padding: 0 20px 13px; color: #59636B; font-size: 10px; letter-spacing: .04em; text-transform: none; }
#home .hero-visual-foot i { width: 19px; height: 1px; background: rgba(91, 92, 136, .28); }
#home .hero-visual-foot .hero-foot-accent { color: #47745F; }
#home .hero-ledger,
#demo .demo-hero-panel,
#evaluation .eval-head-signal,
#about .story-header-visual {
  position: relative;
  box-sizing: border-box;
  min-height: 0;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 16px 0 18px clamp(20px, 2.2vw, 30px);
}
#demo .demo-hero-panel,
#evaluation .eval-head-signal,
#about .story-header-visual {
  background-image:
    linear-gradient(112deg, transparent 0%, rgba(91, 92, 136, .025) 58%, transparent 100%),
    radial-gradient(circle at 94% 18%, rgba(91, 92, 136, .055), transparent 38%);
}
#home .hero-ledger { display: none; }
#home .hero-ledger::before {
  content: "";
  position: absolute;
  top: 0;
  left: -1px;
  width: 50px;
  height: 1px;
  background: var(--accent);
  opacity: .52;
}
#demo .demo-hero-panel::before,
#evaluation .eval-head-signal::before,
#about .story-header-visual::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 15%;
  right: 3%;
  width: 208px;
  height: 208px;
  border: 1px solid rgba(91, 92, 136, .12);
  border-radius: 50%;
  box-shadow:
    0 0 0 21px rgba(91, 92, 136, .035),
    0 0 0 44px rgba(91, 92, 136, .018);
  pointer-events: none;
  opacity: .68;
}
#demo .demo-hero-panel::after,
#evaluation .eval-head-signal::after,
#about .story-header-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .15;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 42%, rgba(91, 92, 136, .16) 0 1px, transparent 1.6px),
    url("./assets/issuegate-signal-texture.svg") right top / cover no-repeat;
  background-size: 18px 18px, cover;
  mix-blend-mode: multiply;
  mask-image: linear-gradient(112deg, transparent 0%, #000 31%, #000 82%, transparent 100%);
}
#demo .demo-hero-panel > *,
#evaluation .eval-head-signal > *,
#about .story-header-visual > * { position: relative; z-index: 1; }
#home .hero-ledger { width: 100%; }
#home .hero-ledger-head { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 13px; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 12px; letter-spacing: .025em; }
#home .hero-ledger-head span:last-child { color: var(--muted); }
#home .hero-ledger-steps { display: grid; margin-top: 19px; }
#home .hero-ledger-step { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: start; gap: 13px; min-height: 62px; padding-bottom: 15px; }
#home .hero-ledger-step:not(:last-child)::after { position: absolute; top: 30px; left: 14px; height: 29px; border-left: 1px solid var(--line-soft); content: ""; }
#home .hero-ledger-index { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: #858B8D; color: #FFFDF9; font: 11px/1 var(--mono); }
#home .hero-ledger-step:nth-child(2) .hero-ledger-index { background: var(--accent); }
#home .hero-ledger-step-final .hero-ledger-index { background: var(--warning); }
#home .hero-ledger-step > div { display: grid; gap: 2px; min-width: 0; padding-top: 1px; }
#home .hero-ledger-step strong { display: block; color: var(--text); font-size: 18px; line-height: 1.35; font-weight: 580; }
#home .hero-ledger-step small { display: block; color: var(--muted); font-size: 13px; line-height: 1.55; }
#home .hero-ledger-result { display: grid; gap: 5px; margin-top: 1px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
#home .hero-ledger-result span { display: block; color: var(--muted); font-size: 12px; }
#home .hero-ledger-result strong { display: block; color: var(--warning); font-size: 22px; line-height: 1.35; letter-spacing: -.025em; }
#home .hero-ledger-result small { display: block; color: var(--muted); font-size: 13px; line-height: 1.65; }
#home .product-window { border-color: var(--line-soft); border-radius: 8px; background: rgba(255, 253, 249, .72); box-shadow: 0 16px 42px rgba(36, 40, 42, .045); }
#home .window-bar, #home .flow, #home .proof-strip, #home .why-scenario { border-color: var(--line-soft); }
#home .flow-number::after { background: var(--line-soft); }
#home .journey-output strong, #home .preview-status { color: var(--warning); }
#home .preview-decision h3 { color: var(--text); }
#home .preview-source, #home .preview-decision { min-width: 0; }
#home .safety-strip { color: var(--success); }

/* Live analysis, evaluation, and case study share the same quiet signal surface. */
#demo .workspace-head, #evaluation .evaluation-hero, #about .story-header { gap: clamp(38px, 5vw, 72px); }
#demo .workspace-head { align-items: start; }
#demo .demo-decision-visual { min-width: 0; padding: 0; border: 0; background: transparent; }
#demo .demo-decision-kicker, #demo .demo-decision-outcome > span,
#about .story-visual-kicker, #evaluation .eval-editorial-kicker,
#evaluation .eval-editorial-insight > span { color: var(--muted); }
#demo .demo-decision-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 24px 0 31px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
#demo .demo-decision-route i {
  display: block;
  width: 100%;
  height: 1px;
  flex: 0 0 auto;
  background: linear-gradient(90deg, var(--line), color-mix(in srgb, var(--accent) 62%, transparent));
}
#demo .demo-decision-route span,
#demo .demo-decision-route b { position: relative; min-width: 0; }
#demo .demo-decision-route span::before,
#demo .demo-decision-route b::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 7px 2px 0;
  border-radius: 50%;
  background: var(--surface-raised);
  border: 1px solid var(--accent);
}
#demo .demo-decision-route b { color: var(--accent); }
#demo .demo-decision-route b::before { background: var(--accent); }
#demo .demo-decision-outcome {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
#demo .demo-decision-outcome > span,
#demo .demo-decision-outcome > strong,
#demo .demo-decision-outcome > small { display: block; min-width: 0; overflow-wrap: anywhere; }
#demo .demo-decision-outcome strong { color: var(--text); font-size: 24px; line-height: 1.35; font-weight: 600; letter-spacing: -.02em; }
#demo .demo-decision-outcome small { color: var(--muted); font-size: 14px; line-height: 1.7; }
#demo .runtime { margin-top: 18px; padding-top: 14px; border-color: var(--line-soft); color: var(--muted); }
#demo .backend-status.ok { color: var(--success); }
#demo .backend-status.off { color: var(--warning); }
#demo .live-input { border: 1px solid var(--line-soft); border-radius: 8px; background: rgba(255, 253, 249, .78); box-shadow: 0 14px 36px rgba(36, 40, 42, .035); }
#demo .command-shell { border: 0; border-radius: 0; background: transparent; }
#demo .command-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  margin-bottom: 10px;
  color: var(--muted);
}
#demo .command-label span:first-child { color: var(--accent); }
#demo .command-label span:last-child { color: #4F585E; white-space: nowrap; }
#demo .input-row input, #demo .advanced-settings .model-field select { color: var(--text); background: var(--surface); border-color: var(--line); border-radius: 6px; }
#demo .input-row .btn { min-height: 52px; border-radius: 6px; }
#demo .advanced-settings { border-color: var(--line-soft); border-radius: 6px; }
#demo .advanced-settings-body { border-color: var(--line-soft); }
#demo .input-meta, #demo .input-meta p, #demo .input-meta .text-btn,
#demo .advanced-settings, #demo .advanced-settings summary { color: var(--muted); }
#demo .command-label { margin-bottom: 18px; font-size: 13px; }
#demo .command-label span:last-child { display: inline-flex; align-items: center; gap: 7px; }
#demo .command-label span:last-child i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
#demo .input-row { grid-template-columns: minmax(0, 1fr) minmax(230px, 280px) 155px; align-items: start; gap: 18px; }
#demo .url-field, #demo .model-field { min-width: 0; }
#demo .url-field label, #demo .model-field label { display: block; margin: 0 0 8px; color: var(--text); font-size: 13px; font-weight: 560; }
#demo .model-label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#demo .model-label-row label { margin-bottom: 8px; }
#demo .model-selection-state { min-width: 0; margin-bottom: 8px; color: var(--muted); font-size: 11px; white-space: nowrap; }
#demo .model-selection-state.recommended { color: var(--accent); }
#demo .input-row .url-field input, #demo .input-row .model-field select { width: 100%; height: 52px; min-width: 0; padding-inline: 13px; color: var(--text); background: #fffefa; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; }
#demo .input-row .model-field select:disabled { opacity: .72; cursor: not-allowed; }
#demo .input-row .url-field input[aria-invalid="true"] { border-color: #bc7567; }
#demo .field-support, #demo .model-description, #demo .model-hint { display: block; min-height: 20px; margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
#demo .field-support[data-state="valid"] { color: var(--success); }
#demo .field-support[data-state="invalid"] { color: #a34f42; }
#demo .model-description { min-height: 20px; color: var(--text); }
#demo .model-hint { min-height: 34px; margin-top: 3px; }
#demo .input-row > .btn { align-self: start; margin-top: 28px; }
#demo .input-meta { align-items: center; }
#demo .analysis-assurances { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 19px 2px 23px; color: var(--muted); font-size: 12px; }
#demo .analysis-assurances span { display: flex; align-items: center; gap: 10px; min-width: 0; line-height: 1.5; }
#demo .analysis-assurances i { color: var(--accent); font: 10px var(--mono); font-style: normal; }
#evaluation .eval-head-signal { padding-top: 24px; }
#evaluation .eval-editorial-kicker { margin-bottom: 22px; }
#evaluation .eval-primary-metric { padding: 0 0 17px; border: 0; }
#evaluation .eval-primary-metric strong { color: var(--accent); font-size: clamp(58px, 6vw, 76px); font-weight: 560; letter-spacing: -.075em; text-shadow: none; }
#evaluation .eval-primary-metric span { color: var(--text); }
#evaluation .eval-primary-metric small { color: var(--muted); }
#evaluation .eval-primary-metric { position: relative; padding-bottom: 24px; }
#evaluation .eval-primary-metric::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) 63.6%, rgba(91, 92, 136, .10) 63.6%);
}
#evaluation .eval-editorial-insight { margin-top: 0; padding-top: 17px; border-top: 1px solid var(--line-soft); }
#evaluation .eval-editorial-insight { grid-template-columns: auto auto 1fr; gap: 16px; }
#evaluation .eval-editorial-insight > strong { color: var(--warning); font-size: 20px; }
#evaluation .eval-editorial-insight > strong::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 3px 0; border-radius: 50%; background: var(--warning); }
#evaluation .eval-editorial-insight p { color: var(--text); }
#evaluation .eval-signal-conclusion { color: var(--muted); }
#evaluation .evaluation-overview strong { color: var(--text); }
#evaluation .primary-performance strong { color: var(--accent); }
#evaluation .route-ready .bar-fill { background: var(--warning); }
#evaluation .verified-label { color: var(--success); }
#about .story-header-visual { justify-content: flex-start; align-items: flex-start; }
#about .story-header-visual { padding-top: 12px; }
#about .story-header-visual > p { width: min(100%, 380px); margin: 22px 0 15px; color: var(--text); font-size: clamp(36px, 3.1vw, 46px); line-height: 1.16; letter-spacing: 0; }
#about .story-header-visual > p span, #about .story-header-visual > p em { display: inline; }
#home .mobile-hero-break { display: none; }
#about .story-header-visual > p em { color: var(--accent); font-style: normal; }
#about .story-visual-caption { color: var(--muted); }
#about .story-visual { border-color: var(--line-soft); border-radius: 12px; background: linear-gradient(110deg, rgba(255,255,255,.3), transparent 48%), var(--surface); box-shadow: 0 16px 34px rgba(47,55,62,.055); }
#about .story-visual-map, #about .story-visual-map-mobile { color: var(--accent); opacity: 1; }
#about .story-map-wire { stroke: var(--accent); opacity: .92; }
#about .story-map-node rect { fill: #faf9f5; stroke: rgba(36, 40, 42, .19); }
#about .story-map-node-gate rect { fill: #eeedf7; stroke: var(--accent); }
#about .story-map-node-output rect { fill: #edf4ef; stroke: var(--success); }
#about .story-map-kicker { fill: var(--muted); }
#about .story-map-label { fill: var(--text); }
#about .story-insight-compare > div { border-color: var(--line-soft); background: transparent; }
#about .story-insight-compare span:not(.story-insight-divider) { color: var(--muted); }
#about .story-insight-compare strong { color: var(--text); font-weight: 580; }
#about .story-insight-compare > div:last-child strong { color: var(--accent); }
#about .story-chapter-heading h2, #about .story-chapter-body h3 { color: var(--text); }
#about .story-step-details summary, #about .story-text-link { color: var(--accent); }
#about .story-project-meta dt { color: var(--muted); }
#about .story-project-meta dd { color: var(--text); }
#about .story-conclusion { border-color: var(--line-soft); }
#about .story-conclusion blockquote { color: var(--text); }

/* Keep the complete architecture map as the single technical focal point. */
#architecture .arch-page-heading { gap: clamp(40px, 5vw, 72px); margin-bottom: 42px; }
#architecture .arch-page-heading h1 { color: var(--text); font-weight: 620; text-shadow: none; }
#architecture .arch-page-intro p { color: #545D63; }
#architecture .arch-canvas-legend { color: var(--muted); }
#architecture .arch-mobile-overview { display: none; }
#architecture .arch-canvas {
  --bg: #252A2F;
  --text: #F1EEE7;
  --muted: #B7BAC0;
  --surface: #32393F;
  --surface-raised: #3B4349;
  --line: rgba(244, 241, 233, .16);
  --accent: #B8B8E1;
  --success: #9BC7B3;
  --warning: #D7B57A;
  overflow: hidden;
  border: 1px solid rgba(91, 92, 136, .28);
  border-radius: 9px;
  background-color: #252A2F;
  background-image: linear-gradient(rgba(247, 244, 236, .022) 1px, transparent 1px), linear-gradient(90deg, rgba(247, 244, 236, .022) 1px, transparent 1px);
  background-size: 48px 48px;
  box-shadow: 0 14px 34px rgba(30, 34, 40, .08);
}
#architecture .arch-source, #architecture .agent-step, #architecture .arch-retrieval-method,
#architecture .arch-fusion, #architecture .arch-snapshot, #architecture .arch-assessment { background-color: rgba(50, 57, 63, .9); }
#architecture .arch-step-retrieve { background-color: rgba(91, 92, 136, .24); }
#architecture .arch-step-retrieve strong { color: #D3D2F2; }
#architecture .arch-gate { filter: none; }
#architecture .arch-gate-shape { color: var(--accent); }
#architecture .arch-wire { opacity: .58; }
#architecture .arch-wire-evidence { opacity: .82; }
#architecture .arch-canvas-footnote { color: var(--muted); border-color: var(--line-soft); }
#architecture .arch-stack-row { border-color: var(--line-soft); }
#architecture .arch-canvas [data-arch-node] { transition: opacity 200ms ease, outline-color 180ms ease; }
#architecture .arch-canvas [data-arch-node]:focus-visible { outline: 2px solid rgba(184, 184, 225, .9); outline-offset: 4px; }

/* Responsive rhythm: retain generous type and stack the same information in order. */
@media (max-width: 1100px) {
  .nav-inner, .section, .footer { padding-inline: 32px; }
  #home .home-hero { gap: 42px; }
  #architecture .arch-page-heading { gap: 38px; }
}
@media (max-width: 850px) {
  .section { padding: 62px 28px 78px; }
  #home { padding-top: 62px; }
  #home .home-hero, #demo .workspace-head, #evaluation .evaluation-hero, #about .story-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }
  #home .hero-visual, #demo .demo-hero-panel, #evaluation .eval-head-signal, #about .story-header-visual { width: 100%; max-width: 100%; }
  #home .hero-visual { justify-content: flex-start; }
  #home .hero-ledger { width: min(100%, 560px); }
  #demo .runtime { text-align: left; }
  #demo .input-row { grid-template-columns: minmax(0, 1fr); }
  #demo .input-row { gap: 16px; }
  #demo .input-row > .btn { margin-top: 0; }
  #demo .analysis-assurances { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 17px 2px 21px; }
  #demo .input-row .btn { width: 100%; }
  #architecture .arch-mobile-overview { display: none; }
  #architecture .arch-canvas {
    --bg: #252A2F;
    --text: #EEF1EE;
    --muted: #AEB4B6;
    --surface: #32393F;
    --surface-raised: #3B4349;
    --line: rgba(247, 244, 236, .16);
    --accent: #B7B8E1;
    --success: #9CC8B0;
    --warning: #D6B477;
    background-color: #252A2F;
  }
}
@media (max-width: 620px) {
  .nav-inner { display: block; min-height: 90px; padding-inline: 20px; overflow: visible; }
  .logo { height: 48px; }
  .nav-links {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    gap: 0;
    overflow: visible;
  }
  .nav-links .gh { display: none !important; }
  .nav-links a {
    min-width: 0;
    min-height: 44px;
    justify-content: center;
    padding-inline: 2px;
    font-size: 12px;
    white-space: nowrap;
  }
  .section { padding: 43px 20px 64px; }
  #home { padding-top: 43px; }
  #home .home-hero, #demo .workspace-head, #evaluation .evaluation-hero, #about .story-header { gap: 29px; }
  #home .hero-title h1 { font-size: clamp(33px, 8.7vw, 39px); line-height: 1.2; letter-spacing: -.05em; }
  #home .hero-title h1 span { display: block; white-space: normal; overflow-wrap: anywhere; }
  .hero-context > p, .page-sub, #about .story-deck, #architecture .arch-page-intro p { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .hero-desktop-break { display: none; }
  #home .hero-ledger, #demo .demo-hero-panel, #evaluation .eval-head-signal, #about .story-header-visual { padding: 16px 15px 18px 17px; }
  #home .hero-ledger-step strong { font-size: 17px; }
  #home .hero-ledger-step small, #home .hero-ledger-result small { font-size: 12px; }
  #demo .demo-decision-visual { width: 100%; min-width: 0; }
  #demo .demo-decision-kicker { display: block; }
  #demo .demo-decision-route {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    width: 100%;
    margin: 19px 0 25px;
    font-size: 12px;
    line-height: 1.5;
  }
  #demo .demo-decision-route span,
  #demo .demo-decision-route b { min-width: 0; overflow-wrap: anywhere; }
  #demo .demo-decision-route span:nth-of-type(2),
  #demo .demo-decision-route b { text-align: center; }
  #demo .demo-decision-route i { width: auto; min-width: 0; }
  #demo .demo-decision-outcome { display: grid; gap: 5px; min-width: 0; }
  #demo .demo-decision-outcome > span,
  #demo .demo-decision-outcome strong,
  #demo .demo-decision-outcome small { display: block; min-width: 0; overflow-wrap: anywhere; }
  #demo .demo-decision-outcome strong { font-size: 25px; line-height: 1.3; }
  #demo .demo-decision-outcome small { font-size: 13px; line-height: 1.65; }
  #demo .live-input { padding: 18px; }
  #demo .input-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
  }
  #demo .url-field,
  #demo .input-row .btn { grid-column: 1; }
  #demo .input-row .btn {
    grid-row: auto;
    width: 100%;
    min-height: 48px;
    font-size: 14px;
    padding-inline: 16px;
  }
  #demo .input-row input { font-size: 14px; }
  #evaluation .eval-head-signal { padding-top: 22px; }
  #evaluation .eval-primary-metric { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding-bottom: 15px; }
  #evaluation .eval-primary-metric strong { font-size: 58px; line-height: .98; }
  #evaluation .eval-primary-metric > div { display: contents; }
  #evaluation .eval-editorial-insight { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; padding-top: 15px; }
  #evaluation .eval-editorial-insight p { justify-self: start; white-space: normal; }
  #about .story-header h1 { font-size: 35px; line-height: 1.2; }
  #about .story-header-visual > p { width: 100%; font-size: clamp(32px, 9.6vw, 39px); line-height: 1.1; overflow-wrap: anywhere; }
  #about .story-project-meta { width: 100%; grid-template-columns: 1fr 1fr; gap: 16px; }
  #about .story-project-meta > div:first-child { grid-column: 1 / -1; }
  #architecture .arch-page-heading h1 { font-size: 34px; }
  #architecture .arch-canvas { border-radius: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}



/* Final composition rules: one readable paper system, one responsive hierarchy. */
#main-content { overflow: visible; }
#home .home-hero,
#demo .workspace-head,
#evaluation .evaluation-hero,
#about .story-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .86fr);
  align-items: center;
}
#about .story-header { align-items: start; }
#home .home-hero { grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); }
#demo .workspace-head { padding-block: 8px 24px; }
#demo .workspace-head { align-items: start; margin-bottom: 14px; }
#demo .workspace-head .page-head { margin-bottom: 0; }
#demo .demo-hero-panel { padding-top: 10px; }
#evaluation .evaluation-hero,
#about .story-header { padding-block: 8px 28px; }
#architecture .arch-page-heading > *,
#architecture .arch-page-intro,
#about .story-header > *,
#about .story-header-main,
#about .story-project-meta,
#about .story-project-meta > div { min-width: 0; }
#architecture .arch-page-intro p,
#about .story-deck,
#about .story-project-meta dd { overflow-wrap: anywhere; }
#about .story-header { row-gap: 32px; }
#home .product-category {
  min-height: 32px;
  padding: 7px 11px;
  font-size: 13px;
  line-height: 1.35;
}
#home .product-category b { font-weight: 600; }
#home .hero-title h1 { letter-spacing: 0; }
#demo .workspace-head h1,
#evaluation .evaluation-hero h1,
#architecture .arch-page-heading h1,
#about .story-header h1 { letter-spacing: 0; }
#home .hero-context > p { color: #4F585E; }
#home .trust-list { gap: 16px; margin-top: 17px; font-size: 13px; }
#home .trust-list span { color: #4F585E; }
#home .hero-ledger-head,
#home .hero-ledger-result span { font-size: 13px; }
#home .hero-ledger-step small,
#home .hero-ledger-result small { color: #4F585E; }
#home .hero-ledger-result strong { font-weight: 650; }
#home .product-window { margin-top: 0; }
#home .hero-visual-diagram { max-width: 100%; }
#home .window-bar { font-size: 13px; }
#home .flow strong { font-size: 16px; }
#home .flow strong + span,
#home .proof-strip span,
#home .safety-strip { font-size: 13px; }
#home .flow-number { color: #5E686F; }
#home .journey-output strong { color: var(--warning); }
#home .preview-status,
#home .preview-caveat > span { color: var(--warning); }
#home .preview-source > p,
#home .preview-decision > p { color: #4F585E; }
#home .why-number,
#home .mobile-label { font-size: 12px; }

#demo .demo-decision-kicker,
#demo .demo-decision-outcome > span,
#demo .command-label,
#demo .runtime,
#demo .runtime-note { font-size: 13px; }
#demo .demo-decision-route { color: #4F585E; }
#demo .input-row input::placeholder { color: #6A747B; opacity: 1; }
#demo .input-meta,
#demo .advanced-settings summary,
#demo #model-hint { color: #4F585E; }
#demo .explain-flow-head h2 { font-size: 22px; }
#demo .explain-step strong { font-size: 16px; }
#demo .explain-step p { color: #4F585E; font-size: 14px; }
#demo .flow-state { color: #4F585E; font-size: 13px; }

#evaluation .eval-editorial-kicker,
#evaluation .eval-caption,
#evaluation .evaluation-overview span,
#evaluation .evaluation-overview small { color: #4F585E; font-size: 13px; }
#evaluation .eval-primary-metric { display: flex; align-items: end; flex-wrap: wrap; gap: 18px 28px; }
#evaluation .eval-primary-metric > div { display: grid; gap: 5px; min-width: 170px; }
#evaluation .eval-primary-metric span { font-size: 15px; color: var(--text); }
#evaluation .eval-primary-metric small { font-size: 13px; color: #4F585E; }
#evaluation .eval-editorial-insight { display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: 18px; }
#evaluation .eval-editorial-insight > strong { white-space: nowrap; }
#evaluation .eval-editorial-insight p { color: #4F585E; }
#evaluation .eval-signal-conclusion { color: #4F585E; font-size: 14px; }
#evaluation .evaluation-overview > div { min-width: 0; }
#evaluation .evaluation-overview strong { color: var(--text); }
#evaluation .evaluation-overview .primary-performance strong { color: var(--accent); }
#evaluation .eval-caption { padding-block: 16px; border-bottom: 1px solid var(--line-soft); }
#evaluation .eval-caption > span { font-size: 13px; }
#evaluation .route code,
#evaluation .safety-ledger small,
#evaluation .calibration-findings code { color: #5E686F; font-size: 12px; }
#evaluation .eval-split .note,
#evaluation .eval-method p,
#evaluation .eval-method dd { color: #4F585E; }

#architecture .arch-canvas-legend { font-size: 13px; }
#architecture .arch-component-heading > span,
#architecture .arch-small-label,
#architecture .arch-source span:not(.arch-source-mark) { font-size: 12px; }
#architecture .agent-step p,
#architecture .arch-evidence-caption,
#architecture .arch-assessment p,
#architecture .architecture-branch p,
#architecture .arch-canvas-footnote { color: #C2C6C8; font-size: 13px; }
#architecture .arch-wire { opacity: .86; stroke-width: 1.2; }
#architecture .arch-wire-evidence { opacity: .94; stroke-width: 1.35; }
#architecture .arch-wire-branch { opacity: .86; }
#architecture .arch-canvas { background-image: linear-gradient(rgba(247,244,236,.032) 1px, transparent 1px), linear-gradient(90deg, rgba(247,244,236,.032) 1px, transparent 1px); }
#architecture .arch-stack-row > div > span { font-size: 13px; }

/* Architecture canvas: a designed technical surface rather than a screenshot-like diagram. */
#architecture .arch-canvas {
  isolation: isolate;
  height: 1015px;
  border: 1px solid rgba(164, 176, 206, .34);
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 14%, rgba(113, 117, 186, .24), transparent 30%),
    radial-gradient(circle at 86% 54%, rgba(80, 160, 151, .12), transparent 34%),
    linear-gradient(135deg, #182431 0%, #121A23 66%, #0E151D 100%);
  box-shadow: 0 28px 60px rgba(25, 31, 39, .20), inset 0 1px 0 rgba(255, 255, 255, .08);
}
#architecture .arch-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .52;
  background-image:
    linear-gradient(rgba(220, 226, 235, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 226, 235, .055) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 48%, rgba(159, 169, 214, .06) 49%, transparent 50% 100%);
  background-size: 48px 48px, 48px 48px, 180px 180px;
  mask-image: linear-gradient(to bottom, black 0%, rgba(0,0,0,.72) 72%, transparent 100%);
}
#architecture .arch-canvas::after {
  content: "ISSUEGATE / DECISION GRAPH";
  position: absolute;
  right: 22px;
  bottom: 17px;
  z-index: 2;
  color: rgba(214, 220, 229, .44);
  font: 10px/1 var(--mono);
  letter-spacing: .16em;
  pointer-events: none;
}
#architecture .arch-connectors { z-index: 1; }
#architecture .arch-atmosphere { opacity: .9; }
#architecture .arch-halo { mix-blend-mode: screen; }
#architecture .arch-orbit {
  fill: none;
  stroke: rgba(180, 188, 230, .16);
  stroke-width: 1;
  stroke-dasharray: 2 14;
  vector-effect: non-scaling-stroke;
}
#architecture .arch-orbit-inner { stroke: rgba(115, 197, 181, .11); stroke-dasharray: 1 10; }
#architecture .arch-wire { stroke: rgba(212, 221, 230, .72); stroke-width: 1.5; filter: url(#arch-wire-glow); }
#architecture .arch-wire-evidence { stroke: url(#arch-wire-accent); opacity: .98; stroke-width: 1.8; }
#architecture .arch-wire-branch { stroke: rgba(208, 217, 227, .68); stroke-width: 1.55; }
#architecture .arch-junction { fill: #B7B9F2; filter: drop-shadow(0 0 5px rgba(173, 176, 241, .85)); }
#architecture .arch-source,
#architecture .agent-step,
#architecture .arch-retrieval-method,
#architecture .arch-fusion,
#architecture .arch-snapshot,
#architecture .arch-assessment {
  border: 1px solid rgba(191, 202, 222, .22);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(33, 47, 60, .90), rgba(22, 32, 43, .90));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .055), 0 12px 26px rgba(7, 11, 17, .14);
}
#architecture .arch-source { border-color: rgba(188, 193, 232, .42); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 1px rgba(142, 145, 214, .08), 0 14px 26px rgba(8, 13, 20, .22); }
#architecture .arch-source-mark { color: #B7B9F2; }
#architecture .arch-source strong,
#architecture .agent-step strong,
#architecture .arch-retrieval-method strong,
#architecture .arch-fusion strong,
#architecture .arch-snapshot strong,
#architecture .arch-assessment h3 { color: #F2F4F5; }
#architecture .arch-source-note { color: rgba(216, 222, 229, .74); }
#architecture .arch-agent .arch-component-heading h3,
#architecture .arch-evidence .arch-component-heading h3 { letter-spacing: .01em; }
#architecture .arch-agent .arch-component-heading h3 { background: transparent; }
#architecture .arch-agent-track { column-gap: 4.4%; }
#architecture .agent-step { position: relative; overflow: hidden; }
#architecture .agent-step::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: rgba(185, 193, 213, .38);
}
#architecture .agent-step:nth-child(3)::before { background: #A9A9EC; box-shadow: 0 0 15px rgba(168, 168, 235, .62); }
#architecture .agent-step:nth-child(5)::before { background: #79C6B3; }
#architecture .arch-step-index { color: rgba(200, 209, 221, .68); }
#architecture .arch-step-retrieve { background: linear-gradient(145deg, rgba(86, 88, 152, .40), rgba(39, 45, 74, .56)); border-color: rgba(165, 166, 229, .46); }
#architecture .arch-step-retrieve strong { color: #DFDFFF; }
#architecture .arch-evidence { z-index: 2; isolation: isolate; }
#architecture .arch-evidence::before {
  content: "";
  position: absolute;
  inset: -16px -18px -18px;
  z-index: -1;
  border: 1px solid rgba(136, 150, 220, .30);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(26, 46, 60, .74), rgba(17, 28, 39, .72));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 16px 34px rgba(4, 10, 16, .16);
}
#architecture .arch-evidence-sources { color: rgba(204, 214, 226, .76); }
#architecture .arch-evidence-sources span + span::before { background: #8796B8; }
#architecture .arch-retrieval-method { border-left: 2px solid rgba(190, 194, 233, .66); }
#architecture .arch-retrieval-method:nth-child(2) { border-left-color: rgba(121, 198, 179, .66); }
#architecture .arch-fusion { border-color: rgba(168, 169, 235, .44); background: linear-gradient(145deg, rgba(86, 88, 152, .34), rgba(26, 35, 52, .88)); }
#architecture .arch-snapshot { border-color: rgba(121, 198, 179, .48); background: linear-gradient(145deg, rgba(57, 108, 105, .35), rgba(22, 42, 47, .92)); }
#architecture .arch-evidence-caption { color: rgba(205, 214, 225, .76); }
#architecture .arch-loop-key { height: 2px; background: #B5B8F0; box-shadow: 0 0 6px rgba(181, 184, 240, .8); }
#architecture .arch-assessment { border-color: rgba(216, 186, 113, .44); background: linear-gradient(145deg, rgba(81, 68, 44, .62), rgba(34, 32, 30, .90)); }
#architecture .arch-assessment .arch-small-label { color: #E7C883; }
#architecture .arch-assessment p { color: rgba(242, 230, 203, .79); }
#architecture .arch-admission-context { z-index: 2; }
#architecture .arch-admission-context::before,
#architecture .arch-gate-criteria::before {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, #A8A8E8, transparent);
}
#architecture .arch-admission-context h3 { color: #E9EAF1; }
#architecture .arch-gate { z-index: 3; }
#architecture .arch-gate::before {
  content: "";
  position: absolute;
  inset: 19px;
  z-index: -1;
  background: radial-gradient(circle, rgba(166, 167, 228, .28), rgba(117, 120, 183, .08) 58%, transparent 72%);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
#architecture .arch-gate-shape { filter: drop-shadow(0 0 10px rgba(164, 166, 234, .42)); }
#architecture .arch-gate strong { color: #F6F3FF; }
#architecture .arch-gate span { color: rgba(219, 222, 235, .72); }
#architecture .arch-gate-criteria { z-index: 2; }
#architecture .arch-gate-criteria p { color: rgba(235, 239, 240, .86); }
#architecture .arch-outcomes { z-index: 2; }
#architecture .architecture-branch { padding: 17px 18px 16px; border: 1px solid rgba(196, 207, 220, .22); border-radius: 11px; background: linear-gradient(145deg, rgba(32, 43, 54, .87), rgba(19, 28, 37, .88)); box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 15px 30px rgba(4, 10, 16, .18); }
#architecture .arch-review { border-color: rgba(220, 183, 107, .32); }
#architecture .arch-coding { border-color: rgba(111, 190, 168, .36); background: linear-gradient(145deg, rgba(30, 66, 64, .72), rgba(18, 37, 42, .92)); }
#architecture .architecture-branch h3 { color: #F0F2F1; }
#architecture .architecture-branch p { color: rgba(207, 216, 222, .78); }
#architecture .arch-route-list code, #architecture .arch-route-list > span { color: rgba(204, 214, 225, .74); }
#architecture .arch-coding .arch-route-list code { color: #88D1BD; }
#architecture .arch-canvas-footnote { border-color: rgba(198, 208, 220, .16); color: rgba(177, 189, 202, .75); }

/* Hover and keyboard focus turn the graph into an explorable system map. */
#architecture .arch-canvas[data-focus] [data-arch-node] { opacity: .34; filter: saturate(.60); }
#architecture .arch-canvas[data-focus="input"] [data-arch-node="input"],
#architecture .arch-canvas[data-focus="agent"] [data-arch-node="agent"],
#architecture .arch-canvas[data-focus="evidence"] [data-arch-node="evidence"],
#architecture .arch-canvas[data-focus="assessment"] [data-arch-node="assessment"],
#architecture .arch-canvas[data-focus="gate"] [data-arch-node="gate"],
#architecture .arch-canvas[data-focus="review"] [data-arch-node="review"],
#architecture .arch-canvas[data-focus="coding"] [data-arch-node="coding"] {
  opacity: 1;
  filter: saturate(1.1) drop-shadow(0 10px 22px rgba(4, 9, 15, .28));
}
#architecture .arch-canvas [data-arch-node]:focus-visible { outline: 2px solid rgba(187, 188, 245, .92); outline-offset: 5px; }
#architecture .arch-mobile-break { display: none; }
@media (max-width: 850px) {
  #architecture .arch-canvas { height: auto; }
  #architecture .arch-canvas::after { right: 16px; bottom: 13px; font-size: 9px; letter-spacing: .12em; }
}
@media (max-width: 620px) {
  #architecture .arch-board,
  #architecture .arch-canvas-heading,
  #architecture .arch-canvas-legend,
  #architecture .arch-canvas { width: calc(100vw - 40px); max-width: calc(100vw - 40px); min-width: 0; }
  #architecture .arch-page-heading { display: block; }
  #architecture .arch-page-heading,
  #architecture .arch-page-heading > div,
  #architecture .arch-page-intro,
  #architecture .arch-page-intro p { width: 100%; max-width: 100%; min-width: 0; white-space: normal; overflow-wrap: anywhere; word-break: break-all; }
  #architecture .arch-page-heading > div + div { margin-top: 24px; }
  #architecture .arch-page-intro p { inline-size: calc(100vw - 40px); max-inline-size: calc(100vw - 40px); font-size: 15px; line-height: 1.82; }
  #architecture .arch-mobile-break { display: block; }
}

#about .story-header-path > div > span,
#about .story-header-path > div > small,
#about .story-project-meta dt,
#about .story-visual-kicker { font-size: 12px; }
#about .story-header-path > div > strong { font-size: 16px; }
#about .story-project-meta dd { font-size: 15px; }
#about .story-map-kicker { font-size: 10px; }
#about .story-map-label { font-size: 13px; }
#about .story-chapter-heading p,
#about .story-step-details summary,
#about .story-evaluation-note,
#about .story-calibration-note { color: #4F585E; font-size: 14px; }
#about .story-chapter-body > p,
#about .story-decisions dd { color: #4F585E; }
#about .story-conclusion { min-height: 0; margin-top: 70px; padding-block: 60px 56px; }
#about .story-conclusion-copy > p { font-size: 14px; color: #4F585E; }
#about .story-conclusion blockquote { letter-spacing: 0; }
#architecture .arch-canvas-footnote { color: #646C72; }
#home .hero-visual-diagram .hero-node-language,
#home .hero-visual-diagram .hero-node-index { font-size: 11px; }
#home .hero-issue-tag-text { font-size: 9.5px; }
#home .hero-ready-kicker { font-size: 9px; }
#home .hero-ready-note { font-size: 10px; }
#home .hero-visual-foot,
#home .window-label { font-size: 11px; }
#about .story-map-kicker { font-size: 12px; }

@media (max-width: 620px) {
  #about .story-map-kicker { font-size: 10px; }
}

@media (max-width: 1100px) and (min-width: 961px) {
  #demo .workspace-head,
  #evaluation .evaluation-hero,
  #about .story-header { grid-template-columns: minmax(0, 1fr) minmax(300px, .78fr); gap: 36px; }
}
@media (max-width: 960px) {
  #demo .workspace-head,
  #evaluation .evaluation-hero,
  #about .story-header { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  #demo .demo-hero-panel,
  #evaluation .eval-head-signal,
  #about .story-header-visual {
    border-top: 1px solid var(--line-soft);
    padding: 20px 0 0;
    background: transparent;
  }
}
@media (max-width: 850px) {
  .section { padding: 54px 28px 76px; }
  #home { padding-top: 56px; }
  #home .home-hero { grid-template-columns: 1fr; gap: 30px; }
  #home .hero-ledger { width: min(100%, 620px); }
}
@media (max-width: 620px) {
  .section { padding: 42px 20px 64px; }
  #home { padding-top: 42px; }
  #home .product-category { font-size: 12px; }
  #home .hero-visual { border-radius: 10px; }
  #home .hero-visual-annotation-top { top: 40px; left: 18px; font-size: 9px; }
  #home .hero-visual-annotation-side { right: 12px; font-size: 9px; }
  #home .hero-ledger { background: transparent; }
  #home .trust-list { gap: 10px 15px; font-size: 12px; flex-wrap: wrap; }
  #home .hero-title h1 { letter-spacing: -.03em; }
  #home .hero-title h1 .mobile-hero-break { display: inline; }
  #about .story-header-visual > p span,
  #about .story-header-visual > p em { display: block; white-space: nowrap; letter-spacing: 0; }
  #home .hero-ledger { padding-left: 17px; }
  #home .hero-ledger-head,
  #home .hero-ledger-result span { font-size: 12px; }
  #home .hero-ledger-step strong { font-size: 17px; }
  #home .hero-ledger-step small,
  #home .hero-ledger-result small { font-size: 13px; }
  #demo .command-label,
  #demo .runtime,
  #demo .runtime-note,
  #evaluation .eval-editorial-kicker,
  #evaluation .eval-caption,
  #architecture .arch-canvas-legend,
  #about .story-project-meta dt { font-size: 12px; }
  #evaluation .eval-editorial-insight { grid-template-columns: 1fr; gap: 7px; }
  #evaluation .eval-editorial-insight > span { margin: 0; }
  #evaluation .eval-primary-metric strong { font-size: 58px; }
  #about .story-header-visual { padding-left: 16px; border-top: 0; }
  #about .story-conclusion { margin-top: 58px; padding-block: 48px; }
}

/* Quiet signal motion: texture and data lines move together, without turning the
   paper surface into a loading animation. */
@keyframes paper-trace-drift {
  0%, 100% {
    background-position: center top, center center, 0 0, 0 0;
  }
  50% {
    background-position: calc(50% + 7px) 4px, center center, 8px 4px, -8px 0;
  }
}

@keyframes hero-contour-drift {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -240; }
}

@keyframes hero-wire-trace {
  0% { stroke-dashoffset: 182; opacity: .30; }
  18%, 68% { opacity: .88; }
  100% { stroke-dashoffset: -182; opacity: .30; }
}

@keyframes hero-surface-scan {
  0%, 100% { background-position: -140% 0; opacity: 0; }
  12% { opacity: .06; }
  46%, 62% { background-position: 140% 0; opacity: .06; }
  74% { opacity: 0; }
}

@keyframes signal-texture-drift {
  0%, 100% { background-position: 0 0, right top; }
  50% { background-position: 4px 6px, calc(100% + 8px) 4px; }
}

@keyframes architecture-evidence-flow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -210; }
}

#home::before {
  background-position: center top, center center, 0 0, 0 0;
  will-change: background-position;
}

#home .hero-canvas-contours path {
  stroke-dasharray: 90 150;
  stroke-dashoffset: 0;
  will-change: stroke-dashoffset;
}

#home .hero-evidence-lines .hero-wire:not(.hero-wire-faint) {
  stroke-dasharray: 32 150;
  stroke-dashoffset: 182;
  will-change: stroke-dashoffset;
}

#home .hero-visual::after {
  background: linear-gradient(112deg, transparent 0%, rgba(91, 92, 136, .18) 49%, transparent 54%);
  background-size: 220% 100%;
  background-position: -140% 0;
}

#architecture .arch-wire-evidence path {
  stroke-dasharray: 28 182;
  stroke-dashoffset: 0;
  will-change: stroke-dashoffset;
}

@media (prefers-reduced-motion: no-preference) {
  #home::before {
    animation: paper-trace-drift 30s ease-in-out infinite;
  }

  #home .hero-canvas-contours path {
    animation: hero-contour-drift 24s linear infinite;
  }

  #home .hero-evidence-lines .hero-wire:nth-child(1) {
    animation: hero-wire-trace 7.2s linear infinite;
  }

  #home .hero-evidence-lines .hero-wire:nth-child(2) {
    animation: hero-wire-trace 7.2s linear 1.15s infinite;
  }

  #home .hero-evidence-lines .hero-wire:nth-child(3) {
    animation: hero-wire-trace 7.2s linear 2.3s infinite;
  }

  #home .hero-evidence-lines .hero-result-wire {
    animation: hero-wire-trace 8s linear 3.35s infinite;
  }

  #home .hero-visual::after {
    animation: hero-surface-scan 11s ease-in-out infinite;
  }

  #demo .demo-hero-panel::after,
  #evaluation .eval-head-signal::after,
  #about .story-header-visual::after {
    animation: signal-texture-drift 28s ease-in-out infinite;
  }

  #architecture .arch-wire-evidence path {
    animation: architecture-evidence-flow 9s linear infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  #home::before,
  #home .hero-canvas-contours path,
  #home .hero-evidence-lines .hero-wire,
  #home .hero-visual::after,
  #demo .demo-hero-panel::after,
  #evaluation .eval-head-signal::after,
  #about .story-header-visual::after,
  #architecture .arch-wire-evidence path {
    animation: none !important;
  }

  #home .hero-canvas-contours path,
  #home .hero-evidence-lines .hero-wire:not(.hero-wire-faint),
  #home .hero-evidence-lines .hero-wire-faint,
  #architecture .arch-wire-evidence path {
    stroke-dashoffset: 0 !important;
  }
}

/* Final architecture overrides: these stay last so the map keeps one predictable layout contract. */
#architecture .arch-canvas { height: 1015px; }
#architecture .arch-connectors { z-index: 1; height: 885px; }
#architecture .arch-canvas [data-arch-node] { z-index: 3; }
#architecture .arch-evidence, #architecture .arch-agent, #architecture .arch-source, #architecture .arch-assessment, #architecture .arch-admission-context, #architecture .arch-gate, #architecture .arch-gate-criteria, #architecture .arch-outcomes { z-index: 3; }

@media (max-width: 1100px) and (min-width: 901px) {
  #architecture .arch-canvas { height: 930px; }
  #architecture .arch-source { top: 25px; width: 20%; }
  #architecture .arch-source-note { left: 25%; top: 31px; }
  #architecture .arch-agent { top: 112px; }
  #architecture .agent-step p { font-size: 12px; }
  #architecture .arch-evidence { top: 313px; width: 63%; }
  #architecture .arch-assessment { top: 348px; left: 78%; width: 20%; }
  #architecture .arch-admission-context { top: 590px; left: 7%; }
  #architecture .arch-gate { top: 568px; }
  #architecture .arch-gate-criteria { top: 602px; left: 66%; }
  #architecture .arch-outcomes { top: 748px; }
  #architecture .arch-route-evidence { top: 285px; }
  #architecture .arch-route-policy { top: 535px; }
  #architecture .arch-route-human { top: 724px; }
  #architecture .arch-wire > path:nth-child(6) { d: path("M1048 274 V348"); }
  #architecture .arch-wire > path:nth-child(7) { d: path("M1048 475 V518 H560 V568"); }
  #architecture .arch-wire-branch > path:nth-child(1) { d: path("M560 704 V724 H269 V748"); }
  #architecture .arch-wire-branch > path:nth-child(2) { d: path("M560 704 V724 H851 V748"); }
  #architecture .arch-junction { cy: 724; }
}

@media (max-width: 900px) {
  #architecture .arch-page-intro { padding-left: 0; border-left: 0; }
  #architecture .arch-canvas { height: auto; min-height: 0; margin-top: 22px; padding: 0 0 5px; overflow: visible; border-radius: 12px; background: linear-gradient(145deg, #182431, #121A23); }
  #architecture .arch-canvas-rail { position: relative; top: auto; left: auto; right: auto; padding: 17px 17px 0; }
  #architecture .arch-connectors { display: none; }
  #architecture .arch-route-label { display: none; }
  #architecture .arch-canvas [data-arch-node], #architecture .arch-source, #architecture .arch-source-note, #architecture .arch-agent, #architecture .arch-evidence, #architecture .arch-assessment, #architecture .arch-admission-context, #architecture .arch-gate, #architecture .arch-gate-criteria, #architecture .arch-outcomes { position: relative; inset: auto; width: auto; }
  #architecture .arch-source { width: min(100% - 34px, 300px); margin: 20px 17px 0; }
  #architecture .arch-source-note { margin: 13px 17px 28px; }
  #architecture .arch-agent, #architecture .arch-evidence { margin-inline: 17px; }
  #architecture .arch-assessment { margin: 0 17px; }
  #architecture .arch-admission-context { margin: 31px 17px 0; }
  #architecture .arch-gate { width: 136px; height: 136px; margin: 23px auto; }
  #architecture .arch-gate-criteria { margin: 0 17px 32px; }
  #architecture .arch-outcomes { margin: 0 17px; }
  #architecture .arch-canvas-footnote { margin-inline: 17px; padding-inline: 0; }
  #architecture .arch-agent .arch-component-heading h3 { background: transparent; }
}

@media (max-width: 460px) {
  #architecture .arch-canvas-rail { display: grid; gap: 8px; justify-content: start; }
  #architecture .arch-rail-status { font-size: 8px; }
  #architecture .arch-source { width: calc(100% - 34px); }
}

/* Project introduction template: evidence first, decision second. */
html.about-motion-active .nav-links a.active { color: #5f3fa2; }
html.about-motion-active .nav-links a.active::after { background: #6d4aae; }
#about {
  max-width: none;
  padding: 0 48px;
  background: var(--bg);
}
#about .about-template { max-width: 1180px; margin: 0 auto; padding-bottom: 0; }
#about .about-template-hero { display: grid; grid-template-columns: minmax(0, .88fr) minmax(460px, 1.12fr); gap: clamp(42px, 6vw, 82px); align-items: center; padding: 68px 0 64px; }
#about .about-template-hero h1 { margin: 0; color: #182640; font-size: clamp(50px, 5.7vw, 76px); line-height: 1.05; letter-spacing: -.065em; font-weight: 680; }
#about .about-template-hero h1 em, #about .about-next h2 em { color: #6949a7; font-style: normal; }
#about .about-hero-deck { margin-top: 25px; color: #3d4a63; font-size: 18px; line-height: 1.75; }
#about .about-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 28px; }
#about .about-hero-actions .btn.primary, #about .about-closing .btn.primary { min-height: 45px; border-color: #6d4aae; background: #6d4aae; color: #fff; border-radius: 5px; box-shadow: 0 10px 20px rgba(91, 65, 150, .17); }
#about .about-hero-actions .btn.primary:hover, #about .about-closing .btn.primary:hover { background: #593590; border-color: #593590; }
#about .about-hero-actions .text-link { color: #28344c; font-weight: 600; }
#about .about-hero-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; color: #71809b; font: 12px/1.5 var(--mono); letter-spacing: .02em; }
#about .about-hero-tags i { width: 3px; height: 3px; border-radius: 50%; background: #aeb5c1; }

#about .decision-workbench { position: relative; min-width: 0; padding: 20px 0 10px 18px; }
#about .workbench-backdrop { position: absolute; z-index: 0; inset: 0 0 30px 54px; border: 1px solid rgba(102, 82, 157, .12); border-radius: 7px; background: linear-gradient(145deg, #f2f0f8, #e9e6f0); transform: rotate(1.5deg); }
#about .workbench-window { position: relative; z-index: 1; overflow: hidden; border: 1px solid rgba(38, 40, 57, .14); border-radius: 8px; background: #fff; box-shadow: 0 23px 42px rgba(42, 44, 62, .14); }
#about .workbench-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 22px 14px; border-bottom: 1px solid #e5e4eb; }
#about .workbench-brand { display: flex; align-items: center; gap: 9px; color: #172440; font-size: 14px; }
#about .workbench-brand .logo-symbol { width: 14px; height: 16px; border-width: 2px; }
#about .workbench-brand .logo-symbol:before { left: 2px; top: 6px; width: 6px; height: 2px; }
#about .workbench-brand > span:last-child { margin-left: 7px; color: #6c7483; font-size: 12px; }
#about .workbench-action { padding: 5px 10px; border: 1px solid #ded8f0; border-radius: 4px; color: #6546a5; font-size: 11px; white-space: nowrap; }
#about .workbench-repo { display: flex; align-items: center; gap: 10px; padding: 16px 22px 0; color: #536079; font: 12px/1.4 var(--mono); }
#about .workbench-repo .github-mark { color: #26334c; font-size: 12px; }
#about .workbench-repo small { margin-left: 5px; color: #99a1b1; font: 11px/1.4 var(--mono); }
#about .workbench-window > h2 { margin: 9px 22px 7px; color: #18243d; font-size: 22px; line-height: 1.35; letter-spacing: -.03em; }
#about .workbench-tabs { display: flex; gap: 25px; padding: 0 22px; border-bottom: 1px solid #e5e4eb; }
#about .workbench-tabs span { position: relative; padding: 10px 1px 11px; color: #7d8595; font-size: 12px; }
#about .workbench-tabs span.active { color: #5f3da3; font-weight: 650; }
#about .workbench-tabs span.active::after { content: ''; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: #6545a8; }
#about .workbench-tabs b { margin-left: 4px; color: #9a9ead; font: 10px var(--mono); }
#about .workbench-body { display: grid; grid-template-columns: 1fr 1.15fr; min-height: 190px; }
#about .workbench-evidence { padding: 18px 20px 15px 22px; border-right: 1px solid #e5e4eb; }
#about .workbench-evidence h3 { margin-bottom: 10px; color: #27334c; font-size: 12px; font-weight: 650; }
#about .workbench-evidence ul { padding: 0; list-style: none; }
#about .workbench-evidence li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0eff3; }
#about .workbench-evidence li:last-child { border-bottom: 0; }
#about .evidence-file { display: grid; width: 25px; height: 28px; place-items: center; border: 1px solid #ddd7ef; border-radius: 4px; color: #6547a5; font-size: 14px; }
#about .workbench-evidence strong, #about .workbench-evidence small { display: block; }
#about .workbench-evidence strong { color: #35415b; font: 12px/1.35 var(--mono); }
#about .workbench-evidence small { margin-top: 2px; color: #9aa0ae; font-size: 10px; }
#about .readiness-card { margin: 18px 18px 18px 20px; padding: 0; }
#about .readiness-title { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 12px; color: #c2761e; }
#about .readiness-title strong { font-size: 17px; letter-spacing: -.02em; }
#about .readiness-title small { padding: 3px 7px; border-radius: 4px; background: #fff4e6; color: #c47a27; font: 10px var(--mono); }
#about .status-icon { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: #fff; font-weight: 750; }
#about .status-icon.warning { background: #ca7b1e; }
#about .readiness-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0eff3; color: #687287; font-size: 12px; }
#about .readiness-row b, #about .admission-checklist b { font-size: 11px; font-weight: 650; white-space: nowrap; }
#about .status-ok { color: #579170; }
#about .status-warning { color: #c47a27; }
#about .readiness-card > p { margin-top: 12px; color: #687287; font-size: 11px; }
#about .workbench-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 22px; border-top: 1px solid #e5e4eb; color: #8c94a2; font-size: 10px; }
#about .workbench-footer a { color: #6547a5; font-weight: 650; }

#about .about-positioning-rail { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line-soft); }
#about .about-positioning-rail > div { display: flex; align-items: center; gap: 18px; min-width: 0; padding: 18px 23px; }
#about .about-positioning-rail > div + div { border-left: 1px solid var(--line-soft); }
#about .rail-icon { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border: 1px solid #1e2d4a; border-radius: 50%; color: #1e2d4a; font-size: 18px; }
#about .about-positioning-rail small, #about .about-positioning-rail strong { display: block; }
#about .about-positioning-rail small { color: #7b8495; font-size: 11px; }
#about .about-positioning-rail strong { margin-top: 3px; color: #21304a; font-size: 14px; font-weight: 600; }

#about .about-section-label { display: flex; align-items: baseline; gap: 15px; color: #273653; }
#about .about-section-label span { font: 12px var(--mono); }
#about .about-section-label small { color: #bd762c; font-size: 11px; letter-spacing: .04em; }
#about .about-insight { display: grid; grid-template-columns: 105px minmax(300px, 1fr) minmax(300px, 1.06fr); gap: 32px; align-items: center; padding: 58px 0 48px; border-bottom: 1px solid var(--line-soft); }
#about .about-insight-title h2 { color: #172641; font-size: clamp(34px, 3.4vw, 48px); line-height: 1.16; letter-spacing: -.06em; }
#about .about-insight-title h2 em { color: #6949a7; font-style: normal; }
#about .about-insight-copy { padding-left: 34px; border-left: 1px solid var(--line); }
#about .about-insight-copy p { color: #4b5870; font-size: 15px; line-height: 1.9; }
#about .about-insight-copy .about-emphasis { margin-top: 5px; color: #6949a7; font-size: 16px; }

#about .about-design { padding: 48px 0 64px; }
#about .about-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding-bottom: 23px; border-bottom: 1px solid var(--line-soft); }
#about .about-section-heading h2 { margin-top: 10px; color: #182640; font-size: clamp(28px, 3vw, 37px); line-height: 1.24; letter-spacing: -.05em; }
#about .about-design-grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); gap: 28px 44px; align-items: start; padding-top: 32px; }
#about .admission-panel { padding: 22px 22px 19px; border: 1px solid rgba(38, 48, 70, .1); border-radius: 7px; background: #fff; box-shadow: 0 12px 26px rgba(44, 53, 70, .07); }
#about .panel-breadcrumb { color: #8b94a5; font-size: 11px; }
#about .panel-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 17px 0 13px; }
#about .panel-title-row h3 { color: #1c2a46; font-size: 19px; }
#about .panel-state { padding: 5px 8px; border-radius: 4px; background: #fff3e5; color: #bd762c; font-size: 10px; white-space: nowrap; }
#about .admission-checklist { padding: 0; border: 1px solid #e9e9ef; border-radius: 5px; list-style: none; }
#about .admission-checklist li { display: flex; align-items: center; gap: 11px; padding: 14px 12px; }
#about .admission-checklist li + li { border-top: 1px solid #e9e9ef; }
#about .check-icon { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; border: 1px solid #d5cff0; border-radius: 4px; color: #6043a1; font-size: 13px; }
#about .admission-checklist li > span:nth-child(2) { min-width: 0; flex: 1; }
#about .admission-checklist strong, #about .admission-checklist small { display: block; }
#about .admission-checklist strong { color: #34415a; font-size: 12px; }
#about .admission-checklist small { margin-top: 2px; color: #8992a2; font-size: 10px; }
#about .panel-note { margin-top: 12px; padding: 9px 11px; border-radius: 4px; background: #f1edff; color: #5f3fa3; font-size: 11px; }
#about .evidence-preview { min-width: 0; overflow: hidden; border: 1px solid rgba(38, 48, 70, .08); border-radius: 7px; background: #fff; box-shadow: 0 12px 26px rgba(44, 53, 70, .05); }
#about .evidence-preview-tabs { display: flex; gap: 28px; padding: 15px 19px 0; border-bottom: 1px solid #e9e9ef; }
#about .evidence-preview-tabs span { position: relative; padding-bottom: 12px; color: #8590a1; font-size: 12px; }
#about .evidence-preview-tabs span.active { color: #5d3fa2; font-weight: 650; }
#about .evidence-preview-tabs span.active::after { content: ''; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: #6745a6; }
#about .evidence-preview-body { padding: 18px 20px 20px; }
#about .evidence-preview-body small { display: block; color: #7d8798; font: 10px/1.5 var(--mono); }
#about .skeleton-line { height: 7px; margin-top: 11px; border-radius: 4px; background: #e8e8ed; }
#about .skeleton-line.w-90 { width: 90%; }
#about .skeleton-line.w-84 { width: 84%; }
#about .skeleton-line.w-92 { width: 92%; }
#about .skeleton-line.w-70 { width: 70%; }
#about .skeleton-line.w-60 { width: 60%; }
#about .skeleton-line.accent { background: #ddd5f5; }
#about .evidence-preview-body blockquote { margin: 16px 0 18px; padding: 10px 12px; border-left: 3px solid #bca9e8; border-radius: 2px; background: #f3efff; color: #7564a4; font: 11px/1.55 var(--mono); }
#about .about-design-principles { display: grid; gap: 0; grid-column: 2; padding: 0; list-style: none; }
#about .about-design-principles li { display: grid; grid-template-columns: 42px 1fr; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
#about .about-design-principles li > span { color: #63708a; font: 11px var(--mono); }
#about .about-design-principles h3 { color: #1c2a46; font-size: 19px; }
#about .about-design-principles p { margin-top: 3px; color: #69758a; font-size: 13px; line-height: 1.7; }

#about .about-flow { margin-inline: -48px; padding: 27px max(48px, calc((100% - 1180px) / 2 + 48px)) 32px; border-block: 1px solid var(--line-soft); background: rgba(255, 255, 255, .24); }
#about .about-flow-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
#about .about-overline { display: block; color: #243451; font-size: 13px; font-weight: 650; }
#about .about-flow-heading h2 { margin-top: 2px; color: #1a2943; font-size: 19px; }
#about .about-flow-heading small { color: #7b8596; font-size: 11px; }
#about .about-flow-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; padding: 0; list-style: none; }
#about .about-flow-step { position: relative; min-width: 0; padding: 0 15px 0 0; }
#about .about-flow-step + .about-flow-step { padding-left: 24px; }
#about .about-flow-step + .about-flow-step::before { content: ''; position: absolute; top: 10px; left: 0; width: 24px; height: 1px; background: #9aa3b5; }
#about .about-flow-step > span { display: grid; width: 19px; height: 19px; margin-bottom: 7px; place-items: center; border: 1px solid #8894a9; border-radius: 50%; color: #63708a; font: 9px var(--mono); background: var(--bg); }
#about .about-flow-step.active > span { border-color: #6a45a9; background: #6a45a9; color: #fff; box-shadow: 0 0 0 3px #e2d9f7; }
#about .about-flow-step strong, #about .about-flow-step small { display: block; }
#about .about-flow-step strong { color: #273653; font-size: 12px; }
#about .about-flow-step small { margin-top: 3px; color: #8791a3; font-size: 10px; line-height: 1.45; }

#about .about-boundary { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 45px; margin-top: 0; margin-inline: -48px; padding: 52px max(48px, calc((100% - 1180px) / 2 + 48px)) 43px; background: #302e42; color: #f5f2f6; }
#about .about-boundary .about-section-label span, #about .about-boundary .about-section-label small { color: #e8bd88; }
#about .about-boundary-copy h2 { margin-top: 19px; color: #fff; font-size: clamp(34px, 3.7vw, 50px); line-height: 1.18; letter-spacing: -.06em; }
#about .about-boundary-copy p { margin-top: 14px; color: #d0cadb; font-size: 15px; }
#about .about-boundary-side { align-self: end; }
#about .about-boundary-side dl { margin: 0; }
#about .about-boundary-side dl > div { display: grid; grid-template-columns: 104px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
#about .about-boundary-side dt { color: #fff; font-size: 13px; }
#about .about-boundary-side dd { margin: 0; color: #d5cedf; font-size: 12px; }
#about .boundary-link { display: inline-flex; align-items: center; margin-top: 19px; color: #fff; font-size: 13px; font-weight: 650; }
#about .about-boundary-track { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 28px 1fr 28px 1fr 28px 1fr; align-items: center; margin-top: 18px; color: #eeeaf3; }
#about .about-boundary-track span { display: flex; align-items: center; gap: 9px; font-size: 12px; }
#about .about-boundary-track b { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid #c9c1d9; border-radius: 50%; font: 10px var(--mono); }
#about .about-boundary-track i { position: relative; height: 1px; background: rgba(255,255,255,.65); }
#about .about-boundary-track i::after { content: ''; position: absolute; top: -2px; right: 0; width: 5px; height: 5px; border-top: 1px solid #fff; border-right: 1px solid #fff; transform: rotate(45deg); }

#about .about-next { padding: 48px 0 0; }
#about .about-next h2 { margin-top: 10px; color: #1b2944; font-size: clamp(32px, 3.2vw, 43px); line-height: 1.18; letter-spacing: -.06em; }
#about .about-next-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 50px; align-items: start; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
#about .about-next-grid > p { color: #4d5a71; font-size: 14px; line-height: 1.9; }
#about .about-next-grid ul { padding: 0; list-style: none; }
#about .about-next-grid li { display: grid; grid-template-columns: 22px 140px 1fr; gap: 8px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
#about .about-next-grid li > span { color: #bd762c; font-size: 21px; line-height: 1; }
#about .about-next-grid li strong { color: #bd762c; font-size: 13px; font-weight: 650; }
#about .about-next-grid li small { color: #7a8598; font-size: 11px; }
#about .about-closing { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 23px; padding: 17px 0 29px; border-top: 1px solid var(--line-soft); }
#about .about-closing p { color: #6949a7; font-size: 22px; line-height: 1.5; }

@media (max-width: 900px) {
  #about { padding-inline: 24px; }
  #about .about-template-hero { grid-template-columns: 1fr; gap: 35px; padding: 43px 0 45px; }
  #about .about-template-hero h1 { font-size: clamp(48px, 10vw, 68px); }
  #about .decision-workbench { padding-left: 0; }
  #about .workbench-backdrop { left: 32px; }
  #about .about-positioning-rail { grid-template-columns: 1fr; }
  #about .about-positioning-rail > div + div { border-top: 1px solid var(--line-soft); border-left: 0; }
  #about .about-insight { grid-template-columns: 80px 1fr; gap: 22px; }
  #about .about-insight-copy { grid-column: 2; padding-left: 22px; }
  #about .about-design-grid { grid-template-columns: 1fr; }
  #about .about-design-principles { grid-column: auto; }
  #about .about-flow, #about .about-boundary { margin-inline: -24px; padding-inline: 24px; }
  #about .about-flow-list { grid-template-columns: repeat(5, minmax(100px, 1fr)); overflow-x: auto; padding-bottom: 4px; }
  #about .about-flow-step { min-width: 120px; }
  #about .about-boundary { grid-template-columns: 1fr; gap: 28px; }
  #about .about-boundary-track { grid-column: auto; }
  #about .about-next-grid { grid-template-columns: 1fr; gap: 25px; }
}

@media (max-width: 600px) {
  #about { padding-inline: 17px; }
  #about .about-template-hero { padding-top: 31px; }
  #about .about-template-hero h1 { font-size: clamp(43px, 13vw, 57px); }
  #about .about-hero-deck { font-size: 16px; }
  #about .about-hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  #about .decision-workbench { margin-top: 3px; }
  #about .workbench-header, #about .workbench-repo, #about .workbench-window > h2, #about .workbench-tabs, #about .workbench-footer { padding-inline: 15px; }
  #about .workbench-window > h2 { font-size: 17px; }
  #about .workbench-header { padding-top: 15px; }
  #about .workbench-brand > span:last-child { display: none; }
  #about .workbench-action { font-size: 10px; }
  #about .workbench-body { grid-template-columns: 1fr; }
  #about .workbench-evidence { border-right: 0; border-bottom: 1px solid #e5e4eb; }
  #about .readiness-card { margin: 16px 15px; }
  #about .workbench-footer { align-items: flex-start; flex-direction: column; gap: 6px; }
  #about .about-positioning-rail > div { padding-inline: 15px; }
  #about .about-insight { display: block; padding-block: 37px; }
  #about .about-insight-title { margin-top: 18px; }
  #about .about-insight-title h2 { font-size: 37px; }
  #about .about-insight-copy { margin-top: 20px; padding-left: 16px; }
  #about .about-design { padding-top: 37px; }
  #about .about-section-heading { display: block; }
  #about .about-section-heading h2 { margin-top: 15px; font-size: 29px; }
  #about .about-design-grid { gap: 18px; padding-top: 23px; }
  #about .admission-panel { padding: 17px 15px; }
  #about .panel-title-row { align-items: flex-start; flex-direction: column; gap: 8px; }
  #about .about-flow, #about .about-boundary { margin-inline: -17px; padding-inline: 17px; }
  #about .about-flow-heading { display: block; }
  #about .about-flow-heading small { display: block; margin-top: 7px; }
  #about .about-boundary { padding-block: 38px 33px; }
  #about .about-boundary-copy h2 { font-size: 36px; }
  #about .about-boundary-side dl > div { grid-template-columns: 90px 1fr; }
  #about .about-boundary-track { display: block; }
  #about .about-boundary-track span { padding: 7px 0; }
  #about .about-boundary-track i { display: none; }
  #about .about-next { padding-top: 36px; }
  #about .about-next h2 { font-size: 33px; }
  #about .about-next-grid li { grid-template-columns: 20px 1fr; gap: 7px; }
  #about .about-next-grid li small { grid-column: 2; }
  #about .about-closing { align-items: flex-start; flex-direction: column; gap: 16px; }
  #about .about-closing p { font-size: 20px; }
}

/* Project introduction template calibration for the supplied 953px reference. */
@media (max-width: 1100px) and (min-width: 901px) {
  html { scroll-padding-top: 90px; }
  html, body { background: #f8f8f8; }
  #about, .nav, .footer { background: #f8f8f8; }
  .nav-inner { min-height: 45px; padding-inline: 55px; }
  .logo { gap: 8px; font-size: 16px; }
  .logo-symbol { width: 14px; height: 16px; border-width: 2px; }
  .logo-symbol:before { left: 2px; top: 6px; width: 6px; height: 2px; }
  .nav-links { gap: 25px; }
  .nav-links a { font-size: 12px; }

  #about { padding-inline: 55px; }
  #about .about-template { max-width: none; }
  #about .about-template-hero {
    height: 417px;
    grid-template-columns: minmax(0, .6fr) minmax(0, 1fr);
    gap: 28px;
    padding: 24px 0 12px;
  }
  #about .about-template-hero h1 { font-size: 56px; line-height: 1.02; }
  #about .about-hero-copy { align-self: start; margin-top: 4px; }
  #about .about-template-hero h1 { font-size: 64px; }
  #about .about-hero-deck { margin-top: 17px; font-size: 16px; line-height: 1.6; }
  #about .about-hero-actions { gap: 27px; margin-top: 19px; }
  #about .about-hero-actions .btn.primary { min-width: 158px; min-height: 38px; padding: 7px 14px; font-size: 13px; }
  #about .about-hero-actions .text-link { font-size: 12px; }
  #about .about-hero-tags { gap: 8px; margin-top: 16px; font-size: 10px; }

  #about .decision-workbench { height: 400px; padding: 25px 0 10px 18px; }
  #about .decision-workbench { transform: translateY(-14px); }
  #about .workbench-backdrop { inset: 0 0 27px 38px; }
  #about .workbench-window { height: 365px; display: flex; flex-direction: column; }
  #about .workbench-header { padding: 12px 20px 9px; }
  #about .workbench-brand { gap: 7px; font-size: 13px; }
  #about .workbench-brand .logo-symbol { width: 13px; height: 15px; }
  #about .workbench-brand > span:last-child { margin-left: 4px; font-size: 10px; }
  #about .workbench-action { padding: 4px 8px; font-size: 10px; }
  #about .workbench-repo { gap: 8px; padding: 10px 20px 0; font-size: 10px; }
  #about .workbench-repo small { font-size: 9px; }
  #about .workbench-window > h2 { margin: 7px 20px 5px; font-size: 19px; line-height: 1.25; }
  #about .workbench-tabs { gap: 22px; padding-inline: 20px; }
  #about .workbench-tabs span { padding: 7px 1px 8px; font-size: 10px; }
  #about .workbench-body { flex: 1; min-height: 0; }
  #about .workbench-evidence { padding: 13px 14px 10px 20px; }
  #about .workbench-evidence h3 { margin-bottom: 6px; font-size: 11px; }
  #about .workbench-evidence li { gap: 8px; padding: 7px 0; }
  #about .evidence-file { width: 22px; height: 24px; font-size: 12px; }
  #about .workbench-evidence strong { font-size: 10px; }
  #about .workbench-evidence small { font-size: 9px; }
  #about .readiness-card { margin: 13px 14px 12px 16px; }
  #about .readiness-title { gap: 7px; margin-bottom: 8px; }
  #about .readiness-title strong { font-size: 14px; }
  #about .readiness-title small { padding: 2px 6px; font-size: 9px; }
  #about .status-icon { width: 21px; height: 21px; }
  #about .readiness-row { padding: 7px 0; font-size: 10px; }
  #about .readiness-row b { font-size: 10px; }
  #about .readiness-card > p { margin-top: 8px; font-size: 9px; }
  #about .workbench-footer { padding: 8px 20px; font-size: 9px; }

  #about .about-positioning-rail { height: 74px; }
  #about .about-positioning-rail > div { gap: 12px; padding: 10px 13px; }
  #about .rail-icon { width: 25px; height: 25px; font-size: 16px; }
  #about .about-positioning-rail small { font-size: 9px; line-height: 1.35; }
  #about .about-positioning-rail strong { margin-top: 2px; font-size: 12px; line-height: 1.35; }

  #about .about-insight {
    height: 147px;
    grid-template-columns: 336px minmax(0, 1fr);
    gap: 20px;
    padding: 20px 0;
  }
  #about .about-section-label { gap: 10px; }
  #about .about-section-label span { font-size: 10px; }
  #about .about-section-label small { font-size: 9px; }
  #about .about-insight-title h2 { font-size: 38px; line-height: 1.08; }
  #about .about-insight .about-section-label { grid-column: 1; grid-row: 1; align-self: start; }
  #about .about-insight-title { grid-column: 1; grid-row: 1; align-self: start; margin-top: 27px; }
  #about .about-insight-copy { grid-column: 2; grid-row: 1; align-self: center; padding-left: 22px; }
  #about .about-insight-copy p { font-size: 12px; line-height: 1.62; }
  #about .about-insight-copy .about-emphasis { margin-top: 4px; font-size: 13px; }

  #about .about-design { height: 462px; padding: 14px 0 12px; }
  #about .about-section-heading { height: 52px; display: block; padding-bottom: 11px; }
  #about .about-section-heading h2 { margin-top: 5px; font-size: 26px; line-height: 1.15; }
  #about .about-design-grid {
    height: 374px;
    grid-template-columns: minmax(0, 597px) minmax(0, 1fr);
    gap: 26px;
    padding-top: 14px;
    align-items: stretch;
  }
  #about .about-design-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 12px;
    min-width: 0;
    min-height: 0;
    padding: 12px;
    border: 1px solid rgba(38, 48, 70, .08);
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(44, 53, 70, .07);
    height: 100%;
  }
  #about .about-design-stage .admission-panel,
  #about .about-design-stage .evidence-preview { min-width: 0; border: 0; border-radius: 0; box-shadow: none; }
  #about .about-design-stage .admission-panel { padding: 5px 6px 0; }
  #about .panel-breadcrumb { font-size: 9px; }
  #about .panel-title-row { gap: 8px; margin: 12px 0 9px; }
  #about .panel-title-row h3 { font-size: 17px; }
  #about .panel-state { padding: 4px 6px; font-size: 9px; }
  #about .admission-checklist li { gap: 8px; padding: 17px 8px; }
  #about .check-icon { width: 22px; height: 22px; font-size: 11px; }
  #about .admission-checklist strong { font-size: 10px; }
  #about .admission-checklist small { font-size: 9px; }
  #about .admission-checklist b { font-size: 9px; }
  #about .panel-note { margin-top: 9px; padding: 7px 8px; font-size: 9px; }
  #about .about-design-stage .evidence-preview-tabs { gap: 21px; padding: 8px 10px 0; }
  #about .about-design-stage .evidence-preview-tabs span { padding-bottom: 8px; font-size: 10px; }
  #about .about-design-stage .evidence-preview-body { display: flex; flex-direction: column; justify-content: space-between; height: calc(100% - 34px); padding: 14px 10px 18px; }
  #about .about-design-stage .evidence-preview-body small { font-size: 8px; }
  #about .about-design-stage .skeleton-line { height: 6px; margin-top: 0; }
  #about .about-design-stage .evidence-preview-body blockquote { margin: 0; padding: 10px 8px; font-size: 9px; }
  #about .about-design-principles { grid-column: 2; grid-row: 1; align-self: stretch; padding-left: 32px; border-left: 1px solid var(--line-soft); }
  #about .about-design-principles li { grid-template-columns: 28px 1fr; gap: 7px; padding: 9px 0; }
  #about .about-design-principles li > span { font-size: 9px; }
  #about .about-design-principles h3 { font-size: 17px; }
  #about .about-design-principles p { margin-top: 2px; font-size: 10px; line-height: 1.55; }

  #about .about-flow {
    height: 103px;
    margin-inline: -55px;
    padding: 11px 55px 9px;
  }
  #about .about-flow-heading { margin-bottom: 7px; }
  #about .about-overline { font-size: 11px; line-height: 1.2; }
  #about .about-flow-heading h2 { margin-top: 1px; font-size: 17px; line-height: 1.05; }
  #about .about-flow-heading small { font-size: 9px; line-height: 1.2; }
  #about .about-flow-step { padding-right: 8px; }
  #about .about-flow-step + .about-flow-step { padding-left: 17px; }
  #about .about-flow-step + .about-flow-step::before { top: 8px; width: 17px; }
  #about .about-flow-step > span { width: 16px; height: 16px; margin-bottom: 4px; font-size: 8px; }
  #about .about-flow-step strong { font-size: 10px; line-height: 1.2; }
  #about .about-flow-step small { margin-top: 1px; font-size: 8px; line-height: 1.2; }

  #about .about-boundary {
    height: 212px;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 22px;
    margin-inline: -55px;
    padding: 17px 55px 11px;
  }
  #about .about-boundary-copy h2 { margin-top: 9px; font-size: 35px; line-height: 1.13; }
  #about .about-boundary-copy p { margin-top: 8px; font-size: 12px; }
  #about .about-boundary-side { padding-left: 63px; border-left: 1px solid rgba(255,255,255,.35); }
  #about .about-boundary-side dl > div { grid-template-columns: 79px 1fr; gap: 8px; padding: 6px 0; }
  #about .about-boundary-side dt { font-size: 10px; }
  #about .about-boundary-side dd { font-size: 9px; line-height: 1.45; }
  #about .boundary-link { margin-top: 8px; font-size: 10px; }
  #about .about-boundary-track { margin-top: 9px; }
  #about .about-boundary-track span { gap: 6px; font-size: 9px; }
  #about .about-boundary-track b { width: 18px; height: 18px; font-size: 8px; }
  #about .about-boundary-track i { height: 1px; }

  #about .about-next { height: 158px; padding: 12px 0 0; }
  #about .about-next .about-section-heading { display: block; height: 68px; padding-bottom: 5px; }
  #about .about-next h2 { margin-top: 3px; font-size: 27px; line-height: .95; }
  #about .about-next-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; margin-top: 0; padding-top: 3px; }
  #about .about-next-grid > p { font-size: 10px; line-height: 1.55; }
  #about .about-next-grid li { grid-template-columns: 15px 125px 1fr; gap: 5px; padding: 0; line-height: 1; align-items: center; }
  #about .about-next-grid li > span { font-size: 14px; }
  #about .about-next-grid li strong { font-size: 10px; line-height: 1; }
  #about .about-next-grid li small { font-size: 8px; line-height: 1; }
  #about .about-closing { height: 32px; margin-top: 0; padding: 0; }
  #about .about-closing p { font-size: 16px; line-height: 1.1; }
  #about .about-closing .btn.primary { min-width: 136px; min-height: 30px; padding: 4px 10px; font-size: 10px; }

  .footer { height: 32px; min-height: 32px; padding: 5px 55px; }
  .footer p { font-size: 10px; line-height: 1.2; }
  .footer-brand { display: flex; align-items: center; gap: 7px; color: #172440; font-size: 10px; }
  .footer-brand .logo-symbol { width: 13px; height: 15px; border-width: 2px; }
  .footer-brand .logo-symbol:before { left: 2px; top: 5px; width: 5px; height: 2px; }
  .footer-brand i { width: 3px; height: 3px; border-radius: 50%; background: #aeb5c1; }
  .footer-brand span:last-child { color: #7b8495; }
}

@media (max-width: 900px) {
  #about .about-design-stage { display: grid; grid-template-columns: 1fr; gap: 18px; }
}

/* Final 953px reference alignment: keep the supplied editorial proportions intact. */
@media (max-width: 1100px) and (min-width: 901px) {
  html, body,
  #about, .nav, .footer { background: #fcfcf9; }
  .nav-inner { min-height: 44px; }
  .nav-links a.active { color: #6949a7; }
  .nav-links a.active::after { height: 3px; background: #6949a7; }

  #about .about-positioning-rail {
    margin-inline: -55px;
    padding-inline: 55px;
    background: #f6f6f3;
    border: 0;
  }
  #about .decision-workbench { padding: 26px 9px 10px 13px; }
  #about .workbench-backdrop { inset: 9px -24px 27px 58px; }
  #about .workbench-window { height: 367px; }
  #about .about-design { height: 461px; }
  #about .about-flow { background: #fcfcf9; }
  #about .about-flow-heading h2 { visibility: hidden; }
  #about .about-boundary {
    height: 210px;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .95fr);
    row-gap: 10px;
    background: #393548;
    border: 0;
    box-shadow: inset 0 1px #bab8bf;
  }
  #about .about-boundary-side dl > div:nth-child(3) { display: none; }
  #about .about-boundary-side .boundary-link { margin-top: 17px; }

  #about .about-next {
    display: grid;
    grid-template-columns: minmax(0, 357px) minmax(0, 1fr);
    grid-template-rows: 68px 31px 32px;
    column-gap: 0;
    row-gap: 0;
    height: 155px;
    padding: 16px 0 0;
    position: relative;
  }
  #about .about-next .about-section-heading {
    grid-column: 1;
    grid-row: 1;
    height: 68px;
    padding: 0;
    border-bottom: 0;
  }
  #about .about-next-grid { display: contents; }
  #about .about-next-grid > p {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    margin: 0;
    padding-top: 3px;
  }
  #about .about-next-grid ul {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    height: 64px;
    margin: 0;
    padding: 3px 0 0 36px;
    border-left: 1px solid var(--line-soft);
  }
  #about .about-closing {
    grid-column: 1 / -1;
    grid-row: 3;
    align-self: end;
    height: 32px;
    margin: 0;
    padding: 0;
  }
  #about .about-next { box-shadow: inset 0 1px #a6a5ae; }

  .footer { border-top: 0; }
}


/* Project introduction visual restoration: shared 1440px baseline and measured template proportions. */
#about.active { max-width: none; padding: 0; background: #fffefa; }
#about .about-template { width: min(1320px, calc(100% - 112px)); max-width: none; margin: 0 auto; padding-bottom: 0; }
#about .about-template-hero { min-height: 610px; grid-template-columns: minmax(0, .84fr) minmax(620px, 1.16fr); gap: 42px; padding: 58px 0 44px; align-items: center; }
#about .about-hero-copy { align-self: center; }
#about .about-template-hero h1 { font-size: clamp(64px, 5.55vw, 82px); line-height: 1.02; letter-spacing: -.045em; font-weight: 560; }
#about .about-hero-deck { margin-top: 26px; font-size: 20px; line-height: 1.72; }
#about .about-hero-actions { gap: 28px; margin-top: 29px; }
#about .about-hero-actions .btn.primary { min-height: 46px; padding-inline: 22px; }
#about .about-hero-tags { margin-top: 25px; font-size: 13px; }
#about .decision-workbench { padding: 22px 0 14px 10px; }
#about .workbench-backdrop { inset: 0 0 24px 45px; }
#about .workbench-window { box-shadow: 0 24px 46px rgba(42,44,62,.16); }
#about .workbench-header { padding: 20px 24px 15px; }
#about .workbench-brand { font-size: 16px; }
#about .workbench-action { font-size: 12px; padding: 6px 11px; }
#about .workbench-repo { padding: 18px 24px 0; font-size: 13px; }
#about .workbench-window > h2 { margin: 11px 24px 8px; font-size: 25px; }
#about .workbench-tabs { gap: 30px; padding-inline: 24px; }
#about .workbench-tabs span { font-size: 14px; padding: 11px 1px 12px; }
#about .workbench-body { grid-template-columns: 1.02fr .98fr; min-height: 224px; }
#about .workbench-evidence { padding: 20px 23px 17px 24px; }
#about .workbench-evidence h3 { font-size: 14px; }
#about .workbench-evidence li { padding: 11px 0; }
#about .evidence-file { width: 29px; height: 32px; font-size: 16px; }
#about .workbench-evidence strong { font-size: 14px; }
#about .workbench-evidence small { font-size: 11px; }
#about .readiness-card { margin: 20px 22px 20px 24px; }
#about .readiness-title strong { font-size: 20px; }
#about .readiness-title small { font-size: 11px; }
#about .readiness-row { padding: 11px 0; font-size: 14px; }
#about .readiness-row b { font-size: 13px; }
#about .readiness-card > p { font-size: 13px; }
#about .workbench-footer { padding: 13px 24px; font-size: 12px; }
#about .about-positioning-rail { margin-inline: calc((1320px - 100vw)/2); padding-inline: max(0px, calc((100vw - 1320px)/2)); }
#about .about-positioning-rail > div { padding: 20px 24px; }
#about .rail-icon { width: 34px; height: 34px; }
#about .about-positioning-rail small { font-size: 13px; }
#about .about-positioning-rail strong { font-size: 16px; }
#about .about-insight { grid-template-columns: 112px minmax(420px, 1fr) minmax(420px, 1.05fr); gap: 34px; padding: 61px 0 50px; }
#about .about-section-label { gap: 15px; }
#about .about-section-label span { font-size: 13px; }
#about .about-section-label small { font-size: 13px; }
#about .about-insight-title h2 { font-size: clamp(40px, 3.55vw, 52px); font-weight: 560; }
#about .about-insight-copy { padding-left: 40px; }
#about .about-insight-copy p { font-size: 20px; line-height: 1.72; }
#about .about-insight-copy .about-emphasis { font-size: 20px; }
#about .about-design { padding: 53px 0 67px; }
#about .about-section-heading { display: block; padding-bottom: 25px; }
#about .about-section-heading h2 { margin-top: 13px; font-size: 39px; font-weight: 560; }
#about .about-design-grid { grid-template-columns: minmax(0, 72fr) minmax(0, 28fr); gap: 38px; padding-top: 33px; }
#about .about-design-stage { display: grid; grid-template-columns: minmax(0, 54fr) minmax(0, 46fr); gap: 14px; min-width: 0; padding: 13px; border: 1px solid rgba(38,48,70,.08); border-radius: 8px; background: #fff; box-shadow: 0 12px 26px rgba(44,53,70,.07); }
#about .about-design-stage .admission-panel, #about .about-design-stage .evidence-preview { min-width: 0; }
#about .about-design-stage .admission-panel { padding: 7px 8px 0; border: 0; border-radius: 0; box-shadow: none; }
#about .panel-title-row { margin: 18px 0 14px; }
#about .panel-title-row h3 { font-size: 22px; }
#about .panel-state { font-size: 12px; }
#about .admission-checklist li { padding: 16px 13px; }
#about .check-icon { width: 30px; height: 30px; font-size: 15px; }
#about .admission-checklist strong { font-size: 15px; }
#about .admission-checklist small { font-size: 12px; }
#about .admission-checklist b { font-size: 13px; }
#about .panel-note { margin-top: 12px; padding: 11px 13px; font-size: 13px; }
#about .about-design-stage .evidence-preview-tabs { padding: 17px 19px 0; }
#about .about-design-stage .evidence-preview-tabs span { font-size: 14px; padding-bottom: 13px; }
#about .about-design-stage .evidence-preview-body { min-height: 274px; padding: 20px 20px 22px; }
#about .about-design-stage .evidence-preview-body small { font-size: 11px; }
#about .about-design-stage .skeleton-line { height: 8px; margin-top: 12px; }
#about .about-design-stage .evidence-preview-body blockquote { margin: 18px 0 20px; padding: 12px; font-size: 12px; }
#about .about-design-principles { grid-column: 2; padding-left: 30px; border-left: 1px solid var(--line-soft); }
#about .about-design-principles li { grid-template-columns: 37px 1fr; gap: 13px; padding: 20px 0; }
#about .about-design-principles li > span { font-size: 13px; }
#about .about-design-principles h3 { font-size: 24px; font-weight: 560; }
#about .about-design-principles p { font-size: 16px; line-height: 1.65; }
#about .about-flow { margin-inline: calc((1320px - 100vw)/2); padding: 32px max(0px, calc((100vw - 1320px)/2)) 36px; }
#about .about-flow-heading { margin-bottom: 25px; }
#about .about-overline { font-size: 16px; }
#about .about-flow-heading h2 { font-size: 25px; }
#about .about-flow-heading small { font-size: 13px; }
#about .about-flow-step strong { font-size: 14px; }
#about .about-flow-step small { font-size: 12px; }
#about .about-boundary { margin-inline: calc((1320px - 100vw)/2); padding: 57px max(0px, calc((100vw - 1320px)/2)) 48px; grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr); gap: 48px; }
#about .about-boundary-copy h2 { font-size: clamp(46px, 4.1vw, 60px); font-weight: 560; }
#about .about-boundary-copy p { font-size: 20px; }
#about .about-boundary-side dt { font-size: 16px; }
#about .about-boundary-side dd { font-size: 15px; }
#about .boundary-link { font-size: 15px; }
#about .about-boundary-track { margin-top: 24px; }
#about .about-boundary-track span { font-size: 14px; }
#about .about-next { padding: 58px 0 0; }
#about .about-next h2 { font-size: 48px; font-weight: 560; }
#about .about-next-grid { grid-template-columns: .93fr 1.07fr; gap: 56px; margin-top: 32px; padding-top: 24px; }
#about .about-next-grid > p { font-size: 17px; }
#about .about-next-grid li { grid-template-columns: 25px 170px 1fr; gap: 10px; padding: 11px 0; }
#about .about-next-grid li strong { font-size: 15px; }
#about .about-next-grid li small { font-size: 13px; }
#about .about-closing { margin-top: 27px; padding: 19px 0 31px; }
#about .about-closing p { font-size: 29px; }

@media (max-width: 1280px) and (min-width: 901px) {
  #about .about-template { width: calc(100% - 96px); }
  #about .about-template-hero { grid-template-columns: .8fr 1.2fr; min-height: 560px; }
  #about .about-insight { grid-template-columns: 96px minmax(360px,1fr) minmax(360px,1fr); }
  #about .about-insight-copy p { font-size: 18px; }
  #about .about-design-grid { gap: 28px; }
  #about .about-boundary, #about .about-flow, #about .about-positioning-rail { margin-inline: -48px; padding-inline: 48px; }
}

/* Final scoped pass for the supplied gate/reply reference. */
#demo #analysis-results.ig-gate-reply .result-grid { display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); gap: 28px; align-items: start; margin-top: 28px; }
#demo #analysis-results.ig-gate-reply .result-support { grid-column: 1; grid-row: 1; min-width: 0; }
#demo #analysis-results.ig-gate-reply .reply-card { grid-column: 2; grid-row: 1; min-width: 0; padding-left: 28px; border-left: 1px solid #deddd7; }
#demo #analysis-results.ig-gate-reply .ig-gr-gate { padding-top: 16px; border-top: 2px solid #5e5988; }
#demo #analysis-results.ig-gate-reply .ig-gr-gate > details { margin: 0; padding: 0; border: 0; background: transparent; }
#demo #analysis-results.ig-gate-reply .ig-gr-gate > details > summary { cursor: pointer; color: #292b36; font-size: 22px; font-weight: 650; line-height: 1.4; }
#demo #analysis-results.ig-gate-reply .ig-gr-gate > details > summary .meta { display: block; padding-left: 26px; color: #6d7180; font-size: 15px; font-weight: 400; }
#demo #analysis-results.ig-gate-reply .ig-gr-gate > details[open] > summary { margin-bottom: 16px; }
#demo #analysis-results.ig-gate-reply .ig-gr-panel { margin-top: 0; padding: 20px; border: 1px solid #d6b78d; border-radius: 6px; background: #fbf8f1; }
#demo #analysis-results.ig-gate-reply .ig-gr-panel .panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
#demo #analysis-results.ig-gate-reply .ig-gr-panel .panel-heading h2 { margin: 0; color: #292b36; font-size: 18px; line-height: 1.45; font-weight: 600; }
#demo #analysis-results.ig-gate-reply .ig-gr-panel .panel-heading .meta { display: block; margin-top: 4px; color: #6d7180; font-size: 15px; }
#demo #analysis-results.ig-gate-reply .ig-gr-panel .badge { padding: 6px 10px; border: 1px solid #deddd7; border-radius: 4px; background: #fff; color: #6d7180; font-size: 13px; }
#demo #analysis-results.ig-gate-reply .ig-gr-panel .gate-flow { gap: 16px; margin: 20px 0; padding-left: 0; border-left: 0; }
#demo #analysis-results.ig-gate-reply .ig-gr-panel .gate-flow > div { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; position: relative; padding: 0 0 16px; }
#demo #analysis-results.ig-gate-reply .ig-gr-panel .gate-flow > div::before { content: counter(gate-step); display: grid; grid-column: 1; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #eceaf4; color: #5e5988; font-size: 13px; font-weight: 600; }
#demo #analysis-results.ig-gate-reply .ig-gr-panel .gate-flow { counter-reset: gate-step; }
#demo #analysis-results.ig-gate-reply .ig-gr-panel .gate-flow > div { counter-increment: gate-step; }
#demo #analysis-results.ig-gate-reply .ig-gr-panel .gate-flow > div::after { content: ""; position: absolute; left: 11px; top: 28px; bottom: -4px; width: 1px; background: #deddd7; }
#demo #analysis-results.ig-gate-reply .ig-gr-panel .gate-flow > div:last-of-type::after { display: none; }
#demo #analysis-results.ig-gate-reply .ig-gr-panel .gate-flow > div > * { grid-column: 2; }
#demo #analysis-results.ig-gate-reply .ig-gr-panel .gate-flow strong { color: #292b36; font-size: 15px; line-height: 1.5; font-weight: 600; }
#demo #analysis-results.ig-gate-reply .ig-gr-panel .gate-flow .meta { color: #6d7180; font-size: 13px; line-height: 1.6; }
#demo #analysis-results.ig-gate-reply .ig-gr-panel .checklist { border-top: 1px solid #deddd7; }
#demo #analysis-results.ig-gate-reply .ig-gr-panel .check-item { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 44px; padding: 10px 0; border-bottom: 1px solid #deddd7; font-size: 15px; }
#demo #analysis-results.ig-gate-reply .ig-gr-panel .check-item > .ig-gr-check-icon { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; }
#demo #analysis-results.ig-gate-reply .ig-gr-panel .check-item .check-copy { display: block; min-width: 0; overflow-wrap: anywhere; }
#demo #analysis-results.ig-gate-reply .ig-gr-panel .check-item .check-copy strong { color: #292b36; font-size: 15px; font-weight: 400; }
#demo #analysis-results.ig-gate-reply .ig-gr-panel .ig-gr-status { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; color: #6d7180; font-size: 13px; white-space: nowrap; }
#demo #analysis-results.ig-gate-reply .ig-gr-panel .ig-gr-status.ok { color: #28754a; font-weight: 600; }
#demo #analysis-results.ig-gate-reply .ig-gr-panel .ig-gr-status--insufficient { color: #946329; font-weight: 600; }
#demo #analysis-results.ig-gate-reply .ig-gr-panel .ig-gr-status.unknown { color: #6d7180; }
#demo #analysis-results.ig-gate-reply .ig-gr-panel .ig-gr-note { margin: 16px 0 0; color: #6d7180; font-size: 13px; line-height: 1.65; }
#demo #analysis-results.ig-gate-reply .ig-gr-panel .gate-warnings { margin-top: 16px; color: #292b36; }
#demo #analysis-results.ig-gate-reply .ig-gr-panel .gate-warnings summary { cursor: pointer; font-size: 15px; font-weight: 600; }
#demo #analysis-results.ig-gate-reply .ig-gr-panel .gate-warnings summary::marker { color: #292b36; }
#demo #analysis-results.ig-gate-reply .ig-gr-panel .gate-warnings li { color: #6d7180; font-size: 13px; }
#demo #analysis-results.ig-gate-reply .ig-gr-gate > details + details { margin-top: 28px; padding: 16px 0 0; border-top: 1px solid #deddd7; }
#demo #analysis-results.ig-gate-reply .ig-gr-gate > details + details > summary { cursor: pointer; color: #292b36; font-size: 18px; font-weight: 600; line-height: 1.45; }
#demo #analysis-results.ig-gate-reply .ig-gr-gate > details + details > summary .meta { display: block; padding-left: 26px; color: #6d7180; font-size: 13px; font-weight: 400; }
#demo #analysis-results.ig-gate-reply .ig-gr-gate > details + details .sufficiency-card { padding-top: 16px; }
#demo #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 0; }
#demo #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-header > :first-child { min-width: 0; }
#demo #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-heading { margin: 0; color: #292b36; font-size: 22px; line-height: 1.4; font-weight: 650; }
#demo #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-caption { display: block; margin-top: 4px; color: #6d7180; font-size: 13px; line-height: 1.6; }
#demo #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-language { min-height: 32px; min-width: 72px; padding: 4px 8px; border: 1px solid #292b36; border-radius: 4px; background: #fff; color: #292b36; font: inherit; font-size: 13px; }
#demo #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-editor { overflow: hidden; margin-top: 24px; border: 1px solid #deddd7; border-radius: 4px; background: #fff; }
#demo #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-toolbar { display: flex; align-items: stretch; gap: 12px; min-height: 44px; margin: 0; padding: 0 16px; border: 0; border-bottom: 1px solid #deddd7; border-radius: 0; background: #fff; }
#demo #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-tabs { display: flex; gap: 20px; }
#demo #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-tab { padding: 10px 4px 8px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #6d7180; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
#demo #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-tab.active { border-bottom-color: #5e5988; color: #5e5988; }
#demo #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-copy-inline { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 4px 0; border: 0; background: transparent; color: #6d7180; font: inherit; font-size: 13px; cursor: pointer; }
#demo #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-preview, #demo #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-draft { width: 100%; min-height: 330px; max-height: 640px; margin: 0; overflow-y: auto; padding: 24px; border: 0; border-radius: 0; background: #fff; color: #292b36; font: inherit; font-size: 15px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
#demo #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-preview p { margin: 0 0 16px; color: #292b36; font-size: 15px; line-height: 1.8; }
#demo #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-preview ul, #demo #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-preview ol { margin: 0 0 16px; padding-left: 24px; }
#demo #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-preview li + li { margin-top: 4px; }
#demo #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-preview .ig-gr-link { color: #5e5988; text-decoration: underline; text-underline-offset: 3px; }
#demo #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-preview .ig-gr-repo { margin-inline-start: 8px; color: #6d7180; font-size: 13px; }
#demo #analysis-results.ig-gate-reply .ig-gr-reply .replay-reply-supplement { margin-top: 12px; color: #6d7180; font-size: 13px; line-height: 1.6; }
#demo #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
#demo #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 18px; border: 1px solid #5e5988; border-radius: 4px; font: inherit; font-size: 14px; line-height: 1.4; font-weight: 600; cursor: pointer; }
#demo #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-button--primary { background: #5e5988; color: #fff; box-shadow: 0 2px 6px rgba(41,43,54,.06); }
#demo #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-button--primary:hover { background: #514b77; border-color: #514b77; }
#demo #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-button--secondary { background: #fff; color: #5e5988; }
#demo #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-button--secondary:hover { background: #eceaf4; }
#demo #analysis-results.ig-gate-reply .ig-gr-reply #reply-note { margin-top: 10px; color: #6d7180; font-size: 13px; line-height: 1.6; }
#demo #analysis-results.ig-gate-reply .ig-gr-icon { --icon-size: 24px; --icon-scale: 1; --optical-x: 0%; --optical-y: 0%; position: relative; display: inline-block; width: var(--icon-size); height: var(--icon-size); flex: 0 0 var(--icon-size); overflow: hidden; vertical-align: middle; background: transparent; }
#demo #analysis-results.ig-gate-reply .ig-gr-icon > img { position: absolute; top: 50%; left: 50%; display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; transform: translate(calc(-50% + var(--optical-x)), calc(-50% + var(--optical-y))) scale(var(--icon-scale)); transform-origin: center; }
#demo #analysis-results.ig-gate-reply .ig-gr-icon--code-entry { --icon-scale: 1.14695; --optical-y: -1.28049%; }
#demo #analysis-results.ig-gate-reply .ig-gr-icon--locate-code { --icon-scale: 1.132; --optical-x: .04514%; --optical-y: .31595%; }
#demo #analysis-results.ig-gate-reply .ig-gr-icon--implementation-steps { --icon-scale: 1.368; --optical-y: -7.69091%; }
#demo #analysis-results.ig-gate-reply .ig-gr-icon--test-plan { --icon-scale: 1.31692; --optical-x: -2.993%; --optical-y: -1.94282%; }
#demo #analysis-results.ig-gate-reply .ig-gr-icon--acceptance-check { --icon-scale: 1.3262; --optical-y: -1.16334%; }
#demo #analysis-results.ig-gate-reply .ig-gr-icon--insufficient-warning { --icon-size: 16px; --icon-scale: 1.04114; --optical-x: -6.14391%; --optical-y: -3.8607%; }
#demo #analysis-results.ig-gate-reply .ig-gr-icon--copy-reply { --icon-size: 18px; --icon-scale: 1.19302; --optical-y: -1.14165%; }
#demo #analysis-results.ig-gate-reply .ig-gr-icon--edit-draft { --icon-size: 18px; --icon-scale: 1.29575; --optical-x: -2.73823%; --optical-y: -.72331%; }
#demo #analysis-results.ig-gate-reply .ig-gr-icon--external-link { --icon-size: 16px; --icon-scale: 1.34038; --optical-x: -.10689%; --optical-y: -3.68765%; }
#demo #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-icon--external-link { margin-inline: 4px 0; }
#demo #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-icon--external-link > img { position: static; transform: none; }

@container ig-gate-reply (max-width: 759px) {
  #demo #analysis-results.ig-gate-reply .result-grid { grid-template-columns: 1fr; gap: 24px; }
  #demo #analysis-results.ig-gate-reply .result-support, #demo #analysis-results.ig-gate-reply .reply-card, #demo #analysis-results.ig-gate-reply .evidence-card, #demo #analysis-results.ig-gate-reply .run-details { grid-column: 1; grid-row: auto; width: 100%; }
  #demo #analysis-results.ig-gate-reply .reply-card { padding: 24px 0 0; border-top: 1px solid #deddd7; border-left: 0; }
  #demo #analysis-results.ig-gate-reply .ig-gr-panel { padding: 16px; }
  #demo #analysis-results.ig-gate-reply .ig-gr-heading { font-size: 20px; }
  #demo #analysis-results.ig-gate-reply .ig-gr-gate > details > summary { font-size: 20px; }
  #demo #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-preview, #demo #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-draft { min-height: 260px; padding: 16px; }
  #demo #analysis-results.ig-gate-reply .ig-gr-button { flex: 1 1 auto; }
}

@media (max-width: 999px) and (min-width: 760px) {
  #demo #analysis-results.ig-gate-reply .result-grid { gap: 20px; }
  #demo #analysis-results.ig-gate-reply .reply-card { padding-left: 20px; }
  #demo #analysis-results.ig-gate-reply .ig-gr-panel { padding: 16px; }
}

@media (max-width: 900px) {
  #about.active { padding: 0 24px 50px; }
  #about .about-template { width: auto; }
  #about .about-template-hero { min-height: 0; padding: 38px 0 44px; }
  #about .about-template-hero h1 { font-size: clamp(52px, 14vw, 72px); }
  #about .about-hero-deck { font-size: 19px; }
  #about .about-positioning-rail { margin-inline: -24px; padding-inline: 24px; }
  #about .about-insight-copy p { font-size: 18px; }
  #about .about-design-grid { grid-template-columns: 1fr; gap: 26px; }
  #about .about-design-stage { grid-template-columns: 54fr 46fr; }
  #about .about-design-principles { grid-column: auto; padding-left: 0; border-left: 0; }
  #about .about-flow, #about .about-boundary { margin-inline: -24px; padding-inline: 24px; }
  #about .about-boundary { grid-template-columns: 1fr; }
  #about .about-next h2 { font-size: 42px; }
}

@media (max-width: 600px) {
  #about.active { padding-inline: 17px; }
  #about .about-template-hero h1 { font-size: clamp(46px, 14vw, 60px); }
  #about .about-hero-deck { font-size: 17px; }
#about .about-design-stage { grid-template-columns: 1fr; }
#about .about-design-stage .evidence-preview { min-height: 260px; }
}

/* Gate and reply result layout from the supplied visual specification. */
.ig-gate-reply {
  --ig-gr-ink: #292b36;
  --ig-gr-muted: #6d7180;
  --ig-gr-purple: #5e5988;
  --ig-gr-purple-hover: #514b77;
  --ig-gr-purple-soft: #eceaf4;
  --ig-gr-line: #deddd7;
  --ig-gr-panel: #fbf8f1;
  --ig-gr-panel-line: #d6b78d;
  --ig-gr-warning: #946329;
  container: ig-gate-reply / inline-size;
}
.ig-gate-reply *, .ig-gate-reply *::before, .ig-gate-reply *::after { box-sizing: border-box; }
.ig-gate-reply .ig-gr-gate, .ig-gate-reply .ig-gr-reply { color: var(--ig-gr-ink); font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; }
.ig-gate-reply .ig-gr-layout { display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); gap: 28px; align-items: start; }
.ig-gate-reply .result-grid { display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); gap: 28px; align-items: start; margin-top: 28px; }
.ig-gate-reply .result-support { grid-column: 1; grid-row: 1; }
.ig-gate-reply .reply-card { grid-column: 2; grid-row: 1; }
.ig-gate-reply .evidence-card, .ig-gate-reply .run-details { grid-column: 1 / -1; }
.ig-gate-reply .ig-gr-gate, .ig-gate-reply .ig-gr-reply { min-width: 0; }
.ig-gate-reply .ig-gr-gate { border-top: 2px solid var(--ig-gr-purple); padding-top: 16px; }
.ig-gate-reply .ig-gr-reply { border-left: 1px solid var(--ig-gr-line); padding-left: 28px; }
.ig-gate-reply .ig-gr-heading { margin: 0; color: var(--ig-gr-ink); font-size: 22px; font-weight: 650; line-height: 1.4; }
.ig-gate-reply .ig-gr-caption { display: block; margin-top: 4px; color: var(--ig-gr-muted); font-size: 13px; line-height: 1.6; }
.ig-gate-reply .ig-gr-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ig-gate-reply .ig-gr-header > :first-child { min-width: 0; }
.ig-gate-reply .ig-gr-language { min-height: 32px; min-width: 72px; padding: 4px 8px; border: 1px solid var(--ig-gr-ink); border-radius: 4px; background: #fff; color: var(--ig-gr-ink); font: inherit; font-size: 13px; }
.ig-gate-reply .ig-gr-gate > details { margin: 0; }
.ig-gate-reply .ig-gr-gate > details > summary { cursor: pointer; color: var(--ig-gr-ink); font-size: 22px; font-weight: 650; line-height: 1.4; }
.ig-gate-reply .ig-gr-gate > details > summary .meta { display: block; padding-left: 26px; color: var(--ig-gr-muted); font-size: 15px; font-weight: 400; }
.ig-gate-reply .ig-gr-gate > details[open] > summary { margin-bottom: 16px; }
.ig-gate-reply .ig-gr-panel { margin-top: 0; padding: 20px; border: 1px solid var(--ig-gr-panel-line); border-radius: 6px; background: var(--ig-gr-panel); }
.ig-gate-reply .ig-gr-panel .panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ig-gate-reply .ig-gr-panel .panel-heading h2 { margin: 0; font-size: 22px; line-height: 1.4; }
.ig-gate-reply .ig-gr-panel .panel-heading .meta { display: block; margin-top: 4px; color: var(--ig-gr-muted); font-size: 15px; }
.ig-gate-reply .ig-gr-panel .badge { padding: 6px 10px; border: 1px solid var(--ig-gr-line); border-radius: 4px; background: #fff; color: var(--ig-gr-muted); font-size: 13px; }
.ig-gate-reply .ig-gr-panel .gate-flow { gap: 16px; margin: 20px 0; padding-left: 0; border-left: 0; }
.ig-gate-reply .ig-gr-panel .gate-flow > div { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; position: relative; padding: 0 0 16px; }
.ig-gate-reply .ig-gr-panel .gate-flow > div::before { content: counter(gate-step); display: grid; grid-column: 1; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ig-gr-purple-soft); color: var(--ig-gr-purple); font-size: 13px; font-weight: 600; }
.ig-gate-reply .ig-gr-panel .gate-flow { counter-reset: gate-step; }
.ig-gate-reply .ig-gr-panel .gate-flow > div { counter-increment: gate-step; }
.ig-gate-reply .ig-gr-panel .gate-flow > div::after { content: ""; position: absolute; left: 11px; top: 28px; bottom: -4px; width: 1px; background: var(--ig-gr-line); }
.ig-gate-reply .ig-gr-panel .gate-flow > div:last-of-type::after { display: none; }
.ig-gate-reply .ig-gr-panel .gate-flow > div > * { grid-column: 2; }
.ig-gate-reply .ig-gr-panel .gate-flow .meta { color: var(--ig-gr-muted); font-size: 13px; }
.ig-gate-reply .ig-gr-panel .gate-flow strong { font-size: 15px; font-weight: 600; }
.ig-gate-reply .ig-gr-panel .checklist { border-top: 1px solid var(--ig-gr-line); }
.ig-gate-reply .ig-gr-panel .check-item { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 44px; padding: 10px 0; border-bottom: 1px solid var(--ig-gr-line); }
.ig-gate-reply .ig-gr-panel .check-item .check-copy { display: grid; gap: 2px; min-width: 0; }
.ig-gate-reply .ig-gr-panel .check-item .check-copy small { color: var(--ig-gr-muted); font-size: 12px; }
.ig-gate-reply .ig-gr-panel .check-item .ok { color: #28754a; font-weight: 600; }
.ig-gate-reply .ig-gr-panel .check-item .warn { color: var(--ig-gr-muted); }
.ig-gate-reply .ig-gr-panel .note, .ig-gate-reply .ig-gr-panel .admission-note { color: var(--ig-gr-muted); font-size: 13px; line-height: 1.65; }
.ig-gate-reply .ig-gr-panel .gate-warnings summary { cursor: pointer; font-weight: 600; }
.ig-gate-reply .ig-gr-gate > details + details { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--ig-gr-line); }
.ig-gate-reply .ig-gr-gate > details + details > summary { font-size: 18px; }
.ig-gate-reply .ig-gr-gate > details + details .sufficiency-card { padding-top: 16px; }
.ig-gate-reply .ig-gr-editor { display: flex; align-items: stretch; gap: 20px; min-height: 44px; margin-top: 24px; padding: 0 16px; border: 1px solid var(--ig-gr-line); border-bottom: 0; border-radius: 4px 4px 0 0; background: #fff; }
.ig-gate-reply .ig-gr-editor button { padding: 10px 4px 8px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--ig-gr-muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ig-gate-reply .ig-gr-editor button.active { border-bottom-color: var(--ig-gr-purple); color: var(--ig-gr-purple); }
.ig-gate-reply .ig-gr-editor .reply-copy-inline { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--ig-gr-muted); }
.ig-gate-reply .ig-gr-preview, .ig-gate-reply #reply-text { width: 100%; min-height: 330px; max-height: 640px; overflow-y: auto; padding: 24px; border: 1px solid var(--ig-gr-line); border-radius: 0 0 4px 4px; background: #fff; color: var(--ig-gr-ink); font: inherit; font-size: 15px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.ig-gate-reply #reply-text { resize: vertical; }
.ig-gate-reply .replay-reply-supplement { margin-top: 12px; color: var(--ig-gr-muted); font-size: 12px; }
.ig-gate-reply .ig-gr-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.ig-gate-reply .ig-gr-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 18px; border: 1px solid var(--ig-gr-purple); border-radius: 4px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ig-gate-reply .ig-gr-button--primary { background: var(--ig-gr-purple); color: #fff; box-shadow: 0 2px 6px rgba(41,43,54,.06); }
.ig-gate-reply .ig-gr-button--primary:hover { background: var(--ig-gr-purple-hover); border-color: var(--ig-gr-purple-hover); }
.ig-gate-reply .ig-gr-button--secondary { background: #fff; color: var(--ig-gr-purple); }
.ig-gate-reply .ig-gr-button--secondary:hover { background: var(--ig-gr-purple-soft); }
.ig-gate-reply .ig-gr-footer, .ig-gate-reply #reply-note { color: var(--ig-gr-muted); font-size: 13px; line-height: 1.6; }
.ig-gate-reply .ig-gr-icon { position: relative; display: inline-block; width: 24px; height: 24px; flex: 0 0 24px; overflow: hidden; vertical-align: middle; background: transparent; }
.ig-gate-reply .ig-gr-icon > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.ig-gate-reply .ig-gr-icon--copy-reply, .ig-gate-reply .ig-gr-icon--edit-draft { width: 18px; height: 18px; flex-basis: 18px; }
.ig-gate-reply .ig-gr-icon--external-link { width: 16px; height: 16px; flex-basis: 16px; }
.ig-gate-reply .ig-gr-icon--insufficient-warning { width: 16px; height: 16px; flex-basis: 16px; }
@container ig-gate-reply (max-width: 759px) {
  .ig-gate-reply .ig-gr-layout { grid-template-columns: 1fr; gap: 24px; }
  .ig-gate-reply .result-grid { display: flex; flex-direction: column; gap: 24px; }
  .ig-gate-reply .result-support, .ig-gate-reply .reply-card, .ig-gate-reply .evidence-card, .ig-gate-reply .run-details { width: 100%; }
  .ig-gate-reply .ig-gr-reply { border-top: 1px solid var(--ig-gr-line); border-left: 0; padding: 24px 0 0; }
}
@media (max-width: 620px) {
  .ig-gate-reply .ig-gr-heading { font-size: 20px; }
  .ig-gate-reply .ig-gr-gate > details > summary { font-size: 20px; }
  .ig-gate-reply .ig-gr-panel { padding: 16px; }
  .ig-gate-reply .ig-gr-header { gap: 10px; }
  .ig-gate-reply .ig-gr-language { min-width: 68px; }
  .ig-gate-reply .ig-gr-preview, .ig-gate-reply #reply-text { min-height: 260px; padding: 16px; }
  .ig-gate-reply .ig-gr-actions .ig-gr-button { flex: 1 1 auto; }
}

/* Online analysis result modules: template-aligned layer scoped to #demo. */
#demo:not(.is-replay) #analysis-results {
  --result-paper: #fcfbf8;
  --result-ink: #29292d;
  --result-muted: #626269;
  --result-line: #deddd7;
  --result-purple: #5e5988;
  --result-amber: #946329;
  color: var(--result-ink);
}
#demo:not(.is-replay) #analysis-results .result-summary { padding: 28px 36px 18px; border: 1px solid #e6e3dc; border-left: 4px solid var(--result-amber); border-radius: 6px; background: var(--result-paper); box-shadow: 0 8px 24px rgba(54,48,35,.04); }
#demo:not(.is-replay) #analysis-results .result-summary[data-route="ready_for_coding"] { border-left-color: var(--success); }
#demo:not(.is-replay) #analysis-results .summary-top { margin-bottom: 26px; color: var(--result-muted); }
#demo:not(.is-replay) #analysis-results .summary-main { align-items: start; }
#demo:not(.is-replay) #analysis-results .result-route { margin: 0; color: var(--result-ink); font-size: clamp(24px, 2.15vw, 31px); line-height: 1.35; letter-spacing: 0; font-weight: 650; overflow-wrap: anywhere; }
#demo:not(.is-replay) #analysis-results .result-issue-reference { margin-top: 9px; font-size: 14px; }
#demo:not(.is-replay) #analysis-results .result-issue-reference a { color: var(--result-purple); font-weight: 600; }
#demo:not(.is-replay) #analysis-results .admission { padding: 7px 12px; color: var(--result-amber); background: #faf2e6; border-color: #ead5b9; border-radius: 5px; font-size: 13px; font-weight: 600; }
#demo:not(.is-replay) #analysis-results .admission.approved { color: #296846; background: #eef6ef; border-color: #cee2d2; }
#demo:not(.is-replay) #analysis-results .result-explanation { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0; margin-top: 30px; padding: 25px 0; border-top: 1px solid var(--result-line); border-bottom: 1px solid var(--result-line); }
#demo:not(.is-replay) #analysis-results .result-explanation > div { min-width: 0; padding-right: 34px; }
#demo:not(.is-replay) #analysis-results .result-explanation > div + div { padding: 0 0 0 34px; border-left: 1px solid var(--result-line); }
#demo:not(.is-replay) #analysis-results .result-explanation p { margin: 8px 0 0; color: var(--result-muted); font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
#demo:not(.is-replay) #analysis-results .missing-info { margin-top: 0; padding-top: 26px; border-top: 0; }
#demo:not(.is-replay) #analysis-results .missing-heading { display: flex; align-items: baseline; gap: 12px; }
#demo:not(.is-replay) #analysis-results .missing-heading b { color: var(--result-muted); font-size: 13px; font-weight: 400; }
#demo:not(.is-replay) #analysis-results .missing-list { margin-top: 7px; }
#demo:not(.is-replay) #analysis-results .missing-row { display: grid; grid-template-columns: 34px minmax(155px, 220px) minmax(0,1fr); align-items: center; gap: 12px; min-height: 66px; padding: 12px 0; border-bottom: 1px solid var(--result-line); }
#demo:not(.is-replay) #analysis-results .missing-icon { color: var(--result-purple); line-height: 1; text-align: center; }
#demo:not(.is-replay) #analysis-results .missing-icon svg { width: 21px; height: 21px; }
#demo:not(.is-replay) #analysis-results .missing-row strong { font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
#demo:not(.is-replay) #analysis-results .missing-row > span:last-child { color: var(--result-muted); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
#demo:not(.is-replay) #analysis-results .missing-empty { margin: 10px 0 0; color: var(--result-muted); font-size: 13px; }
#demo:not(.is-replay) #analysis-results .result-next-action { display: grid; grid-template-columns: 145px minmax(0,1fr); gap: 18px; align-items: baseline; margin-top: 0; padding: 18px 0; border-bottom: 1px solid var(--result-line); color: var(--result-muted); font-size: 15px; line-height: 1.7; }
#demo:not(.is-replay) #analysis-results .result-next-action .meta { color: var(--result-amber); font-weight: 650; }
#demo:not(.is-replay) #analysis-results .result-next-action strong { font-size: 15px; font-weight: 500; }
#demo:not(.is-replay) #analysis-results .summary-facts { flex-wrap: wrap; gap: 10px 24px; margin-top: 0; padding-top: 16px; color: var(--result-muted); }
#demo:not(.is-replay) #analysis-results .summary-facts span + span { padding-left: 24px; border-left: 1px solid var(--result-line); }
#demo:not(.is-replay) #analysis-results .summary-facts b { color: var(--result-ink); font-weight: 600; }

#demo:not(.is-replay) #analysis-results .result-grid { grid-template-columns: minmax(0,.88fr) minmax(0,1.28fr); gap: 36px; align-items: start; margin-top: 32px; }
#demo:not(.is-replay) #analysis-results .result-support { grid-column: 1; grid-row: 1; min-width: 0; }
#demo:not(.is-replay) #analysis-results .reply-card { grid-column: 2; grid-row: 1; min-width: 0; padding-left: 1px; border-left: 0; }
#demo:not(.is-replay) #analysis-results .result-support > details { padding: 23px 22px 20px; margin: 0 0 20px; background: #fbf8ef; border: 1px solid #dfc18d; border-top: 2px solid var(--result-purple); border-radius: 6px; }
#demo:not(.is-replay) #analysis-results .result-support > details + details { border-color: var(--result-line); border-top: 1px solid var(--result-line); background: transparent; padding: 17px 22px 21px; }
#demo:not(.is-replay) #analysis-results .result-support > details > summary { color: var(--result-ink); font-size: 18px; font-weight: 650; }
#demo:not(.is-replay) #analysis-results .result-support > details > summary .meta { display: block; padding-left: 18px; color: var(--result-muted); font-size: 12px; font-weight: 400; }
#demo:not(.is-replay) #analysis-results .result-support details[open] > summary { margin-bottom: 18px; }
#demo:not(.is-replay) #analysis-results .guardrail-card, #demo:not(.is-replay) #analysis-results .sufficiency-card { padding: 0; border: 0; background: transparent; }
#demo:not(.is-replay) #analysis-results .guardrail-card .panel-heading, #demo:not(.is-replay) #analysis-results .sufficiency-card .panel-heading { display: none; }
#demo:not(.is-replay) #analysis-results .gate-flow { gap: 0; margin: 0 0 15px; padding-left: 13px; border-left-color: #cbc6e2; }
#demo:not(.is-replay) #analysis-results .gate-flow > div { padding: 9px 0; }
#demo:not(.is-replay) #analysis-results .gate-flow strong { font-size: 13px; }
#demo:not(.is-replay) #analysis-results .gate-flow .meta { font-size: 11px; }
#demo:not(.is-replay) #analysis-results .check-item { min-height: 43px; align-items: center; padding: 10px 0; border-color: #e6dece; }
#demo:not(.is-replay) #analysis-results .check-item span:first-child { font-size: 13px; }
#demo:not(.is-replay) #analysis-results .check-item .ok { color: #28754a; font-weight: 600; }
#demo:not(.is-replay) #analysis-results .check-item .warn { color: var(--result-amber); font-weight: 600; }
#demo:not(.is-replay) #analysis-results .admission-note { margin-top: 15px; color: var(--result-muted); font-size: 11px; line-height: 1.75; }
#demo:not(.is-replay) #analysis-results .sufficiency-card .check-item { border-color: var(--result-line); }
#demo:not(.is-replay) #analysis-results .reply-card .panel-heading { align-items: start; margin-bottom: 16px; }
#demo:not(.is-replay) #analysis-results .reply-card .panel-heading h2 { font-size: 22px; }
#demo:not(.is-replay) #analysis-results .replay-reply-tabs { display: flex; align-items: center; gap: 3px; min-height: 45px; padding: 0 15px; border: 1px solid #d4d2d8; border-bottom: 0; border-radius: 5px 5px 0 0; background: #fbfafc; }
#demo:not(.is-replay) #analysis-results .replay-reply-tabs button { padding: 13px 12px 10px; color: var(--result-muted); border-bottom: 2px solid transparent; font-size: 13px; }
#demo:not(.is-replay) #analysis-results .replay-reply-tabs button.active { color: var(--result-purple); border-bottom-color: var(--result-purple); font-weight: 650; }
#demo:not(.is-replay) #analysis-results .replay-reply-tabs .reply-copy-inline { margin-left: auto; color: var(--result-purple); border: 0; }
#demo:not(.is-replay) #analysis-results .reply-preview, #demo:not(.is-replay) #analysis-results #reply-text { width: 100%; min-height: 330px; max-height: 560px; margin: 0; padding: 22px 25px; overflow: auto; border: 1px solid #d4d2d8; border-radius: 0 0 5px 5px; background: #fff; color: var(--result-ink); font: inherit; font-size: 14px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
#demo:not(.is-replay) #analysis-results #reply-text { resize: vertical; }
#demo:not(.is-replay) #analysis-results .replay-reply-supplement { margin-top: 12px; color: var(--result-muted); font-size: 12px; }
#demo:not(.is-replay) #analysis-results .reply-actions { margin-top: 20px; }
#demo:not(.is-replay) #analysis-results .reply-actions .btn.primary { background: var(--result-purple); border-color: var(--result-purple); }
#demo:not(.is-replay) #analysis-results .reply-actions .btn.primary:hover { background: #4c4776; border-color: #4c4776; }
#demo:not(.is-replay) #analysis-results .reply-card > .note { margin-top: 9px; color: var(--result-muted); font-size: 11px; }

#demo:not(.is-replay) #analysis-results .evidence-card { grid-column: 1 / -1; min-width: 0; padding-top: 31px; border-top-color: var(--result-line); }
#demo:not(.is-replay) #analysis-results .evidence-card .panel-heading { align-items: start; }
#demo:not(.is-replay) #analysis-results .evidence-card .panel-heading h2 { font-size: 22px; }
#demo:not(.is-replay) #analysis-results .evidence-tabs { gap: 2px; margin-top: 19px; padding-bottom: 0; border-color: var(--result-line); }
#demo:not(.is-replay) #analysis-results .ev-tab { padding: 11px 15px 10px; border-radius: 0; border-bottom: 2px solid transparent; }
#demo:not(.is-replay) #analysis-results .ev-tab:first-child { padding-left: 0; }
#demo:not(.is-replay) #analysis-results .ev-tab.active { color: var(--result-purple); background: transparent; border-bottom-color: var(--result-purple); font-weight: 650; }
#demo:not(.is-replay) #analysis-results .replay-evidence-toolbar { display: block; }
#demo:not(.is-replay) #analysis-results .replay-evidence-search { display: flex; align-items: center; gap: 9px; margin-top: 21px; min-height: 42px; padding: 0 12px; border: 1px solid #cfcdd4; border-radius: 5px; background: #fff; }
#demo:not(.is-replay) #analysis-results .replay-evidence-search input { width: 100%; height: 40px; border: 0; outline: 0; background: transparent; color: var(--result-ink); font-size: 13px; }
#demo:not(.is-replay) #analysis-results #evidence-panel { max-height: none; margin-top: 21px; overflow: visible; border-top: 1px solid var(--result-line); }
#demo:not(.is-replay) #analysis-results .ev-item { grid-template-columns: 150px minmax(0,1fr); padding: 20px 0; border-color: var(--result-line); }
#demo:not(.is-replay) #analysis-results .ev-title { margin: 4px 0 3px; font-size: 16px; line-height: 1.55; font-weight: 650; }
#demo:not(.is-replay) #analysis-results .ev-source, #demo:not(.is-replay) #analysis-results .evidence-why { color: var(--result-muted); }
#demo:not(.is-replay) #analysis-results .ev-source a { color: var(--result-purple); }
#demo:not(.is-replay) #analysis-results .evidence-detail summary { color: var(--result-purple); }
#demo:not(.is-replay) #analysis-results .ev-full { max-height: 360px; color: var(--result-ink); background: #f7f6fb; border-left: 3px solid var(--result-purple); }

#demo:not(.is-replay) #analysis-results .run-details { grid-column: 1 / -1; padding-top: 20px; border-top-color: var(--result-line); }
#demo:not(.is-replay) #analysis-results .run-details > summary { padding: 0 0 20px; color: var(--result-ink); font-size: 21px; font-weight: 650; }
#demo:not(.is-replay) #analysis-results .run-details > summary .meta { color: var(--result-muted); font-size: 13px; font-weight: 400; }
#demo:not(.is-replay) #analysis-results .run-detail-layout { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 36px; padding-bottom: 26px; }
#demo:not(.is-replay) #analysis-results .run-card { padding-right: 28px; border-right: 1px solid var(--result-line); }
#demo:not(.is-replay) #analysis-results .run-card .panel-heading h2 { font-size: 21px; }
#demo:not(.is-replay) #analysis-results .tl-item { position: relative; min-height: 78px; padding: 0 0 20px; border-color: var(--result-line); }
#demo:not(.is-replay) #analysis-results .tl-number { color: var(--result-muted); }
#demo:not(.is-replay) #analysis-results .tl-title { font-size: 15px; font-weight: 650; }
#demo:not(.is-replay) #analysis-results .tl-detail { color: var(--result-muted); line-height: 1.65; }
#demo:not(.is-replay) #analysis-results .tl-item.waiting { margin: 0 -14px; padding: 9px 14px 20px; border-radius: 5px; background: #fbf8ef; }
#demo:not(.is-replay) #analysis-results .detail-grid { border-top: 1px solid var(--result-line); }
#demo:not(.is-replay) #analysis-results .detail-grid dt, #demo:not(.is-replay) #analysis-results .detail-grid dd { min-height: 43px; border-color: var(--result-line); }
#demo:not(.is-replay) #analysis-results .detail-grid dd { color: var(--result-ink); }

@media (max-width: 900px) {
  #demo:not(.is-replay) #analysis-results .result-grid { display: flex; flex-direction: column; gap: 25px; }
  #demo:not(.is-replay) #analysis-results .result-support { order: 0; width: 100%; }
  #demo:not(.is-replay) #analysis-results .reply-card { order: 1; width: 100%; padding-top: 24px; border-top: 1px solid var(--result-line); }
  #demo:not(.is-replay) #analysis-results .evidence-card { order: 2; width: 100%; }
  #demo:not(.is-replay) #analysis-results .run-details { order: 3; width: 100%; }
  #demo:not(.is-replay) #analysis-results .run-detail-layout { grid-template-columns: 1fr; gap: 30px; }
  #demo:not(.is-replay) #analysis-results .run-card { padding: 0 0 24px; border-right: 0; border-bottom: 1px solid var(--result-line); }
}
@media (max-width: 620px) {
  #demo:not(.is-replay) #analysis-results .result-summary { padding: 22px 20px 15px; }
  #demo:not(.is-replay) #analysis-results .summary-top { display: flex; flex-direction: column; gap: 4px; }
  #demo:not(.is-replay) #analysis-results .summary-main { display: block; }
  #demo:not(.is-replay) #analysis-results .result-route { font-size: 22px; }
  #demo:not(.is-replay) #analysis-results .admission { display: inline-flex; margin-top: 12px; }
  #demo:not(.is-replay) #analysis-results .result-explanation { grid-template-columns: 1fr; gap: 18px; }
  #demo:not(.is-replay) #analysis-results .result-explanation > div, #demo:not(.is-replay) #analysis-results .result-explanation > div + div { padding: 0; border-left: 0; }
  #demo:not(.is-replay) #analysis-results .result-explanation > div + div { padding-top: 18px; border-top: 1px solid var(--result-line); }
  #demo:not(.is-replay) #analysis-results .missing-row { grid-template-columns: 28px 1fr; gap: 8px; align-items: start; }
  #demo:not(.is-replay) #analysis-results .missing-row > span:last-child { grid-column: 2; }
  #demo:not(.is-replay) #analysis-results .result-next-action { grid-template-columns: 1fr; gap: 4px; }
  #demo:not(.is-replay) #analysis-results .summary-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 14px; }
  #demo:not(.is-replay) #analysis-results .summary-facts span + span { padding-left: 0; border-left: 0; }
  #demo:not(.is-replay) #analysis-results .result-support > details { padding: 19px 16px; }
  #demo:not(.is-replay) #analysis-results .evidence-card .panel-heading { display: block; }
  #demo:not(.is-replay) #analysis-results .evidence-card #evidence-count { display: block; margin-top: 8px; }
  #demo:not(.is-replay) #analysis-results .ev-item { display: block; padding: 17px 0; }
  #demo:not(.is-replay) #analysis-results .ev-head { margin-bottom: 7px; }
  #demo:not(.is-replay) #analysis-results .ev-excerpt { max-width: 65%; }
  #demo:not(.is-replay) #analysis-results .run-details > summary { font-size: 18px; }
  #demo:not(.is-replay) #analysis-results .detail-grid { grid-template-columns: 95px 1fr; }
}
@media (max-width: 600px) {
  #about .about-design-principles h3 { font-size: 22px; }
  #about .about-design-principles p { font-size: 15px; }
  #about .about-boundary-copy h2 { font-size: 41px; }
  #about .about-next h2 { font-size: 37px; }
  #about .about-closing p { font-size: 24px; }
}

@media (max-width: 900px) {
  #about .about-template-hero { grid-template-columns: minmax(0, 1fr); }
  #about .decision-workbench { width: 100%; min-width: 0; }
  #about .workbench-window, #about .workbench-backdrop { max-width: 100%; }
}

@media (min-width: 1281px) {
  #about .about-positioning-rail,
  #about .about-flow,
  #about .about-boundary { margin-inline: -56px; padding-inline: 56px; }
}
@media (max-width: 1280px) and (min-width: 901px) {
  #about .about-positioning-rail,
  #about .about-flow,
  #about .about-boundary { margin-inline: -48px; padding-inline: 48px; }
}

/* Result overview artwork and typography: match the supplied reference assets. */
#demo:not(.is-replay) #analysis-results .summary-top,
#demo:not(.is-replay) #analysis-results .summary-top .meta,
#demo:not(.is-replay) #analysis-results .summary-top .eyebrow { font-size: 18px; line-height: 1.45; letter-spacing: 0; }
#demo:not(.is-replay) #analysis-results .result-route { font-size: clamp(30px, 2.7vw, 40px); line-height: 1.28; font-weight: 750; letter-spacing: -.02em; }
#demo:not(.is-replay) #analysis-results .result-headline { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 24px; }
#demo:not(.is-replay) #analysis-results .route-chip { display: inline-flex; align-items: center; padding: 8px 15px; border-radius: 9px; color: var(--result-amber); background: #faf2e6; font-size: 18px; line-height: 1.4; font-weight: 700; white-space: nowrap; }
#demo:not(.is-replay) #analysis-results .result-issue-reference { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 21px; line-height: 1.45; }
#demo:not(.is-replay) #analysis-results .result-issue-reference a { font-weight: 500; }
#demo:not(.is-replay) #analysis-results .result-art { display: inline-block; flex: 0 0 auto; width: 34px; height: 34px; object-fit: contain; vertical-align: middle; }
#demo:not(.is-replay) #analysis-results .result-art-github { width: 36px; height: 36px; margin-right: 1px; }
#demo:not(.is-replay) #analysis-results .admission { padding: 9px 16px; border-radius: 9px; font-size: 18px; line-height: 1.4; font-weight: 700; }
#demo:not(.is-replay) #analysis-results .final-admission { color: var(--result-amber); background: transparent; border-color: #cfc7b8; border-radius: 5px; font-weight: 500; }
#demo:not(.is-replay) #analysis-results .final-admission.approved { color: #296846; border-color: #9fbea7; background: transparent; }
#demo:not(.is-replay) #analysis-results .result-explanation { margin-top: 34px; padding: 29px 0; }
#demo:not(.is-replay) #analysis-results .result-explanation .meta { font-size: 22px; line-height: 1.4; color: var(--result-ink); font-weight: 700; }
#demo:not(.is-replay) #analysis-results .result-explanation p { margin-top: 12px; font-size: 20px; line-height: 1.75; }
#demo:not(.is-replay) #analysis-results .missing-info { padding-top: 30px; }
#demo:not(.is-replay) #analysis-results .missing-heading .meta { font-size: 22px; color: var(--result-ink); font-weight: 700; }
#demo:not(.is-replay) #analysis-results .missing-heading b { font-size: 18px; }
#demo:not(.is-replay) #analysis-results .missing-list { margin-top: 14px; }
#demo:not(.is-replay) #analysis-results .missing-row { grid-template-columns: 54px minmax(190px, 260px) minmax(0,1fr); gap: 18px; min-height: 86px; padding: 15px 0; }
#demo:not(.is-replay) #analysis-results .missing-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; }
#demo:not(.is-replay) #analysis-results .missing-icon .result-art { width: 48px; height: 48px; }
#demo:not(.is-replay) #analysis-results .missing-row strong { font-size: 22px; line-height: 1.45; font-weight: 750; }
#demo:not(.is-replay) #analysis-results .missing-row > span:last-child { font-size: 19px; line-height: 1.65; }
#demo:not(.is-replay) #analysis-results .result-next-action { grid-template-columns: 165px minmax(0,1fr); gap: 22px; padding: 22px 0; font-size: 19px; }
#demo:not(.is-replay) #analysis-results .result-next-action .meta { display: flex; align-items: center; gap: 10px; color: var(--result-amber); font-size: 21px; font-weight: 750; }
#demo:not(.is-replay) #analysis-results .next-arrow { font-size: 34px; line-height: .7; font-weight: 400; }
#demo:not(.is-replay) #analysis-results .result-next-action strong { font-size: 19px; line-height: 1.65; font-weight: 500; }
#demo:not(.is-replay) #analysis-results .summary-facts { gap: 12px 28px; padding-top: 19px; font-size: 17px; }
#demo:not(.is-replay) #analysis-results .summary-facts b { font-size: 19px; font-weight: 700; }

@media (max-width: 620px) {
  #demo:not(.is-replay) #analysis-results .summary-top,
  #demo:not(.is-replay) #analysis-results .summary-top .meta,
  #demo:not(.is-replay) #analysis-results .summary-top .eyebrow { font-size: 15px; }
  #demo:not(.is-replay) #analysis-results .result-route { font-size: 28px; }
  #demo:not(.is-replay) #analysis-results .result-headline { gap: 8px 12px; }
  #demo:not(.is-replay) #analysis-results .route-chip { padding: 6px 10px; font-size: 15px; }
  #demo:not(.is-replay) #analysis-results .result-issue-reference { font-size: 16px; }
  #demo:not(.is-replay) #analysis-results .result-art-github { width: 30px; height: 30px; }
  #demo:not(.is-replay) #analysis-results .admission { font-size: 16px; }
  #demo:not(.is-replay) #analysis-results .result-explanation .meta,
  #demo:not(.is-replay) #analysis-results .missing-heading .meta { font-size: 19px; }
  #demo:not(.is-replay) #analysis-results .result-explanation p { font-size: 16px; }
  #demo:not(.is-replay) #analysis-results .missing-row { grid-template-columns: 42px 1fr; gap: 10px; min-height: 76px; }
  #demo:not(.is-replay) #analysis-results .missing-icon,
  #demo:not(.is-replay) #analysis-results .missing-icon .result-art { width: 38px; height: 38px; }
  #demo:not(.is-replay) #analysis-results .missing-row strong { font-size: 18px; }
  #demo:not(.is-replay) #analysis-results .missing-row > span:last-child { font-size: 15px; }
  #demo:not(.is-replay) #analysis-results .result-next-action { grid-template-columns: 1fr; gap: 7px; }
  #demo:not(.is-replay) #analysis-results .result-next-action .meta { font-size: 19px; }
  #demo:not(.is-replay) #analysis-results .result-next-action strong { font-size: 16px; }
  #demo:not(.is-replay) #analysis-results .summary-facts { font-size: 14px; }
  #demo:not(.is-replay) #analysis-results .summary-facts b { font-size: 16px; }
}

/* Keep the live gate/reply layout above the legacy result-area rules. */
#demo:not(.is-replay) #analysis-results.ig-gate-reply .result-grid { display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); gap: 28px; align-items: start; margin-top: 28px; }
#demo:not(.is-replay) #analysis-results.ig-gate-reply .ig-gr-gate { display: block; grid-column: 1; grid-row: 1; border-top: 2px solid #5e5988; padding-top: 16px; }
#demo:not(.is-replay) #analysis-results.ig-gate-reply .ig-gr-reply { grid-column: 2; grid-row: 1; padding: 0 0 0 28px; border: 0; border-left: 1px solid #deddd7; }
#demo:not(.is-replay) #analysis-results.ig-gate-reply .ig-gr-gate > details { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
#demo:not(.is-replay) #analysis-results.ig-gate-reply .ig-gr-panel { margin: 0; padding: 20px; border: 1px solid #d6b78d; border-radius: 6px; background: #fbf8f1; }
#demo:not(.is-replay) #analysis-results.ig-gate-reply .ig-gr-panel .panel-heading { display: flex; }
#demo:not(.is-replay) #analysis-results.ig-gate-reply .ig-gr-gate > details + details { margin-top: 28px; padding: 16px 0 0; border-top: 1px solid #deddd7; }
#demo:not(.is-replay) #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 0; }
#demo:not(.is-replay) #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-heading { margin: 0; font-size: 22px; line-height: 1.4; font-weight: 650; }
#demo:not(.is-replay) #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-editor { overflow: hidden; margin-top: 24px; border: 1px solid #deddd7; border-radius: 4px; background: #fff; }
#demo:not(.is-replay) #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-toolbar { display: flex; align-items: stretch; gap: 12px; min-height: 44px; margin: 0; padding: 0 16px; border: 0; border-bottom: 1px solid #deddd7; border-radius: 0; background: #fff; }
#demo:not(.is-replay) #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-preview { display: block; min-height: 0; max-height: 640px; padding: 24px; border: 0; overflow-y: auto; white-space: normal; }
#demo:not(.is-replay) #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-draft { min-height: 260px; max-height: 640px; padding: 24px; border: 0; background: #fff; color: #292b36; }
#demo:not(.is-replay) #analysis-results.ig-gate-reply #result-panel .missing-result-art { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

@container ig-gate-reply (min-width: 760px) and (max-width: 999px) {
  #demo:not(.is-replay) #analysis-results.ig-gate-reply .result-grid { display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); gap: 20px; }
  #demo:not(.is-replay) #analysis-results.ig-gate-reply .ig-gr-reply { padding-left: 20px; }
  #demo:not(.is-replay) #analysis-results.ig-gate-reply .ig-gr-panel { padding: 16px; }
}
@container ig-gate-reply (max-width: 759px) {
  #demo:not(.is-replay) #analysis-results.ig-gate-reply .result-grid { display: flex; flex-direction: column; gap: 24px; }
  #demo:not(.is-replay) #analysis-results.ig-gate-reply .ig-gr-gate,
  #demo:not(.is-replay) #analysis-results.ig-gate-reply .ig-gr-reply,
  #demo:not(.is-replay) #analysis-results.ig-gate-reply .evidence-card,
  #demo:not(.is-replay) #analysis-results.ig-gate-reply .run-details { order: initial; width: 100%; }
  #demo:not(.is-replay) #analysis-results.ig-gate-reply .ig-gr-gate { order: 0; }
  #demo:not(.is-replay) #analysis-results.ig-gate-reply .ig-gr-reply { order: 1; padding: 24px 0 0; border-top: 1px solid #deddd7; border-left: 0; }
  #demo:not(.is-replay) #analysis-results.ig-gate-reply .ig-gr-panel { padding: 16px; }
  #demo:not(.is-replay) #analysis-results.ig-gate-reply .ig-gr-heading,
  #demo:not(.is-replay) #analysis-results.ig-gate-reply .ig-gr-gate > details > summary { font-size: 20px; }
  #demo:not(.is-replay) #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-preview,
  #demo:not(.is-replay) #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-draft { min-height: 260px; padding: 16px; }
  #demo:not(.is-replay) #analysis-results.ig-gate-reply .ig-gr-button { flex: 1 1 auto; }
}

#demo:not(.is-replay) #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-editor { display: block; min-height: 0; padding: 0; }
#demo:not(.is-replay) #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-toolbar { display: flex; align-items: stretch; gap: 12px; min-height: 44px; margin: 0; padding: 0 16px; border: 0; border-bottom: 1px solid #deddd7; border-radius: 0; background: #fff; }
#demo:not(.is-replay) #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-tab { padding: 10px 4px 8px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #6d7180; font: inherit; font-size: 14px; font-weight: 600; }
#demo:not(.is-replay) #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-tab.active { border-bottom-color: #5e5988; color: #5e5988; }
#demo:not(.is-replay) #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-preview,
#demo:not(.is-replay) #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-draft { border: 0; border-radius: 0; background: #fff; color: #292b36; }
#demo:not(.is-replay) #analysis-results.ig-gate-reply .ig-gr-reply .ig-gr-icon--external-link > img { position: absolute; top: 50%; left: 50%; transform: translate(calc(-50% + var(--optical-x)), calc(-50% + var(--optical-y))) scale(var(--icon-scale)); }
/* Keep GitHub target-validation errors in a focused, explicit confirmation dialog. */
.issue-validation-dialog {
  box-sizing: border-box;
  width: min(420px, calc(100vw - 32px));
  max-width: none;
  max-height: min(80dvh, 480px);
  margin: auto;
  padding: 24px;
  overflow: auto;
  border: 1px solid #d6d3ca;
  border-radius: 8px;
  color: #292b36;
  background: #fffdf9;
  box-shadow: 0 22px 64px rgba(17, 19, 28, .24);
}
.issue-validation-dialog::backdrop {
  background: rgba(27, 28, 36, .58);
  backdrop-filter: blur(2px);
}
.issue-validation-dialog[open] {
  animation: issue-validation-dialog-enter 150ms ease-out both;
}
.issue-validation-dialog__heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.issue-validation-dialog__icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 1px solid #dfcbb1;
  border-radius: 50%;
  color: #8c6640;
  background: #fbf3e8;
}
.issue-validation-dialog__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}
.issue-validation-dialog__heading h2 {
  margin: 0;
  color: #292b36;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -.01em;
}
.issue-validation-dialog__message {
  margin: 16px 0 22px;
  color: #51535e;
  font-size: 15px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.issue-validation-dialog__actions {
  display: flex;
  justify-content: flex-end;
}
.issue-validation-dialog__confirm {
  min-width: 112px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid #5b5c88;
  border-radius: 6px;
  color: #fffdf9;
  background: #5b5c88;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 140ms ease, box-shadow 140ms ease;
}
.issue-validation-dialog__confirm:hover {
  background: #4c4d76;
}
.issue-validation-dialog__confirm:focus-visible {
  outline: 3px solid rgba(91, 92, 136, .38);
  outline-offset: 3px;
}
.issue-validation-dialog__confirm:active {
  background: #414267;
}
@keyframes issue-validation-dialog-enter {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .issue-validation-dialog[open] { animation: none; }
  .issue-validation-dialog__confirm { transition: none; }
}
