:root {
  --bg: #070807;
  --panel: #0d0f0e;
  --panel-solid: #101310;
  --panel-light: #151916;
  --line: #292d2a;
  --line-strong: #414642;
  --text: #f1f3ed;
  --muted: #999e98;
  --quiet: #737873;
  --soft: #c9cdc7;
  --lime: #48dd92;
  --lime-dark: #10291d;
  --amber: #ffbd66;
  --red: #ff746d;
  --blue: #71b8ff;
  --purple: #bd9cff;
  --radius-lg: 4px;
  --radius-md: 2px;
  --shadow: none;
  --font-caption: .75rem;
  --font-meta: .8125rem;
  --font-body: .875rem;
  --font-ui: .9375rem;
  --font-section: 1rem;
  --metrics-dock-height: 96px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--bg); font-size: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "ss01", "cv11";
  font-size: var(--font-body);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

button, input { font: inherit; }
button { color: inherit; }
:where(button, input, summary, a):focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
::selection { color: #071008; background: var(--lime); }
.ambient { display: none; }
.ambient-one { width: 380px; height: 380px; background: #48dd92; top: 30%; left: -260px; }
.ambient-two { width: 420px; height: 420px; background: #4a8ebb; right: -310px; bottom: 5%; }
.shell { width: min(1540px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 52px; position: relative; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand h1 { margin: 2px 0 0; font-size: 1.5rem; line-height: 1.05; letter-spacing: -.035em; }
.brand-mark { width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 13px; display: grid; place-content: center; gap: 3px; background: rgba(255,255,255,.03); }
.brand-mark span { display: block; width: 18px; height: 3px; border-radius: 99px; background: var(--lime); transform-origin: center; }
.brand-mark span:nth-child(1) { width: 11px; }
.brand-mark span:nth-child(2) { margin-left: 4px; }
.brand-mark span:nth-child(3) { width: 14px; margin-left: 1px; }
.eyebrow { margin: 0; font-size: var(--font-caption); font-weight: 760; letter-spacing: .16em; color: var(--muted); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.live-state { min-height: 46px; display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 8px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); }
.live-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(72,221,146,.08); }
.live-state span { font-size: var(--font-body); font-weight: 700; }
.live-state small { grid-column: 2; font-size: var(--font-caption); color: var(--muted); }
.live-state.warning i { background: var(--amber); box-shadow: 0 0 0 5px rgba(255,190,92,.08); }
.live-state.error i { background: var(--red); box-shadow: 0 0 0 5px rgba(255,107,107,.08); }
.insights-link { display: inline-flex; align-items: center; padding: 12px; border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.insights-link:hover { border-color: var(--line-strong); }
.icon-button { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); cursor: pointer; transition: .2s ease; }
.icon-button:hover { background: rgba(255,255,255,.08); border-color: var(--line-strong); transform: translateY(-1px); }
.icon-button.loading svg { animation: spin 1s linear infinite; }
.icon-button svg, .search-box svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.metrics-reserve { height: var(--metrics-expanded-height, auto); }
.hero {
  position: relative;
  z-index: 20;
  padding: 42px 0 36px;
  background: var(--bg);
}
.hero.compact {
  position: fixed;
  top: 0;
  left: 50%;
  width: min(1540px, calc(100% - 48px));
  padding: 10px 0 12px;
  background: #070807;
  box-shadow: 0 8px 22px rgba(0,0,0,.24), 0 1px 0 var(--line);
  transform: translateX(-50%);
  contain: layout paint;
  will-change: transform;
}
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric {
  min-width: 0;
  min-height: 164px;
  padding: 22px;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  text-align: left;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.metric::after { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; right: -46px; top: -49px; background: currentColor; opacity: .07; }
.metric span { display: block; color: var(--soft); font-size: var(--font-body); font-weight: 650; }
.metric strong { display: block; margin: 20px 0 14px; font-size: clamp(2.625rem, 3.4vw, 3rem); line-height: 1; letter-spacing: -.055em; }
.metric small { display: block; color: var(--muted); font-size: var(--font-meta); line-height: 1.45; }
.metric:hover { border-color: var(--line-strong); background: #131613; transform: translateY(-1px); }
.metric.active { border-color: currentColor; box-shadow: inset 0 -3px currentColor, 0 10px 28px rgba(0,0,0,.16); }
.metric-pass { color: var(--lime); }
.metric-problem { color: var(--red); }
.metric-running { color: var(--blue); }
.hero.compact .metric { min-height: 72px; display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "label value" "meta meta"; align-content: center; gap: 4px 12px; padding: 11px 15px; }
.hero.compact .metric span { grid-area: label; align-self: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero.compact .metric strong { grid-area: value; align-self: center; margin: 0; font-size: 1.75rem; }
.hero.compact .metric small { grid-area: meta; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hero.compact .metric::after { width: 60px; height: 60px; right: -36px; top: -38px; }

.search-box { height: 46px; min-width: 0; display: flex; align-items: center; gap: 11px; padding: 0 14px; border: 1px solid transparent; border-radius: 11px; background: rgba(255,255,255,.035); color: var(--muted); transition: .2s; }
.search-box:focus-within { border-color: rgba(72,221,146,.38); background: rgba(255,255,255,.055); }
.search-box input { width: 100%; color: var(--text); background: transparent; border: 0; outline: 0; font-size: var(--font-body); }
.search-box input::placeholder { color: var(--quiet); }
.search-box kbd { border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; color: var(--muted); font-size: var(--font-caption); }
.period-switch { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: var(--font-meta); font-weight: 700; cursor: pointer; user-select: none; }
.period-switch input { appearance: none; width: 40px; height: 23px; margin: 0; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.08); cursor: pointer; transition: .18s ease; }
.period-switch input::after { content: ''; display: block; width: 17px; height: 17px; border-radius: 50%; background: var(--muted); transition: transform .18s ease, background .18s ease; }
.period-switch input:checked { border-color: rgba(72,221,146,.45); background: rgba(72,221,146,.16); }
.period-switch input:checked::after { transform: translateX(17px); background: var(--lime); }
.period-switch input:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.workspace { display: grid; grid-template-columns: minmax(370px, .68fr) minmax(600px, 1.32fr); gap: 18px; align-items: start; }
.run-column, .detail-column { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #0d0f0e; box-shadow: var(--shadow); }
.run-column { min-height: 620px; max-height: calc(100vh - var(--metrics-dock-height) - 36px); overflow: hidden; position: sticky; top: calc(var(--metrics-dock-height) + 18px); display: flex; flex-direction: column; }
.run-search { padding: 14px 14px 0; }
.run-search .search-box { width: 100%; }
.assignee-filter { padding: 14px 18px 16px; border-top: 1px solid var(--line); background: #0a0c0b; }
.assignee-filter-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.assignee-filter-heading span { color: var(--soft); font-size: var(--font-meta); font-weight: 760; letter-spacing: .04em; }
.assignee-filter-heading small { color: var(--quiet); font-size: var(--font-caption); }
.assignee-filter-list { display: flex; gap: 8px; overflow-x: auto; padding: 1px 1px 5px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; scroll-snap-type: x proximity; }
.assignee-filter-button { min-height: 44px; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-solid); color: var(--muted); cursor: pointer; scroll-snap-align: start; transition: border-color .16s ease, background .16s ease, color .16s ease; }
.assignee-filter-button:hover { border-color: var(--line-strong); color: var(--text); background: var(--panel-light); }
.assignee-filter-button[aria-pressed='true'] { border-color: var(--lime); color: var(--text); background: #102018; box-shadow: inset 0 -2px var(--lime); }
.assignee-name { font-size: var(--font-body); font-weight: 680; white-space: nowrap; }
.assignee-count { min-width: 22px; height: 22px; display: inline-grid; place-items: center; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--soft); font-size: var(--font-caption); font-weight: 760; }
.assignee-filter-button[aria-pressed='true'] .assignee-count { border-color: rgba(72,221,146,.55); color: var(--lime); }
.run-meta { flex-wrap: wrap; }
.run-assignee { max-width: 100%; overflow: hidden; text-overflow: ellipsis; padding: 2px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: var(--font-caption); line-height: 1.35; white-space: nowrap; }
.column-heading { display: flex; align-items: end; justify-content: space-between; padding: 23px 24px 17px; border-bottom: 1px solid var(--line); }
.column-heading h3 { margin: 6px 0 0; font-size: 1.375rem; line-height: 1.2; letter-spacing: -.03em; }
.column-heading-actions { display: grid; justify-items: end; gap: 9px; }
.column-heading-actions > span { color: var(--muted); font-size: var(--font-meta); }
.run-list { min-height: 0; max-height: none; flex: 1; overflow: auto; padding: 8px; scrollbar-width: thin; scrollbar-color: #35414b transparent; }
.run-card { width: 100%; display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 19px 17px; text-align: left; border: 1px solid transparent; border-radius: 15px; background: transparent; cursor: pointer; transition: background-color .12s ease, border-color .12s ease; content-visibility: auto; contain: layout paint style; contain-intrinsic-size: 104px; }
.run-card + .run-card { margin-top: 3px; }
.run-card:hover { background: rgba(255,255,255,.035); }
.run-card.selected { border-color: rgba(72,221,146,.22); background: rgba(72,221,146,.07); }
.status-dot { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 4px rgba(255,255,255,.025); }
.status-dot.pass { background: var(--lime); }
.status-dot.technical-defect { background: var(--amber); }
.status-dot.fail, .status-dot.automation_error, .status-dot.incomplete { background: var(--red); }
.status-dot.blocked, .status-dot.ambiguous { background: var(--amber); }
.status-dot.in_progress, .status-dot.retry_scheduled { background: var(--blue); animation: pulse 1.8s ease-in-out infinite; will-change: transform, opacity; }
.run-copy { min-width: 0; }
.run-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.run-key { font-size: var(--font-meta); letter-spacing: .02em; font-weight: 750; color: var(--soft); }
.run-time { color: var(--quiet); font-size: var(--font-caption); }
.run-copy h4 { margin: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: #e0e7e6; font-size: var(--font-body); line-height: 1.5; font-weight: 580; }
.run-stats { display: flex; flex-wrap: wrap; gap: 7px 13px; margin-top: 12px; color: var(--quiet); font-size: var(--font-caption); }
.run-stats span { display: inline-flex; align-items: center; gap: 4px; }
.run-stats .finding-count { color: var(--red); }
.run-status { padding: 6px 8px; border-radius: 7px; border: 1px solid var(--line); color: var(--muted); font-size: var(--font-caption); font-weight: 800; letter-spacing: .045em; line-height: 1.2; white-space: nowrap; }
.run-status.pass { color: var(--lime); background: rgba(72,221,146,.07); border-color: rgba(72,221,146,.13); }
.run-status.technical-defect { color: var(--amber); background: rgba(255,189,102,.07); border-color: rgba(255,189,102,.16); }
.run-status.fail, .run-status.automation_error, .run-status.incomplete { color: var(--red); background: rgba(255,116,109,.07); border-color: rgba(255,116,109,.14); }
.run-status.blocked, .run-status.ambiguous { color: var(--amber); }
.run-status.in_progress, .run-status.retry_scheduled { color: var(--blue); }

.detail-column { min-height: min(620px, calc(100vh - var(--metrics-dock-height) - 36px)); height: calc(100vh - var(--metrics-dock-height) - 36px); max-height: calc(100vh - var(--metrics-dock-height) - 36px); overflow: hidden; position: sticky; top: calc(var(--metrics-dock-height) + 18px); display: flex; flex-direction: column; contain: layout paint; }
#detail-content { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #35414b transparent; scroll-behavior: smooth; will-change: scroll-position; }
.empty-detail { min-height: 0; flex: 1; display: grid; place-items: center; align-content: center; text-align: center; padding: 48px; }
.empty-detail h3 { margin: 9px 0; font-size: 1.5rem; letter-spacing: -.04em; }
.empty-detail > p:last-child { max-width: 440px; margin: 0; color: var(--muted); font-size: var(--font-ui); line-height: 1.65; }
.empty-orbit { width: 82px; height: 82px; margin-bottom: 26px; display: grid; place-items: center; border: 1px dashed rgba(72,221,146,.24); border-radius: 50%; animation: spin 18s linear infinite; }
.empty-orbit span { width: 28px; height: 28px; border-radius: 9px; border: 1px solid rgba(72,221,146,.4); background: rgba(72,221,146,.08); }
.detail-head { padding: 28px 30px 24px; border-bottom: 1px solid var(--line); background: #0b0d0c; }
.detail-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.detail-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.copy-prompt-button { min-height: 36px; padding: 7px 11px; border: 1px solid rgba(72,221,146,.28); border-radius: 8px; background: rgba(72,221,146,.07); color: var(--lime); font-size: var(--font-caption); font-weight: 760; letter-spacing: .015em; cursor: pointer; transition: border-color .16s ease, background .16s ease, color .16s ease; }
.copy-prompt-button:hover { border-color: rgba(72,221,146,.55); background: rgba(72,221,146,.12); }
.copy-prompt-button.copied { border-color: rgba(72,221,146,.65); background: rgba(72,221,146,.16); }
.copy-prompt-button:disabled { opacity: .72; cursor: wait; }
.rerun-button { min-height: 36px; padding: 7px 12px; border: 1px solid rgba(111,174,255,.38); border-radius: 8px; background: rgba(111,174,255,.09); color: var(--blue); font-size: var(--font-caption); font-weight: 780; letter-spacing: .015em; cursor: pointer; transition: border-color .16s ease, background .16s ease, color .16s ease; }
.rerun-button:hover:not(:disabled) { border-color: rgba(111,174,255,.68); background: rgba(111,174,255,.16); }
.rerun-button.pending, .rerun-button:disabled { opacity: .78; cursor: wait; }
.run-status.rerun-queued, .status-badge.rerun-queued { color: var(--blue); background: rgba(111,174,255,.08); border-color: rgba(111,174,255,.2); }
.status-dot.rerun-queued { background: var(--blue); }
.detail-key { color: var(--lime); font-size: var(--font-meta); font-weight: 760; letter-spacing: .065em; }
.status-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 8px; background: rgba(255,255,255,.05); font-size: var(--font-caption); font-weight: 800; letter-spacing: .055em; }
.status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-badge.pass { color: var(--lime); }
.status-badge.technical-defect { color: var(--amber); }
.status-badge.fail, .status-badge.automation_error, .status-badge.incomplete { color: var(--red); }
.status-badge.blocked, .status-badge.ambiguous { color: var(--amber); }
.status-badge.in_progress, .status-badge.retry_scheduled { color: var(--blue); }
.detail-head h3 { max-width: 850px; margin: 16px 0 13px; font-size: clamp(1.625rem, 2.3vw, 2.125rem); line-height: 1.18; letter-spacing: -.035em; }
.detail-summary { max-width: 78ch; margin: 0; color: var(--muted); font-size: var(--font-ui); line-height: 1.65; }
.detail-facts { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; }
.fact { display: grid; gap: 3px; }
.fact span { color: var(--quiet); font-size: var(--font-caption); font-weight: 750; letter-spacing: .09em; }
.fact strong { color: var(--soft); font-size: var(--font-meta); font-weight: 600; }
.detail-body { padding: 8px 30px 34px; }
.detail-section { padding: 24px 0 4px; }
.detail-section + .detail-section { border-top: 1px solid var(--line); }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-title h4 { margin: 0; font-size: var(--font-section); line-height: 1.3; letter-spacing: -.01em; }
.section-title span { color: var(--muted); font-size: var(--font-caption); }
.result-overview { padding: 18px; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 12px; background: rgba(113,184,255,.045); }
.result-overview.pass { border-left-color: var(--lime); background: rgba(72,221,146,.04); }
.result-overview.fail, .result-overview.automation_error, .result-overview.incomplete { border-left-color: var(--red); background: rgba(255,116,109,.045); }
.result-overview.blocked, .result-overview.ambiguous { border-left-color: var(--amber); background: rgba(255,189,102,.045); }
.result-overview-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.result-overview-top strong { color: var(--text); font-size: var(--font-section); letter-spacing: .025em; }
.result-overview-top span { color: var(--muted); font-size: var(--font-caption); }
.result-overview > p { margin: 10px 0 0; color: var(--soft); font-size: var(--font-ui); line-height: 1.65; }
.result-failures { display: grid; gap: 9px; margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); }
.result-failures > h5 { margin: 0; color: var(--red); font-size: var(--font-meta); }
.result-failure { padding: 12px 13px; border-radius: 9px; background: rgba(255,116,109,.045); }
.result-failure > strong { color: var(--red); font-size: var(--font-caption); letter-spacing: .04em; }
.result-failure > p { margin: 5px 0 0; color: var(--soft); font-size: var(--font-body); line-height: 1.6; }
.result-failure .evidence-list { margin-top: 10px; }
.scenario-list, .plain-list, .finding-list { display: grid; gap: 7px; }
.scenario-context { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 18px; }
.context-card, .scenario-disclosure { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.018); }
.context-card summary, .scenario-disclosure summary { list-style: none; cursor: pointer; }
.context-card summary::-webkit-details-marker, .scenario-disclosure summary::-webkit-details-marker { display: none; }
.context-card summary { position: relative; min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 38px 12px 14px; color: #dce4e3; font-size: var(--font-meta); font-weight: 720; }
.context-card summary small { color: var(--muted); font-size: var(--font-caption); font-weight: 500; }
.context-card summary::after, .scenario-disclosure > summary::after { content: "+"; position: absolute; right: 13px; top: 50%; color: var(--muted); font-size: 14px; font-weight: 400; transform: translateY(-50%); }
.context-card[open] summary::after, .scenario-disclosure[open] > summary::after { content: "−"; }
.context-card[open], .scenario-disclosure[open] { border-color: var(--line-strong); background: rgba(255,255,255,.028); }
.context-items { padding: 0 14px 14px; }
.context-items p { margin: 7px 0 0; color: var(--soft); font-size: var(--font-meta); line-height: 1.6; overflow-wrap: anywhere; }
.scenario-subheading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 19px 1px 9px; }
.scenario-subheading h5 { margin: 0; color: var(--soft); font-size: var(--font-body); letter-spacing: .01em; }
.scenario-subheading span { color: var(--muted); font-size: var(--font-caption); }
.scenario-disclosure > summary { position: relative; min-height: 64px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 16px; padding: 14px 42px 14px 15px; }
.scenario-summary { min-width: 0; }
.scenario-summary strong { display: block; color: #dce4e3; font-size: var(--font-body); line-height: 1.35; }
.scenario-summary p { margin: 6px 0 0; color: var(--muted); font-size: var(--font-meta); line-height: 1.55; }
.scenario-status { align-self: center; font-size: var(--font-caption); font-weight: 800; letter-spacing: .03em; color: var(--muted); }
.scenario-status.pass, .scenario-status.passed { color: var(--lime); }
.scenario-status.fail, .scenario-status.failed { color: var(--red); }
.scenario-status.blocked { color: var(--amber); }
.scenario-status.required, .scenario-status.in_progress { color: var(--blue); }
.primary-scenario { border-color: rgba(255,255,255,.13); background: rgba(255,255,255,.026); }
.primary-scenario > summary { min-height: 74px; }
.primary-scenario .scenario-summary strong { font-size: var(--font-ui); }
.primary-scenario[open] { border-color: rgba(113,184,255,.24); }
.primary-scenario[open]:has(.scenario-status.fail), .primary-scenario[open]:has(.scenario-status.failed) { border-color: rgba(255,116,109,.28); }
.scenario-expanded { display: grid; gap: 16px; padding: 3px 15px 16px; border-top: 1px solid var(--line); }
.scenario-group { padding-top: 12px; }
.scenario-group h5 { margin: 0 0 8px; color: var(--muted); font-size: var(--font-caption); font-weight: 760; letter-spacing: .075em; text-transform: uppercase; }
.scenario-group-list { display: grid; gap: 6px; }
.scenario-group-list p, .no-evidence { margin: 0; color: var(--soft); font-size: var(--font-meta); line-height: 1.65; overflow-wrap: anywhere; }
.evidence-list { display: grid; gap: 6px; }
.evidence-text { margin: 0; padding: 11px 12px; border-radius: 8px; background: rgba(255,255,255,.025); color: var(--soft); font-size: var(--font-meta); line-height: 1.6; overflow-wrap: anywhere; }
.evidence-artifact { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid rgba(113,184,255,.22); border-radius: 8px; background: rgba(113,184,255,.055); color: var(--blue); font: inherit; font-size: var(--font-meta); line-height: 1.45; text-align: left; text-decoration: none; cursor: pointer; overflow-wrap: anywhere; }
.evidence-artifact:hover { background: rgba(113,184,255,.1); }
.no-evidence { color: var(--muted); font-style: italic; }
.artifact-disclosure { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.018); }
.artifact-disclosure > summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; list-style: none; cursor: pointer; }
.artifact-disclosure > summary::-webkit-details-marker { display: none; }
.artifact-disclosure > summary strong { color: var(--soft); font-size: var(--font-body); }
.artifact-disclosure > summary span { color: var(--muted); font-size: var(--font-caption); }
.artifact-disclosure[open] > summary { border-bottom: 1px solid var(--line); }
.gallery-host { padding: 10px; }
.payload-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.payload { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #0d141b; }
.payload span { display: block; margin-bottom: 8px; color: var(--muted); font-size: var(--font-caption); }
.payload code { display: block; overflow-wrap: anywhere; color: #dbe8dd; font-size: var(--font-body); line-height: 1.55; }
.payload small { display: block; margin-top: 9px; color: var(--quiet); font-size: var(--font-caption); line-height: 1.45; }
.health-card { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 13px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); }
.health-score { min-width: 82px; padding: 10px; display: grid; place-items: center; align-content: center; border-radius: 9px; color: var(--lime); background: rgba(72,221,146,.07); font-size: var(--font-caption); font-weight: 800; letter-spacing: .03em; }
.health-score.defect { color: var(--red); background: rgba(255,116,109,.07); }
.health-score.warning { color: var(--amber); }
.health-card p { margin: 0; color: var(--muted); font-size: var(--font-body); line-height: 1.65; }
.finding { padding: 12px 13px; border-left: 2px solid var(--red); border-radius: 0 10px 10px 0; background: rgba(255,116,109,.045); }
.finding strong { font-size: var(--font-caption); color: var(--red); letter-spacing: .03em; }
.finding p { margin: 6px 0 0; color: var(--soft); font-size: var(--font-body); line-height: 1.6; }
.finding-evidence { display: grid; gap: 6px; margin-top: 11px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.06); }
.finding-evidence-item { min-width: 0; padding: 9px 10px; border-radius: 8px; background: rgba(255,255,255,.025); }
.finding-evidence-item span { display: block; margin-bottom: 4px; color: var(--muted); font-size: var(--font-caption); font-weight: 720; }
.finding-evidence-item p, .finding-evidence-item code { display: block; margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; color: var(--soft); font-size: var(--font-meta); line-height: 1.55; }
.finding-evidence-item code { max-height: 190px; overflow: auto; color: #dbe8dd; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.plain-item { padding: 13px 14px; border-radius: 10px; background: rgba(255,255,255,.025); color: var(--soft); font-size: var(--font-body); line-height: 1.6; }
.attempt-list { display: grid; gap: 8px; }
.attempt-item { display: grid; gap: 5px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); }
.attempt-item strong { color: var(--soft); font-size: var(--font-body); }
.attempt-item span { color: var(--quiet); font-size: var(--font-caption); }
.attempt-item p { margin: 0; color: var(--muted); font-size: var(--font-meta); line-height: 1.55; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.shot { padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #0b1117; cursor: zoom-in; text-align: left; }
.shot img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #0a0f14; transition: transform .24s; }
.shot:hover img { transform: scale(1.025); }
.shot span { display: block; overflow: hidden; padding: 10px 11px; color: var(--muted); font-size: var(--font-caption); text-overflow: ellipsis; white-space: nowrap; }
.artifact-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.artifact-link { min-height: 36px; display: inline-flex; align-items: center; padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--blue); text-decoration: none; font-size: var(--font-meta); }
.artifact-link:hover { background: rgba(113,184,255,.07); }
.technical-details { margin-top: 24px; padding: 0; border-top: 1px solid var(--line); }
.technical-details > summary { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0; list-style: none; cursor: pointer; }
.technical-details > summary::-webkit-details-marker { display: none; }
.technical-summary-copy { display: grid; gap: 5px; }
.technical-summary-copy strong { color: var(--soft); font-size: var(--font-section); }
.technical-summary-copy span { color: var(--muted); font-size: var(--font-meta); line-height: 1.5; }
.technical-summary-action { min-width: 66px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--blue); font-size: var(--font-caption); text-align: center; }
.technical-details[open] .technical-summary-action { color: var(--muted); }
.technical-details[open] .technical-summary-action::before { content: "Gizle"; }
.technical-details[open] .technical-summary-action { font-size: 0; }
.technical-details[open] .technical-summary-action::before { font-size: var(--font-caption); }
.technical-details-body { padding: 0 0 12px; border-top: 1px solid var(--line); }
.technical-details-body > .detail-section { padding-left: 0; padding-right: 0; }
.technical-scenario-details { padding-top: 2px; }
.empty-inline { padding: 20px; border: 1px dashed var(--line); border-radius: 11px; color: var(--muted); text-align: center; font-size: var(--font-body); }
.loading-block { padding: 44px; text-align: center; color: var(--muted); font-size: var(--font-body); }
.empty-list { padding: 80px 24px; text-align: center; color: var(--muted); font-size: var(--font-body); }

.lightbox { width: min(1180px, calc(100% - 34px)); max-height: calc(100vh - 34px); padding: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 18px; background: #070b10; color: var(--text); box-shadow: 0 30px 110px #000; }
.lightbox::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(8px); }
.lightbox-stage { position: relative; display: grid; min-height: min(680px, calc(100vh - 98px)); place-items: center; background: #030403; }
.lightbox img { display: block; max-width: 100%; max-height: calc(100vh - 110px); margin: 0 auto; object-fit: contain; }
.lightbox-meta { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); background: #090b09; }
.lightbox p { margin: 0; padding: 13px 18px; color: var(--muted); font-size: var(--font-meta); }
#lightbox-counter { padding: 0 18px; color: var(--lime); font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.lightbox-close { position: fixed; top: 24px; right: 28px; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 2px; background: #101310; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; z-index: 3; }
.lightbox-nav { position: absolute; top: 50%; width: 48px; height: 64px; border: 1px solid var(--line-strong); border-radius: 2px; background: rgba(7,8,7,.9); color: var(--lime); font-size: 24px; line-height: 1; cursor: pointer; transform: translateY(-50%); z-index: 2; }
.lightbox-nav.previous { left: 12px; }
.lightbox-nav.next { right: 12px; }
.lightbox-nav:hover, .lightbox-close:hover { border-color: var(--lime); background: #131813; }
.lightbox-nav:focus-visible, .lightbox-close:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.lightbox-nav:disabled { opacity: .24; cursor: default; }
.toast { position: fixed; right: 24px; bottom: 24px; max-width: 380px; padding: 14px 16px; border: 1px solid rgba(255,116,109,.25); border-radius: 11px; background: #261518; color: #ffc1bd; font-size: var(--font-body); line-height: 1.5; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s; }
.toast.visible { opacity: 1; transform: none; }
.toast.success { border-color: rgba(72,221,146,.28); background: #152116; color: #d9ffae; }

/* Forever-inspired operations console */
.topbar { min-height: 76px; border-bottom: 1px solid var(--line); }
.brand { gap: 15px; }
.brand-mark { width: 8px; height: 25px; border: 0; border-radius: 0; background: var(--lime); }
.brand-mark span { display: none; }
.brand h1 { font-size: 1.375rem; }
.live-state { min-height: 44px; padding: 0 16px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; }
.live-state i { box-shadow: none; }
.live-state.warning i, .live-state.error i { box-shadow: none; }
.icon-button { width: 44px; height: 44px; border-radius: 2px; background: #0d0f0e; transition: background-color .16s ease, border-color .16s ease, transform .16s ease; }
.activity-rail { display: grid; grid-template-columns: auto minmax(0, 1fr); margin-top: 12px; overflow: hidden; border: 1px solid var(--line); background: #090b09; }
.activity-label { z-index: 1; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-right: 1px solid var(--line); color: #05150c; background: var(--lime); font: 850 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; white-space: nowrap; }
.activity-label i { width: 6px; height: 6px; background: currentColor; }
.activity-window { min-width: 0; overflow: hidden; }
.activity-track { display: flex; width: max-content; animation: activity-scroll 34s linear infinite; }
.activity-group { display: flex; align-items: center; min-height: 40px; white-space: nowrap; }
.activity-group span { display: inline-flex; align-items: center; gap: 10px; padding: 0 25px; color: #b8bdb8; font: 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.activity-group span::before { content: ""; width: 5px; height: 5px; background: var(--lime); }
.hero { padding: 16px 0 12px; }
.hero.compact { padding: 8px 0 10px; box-shadow: 0 1px 0 var(--line); }
.metrics { gap: 0; border: 1px solid var(--line); background: var(--panel); }
.metric { min-height: 132px; padding: 19px 21px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: var(--panel); }
.metric:last-child { border-right: 0; }
.metric::after { display: none; }
.metric strong { margin: 15px 0 12px; font-size: clamp(2.25rem, 3vw, 2.75rem); }
.metric:hover { border-color: var(--line); background: #121512; transform: none; }
.metric.active { box-shadow: inset 0 -3px currentColor; }
.workspace { grid-template-columns: minmax(370px, .7fr) minmax(600px, 1.3fr); gap: 12px; }
.run-column, .detail-column { border-radius: 2px; background: var(--panel); box-shadow: none; }
.run-search { padding: 0; border-bottom: 1px solid var(--line); }
.search-box { height: 52px; padding: 0 18px; border: 0; border-radius: 0; background: #0a0c0b; }
.search-box:focus-within { border-color: transparent; background: #101310; box-shadow: inset 3px 0 var(--lime); }
.column-heading { padding: 20px 22px 16px; }
.run-list { padding: 0; }
.run-card { gap: 13px; padding: 18px 20px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.run-card + .run-card { margin-top: 0; }
.run-card:hover { background: #111411; }
.run-card.selected { border-color: var(--line); box-shadow: inset 3px 0 var(--lime); background: rgba(72,221,146,.055); }
.status-dot { width: 7px; height: 7px; box-shadow: none; }
.run-status { padding: 2px 0; border: 0; border-radius: 0; background: transparent !important; }
.detail-head { padding: 27px 30px 23px; background: #0b0d0c; }
.copy-prompt-button, .rerun-button, .status-badge { border-radius: 2px; }
.result-overview, .context-card, .scenario-disclosure, .artifact-disclosure, .payload, .health-card, .plain-item, .attempt-item, .shot, .empty-inline { border-radius: 3px; }
.evidence-text, .evidence-artifact, .finding-evidence-item, .artifact-link, .technical-summary-action { border-radius: 2px; }
.finding { border-radius: 0; }
.lightbox { border-radius: 3px; box-shadow: 0 24px 80px #000; }
.lightbox::backdrop { backdrop-filter: none; }
.toast { border-radius: 3px; }
html { font-variant-numeric: tabular-nums; }
.detail-column { scroll-margin-top: calc(var(--metrics-dock-height) + 12px); }
.empty-orbit { width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 2px; animation: none; }
.empty-orbit span { width: 10px; height: 10px; border: 0; border-radius: 0; background: var(--lime); }

@keyframes activity-scroll { to { transform: translateX(-50%); } }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: .72; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.15); } }
@media (max-width: 1180px) {
  .hero { padding-top: 16px; }
  .workspace { grid-template-columns: minmax(330px,.75fr) minmax(500px,1.25fr); }
  .gallery { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 880px) {
  .shell { width: min(100% - 28px, 740px); }
  .metrics { grid-template-columns: repeat(2,1fr); }
  .hero.compact { width: min(calc(100% - 28px), 740px); }
  .hero.compact .metrics { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
  .hero.compact .metric { padding-inline: 11px; }
  .hero.compact .metric small { display: none; }
  .workspace { grid-template-columns: 1fr; }
  .run-column, .detail-column { position: static; max-height: none; }
  .detail-column { min-height: 620px; height: auto; contain: none; }
  #detail-content { overflow: visible; overscroll-behavior: auto; scrollbar-gutter: auto; scroll-behavior: auto; will-change: auto; }
  .empty-detail { min-height: 620px; }
  .run-list { flex: none; max-height: 590px; }
}
@media (max-width: 540px) {
  .shell { width: min(100% - 20px, 500px); padding-top: 18px; }
  .brand .eyebrow, .live-state small { display: none; }
  .live-state { grid-template-columns: auto auto; }
  .activity-rail { margin-top: 10px; }
  .activity-label { padding: 0 10px; font-size: 10px; }
  .activity-group span { padding: 0 18px; }
  .hero { padding: 12px 0 10px; }
  .metrics { display: flex; gap: 0; overflow-x: auto; border-right: 0; border-left: 0; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .metrics::-webkit-scrollbar { display: none; }
  .metric { flex: 0 0 158px; min-height: 122px; padding: 16px; scroll-snap-align: start; }
  .metric strong { margin-top: 13px; font-size: 2.25rem; }
  .hero.compact { width: min(calc(100% - 20px), 500px); padding: 8px 0 10px; }
  .hero.compact .metrics { display: flex; overflow-x: auto; padding: 2px; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .hero.compact .metric { flex: 0 0 152px; min-height: 68px; scroll-snap-align: start; }
  .column-heading { align-items: flex-start; gap: 14px; padding-inline: 18px; }
  .column-heading-actions { justify-items: end; }
  .run-card { grid-template-columns: 9px minmax(0, 1fr); }
  .run-status { grid-column: 2; justify-self: start; }
  .detail-head, .detail-body { padding-left: 19px; padding-right: 19px; }
  .detail-topline { align-items: flex-start; flex-direction: column; }
  .detail-actions { width: 100%; justify-content: space-between; }
  .scenario-context, .payload-grid, .gallery { grid-template-columns: 1fr; }
  .scenario-disclosure > summary { grid-template-columns: 1fr; gap: 8px; }
  .scenario-status { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }

.verification-form { padding: 16px; border: 1px solid var(--line, #354052); border-radius: 14px; margin-bottom: 16px; }
.verification-form label { display: block; font-weight: 650; margin-bottom: 10px; }
.verification-form > div { display: flex; gap: 8px; flex-wrap: wrap; }
.verification-form input { flex: 1; min-width: 150px; width: 100%; padding: 10px; border-radius: 8px; color: inherit; background: #171e2b; border: 1px solid #354052; }
.verification-form button { padding: 10px 14px; border-radius: 8px; background: #204d61; color: white; cursor: pointer; border: 1px solid #43809b; }
.verification-form small { display: block; margin-top: 10px; line-height: 1.5; color: #a7b6c9; }
.verification-form p { font-size: 13px; overflow-wrap: anywhere; }
.verification-result { padding: 16px; border: 1px solid #43809b; border-radius: 12px; margin-bottom: 16px; }
.verification-result p { font-size: 13px; line-height: 1.5; }

#verification-dialog { width: min(620px, calc(100% - 32px)); border: 1px solid #43809b; border-radius: 16px; background: #111a27; color: #edf3fb; padding: 20px; }
#verification-dialog::backdrop { background: #020711cc; }
#verification-close { border: 1px solid #354052; border-radius: 8px; color: inherit; background: #171e2b; padding: 8px 14px; margin-bottom: 16px; cursor: pointer; }

#verification-open { background: transparent; cursor: pointer; border-radius: 10px; }
@media (max-width: 880px) {
 .topbar { flex-wrap: wrap; gap: 12px; }
 .topbar-actions { flex-wrap: wrap; min-width: 0; max-width: 100%; }
}
.tool-repairs { margin: 0 0 24px; padding: 20px; border: 1px solid #38564b; border-radius: 16px; background: #15231d; }
.tool-repairs[hidden] { display: none; }
.tool-repairs h3, .tool-repair-card p { margin: 0 0 10px; }
.tool-repairs small { color: #b9c9c0; }
.tool-repair-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin-top: 16px; }
.tool-repair-card { padding: 14px; background: #101b16; border-radius: 10px; }
.repair-tickets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.repair-ticket { border: 1px solid #416553; border-radius: 6px; background: transparent; color: #cbe9d8; padding: 5px 8px; cursor: pointer; font: inherit; font-size: 12px; }
.repair-tag { color: #a3d3b7; }
