:root {
  --paper: #f6f5f1;
  --surface: #fff;
  --ink: #20272b;
  --muted: #657076;
  --line: #dce0df;
  --nav: #1d2a30;
  --accent: #244e64;
  --accent-soft: #eef3f5;
  --green: #346951;
  --green-soft: #eaf3ed;
  --amber: #856326;
  --amber-soft: #faf2e2;
  --red: #a8433a;
  --red-soft: #faeeeb;
  --radius: 6px;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --ui: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.6 var(--ui);
}
button,
input,
textarea,
select {
  font: inherit;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid #648da5;
  outline-offset: 3px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
.mono {
  font-family: var(--mono);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.muted,
.hint {
  color: var(--muted);
}
.hint {
  font-size: 13px;
  margin: 6px 0;
}
.small {
  font-size: 12px;
}
.nowrap {
  white-space: nowrap;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  left: 250px;
  top: -100px;
  z-index: 100;
  background: white;
  padding: 12px;
}
.skip-link:focus {
  top: 12px;
}
.sidebar {
  width: 226px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--nav);
  color: #d6e0e3;
  display: flex;
  flex-direction: column;
  padding: 32px 20px;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-size: 30px;
  letter-spacing: -1.3px;
  font-weight: 650;
  line-height: 1;
}
.brand:hover {
  text-decoration: none;
}
.brand-symbol {
  display: grid;
  place-items: center;
  border: 1px solid #81999f;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  font:
    27px Georgia,
    serif;
  line-height: 1;
}
.brand-caption {
  display: block;
  font-size: 10px;
  letter-spacing: 0.4px;
  color: #a4b6bc;
  font-weight: 400;
  margin-top: 9px;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #98adb5;
  margin: 48px 10px 14px;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.sidebar nav a {
  color: #becdd2;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 5px;
  font-size: 13px;
}
.sidebar nav a:hover {
  background: #2b3a42;
  text-decoration: none;
}
.sidebar nav a.active {
  background: #344750;
  color: white;
}
.nav-mark {
  font-size: 19px;
  width: 20px;
  line-height: 1;
  text-align: center;
  color: #91acb7;
}
.sidebar nav a.active .nav-mark {
  color: white;
}
.sidebar-start {
  color: white;
  font-size: 13px;
  border: 1px solid #566c75;
  border-radius: 5px;
  padding: 10px 12px;
  margin-top: 30px;
  display: flex;
  gap: 12px;
}
.sidebar-start:hover {
  background: #344750;
  text-decoration: none;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 40px 10px 0;
  font-size: 11px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.system-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #85b393;
}
.quiet-light {
  border: 0;
  background: none;
  color: #bed0d7;
  padding: 0;
  margin-left: 14px;
  font-size: 11px;
}
.version {
  margin-top: 16px;
  color: #91a5ad;
  width: 100%;
  font-family: var(--mono);
  font-size: 10px;
}
.workspace {
  margin-left: 226px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.topbar {
  height: 76px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.context {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.context label {
  color: var(--muted);
  font-size: 12px;
}
.context select {
  border: 0;
  background: transparent;
  padding: 8px 28px 8px 0;
  max-width: 280px;
  color: var(--ink);
  font-weight: 550;
  text-overflow: ellipsis;
}
.topbar-end {
  display: flex;
  align-items: center;
  gap: 24px;
}
.connection {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.connection::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 7px;
}
.connection.offline::before {
  background: var(--amber);
}
#view {
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  padding: 38px 44px 56px;
  flex: 1;
  min-width: 0;
}
.statusbar {
  border-top: 1px solid var(--line);
  margin: 0 44px;
  padding: 16px 0;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  position: relative;
}
.statusbar details > div {
  position: absolute;
  bottom: 50px;
  right: 0;
  max-width: 350px;
  background: white;
  border: 1px solid var(--line);
  padding: 16px;
  display: grid;
  gap: 8px;
  box-shadow: 0 4px 20px #20272b12;
  overflow-wrap: anywhere;
}
.statusbar summary {
  cursor: pointer;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 10px;
  color: var(--muted);
  font-weight: 650;
  margin-bottom: 8px;
}
h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.9px;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin: 0;
}
h3 {
  font-size: 14px;
  font-weight: 650;
  margin: 0 0 6px;
}
p {
  margin: 0 0 12px;
}
.page-head p {
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 0;
}
.breadcrumb {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.section-head p {
  margin: 4px 0 0;
}
.section {
  margin-top: 32px;
}
.btn {
  border: 1px solid #c8d0d2;
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  padding: 9px 16px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.4;
  white-space: nowrap;
}
.btn:hover {
  background: #edf0ef;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: #1c4053;
}
.btn-small {
  padding: 7px 12px;
  font-size: 12px;
}
.btn-text {
  background: transparent;
  border-color: transparent;
  color: var(--accent);
  padding: 5px 0;
}
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.panel.flush {
  padding: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 24px 0 32px;
}
.metric {
  padding: 20px 24px 20px 0;
}
.metric + .metric {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.metric-value {
  font-size: 30px;
  letter-spacing: -1px;
  line-height: 1.2;
  font-weight: 550;
}
.metric-label {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}
.metric-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 550;
  background: #edf0ef;
  color: var(--muted);
  line-height: 1.6;
  white-space: nowrap;
}
.badge.done,
.badge.ok,
.badge.complete,
.badge.ACTIVE_VERIFIED {
  background: var(--green-soft);
  color: var(--green);
}
.badge.awaiting_review,
.badge.finalizing,
.badge.running,
.badge.partial,
.badge.inconclusive,
.badge.queued,
.badge.pending,
.badge.CORRELATED {
  background: var(--amber-soft);
  color: var(--amber);
}
.badge.cleanup_pending,
.badge.failed,
.badge.rejected,
.badge.aborted,
.badge.CRITICAL,
.badge.HIGH {
  background: var(--red-soft);
  color: var(--red);
}
.badge.mock {
  background: #eaeef5;
  color: #506382;
  border: 1px solid #d2dae7;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  padding: 12px 20px;
  background: #fafbf9;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 16px 20px;
  border-bottom: 1px solid #e9edeb;
  vertical-align: top;
  overflow-wrap: anywhere;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fbfcfa;
}
.table-primary {
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
  display: inline-block;
  max-width: 320px;
  overflow-wrap: anywhere;
}
.table-sub {
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
  max-width: 320px;
  overflow-wrap: anywhere;
}
.table-state {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.empty {
  border: 1px dashed #cbd3d2;
  padding: 40px 24px;
  display: grid;
  justify-items: center;
  text-align: center;
  color: var(--muted);
  border-radius: 6px;
  background: #fbfcfa;
}
.empty h2 {
  color: var(--ink);
  margin-bottom: 8px;
}
.empty .actions {
  margin-top: 8px;
}
.notice {
  padding: 15px 18px;
  background: var(--accent-soft);
  border-left: 3px solid #7393a2;
  margin: 16px 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.notice p:last-child {
  margin-bottom: 0;
}
.notice.warning {
  background: var(--amber-soft);
  border-color: #b99854;
}
.notice.error {
  background: var(--red-soft);
  border-color: var(--red);
}
.notice strong {
  display: block;
  margin-bottom: 3px;
}
.notice ul {
  margin: 8px 0 0;
  padding-left: 20px;
}
.loading {
  color: var(--muted);
  padding: 40px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.loading::before {
  content: "";
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: start;
}
.form-main {
  display: grid;
  gap: 24px;
}
.form-main fieldset {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  min-width: 0;
}
legend {
  font-weight: 600;
  font-size: 14px;
  padding: 0 8px;
  margin-left: -8px;
}
.step-number {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  margin-right: 12px;
}
.field {
  display: grid;
  gap: 7px;
  margin: 16px 0;
}
.field > label {
  font-weight: 550;
  font-size: 12px;
}
.field input,
.field textarea,
.field select,
.filters input,
.filters select {
  width: 100%;
  min-width: 0;
  border: 1px solid #c9d2d4;
  background: white;
  border-radius: 5px;
  padding: 10px 12px;
  color: var(--ink);
}
.field textarea {
  resize: vertical;
  min-height: 130px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
}
.field > small {
  color: var(--muted);
  font-size: 11px;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
}
.choice:has(input:checked) {
  border-color: #668d9e;
  background: #f3f7f8;
  box-shadow: inset 0 0 0 1px #668d9e;
}
.choice input {
  accent-color: var(--accent);
  margin: 4px 0 0;
  flex: none;
}
.choice strong {
  display: block;
  font-size: 13px;
}
.choice small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  margin-top: 4px;
}
.check-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 16px 0;
  cursor: pointer;
}
.check-row input {
  accent-color: var(--accent);
  margin-top: 5px;
}
.check-row strong {
  font-size: 13px;
}
.check-row small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.plan-side {
  position: sticky;
  top: 24px;
}
.plan-side .panel {
  border-top: 3px solid var(--accent);
}
.plan-side h2 {
  font-size: 18px;
  margin-bottom: 6px;
}
.plan-step {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.plan-step:last-child {
  border: 0;
}
.plan-step > span {
  color: var(--muted);
  font: 11px var(--mono);
  padding-top: 3px;
}
.plan-step p {
  color: var(--muted);
  font-size: 12px;
  margin: 4px 0 0;
}
.kv {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 9px 16px;
  margin: 16px 0;
  font-size: 12px;
}
.kv dt {
  color: var(--muted);
}
.kv dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.form-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.plan-preview {
  margin-top: 24px;
}
.plan-preview .scope-list {
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 12px;
}
.scope-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.scope-columns h3 {
  font-size: 12px;
}
.scope-columns ul {
  padding-left: 18px;
  margin: 8px 0;
}
.technical {
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
}
.technical summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 550;
}
.technical pre,
pre.diagnostic {
  background: #f4f6f5;
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 5px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 11px/1.7 var(--mono);
  max-height: 420px;
  overflow: auto;
}
.toolbar,
.filters {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.filters .field {
  margin: 0;
  min-width: 140px;
  flex: 1;
}
.filters .field:first-child {
  flex: 2;
  min-width: 180px;
}
.tabs {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.tabs a {
  padding: 12px 0;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tabs a:hover {
  text-decoration: none;
  color: var(--ink);
}
.tabs a.active {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: 24px;
  align-items: start;
}
.stage-list {
  display: grid;
  gap: 16px;
}
.stage {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 22px;
}
.stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.stage-head h2 {
  font-size: 16px;
}
.stage .actions {
  margin-top: 16px;
}
.stage .hint {
  margin-top: 10px;
}
.progress-bar {
  height: 4px;
  background: #e6eceb;
  border-radius: 2px;
  overflow: hidden;
  margin: 22px 0 8px;
}
.progress-bar > span {
  display: block;
  height: 100%;
  background: #64877a;
  transition: width 0.4s;
}
.progress-text {
  font-size: 11px;
  color: var(--muted);
}
.scan-progress { margin-top: 18px; }
.scan-progress-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.scan-progress-percent { font-size: 24px; font-variant-numeric: tabular-nums; }
.scan-progress .progress-bar { height: 6px; margin-top: 10px; }
.scan-progress-facts { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; font-size: 12px; }
.progress-stages { padding: 0; margin: 16px 0; list-style: none; }
.progress-stage { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.progress-stage.running { font-weight: 600; }
.timeline {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.timeline li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid #eef1ef;
  font-size: 12px;
}
.timeline li:last-child {
  border: 0;
}
.timeline-mark {
  color: var(--muted);
}
.timeline-mark.ok {
  color: var(--green);
}
.timeline-mark.failed {
  color: var(--red);
}
.timeline details {
  grid-column: 2/-1;
  margin: 0;
}
.finding-row td {
  padding-top: 13px;
  padding-bottom: 13px;
}
.finding-title {
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}
.finding-detail {
  margin-top: 8px;
  font-size: 12px;
}
.finding-detail summary {
  cursor: pointer;
  color: var(--accent);
}
.finding-detail dl {
  padding: 16px;
  background: #f5f7f6;
  margin: 12px 0;
  max-width: 650px;
}
.finding-detail pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 11px/1.7 var(--mono);
  max-height: 260px;
  overflow: auto;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  color: var(--muted);
  font-size: 12px;
}
.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.asset-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 18px;
  min-width: 0;
}
.asset-card h3 {
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 12px;
}
.asset-card p {
  color: var(--muted);
  font-size: 12px;
}
.asset-card .badge {
  margin-bottom: 12px;
}
.report-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.report-layout > * {
  min-width: 0;
}
.report-menu {
  display: grid;
  gap: 6px;
}
.report-menu button {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  text-align: left;
  color: var(--ink);
  font-size: 12px;
}
.report-menu button.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.report-menu button small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.document {
  padding: 36px 40px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.document h1 {
  font-size: 27px;
  margin-bottom: 24px;
  line-height: 1.4;
}
.document h2 {
  font-size: 20px;
  margin: 28px 0 14px;
}
.document h3 {
  margin: 22px 0 10px;
}
.document h4 {
  font-size: 14px;
  margin: 20px 0 8px;
}
.document p,
.document li {
  font-size: 13px;
  line-height: 1.9;
}
.document pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f5f7f6;
  border: 1px solid var(--line);
  padding: 14px;
  font: 11px/1.8 var(--mono);
}
.document code {
  font-family: var(--mono);
  font-size: 11px;
  background: #f0f3f2;
  padding: 2px 4px;
}
.document table {
  font-size: 12px;
  margin: 14px 0;
}
.document td,
.document th {
  padding: 9px 12px;
}
.document blockquote {
  border-left: 3px solid var(--line);
  margin: 16px 0;
  padding-left: 16px;
  color: var(--muted);
}
.document .table-wrap {
  border-radius: 0;
}
.document a {
  overflow-wrap: anywhere;
}
.login-layout {
  max-width: 860px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  margin: 8vh auto;
}
.login-intro h1 {
  font-size: 40px;
  line-height: 1.2;
  margin: 18px 0;
}
.login-intro p {
  color: var(--muted);
  line-height: 1.8;
}
.login-form {
  padding: 32px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.login-form h2 {
  margin-bottom: 8px;
}
.login-form .btn {
  width: 100%;
  margin-top: 10px;
}
.login-emblem {
  font:
    64px Georgia,
    serif;
  color: var(--accent);
  line-height: 1;
}
.budget-sources {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.budget-source {
  border-top: 3px solid var(--accent);
}
.budget-source .metric-value {
  margin: 16px 0 4px;
}
.legend-inline {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 11px;
  margin-top: 16px;
}
.chart-key::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
  margin-right: 6px;
}
@media (min-width: 1600px) {
  #view {
    padding-top: 48px;
  }
  .topbar {
    padding-right: 64px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 196px;
    padding: 28px 14px;
  }
  .workspace {
    margin-left: 196px;
  }
  .topbar {
    padding: 0 28px;
  }
  #view {
    padding: 30px 28px 44px;
  }
  .statusbar {
    margin: 0 28px;
  }
  .form-layout,
  .two-col {
    grid-template-columns: minmax(0, 1.4fr) minmax(250px, 1fr);
    gap: 20px;
  }
  .asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  td,
  th {
    padding-left: 14px;
    padding-right: 14px;
  }
  .connection {
    display: none;
  }
  .table-primary {
    max-width: 250px;
  }
  .document {
    padding: 26px;
  }
  .report-layout {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}
@media (max-width: 850px) {
  .sidebar {
    width: 168px;
    padding: 24px 10px;
  }
  .workspace {
    margin-left: 168px;
  }
  .sidebar nav a {
    padding: 10px 8px;
    font-size: 12px;
    gap: 8px;
  }
  .nav-label {
    font-size: 8px;
    margin-left: 8px;
  }
  .brand {
    font-size: 26px;
    gap: 8px;
  }
  .brand-caption {
    font-size: 8px;
  }
  .brand-symbol {
    width: 32px;
    height: 32px;
  }
  .form-layout,
  .two-col {
    grid-template-columns: 1fr;
  }
  .plan-side {
    position: static;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric:nth-child(3) {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
  }
  .metric:nth-child(4) {
    border-top: 1px solid var(--line);
  }
  .report-layout {
    grid-template-columns: 1fr;
  }
  .report-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .login-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 20px auto;
    max-width: 450px;
  }
  .login-intro h1 {
    font-size: 30px;
  }
  .login-emblem {
    display: none;
  }
  .topbar-end {
    gap: 8px;
  }
  .context select {
    max-width: 190px;
  }
  .context label {
    display: none;
  }
  .page-head {
    flex-wrap: wrap;
  }
  .scope-columns {
    grid-template-columns: 1fr;
  }
  .budget-sources {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 16px 20px;
    display: block;
  }
  .brand {
    font-size: 23px;
  }
  .brand-caption {
    display: none;
  }
  .brand-symbol {
    width: 28px;
    height: 28px;
    font-size: 21px;
  }
  .nav-label,
  .sidebar-start,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 14px;
    margin-top: 16px;
    overflow-x: auto;
  }
  .sidebar nav a {
    padding: 7px 0;
    border-radius: 0;
    font-size: 11px;
    white-space: nowrap;
  }
  .sidebar nav a.active {
    background: transparent;
    border-bottom: 1px solid #b4cad4;
  }
  .nav-mark {
    display: none;
  }
  .sidebar-bottom {
    display: flex;
    margin-top: 12px;
    padding: 0;
  }
  .sidebar-bottom .version {
    display: none;
  }
  .sidebar-bottom .quiet-light {
    margin-left: auto;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 62px;
    padding: 0 20px;
    gap: 8px;
  }
  .topbar-end .btn {
    font-size: 11px;
    padding: 7px 10px;
  }
  .context select {
    max-width: 190px;
    font-size: 12px;
  }
  #view {
    padding: 26px 20px 36px;
  }
  h1 {
    font-size: 27px;
  }
  .page-head {
    gap: 14px;
    margin-bottom: 24px;
  }
  .page-head p {
    font-size: 12px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .panel,
  .form-main fieldset,
  .stage {
    padding: 18px;
  }
  .metrics {
    margin: 18px 0 24px;
  }
  .metric {
    padding: 16px 14px 16px 0;
  }
  .metric + .metric {
    padding-left: 14px;
  }
  .metric-value {
    font-size: 26px;
  }
  .choice-grid {
    grid-template-columns: 1fr;
  }
  .choice {
    padding: 12px;
  }
  .asset-grid {
    grid-template-columns: 1fr;
  }
  .statusbar {
    margin: 0 20px;
    gap: 12px;
    font-size: 9px;
    flex-wrap: wrap;
  }
  .statusbar > span:nth-child(2) {
    display: none;
  }
  .table-primary {
    max-width: 200px;
    font-size: 13px;
  }
  .table-wrap table {
    min-width: 570px;
  }
  .tabs {
    gap: 22px;
  }
  .tabs a {
    font-size: 12px;
  }
  .document {
    padding: 20px;
  }
  .document h1 {
    font-size: 23px;
  }
  .kv {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 8px 12px;
  }
  .report-menu {
    grid-template-columns: 1fr;
  }
  .filters {
    gap: 10px;
  }
  .filters .field {
    min-width: 120px;
  }
  .login-form {
    padding: 24px;
  }
  .skip-link {
    left: 20px;
  }
  .section-head {
    flex-wrap: wrap;
  }
  .stage-head {
    align-items: flex-start;
  }
  .btn {
    font-size: 12px;
  }
  .plan-side {
    margin-top: 4px;
  }
  .pagination {
    flex-wrap: wrap;
  }
  .document table {
    min-width: 440px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .sidebar,
  .topbar,
  .statusbar,
  .tabs,
  .report-menu,
  .actions {
    display: none;
  }
  .workspace {
    margin: 0;
  }
  #view {
    padding: 0;
  }
  .document {
    border: 0;
    padding: 0;
  }
  .report-layout {
    display: block;
  }
}

/* Three explicit phases share one audit context. */
.phase-form {
  display: grid;
  gap: 22px;
}
.phase-context-fields {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(260px, 2fr);
  gap: 28px;
  align-items: start;
}
.phase-targets .field {
  margin: 0;
}
.phase-targets textarea {
  min-height: 108px;
}
.phase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.phase-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.phase-card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.phase-card h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.3px;
}
.phase-number {
  color: var(--muted);
  font: 12px var(--mono);
  border-right: 1px solid var(--line);
  padding-right: 12px;
}
.phase-description {
  color: var(--muted);
  margin: 16px 0 24px;
  min-height: 66px;
  font-size: 13px;
}
.phase-availability {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.phase-availability p {
  margin: 10px 0 0;
}
.phase-availability a {
  display: block;
  margin-top: 10px;
}
.phase-card > .btn {
  margin-top: auto;
  width: 100%;
  min-height: 44px;
}
.phase-last {
  display: block;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.phase-last .badge {
  font-size: 10px;
}
.phase-settings > summary,
.scope-details > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.phase-settings[open] > summary,
.scope-details[open] > summary {
  margin-bottom: 22px;
}
.phase-settings h3 {
  margin-top: 24px;
}
.budget-inputs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.budget-inputs input:disabled {
  background: var(--paper);
  color: var(--muted);
}
.execution-console {
  margin: 24px 0;
  border-top: 3px solid var(--accent);
}
.execution-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
}
.execution-status > strong {
  font-size: 17px;
}
.execution-facts .kv {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr);
  column-gap: 22px;
}
.execution-log-heading {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  cursor: pointer;
}
.inline-check input {
  accent-color: var(--accent);
}
.log-toolbar {
  gap: 12px;
  flex-wrap: wrap;
}
.log-toolbar select {
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  font: 12px var(--mono);
}
.agent-log {
  min-height: 180px;
  max-height: 440px;
  margin-top: 12px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.budget-chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.budget-chips > span {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 12px;
  background: var(--paper);
  border-radius: var(--radius);
  font-size: 12px;
}
.budget-chips strong {
  font-family: var(--mono);
}
.btn-danger {
  color: var(--red);
  border-color: #dcb7b2;
}
.btn-danger:hover:not(:disabled) {
  background: var(--red-soft);
}
/* Konsola interaktywna: strumień sesji (karty eventów, dane = textContent) */
.session-stream {
  margin: 20px 0 4px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.stream-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
  max-height: min(68vh, 760px);
  overflow-y: auto;
  padding: 4px;
}
.stream-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px 12px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.stream-card-title {
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 4px;
  color: var(--accent);
}
.stream-card--text .stream-card-title {
  color: var(--ink);
}
.stream-card--text {
  padding: 16px 18px;
}
.stream-card--operator {
  border-left: 3px solid var(--green);
}
.stream-card-text {
  white-space: pre-wrap;
}
.stream-card--reasoning {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
}
.stream-card summary,
.stream-activity > summary,
.execution-diagnostics > summary {
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.6;
}
.stream-card summary:focus-visible,
.stream-activity > summary:focus-visible,
.execution-diagnostics > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.stream-markdown.document {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 14px;
  line-height: 1.7;
}
.stream-card--reasoning[open] > .stream-markdown {
  margin-top: 12px;
}
.stream-markdown.document p,
.stream-markdown.document li {
  font-size: 14px;
  line-height: 1.75;
}
.stream-markdown.document h1,
.stream-markdown.document h2,
.stream-markdown.document h3 {
  font-size: 16px;
  line-height: 1.5;
  margin: 20px 0 10px;
}
.stream-markdown.document > :first-child {
  margin-top: 0;
}
.stream-markdown.document > :last-child {
  margin-bottom: 0;
}
.stream-markdown.document pre {
  font-size: 12px;
  padding: 12px;
}
.stream-markdown.document code {
  font-size: 12px;
}
.stream-markdown.document ul,
.stream-markdown.document ol {
  padding-left: 22px;
}
.stream-activity {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 8px 12px;
  color: var(--muted);
}
.stream-activity-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  color: var(--ink);
}
.stream-tool-status {
  color: var(--muted);
  font-weight: 400;
  margin-left: 12px;
}
.execution-diagnostics {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 16px;
  min-width: 0;
}
.execution-diagnostics > summary {
  color: var(--muted);
}
.stream-card--tool {
  background: #f7f7f4;
}
.stream-card-cmd {
  margin: 4px 0;
}
.stream-card-out {
  margin: 6px 0 0;
  padding: 8px;
  background: var(--paper);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 320px;
  overflow-y: auto;
}
.stream-card-json {
  margin: 6px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 320px;
  overflow-y: auto;
}
.stream-card--divider {
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-left: none;
  border-right: none;
  border-bottom: none;
  background: transparent;
  padding: 6px 4px;
  color: var(--muted);
  font-size: 12px;
}
.stream-card--status {
  border-left: 3px solid #7393a2;
}
.stream-card--busy {
  border-left-color: var(--amber);
}
.stream-card--permission {
  border-left: 3px solid var(--amber);
  background: var(--amber-soft);
}
.stream-card--warning {
  border-left: 3px solid var(--amber);
  background: var(--amber-soft);
}
.stream-card--info {
  border-left: 3px solid var(--green);
  background: var(--green-soft);
}
.stream-card--raw,
.stream-card--unknown {
  background: var(--paper);
}
.stream-perm-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
/* Wiersz wiadomości operatora do agenta */
.stream-input {
  margin: 14px 0;
}
.stream-msg {
  width: 100%;
  min-height: 52px;
  resize: vertical;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.stream-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.stream-input-actions {
  display: flex;
  gap: 8px;
}
.stream-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.badge.stopped {
  color: var(--amber);
  background: var(--amber-soft);
}
@media (max-width: 1150px) {
  .phase-grid {
    gap: 12px;
  }
  .phase-card {
    padding: 18px;
  }
  .phase-card h2 {
    font-size: 16px;
  }
  .phase-card-heading {
    align-items: flex-start;
  }
  .phase-description {
    min-height: 86px;
  }
  .execution-facts .kv {
    grid-template-columns: auto minmax(0, 1fr);
  }
}
@media (max-width: 850px) {
  .phase-context-fields {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .phase-grid {
    grid-template-columns: 1fr;
  }
  .phase-description {
    min-height: 0;
    margin-bottom: 16px;
  }
  .phase-card {
    padding: 22px;
  }
  .phase-card > .btn {
    max-width: 340px;
  }
}
@media (max-width: 600px) {
  .budget-inputs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .execution-console .section-head {
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }
  .execution-facts .kv {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .execution-facts .kv dd {
    margin-bottom: 10px;
  }
}
.scan-parallel-jobs {
  margin: .6rem 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.chamber-panel { margin-top: 1rem; }
.chamber-frame { width: 100%; height: min(78vh, 920px); min-height: 540px; border: 1px solid var(--border, #d6d8db); border-radius: 12px; background: #151313; }
.chamber-panel .toolbar { justify-content: space-between; flex-wrap: wrap; }
@media (max-width: 640px) { .chamber-frame { height: 78vh; min-height: 420px; } }
/* Stable tool output panel; polling updates text without rebuilding controls. */
.tool-console { margin-bottom: 24px; }
.scan-stop-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: -12px 0 24px; }
.scan-stop-controls .hint { margin: 0; }
.scan-stop-controls .error { flex-basis: 100%; }
.tool-console-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 16px; }
.tool-console-toolbar .field { flex: 1 1 320px; min-width: 0; }
.tool-console-toolbar select { width: 100%; }
.tool-output { height: 320px; overflow: auto; padding: 18px; margin: 16px 0 0;
  background: #20292e; color: #e6ece8; border-radius: 6px; font-size: 13px;
  line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
/* Scan overview first; task navigation stays stable while native output streams. */
.launch-overview { margin-bottom: 24px; }
.tool-console-head { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
.tool-console-head h2 { margin-bottom: 4px; }
.tool-live { padding-top: 5px; flex-shrink: 0; }
.tool-console-summary { display: flex; gap: 0; flex-wrap: wrap; padding: 18px 0; margin: 16px 0 0; border-top: 1px solid var(--line); }
.tool-count { display: flex; align-items: baseline; gap: 8px; padding-right: 28px; }
.tool-count strong { font-size: 23px; font-weight: 650; line-height: 1.2; }
.tool-count span { color: var(--muted); font-size: 12px; }
.tool-count.running strong { color: var(--accent); }
.tool-count.done strong { color: var(--green); }
.tool-count.failed strong { color: var(--red); }
.tool-count.cancelled strong { color: var(--amber); }
.tool-updated { margin-left: auto; font-size: 12px; text-align: right; color: var(--muted); }
.tool-updated span { display: block; font-size: 11px; }
.tool-console-layout { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tool-task-nav { background: #fafbf9; border-right: 1px solid var(--line); padding: 14px; min-width: 0; }
.tool-task-nav input { width: 100%; margin-bottom: 10px; }
.tool-task-filters { display: flex; flex-wrap: wrap; gap: 4px; padding-bottom: 12px; }
.tool-task-filter { flex: 1; padding: 6px 8px; border: 1px solid transparent; background: transparent; color: var(--muted); border-radius: 4px; font-size: 12px; }
.tool-task-filter[aria-pressed="true"] { background: var(--surface); border-color: var(--line); color: var(--ink); font-weight: 600; }
.tool-workflow { display: block; width: 100%; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 12px; text-align: left; margin-bottom: 10px; }
.tool-workflow[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.tool-task-list { max-height: 475px; overflow-y: auto; overscroll-behavior: contain; }
.tool-task-group { border-top: 1px solid var(--line); }
/* Address → service → purpose → attempts. Each level has its own compact summary. */
.tool-select { width: 100%; margin-bottom: 10px; padding: 9px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); font-size: 12px; }
.tool-plan-notice { font-size: 12px; margin: 0 0 18px; line-height: 1.6; }
.tool-tree-branch { border-top: 1px solid var(--line); }
.tool-tree-branch > summary { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 3px 6px;
  cursor: pointer; padding: 11px 3px; list-style: none; font-size: 12px; }
.tool-tree-branch > summary::-webkit-details-marker { display: none; }
.tool-tree-branch > summary::before { content: '▸'; grid-row: 1 / 4; color: var(--muted); }
.tool-tree-branch[open] > summary::before { content: '▾'; }
.tool-tree-branch > summary > strong { overflow-wrap: anywhere; font-weight: 600; }
.tool-tree-subtitle, .tool-tree-status { grid-column: 2; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.tool-tree-status[data-state="failed"] { color: var(--red); }
.tool-tree-status[data-state="running"] { color: var(--accent); }
.tool-tree-children { margin-left: 8px; padding-left: 9px; border-left: 1px solid var(--line); }
.tool-tree-note { font-size: 11px; line-height: 1.6; padding: 6px 4px; overflow-wrap: anywhere; }
.tool-tree-more { margin: 10px 0; width: 100%; font-size: 11px; white-space: normal; }
.tool-task { display: block; width: 100%; border: 1px solid transparent; border-left: 3px solid transparent; background: transparent; border-radius: 4px; text-align: left; padding: 9px 10px; margin: 2px 0; }
.tool-task:hover { background: var(--accent-soft); }
.tool-task[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--line); border-left-color: var(--accent); }
.tool-task-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.tool-task-top .badge { font-size: 10px; padding: 2px 6px; }
.tool-task-meta { display: block; font-size: 10px; margin-top: 4px; color: var(--muted); }
.tool-task-empty { padding: 12px 0; }
.tool-log-panel { min-width: 0; padding: 18px; }
.tool-log-title { font-size: 15px; font-weight: 600; margin: 0 0 10px; overflow-wrap: anywhere; }
.tool-log-detail { display: flex; gap: 8px 14px; flex-wrap: wrap; align-items: center; font-size: 11px; color: var(--muted); }
.tool-log-detail .badge { font-size: 11px; }
.tool-open-ports { color: var(--green); font-weight: 600; }
.tool-log-status { min-height: 22px; margin: 8px 0 12px; color: var(--ink); font-weight: 500; }
.tool-console-toolbar { justify-content: space-between; gap: 8px 16px; }
.tool-console-toolbar .inline-check { font-size: 12px; margin-left: auto; }
.tool-output { height: 400px; margin-top: 14px; border-radius: 4px; font-family: var(--mono); font-size: 12px; line-height: 1.7; overscroll-behavior: contain; }
@media (max-width: 780px) {
  .tool-console-head { gap: 12px; }
  .tool-console-layout { grid-template-columns: 1fr; }
  .tool-task-nav { border-right: 0; border-bottom: 1px solid var(--line); }
  .tool-task-list { max-height: 235px; }
  .tool-console-summary { gap: 10px 18px; }
  .tool-count { padding: 0; }
  .tool-updated { margin-left: 0; text-align: left; flex-basis: 100%; }
  .tool-updated span { display: inline; margin-left: 8px; }
  .tool-log-panel { padding: 14px; }
  .tool-output { height: 300px; padding: 12px; }
  .tool-console-toolbar .inline-check { margin-left: 0; }
}
.tool-task-nav input { padding: 9px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font-size: 12px; }
.finalization-counts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 12px 0; }
.finalization-count { color: var(--muted); font-size: 12px; }
.finalization-count strong { color: var(--ink); font-size: 16px; }
.finalization-count.done strong { color: var(--green); }
.finalization-count.failed strong { color: var(--red); }
.finalization-count.running strong { color: var(--accent); }
.finalization-count.unconfirmed strong { color: var(--amber); }
.finalization-current, .finalization-failure { font-size: 12px; margin: 6px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finalization-failure { color: var(--red); }
.finalization-history { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.finalization-history > summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.finalization-history .timeline { max-height: 300px; overflow: auto; overscroll-behavior: contain; margin-top: 12px; }
