:root {
  --ink: #122220;
  --ink-soft: #52615e;
  --muted: #7d8986;
  --line: #dfe5e2;
  --panel: #ffffff;
  --canvas: #f3f5f2;
  --sidebar: #10201e;
  --sidebar-soft: #19302d;
  --mint: #72e5ba;
  --mint-dark: #146b54;
  --orange: #ff7a45;
  --amber: #f2ad3f;
  --red: #df5c56;
  --shadow: 0 18px 55px rgba(19, 43, 38, 0.08);
  --radius-lg: 18px;
  --radius-md: 13px;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 244px;
  display: flex;
  flex-direction: column;
  padding: 27px 18px 20px;
  color: #dbe9e5;
  background:
    radial-gradient(circle at 20% 10%, rgba(64, 160, 127, 0.18), transparent 28%),
    linear-gradient(180deg, #122522 0%, #0d1b1a 100%);
  z-index: 10;
}

.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 30px; }
.brand strong { display: block; color: #fff; font-size: 18px; letter-spacing: -0.4px; }
.brand small { display: block; margin-top: 3px; color: #73918a; font-size: 12px; letter-spacing: 1.55px; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 3px;
  padding: 8px;
  border-radius: 9px;
  background: var(--mint);
  transform: skew(-6deg);
}
.brand-mark span { display: block; border-radius: 2px; background: #133b32; }
.brand-mark span:nth-child(1) { height: 45%; }
.brand-mark span:nth-child(2) { height: 100%; }
.brand-mark span:nth-child(3) { height: 70%; }

.nav-groups { flex: 1; }
.nav-group + .nav-group { margin-top: 32px; }
.nav-label { margin: 0 12px 10px; color: #64817a; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; }
.nav-item {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 4px 0;
  padding: 0 12px;
  border-radius: 10px;
  color: #a9bcb7;
  font-size: 13px;
  transition: 160ms ease;
}
a.nav-item:hover { color: white; background: rgba(255, 255, 255, 0.05); }
.nav-item.active { color: #f7fffc; background: var(--sidebar-soft); box-shadow: inset 3px 0 var(--mint); }
.nav-icon { width: 19px; color: #71928a; font-size: 17px; text-align: center; }
.nav-item.active .nav-icon { color: var(--mint); }
.nav-count { margin-left: auto; min-width: 22px; padding: 3px 6px; border-radius: 10px; color: #173f35; background: var(--mint); font-size: 12px; font-weight: 800; text-align: center; }
.nav-item.muted { opacity: 0.56; cursor: default; }
.nav-item em { margin-left: auto; font-size: 12px; font-style: normal; color: #59766f; }

.sidebar-foot { display: grid; gap: 13px; }
.demo-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(114, 229, 186, 0.14);
  border-radius: 12px;
  background: rgba(114, 229, 186, 0.06);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(114, 229, 186, 0.08); }
.demo-badge strong, .profile strong { display: block; font-size: 13px; color: #dceae6; }
.demo-badge small, .profile small { display: block; margin-top: 3px; font-size: 12px; color: #708c85; }
.profile { display: flex; align-items: center; gap: 10px; padding: 10px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: #0d3028; background: #b8e9d7; font-size: 12px; font-weight: 800; }

.main { margin-left: 244px; min-height: 100vh; padding: 0 34px 28px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 30px 0 24px; }
.topbar h1 { margin: 7px 0 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; letter-spacing: -1.2px; }
.eyebrow { margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.eyebrow span { color: var(--mint-dark); }
.eyebrow b { padding: 0 7px; color: #b3bdbb; font-weight: 400; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.dataset-pill, .doc-link, .engine-pill { padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,0.72); color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.dataset-pill i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--mint-dark); }
.engine-pill { color: #276654; background: #ebf6f1; border-color: #d3e8df; }
.engine-pill i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--amber); }
.engine-pill.openai i { background: #2eac7e; box-shadow: 0 0 0 3px rgba(46,172,126,0.11); }
.doc-link:hover { border-color: #a9bbb6; background: white; }

.notice {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
  padding: 11px 14px;
  border: 1px solid #d9e8e1;
  border-radius: 11px;
  background: #ebf6f1;
  color: #3e5d55;
  font-size: 12px;
}
.notice p { flex: 1; margin: 0; }
.notice-icon { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--mint-dark); font-size: 13px; font-weight: 800; }
.notice-tag { color: #1a6753; font-size: 12px; font-weight: 800; letter-spacing: 0.7px; }

.loop-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 16px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.78);
  box-shadow: 0 8px 25px rgba(19,43,38,0.035);
}
.loop-step { position: relative; display: flex; align-items: center; gap: 9px; min-width: 0; color: #87938f; }
.loop-step > span { position: relative; z-index: 1; width: 28px; height: 28px; display: grid; flex: 0 0 28px; place-items: center; border: 1px solid #dce4e1; border-radius: 9px; background: #f7f9f8; font: 700 12px ui-monospace, monospace; }
.loop-step > i { position: absolute; z-index: 0; top: 50%; left: 28px; right: 10px; height: 1px; background: #e2e7e5; }
.loop-step div { position: relative; z-index: 1; padding-right: 14px; background: rgba(255,255,255,0.92); }
.loop-step strong, .loop-step small { display: block; white-space: nowrap; }
.loop-step strong { color: #66736f; font-size: 12px; }
.loop-step small { margin-top: 2px; font-size: 11px; }
.loop-step.done > span { border-color: #b8dccf; color: #1d725a; background: #e8f5f0; }
.loop-step.done > i { background: #9bcbb9; }
.loop-step.done strong { color: #345f53; }
.loop-step.current > span { border-color: #1c725a; color: white; background: #1c725a; box-shadow: 0 0 0 4px rgba(28,114,90,0.08); }
.loop-step.current strong { color: #173f35; }
.loop-step.current small { color: #1e785e; font-weight: 700; }

.workspace { display: grid; grid-template-columns: 244px minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); box-shadow: var(--shadow); overflow: hidden; }
.case-rail { padding: 21px 16px; border-right: 1px solid var(--line); background: #f8faf8; }
.section-heading { display: flex; align-items: center; justify-content: space-between; }
.section-heading h2 { margin: 3px 0 0; font-size: 16px; }
.kicker { margin: 0; color: #84928e; font-size: 12px; font-weight: 800; letter-spacing: 1.6px; }
.queue-count { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: #286453; background: #e3f3ec; font-size: 12px; font-weight: 800; }
.search-box { display: flex; align-items: center; gap: 8px; margin: 17px 0 12px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: white; color: #8b9894; }
.search-box:focus-within { border-color: #83bda8; box-shadow: 0 0 0 3px rgba(114, 229, 186, 0.12); }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.search-box input::placeholder { color: #a4aeab; }
.case-list { display: grid; gap: 8px; }
.case-item { width: 100%; padding: 13px 12px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--ink); text-align: left; transition: 160ms ease; }
.case-item:hover { border-color: #d7e2de; background: white; }
.case-item.active { border-color: #bcdacc; background: white; box-shadow: 0 8px 20px rgba(28, 73, 61, 0.07); }
.case-item.open-data { border-color: #b7d6ca; background: linear-gradient(145deg, #f6fbf8, #edf7f3); }
.case-item.open-data::after { content: "REAL DATA"; display: inline-block; margin-top: 9px; padding: 3px 5px; border-radius: 4px; color: white; background: #28745e; font-size: 11px; font-weight: 800; letter-spacing: 0.5px; }
.case-item.open-data.fixture-case { border-color: #dbc78f; background: linear-gradient(145deg, #fffdf7, #faf4e6); }
.case-item.open-data.fixture-case::after { content: "REAL DATA + SIMULATED PREDICTION"; background: #936923; }
.case-item.open-data.official-prediction-case { border-color: #8fb7d1; background: linear-gradient(145deg, #f5faff, #eaf4fa); }
.case-item.open-data.official-prediction-case::after { content: "REAL DATA + OFFICIAL BASELINE PREDICTION"; background: #24698f; }
.case-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; color: #7f8c89; font-size: 12px; }
.case-item-top span:first-child { flex: 0 0 auto; color: var(--red); font-weight: 800; }
.case-item-top span:last-child { min-width: 0; line-height: 1.35; overflow-wrap: anywhere; text-align: right; }
.case-item.open-data .case-item-top span:first-child { color: #28745e; }
.case-item.fixture-case .case-item-top span:first-child { color: #936923; }
.case-item.official-prediction-case .case-item-top span:first-child { color: #24698f; }
.case-item h3 { margin: 9px 0 6px; font-size: 13px; line-height: 1.45; }
.case-item p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.case-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 9px; }
.case-tags span { padding: 3px 5px; border-radius: 4px; color: #59716a; background: #edf2f0; font-size: 11px; }
.case-empty { padding: 24px 8px; color: var(--muted); font-size: 12px; text-align: center; }

.case-detail { min-width: 0; padding: 25px 27px 32px; }
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.case-meta-line { display: flex; align-items: center; gap: 9px; color: #778581; font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.severity { padding: 3px 6px; border-radius: 5px; color: white; background: var(--red); font-size: 12px; font-weight: 800; }
.severity.shadow { background: #24755d; }
.severity.fixture { background: #8b6428; }
.severity.official-prediction { background: #24698f; }
.meta-divider { width: 1px; height: 10px; background: var(--line); }
.detail-head h2 { margin: 10px 0 6px; font-size: 22px; letter-spacing: -0.55px; }
.detail-head p { max-width: 690px; margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.data-provenance { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 9px; }
.data-provenance > span { padding: 4px 6px; border-radius: 5px; color: white; background: #26745c; font-size: 11px; font-weight: 800; letter-spacing: 0.6px; }
.data-provenance.simulation > span { background: #8b6428; }
.data-provenance.official-prediction > span { background: #24698f; }
.data-provenance a { color: #17634e; font-size: 12px; font-weight: 800; }
.data-provenance a:hover { text-decoration: underline; }
.data-provenance small { color: #87938f; font-size: 11px; }
.ghost-button { padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink-soft); font-size: 12px; }
.ghost-button:hover { border-color: #a7bab5; }

.evidence-gate { margin-top: 18px; padding: 17px; border: 1px solid #bcd4ca; border-radius: 14px; background: linear-gradient(135deg, #f2f8f5 0%, #ffffff 52%, #f7f3ea 100%); box-shadow: 0 9px 24px rgba(25, 71, 59, 0.05); }
.evidence-gate-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.evidence-gate-head h3 { margin: 4px 0 0; font-size: 16px; }
.evidence-gate-head > span { min-width: 43px; padding: 7px 10px; border: 1px solid #88bca9; border-radius: 8px; color: white; background: #26785f; font: 800 13px ui-monospace, monospace; text-align: center; }
.evidence-gate-head > span.level-l0 { border-color: #c4a45f; background: #9a712a; }
.evidence-gate-flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 7px; margin-top: 14px; }
.evidence-gate-flow > i { align-self: center; color: #9ca9a5; font-size: 15px; font-style: normal; }
.gate-node { position: relative; min-width: 0; padding: 10px; border: 1px solid #dce5e1; border-radius: 10px; background: rgba(255,255,255,0.88); }
.gate-node > span { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; color: #60716b; background: #edf2f0; font: 800 11px ui-monospace, monospace; }
.gate-node strong, .gate-node small { display: block; }
.gate-node strong { margin-top: 8px; font-size: 13px; }
.gate-node small { margin-top: 4px; color: #71807b; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.gate-node em { display: inline-block; margin-top: 8px; padding: 3px 5px; border-radius: 4px; color: #52635e; background: #edf1ef; font: 800 11px ui-monospace, monospace; font-style: normal; }
.gate-node.ready { border-color: #bcdbcf; background: #f7fcfa; }
.gate-node.ready > span, .gate-node.ready em { color: #1f6c55; background: #dff1ea; }
.gate-node.missing { border-color: #e0c58f; background: #fffaf0; }
.gate-node.missing > span, .gate-node.missing em { color: #8b6421; background: #f7e9ca; }
.gate-node.pending { border-style: dashed; }
.evidence-gate-summary { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding: 10px 11px; border-radius: 9px; background: #eaf4f0; }
.evidence-gate-summary > span { flex: 0 0 auto; padding: 4px 6px; border-radius: 5px; color: white; background: #27775f; font-size: 11px; font-weight: 800; letter-spacing: 0.45px; }
.evidence-gate-summary > span.simulation { background: #8d6729; }
.evidence-gate-summary > span.official-prediction { background: #24698f; }
.evidence-gate-summary p { margin: 0; color: #49635b; font-size: 13px; line-height: 1.55; }
.evidence-gate-evaluation { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 9px; }
.evidence-gate-evaluation > div { min-width: 0; padding: 9px 10px; border: 1px solid #e2e7e4; border-radius: 8px; background: white; }
.evidence-gate-evaluation span, .evidence-gate-evaluation strong { display: block; }
.evidence-gate-evaluation span { color: #84908d; font: 800 11px ui-monospace, monospace; }
.evidence-gate-evaluation strong { margin-top: 5px; overflow-wrap: anywhere; color: #304d44; font-size: 13px; }
.evidence-gate-lineage { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.evidence-gate-lineage span { max-width: 100%; padding: 5px 7px; border: 1px solid #dde5e2; border-radius: 6px; color: #687772; background: rgba(255,255,255,0.78); font: 700 11px ui-monospace, monospace; overflow-wrap: anywhere; }
.evidence-gate-lineage b { margin-right: 5px; color: #27725b; }

.scenario-taxonomy { margin-top: 18px; padding: 16px; border: 1px solid #d7e3df; border-radius: 13px; background: linear-gradient(135deg, #f7fbf9, #fcfdfc); }
.taxonomy-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.taxonomy-head h3 { margin: 4px 0 0; font-size: 15px; }
.taxonomy-head > span { padding: 6px 8px; border: 1px solid #c8dbd4; border-radius: 7px; color: #24644f; background: #eaf5f0; font: 700 12px ui-monospace, monospace; text-align: right; }
.taxonomy-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 13px; }
.taxonomy-grid > div { min-width: 0; padding: 10px 11px; border: 1px solid #e1e8e5; border-radius: 9px; background: white; }
.taxonomy-grid span, .taxonomy-grid strong { display: block; }
.taxonomy-grid span { color: #7c8b87; font-size: 12px; }
.taxonomy-grid strong { margin-top: 5px; color: #304944; font-size: 12px; line-height: 1.5; }
.taxonomy-grid > div:nth-last-child(-n + 2) { border-color: #cfe0da; background: #f3f8f6; }
.taxonomy-note { margin: 10px 2px 0; color: #70807b; font-size: 12px; line-height: 1.55; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin: 20px 0 12px; }
.metric-card { position: relative; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfb; overflow: hidden; }
.metric-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: #aab8b4; }
.metric-card.warning::before { background: var(--amber); }
.metric-card.danger::before { background: var(--red); }
.metric-card.success::before { background: #43af83; }
.metric-card span { display: block; color: var(--muted); font-size: 12px; }
.metric-card strong { display: inline-block; margin-top: 7px; font-size: 19px; letter-spacing: -0.4px; }
.metric-card em { margin-left: 4px; color: #71807c; font-size: 12px; font-style: normal; }

.evidence-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.8fr); gap: 12px; }
.scene-card, .timeline-card { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: white; }
.card-topline { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; color: #7d8b87; background: #f7f9f8; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.card-topline div { display: flex; align-items: center; gap: 7px; color: #4a5d58; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(223, 92, 86, 0.12); }
.scene-visual { position: relative; height: 240px; overflow: hidden; background: linear-gradient(180deg, #183a3b 0%, #38514d 42%, #25312f 43%, #0f1817 100%); }
.open-data-image { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #111817; }
.scene-visual.open-data-scene { height: clamp(280px, 32vw, 355px); background: #111817; }
.open-data-scene .sky-glow, .open-data-scene .rain, .open-data-scene .road, .open-data-scene .vehicle, .open-data-scene .detection-box { display: none; }
.open-data-scene.asset-missing::after { content: "真实数据资源未导入 · 运行 npm run data:nuscenes"; position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; color: #a8c6bd; background: #142622; font-size: 12px; text-align: center; }
.open-data-scene .hud { z-index: 3; }
.sky-glow { position: absolute; width: 70%; height: 80%; left: 15%; top: -50%; border-radius: 50%; background: rgba(238, 197, 140, 0.22); filter: blur(28px); }
.road { position: absolute; left: 7%; right: 7%; bottom: -25%; height: 79%; background: linear-gradient(180deg, #323b3a, #121817); clip-path: polygon(37% 0, 63% 0, 100% 100%, 0 100%); }
.lane { position: absolute; top: 12%; width: 2px; height: 95%; opacity: 0.7; background: repeating-linear-gradient(180deg, #c7d2cf 0 18px, transparent 18px 42px); }
.lane-left { left: 38%; transform: rotate(12deg); }
.lane-right { right: 38%; transform: rotate(-12deg); }
.rain { position: absolute; inset: -30%; background: repeating-linear-gradient(110deg, transparent 0 17px, rgba(210, 237, 232, 0.16) 18px 19px, transparent 20px 38px); transform: rotate(-3deg); }
.rain-b { left: 20%; opacity: 0.5; transform: rotate(-8deg) scale(0.8); }
.vehicle { position: absolute; width: 56px; height: 30px; border-radius: 7px 7px 3px 3px; box-shadow: 0 9px 20px rgba(0,0,0,0.48); }
.vehicle::before, .vehicle::after { content: ""; position: absolute; bottom: 2px; width: 5px; height: 5px; border-radius: 50%; background: #ff6c52; box-shadow: 0 0 8px #ff6c52; }
.vehicle::before { left: 7px; }
.vehicle::after { right: 7px; }
.vehicle span { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); color: #a5d9c9; font-size: 11px; font-family: ui-monospace, monospace; white-space: nowrap; }
.vehicle.ego { left: 42%; bottom: 10px; width: 74px; height: 40px; background: linear-gradient(145deg, #60736e, #283634); }
.vehicle.target { left: 56%; bottom: 105px; width: 47px; height: 26px; transform: rotate(-9deg); background: linear-gradient(145deg, #9a9387, #4f514d); }
.scene-visual.pedestrian-scene { background: linear-gradient(180deg, #765f51 0%, #c18b69 35%, #4e5650 43%, #101817 100%); }
.pedestrian-scene .sky-glow { top: -42%; left: 34%; background: rgba(255, 205, 143, 0.48); }
.pedestrian-scene .rain { display: none; }
.pedestrian-scene .vehicle.target { left: 59%; bottom: 94px; width: 12px; height: 28px; border-radius: 6px 6px 3px 3px; background: #212927; transform: rotate(2deg); box-shadow: 0 7px 13px rgba(0,0,0,0.42); }
.pedestrian-scene .vehicle.target::before { left: 1px; top: -9px; bottom: auto; width: 10px; height: 10px; border-radius: 50%; background: #27312e; box-shadow: none; }
.pedestrian-scene .vehicle.target::after { left: 7px; right: auto; bottom: -9px; width: 3px; height: 11px; border-radius: 2px; background: #202725; box-shadow: -6px 0 #202725; }
.pedestrian-scene .vehicle.target span { top: -24px; color: #ffe1bd; }
.pedestrian-scene .detection-box { left: 55.2%; bottom: 82px; width: 50px; height: 65px; border-color: #ff9d65; }
.pedestrian-scene .detection-box span { background: #d36d4f; }
.detection-box { position: absolute; left: 53.5%; bottom: 96px; width: 69px; height: 52px; border: 1px solid var(--orange); box-shadow: inset 0 0 16px rgba(255,122,69,0.07); }
.detection-box::before, .detection-box::after { content: ""; position: absolute; width: 8px; height: 8px; border-color: #ffd0bc; }
.detection-box::before { left: -1px; top: -1px; border-left: 2px solid; border-top: 2px solid; }
.detection-box::after { right: -1px; bottom: -1px; border-right: 2px solid; border-bottom: 2px solid; }
.detection-box span { position: absolute; top: -14px; left: -1px; padding: 2px 4px; color: white; background: var(--orange); font-size: 11px; font-family: ui-monospace, monospace; white-space: nowrap; }
.hud { position: absolute; top: 12px; padding: 4px 6px; color: #b9d6ce; background: rgba(9,24,21,0.65); border: 1px solid rgba(182,225,211,0.12); border-radius: 4px; font-family: ui-monospace, monospace; font-size: 11px; }
.hud-left { left: 12px; }
.hud-right { right: 12px; }
.playback { display: flex; align-items: center; gap: 8px; padding: 9px 12px; color: #87928f; background: #f8faf9; font-size: 11px; }
.playback button { width: 22px; height: 22px; border: 0; border-radius: 50%; color: white; background: #1d3732; font-size: 11px; }
.scrubber { position: relative; flex: 1; height: 3px; border-radius: 2px; background: #dfe6e3; }
.scrubber i { position: absolute; left: 0; top: 0; width: 63%; height: 100%; border-radius: 2px; background: var(--mint-dark); }
.scrubber b { position: absolute; left: 62%; top: 50%; width: 8px; height: 8px; border: 2px solid white; border-radius: 50%; background: var(--mint-dark); transform: translateY(-50%); box-shadow: 0 0 0 1px var(--mint-dark); }
.playback em { color: #60716c; font-style: normal; }
.open-data-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 9px 10px 11px; border-top: 1px solid #e0e6e3; background: #f7f9f8; }
.open-data-gallery button { min-width: 0; padding: 5px; border: 1px solid #dce4e1; border-radius: 7px; color: #66746f; background: white; text-align: left; }
.open-data-gallery button.active { border-color: #39866d; box-shadow: 0 0 0 2px rgba(57,134,109,0.09); }
.open-data-gallery img { width: 100%; height: 42px; display: block; border-radius: 4px; object-fit: cover; background: #15231f; }
.open-data-gallery span { display: block; margin-top: 5px; overflow: hidden; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.timeline-card { padding: 16px; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; }
.card-title-row h3 { margin: 4px 0 0; font-size: 13px; }
.source-count { padding: 4px 6px; border-radius: 5px; color: #477366; background: #edf6f2; font-size: 11px; }
.timeline { position: relative; margin-top: 14px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: #dde4e1; }
.timeline-item { position: relative; padding: 0 0 15px 22px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: 2px; top: 4px; width: 9px; height: 9px; border: 2px solid white; border-radius: 50%; background: #8fa09b; box-shadow: 0 0 0 1px #bdc9c5; }
.timeline-item.warning .timeline-dot { background: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.timeline-item.danger .timeline-dot { background: var(--red); box-shadow: 0 0 0 1px var(--red); }
.timeline-item.success .timeline-dot { background: #43af83; box-shadow: 0 0 0 1px #43af83; }
.timeline-time { color: #86938f; font-size: 11px; font-family: ui-monospace, monospace; }
.timeline-item h4 { margin: 3px 0; font-size: 12px; }
.timeline-item p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }

.copilot-card { margin-top: 12px; padding: 18px; border: 1px solid #c9ddd5; border-radius: 14px; background: linear-gradient(135deg, #f4faf7 0%, #fbfcfb 55%, #f8f5ef 100%); }
.copilot-head { display: flex; align-items: center; gap: 11px; }
.copilot-head h3 { margin: 3px 0 0; font-size: 14px; }
.ai-orbit { position: relative; width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid #8ac6b2; border-radius: 50%; color: #164f40; background: #dff5ec; }
.ai-orbit i { position: absolute; inset: -4px; border: 1px dashed rgba(20,107,84,0.3); border-radius: 50%; }
.ai-orbit b { font-size: 12px; }
.guardrail-chip { margin-left: auto; padding: 5px 8px; border-radius: 20px; color: #28705d; background: #dff3eb; font-size: 12px; font-weight: 700; }
.prompt-chips { display: flex; gap: 7px; flex-wrap: wrap; margin: 15px 0 9px 50px; }
.prompt-chips button { padding: 7px 9px; border: 1px solid #d4e2dd; border-radius: 8px; color: #48635c; background: rgba(255,255,255,0.75); font-size: 12px; }
.prompt-chips button:hover { border-color: #78b49f; color: #155846; background: white; }
.prompt-form { margin-left: 50px; border: 1px solid #cfdcd7; border-radius: 11px; background: white; box-shadow: 0 5px 16px rgba(37, 79, 66, 0.05); overflow: hidden; }
.prompt-form:focus-within { border-color: #75b39e; box-shadow: 0 0 0 3px rgba(114, 229, 186, 0.12); }
.prompt-form textarea { width: 100%; min-height: 67px; display: block; padding: 13px 14px 5px; border: 0; outline: 0; resize: vertical; color: var(--ink); background: transparent; font-size: 12px; line-height: 1.6; }
.prompt-form textarea::placeholder { color: #9ca7a4; }
.prompt-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 5px 7px 7px 14px; }
.prompt-actions > span { color: #8a9693; font-size: 11px; }
.primary-button { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 0; border-radius: 8px; color: white; background: #163d34; font-size: 12px; font-weight: 700; box-shadow: 0 6px 14px rgba(22,61,52,0.17); }
.primary-button:hover { background: #0c2f27; transform: translateY(-1px); }
.primary-button:disabled { opacity: 0.65; cursor: wait; transform: none; }
.primary-button b { color: var(--mint); font-size: 13px; }
.analysis-error { margin: 10px 0 0 50px; padding: 10px 12px; border: 1px solid #f0c4bf; border-radius: 9px; color: #8c3f39; background: #fff2f0; font-size: 12px; line-height: 1.5; }

.analysis-empty { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; padding: 22px; border: 1px dashed #d5ddda; border-radius: 12px; color: #788581; background: #fafbfa; }
.empty-mark { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 10px; color: #397765; background: #e9f4f0; }
.analysis-empty strong { color: #53645f; font-size: 12px; }
.analysis-empty p { margin: 4px 0 0; font-size: 12px; }

.analysis-result { margin-top: 16px; padding-top: 3px; animation: reveal 420ms ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.result-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 19px 20px; border-radius: 14px 14px 0 0; color: #e7f2ef; background: linear-gradient(120deg, #132d29, #1d4940); }
.result-heading h2 { margin: 5px 0 6px; color: white; font-size: 19px; }
.result-heading #result-headline { max-width: 650px; margin: 0; color: #b9ccc7; font-size: 13px; line-height: 1.6; }
.ai-summary { max-width: 720px; margin-top: 10px; padding: 9px 11px; border-left: 3px solid #76b9a1; border-radius: 0 8px 8px 0; background: rgba(224, 244, 237, 0.09); }
.ai-summary span { color: #88d1b7; font: 800 11px ui-monospace, monospace; letter-spacing: 0.6px; }
.ai-summary p { margin: 4px 0 0; color: #c3d7d1; font-size: 13px; line-height: 1.55; }
.ai-summary-refs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.ai-summary-refs span { border: 1px solid rgba(64, 224, 183, .24); border-radius: 999px; padding: 2px 7px; color: #82d8c1; font-family: ui-monospace, monospace; font-size: 11px; }
.result-engine { display: inline-block; margin-top: 9px; padding: 4px 7px; border: 1px solid rgba(114,229,186,0.16); border-radius: 5px; color: #8fd6bd; font-size: 11px; font-family: ui-monospace, monospace; }
.decision-badge { display: flex; align-items: center; gap: 9px; min-width: 142px; padding: 9px 11px; border: 1px solid rgba(114,229,186,0.2); border-radius: 10px; background: rgba(114,229,186,0.07); }
.decision-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px rgba(242,173,63,0.1); }
.decision-badge small, .decision-badge strong { display: block; }
.decision-badge small { color: #91aaa4; font-size: 11px; }
.decision-badge strong { margin-top: 2px; color: #f5d69b; font-size: 12px; }
.decision-badge.accepted i { background: var(--mint); box-shadow: 0 0 0 5px rgba(114,229,186,0.1); }
.decision-badge.accepted strong { color: #9ce4c8; }
.decision-badge.rejected i { background: #ff8a7f; box-shadow: 0 0 0 5px rgba(255,138,127,0.1); }
.decision-badge.rejected strong { color: #ffc0ba; }
.confidence-strip { display: grid; grid-template-columns: minmax(145px, max-content) 1fr; align-items: center; gap: 20px; padding: 13px 20px; border: 1px solid #dce4e1; border-top: 0; background: #f7faf9; }
.confidence-strip span { display: block; color: var(--muted); font-size: 11px; }
.confidence-strip strong { display: block; margin-top: 2px; color: var(--mint-dark); font-size: 15px; }
.confidence-strip p { margin: 0; color: #74817e; font-size: 12px; line-height: 1.5; }
.result-section { padding: 22px 20px; border: 1px solid var(--line); border-top: 0; background: white; }
.result-section-title { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.result-section-title > span { color: #9eb0aa; font-family: ui-monospace, monospace; font-size: 12px; }
.result-section-title h3 { margin: 0; font-size: 13px; }
.result-section-title p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.hypothesis-list { display: grid; gap: 9px; }
.hypothesis-card { display: grid; grid-template-columns: 100px 1fr auto; align-items: center; gap: 14px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfb; }
.hypothesis-score { padding-right: 13px; border-right: 1px solid var(--line); }
.hypothesis-score span { display: block; color: var(--muted); font-size: 11px; }
.hypothesis-score strong { display: block; margin-top: 4px; font-size: 13px; line-height: 1.35; }
.hypothesis-copy h4 { margin: 0 0 4px; font-size: 12px; }
.hypothesis-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.evidence-refs { display: flex; gap: 4px; }
.evidence-refs span { padding: 4px 6px; border-radius: 5px; color: #266a56; background: #e9f5f0; font-size: 11px; font-family: ui-monospace, monospace; }
.hypothesis-level { justify-self: end; padding: 5px 7px; border-radius: 12px; color: #916721; background: #fbf1d9; font-size: 11px; font-weight: 800; }
.evidence-table-wrap { overflow-x: auto; }
.evidence-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.evidence-table th { padding: 8px 9px; color: #87938f; background: #f5f7f6; font-weight: 700; text-align: left; white-space: nowrap; }
.evidence-table td { padding: 10px 9px; border-bottom: 1px solid #edf0ef; color: #51615d; line-height: 1.5; vertical-align: top; }
.evidence-table td:first-child { color: var(--mint-dark); font-family: ui-monospace, monospace; font-weight: 800; }
.evidence-table td strong { display: block; color: #344641; font-size: 12px; }
.evidence-table td small { display: block; margin-top: 2px; color: #8b9693; font-size: 11px; }
.task-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.task-card { position: relative; min-height: 150px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfb; }
.task-card-top { display: flex; align-items: center; justify-content: space-between; }
.task-type { color: #28725d; font-size: 12px; font-weight: 800; }
.task-priority { padding: 3px 5px; border-radius: 4px; color: #a3473f; background: #fdecea; font-size: 11px; font-weight: 800; }
.task-card h4 { margin: 13px 0 8px; font-size: 12px; line-height: 1.45; }
.task-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.task-owner { position: absolute; left: 13px; bottom: 11px; color: #71807c; font-size: 11px; }
.task-owner b { color: #3f534e; }
.limitations { display: flex; gap: 12px; padding: 17px 20px; border: 1px solid #eadcc5; border-top: 0; border-radius: 0 0 14px 14px; background: #fffaf1; }
.limitations.attached { border-radius: 0; }
.limitations-icon { flex: 0 0 27px; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: #916721; background: #f4dfb6; font-weight: 800; }
.limitations h3 { margin: 1px 0 7px; font-size: 12px; }
.limitations ul { margin: 0; padding-left: 16px; color: #786b57; font-size: 12px; line-height: 1.65; }
.review-focus { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.review-focus span { padding: 5px 7px; border-radius: 6px; color: #695a42; background: #f6e9d0; font-size: 11px; }
.review-focus span small { display: block; margin-top: 3px; color: #7d6848; font-family: ui-monospace, monospace; font-size: 11px; }

.decision-section { padding: 22px 20px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; background: linear-gradient(180deg, #f7faf8 0%, #f2f6f3 100%); }
.decision-title-row { margin-bottom: 15px; }
.human-chip { margin-left: auto; padding: 5px 7px; border: 1px solid #bcdacf; border-radius: 6px; color: #256c58 !important; background: #e6f3ee; font-size: 11px !important; font-weight: 800; letter-spacing: 0.7px; }
.decision-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid #dbe4e0; border-radius: 13px; background: white; box-shadow: 0 10px 30px rgba(23,60,51,0.055); overflow: hidden; }
.decision-panel, .task-select-panel { min-width: 0; padding: 17px; }
.decision-panel { border-right: 1px solid #e2e8e5; }
.field-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.field-heading > span { padding: 4px 6px; border-radius: 5px; color: #206650; background: #e8f4ef; font-size: 11px; font-weight: 800; letter-spacing: 0.5px; }
.field-heading strong, .field-heading small { display: block; }
.field-heading strong { font-size: 12px; }
.field-heading small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.hypothesis-selector { display: grid; gap: 6px; }
.hypothesis-choice { cursor: pointer; }
.hypothesis-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.hypothesis-choice > span { display: grid; grid-template-columns: 14px 1fr; align-items: center; column-gap: 8px; padding: 9px 10px; border: 1px solid #e0e6e4; border-radius: 9px; background: #fafcfb; transition: 160ms ease; }
.hypothesis-choice > span > i { grid-row: 1 / 3; width: 13px; height: 13px; border: 1px solid #aab9b4; border-radius: 50%; background: white; }
.hypothesis-choice strong, .hypothesis-choice small { min-width: 0; }
.hypothesis-choice strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.hypothesis-choice small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.hypothesis-choice input:checked + span { border-color: #78bca5; background: #f0f8f5; box-shadow: inset 3px 0 #2a8669; }
.hypothesis-choice input:checked + span > i { border: 4px solid #2b8469; }
.hypothesis-choice input:focus-visible + span { outline: 2px solid #55a88c; outline-offset: 2px; }
.decision-context { margin-top: 10px; padding: 8px 10px; border-left: 3px solid #d1ae63; border-radius: 0 7px 7px 0; color: #6f5c37; background: #fff9ed; font-size: 12px; line-height: 1.5; }
.decision-options { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 11px; }
.decision-option { display: flex; align-items: flex-start; gap: 7px; min-height: 66px; padding: 9px; border: 1px solid #dfe6e3; border-radius: 9px; color: #3f514c; background: white; text-align: left; }
.decision-option > i { width: 17px; height: 17px; display: grid; flex: 0 0 17px; place-items: center; border-radius: 50%; color: #60716c; background: #edf1ef; font-size: 12px; font-style: normal; font-weight: 900; }
.decision-option strong, .decision-option small { display: block; }
.decision-option strong { font-size: 12px; line-height: 1.4; }
.decision-option small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.decision-option.accepted.active { border-color: #6fb69e; background: #eef8f4; }
.decision-option.accepted.active > i { color: white; background: #2c8b6c; }
.decision-option.rejected.active { border-color: #df9d97; background: #fff5f3; }
.decision-option.rejected.active > i { color: white; background: #c96159; }
.decision-note { display: block; margin-top: 11px; }
.decision-note > span { display: block; margin-bottom: 5px; color: #4b5c57; font-size: 12px; font-weight: 700; }
.decision-note textarea { width: 100%; display: block; padding: 9px 10px; border: 1px solid #dbe3e0; border-radius: 8px; outline: 0; resize: vertical; color: var(--ink); background: #fbfcfb; font-size: 12px; line-height: 1.5; }
.decision-note textarea:focus { border-color: #75b39e; box-shadow: 0 0 0 3px rgba(114,229,186,0.11); }
.decision-note > small { display: block; margin-top: 5px; color: #8b9693; font-size: 11px; line-height: 1.45; }
.task-selector { display: grid; gap: 7px; }
.task-choice { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 9px; align-items: center; padding: 10px; border: 1px solid #e0e6e4; border-radius: 9px; background: #fafcfb; cursor: pointer; }
.task-choice > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.task-check { width: 17px; height: 17px; display: grid; place-items: center; border: 1px solid #b6c2be; border-radius: 5px; color: transparent; background: white; font-size: 12px; font-weight: 900; }
.task-choice:has(input:checked) { border-color: #b8d8cd; background: #f2f8f5; }
.task-choice input:checked + .task-check { border-color: #267b61; color: white; background: #267b61; }
.task-choice:has(input:focus-visible) { outline: 2px solid #55a88c; outline-offset: 2px; }
.task-choice-copy { min-width: 0; }
.task-choice-copy > span { display: flex; align-items: center; justify-content: space-between; }
.task-choice-copy b { color: #277159; font-size: 11px; }
.task-choice-copy em { padding: 2px 4px; border-radius: 4px; color: #9f4d45; background: #fbecea; font-size: 11px; font-style: normal; font-weight: 800; }
.task-choice-copy strong, .task-choice-copy small { display: block; }
.task-choice-copy strong { margin-top: 4px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.task-choice-copy small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.handoff-summary { display: flex; justify-content: space-between; gap: 12px; margin-top: 11px; padding: 9px 10px; border-radius: 8px; color: #71807c; background: #f1f4f2; font-size: 11px; }
.handoff-summary strong { color: #38564e; }
.decision-submit-row { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 17px; border-top: 1px solid #e2e8e5; background: #f8faf9; }
.decision-submit-row > div strong, .decision-submit-row > div small { display: block; }
.decision-submit-row > div strong { font-size: 12px; }
.decision-submit-row > div small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.decision-submit { padding-inline: 14px; }
.decision-submit:disabled { opacity: 0.42; cursor: not-allowed; box-shadow: none; }
.decision-error { grid-column: 1 / -1; margin: 0 17px 14px; padding: 9px 11px; border: 1px solid #edbdb8; border-radius: 8px; color: #8e3e37; background: #fff2f0; font-size: 12px; }
.handoff-package { margin-top: 12px; border: 1px solid #7fbaa5; border-radius: 13px; background: white; box-shadow: 0 12px 28px rgba(26,91,72,0.09); overflow: hidden; animation: reveal 320ms ease both; }
.package-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; color: white; background: linear-gradient(115deg, #153c33, #24735c); }
.package-status { display: flex; align-items: center; gap: 9px; min-width: 0; }
.package-status > i { width: 24px; height: 24px; display: grid; flex: 0 0 24px; place-items: center; border-radius: 50%; color: #164e3f; background: var(--mint); font-style: normal; font-weight: 900; }
.package-status small, .package-status strong { display: block; }
.package-status small { color: #a6c9be; font-size: 11px; }
.package-status strong { margin-top: 2px; overflow: hidden; font: 700 12px ui-monospace, monospace; text-overflow: ellipsis; white-space: nowrap; }
.package-download { padding: 7px 9px; border: 1px solid rgba(255,255,255,0.22); border-radius: 7px; color: #def4ec; background: rgba(255,255,255,0.08); font-size: 11px; font-weight: 700; }
.package-download:hover { background: rgba(255,255,255,0.14); }
.handoff-package.rejected { border-color: #d8a09b; }
.handoff-package.rejected .package-head { background: linear-gradient(115deg, #49302d, #8a4a44); }
.handoff-package.rejected .package-status > i { color: white; background: #d76d64; }
.package-grid { display: grid; grid-template-columns: 0.9fr 1.7fr 0.8fr 1fr; gap: 0; border-bottom: 1px solid #e4e9e7; }
.package-grid > div { min-width: 0; padding: 12px 13px; border-right: 1px solid #e4e9e7; }
.package-grid > div:last-child { border-right: 0; }
.package-grid small, .package-grid strong { display: block; }
.package-grid small { color: #899491; font-size: 11px; }
.package-grid strong { margin-top: 5px; overflow: hidden; color: #364a45; font-size: 12px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.package-evidence { display: flex; gap: 4px; margin-top: 5px; }
.package-evidence span { padding: 3px 5px; border-radius: 4px; color: #236d56; background: #e7f3ee; font: 700 11px ui-monospace, monospace; }
.package-task-list { display: grid; grid-template-columns: repeat(3, 1fr); padding: 12px; gap: 7px; }
.package-task-list > div { min-width: 0; padding: 9px; border: 1px solid #e2e7e5; border-radius: 8px; background: #fafcfb; }
.package-task-list span, .package-task-list strong, .package-task-list small { display: block; }
.package-task-list span { color: #2d7a62; font: 700 11px ui-monospace, monospace; }
.package-task-list strong { margin-top: 4px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.package-task-list small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.handoff-package footer { display: flex; align-items: center; gap: 9px; padding: 10px 13px; border-top: 1px solid #e8ecea; color: #546963; background: #f4f8f6; }
.handoff-package footer > i { width: 17px; height: 17px; display: grid; flex: 0 0 17px; place-items: center; border-radius: 50%; color: white; background: #477a69; font-size: 11px; font-style: normal; font-weight: 800; }
.handoff-package footer strong, .handoff-package footer small { display: block; }
.handoff-package footer strong { font-size: 12px; }
.handoff-package footer small { margin-top: 2px; color: #7c8985; font-size: 11px; }

.footer { display: flex; justify-content: space-between; padding: 18px 4px 0; color: #8a9693; font-size: 12px; }

@media (max-width: 1120px) {
  .sidebar { width: 210px; }
  .main { margin-left: 210px; padding-inline: 22px; }
  .workspace { grid-template-columns: 210px minmax(0, 1fr); }
  .evidence-layout { grid-template-columns: 1fr; }
  .scene-visual { height: 270px; }
  .taxonomy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evidence-gate-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .evidence-gate-flow > i { display: none; }
  .evidence-gate-evaluation { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .sidebar { position: static; width: 100%; min-height: auto; padding: 18px; }
  .brand { padding-bottom: 16px; }
  .nav-groups { display: none; }
  .sidebar-foot { display: none; }
  .main { margin-left: 0; padding: 0 14px 24px; }
  .topbar { padding-block: 22px 17px; }
  .topbar-actions { display: none; }
  .workspace { grid-template-columns: 1fr; }
  .case-rail { border-right: 0; border-bottom: 1px solid var(--line); }
  .case-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-detail { padding: 21px 16px 26px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .task-grid { grid-template-columns: 1fr; }
  .task-card { min-height: 125px; }
  .hypothesis-card { grid-template-columns: 85px 1fr; }
  .hypothesis-level { grid-column: 2; justify-self: start; }
}

@media (max-width: 760px) {
  .loop-progress { grid-template-columns: repeat(2, 1fr); row-gap: 12px; }
  .decision-form { grid-template-columns: 1fr; }
  .decision-panel { border-right: 0; border-bottom: 1px solid #e2e8e5; }
  .package-grid { grid-template-columns: repeat(2, 1fr); }
  .package-grid > div:nth-child(2) { border-right: 0; }
  .package-grid > div:nth-child(-n + 2) { border-bottom: 1px solid #e4e9e7; }
  .package-task-list { grid-template-columns: 1fr; }
  .evidence-gate-flow, .evidence-gate-evaluation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .notice-tag, .ghost-button { display: none; }
  .taxonomy-head { display: block; }
  .taxonomy-head > span { display: inline-block; margin-top: 9px; text-align: left; }
  .taxonomy-grid { grid-template-columns: 1fr; }
  .case-list { grid-template-columns: 1fr; }
  .detail-head h2 { font-size: 18px; }
  .metric-grid { gap: 6px; }
  .metric-card { padding: 11px; }
  .scene-visual { height: 210px; }
  .scene-visual.open-data-scene { height: 260px; }
  .open-data-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prompt-chips, .prompt-form, .analysis-error { margin-left: 0; }
  .guardrail-chip { display: none; }
  .prompt-actions { align-items: flex-end; }
  .prompt-actions > span { display: none; }
  .primary-button { margin-left: auto; }
  .result-heading { display: block; }
  .decision-badge { margin-top: 14px; width: fit-content; }
  .confidence-strip { grid-template-columns: 85px 1fr; }
  .confidence-strip p { grid-column: 1 / -1; }
  .hypothesis-card { grid-template-columns: 1fr; }
  .hypothesis-score { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 8px; }
  .hypothesis-level { grid-column: 1; }
  .loop-progress { padding: 10px; }
  .loop-step div { padding-right: 6px; }
  .loop-step strong { font-size: 12px; }
  .decision-section { padding: 18px 12px; }
  .human-chip { display: none; }
  .decision-options { grid-template-columns: 1fr; }
  .handoff-summary, .decision-submit-row { align-items: flex-start; flex-direction: column; }
  .decision-submit { width: 100%; justify-content: space-between; }
  .package-head { align-items: flex-start; }
  .package-status strong { max-width: 190px; }
  .footer { display: grid; gap: 5px; }
  .evidence-gate { padding: 13px; }
  .evidence-gate-flow, .evidence-gate-evaluation { grid-template-columns: 1fr; }
  .evidence-gate-summary { display: block; }
  .evidence-gate-summary p { margin-top: 8px; }
}

/* v0.4 information architecture: route-level views and one visible workflow stage */
.nav-asset-count {
  margin-left: auto;
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  color: #9eb5af;
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}
.nav-item.active .nav-asset-count { color: #173f35; background: var(--mint); }
.app-view { animation: view-in 180ms ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.view-kicker { color: var(--mint-dark); font: 800 11px ui-monospace, monospace; letter-spacing: 1.5px; }
.primary-button, .secondary-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
}
.secondary-button { border-color: var(--line); color: #40534e; background: white; }
.secondary-button:hover { border-color: #9bb2aa; }

.overview-hero {
  min-height: 290px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  align-items: center;
  gap: 52px;
  padding: 40px 44px;
  border-radius: 20px;
  color: white;
  background:
    radial-gradient(circle at 85% 20%, rgba(114,229,186,.22), transparent 34%),
    linear-gradient(125deg, #112b27, #174f42);
  box-shadow: var(--shadow);
}
.overview-hero .view-kicker { color: #7fe8c0; }
.overview-hero h2 { max-width: 760px; margin: 12px 0 12px; font-size: clamp(27px, 3vw, 40px); line-height: 1.17; letter-spacing: -1.1px; }
.overview-hero p { max-width: 670px; margin: 0; color: #b8cec7; font-size: 14px; line-height: 1.7; }
.hero-actions { display: flex; gap: 9px; margin-top: 24px; }
.overview-hero .primary-button { color: #123c31; background: var(--mint); }
.overview-hero .secondary-button { border-color: rgba(255,255,255,.18); color: #e8f5f1; background: rgba(255,255,255,.07); }
.overview-case { padding: 22px; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; background: rgba(255,255,255,.07); backdrop-filter: blur(8px); }
.overview-case > span { color: #85b8a7; font-size: 11px; font-weight: 800; }
.overview-case > strong { display: block; margin-top: 10px; font-size: 18px; line-height: 1.45; }
.overview-case > div { display: flex; align-items: center; gap: 9px; margin-top: 18px; }
.overview-case b { padding: 4px 7px; border-radius: 6px; color: #173e34; background: var(--mint); font: 800 12px ui-monospace, monospace; }
.overview-case small { color: #bdd2cb; font-size: 12px; }
.overview-flow { margin-top: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.flow-duration { color: var(--muted); font-size: 12px; }
.flow-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.flow-cards a { position: relative; min-height: 125px; padding: 17px; border: 1px solid #e2e8e5; border-radius: 12px; background: #fafcfb; transition: 150ms ease; }
.flow-cards a:not(:last-child)::after { content: "→"; position: absolute; top: 50%; right: -9px; z-index: 2; width: 18px; color: #7aa995; background: white; text-align: center; }
.flow-cards a:hover { border-color: #9ecbb9; background: #f3faf7; transform: translateY(-2px); }
.flow-cards span, .flow-cards strong, .flow-cards small { display: block; }
.flow-cards span { color: #2a8469; font: 800 12px ui-monospace, monospace; }
.flow-cards strong { margin-top: 17px; font-size: 15px; }
.flow-cards small { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.overview-stats, .task-center-summary, .dataset-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.overview-stats article, .task-center-summary article, .dataset-overview article { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.82); }
.overview-stats span, .overview-stats strong, .overview-stats small,
.task-center-summary span, .task-center-summary strong,
.dataset-overview span, .dataset-overview strong, .dataset-overview small { display: block; }
.overview-stats span, .task-center-summary span, .dataset-overview span { color: var(--muted); font-size: 11px; }
.overview-stats strong, .task-center-summary strong, .dataset-overview strong { margin-top: 5px; color: #1a5f4d; font-size: 19px; }
.overview-stats small, .dataset-overview small { margin-top: 4px; color: #75837f; font-size: 11px; }
.boundary-details { margin-top: 12px; border: 1px solid #dce6e2; border-radius: 10px; background: #eef6f2; }
.boundary-details summary { padding: 11px 14px; color: #2d6858; font-size: 12px; font-weight: 800; cursor: pointer; }
.boundary-details p { margin: 0; padding: 0 14px 13px; color: #62736e; font-size: 12px; line-height: 1.6; }

.workflow-view .loop-progress { position: sticky; top: 0; z-index: 8; margin-bottom: 12px; backdrop-filter: blur(12px); }
.research-panel { margin: -2px 0 12px; border: 1px solid #dfe6e3; border-radius: 10px; background: rgba(255,255,255,.78); }
.research-panel > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; color: #52665f; font-size: 11px; font-weight: 800; cursor: pointer; }
.research-panel > summary strong { color: #2a725d; font-size: 11px; }
.research-form { display: grid; grid-template-columns: 1fr 1fr auto auto; align-items: end; gap: 8px; padding: 11px 12px 8px; border-top: 1px solid #e4e9e7; }
.research-form label { color: #71807b; font-size: 11px; }
.research-form input, .research-form select { width: 100%; min-height: 36px; display: block; margin-top: 4px; padding: 0 9px; border: 1px solid #d6e0dc; border-radius: 7px; color: #40534d; background: white; font-size: 12px; }
.research-form button { min-height: 36px; }
.research-form button:disabled { opacity: .5; cursor: not-allowed; }
.research-panel > p { margin: 0; padding: 0 12px 10px; color: #89948f; font-size: 11px; }
.research-panel.locked { border-color: #a9d0c0; background: #f2f8f5; }
.loop-step { border: 0; background: transparent; text-align: left; }
.loop-step strong { font-size: 13px; }
.loop-step.active { color: #173f35; }
.loop-step.active > span { border-color: #1c725a; color: white; background: #1c725a; box-shadow: 0 0 0 4px rgba(28,114,90,.08); }
.loop-step.active strong { color: #173f35; }
.workflow-view .workspace { grid-template-columns: 224px minmax(0, 1fr); align-items: stretch; }
.workflow-view .case-rail { max-height: calc(100vh - 185px); overflow-y: auto; }
.workflow-canvas { min-width: 0; min-height: 610px; background: white; }
.workflow-stage-pane { min-width: 0; padding: 23px 25px 28px; }
.workflow-stage-pane > :first-child { margin-top: 0; }
.case-summary { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.case-item::after { content: "" !important; display: none !important; }
.case-item { padding: 11px; }
.case-item.study-locked { opacity: .42; cursor: not-allowed; }
.case-item h3 { display: -webkit-box; margin: 7px 0 4px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.case-item p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case-tags { margin-top: 7px; }
.case-tags span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evidence-subtabs { display: flex; gap: 7px; margin-top: 15px; padding: 5px; border: 1px solid #dfe6e3; border-radius: 10px; background: #f4f7f5; }
.evidence-subtabs button { flex: 1; min-height: 35px; border: 0; border-radius: 7px; color: #697873; background: transparent; font-size: 13px; font-weight: 800; }
.evidence-subtabs button.active { color: #1d6953; background: white; box-shadow: 0 2px 8px rgba(25,58,49,.07); }
.evidence-subtabs button:disabled { color: #929d99; background: transparent; box-shadow: none; cursor: not-allowed; opacity: .68; }
.evidence-subtabs span { margin-left: 5px; color: #2e755f; font: 800 11px ui-monospace, monospace; }
.evidence-subtabs b { font: inherit; }
.evidence-subpanel { animation: view-in 150ms ease both; }
.evidence-subpanel .evidence-gate, .evidence-subpanel .target-review, .evidence-subpanel .evidence-layout { margin-top: 12px; }
.inline-details { margin-top: 8px; }
.inline-details summary { width: fit-content; color: #52736a; font-size: 11px; font-weight: 800; cursor: pointer; }
.secondary-details { margin-top: 12px; border: 1px solid #dce5e1; border-radius: 11px; background: #fbfcfb; }
.secondary-details > summary { display: flex; align-items: center; gap: 8px; padding: 11px 13px; cursor: pointer; }
.secondary-details > summary span { color: #375b51; font-size: 12px; font-weight: 800; }
.secondary-details > summary small { color: var(--muted); font-size: 11px; }
.secondary-details .scenario-taxonomy { margin: 0; border: 0; border-top: 1px solid #e3e9e6; border-radius: 0 0 11px 11px; }
.target-review { margin-top: 12px; padding: 15px; border: 1px solid #d7e3df; border-radius: 13px; background: #fbfdfc; }
.target-review-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.target-review-head h3 { margin: 4px 0 0; font-size: 15px; }
.target-review-progress { text-align: right; }
.target-review-progress strong, .target-review-progress small { display: block; }
.target-review-progress strong { color: #216b56; font-size: 16px; }
.target-review-progress small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.target-review-instruction { margin: 11px 0 0; padding: 9px 11px; border-left: 3px solid #5c9d87; color: #5e706a; background: #f0f7f4; font-size: 11px; line-height: 1.55; }
.target-review-instruction strong { color: #315f52; }
.target-review-workspace { display: grid; grid-template-columns: minmax(410px, 1.12fr) minmax(330px, .88fr); gap: 11px; margin-top: 11px; align-items: start; }
.target-review-list-pane { min-width: 0; }
.target-review-toolbar { display: flex; gap: 6px; margin-top: 12px; }
.target-review-list-pane .target-review-toolbar { margin-top: 0; }
.target-review-toolbar button, .asset-filters button { padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; color: #66756f; background: white; font-size: 11px; font-weight: 800; }
.target-review-toolbar button.active, .asset-filters button.active { border-color: #83b9a6; color: #1f6c55; background: #eaf5f0; }
.target-review-toolbar span { margin-left: 4px; color: #31735f; }
.target-table-wrap { max-height: 560px; margin-top: 9px; overflow: auto; border: 1px solid #e2e8e5; border-radius: 9px; background: white; }
.target-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.target-table th { position: sticky; top: 0; z-index: 1; padding: 8px 9px; color: #77847f; background: #f2f6f4; text-align: left; white-space: nowrap; }
.target-table td { padding: 8px 9px; border-top: 1px solid #edf0ef; color: #566762; white-space: nowrap; }
.target-table tr.selected td { background: #eaf5f0; }
.target-table tr.selected td:first-child { box-shadow: inset 3px 0 #2b8065; }
.target-table td:nth-child(2) { min-width: 165px; white-space: normal; }
.target-table td strong, .target-table td small { display: block; }
.target-table td strong { overflow-wrap: anywhere; color: #344a44; font: 700 11px ui-monospace, monospace; }
.target-table td small { margin-top: 2px; color: #8a9692; }
.target-row-button { width: 100%; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.target-row-button:hover strong { color: #147055; text-decoration: underline; }
.target-status { display: inline-flex; min-width: 28px; justify-content: center; padding: 3px 5px; border-radius: 5px; font-weight: 900; }
.target-status.fn { color: #9b443d; background: #fbe9e7; }
.target-status.fp { color: #96691f; background: #fbf0d8; }
.target-status.tp { color: #216b56; background: #e4f3ed; }
.target-evidence-state { display: block; font-size: 11px; font-weight: 800; }
.target-evidence-state.linked { color: #24725b; }
.target-evidence-state.missing { color: #9b5e33; }
.target-evidence-detail { min-width: 0; overflow: hidden; border: 1px solid #dce5e1; border-radius: 10px; background: white; box-shadow: 0 8px 22px rgba(25,58,49,.045); }
.target-evidence-placeholder { min-height: 430px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 34px; color: #7a8984; text-align: center; }
.target-evidence-placeholder span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #246d57; background: #e4f2ed; font: 800 12px ui-monospace, monospace; }
.target-evidence-placeholder strong { margin-top: 14px; color: #39584f; font-size: 13px; }
.target-evidence-placeholder p { max-width: 310px; margin: 7px 0 0; font-size: 11px; line-height: 1.55; }
.target-evidence-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 11px 12px 7px; }
.target-evidence-head > div { display: flex; align-items: center; gap: 7px; }
.target-evidence-head strong { color: #3a534c; font-size: 12px; }
.target-evidence-head em { padding: 4px 6px; border-radius: 5px; font-size: 11px; font-style: normal; font-weight: 800; }
.target-evidence-head em.reviewable { color: #246d57; background: #e5f3ee; }
.target-evidence-head em.insufficient { color: #915e2d; background: #faecd9; }
.target-evidence-id { display: block; margin: 0 12px 10px; overflow: hidden; color: #76837f; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.target-camera-visual { position: relative; overflow: hidden; background: #15231f; }
.target-camera-visual img, .target-camera-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.target-camera-visual svg { pointer-events: none; }
.target-projection { fill: none; stroke-width: 4; vector-effect: non-scaling-stroke; }
.target-projection line, .target-projection rect { vector-effect: non-scaling-stroke; }
.target-projection.gt { stroke: #33e48f; }
.target-projection.prediction { stroke: #ffad32; stroke-dasharray: 9 5; }
.target-overlay-legend { position: absolute; left: 8px; bottom: 8px; display: flex; gap: 5px; padding: 5px 7px; border-radius: 6px; color: white; background: rgba(9,20,17,.78); font: 800 11px ui-monospace, monospace; }
.target-overlay-legend span { display: inline-flex; align-items: center; gap: 4px; }
.target-overlay-legend i { width: 10px; height: 3px; display: inline-block; background: currentColor; }
.target-overlay-legend .gt { color: #45f0a0; }
.target-overlay-legend .prediction { color: #ffb341; }
.target-camera-tabs { display: flex; gap: 5px; padding: 8px 10px; overflow-x: auto; border-bottom: 1px solid #e6ebe9; }
.target-camera-tabs button { padding: 5px 7px; border: 1px solid #d8e1de; border-radius: 6px; color: #667570; background: #fafcfb; font-size: 11px; font-weight: 800; white-space: nowrap; }
.target-camera-tabs button.active { border-color: #67a48f; color: #216b56; background: #e8f4ef; }
.target-media-missing { margin: 0 11px; padding: 18px; border: 1px dashed #d7c1a6; border-radius: 8px; color: #7f654c; background: #fff9ef; }
.target-media-missing strong { font-size: 12px; }
.target-media-missing p { margin: 5px 0 0; font-size: 11px; line-height: 1.5; }
.target-evidence-facts { margin: 0; padding: 7px 11px; }
.target-evidence-facts > div { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 8px; padding: 5px 0; border-bottom: 1px solid #edf0ef; }
.target-evidence-facts dt, .target-evidence-facts dd { margin: 0; font-size: 11px; line-height: 1.45; }
.target-evidence-facts dt { color: #87938f; }
.target-evidence-facts dd { color: #4b5f59; font-weight: 700; }
.target-judgement-guide { margin: 3px 11px 9px; padding: 9px 10px; border-radius: 8px; background: #f4f7f6; }
.target-judgement-guide span { color: #326354; font-size: 11px; font-weight: 900; }
.target-judgement-guide p { margin: 3px 0 8px; color: #60716c; font-size: 11px; line-height: 1.5; }
.target-judgement-guide p:last-child { margin-bottom: 0; }
.target-decision-field { display: block; padding: 0 11px 12px; }
.target-decision-field > span { display: block; margin-bottom: 5px; color: #315f52; font-size: 11px; font-weight: 900; }
.target-decision-field select { width: 100%; padding: 8px 9px; border: 1px solid #bdcec8; border-radius: 7px; color: #3f544e; background: white; font-size: 11px; }
.target-decision-field small { display: block; margin-top: 5px; color: #899590; font-size: 11px; line-height: 1.4; }
.target-review-note, .target-review-empty { margin: 9px 0 0; color: #7d8985; font-size: 11px; line-height: 1.5; }
.stage-action-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 14px; padding: 13px 15px; border: 1px solid #d8e6e1; border-radius: 11px; background: #f2f8f5; }
.stage-action-row strong, .stage-action-row small { display: block; }
.stage-action-row strong { font-size: 12px; }
.stage-action-row small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.stage-action-row .primary-button { color: white; background: #1d725a; }
.stage-context-bar { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; padding: 10px 12px; border: 1px solid #dfe6e3; border-radius: 9px; background: #f7f9f8; }
.stage-context-bar span { color: #7d8b86; font-size: 11px; }
.stage-context-bar strong { min-width: 0; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.stage-context-bar small { margin-left: auto; color: #28715b; font-size: 11px; font-weight: 800; white-space: nowrap; }
.workflow-stage-pane .copilot-card { margin-top: 0; }
.result-details { border: 1px solid var(--line); border-top: 0; background: white; }
.result-details > summary { padding: 12px 20px; color: #48645c; font-size: 12px; font-weight: 800; cursor: pointer; }
.result-details .result-section { border: 0; border-top: 1px solid var(--line); }
.result-details .limitations { border: 0; border-top: 1px solid #eadcc5; }
.result-details.caution { background: #fffaf1; }
.compact-action { border-radius: 0 0 13px 13px; margin-top: 0; }
.handoff-empty { min-height: 330px; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 30px; border: 1px dashed #cbd8d3; border-radius: 14px; background: #f8faf9; }
.handoff-empty > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #39705f; background: #e5f2ed; font: 800 13px ui-monospace, monospace; }
.handoff-empty strong { font-size: 15px; }
.handoff-empty p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.handoff-empty .secondary-button { margin-left: 18px; }

.view-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 16px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.view-intro h2 { margin: 6px 0 5px; font-size: 22px; }
.view-intro p { margin: 0; color: var(--muted); font-size: 12px; }
.view-intro .primary-button { color: white; background: #1d725a; }
.task-center-panel { margin-top: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.task-center-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.task-center-item { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fafcfb; }
.task-center-item.selected { border-color: #a8cfbf; background: #f1f8f5; }
.task-center-item > div { display: flex; align-items: center; justify-content: space-between; }
.task-center-item span { color: #24735b; font-size: 11px; font-weight: 800; }
.task-center-item em { padding: 2px 5px; border-radius: 4px; color: #994b44; background: #fbeae8; font-size: 11px; font-style: normal; font-weight: 800; }
.task-center-item h3 { margin: 12px 0 7px; font-size: 13px; }
.task-center-item p { min-height: 54px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.task-center-item footer { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 9px; border-top: 1px solid #e5eae8; }
.task-center-item footer strong, .task-center-item footer small { min-width: 0; font-size: 11px; }
.task-center-item footer small { overflow: hidden; color: #899590; text-overflow: ellipsis; white-space: nowrap; }
.asset-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 12px; }
.asset-toolbar .search-box { width: min(430px, 100%); margin: 0; }
.asset-filters { display: flex; gap: 6px; }
.scene-library, .dataset-registry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.scene-asset-card, .dataset-card { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: 0 8px 24px rgba(21,55,46,.035); }
.asset-card-top, .dataset-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.asset-card-top small, .dataset-card-top > span { overflow: hidden; color: #7f8d88; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.asset-level { padding: 4px 6px; border-radius: 5px; color: white; background: #26775e; font: 800 11px ui-monospace, monospace; }
.asset-level.level-l0 { background: #966c27; }
.scene-asset-card h3, .dataset-card h3 { margin: 12px 0; font-size: 15px; line-height: 1.45; }
.scene-asset-card dl { margin: 0; }
.scene-asset-card dl > div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px solid #edf0ef; }
.scene-asset-card dt { color: #8a9692; font-size: 11px; }
.scene-asset-card dd { margin: 0; color: #51635d; font-size: 11px; line-height: 1.5; }
.scene-asset-card > button { margin-top: 11px; padding: 0; border: 0; color: #17674f; background: transparent; font-size: 12px; font-weight: 800; }
.dataset-card-top em { padding: 4px 6px; border-radius: 5px; font: 800 11px ui-monospace, monospace; font-style: normal; }
.dataset-card-top em.ready { color: #1c6952; background: #e4f3ed; }
.dataset-card-top em.limited { color: #876020; background: #f8eccf; }
.dataset-card-top em.simulated { color: #8d5d28; background: #faeadb; }
.dataset-card-top em.missing { color: #8b4b46; background: #f8e8e6; }
.dataset-card > strong { color: #2d6152; font-size: 13px; }
.dataset-card > p { margin: 8px 0 14px; color: #667570; font-size: 12px; }
.dataset-card > footer { padding-top: 10px; border-top: 1px solid #e6ebe9; color: #87928f; font-size: 11px; }
.asset-empty { grid-column: 1 / -1; padding: 48px; border: 1px dashed #ccd9d4; border-radius: 13px; color: var(--muted); background: white; text-align: center; }

@media (max-width: 1180px) {
  .overview-hero { grid-template-columns: 1fr; gap: 24px; }
  .overview-case { max-width: 600px; }
  .workflow-view .workspace { grid-template-columns: 205px minmax(0, 1fr); }
  .task-center-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .overview-hero { padding: 28px; }
  .flow-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-cards a:nth-child(2)::after { display: none; }
  .workflow-view .case-rail { max-height: none; }
  .workflow-stage-pane { padding: 20px 16px 24px; }
  .scene-library, .dataset-registry { grid-template-columns: 1fr; }
  .research-form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .overview-stats, .task-center-summary, .dataset-overview { grid-template-columns: 1fr; }
  .flow-cards, .task-center-list { grid-template-columns: 1fr; }
  .flow-cards a::after { display: none !important; }
  .hero-actions, .asset-toolbar, .view-intro, .stage-action-row { align-items: stretch; flex-direction: column; }
  .asset-filters { flex-wrap: wrap; }
  .handoff-empty { align-items: flex-start; flex-direction: column; }
  .handoff-empty .secondary-button { margin-left: 0; }
  .research-form { grid-template-columns: 1fr; }
}
