:root {
  color-scheme: dark;
  --bg: #07090e;
  --bg-elevated: #10131a;
  --panel: rgba(12, 14, 18, 0.74);
  --ink: #f4f4f4;
  --muted: #8d8d8d;
  --line: #222;
  --line-strong: #3a3a3a;
  --white: #fff;
  --red: #e82127;
  --red-dim: #3a0c0e;
  --ok: #d8d8d8;
  --warn: #c4c4c4;
  --shadow: none;
  --sans: "Helvetica Neue", Helvetica, Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Helvetica Neue", Helvetica, Arial, "Noto Sans SC", sans-serif;
  font-family: var(--sans);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: .01em;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(1100px 680px at -8% -12%, rgba(232, 196, 132, 0.62), transparent 58%),
    radial-gradient(980px 640px at 108% -6%, rgba(154, 204, 232, 0.5), transparent 60%),
    radial-gradient(860px 560px at 86% 112%, rgba(92, 168, 176, 0.38), transparent 62%),
    radial-gradient(720px 500px at -10% 108%, rgba(214, 170, 118, 0.34), transparent 64%);
  background-size: 160% 160%, 150% 150%, 155% 155%, 145% 145%;
  animation: ambient-drift 28s ease-in-out infinite alternate;
}

body::after {
  background: linear-gradient(115deg, transparent 30%, rgba(255, 244, 220, 0.16) 46%, rgba(210, 230, 245, 0.12) 54%, transparent 70%);
  background-size: 240% 240%;
  animation: light-flow 16s ease-in-out infinite;
}

.app-shell { min-height: 100vh; position: relative; z-index: 1; }

button, select { font: inherit; color: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .38; }
a { color: inherit; }

button:focus-visible, a:focus-visible, select:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 3px;
}

button, select { transition: background .12s, border-color .12s, color .12s, opacity .12s; }
button:not(:disabled):active { transform: none; }
[hidden] { display: none !important; }

.command-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 32px;
  background: rgba(8, 10, 14, 0.48);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 -1px 0 rgba(232, 196, 132, 0.28);
  backdrop-filter: blur(18px) saturate(1.2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  padding-top: 4px;
}

.brand-mark {
  width: 18px;
  height: 22px;
  color: var(--white);
}

.brand-mark svg { width: 100%; height: 100%; display: block; }

.brand-type {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .34em;
  line-height: 1;
}

.brand-type > span {
  display: block;
  margin-top: 6px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .42em;
  color: var(--muted);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-top: 8px;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
}

.nav-item.active, .nav-item:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

.nav-count {
  min-width: 1.2em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.nav-item.active .nav-count { color: var(--white); }

.command-status {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 18px;
  min-width: 0;
  flex: 1;
}

.simulation-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.simulation-badge > span {
  width: 6px;
  height: 6px;
  background: var(--white);
}

.robot-connection {
  min-width: 0;
  max-width: 520px;
  text-align: right;
}

.robot-connection-heading,
.robot-connection-heading > div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.robot-connection h2 {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
}

.robot-status {
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 3px 8px;
}

.robot-status.connected {
  color: var(--white);
  border-color: var(--white);
}

.robot-status.warning {
  color: var(--red);
  border-color: var(--red);
}

.robot-connection-details {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 4px;
  overflow: hidden;
  font-size: 10px;
  color: var(--muted);
}

.robot-connection-details > span {
  white-space: nowrap;
}

.robot-connection-details strong,
.robot-connection-details code {
  font-weight: 500;
  font-family: inherit;
  color: var(--ink);
}

#robot-notice { display: none; }

.robot-connection p {
  margin: 6px 0 0;
  font-size: 10px;
  color: #6a6a6a;
  line-height: 1.6;
}

.robot-connection .robot-error {
  color: var(--red);
  overflow-wrap: anywhere;
}

main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 32px 48px;
  outline: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 10px 16px;
  min-height: 36px;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover:not(:disabled) { background: #161616; }

.button.primary {
  background: var(--white);
  color: #000;
  border-color: var(--white);
}

.button.primary:hover:not(:disabled) { background: #d8d8d8; }

.button.soft {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--muted);
}

.button.small {
  min-height: 28px;
  padding: 5px 10px;
  font-size: 10px;
}

.button svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--muted);
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
}

.badge.green { color: var(--white); border-color: var(--white); }
.badge.red { color: var(--red); border-color: var(--red); }
.badge.neutral { color: var(--muted); }

.panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--panel);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 244, 220, 0.08);
  backdrop-filter: blur(16px) saturate(1.15);
  overflow: hidden;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.panel-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.section-number {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .28em;
  color: var(--muted);
}

.muted { color: var(--muted); font-size: 10px; letter-spacing: .04em; }

.vision-panel { margin-bottom: 20px; }

.vision-panel.is-disabled {
  opacity: .78;
}

.vision-heading-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.vision-mode {
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 3px 7px;
}

.vision-status { color: var(--muted); font-size: 11px; }
.vision-status.warning { color: var(--red); }

.vision-error {
  margin: 0;
  padding: 10px 18px;
  color: var(--red);
  font-size: 11px;
  overflow-wrap: anywhere;
  border-bottom: 1px solid var(--line);
}

.vision-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(310px, 1fr);
  align-items: start;
}

.vision-camera { padding: 16px 18px 18px; min-width: 0; }

.vision-observation {
  padding: 16px 18px 18px;
  border-left: 1px solid var(--line);
  min-width: 0;
}

