:root {
  --bg: #101c1d;
  --panel: #172526;
  --panel-2: #1d2d2d;
  --line: rgba(225, 211, 182, .13);
  --line-strong: rgba(225, 211, 182, .24);
  --text: #eee4d1;
  --muted: #9caa9e;
  --dim: #71847a;
  --mint: #82c5a5;
  --mint-deep: #4d9b7d;
  --gold: #d3ad76;
  --rust: #c37b55;
  --red: #d47c68;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --sans: Inter, 'Segoe UI', Arial, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: var(--sans); }
body { overflow: hidden; }
button, input, select { font: inherit; }
button { color: inherit; }
.app-frame { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(ellipse at 48% 30%, rgba(85, 115, 91, .12), transparent 55%), var(--bg); }
.topbar { height: 76px; flex: 0 0 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 27px; border-bottom: 1px solid var(--line); background: rgba(13, 24, 25, .88); z-index: 5; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); min-width: 250px; }
.brand-mark { width: 34px; height: 34px; border: 1px solid rgba(211,173,118,.75); border-radius: 50%; display: flex; align-items: center; justify-content: center; gap: 3px; transform: rotate(-22deg); }
.brand-mark span { display: block; width: 3px; border-radius: 4px; background: var(--gold); }
.brand-mark span:nth-child(1) { height: 10px; }.brand-mark span:nth-child(2) { height: 19px; }.brand-mark span:nth-child(3) { height: 13px; }
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-copy strong { font-family: var(--serif); font-size: 18px; letter-spacing: .08em; font-weight: 600; }.brand-copy strong i { color: var(--gold); font-style: normal; }
.brand-copy small { font: 9px var(--mono); letter-spacing: .16em; color: var(--muted); }
.top-context { display: flex; align-items: center; gap: 10px; color: #b5c0b2; font: 10px var(--mono); letter-spacing: .12em; }
.context-dot, .live-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(130,197,165,.1); }
.context-divider { width: 1px; height: 15px; background: var(--line-strong); margin: 0 6px; }
.top-actions { display: flex; align-items: center; gap: 22px; min-width: 250px; justify-content: flex-end; }
.engine-status { font: 9px var(--mono); letter-spacing: .1em; color: var(--gold); padding: 7px 9px; border: 1px solid rgba(211,173,118,.28); border-radius: 3px; }
.engine-status.online { color: var(--mint); border-color: rgba(130,197,165,.32); }.engine-status.fallback { color: var(--gold); }
.top-link { color: var(--muted); font: 10px var(--mono); letter-spacing: .1em; text-decoration: none; }.top-link span { color: var(--gold); font-size: 14px; }
.workspace { display: grid; grid-template-columns: 285px minmax(450px, 1fr) 302px; gap: 14px; padding: 14px; height: calc(100vh - 106px); min-height: 590px; max-height: 1100px; }
.side-panel { background: linear-gradient(155deg, rgba(29,45,45,.98), rgba(20,34,35,.98)); border: 1px solid var(--line); border-radius: 7px; padding: 19px 18px 16px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #49635a transparent; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.eyebrow { display: block; color: var(--mint); font: 9px var(--mono); letter-spacing: .13em; line-height: 1.5; }
h1, h2, p { margin-top: 0; }
.panel-heading h1, .panel-heading h2, .stage-heading h2 { font: 600 23px/1.13 var(--serif); letter-spacing: -.02em; margin: 7px 0 0; }
.panel-index { font: 11px var(--mono); color: var(--gold); border: 1px solid rgba(211,173,118,.25); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.panel-intro { font-size: 11px; line-height: 1.55; color: var(--muted); margin: 12px 0 19px; max-width: 240px; }
.control-block { margin: 0 0 17px; }.field-label, .control-label-row label { font-size: 11px; color: #d8d9c9; font-weight: 600; }
.info-dot { display: inline-grid; place-items: center; width: 13px; height: 13px; margin-left: 4px; border-radius: 50%; color: var(--gold); border: 1px solid rgba(211,173,118,.5); font: 9px var(--mono); }
.select-control, .speed-select { appearance: none; width: 100%; margin-top: 8px; padding: 10px 30px 10px 11px; color: var(--text); background: #102021; border: 1px solid var(--line-strong); border-radius: 4px; font-size: 11px; outline: none; background-image: linear-gradient(45deg, transparent 50%, #b5c0b2 50%), linear-gradient(135deg, #b5c0b2 50%, transparent 50%); background-position: calc(100% - 15px) 14px, calc(100% - 10px) 14px; background-size: 5px 5px; background-repeat: no-repeat; }
.select-control:focus, .speed-select:focus { border-color: var(--mint); }
.select-control option, .speed-select option { background: #172526; }
.control-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }.control-label-row output { color: var(--gold); font: 10px var(--mono); }
input[type="range"] { appearance: none; width: 100%; height: 4px; border-radius: 5px; background: linear-gradient(90deg, var(--mint-deep), #344e47); outline: none; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 13px; height: 13px; border-radius: 50%; background: #e0c18d; border: 3px solid #253b35; box-shadow: 0 0 0 1px rgba(224,193,141,.65); }
input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: #e0c18d; border: 3px solid #253b35; }
.range-hints { display: flex; justify-content: space-between; margin-top: 7px; color: #71847a; font: 8px var(--mono); }
.panel-divider { height: 1px; background: var(--line); margin: 17px 0; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(225,211,182,.07); }.toggle-row strong { display: block; font-size: 11px; font-weight: 600; color: #e3dfcd; }.toggle-row small { display: block; margin-top: 3px; color: #809188; font-size: 9px; }
.switch { position: relative; display: inline-block; width: 34px; height: 19px; flex: 0 0 34px; }.switch input { opacity: 0; width: 0; height: 0; }.switch span { position: absolute; inset: 0; border-radius: 20px; background: #3a4a45; border: 1px solid rgba(225,211,182,.2); cursor: pointer; transition: .2s; }.switch span:before { content: ''; position: absolute; width: 11px; height: 11px; left: 3px; top: 3px; background: #c1c4b2; border-radius: 50%; transition: .2s; }.switch input:checked + span { background: #3e7c64; border-color: #69ae8c; }.switch input:checked + span:before { transform: translateX(15px); background: #f0e4c9; }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 11px; }.action-button { min-height: 57px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 8px 10px; background: #1c3030; border: 1px solid rgba(225,211,182,.13); border-radius: 4px; color: #c8d1c4; font-size: 9px; text-align: left; cursor: pointer; transition: .18s; }.action-button:hover { border-color: rgba(130,197,165,.55); background: #223a37; }.action-button.primary-action { border-color: rgba(211,173,118,.4); background: rgba(111,78,49,.17); }.action-icon { color: var(--gold); font: 17px var(--mono); }
.control-footnote { display: flex; gap: 8px; margin-top: 17px; padding: 10px; background: rgba(194,123,85,.08); border-left: 2px solid rgba(194,123,85,.65); color: #a9a99a; font-size: 9px; line-height: 1.5; }.footnote-mark { color: var(--gold); font: 12px var(--mono); }
.stage { min-width: 0; display: flex; flex-direction: column; gap: 10px; }.stage-heading { display: flex; justify-content: space-between; align-items: center; padding: 2px 3px 3px; }.stage-heading h2 { font-size: 22px; }.stage-date { display: flex; align-items: center; gap: 9px; color: var(--gold); font: 10px var(--mono); letter-spacing: .1em; padding: 8px 10px; border: 1px solid rgba(211,173,118,.22); background: rgba(211,173,118,.05); border-radius: 3px; }.live-pulse { width: 6px; height: 6px; }
.scene-shell { display: flex; flex-direction: column; min-height: 0; flex: 1; background: #182b2c; border: 1px solid rgba(225,211,182,.18); border-radius: 7px; overflow: hidden; box-shadow: 0 16px 45px rgba(0,0,0,.2); }.viewport { position: relative; min-height: 380px; flex: 1; overflow: hidden; background: #b98b63; }.scene-canvas { display: block; width: 100%; height: 100%; outline: none; }.viewport-topline { position: absolute; z-index: 2; left: 16px; right: 16px; top: 14px; display: flex; justify-content: space-between; pointer-events: none; color: rgba(255,245,224,.82); font: 8px var(--mono); letter-spacing: .13em; text-shadow: 0 1px 3px rgba(0,0,0,.45); }.viewport-coords { color: rgba(255,245,224,.62); }.camera-controls { position: absolute; z-index: 3; right: 15px; top: 48px; display: flex; gap: 5px; }.camera-button { width: 31px; height: 29px; border: 1px solid rgba(255,245,224,.42); border-radius: 3px; color: #fff0d2; background: rgba(25,38,36,.48); font: 9px var(--mono); cursor: pointer; backdrop-filter: blur(5px); }.camera-button.active, .camera-button:hover { background: rgba(211,173,118,.84); color: #1b2928; border-color: #e4c18a; }.scene-hint { position: absolute; z-index: 2; left: 15px; bottom: 15px; padding: 7px 9px; background: rgba(20,34,33,.58); border: 1px solid rgba(255,245,224,.2); color: rgba(255,244,221,.82); font: 8px var(--mono); letter-spacing: .09em; pointer-events: none; backdrop-filter: blur(4px); }.viewport-legend { position: absolute; z-index: 2; right: 15px; bottom: 15px; display: flex; gap: 12px; padding: 7px 9px; background: rgba(20,34,33,.55); color: rgba(255,244,221,.78); font: 7px var(--mono); letter-spacing: .08em; pointer-events: none; }.legend-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 4px; }.paper-dot { background: #ead8b2; }.brass-dot { background: #c6a06a; }
.stage-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 8px 12px; border-top: 1px solid var(--line); background: #142526; }.playback-group { display: flex; align-items: center; gap: 11px; }.run-button { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 13px; color: #172a27; background: var(--mint); border: 0; border-radius: 3px; font-size: 10px; font-weight: 700; cursor: pointer; }.run-button:hover { background: #9bd6b8; }.run-button.is-playing { background: #d6b37e; }.play-icon { font-size: 11px; }.speed-select-label { color: var(--dim); font: 8px var(--mono); }.speed-select { width: 55px; margin: 0; padding: 7px 20px 7px 8px; font: 9px var(--mono); background-position: calc(100% - 11px) 11px, calc(100% - 7px) 11px; }.reset-button { border: 0; background: transparent; color: #9ca99d; font: 9px var(--mono); letter-spacing: .08em; cursor: pointer; }.reset-button span { color: var(--gold); font-size: 15px; vertical-align: -1px; margin-right: 5px; }.reset-button:hover { color: var(--text); }
.stage-lower { display: grid; grid-template-columns: 1fr 150px; gap: 9px; }.inspection-card, .folio-card { display: flex; gap: 10px; align-items: center; min-height: 78px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 5px; background: rgba(25,42,42,.75); }.inspection-icon { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 31px; border-radius: 50%; color: var(--gold); border: 1px solid rgba(211,173,118,.35); font-size: 19px; }.inspection-card strong { display: block; margin-top: 3px; font: 600 13px var(--serif); color: var(--text); }.inspection-card p { margin: 3px 0 0; color: var(--muted); font-size: 9px; line-height: 1.4; }.folio-card { display: block; }.folio-card strong { display: block; margin: 4px 0 1px; color: var(--gold); font: 22px var(--serif); }.folio-card strong b { font-weight: 600; }.folio-card small { color: var(--muted); font-size: 8px; }
.insight-panel { padding: 19px 16px 15px; }.insight-heading { align-items: center; }.insight-heading h2 { font-size: 22px; }.status-chip { padding: 5px 7px; border-radius: 3px; font: 8px var(--mono); letter-spacing: .07em; text-transform: uppercase; }.status-chip.positive { color: var(--mint); background: rgba(130,197,165,.1); border: 1px solid rgba(130,197,165,.24); }.status-chip.warning { color: var(--gold); background: rgba(211,173,118,.1); border: 1px solid rgba(211,173,118,.24); }.status-chip.negative { color: var(--red); background: rgba(212,124,104,.1); border: 1px solid rgba(212,124,104,.24); }
.condition-score { margin-top: 18px; padding: 14px; background: linear-gradient(115deg, rgba(91,143,112,.14), rgba(211,173,118,.05)); border: 1px solid rgba(130,197,165,.16); border-radius: 4px; }.score-number { display: flex; align-items: baseline; gap: 5px; }.score-number strong { font: 600 36px/1 var(--serif); color: var(--mint); letter-spacing: -.03em; }.score-number span { color: #84958a; font: 10px var(--mono); }.score-caption { margin-top: 5px; color: #91a196; font: 8px var(--mono); letter-spacing: .13em; }.score-track, .metric-track, .objective-track { height: 4px; background: rgba(225,211,182,.12); border-radius: 5px; overflow: hidden; }.score-track { margin-top: 12px; }.score-track span { display: block; height: 100%; background: linear-gradient(90deg, #4b9978, #9ac9a2); border-radius: inherit; transition: width .25s; }
.metrics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 9px; }.metric-card { min-width: 0; padding: 10px 9px 8px; border: 1px solid rgba(225,211,182,.1); background: rgba(255,255,255,.018); border-radius: 4px; }.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; color: #85978b; font: 7px var(--mono); letter-spacing: .05em; }.metric-symbol { color: var(--gold); font-style: normal; font-size: 12px; }.metric-number { display: block; margin: 7px 0 6px; color: #e7dfc9; font: 600 18px var(--serif); }.metric-number.good-text { color: var(--mint); }.metric-number.warn-text { color: var(--gold); }.metric-number.bad-text { color: var(--red); }.metric-track { height: 3px; margin-bottom: 6px; }.metric-track span { display: block; height: 100%; background: var(--mint-deep); border-radius: inherit; }.metric-card small { color: #7e8f84; font-size: 8px; }.section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }.chart-legend { display: flex; align-items: center; gap: 4px; color: #89988d; font: 8px var(--mono); }.chart-legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-left: 4px; }.rh-legend { background: #72bfa0; }.temp-legend { background: #d8a66c; }.history-chart { display: block; width: 100%; height: 105px; margin-top: 7px; }.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }.mini-stats div { display: flex; flex-direction: column; gap: 4px; }.mini-stats span { color: #829187; font: 7px var(--mono); letter-spacing: .08em; }.mini-stats strong { color: #d6c9aa; font: 11px var(--mono); }.objective-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }.objective-heading strong { display: block; margin-top: 5px; font: 600 13px var(--serif); }.objective-count { color: var(--gold); font: 8px var(--mono); white-space: nowrap; }.objective-track { margin: 11px 0 9px; height: 5px; }.objective-track span { display: block; height: 100%; background: linear-gradient(90deg, #4b9978, #d3ad76); border-radius: inherit; transition: width .25s; }.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }.checklist li { display: flex; align-items: flex-start; gap: 7px; color: #9aa89c; font-size: 8.5px; line-height: 1.35; }.checklist li.done { color: #c4d9c8; }.check-mark { flex: 0 0 13px; display: grid; place-items: center; width: 13px; height: 13px; border: 1px solid rgba(225,211,182,.24); border-radius: 50%; color: #778a7f; font: 9px var(--mono); }.checklist li.done .check-mark { color: #142b25; background: var(--mint); border-color: var(--mint); }.log-live { color: var(--mint); font: 8px var(--mono); letter-spacing: .12em; }.event-log { display: flex; flex-direction: column; gap: 6px; margin-top: 9px; }.log-entry { display: flex; align-items: flex-start; gap: 7px; color: #9aa89c; font-size: 8px; line-height: 1.35; }.log-entry.positive { color: #bdd3c0; }.log-entry.warning { color: #d7b98a; }.log-time { flex: 0 0 33px; color: #71847a; font: 8px var(--mono); }
.footer { height: 30px; flex: 0 0 30px; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; border-top: 1px solid var(--line); color: #65766c; font: 7px var(--mono); letter-spacing: .1em; }
@media (min-width: 1600px) { .workspace { grid-template-columns: 315px minmax(500px, 1fr) 330px; max-width: 1920px; width: 100%; margin: 0 auto; }.side-panel { padding: 22px; }.viewport { min-height: 470px; } }
@media (max-width: 1250px) { body { overflow: auto; }.workspace { height: auto; max-height: none; grid-template-columns: 265px minmax(400px, 1fr); }.insight-panel { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }.insight-panel > .panel-divider { display: none; }.insight-panel > .panel-heading, .insight-panel > .condition-score, .insight-panel > .metrics-grid, .insight-panel > .section-title-row, .insight-panel > .history-chart, .insight-panel > .mini-stats, .insight-panel > .objective-heading, .insight-panel > .objective-track, .insight-panel > .checklist, .insight-panel > .event-log { grid-column: auto; }.insight-panel > .panel-heading { grid-column: 1 / -1; }.insight-panel > .condition-score { grid-column: 1; }.insight-panel > .metrics-grid { grid-column: 1; }.insight-panel > .section-title-row:nth-of-type(1) { grid-column: 2; grid-row: 2; }.insight-panel > .history-chart { grid-column: 2; grid-row: 3; }.insight-panel > .mini-stats { grid-column: 2; grid-row: 4; }.insight-panel > .objective-heading { grid-column: 1; }.insight-panel > .objective-track, .insight-panel > .checklist { grid-column: 1; }.insight-panel > .section-title-row:last-of-type, .insight-panel > .event-log { grid-column: 2; } }
@media (max-width: 850px) { .topbar { padding: 0 15px; }.top-context { display: none; }.top-actions { min-width: auto; }.workspace { display: flex; flex-direction: column; padding: 10px; gap: 10px; }.stage { order: 1; }.control-panel { order: 2; }.insight-panel { order: 3; display: block; }.viewport { min-height: 420px; }.side-panel { overflow: visible; }.footer { gap: 8px; font-size: 6px; }.footer span:nth-child(2) { display: none; } }
@media (max-width: 520px) { .topbar { height: 65px; flex-basis: 65px; }.brand { min-width: auto; }.brand-copy strong { font-size: 16px; }.engine-status { font-size: 7px; padding: 6px; }.top-link { display: none; }.workspace { padding: 8px; }.stage-heading h2 { font-size: 19px; }.stage-date { font-size: 8px; padding: 7px; }.viewport { min-height: 355px; }.viewport-topline { left: 9px; right: 9px; font-size: 6px; }.camera-controls { right: 9px; top: 42px; }.camera-button { width: 28px; height: 26px; }.scene-hint { left: 8px; bottom: 8px; font-size: 6px; }.viewport-legend { display: none; }.stage-toolbar { padding: 8px; }.run-button { padding: 0 9px; font-size: 9px; }.stage-lower { grid-template-columns: 1fr 115px; }.inspection-card { padding: 8px; }.inspection-card p { font-size: 8px; }.folio-card { padding: 8px; }.folio-card small { font-size: 7px; }.side-panel { padding: 16px 13px; }.footer { padding: 0 10px; } }
