/* Invert the complete monochrome composition, including canvas and top-layer dialogs. */
html{height:100%;filter:grayscale(1)}
html[data-theme="light"]{filter:grayscale(1) invert(1);color-scheme:light}
.stage-theme{position:absolute;right:32px;top:24px;background:#090b0e;z-index:2}
.graph-tools{display:flex;gap:16px;padding:10px 22px 18px;border-bottom:1px solid var(--line)}
.graph-tools label{display:flex;flex-direction:column;gap:7px;color:#9ba5b2;min-width:0;flex:1}
.graph-tools input,.graph-tools select{height:36px;width:100%;padding:0 10px;min-width:0}
.graph-library{padding:16px 22px;border-top:1px solid var(--line)}
.graph-library summary{cursor:pointer;color:#adb8c8}
#graph-knowledge-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}
.graph-knowledge-item{display:flex;flex-direction:column;gap:7px;text-align:left;min-width:0;padding:14px;border:1px solid #ffffff16;border-radius:5px;background:#ffffff03}
.graph-knowledge-item:hover{background:#ffffff09}
.graph-knowledge-item strong{font-weight:400;font-size:12px;overflow-wrap:anywhere}
.graph-knowledge-item span,.graph-knowledge-item small{color:#98a5b6;overflow-wrap:anywhere;font-size:10px}
.graph-evidence article{padding:16px 0;border-top:1px solid #ffffff15}
.graph-evidence blockquote{margin:10px 0;padding:10px 14px;border-left:2px solid #c7ced8;background:#ffffff04;white-space:pre-wrap;overflow-wrap:anywhere}
.graph-evidence strong{font-weight:500;font-size:12px}
.standard-intro,.standard-editor,.standard-list-panel,.standard-inspection{padding:22px;margin-bottom:18px}
.standard-intro h2,.standard-editor h2,.standard-list-panel h2,.standard-inspection h2{font-size:14px;font-weight:500;margin:0 0 14px}
.standard-intro p{color:#99a6b7;line-height:1.8}
.standard-columns{display:grid;grid-template-columns:minmax(300px,.9fr) minmax(0,1.4fr);gap:18px}
.standard-editor .form-field{margin:16px 0}
.standard-editor textarea{width:100%;resize:vertical}
.standard-formats{display:flex;gap:12px;flex-wrap:wrap;border:1px solid #ffffff16;padding:14px;margin:18px 0}
.standard-formats label,.standard-enable{display:flex;align-items:center;gap:7px;font-size:12px}
.standard-formats input,.standard-enable input{accent-color:#aeb9c8}
.standard-list-panel article,.standard-inspection article{border-top:1px solid #ffffff15;padding:18px 0;overflow-wrap:anywhere}
.standard-list-panel article>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px}
.standard-list-panel p,.standard-inspection p{color:#a4afbf;line-height:1.7}
.standard-list-panel small{color:#8b99ad;font-size:11px}
@media(max-width:960px){.standard-columns{grid-template-columns:1fr}}
@media(max-width:700px){.stage-theme{right:20px;top:18px}.graph-tools{padding:10px 15px 15px;flex-direction:column;gap:10px}.graph-library{padding:15px}#graph-knowledge-list{grid-template-columns:1fr}.top-actions{gap:4px}.top-actions .theme-toggle{padding-inline:7px;font-size:10px!important}.ingest-top-actions{gap:5px}.theme-toggle{font-size:11px}}

.deck-volume-card .deck-volume{height:calc(100% - 32px)}
.deck-health button{font:inherit;color:inherit;padding:0;line-height:1.3}
.region-map{position:absolute;inset:0;pointer-events:none;z-index:1}
.region-name{position:absolute;top:112px;font-size:10px;line-height:1.6;letter-spacing:.02em;color:#adb5c0;text-shadow:0 1px 5px #000;max-width:26%;font-weight:400}
.region-name small{display:block;margin-top:4px;font:inherit;color:#858f9d}
.region-source{left:32px}.region-ring{left:35%}.region-output{left:64%}
.region-display{top:6px;right:32px;max-width:none}
.region-toggle{position:absolute;right:133px;top:24px;z-index:3;background:#090b0e;font-size:11px}
.ingest-dialog .region-toggle{right:32px;top:82px}
[data-region-code="A04"]::after,[data-region-code="A05"]::before,[data-region-code="A06"]::before{font:10px/1.4 var(--font-ui);color:#98a3b3;letter-spacing:0;white-space:nowrap;text-shadow:0 1px 5px #000;pointer-events:none}
.stage-controls::after{content:'A04 · 运行控制区';position:absolute;left:0;top:calc(100% + 5px)}
.ingest-top-actions{position:relative}.ingest-top-actions::after{content:'A04 · 运行控制区';position:absolute;right:0;top:calc(100% + 5px)}
.region-monitor{top:auto;left:16px;bottom:calc(var(--deck-height) + 22px);max-width:none}
.stage-status::before{content:'A06 · 任务状态区';margin-right:12px}
.ingest-file::before{content:'A06 · 任务状态区';position:absolute;right:0;top:-20px}
.deck-card:nth-child(1) h3::before{content:'A05-1 · '}.deck-card:nth-child(2) h3::before{content:'A05-2 · '}.deck-card:nth-child(3) h3::before{content:'A05-3 · '}
.deck-card h3::before{font-size:9px;color:#98a3b3}
html[data-region-labels="hidden"] .region-map{display:none}
html[data-region-labels="hidden"] [data-region-code]::before,html[data-region-labels="hidden"] [data-region-code]::after,html[data-region-labels="hidden"] .deck-card h3::before{content:none}
.region-reference{margin-top:22px}.region-reference-table{overflow:auto}.region-reference-table td{white-space:normal!important;min-width:90px}.region-reference-table td:last-child{min-width:250px}
@media(max-width:700px){.region-name{top:112px;font-size:9px;max-width:27%;line-height:1.5}.region-source{left:20px}.region-ring{left:37%}.region-output{left:72%}.region-display{top:3px;right:20px;max-width:none}.region-toggle{top:18px;right:112px;padding:9px 10px;font-size:10px}.ingest-dialog .region-toggle{top:84px;right:20px}.region-name small{font-size:8px}.ingest-top-actions::after{font-size:8px}.stage-status::before{display:block;margin:0 0 4px}.stage-controls::after{font-size:9px}.ingest-file::before{font-size:9px}}

@media(max-width:700px){.region-monitor{top:auto;left:12px;bottom:calc(var(--deck-height) + 18px)}.ingest-dialog .region-name:not(.region-display):not(.region-monitor){top:138px}}

.standard-natural,.standard-candidates{padding:22px;margin-bottom:18px}
.standard-natural h2,.standard-candidates h2{font-size:14px;font-weight:500;margin:0 0 14px}
.standard-natural p,.standard-candidates p{font-size:12px;line-height:1.8;color:#a4afbf}
.standard-natural textarea{width:100%;resize:vertical}.standard-natural .form-field{margin:16px 0}
.standard-candidate{border-top:1px solid #ffffff15;padding:18px 0;overflow-wrap:anywhere}
.standard-candidate>div:first-child{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.standard-candidate strong{font-size:12px;font-weight:500;min-width:0}
.standard-candidate .tag{white-space:nowrap}
.standard-candidates details{margin:12px 0;color:#a4afbf;font-size:12px}
.standard-quote,#standard-editor-source{white-space:pre-wrap;overflow-wrap:anywhere}
.standard-workflow{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0;color:#bdc7d4;font-size:11px}
.standard-workflow span+span::before{content:'→';margin-right:10px;color:#7c899b}
@media(max-width:700px){.standard-natural,.standard-candidates{padding:18px}.standard-candidate>div:first-child{flex-direction:column;gap:8px}}