.vision-area-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.vision-area-heading h3 {
  margin: 0;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.vision-area-heading > span { font-size: 9px; color: var(--muted); letter-spacing: .12em; }

.vision-preview-actions, .vision-saved-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vision-preview-status {
  min-height: 16px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.vision-preview-status.warning { color: var(--red); }

.vision-image-area {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: #050505;
  overflow: hidden;
}

#vision-preview-area { min-height: 340px; }

.vision-image-area img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: contain;
  background: #000;
}

.vision-image-label {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 7px;
  border: 1px solid var(--red);
  background: #000c;
  color: var(--white);
  font-size: 9px;
  letter-spacing: .18em;
}

.vision-image-area.is-stale { border-color: #5a5a5a; }
.vision-image-area.is-stale .vision-image-label {
  border-color: #888;
  color: #ddd;
}

.vision-placeholder {
  margin: 0;
  padding: 20px;
  text-align: center;
  color: #777;
  font-size: 12px;
  line-height: 1.8;
}

.vision-placeholder span { font-size: 10px; color: #555; }

.vision-image-meta {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  color: #777;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.vision-image-meta strong { font-weight: 600; color: #cfcfcf; }

.vision-saved-image {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 0 0 12px;
}

.vision-saved-image .vision-image-area {
  aspect-ratio: 4 / 3;
  max-height: 96px;
  min-height: 0;
}

.vision-saved-image .vision-image-area img { max-height: 96px; }
.vision-saved-image .vision-placeholder { font-size: 10px; padding: 6px; }
.vision-saved-image .vision-image-meta { margin-top: 0; }

.vision-saved-actions {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.vision-model-label {
  font-size: 9px;
  letter-spacing: .22em;
  color: #666;
}

.vision-model {
  margin: 4px 0;
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.vision-provider-control { display: flex; align-items: center; gap: 12px; margin: 12px 0 10px; min-width: 0; }
.vision-provider-control label { flex: 0 0 auto; color: #94a4ad; font-size: 10px; }
.vision-provider-control select { flex: 1; width: 0; min-width: 0; border: 1px solid #34444e; background: #0e151a; padding: 7px 8px; border-radius: 3px; font-size: 11px; }
.vision-provider-control select:disabled { color: #839098; opacity: .7; }
.vision-review-intro { margin: 5px 0 12px; color: #8e9ea6; font-size: 10px; line-height: 1.7; }
.vision-review { min-width: 0; margin: 0 0 14px; padding: 10px 12px; border: 1px solid #304047; background: #0c1317; font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; }
.vision-review > summary { cursor: pointer; color: #b2c1c8; }
.vision-review > summary strong { margin-left: 10px; color: #d0e1e5; font-size: 11px; font-weight: 550; }
.vision-review-reason { margin: 10px 0 6px; color: #ced8dc; }
.vision-review-binding, .vision-review-budget { margin: 6px 0; color: #8ba6b0; }
.vision-review-binding.previous-image { color: #d0ac85; }
.vision-review-budget { font-variant-numeric: tabular-nums; }
.vision-review-events { margin: 9px 0; padding-left: 18px; color: #a3b5be; }
.vision-review-events li + li { margin-top: 5px; }
.vision-review-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.vision-review-actions .button { white-space: normal; min-width: 0; }
.vision-review-error { color: #efaca5; margin: 8px 0; }
.vision-review-note { margin: 9px 0 0; color: #82949d; }
.vision-reason-hint { color: #8398a4; font-size: 9px; white-space: nowrap; flex-shrink: 0; }
.vision-inspection-reason { margin: 0 0 10px; padding: 8px 10px; border-left: 2px solid #365263; background: #0c141a; color: #becdd6; font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; }
.vision-inspection-reason > span { color: #8ba5b3; font-size: 9px; }
.vision-inspection-reason > p { margin: 3px 0 0; }

.vision-model-notice, .vision-empty-analysis, .vision-verdict-note, .vision-analysis-meta {
  margin: 6px 0 12px;
  font-size: 10px;
  line-height: 1.7;
  color: #7a7a7a;
}

.vision-model-notice {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.vision-verdict {
  display: inline-block;
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .04em;
}

.vision-verdict.yes { color: var(--red); border-color: var(--red); }
.vision-verdict.no { color: var(--white); border-color: var(--white); }

.vision-choices { display: grid; gap: 10px; margin: 10px 0 12px; }
.vision-choice { min-width: 0; }
.vision-choice-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; }
.vision-choice-probability { white-space: nowrap; font-variant-numeric: tabular-nums; }
.vision-choice strong { display: block; margin: 3px 0 5px; font-size: 11px; font-weight: 550; overflow-wrap: anywhere; }
.vision-choice-track { height: 3px; background: var(--line); overflow: hidden; }
.vision-choice-track span { display: block; height: 100%; background: #909090; }
.vision-choice.needs-attention strong { color: #e3c6a5; }
.vision-choice.needs-attention .vision-choice-track span { background: #a58461; }

.vision-inspection { min-width: 0; }
.vision-inspection-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 12px 0 6px; }
.vision-inspection-summary > div { min-width: 0; padding: 9px 8px; background: #101416; border-top: 2px solid #52636a; }
.vision-inspection-summary > div.attention { border-color: #ae8663; }
.vision-inspection-summary > div.uncertain { border-color: #779aa9; }
.vision-inspection-summary span { display: block; color: #9da8ae; font-size: 10px; }
.vision-inspection-summary strong { display: block; margin-top: 5px; color: #e0e6e8; font-size: 22px; line-height: 1.1; font-weight: 600; font-variant-numeric: tabular-nums; }
.vision-inspection-summary small { margin-left: 4px; font-size: 10px; color: #8e9a9f; font-weight: 400; }
.vision-inspection-scope, .vision-inspection-legacy { margin: 0 0 12px; font-size: 10px; line-height: 1.6; color: #8b979c; }
.vision-inspection-note-heading { display: flex; justify-content: space-between; gap: 8px; margin: 12px 0 5px; color: #becdd5; font-size: 10px; font-weight: 550; }
.vision-inspection-note-heading > span { color: #7f939e; font-size: 9px; font-weight: 400; }
.vision-inspection-notes { margin: 0 0 12px; padding-left: 15px; color: #b2bfc5; font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; }
.vision-inspection-notes li + li { margin-top: 4px; }
.vision-inspection-groups { border-top: 1px solid #293338; margin-bottom: 12px; }
.vision-inspection-group { min-width: 0; border-bottom: 1px solid #293338; }
.vision-inspection-group > summary { display: flex; align-items: center; gap: 7px; padding: 12px 0; cursor: pointer; list-style: none; color: #dce3e6; font-size: 11px; font-weight: 600; }
.vision-inspection-group > summary::-webkit-details-marker, .vision-inspection-check > summary::-webkit-details-marker { display: none; }
.vision-inspection-group > summary::before { content: "›"; color: #94a5ac; font-size: 16px; line-height: 1; transform: rotate(0); transition: transform .15s; }
.vision-inspection-group[open] > summary::before { transform: rotate(90deg); }
.vision-inspection-group > summary > span { min-width: 0; overflow-wrap: anywhere; }
.vision-inspection-group > summary > small { margin-left: auto; color: #8c9ea6; font-size: 9px; font-weight: 400; text-align: right; }
.vision-inspection-items { margin: 0 0 5px; }
.vision-inspection-check { min-width: 0; border-top: 1px solid #1a2429; padding: 0 0 1px; }
.vision-inspection-check > summary { display: block; list-style: none; cursor: pointer; padding: 9px 0; }
.vision-inspection-check-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.vision-inspection-check-heading > strong { min-width: 0; overflow-wrap: anywhere; font-size: 10px; line-height: 1.4; font-weight: 550; color: #bbc7cd; }
.vision-inspection-status { flex: 0 0 auto; padding: 2px 5px; border-radius: 3px; background: #172027; color: #9fadb5; font-size: 9px; line-height: 1.3; }
.vision-inspection-check.attention .vision-inspection-status { background: #32231b; color: #ecc8a6; }
.vision-inspection-check.uncertain .vision-inspection-status { background: #152a34; color: #a5d1e2; }
.vision-inspection-check.not_visible .vision-inspection-status { background: #202328; color: #969da5; }
.vision-inspection-result { display: flex; justify-content: space-between; gap: 9px; margin-top: 5px; font-size: 10px; line-height: 1.6; color: #c9d2d7; }
.vision-inspection-result > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.vision-inspection-result .vision-choice-probability { align-self: flex-start; color: #889aa3; font-size: 9px; }
.vision-inspection-check.attention .vision-inspection-result > span:first-child { color: #ecc8a6; }
.vision-inspection-check > summary:hover .vision-inspection-result { color: #fff; }
.vision-inspection-group > summary:focus-visible, .vision-inspection-check > summary:focus-visible { outline: 1px solid #b7d1df; outline-offset: 2px; }
.vision-inspection-options { padding: 0 0 10px 9px; margin: 0 0 5px; border-left: 2px solid #29383e; font-size: 9px; color: #92a0a7; }
.vision-inspection-options > p { margin: 0 0 6px; color: #82969f; }
.vision-inspection-options > div { display: flex; justify-content: space-between; align-items: baseline; gap: 9px; margin-top: 5px; }
.vision-inspection-options > div > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.vision-inspection-options > div > span:last-child { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.vision-inspection-options > div.selected { color: #d5e2e8; }
.vision-inspection-options small { display: inline-block; margin-left: 5px; font-size: 8px; color: #91bacb; }

.vision-observation h3 {
  margin: 14px 0 6px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.vision-list {
  margin: 0;
  padding-left: 16px;
  color: #c2c2c2;
  font-size: 11px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.vision-list li + li { margin-top: 4px; }
.vision-result-warning { margin: 0 0 10px; color: var(--red); font-size: 10px; }
.vision-raw { font-size: 10px; color: #777; }
.vision-raw summary { cursor: pointer; }
.vision-raw pre {
  max-height: 180px;
  margin: 8px 0 0;
  padding: 10px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #050505;
  border: 1px solid var(--line);
}

.scenario-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.jev-panel { margin-bottom: 20px; }
.jev-heading-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 10px; color: var(--muted); }
.jev-heading-tools .warning { color: var(--red); }
.jev-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.jev-proposals, .jev-result { min-width: 0; padding: 18px; }
.jev-result { border-left: 1px solid var(--line); }
.jev-empty { color: #777; font-size: 11px; line-height: 1.7; margin: 18px 0; }
.jev-note { margin: 12px 0 0; color: #858585; font-size: 10px; line-height: 1.75; overflow-wrap: anywhere; }
.jev-probability + .jev-probability { margin-top: 12px; }
.jev-probability > div { display: flex; justify-content: space-between; gap: 12px; color: #aaa; font-size: 11px; }
.jev-probability strong { font-size: 10px; font-weight: 500; font-variant-numeric: tabular-nums; }
.jev-probability.selected > div { color: var(--white); }
.jev-probability progress { display: block; width: 100%; height: 4px; margin-top: 6px; border: 0; appearance: none; background: #242424; color: #666; }
.jev-probability progress::-webkit-progress-bar { background: #242424; }
.jev-probability progress::-webkit-progress-value { background: #666; }
.jev-probability progress::-moz-progress-bar { background: #666; }
.jev-probability.selected progress::-webkit-progress-value { background: var(--white); }
.jev-probability.selected progress::-moz-progress-bar { background: var(--white); }
.jev-recheck { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font-size: 11px; color: #999; }
.jev-recheck strong { font-size: 26px; color: var(--white); font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.jev-recommendation { margin: 14px 0 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.jev-binding { display: grid; gap: 4px; margin-top: 14px; color: #777; font-size: 9px; overflow-wrap: anywhere; }
.jev-controls { padding: 14px 18px; border-top: 1px solid var(--line); background: #050505; }
.jev-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.jev-history { border-top: 1px solid var(--line); padding: 12px 18px; }
.jev-history > summary { color: #999; font-size: 10px; cursor: pointer; }
.jev-history > summary > span { margin-left: 8px; color: #666; }
.jev-history-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.jev-history-row:last-child { border-bottom: 0; padding-bottom: 0; }
.jev-history-row > div { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; }
.jev-history-row strong { font-size: 11px; font-weight: 500; }
.jev-history-row span, .jev-history-row time { font-size: 9px; color: #777; }
.jev-history-row p { grid-column: 1 / -1; font-size: 10px; color: #888; margin: 0; overflow-wrap: anywhere; }

.scenario-select { flex: 1; min-width: 0; }

.scenario-select label {
  margin-right: 10px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.scenario-select select {
  max-width: calc(100% - 88px);
  padding: 4px 18px 4px 0;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
}

.scenario-select select option {
  background: #111;
  color: #f4f4f4;
}

.scenario-select p {
  margin: 6px 0 0;
  color: #777;
  font-size: 10px;
}

.case-summary { margin: 0 0 18px; }

.case-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 16px;
}

.case-title-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.case-title-main h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: .04em;
}

.case-meta {
  display: flex;
  gap: 12px;
  margin-top: 7px;
  color: #777;
  font-size: 10px;
  letter-spacing: .04em;
}

.case-meta span + span::before {
  content: "/";
  margin-right: 12px;
  color: #444;
}

.workflow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 4px 4px;
  border-top: 1px solid var(--line);
}

.workflow-step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  color: #555;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.workflow-step:last-child { flex: 0; }

.workflow-step:not(:last-child)::after {
  content: "";
  flex: 1;
  min-width: 12px;
  height: 1px;
  margin: 0 8px;
  background: #2a2a2a;
}

.step-number {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 1px solid #333;
  font-size: 9px;
  font-weight: 700;
}

.workflow-step.done { color: #bdbdbd; }
.workflow-step.done .step-number { border-color: #888; color: var(--white); }
.workflow-step.skipped { color: #555; }
.workflow-step.skipped .step-number { border-style: dashed; }
.workflow-step.current { color: var(--white); font-weight: 700; }
.workflow-step.current .step-number {
  background: var(--white);
  color: #000;
  border-color: var(--white);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: start;
}

.map-wrap { padding: 16px 16px 0; background: #050505; }

.map-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 0 2px 10px;
  color: #777;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.map-meta > span:first-child { color: #aaa; }

.map-canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: 310px;
}

.map-caption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 2px 14px;
  color: #666;
  font-size: 9px;
}

.legend { display: flex; gap: 12px; }
.legend > span { display: flex; align-items: center; gap: 5px; }
.legend i { display: inline-block; width: 7px; height: 7px; background: #888; }
.legend i.blocked { background: var(--red); }
.legend i.unknown { background: #333; box-shadow: inset 0 0 0 1px #555; }

.region-coverage {
  padding: 14px 18px 16px;
  border-top: 1px solid var(--line);
}

.coverage-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #888;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.coverage-heading strong { font-weight: 600; color: #bbb; }

.regions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.region {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  color: #bbb;
  font-size: 10px;
}

.region.blocked { border-color: var(--red); color: #ffb4b4; }
.region.unknown { color: #666; }
.region strong { font-weight: 600; }
.region small { font-size: 9px; letter-spacing: .06em; }

.decision-body { padding: 18px; }

.decision-callout {
  margin: 0;
  padding-left: 12px;
  border-left: 2px solid #555;
}

.decision-callout.green { border-color: var(--white); }
.decision-callout.red { border-color: var(--red); }

.decision-callout h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: .02em;
  line-height: 1.35;
}

.decision-callout p {
  margin: 0;
  color: #8d8d8d;
  font-size: 12px;
  line-height: 1.7;
}

.check-body {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
}

.check-list { display: grid; gap: 10px; }

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.check-icon {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  border: 1px solid #333;
  color: #666;
  font-size: 9px;
}

.check-item.passed .check-icon { border-color: #aaa; color: var(--white); }
.check-item.failed .check-icon { border-color: var(--red); color: var(--red); }
.check-item > div:last-child { flex: 1; min-width: 0; }

.check-detail { flex: 1; min-width: 0; }
.check-detail summary {
  display: block;
  list-style: none;
  color: #d0d0d0;
  font-size: 11px;
  cursor: pointer;
}
.check-detail summary::-webkit-details-marker { display: none; }
.check-detail summary::after { content: " /"; margin-left: 4px; color: #555; }
.check-detail[open] summary::after { content: " –"; }
.check-detail summary:focus-visible { outline: 1px solid var(--white); outline-offset: 3px; }

.check-item p {
  margin: 4px 0 0;
  color: #6a6a6a;
  font-size: 10px;
  line-height: 1.55;
}

.check-value {
  margin-left: auto;
  color: #666;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.check-item.passed .check-value { color: #ccc; }
.check-item.failed .check-value { color: var(--red); }

.action-area {
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  background: #050505;
}

.action-label {
  margin-bottom: 8px;
  color: #777;
  font-size: 9px;
  letter-spacing: .22em;
}

.action-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.action-buttons .button { flex: 1; min-width: 140px; }

.action-tip {
  margin: 10px 0 0;
  color: #666;
  font-size: 10px;
  line-height: 1.7;
}

.action-tip strong { font-weight: 600; color: #ccc; }

.evidence-list {
  max-height: 407px;
  padding: 0 18px;
  overflow: auto;
}

.evidence-card {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.evidence-card:last-child { border-bottom: 0; }
.evidence-card.old-round { opacity: .55; }

.evidence-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.evidence-point {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
}

.evidence-title h3 { margin: 0; font-size: 11px; font-weight: 600; }

.evidence-title .time {
  margin-left: auto;
  color: #666;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.round-tag { margin-left: 6px; color: #777; font-size: 8px; font-weight: 400; }

.evidence-card > p {
  margin: 4px 0 8px;
  padding-left: 36px;
  color: #9a9a9a;
  font-size: 11px;
  line-height: 1.6;
}

.evidence-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding-left: 36px;
  color: #666;
  font-size: 9px;
}

.evidence-facts .fact-bad { color: var(--red); }
.evidence-facts .fact-good { color: #cfcfcf; }

.evidence-ref {
  margin-top: 8px;
  padding-left: 36px;
  color: #555;
  font-size: 8px;
  overflow-wrap: anywhere;
}

.panel-bottom {
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  background: #050505;
  color: #666;
  font-size: 9px;
  line-height: 1.7;
}

.timeline {
  max-height: 407px;
  padding: 18px;
  overflow: auto;
}

.timeline-event {
  position: relative;
  margin-left: 4px;
  padding: 0 0 18px 18px;
  border-left: 1px solid #2a2a2a;
}

.timeline-event:last-child { padding-bottom: 0; border-left-color: transparent; }

.timeline-event::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -3px;
  width: 5px;
  height: 5px;
  background: #555;
}

.timeline-event:first-child::before { background: var(--white); }

.event-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.event-heading h3 { margin: 0; color: #ddd; font-size: 11px; font-weight: 600; }
.event-heading time {
  color: #666;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.timeline-event p {
  margin: 5px 0 0;
  color: #7a7a7a;
  font-size: 10px;
  line-height: 1.6;
}

.history-panel { margin-top: 20px; scroll-margin-top: 84px; }
.history-tools { display: flex; align-items: center; gap: 12px; }

.history-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.3fr) minmax(140px, 1fr) 90px 100px 78px;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.history-row:last-child { border-bottom: 0; }
.history-row.selected { background: #101010; }
.history-row-title { font-size: 12px; font-weight: 600; }
.history-row-title small { display: block; margin-top: 4px; color: #666; font-size: 9px; font-weight: 400; }
.history-row .badge { justify-self: start; font-size: 9px; }
.history-row time { color: #777; font-size: 10px; }
.history-row .button { justify-self: end; }
.history-row-scenario { color: #888; }

.empty-small {
  margin: 0;
  padding: 28px 18px;
  text-align: center;
  color: #777;
  font-size: 11px;
}

.empty-state {
  margin: 8px 0 20px;
  padding: 48px 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-align: center;
}

.empty-illustration {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  border: 1px solid var(--line-strong);
  color: var(--white);
}

.empty-illustration svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.empty-state h2 {
  margin: 10px 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: .04em;
}

.empty-state p {
  max-width: 420px;
  margin: 0 auto;
  color: #7a7a7a;
  font-size: 12px;
  line-height: 1.8;
}

.empty-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin: 22px 0 0;
}

.empty-steps span { color: #777; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

.empty-steps b {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  border: 1px solid #444;
  font-size: 9px;
  color: var(--white);
}

.error-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--red);
  background: var(--red-dim);
  color: #ffd7d7;
  font-size: 12px;
}

.error-banner button {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 12px;
  text-decoration: underline;
  white-space: nowrap;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 30;
  max-width: 80vw;
  padding: 12px 16px;
  transform: translateX(-50%);
  background: #fff;
  color: #000;
  font-size: 12px;
  letter-spacing: .03em;
}

.loading-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1px solid #444;
  border-top-color: var(--white);
  border-radius: 50%;
  vertical-align: middle;
  animation: spin .8s linear infinite;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: #fff;
  color: #000;
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1200px) {
  .command-bar, main { padding-left: 22px; padding-right: 22px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.1fr) minmax(260px, 1fr); }
  .history-row {
    grid-template-columns: minmax(150px, 1.2fr) minmax(120px, 1fr) 80px 65px;
    gap: 10px;
  }
  .history-row time { display: none; }
}

@media (max-width: 990px) {
  .command-bar {
    flex-wrap: wrap;
    gap: 12px 20px;
    padding-top: 14px;
  }
  .command-status { flex-basis: 100%; justify-content: space-between; }
  .robot-connection { max-width: none; text-align: left; }
  .robot-connection-heading, .robot-connection-heading > div, .robot-connection-details { justify-content: flex-start; }
  .vision-grid { grid-template-columns: 1fr; }
  .vision-observation { border-left: 0; border-top: 1px solid var(--line); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .decision-panel { grid-row: 2; }
  .evidence-panel { grid-row: 3; }
  .timeline-panel { grid-row: 4; }
  .check-list { grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .map-canvas { max-height: 340px; }
}

@media (max-width: 680px) {
  .jev-panel .panel-heading { flex-wrap: wrap; gap: 10px; }
  .jev-grid { grid-template-columns: 1fr; }
  .jev-result { border-left: 0; border-top: 1px solid var(--line); }
  .jev-proposals, .jev-result, .jev-controls, .jev-history { padding: 14px; }
  .jev-actions .button { flex: 1 1 auto; font-size: 10px; }
  html { scroll-padding-top: 72px; }
  .command-bar {
    padding: 12px 14px;
    gap: 10px;
  }
  .brand-type { font-size: 13px; letter-spacing: .22em; }
  .brand-type > span { font-size: 8px; letter-spacing: .28em; }
  .nav-item { padding: 6px 8px; font-size: 10px; letter-spacing: .1em; }
  .simulation-badge { margin-top: 0; font-size: 8px; }
  .command-status {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .robot-connection { max-width: none; width: 100%; text-align: left; }
  .robot-connection-details, #robot-notice { display: none; }
  .robot-connection-heading, .robot-connection-heading > div {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .robot-connection-heading .button { width: auto; }
  main { padding: 18px 14px 28px; }
  .vision-heading-tools { width: 100%; }
  .vision-panel .panel-heading { align-items: flex-start; flex-wrap: wrap; }
  .vision-preview-actions .button, .vision-saved-actions .button, .vision-heading-tools .button {
    flex: 1 1 auto;
    font-size: 10px;
  }
  .vision-saved-image { grid-template-columns: 96px minmax(0, 1fr); }
  .vision-camera, .vision-observation { padding: 14px; }
  .scenario-bar { flex-wrap: wrap; padding: 14px; }
  .scenario-select { flex-basis: 100%; }
  .scenario-select select { max-width: calc(100% - 72px); }
  .scenario-bar .button { width: 100%; }
  .case-title-row { align-items: flex-start; }
  .case-title-main h2 { font-size: 15px; }
  .case-meta { flex-wrap: wrap; gap: 6px; font-size: 9px; }
  .case-meta span + span::before { margin-right: 6px; }
  .workflow { padding: 12px 0 0; }
  .workflow-step {
    flex-direction: column;
    gap: 5px;
    font-size: 8px;
    flex: 1 !important;
    position: relative;
  }
  .workflow-step:not(:last-child)::after {
    position: absolute;
    top: 10px;
    left: calc(50% + 14px);
    width: calc(100% - 28px);
    min-width: 0;
    margin: 0;
  }
  .check-list { grid-template-columns: 1fr; }
  .action-buttons .button { min-width: 0; font-size: 10px; }
  .history-row {
    grid-template-columns: 1fr 76px 58px;
    gap: 8px;
    padding: 12px 14px;
  }
  .history-row-scenario { display: none; }
  .history-row .button { font-size: 9px; padding: 5px 7px; }
  .toast { max-width: 90vw; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .loading-spinner { animation: none; }
}

.control-panel { margin-bottom: 20px; }
.control-heading-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 10px; }
.control-real-label { border: 1px solid #72603e; padding: 4px 7px; color: #e5c893; }
.control-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.control-inputs, .control-results { min-width: 0; padding: 18px; }
.control-results { border-left: 1px solid var(--line); }
.control-objective-label { display: block; color: #bbb; font-size: 11px; margin-bottom: 8px; }
#control-objective { display: block; width: 100%; min-height: 64px; resize: vertical; padding: 10px; border: 1px solid var(--line-strong); border-radius: 0; background: #090909; color: var(--white); font: inherit; font-size: 12px; line-height: 1.6; }
.control-check { display: flex; align-items: flex-start; gap: 9px; margin-top: 13px; font-size: 11px; line-height: 1.65; color: #bbb; cursor: pointer; }
.control-check input { flex: 0 0 auto; margin: 3px 0 0; accent-color: #e5c893; }
.control-note { margin: 12px 0 0; color: #858585; font-size: 10px; line-height: 1.75; overflow-wrap: anywhere; }
.control-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.control-stop { border-color: #8c4141; color: #ffbaba; }
.control-phase { margin: 0 0 10px; color: #ddd; font-size: 12px; line-height: 1.6; }
.control-selection { font-size: 13px; line-height: 1.7; margin: 16px 0 0; overflow-wrap: anywhere; }
#control-probabilities { margin-top: 18px; }
.control-panel.is-disabled { opacity: .7; }
@media (max-width: 680px) {
  .control-panel .panel-heading { flex-wrap: wrap; gap: 10px; }
  .control-grid { grid-template-columns: minmax(0, 1fr); }
  .control-results { border-left: 0; border-top: 1px solid var(--line); }
  .control-inputs, .control-results { padding: 14px; }
  .control-actions .button { flex: 1 1 auto; white-space: normal; font-size: 10px; }
}

/* Saved official point cloud: isolated from camera, model and motion controls. */
.pointcloud-panel { margin-bottom: 20px; overflow: hidden; background: #090909; backdrop-filter: none; box-shadow: none; }
.pointcloud-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.pointcloud-modes { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 24px 0; }
.pointcloud-modes .button[aria-pressed="true"] { border-color: #e4c98a; color: #f3e6c4; background: #2a2418; }
.pointcloud-live-summary { display: none; align-items: center; flex-wrap: wrap; gap: 8px 18px; padding: 18px 24px; color: #a5c9cd; font-size: 12px; }
.pointcloud-live-summary strong { flex: 1 1 220px; color: #ffca73; }
.pointcloud-live-notice { display: none; color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0; padding: 0 24px 16px; }
.pointcloud-panel[data-view-mode="live"] .pointcloud-live-summary { display: flex; }
.pointcloud-panel[data-view-mode="live"] .pointcloud-live-notice { display: block; }
.pointcloud-panel[data-view-mode="live"] .pointcloud-summary,
.pointcloud-panel[data-view-mode="live"] .pointcloud-notice,
.pointcloud-panel[data-view-mode="live"] .pointcloud-details,
.pointcloud-panel[data-view-mode="live"] #pointcloud-download,
.pointcloud-panel[data-view-mode="live"] #pointcloud-refresh { display: none; }
.pointcloud-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 24px; }
.pointcloud-summary h3 { margin: 2px 0 0; font-size: 25px; font-weight: 500; overflow-wrap: anywhere; }
.pointcloud-summary dl { display: flex; flex-wrap: wrap; gap: 24px; margin: 0; }
.pointcloud-summary dt, .pointcloud-details dt { color: var(--muted); font-size: 11px; }
.pointcloud-summary dd, .pointcloud-details dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.pointcloud-view { height: clamp(290px, 42vw, 470px); position: relative; isolation: isolate; background: #080e14; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#pointcloud-canvas { display: block; width: 100%; height: 100%; background: #080e14; cursor: grab; touch-action: none; outline-offset: -3px; }
#pointcloud-canvas:active { cursor: grabbing; }
#pointcloud-robot-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#pointcloud-robot-overlay[hidden] { display: none; }
.pointcloud-localization { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 24px 0; color: var(--muted); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.pointcloud-localization[data-state="tracking"] #pointcloud-localization-status { color: #ffca73; }
#pointcloud-localization-status { flex: 1 1 240px; }
.pointcloud-status { position: absolute; top: 12px; left: 16px; right: 16px; margin: 0; color: #bdcdda; font-size: 12px; pointer-events: none; }
.pointcloud-height-key { position: absolute; bottom: 12px; left: 16px; color: #b5c2ce; font-size: 11px; pointer-events: none; display: flex; align-items: center; gap: 7px; }
.pointcloud-height-key i { width: 70px; height: 5px; background: linear-gradient(90deg, #24b4dd, #57d1a1, #f8d078); }
.pointcloud-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px 24px; }
.pointcloud-bottom p { margin: 0; color: var(--muted); font-size: 12px; }
.pointcloud-notice { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0; padding: 0 24px 16px; }
.pointcloud-details { padding: 0 24px 18px; color: var(--muted); font-size: 12px; }
.pointcloud-details summary { cursor: pointer; }
.pointcloud-details dl { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 14px; margin-bottom: 0; }
#pointcloud-error { margin: 0 24px 14px; }
@media (max-width: 600px) {
  .pointcloud-panel > .panel-heading { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
  .pointcloud-summary { align-items: flex-start; flex-direction: column; padding: 14px; gap: 12px; }
  .pointcloud-summary dl { gap: 12px 20px; }
  .pointcloud-summary h3 { font-size: 22px; }
  .pointcloud-bottom { padding: 12px 14px; }
  .pointcloud-modes { padding: 12px 14px 0; }
  .pointcloud-live-summary { padding: 14px; }
  .pointcloud-live-notice { padding: 0 14px 14px; }
  .pointcloud-localization { padding: 10px 14px 0; }
  .pointcloud-notice { padding: 0 14px 14px; }
  .pointcloud-details { padding: 0 14px 14px; }
  .pointcloud-details dl { grid-template-columns: 1fr; }
  #pointcloud-error { margin: 0 14px 12px; }
}

.dashboard-layout main { max-width: 2200px; padding: 22px 28px 48px; }
.dashboard-layout .command-bar { min-height: 72px; padding: 12px 28px; gap: 18px; }
.dashboard-layout .command-status { display: flex; align-items: center; gap: 12px; }
.dashboard-layout .primary-nav { padding-top: 0; }
.dashboard-stop { border-color: #8c3438; color: #ff8e93; background: #210e11; white-space: nowrap; }
.dashboard-stop:not(:disabled):hover { border-color: #ef656c; background: #371318; }
.dashboard-motion-notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; margin-bottom: 16px; border: 1px solid #3c6370; background: #10202a; color: #c9e1ea; }
.dashboard-motion-notice > span { min-width: 0; overflow-wrap: anywhere; }
.dashboard-motion-notice.has-error { border-color: #9e383c; background: #291013; color: #ff9ea4; }
.dashboard-text-button { padding: 0; background: none; border: 0; color: #94bdce; text-decoration: underline; text-underline-offset: 3px; font-size: 11px; white-space: nowrap; }
.dashboard-layout .pointcloud-panel { margin-bottom: 20px; }
.dashboard-layout .pointcloud-view { height: clamp(320px, 38vw, 520px); }
.dashboard-layout .vision-panel { margin-bottom: 24px; }
.dashboard-layout .vision-grid { align-items: start; }
.dashboard-layout .vision-camera, .dashboard-layout .vision-observation { min-width: 0; }
.dashboard-layout #vision-preview-area { min-height: 380px; }
.dashboard-layout .vision-saved-image .vision-image-area { min-height: 72px; max-height: 104px; }
.workbench-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: start;
}
.workbench-case, .workbench-recheck { min-width: 0; }
.workbench-recheck .jev-panel { margin-bottom: 0; height: 100%; }
.workbench-recheck .jev-grid { grid-template-columns: 1fr; }
.workbench-recheck .jev-result { border-left: 0; border-top: 1px solid var(--line); }
#case-content { scroll-margin-top: 88px; }
.developer-stack { margin-top: 20px; }
.dashboard-orders { scroll-margin-top: 88px; margin-bottom: 20px; }
.dashboard-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.dashboard-section-heading h1 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: .05em; }
.dashboard-section-heading p { margin: 0; color: #8b9ca7; font-size: 12px; }
.dashboard-orders .scenario-bar { justify-content: space-between; gap: 14px; padding: 12px 16px; margin-bottom: 18px; }
.dashboard-disclosure { border: 1px solid #25303a; background: #090d12; margin: 0; min-width: 0; }
.dashboard-disclosure > summary { cursor: pointer; padding: 14px 16px; color: #a9bbc7; font-size: 12px; list-style-position: inside; }
.dashboard-disclosure > summary:focus-visible { outline: 1px solid #d6f0ff; outline-offset: -4px; }
.dashboard-disclosure[open] > summary { border-bottom: 1px solid #25303a; color: #e4eef4; }
#demo-scenario-settings { border: 0; background: none; margin: 0; flex: 1; min-width: 0; }
#demo-scenario-settings .scenario-select { margin: 0; }
.dashboard-layout .history-panel { margin-top: 0; margin-bottom: 20px; }
.dashboard-layout .app-shell:fullscreen { background: #030608; overflow: auto; }
.dashboard-layout .app-shell:fullscreen main { max-width: none; padding: 14px 20px; }
.dashboard-layout .app-shell:fullscreen #work-orders,
.dashboard-layout .app-shell:fullscreen #history,
.dashboard-layout .app-shell:fullscreen #developer-tools { display: none; }
.dashboard-layout .app-shell:fullscreen[data-screen-focus="camera"] #pointcloud-panel,
.dashboard-layout .app-shell:fullscreen[data-screen-focus="map"] #vision-panel { display: none; }
.dashboard-layout .app-shell:fullscreen[data-screen-focus="camera"] #vision-panel,
.dashboard-layout .app-shell:fullscreen[data-screen-focus="map"] #pointcloud-panel { margin-bottom: 0; }
.dashboard-layout .app-shell:fullscreen[data-screen-focus="map"] .pointcloud-view { height: calc(100svh - 220px); }
@media (min-width: 1800px) {
  .dashboard-layout .command-bar { padding-left: 36px; padding-right: 36px; }
  .dashboard-layout main { padding-left: 36px; padding-right: 36px; }
}
@media (max-width: 1100px) {
  .dashboard-layout .command-bar { flex-wrap: wrap; gap: 10px; padding: 12px 18px; }
  .dashboard-layout .command-status { margin-left: auto; }
  .workbench-row { grid-template-columns: minmax(0, 1.05fr) minmax(240px, 1fr); }
}
@media (max-width: 990px) {
  .workbench-row { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .dashboard-layout .command-bar { display: flex; flex-wrap: wrap; justify-content: space-between; }
  .dashboard-layout main { padding: 16px 14px 32px; }
  .dashboard-layout .command-status { flex-direction: row; width: 100%; justify-content: flex-end; gap: 8px; }
  .dashboard-layout .command-status .simulation-badge { display: none; }
  .dashboard-layout .command-status .button { min-height: 32px; font-size: 11px; padding: 6px 9px; }
  .dashboard-layout .primary-nav { gap: 0; }
  .dashboard-layout .nav-item { padding: 6px 8px; }
  .dashboard-section-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .dashboard-section-heading h1 { font-size: 20px; }
  .dashboard-orders .scenario-bar { flex-wrap: wrap; }
  .dashboard-orders .scenario-bar > .button { width: 100%; }
  .dashboard-orders #demo-scenario-settings { min-width: 0; flex-basis: 100%; }
  #demo-scenario-settings .scenario-select select { max-width: 100%; width: 100%; }
}
@keyframes ambient-drift {
  from { background-position: 0% 0%, 100% 0%, 78% 100%, 6% 100%; }
  to { background-position: 18% 12%, 72% 18%, 48% 72%, 24% 64%; }
}

@keyframes light-flow {
  0%, 100% { background-position: 0% 42%; opacity: 0.55; }
  50% { background-position: 100% 58%; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-layout { scroll-behavior: auto; }
  body::before, body::after { animation: none; }
}

.dashboard-layout { font-size: 15px; line-height: 1.6; letter-spacing: 0; }
.dashboard-layout .brand-type { font-size: 20px; font-weight: 650; letter-spacing: .12em; }
.dashboard-layout .brand-type > span { margin-top: 5px; font-size: 12px; font-weight: 500; letter-spacing: .2em; }
.dashboard-layout .nav-item { font-size: 14px; font-weight: 500; letter-spacing: .01em; text-transform: none; }
.dashboard-layout .simulation-badge { font-size: 11px; letter-spacing: .12em; }
.dashboard-layout .robot-connection h2 { font-size: 12px; letter-spacing: .14em; }
.dashboard-layout .robot-status,
.dashboard-layout .robot-connection-details { font-size: 12px; letter-spacing: .01em; }
.dashboard-layout .panel-heading h2 { font-size: 16px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.dashboard-layout .section-number { font-size: 11px; font-weight: 600; letter-spacing: .16em; }
.dashboard-layout .pointcloud-panel .panel-heading h2 { font-size: 20px; }
.dashboard-layout .pointcloud-summary h3 { font-size: 34px; font-weight: 520; letter-spacing: -.02em; }
.dashboard-layout .pointcloud-summary dt,
.dashboard-layout .pointcloud-details dt { font-size: 12px; letter-spacing: .04em; }
.dashboard-layout .pointcloud-summary dd,
.dashboard-layout .pointcloud-details dd { font-size: 15px; }
.dashboard-layout .pointcloud-notice,
.dashboard-layout .pointcloud-bottom p,
.dashboard-layout .pointcloud-status,
.dashboard-layout .pointcloud-details { font-size: 13px; line-height: 1.7; letter-spacing: 0; }
.dashboard-layout .vision-panel .panel-heading h2,
.dashboard-layout .jev-panel .panel-heading h2 { font-size: 18px; }
.dashboard-layout .vision-mode { font-size: 11px; letter-spacing: .12em; }
.dashboard-layout .vision-status { font-size: 13px; letter-spacing: 0; }
.dashboard-layout .vision-area-heading h3 { font-size: 15px; font-weight: 600; letter-spacing: .02em; text-transform: none; }
.dashboard-layout .vision-area-heading > span,
.dashboard-layout .vision-preview-status { font-size: 12px; letter-spacing: .02em; }
.dashboard-layout .vision-inspection-group > summary { font-size: 14px; }
.dashboard-layout .vision-inspection-check-heading > strong { font-size: 13px; }
.dashboard-layout .vision-review,
.dashboard-layout .vision-inspection-reason,
.dashboard-layout .vision-inspection-notes { font-size: 13px; line-height: 1.65; letter-spacing: 0; }
.dashboard-layout .dashboard-section-heading h1 { font-size: 30px; font-weight: 560; letter-spacing: -.015em; text-transform: none; }
.dashboard-layout .dashboard-section-heading p { font-size: 14px; letter-spacing: 0; }
.dashboard-layout .case-title-main h2 { font-size: 22px; font-weight: 620; letter-spacing: 0; }
.dashboard-layout .case-meta { font-size: 13px; letter-spacing: 0; }
.dashboard-layout .decision-callout h3 { font-size: 18px; letter-spacing: 0; }
.dashboard-layout .decision-callout p,
.dashboard-layout .check-detail summary { font-size: 14px; letter-spacing: 0; line-height: 1.65; }
.dashboard-layout .check-item p,
.dashboard-layout .action-tip,
.dashboard-layout .timeline-event p,
.dashboard-layout .jev-note,
.dashboard-layout .jev-empty { font-size: 13px; letter-spacing: 0; line-height: 1.65; }
.dashboard-layout .event-heading h3 { font-size: 14px; }
.dashboard-layout .event-heading time { font-size: 12px; }
.dashboard-layout .action-label { font-size: 12px; letter-spacing: .08em; }
.dashboard-layout .jev-recommendation { font-size: 16px; }
.dashboard-layout .history-panel .panel-heading h2 { font-size: 16px; }
.dashboard-layout #history-subtitle { font-size: 13px; letter-spacing: 0; }
.dashboard-layout .history-row { font-size: 14px; }
.dashboard-layout .history-row-title { font-size: 16px; }
.dashboard-layout .history-row-title small { font-size: 12px; }
.dashboard-layout .history-row time,
.dashboard-layout .history-row-scenario { font-size: 13px; }
.dashboard-layout .button { font-size: 14px; letter-spacing: .01em; font-weight: 550; }
.dashboard-layout .button.small { font-size: 13px; }
@media (max-width: 800px) {
  .dashboard-layout .brand-type { font-size: 18px; letter-spacing: .08em; }
  .dashboard-layout .nav-item { font-size: 13px; }
  .dashboard-layout .pointcloud-summary h3 { font-size: 26px; }
  .dashboard-layout .dashboard-section-heading h1 { font-size: 24px; }
  .dashboard-layout .pointcloud-panel .panel-heading h2,
  .dashboard-layout .case-title-main h2 { font-size: 18px; }
}
