:root {
  --ink: #192a31;
  --muted: #718087;
  --line: #dfe6e3;
  --paper: #f1f4f2;
  --panel: #fffefa;
  --teal: #247b73;
  --teal-soft: #e7f1ed;
  --accent: #a88750;
  --accent-soft: #f1eadc;
  --green: #2f8061;
  --yellow: #b77d23;
  --navy: #172b35;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 14px; }
button { font: inherit; cursor: pointer; border: 0; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 240px; background: var(--navy); color: #d9e3e3; display: flex; flex-direction: column; padding: 27px 16px 18px; flex-shrink: 0; box-shadow: 8px 0 24px rgba(23, 43, 53, .07); }
.brand { display: flex; gap: 11px; align-items: center; padding: 0 11px 38px; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; color: #f7f4eb; background: var(--accent); font-family: serif; font-size: 19px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.brand strong, .brand span { display: block; }
.brand strong { color: #fff; font-size: 13px; letter-spacing: .04em; }
.brand span { color: #8ea0a4; font-size: 10px; margin-top: 5px; }
.main-nav { display: grid; gap: 6px; }
.nav-item { color: #9eafb1; background: transparent; text-align: left; border-radius: 6px; padding: 10px 11px; display: flex; gap: 12px; align-items: center; }
.nav-item:hover, .nav-item.active { color: #fff; background: #29434c; }
.nav-icon { width: 30px; height: 30px; display: grid; place-items: center; color: #86bdb3; background: rgba(116, 174, 163, .12); border: 1px solid rgba(134, 189, 179, .2); border-radius: 5px; flex: 0 0 auto; }
.nav-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.nav-item.active .nav-icon { color: #f0d39a; background: rgba(168, 135, 80, .18); border-color: rgba(240, 211, 154, .35); }
.sidebar-footer { margin-top: auto; }
.system-status { color: #9eb2b1; font-size: 11px; padding: 16px 13px; border-top: 1px solid #30424a; border-bottom: 1px solid #30424a; }
.status-dot { width: 7px; height: 7px; background: #76b69b; border-radius: 50%; display: inline-block; margin-right: 8px; box-shadow: 0 0 0 3px rgba(118, 182, 155, .12); }
.user-profile { display: flex; align-items: center; gap: 9px; padding: 17px 10px 0; }
.avatar { width: 27px; height: 27px; border-radius: 50%; background: #4d7772; display: grid; place-items: center; color: #f1eee5; }
.user-profile strong, .user-profile span { display: block; }
.user-profile strong { color: #eef5f4; font-size: 12px; }
.user-profile span { color: #8ea0a4; font-size: 10px; margin-top: 3px; }
.user-profile .more { margin-left: auto; }
.main-content { flex: 1; max-width: 1600px; margin: 0 auto; padding: 0 42px 56px; overflow: hidden; }
.topbar { height: 74px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.breadcrumb { color: #8b989b; font-size: 12px; display: flex; gap: 10px; }
.breadcrumb strong { color: var(--ink); font-weight: 600; }
.top-actions { display: flex; gap: 17px; align-items: center; }
.icon-button, .help-button { background: transparent; color: #617178; position: relative; }
.help-button { border: 1px solid #b8c3c4; border-radius: 50%; width: 20px; height: 20px; font-size: 12px; }
.notification-dot { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; position: absolute; top: 0; right: -2px; }
.page-heading { display: flex; justify-content: space-between; gap: 28px; align-items: flex-end; padding: 37px 0 31px; }
.eyebrow, .section-kicker { color: var(--teal); font-size: 10px; font-weight: 700; letter-spacing: .13em; margin: 0 0 8px; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(24px, 2.3vw, 34px); letter-spacing: -.02em; margin-bottom: 8px; font-weight: 650; }
h2 { font-size: 16px; margin: 0; font-weight: 650; }
.muted { color: var(--muted); margin: 0; }
.heading-actions { display: flex; gap: 9px; flex-shrink: 0; }
.button { padding: 10px 15px; border-radius: 4px; font-weight: 600; font-size: 12px; }
.button.primary { background: var(--teal); color: #fff; box-shadow: 0 3px 9px rgba(36, 123, 115, .15); }
.button.primary:hover { background: #066a6d; }
.button.secondary { border: 1px solid #cbd7d5; background: transparent; color: var(--ink); }
.scene-switcher { margin-bottom: 22px; padding: 19px 22px; display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.scene-switch-copy { min-width: 215px; }
.scene-switch-copy h2 { margin-bottom: 5px; }
.scene-switch-copy p { color: var(--muted); font-size: 11px; margin: 0; }
.scene-options { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 10px; flex: 1; }
.scene-option { color: var(--ink); background: #fbfcfb; border: 1px solid var(--line); border-radius: 5px; padding: 12px; display: flex; align-items: center; gap: 10px; text-align: left; position: relative; }
.scene-option:hover, .scene-option.active { border-color: #77a99f; background: var(--teal-soft); }
.scene-option i { color: var(--teal); font-style: normal; margin-left: auto; display: none; }
.scene-option.active i { display: block; }
.scene-symbol { width: 28px; height: 28px; display: grid; place-items: center; color: var(--teal); background: #d5e9e3; font-size: 18px; }
.scene-option strong, .scene-option small { display: block; }
.scene-option strong { font-size: 11px; }
.scene-option small { color: var(--muted); font-size: 10px; margin-top: 4px; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(300px, .78fr); gap: 22px; align-items: start; }
.view-hidden { display: none !important; }
.workbench-tasks { padding-bottom: 22px; }
.workbench-tasks-header { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.workbench-tasks-header p { color: var(--muted); font-size: 11px; margin: 6px 0 0; }
.workbench-task-groups { display: grid; gap: 18px; padding: 18px 22px 0; }
.workbench-task-group { display: grid; gap: 8px; }
.workbench-group-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.workbench-group-heading h3 { font-size: 13px; margin: 0 0 4px; }
.workbench-group-heading p { color: var(--muted); font-size: 11px; margin: 0; }
.workbench-group-heading > span { color: var(--teal); background: var(--teal-soft); border-radius: 12px; font-size: 10px; padding: 5px 9px; }
.workbench-task-list { display: grid; gap: 7px; }
.workbench-task-card { width: 100%; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); background: #fbfcfb; border-radius: 5px; padding: 11px 12px; text-align: left; color: var(--ink); }
.workbench-task-card:hover { border-color: var(--teal); background: var(--teal-soft); }
.workbench-task-mark { width: 31px; height: 31px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.workbench-task-copy { display: grid; gap: 4px; min-width: 0; flex: 1; }
.workbench-task-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.workbench-task-copy small, .workbench-task-progress small { color: var(--muted); font-size: 10px; }
.workbench-task-progress { display: grid; gap: 3px; min-width: 48px; text-align: right; }
.workbench-task-progress b { color: var(--teal); font-size: 12px; }
.workbench-task-arrow { color: var(--muted); font-size: 18px; }
.workbench-group-empty { border: 1px dashed var(--line); color: var(--muted); padding: 14px; font-size: 11px; }
.workbench-empty { min-height: 180px; display: grid; place-items: center; align-content: center; text-align: center; }
.workbench-empty .empty-symbol { margin-bottom: 10px; }
.workbench-empty h3 { font-size: 15px; margin: 0 0 7px; }
.workbench-empty p { color: var(--muted); font-size: 11px; margin: 0; }
.archive-view { min-height: 470px; padding: 24px; }
.archive-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.archive-header h2 { margin-bottom: 6px; }
.archive-header p { color: var(--muted); font-size: 11px; margin: 0; }
.archive-count { color: var(--muted); background: #eef2f1; border-radius: 12px; font-size: 10px; padding: 5px 9px; }
.archive-empty { min-height: 340px; display: grid; place-items: center; align-content: center; text-align: center; }
.empty-symbol { width: 54px; height: 54px; display: grid; place-items: center; color: var(--teal); background: var(--teal-soft); border-radius: 50%; font-size: 23px; margin-bottom: 16px; }
.archive-empty h3 { font-size: 17px; margin: 0 0 8px; }
.archive-empty p { color: var(--muted); font-size: 12px; margin: 0 0 20px; }
.archive-task-list { display: grid; gap: 9px; padding-top: 18px; }
.archive-task { width: 100%; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); background: var(--panel); padding: 12px; text-align: left; border-radius: 5px; color: var(--ink); }
.archive-task:hover { border-color: var(--teal); background: var(--teal-soft); }
.archive-task-icon { width: 30px; height: 30px; display: grid; place-items: center; color: var(--teal); background: var(--teal-soft); font-weight: 700; }
.archive-task span:nth-child(2) { display: grid; gap: 3px; flex: 1; }
.archive-task small { color: var(--muted); font-size: 11px; }
.archive-task b { color: var(--teal); font-size: 12px; }
.primary-column, .secondary-column { display: grid; gap: 22px; min-width: 0; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.panel-header { padding: 20px 22px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.panel-header.compact { padding-top: 18px; }
.badge { padding: 5px 9px; border-radius: 12px; font-size: 10px; font-weight: 700; }
.processing { color: var(--teal); background: var(--teal-soft); }
.pass { color: var(--green); background: #e6f6ec; }
.progress-summary { padding: 20px 22px 10px; }
.progress-summary > div:first-child { display: flex; justify-content: space-between; align-items: baseline; }
.progress-summary strong { font-size: 29px; letter-spacing: -.04em; }
.progress-summary span { color: var(--muted); font-size: 11px; }
.progress-track { height: 7px; background: #edf1f0; border-radius: 8px; margin-top: 10px; overflow: hidden; }
.progress-track span { height: 100%; display: block; background: var(--teal); transition: width .7s ease; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); padding: 20px 22px 23px; border-top: 1px solid var(--line); gap: 9px; }
.step { display: flex; gap: 8px; color: #9aa7aa; min-width: 0; }
.step > span { flex: 0 0 22px; height: 22px; border: 1px solid #d4dddd; border-radius: 50%; display: grid; place-items: center; font-size: 10px; }
.step.done { color: var(--green); }
.step.done > span { color: #fff; background: var(--green); border-color: var(--green); }
.step.active { color: var(--ink); }
.step.active > span { color: #fff; background: var(--teal); border-color: var(--teal); }
.step-pulse { box-shadow: 0 0 0 4px var(--teal-soft); }
.step strong, .step small { display: block; }
.step strong { font-size: 11px; line-height: 1.35; }
.step small { color: var(--muted); font-size: 10px; line-height: 1.35; margin-top: 4px; }
.preview-stage { margin: 20px 22px 0; height: 386px; border: 1px solid #223945; background: #0d1f2a; position: relative; overflow: hidden; }
#point-cloud { width: 100%; height: 100%; display: block; }
.stage-toolbar { position: absolute; top: 14px; left: 14px; display: flex; gap: 5px; }
.stage-tool { color: #9fb5b6; background: rgba(15, 34, 44, .78); padding: 7px 9px; border: 1px solid #3f5962; font-size: 10px; border-radius: 3px; }
.stage-tool.active { color: #fff; border-color: #65c3c1; }
.stage-meta { position: absolute; bottom: 11px; left: 14px; right: 14px; display: flex; gap: 17px; color: #aac0c0; font-size: 10px; }
.stage-meta span:last-child { margin-left: auto; color: #759094; }
.legend { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.legend.blue { background: #6fced2; }.legend.coral { background: var(--accent); }
.capture-image { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.preview-footer { padding: 13px 22px 17px; display: flex; justify-content: space-between; align-items: center; }
.preview-footer strong, .preview-footer span { display: block; font-size: 11px; }
.preview-footer span { color: var(--muted); font-size: 10px; margin-top: 4px; }
.view-controls { display: flex; gap: 16px; }
.view-controls button, .text-button, .edit-button, .more-button { background: transparent; color: var(--teal); font-size: 11px; }
.view-controls button:hover, .text-button:hover, .edit-button:hover { text-decoration: underline; }
.activity-panel { padding-bottom: 8px; }
.activity-list { padding: 12px 22px; }
.activity-item { display: grid; grid-template-columns: 24px 1fr auto; gap: 9px; padding: 11px 0; border-bottom: 1px solid #eef1f0; align-items: start; }
.activity-item:last-child { border-bottom: 0; }
.activity-icon { width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; }
.activity-icon.success { color: var(--green); background: #e6f6ec; }.activity-icon.info { color: var(--teal); background: var(--teal-soft); }.activity-icon.neutral { color: #98a5a8; background: #eef2f1; }
.activity-item strong, .activity-item span { display: block; }
.activity-item strong { font-size: 11px; }.activity-item span { color: var(--muted); font-size: 10px; margin-top: 4px; }
.activity-item time { color: #9aa6a8; font-size: 10px; }
.metric-list { padding: 15px 22px 11px; }
.metric-row { padding: 12px 0; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eef1f0; }
.metric-row:last-child { border-bottom: 0; }
.metric-row span { color: var(--muted); font-size: 10px; display: block; }
.metric-row strong { font-size: 20px; margin-top: 4px; display: block; }
.metric-row small { color: var(--muted); font-size: 10px; font-weight: 400; }
.metric-state { padding: 4px 7px; border-radius: 3px; font-size: 10px !important; }
.metric-state.good { color: var(--green); background: #e6f6ec; }.metric-state.neutral-state { color: var(--teal); background: var(--teal-soft); }
.outline-button { color: var(--teal); background: transparent; border: 1px solid #bbd8d5; border-radius: 4px; padding: 9px; font-size: 11px; font-weight: 600; }
.outline-button.full { width: calc(100% - 44px); margin: 0 22px 18px; }
.config-list { padding: 14px 22px 18px; }
.config-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eef1f0; }
.config-list > div:last-child { border-bottom: 0; }
.config-list span { color: var(--muted); font-size: 10px; }
.config-list strong { font-size: 10px; text-align: right; }
.input-panel { padding-bottom: 18px; }
.source-card { display: flex; align-items: center; gap: 9px; margin: 12px 22px 0; }
.source-thumb { width: 42px; height: 35px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 9px; background: #527b7e; }
.muted-thumb { background: #899aa0; }
.source-card strong, .source-card span { display: block; }.source-card strong { font-size: 11px; }.source-card span { color: var(--muted); font-size: 10px; margin-top: 4px; }
.source-state { color: var(--green); margin-left: auto; }
.drop-zone { border: 1px dashed #b9cdcb; margin: 17px 22px 0; padding: 13px; text-align: center; color: var(--teal); border-radius: 4px; }
.drop-zone:hover, .drop-zone.dragover { background: var(--teal-soft); border-color: var(--teal); }
.drop-zone span, .drop-zone strong, .drop-zone small { display: block; }.drop-zone span { font-size: 20px; line-height: 1; }.drop-zone strong { font-size: 11px; margin-top: 5px; }.drop-zone small { color: var(--muted); font-size: 10px; margin-top: 4px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--navy); color: #fff; padding: 11px 16px; border-radius: 4px; font-size: 12px; transition: .25s; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
@media (max-width: 1100px) {
  .sidebar { width: 202px; }.main-content { padding: 0 24px 40px; }.steps { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
}
@media (max-width: 820px) {
  .sidebar { width: 62px; padding: 20px 9px; }.brand { padding: 0 5px 30px; }.brand > div:last-child, .nav-item:not(.active)::after, .nav-item { font-size: 0; }.nav-item { justify-content: center; padding: 12px 5px; }.nav-icon { font-size: 15px; }.sidebar-footer { display: none; }.main-content { padding: 0 16px 34px; }.page-heading { align-items: flex-start; flex-direction: column; padding: 27px 0 22px; }.heading-actions { width: 100%; }.heading-actions .button { flex: 1; }.workspace-grid { grid-template-columns: 1fr; }.secondary-column { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }.input-panel { grid-column: 1 / -1; }.preview-stage { height: 300px; }.stage-meta span:nth-child(2) { display: none; }
  .scene-switcher { align-items: stretch; flex-direction: column; }.scene-options { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  h1 { font-size: 25px; }.secondary-column { grid-template-columns: 1fr; }.input-panel { grid-column: auto; }.steps { grid-template-columns: 1fr; }.stage-meta { gap: 8px; }.stage-meta span:last-child { display: none; }.preview-footer { align-items: flex-start; gap: 12px; flex-direction: column; }.view-controls { width: 100%; justify-content: space-between; }.scene-options { grid-template-columns: 1fr; }
}
