:root {
  color-scheme: dark;
  --ink: #e5eff3;
  --muted: #8faab6;
  --line: #294755;
  --canvas: #09161d;
  --panel: #102631;
  --mint: #66d4b1;
  --amber: #e9ba59;
  --coral: #f17a60;
  --mono: "IBM Plex Mono", "DejaVu Sans Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-width: 360px; background: var(--canvas); color: var(--ink); font: 13px/1.5 "Helvetica Neue", "Microsoft YaHei", sans-serif; }
body { background-image: linear-gradient(rgba(102,212,177,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(102,212,177,.025) 1px, transparent 1px); background-size: 36px 36px; }
button, select, input { font: inherit; }
button, select { cursor: pointer; }
button { color: var(--ink); border: 1px solid var(--line); background: #142e3b; padding: 6px 10px; border-radius: 3px; }
button:hover:not(:disabled) { color: var(--amber); border-color: var(--amber); }
button:disabled { opacity: .42; cursor: default; }
button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
select, input[type=number] { background: #0c202a; border: 1px solid var(--line); color: var(--ink); padding: 6px 8px; border-radius: 3px; }
input[type=checkbox] { accent-color: var(--mint); margin: 0 5px 0 0; vertical-align: -1px; }
.replay-shell { max-width: 1840px; margin: auto; padding: 18px 24px 24px; }
.topbar { display: flex; align-items: center; gap: 24px; min-height: 62px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.brand-lockup { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; color: var(--amber); border: 1px solid var(--amber); font: 700 13px var(--mono); letter-spacing: 1px; }
.kicker { color: var(--mint); font: 9px/1.5 var(--mono); letter-spacing: 1.6px; margin: 0 0 2px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 0; font-size: 19px; line-height: 1.4; font-weight: 600; letter-spacing: .3px; }
h2 { margin: 0; font-size: 16px; line-height: 1.5; font-weight: 600; }
.run-picker { display: flex; gap: 10px; align-items: center; flex: 1; min-width: 0; }
.run-picker label { font: 10px var(--mono); color: var(--muted); white-space: nowrap; }
.run-picker select { width: min(100%, 470px); min-width: 150px; padding: 8px 10px; }
.run-meta { margin-left: auto; min-width: 0; text-align: right; display: flex; flex-direction: column; gap: 3px; }
.run-meta strong { font-size: 13px; font-weight: 500; }
.run-meta span { color: var(--muted); max-width: 380px; font: 10px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice { margin: 13px 0; color: #bed0d7; font-size: 11px; background: rgba(233,186,89,.065); border-left: 3px solid var(--amber); padding: 9px 13px; }
.notice summary { cursor: pointer; color: #d8d7bf; }
.notice p { margin: 8px 0; }
.notice li { margin: 4px 0; }
.notice ul { padding-left: 18px; }
.source-path { overflow-wrap: anywhere; color: var(--muted); font-family: var(--mono); }
.replay-grid { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 15px; align-items: stretch; }
.panel { border: 1px solid var(--line); background: linear-gradient(130deg, #102631, #0d1e28); box-shadow: 0 12px 28px rgba(0,0,0,.14); }
.graph-panel { display: flex; flex-direction: column; min-width: 0; }
.panel-head, .analytics-head, .timeline-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 13px 16px; }
.heading-tag { display: inline-block; color: var(--muted); font: 9px var(--mono); margin-left: 8px; font-weight: 400; }
.graph-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; justify-content: flex-end; font-size: 11px; color: #adbfca; }
.graph-actions label { white-space: nowrap; }
.graph-actions select { font-size: 10px; padding: 4px 6px; }
.graph-key { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 9px 16px; color: var(--muted); font-size: 10px; border-bottom: 1px solid #213c49; }
.graph-key > span { display: flex; align-items: center; gap: 6px; }
.dot { display: inline-block; width: 8px; height: 8px; border: 1px solid #6b8d9b; border-radius: 50%; background: #31566b; }
.dot-current { background: var(--amber); border-color: #fff0c3; box-shadow: 0 0 5px #e9ba5944; }
.dot-recent { background: #31566b; border: 2px solid var(--mint); width: 9px; height: 9px; }
.line-key { width: 19px; height: 3px; background: var(--coral); }
.graph-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.graph-nav button { font-size: 10px; padding: 5px 8px; }
.graph-wrap { position: relative; flex: 1; min-height: 495px; background: rgba(5,16,22,.52); }
.graph-surface { position: absolute; inset: 0; }
.community-bar { padding: 9px 16px; border-bottom: 1px solid var(--line); background: #081b24; }
.community-summary { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 10px; }
.community-status { color: var(--mint); }
.community-legend { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; max-height: 55px; overflow-y: auto; scrollbar-width: thin; }
.community-chip { display: flex; align-items: center; gap: 6px; font: 10px var(--mono); padding: 4px 7px; border-color: #34515f; }
.community-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--community-color); box-shadow: 0 0 7px var(--community-color); }
.community-chip span { color: var(--muted); }
.community-chip.is-active { border-color: var(--amber); color: #ffecc1; background: #e9ba5914; }
.community-chip.is-cold { opacity: .5; }
.layout-status { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; background: #09161ded; color: var(--mint); font-size: 12px; letter-spacing: 1px; pointer-events: none; }
.graph-foot { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 9px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.graph-foot span:last-child { white-space: nowrap; }
.graph-tooltip { color: #e5eff3; white-space: pre-wrap; font-size: 11px; line-height: 1.55; max-width: 500px; padding: 9px; border: 1px solid #5b8595; background: #142b36; overflow-wrap: anywhere; }
div.vis-tooltip { position: absolute; z-index: 10; pointer-events: none; box-shadow: 0 5px 20px #0006; }
.inspector { min-width: 0; padding-bottom: 12px; }
.inspector .panel-head { padding-top: 12px; padding-bottom: 11px; }
.status-pill { color: var(--mint); font-size: 9px; letter-spacing: .7px; border: 1px solid #447969; padding: 3px 7px; white-space: nowrap; }
.status-pill.is-unconfirmed { color: #e7bd80; border-color: #846743; }
.capture-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 10px 13px 0; }
.capture-toolbar > span { font: 10px var(--mono); color: var(--muted); white-space: nowrap; }
.capture-toolbar select { padding: 5px 6px; font-size: 10px; max-width: 185px; }
.annotation-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 13px 0; color: var(--muted); font-size: 10px; }
.annotation-controls button { font-size: 10px; padding: 4px 7px; }
.annotation-controls label { white-space: nowrap; }
.annotation-status { margin: 0 13px 7px; color: var(--amber); font-size: 10px; overflow-wrap: anywhere; }
.target-overlay { position: absolute; pointer-events: none; z-index: 1; overflow: hidden; }
.target-box { stroke: #ffb445; stroke-width: 2.5px; fill: #ffb44520; }
.target-locator { display: block; width: 100%; color: var(--amber); padding: 5px 7px; font: 10px/1.5 var(--mono); overflow-wrap: anywhere; text-align: left; }
.screenshot-stage { position: relative; display: grid; place-items: center; min-height: 250px; height: 285px; margin: 10px 13px; background: #061116; border: 1px solid var(--line); overflow: hidden; }
.screenshot-stage img { height: 100%; max-width: 100%; max-height: 283px; object-fit: contain; cursor: zoom-in; }
.zoom-button { position: absolute; z-index: 2; right: 7px; top: 7px; width: 28px; height: 28px; padding: 0; background: #0b202bcc; font-size: 19px; line-height: 1; }
#screenshotPlaceholder { display: grid; align-items: center; min-height: 120px; color: var(--muted); font-size: 11px; max-width: 90%; padding: 12px; text-align: center; overflow-wrap: anywhere; }
.caption-row { font: 10px/1.5 var(--mono); color: #9fb7c3; min-height: 15px; margin: 0 13px 10px; }
.evidence-grid { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 10px; border-top: 1px solid var(--line); }
.evidence-grid div { padding: 8px 12px; border-bottom: 1px solid var(--line); min-width: 0; }
.evidence-grid div:nth-child(odd) { border-right: 1px solid var(--line); }
.evidence-grid span { display: block; color: var(--muted); font-size: 8px; letter-spacing: .7px; }
.evidence-grid strong { display: block; margin-top: 3px; font: 10px/1.5 var(--mono); color: #d5e6eb; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inspector-tabs { display: flex; gap: 6px; padding: 0 13px 10px; }
.tab { color: var(--muted); font-size: 10px; padding: 5px 9px; }
.tab.is-active { color: var(--amber); border-color: #997b42; background: #e9ba590a; }
.detail-panel { padding: 0 13px; min-height: 170px; max-height: 205px; overflow: auto; scrollbar-color: #426574 #102631; scrollbar-width: thin; }
.detail-list { margin: 0; font-size: 10px; }
.detail-list > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px; padding: 6px 0; border-bottom: 1px solid #25414e99; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; overflow-wrap: anywhere; color: #cadde5; }
.text-button { margin-top: 10px; font-size: 10px; }
.event-details { margin-top: 10px; font-size: 10px; color: var(--muted); }
.event-details summary { cursor: pointer; color: var(--mint); }
.event-details p { margin: 8px 0; }
.event-details ol { padding-left: 19px; }
.event-details li { margin: 8px 0; }
.event-details code { display: block; white-space: pre-wrap; overflow-wrap: anywhere; color: #d1e0e7; font: 9px/1.5 var(--mono); }
.event-details li > span { color: var(--amber); }
.step-warnings { font-size: 10px; color: #e2b57d; padding-left: 15px; }
.empty-detail { margin: 12px 0; color: var(--muted); font-size: 11px; }
.history-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.history-heading h3 { font-size: 11px; margin: 0 0 5px; font-weight: 500; overflow-wrap: anywhere; }
.history-heading > span { color: var(--amber); font-size: 10px; white-space: nowrap; }
.history-identity { margin-bottom: 10px; color: var(--muted); font-size: 9px; overflow-wrap: anywhere; }
.history-list { display: flex; flex-direction: column; gap: 4px; }
.history-list button { display: flex; justify-content: space-between; gap: 6px; padding: 6px 7px; text-align: left; font-size: 10px; }
.history-list button > span:last-child { color: var(--muted); font-size: 9px; }
.history-list b { color: var(--muted); font-weight: 400; font-size: 9px; padding-left: 4px; }
.history-list .is-current { border-color: var(--amber); background: #e9ba590a; }
.history-pagination { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; color: var(--muted); font-size: 9px; }
.history-pagination button { font-size: 9px; padding: 4px 7px; }
.analytics { margin-top: 14px; }
.analytics-head { padding: 12px 16px; flex-wrap: wrap; }
.analytics-head h2 { font-size: 15px; }
.recent-control { color: var(--muted); font-size: 10px; margin-left: auto; }
.window-control { color: var(--muted); font: 10px var(--mono); white-space: nowrap; }
.window-control input { width: 63px; margin-left: 4px; padding: 4px 6px; }
.loop-signal { font-size: 10px; padding: 6px 8px; color: var(--muted); }
.loop-signal.is-clear { border-color: #3d645c; color: #83b7a7; opacity: .9; }
.loop-signal.is-warn { border-color: #aa654d; color: #ffb49a; background: #ee745b10; }
.stat-row { display: grid; grid-template-columns: .8fr .9fr .9fr 1.2fr 1.8fr; background: var(--line); gap: 1px; }
.stat-card { background: #0b1c26; padding: 11px 16px; }
.stat-card span { display: block; color: var(--muted); font-size: 9px; letter-spacing: .5px; }
.stat-card strong { display: block; margin-top: 4px; font: 15px/1.5 var(--mono); font-weight: 400; color: #d5e6ed; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loop-selection { display: flex; align-items: center; gap: 8px; padding: 8px 16px; color: #e4bf92; border-top: 1px solid var(--line); font-size: 10px; flex-wrap: wrap; }
.loop-selection span { margin-right: auto; }
.loop-selection button { font-size: 9px; padding: 4px 7px; }
.stats-note { padding: 9px 16px; display: flex; justify-content: space-between; gap: 14px; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.stats-note > div { display: flex; gap: 6px; flex-shrink: 0; }
.stats-note button { font-size: 9px; padding: 4px 6px; }
.timeline-panel { margin-top: 14px; position: relative; z-index: 2; background: #102631f5; box-shadow: 0 0 16px #0008; backdrop-filter: blur(8px); }
.timeline-head { padding: 11px 16px; }
.timeline-head h2 { font-size: 15px; }
.player-controls { display: flex; gap: 7px; align-items: center; }
.player-controls > button { font-size: 19px; width: 32px; height: 30px; padding: 0; line-height: 1; }
.player-controls .play-button { color: var(--amber); border-color: #a07c3d; background: #e9ba590b; font-size: 16px; }
.player-controls > select { font-size: 10px; }
.jump-control { display: flex; gap: 6px; align-items: center; margin-left: 5px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.jump-control input { width: 65px; padding: 5px 6px; }
.scrubber-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px 4px; }
.scrubber-row > span { min-width: 56px; color: #9fb8c3; font: 10px var(--mono); }
.scrubber-row > span:last-child { text-align: right; }
.scrubber-row input { flex: 1; margin: 0; height: 5px; accent-color: var(--amber); cursor: pointer; background: #355361; }
.timeline-ruler { position: relative; height: 27px; margin: 0 84px; border-bottom: 1px solid var(--line); }
.timeline-mark { position: absolute; top: 0; transform: translateX(-50%); border: 0; background: none; color: var(--muted); padding: 0 4px; font: 8px var(--mono); }
.timeline-mark::before { content: ""; display: block; height: 5px; width: 1px; margin: 0 auto 3px; background: #527381; }
.timeline-summary { display: flex; justify-content: space-between; gap: 24px; padding: 9px 16px 11px; font-size: 10px; }
.timeline-summary > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 66%; color: #cfdee5; }
.timeline-summary > span:last-child { color: var(--muted); font-size: 9px; }
.lightbox { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 55px 24px 24px; background: rgba(2,9,13,.94); }
.lightbox > button { position: absolute; right: 24px; top: 18px; color: var(--amber); border-color: #9c7d43; }
.lightbox > p { color: var(--muted); font: 11px var(--mono); margin: 0; }
.lightbox-stage { position: relative; min-height: 0; max-width: 95vw; max-height: calc(95vh - 155px); }
.lightbox-stage img { display: block; max-width: 95vw; max-height: calc(95vh - 155px); object-fit: contain; }
.lightbox-annotation-control { color: var(--muted); font-size: 12px; }
@media (min-width: 1700px) { .replay-grid { grid-template-columns: minmax(0, 1fr) 420px; } .screenshot-stage { height: 335px; } .screenshot-stage img { max-height: 333px; } }
@media (max-width: 1180px) { .replay-shell { padding: 14px; } .replay-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; } .graph-panel > .panel-head { align-items: flex-start; flex-direction: column; } .graph-actions { justify-content: flex-start; } .run-meta { display: none; } .graph-key { gap: 8px; padding: 8px 12px; } .stat-card { padding: 10px 12px; } .stat-card strong { font-size: 12px; } .timeline-summary > span:last-child { display: none; } .timeline-summary > span:first-child { max-width: 100%; } }
@media (max-width: 850px) { .replay-shell { padding: 10px; } .topbar { gap: 15px; } .run-picker { align-items: flex-start; flex-direction: column; gap: 3px; } .run-picker select { min-width: 100px; width: 100%; max-width: 100%; font-size: 10px; } .brand-mark { width: 35px; height: 35px; font-size: 11px; } h1 { font-size: 16px; } .brand-lockup .kicker { font-size: 7px; letter-spacing: 1px; } .replay-grid { grid-template-columns: 1fr; } .graph-wrap { min-height: 450px; } .inspector { display: grid; grid-template-columns: 1fr 1fr; align-items: start; } .inspector > .panel-head { grid-column: 1 / -1; } .capture-toolbar { grid-column: 1; } .screenshot-stage { grid-row: 3 / 6; grid-column: 1; height: 320px; } .screenshot-stage img { max-height: 318px; } .caption-row { grid-row: 6; grid-column: 1; } .evidence-grid { grid-column: 2; grid-row: 2 / 4; margin-top: 10px; } .inspector-tabs { grid-column: 2; grid-row: 4; } .detail-panel { grid-column: 2; grid-row: 5 / 7; max-height: 240px; } .capture-toolbar { flex-direction: column; align-items: flex-start; } .analytics-head { gap: 9px; } .recent-control { margin-left: auto; } .loop-signal { margin-left: auto; } .stats-note { flex-direction: column; align-items: flex-start; gap: 7px; } .timeline-head { gap: 8px; flex-direction: column; align-items: flex-start; } .player-controls { width: 100%; } .jump-control { margin-left: auto; } .timeline-panel { bottom: 0; } .stat-row { grid-template-columns: repeat(3, 1fr); } .stat-card:last-child { grid-column: span 2; } }
@media (max-width: 530px) { .inspector { display: block; } .screenshot-stage { height: 340px; } .screenshot-stage img { max-height: 338px; } .capture-toolbar { flex-direction: row; } .detail-panel { max-height: 190px; } .graph-wrap { min-height: 385px; } .graph-foot { display: block; } .graph-foot span { display: block; } .analytics-head h2 { font-size: 14px; } .recent-control { font-size: 9px; } .player-controls { gap: 4px; flex-wrap: wrap; } .player-controls > select { max-width: 90px; } .jump-control { font-size: 9px; gap: 4px; } .jump-control input { width: 52px; } .stats-note > div { flex-wrap: wrap; } .heading-tag { display: none; } .graph-key { font-size: 9px; } .graph-nav { margin-left: 0; } .timeline-ruler { margin: 0 70px; } .scrubber-row { padding-left: 12px; padding-right: 12px; gap: 8px; } .scrubber-row > span { min-width: 50px; font-size: 9px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
