/* Shell-specific styles */

.sidebar-footer {
  margin-top: var(--space-5);
  padding: var(--space-3);
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  font-size: 11.5px;
}
.sidebar-footer__title {
  display: flex; align-items: center; gap: 6px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.sidebar-footer__sub {
  color: var(--ink-3);
  line-height: 1.5;
}

/* ============================================================
   Dashboard
   ============================================================ */

/* ============================================================
   Fresh-onboarded dashboard
   ============================================================ */

.fresh-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-6);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.fresh-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse at top right, rgba(47, 110, 71, 0.04), transparent 60%);
  pointer-events: none;
}
.fresh-hero__seal {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  color: var(--verified);
  position: relative;
}
.fresh-hero__seal::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px dashed rgba(47, 110, 71, 0.35);
}
.fresh-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--verified);
  margin-bottom: 4px;
}
.fresh-hero__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink-1);
  line-height: 1.15;
}
.fresh-hero__sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-3);
  max-width: 64ch;
}

.setup {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6) var(--space-6);
  margin-bottom: var(--space-6);
}
.setup__head {
  display: flex; align-items: flex-end; gap: var(--space-3);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-3);
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}
.setup__eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.setup__title {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink-1);
}
.setup__count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-left: auto;
  letter-spacing: 0.04em;
}
.setup__progress {
  height: 3px;
  background: var(--paper-shadow);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: var(--space-4);
}
.setup__progress-bar {
  height: 100%;
  background: var(--ink-1);
}
.setup__list { display: flex; flex-direction: column; gap: 1px; }

.setup-step {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  align-items: center;
  border-bottom: 1px solid var(--rule);
}
.setup-step:last-child { border-bottom: none; }

.setup-step__indicator {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--paper-alt);
  border: 1px solid var(--rule-strong);
  display: grid; place-items: center;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
}
.setup-step__indicator .mono { font-size: 11px; }
.setup-step--done .setup-step__indicator {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: white;
}
.setup-step--active .setup-step__indicator {
  background: var(--ink-1);
  border-color: var(--ink-1);
  color: white;
}
.setup-step--locked .setup-step__indicator {
  background: var(--paper-alt);
  border-style: dashed;
  color: var(--ink-4);
}
.setup-step__title {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-1);
}
.setup-step--done .setup-step__title { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: var(--ink-4); }
.setup-step--locked .setup-step__title { color: var(--ink-3); }
.setup-step__sub {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.5;
  max-width: 70ch;
}

.empty-row {
  padding: var(--space-4) var(--pad-card);
  text-align: center;
  border-top: 1px solid var(--rule);
}

.fresh-aside { padding: var(--space-5) var(--space-5) var(--space-5); }
.fresh-aside__eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.fresh-aside__title {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink-1);
}
.fresh-aside__list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--rule);
}
.fresh-aside__row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 12.5px;
}
.fresh-aside__row:last-child { border-bottom: none; }
.fresh-aside__row > span:last-child { color: var(--ink-1); font-weight: 500; }

/* ============================================================
   Source upload screen
   ============================================================ */

.framework-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-5);
}
.framework-tile {
  background: var(--paper);
  padding: var(--space-4) var(--space-5);
  border: none;
  text-align: left;
  display: flex; flex-direction: column; gap: 8px;
  cursor: pointer;
  transition: background var(--motion-fast);
  font-family: inherit;
}
.framework-tile:hover { background: var(--paper-alt); }
.framework-tile--active {
  background: var(--paper-alt);
  box-shadow: inset 0 -2px 0 var(--ink-1);
}
.framework-tile--inactive { opacity: 0.6; cursor: default; }
.framework-tile__head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
}
.framework-tile__title {
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-1);
}
.framework-tile__sub {
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.45;
}
.framework-tile__metric {
  display: flex; align-items: baseline; gap: 8px;
  margin-top: 4px;
}
.framework-tile__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ink-1);
  line-height: 1;
}
.framework-tile__label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

.filter-rail {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}
.filter-rail__title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-right: 6px;
}

.app-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.app-row:last-child { border-bottom: none; }
.app-row__head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
}
.app-row__title {
  font-weight: 500;
  font-size: 13.5px;
  color: var(--ink-1);
}
.app-bar {
  display: flex; height: 8px;
  border-radius: 4px; overflow: hidden;
  background: var(--paper-alt);
  border: 1px solid var(--rule);
}

.upload-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}
.upload-main { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-5); }
.upload-side { display: flex; flex-direction: column; gap: var(--space-4); position: sticky; top: 76px; align-self: start; }
.upload-side__eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.upload-side__title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink-1);
  line-height: 1.2;
}
.upload-side__list {
  margin: 0;
  padding-left: 18px;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.65;
  display: flex; flex-direction: column; gap: 6px;
}
.upload-side__list li::marker {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-4);
}
.upload-side__list strong { color: var(--ink-1); font-weight: 600; }
.upload-side__rows { display: flex; flex-direction: column; gap: 8px; }
.upload-side__row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px;
  color: var(--ink-1);
}

.dropzone {
  border: 1.5px dashed var(--rule-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-9) var(--space-5);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer;
  transition: border-color var(--motion-fast), background var(--motion-fast);
  background: var(--paper-alt);
}
.dropzone:hover, .dropzone--over {
  border-color: var(--ink-1);
  background: var(--paper);
}
.dropzone__icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.dropzone__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--ink-1);
}
.dropzone__sub { font-size: 12.5px; color: var(--ink-3); }
.dropzone__hint {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-4);
  margin-top: 6px;
  max-width: 60ch;
}

.file-preview {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--paper);
}
.file-preview__icon {
  width: 36px; height: 36px;
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  color: var(--ink-2);
}
.file-preview__body { flex: 1; min-width: 0; }

.tag-input {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 6px 8px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--paper);
  min-height: 40px;
  align-items: center;
}
.tag-input__chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 4px 3px 8px;
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  color: var(--ink-1);
  font-weight: 500;
}
.tag-input__chip button {
  background: transparent; border: none; padding: 2px;
  color: var(--ink-4); display: inline-flex;
  border-radius: 3px;
}
.tag-input__chip button:hover { color: var(--ink-1); background: var(--paper); }
.tag-input__input {
  flex: 1;
  min-width: 80px;
  border: none; outline: none; background: transparent;
  font-size: 13px; padding: 4px;
}

.auth-scopes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}
.auth-scope {
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--paper);
  display: grid; grid-template-columns: 18px 1fr;
  gap: 10px;
  cursor: pointer;
  transition: border-color var(--motion-fast);
}
.auth-scope:hover { border-color: var(--rule-strong); }
.auth-scope--checked {
  border-color: var(--ink-1);
  background: var(--paper-alt);
  box-shadow: inset 0 0 0 1px var(--ink-1);
}
.auth-scope__check input { display: none; }
.auth-scope__box {
  width: 16px; height: 16px;
  border: 1.5px solid var(--rule-strong);
  border-radius: 4px;
  display: grid; place-items: center;
  color: white;
  background: var(--paper);
}
.auth-scope--checked .auth-scope__box {
  background: var(--ink-1);
  border-color: var(--ink-1);
}
.auth-scope__label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-1); }
.auth-scope__sub { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

.upload-foot {
  position: sticky;
  bottom: 0;
  display: flex; align-items: center; gap: var(--space-3);
  padding: 14px 0;
  margin-top: var(--space-3);
  background: linear-gradient(to top, var(--paper-alt) 70%, rgba(250, 250, 249, 0));
}

/* Indexing progress */
.upload-progress { max-width: 720px; }
.upload-progress h1 em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

.indexing-stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.index-stage {
  background: var(--paper);
  padding: 14px;
  display: flex; align-items: center; gap: 10px;
}
.index-stage__icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--paper-alt);
  border: 1px solid var(--rule-strong);
  color: var(--ink-4);
  display: grid; place-items: center;
}
.index-stage--done .index-stage__icon {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: white;
}
.index-stage--active .index-stage__icon {
  background: var(--ink-1);
  border-color: var(--ink-1);
  color: white;
}
.pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: white;
  animation: poll-pulse 1.6s var(--ease-out) infinite;
}
.index-stage__label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
}
.index-stage--done .index-stage__label, .index-stage--active .index-stage__label { color: var(--ink-1); }

/* Compliance / pack / source / settings extras */
.verdict-bar {
  display: flex; height: 16px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  margin-bottom: 14px;
}
.verdict-bar__seg { height: 100%; transition: opacity var(--motion-fast); }
.verdict-bar__seg:hover { opacity: 0.85; }
.verdict-mix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.verdict-mix__row { display: flex; align-items: baseline; gap: 8px; }

.ep-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.dl-list { display: flex; flex-direction: column; gap: 8px; }
.dl-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--paper-alt);
}
.dl-row__icon {
  width: 32px; height: 32px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  color: var(--ink-2);
}
.dl-row__body { flex: 1; min-width: 0; }

.preview-frame {
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--paper-deep);
  padding: var(--space-5);
}
.preview-page {
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-md);
  padding: var(--space-6) var(--space-7);
  max-width: 640px;
  margin: 0 auto var(--space-3);
  border-radius: 2px;
  font-family: Georgia, "Times New Roman", serif;
  color: #1a1a1a;
  line-height: 1.6;
}
.preview-page__head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 12px; margin-bottom: 16px;
  border-bottom: 1px solid #ddd;
}
.preview-page__body p { margin: 0 0 12px; font-size: 13.5px; }
.preview-page__body mark {
  background: rgba(154, 100, 24, 0.15);
  padding: 0 2px;
  border-bottom: 1px solid rgba(154, 100, 24, 0.4);
}
.preview-toolbar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 4px 0;
}

.match-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.match-row:last-child { border-bottom: none; }
.match-row__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.match-row__quote {
  padding: 10px 14px;
  background: var(--paper-alt);
  border-left: 2px solid var(--ink-1);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
  font-style: italic;
}

/* Settings */
.event-chip {
  padding: 1px 6px;
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-size: 10.5px;
  color: var(--ink-1);
  font-family: var(--font-mono);
}
.reveal-key {
  background: #18181b;
  color: #fafaf9;
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.reveal-key__label {
  font-size: 11px;
  color: #a1a1aa;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.reveal-key__row {
  display: flex; align-items: center; gap: 8px;
}
.reveal-key__row .mono {
  flex: 1;
  font-size: 12.5px;
  color: #d4d4d8;
  word-break: break-all;
}
.reveal-key__row .btn { color: #a1a1aa; }
.reveal-key__row .btn:hover { color: #fafaf9; background: rgba(255, 255, 255, 0.08); }

.settings-tips__list {
  margin: 0; padding-left: 18px;
  font-size: 12.5px; color: var(--ink-2); line-height: 1.6;
}
.settings-tips__list li::marker { color: var(--ink-4); }

.rule-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  align-items: center;
}
.rule-row:last-child { border-bottom: none; }
.rule-row__toggle { cursor: pointer; }
.rule-row__toggle input { display: none; }
.rule-toggle {
  width: 32px; height: 18px;
  background: var(--rule-strong);
  border-radius: 999px;
  position: relative;
  display: block;
  transition: background var(--motion-fast);
}
.rule-toggle::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  background: white;
  border-radius: 50%;
  transition: transform var(--motion-fast);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.rule-toggle--on { background: var(--ink-1); }
.rule-toggle--on::after { transform: translateX(14px); }

.role-card {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  cursor: pointer;
  align-items: center;
}
.role-card:hover { border-color: var(--rule-strong); }
.role-card--selected { border-color: var(--ink-1); background: var(--paper-alt); box-shadow: inset 0 0 0 1px var(--ink-1); }
.role-card__radio {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--rule-strong);
  display: grid; place-items: center;
}
.role-card--selected .role-card__radio { border-color: var(--ink-1); }
.role-card__radio > span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink-1);
  display: block;
}

.usage-row { font-size: 13px; }

/* ============================================================
   Apps screen
   ============================================================ */

.apps-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-5);
}
.summary-stat {
  background: var(--paper);
  padding: var(--space-4) var(--space-5);
}
.summary-stat__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.summary-stat__value {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink-1);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.app-card {
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-3);
  cursor: pointer;
  transition: border-color var(--motion-fast), background var(--motion-fast);
  font-family: inherit;
}
.app-card:hover { border-color: var(--rule-strong); background: var(--paper); }
.app-card__head { display: flex; align-items: center; gap: 12px; }
.app-card__avatar {
  width: 36px; height: 36px;
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  font-size: 11px;
  color: var(--ink-1);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.app-card__name { flex: 1; min-width: 0; }
.app-card__title {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-1);
}
.app-card__purpose {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 2px;
}
.app-card__desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}
.app-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.app-card__stat { display: flex; flex-direction: column; gap: 4px; }
.app-card__big {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink-1);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}
.app-card__foot {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
}

.app-card--new {
  border-style: dashed;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  background: transparent;
  gap: 8px;
}
.app-card--new:hover {
  border-style: dashed;
  border-color: var(--ink-1);
  background: var(--paper);
}
.app-card__new-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.app-card__new-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-1);
  line-height: 1;
}

.qlink-list { display: flex; flex-direction: column; gap: 6px; }
.qlink {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: inherit;
  transition: background var(--motion-fast);
}
.qlink:hover { background: var(--paper-alt); }
.qlink__icon {
  width: 28px; height: 28px;
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  color: var(--ink-2);
}
.qlink__body { flex: 1; }

/* ============================================================
   Share-with-auditor — modal stages + active indicator
   ============================================================ */

.share-link {
  display: flex; align-items: center;
  background: #18181b;
  color: #fafaf9;
  border-radius: var(--radius-md);
  padding: 4px 4px 4px 14px;
}
.share-link__row {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
}
.share-link__row svg { color: #a1a1aa; flex-shrink: 0; }
.share-link__row .mono { color: #d4d4d8; }
.share-link__row .btn { color: #a1a1aa; }
.share-link__row .btn:hover { color: #fafaf9; background: rgba(255, 255, 255, 0.08); }

.share-meta {
  display: flex; flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--paper-alt);
}
.share-meta__row {
  display: flex; justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  font-size: 12.5px;
  color: var(--ink-1);
}
.share-meta__row:last-child { border-bottom: none; }
.share-meta__row > span:first-child { color: var(--ink-3); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }

.share-success {
  display: flex; align-items: flex-start; gap: 14px;
  padding: var(--space-4) var(--space-5);
  background: var(--verified-soft);
  border: 1px solid rgba(47, 110, 71, 0.25);
  border-radius: var(--radius-md);
}
.share-success__icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid rgba(47, 110, 71, 0.3);
  display: grid; place-items: center;
  color: var(--verified);
  flex-shrink: 0;
}
.share-success__title { color: var(--ink-1); margin-bottom: 4px; line-height: 1.1; }
.share-success__sub { color: var(--ink-2); font-size: 13px; line-height: 1.5; }

/* Active share strip — pinned above state banners on the trace */
.active-share {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  font-size: 12.5px;
  position: relative;
}
.active-share__icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  color: var(--ink-2);
  flex-shrink: 0;
}
.active-share__body {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  color: var(--ink-2);
  flex-wrap: wrap;
}
.active-share__label { font-weight: 600; color: var(--ink-1); }
.active-share__sep { color: var(--ink-4); }
.active-share__close {
  background: transparent; border: none; padding: 4px;
  color: var(--ink-4); display: inline-flex; cursor: pointer;
  border-radius: 3px;
}
.active-share__close:hover { color: var(--ink-1); background: var(--paper-alt); }
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 14px;
  background: var(--verified-soft);
  border: 1px solid rgba(47, 110, 71, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
  font-size: 13px;
}
.dash-banner__icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--paper);
  display: grid; place-items: center;
  color: var(--verified);
  flex-shrink: 0;
  border: 1px solid rgba(47, 110, 71, 0.2);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-bottom: var(--space-7);
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.metric {
  background: var(--paper);
  border: none;
  border-radius: 0;
  padding: var(--space-5) var(--space-5) var(--space-4);
  position: relative;
  display: flex;
  flex-direction: column;
}
.metric__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.metric__value {
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--ink-1);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-sans);
}
.metric__sub {
  display: flex; align-items: center;
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--ink-3);
  gap: 8px;
  justify-content: space-between;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.metric__sub > * { min-width: 0; }
.metric__sub-row { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; white-space: nowrap; }
.metric__sub-row .badge { padding: 0 5px; }
.metric__sub-row { display: flex; align-items: center; gap: 6px; }

.delta-up { color: var(--brand-accent); font-weight: 600; }
.delta-down { color: var(--contra); font-weight: 600; }
.delta-flat { color: var(--ink-3); }

.dash-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.dash-chart-card { padding: 0; }
.dash-chart-card .card__body { padding: 0; }

.legend {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding: 0 var(--pad-card) var(--space-3);
}
.legend__item {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px;
  color: var(--ink-3);
}
.legend__swatch {
  width: 8px; height: 8px; border-radius: 2px;
}

.activity-list {
  display: flex; flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4) var(--pad-card);
}
.activity {
  display: flex; gap: 10px;
  font-size: 13px;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--rule);
}
.activity:last-child { border: none; padding: 0; }
.activity__icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid; place-items: center;
  font-size: 11px;
  background: var(--paper-alt);
}
.activity__body { flex: 1; min-width: 0; }
.activity__title { font-weight: 500; }
.activity__time { font-size: 11.5px; color: var(--ink-4); margin-top: 2px; }

.attention {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid rgba(154, 100, 24, 0.22);
  background: var(--partial-soft);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
}
.attention__icon {
  width: 32px; height: 32px;
  background: var(--paper);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--partial);
  flex-shrink: 0;
  border: 1px solid rgba(154, 100, 24, 0.2);
}
.attention__title { font-weight: 600; color: var(--ink-1); margin-bottom: 2px; }
.attention__sub { color: var(--ink-3); font-size: 12.5px; }

.compliance-card { padding: 0; }
.compliance-list { display: flex; flex-direction: column; padding: 0; }
.compliance-item {
  display: flex; align-items: center;
  gap: var(--space-3);
  padding: 14px var(--pad-card);
  border-bottom: 1px solid var(--rule);
}
.compliance-item:last-child { border: none; }
.compliance-item__icon {
  width: 32px; height: 32px;
  border-radius: 6px;
  display: grid; place-items: center;
  background: var(--paper-alt);
  color: var(--ink-1);
  border: 1px solid var(--rule);
  flex-shrink: 0;
}
.compliance-item__body { flex: 1; }
.compliance-item__title { font-weight: 600; font-size: 13.5px; }
.compliance-item__sub { font-size: 11.5px; color: var(--ink-3); }

/* Verdict-distribution svg */
.stacked-area { display: block; }

/* Traces table preview */
.tr-purpose {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 2px 6px;
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  color: var(--ink-2);
}

/* Stacked chart */
.chart-area {
  height: 200px;
  padding: var(--space-3) var(--pad-card) var(--space-4);
  position: relative;
}
.chart-area svg { display: block; max-width: 100%; height: auto; }

/* ============================================================
   Traces list
   ============================================================ */

.toolbar {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
  align-items: center;
}

.filter-chip {
  display: inline-flex; align-items: center;
  gap: 6px;
  padding: 0 10px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
}
.filter-chip:hover { border-color: var(--rule-strong); }
.filter-chip--active {
  background: rgba(12, 59, 110, 0.08);
  border-color: rgba(12, 59, 110, 0.3);
  color: var(--brand-ink);
}

.density-toggle { margin-left: auto; }

/* ============================================================
   Trace replay
   ============================================================ */

.tr-header {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: 0 0 var(--space-6);
  margin-bottom: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.tr-header__crumb {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-wrap: wrap;
}
.tr-header__crumb .mono { color: var(--ink-2); text-transform: none; letter-spacing: 0; }
.tr-header__title {
  display: flex; align-items: flex-start; gap: var(--space-4);
  flex-wrap: wrap;
}
.tr-header__title h1 {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 56px;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink-1);
  flex: 1; min-width: 0;
}
.tr-header__title h1 .mono {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.7em;
  letter-spacing: -0.02em;
  color: var(--ink-2);
}
.tr-header__verdict-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; padding-top: 14px; }
.tr-header__meta {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.9fr 1.3fr auto;
  gap: var(--space-5);
  font-size: 12.5px;
  color: var(--ink-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--rule);
  align-items: end;
}
.tr-header__meta > div { min-width: 0; }
.tr-header__meta .col-value {
  color: var(--ink-1);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tr-header__meta .col-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-4);
  display: block;
  margin-bottom: 4px;
}
.tr-header__meta .col-value { color: var(--ink-1); font-weight: 500; }
.tr-header__meta .col-value .mono { font-weight: 500; }
.tr-header__meta .col-actions { justify-self: end; align-self: end; }

.tr-body {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: var(--space-5);
}

/* Timeline */
.timeline {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  position: sticky;
  top: 76px;
  align-self: start;
}
.timeline__title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.tl-step {
  position: relative;
  display: flex;
  gap: 14px;
  padding-bottom: 18px;
  cursor: pointer;
  border-radius: 6px;
  margin-left: -10px;
  padding-left: 10px;
  padding-right: 10px;
  transition: background var(--motion-fast);
}
.tl-step:hover { background: var(--paper-alt); }
.tl-step--active { background: var(--paper-alt); }
.tl-step:last-child { padding-bottom: 0; }
.tl-step__rail {
  position: relative;
  width: 20px;
  flex-shrink: 0;
}
.tl-step__icon {
  position: absolute; top: 0; left: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper);
  border: 1.5px solid var(--rule-strong);
  color: var(--ink-4);
  z-index: 1;
}
.tl-step__line {
  position: absolute;
  left: 9.5px; top: 22px; bottom: -18px;
  width: 1.5px;
  background: var(--rule-strong);
}
.tl-step:last-child .tl-step__line { display: none; }

.tl-step--done .tl-step__icon {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: white;
}
.tl-step--done .tl-step__line { background: var(--brand-accent); }
.tl-step--active .tl-step__icon {
  background: var(--ink-1);
  border-color: var(--ink-1);
  color: var(--paper);
  box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.12);
}
.tl-step--failed .tl-step__icon {
  background: var(--contra);
  border-color: var(--contra);
  color: white;
}
.tl-step--pending .tl-step__icon {
  background: var(--paper);
  border-style: dashed;
  color: var(--ink-4);
}
.tl-step--pending .tl-step__line {
  background: repeating-linear-gradient(to bottom, var(--rule-strong) 0, var(--rule-strong) 3px, transparent 3px, transparent 6px);
}

.tl-step__body { flex: 1; min-width: 0; padding-top: 2px; }
.tl-step__head {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-1);
}
.tl-step__time { font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); margin-top: 1px; }
.tl-step__meta { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }

.timeline__footer {
  margin-top: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule);
  font-size: 11.5px;
  color: var(--ink-3);
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.timeline__footer strong { color: var(--ink-1); font-family: var(--font-mono); font-size: 12px; display: block; margin-top: 2px; }

/* Step detail */
.step-detail {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.step-detail__head {
  display: flex; align-items: flex-end; gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}
.step-detail__head > div:first-child { flex: 1; min-width: 0; }
.step-detail__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  letter-spacing: -0.025em;
  line-height: 1;
  display: flex; align-items: center; gap: 14px;
  color: var(--ink-1);
  white-space: nowrap;
}
.step-detail__sub { color: var(--ink-3); font-size: 12.5px; margin: 6px 0 0; }
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  letter-spacing: -0.025em;
  line-height: 1;
  display: flex; align-items: center; gap: 14px;
  color: var(--ink-1);
  white-space: nowrap;
}
.step-detail__sub { color: var(--ink-3); font-size: 12.5px; margin: 2px 0 0; }

.claim-nav {
  display: flex; align-items: center; gap: var(--space-2);
  padding: 10px 14px;
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}
.claim-nav__indicator {
  display: flex; gap: 4px;
  margin: 0 var(--space-2);
}
.claim-nav__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rule-strong);
}
.claim-nav__dot--verified { background: var(--verified); }
.claim-nav__dot--partial { background: var(--partial); }
.claim-nav__dot--contra { background: var(--contra); }
.claim-nav__dot--active {
  transform: scale(1.4);
  outline: 2px solid currentColor;
  outline-offset: 1px;
}
.claim-nav__label {
  flex: 1;
  font-size: 12.5px;
  color: var(--ink-3);
}
.claim-nav__label strong { color: var(--ink-1); margin: 0 4px; }

.claim {
  padding: var(--space-5);
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}
.claim__quote {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-1);
  margin: 0 0 var(--space-3);
  padding-left: 14px;
  border-left: 2px solid var(--ink-1);
  letter-spacing: -0.005em;
}
.claim__quote--contradicted { border-left-color: var(--contra); }

.source-card {
  display: flex; gap: 12px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  margin-top: 10px;
}
.source-card__radio {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-1);
  background: var(--paper);
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 3px;
}
.source-card__radio::after {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink-1);
}
.source-card--contra .source-card__radio { border-color: var(--contra); }
.source-card--contra .source-card__radio::after { background: var(--contra); }

.source-card__body { flex: 1; min-width: 0; }
.source-card__head {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px;
  font-weight: 600;
  min-width: 0;
  line-height: 1.45;
}
.source-card__head svg { flex-shrink: 0; margin-top: 2px; }
.source-card__head > span { min-width: 0; flex: 1; }
.source-card__span { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.source-card__quote {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--paper-alt);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.55;
  font-style: italic;
}
.source-card__quote::before { content: "“"; color: var(--ink-4); font-size: 18px; line-height: 0; }
.source-card__quote::after { content: "”"; color: var(--ink-4); font-size: 18px; line-height: 0; }
.source-card__score {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 8px;
}
.score-bar {
  flex: 1;
  height: 4px;
  background: var(--paper-shadow);
  border-radius: 2px;
  overflow: hidden;
  max-width: 200px;
}
.score-bar__fill {
  height: 100%;
  background: var(--brand-accent);
  border-radius: 2px;
}
.source-card--contra .score-bar__fill { background: var(--contra); }

/* Multi-judge consensus */
.judges {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: var(--space-4);
}
.judges__head {
  padding: 10px 14px;
  background: var(--paper-alt);
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; gap: var(--space-3);
}
.judges__head h4 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  text-transform: uppercase;
  white-space: nowrap;
}
.judges__list { display: grid; grid-template-columns: repeat(3, 1fr); }
.judge {
  padding: 14px;
  display: flex; flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--rule);
}
.judge:last-child { border-right: none; }
.judge__name {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.judge__model { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-4); }
.judge__bar {
  height: 4px;
  background: var(--paper-shadow);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}
.judge__bar-fill {
  height: 100%;
  background: var(--brand-accent);
  border-radius: 2px;
}
.judge--contra .judge__bar-fill { background: var(--contra); }

.judges__foot {
  padding: 10px 14px;
  border-top: 1px solid var(--rule);
  background: var(--paper-alt);
  display: flex; align-items: center; gap: var(--space-3);
}
.kappa {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.kappa__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-accent);
}
.kappa--contra .kappa__dot { background: var(--contra); }

/* Evidence seal — document-style layout with custom seal mark */
.evidence-seal {
  margin-top: var(--space-6);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.evidence-seal__head {
  padding: 12px var(--space-6);
  background: var(--paper-alt);
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; gap: var(--space-3);
}
.evidence-seal__layout {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-6);
  padding: var(--space-6);
  align-items: flex-start;
}
.evidence-seal__mark {
  padding: 8px;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  position: relative;
}
.evidence-seal__mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(24, 24, 27, 0.03) 1px, transparent 1px);
  background-size: 8px 8px;
  border-radius: var(--radius-md);
  pointer-events: none;
}
.evidence-seal__content { display: flex; flex-direction: column; gap: var(--space-3); }
.evidence-seal__head-row {
  display: flex; align-items: baseline; gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--rule);
}
.evidence-seal__head-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-left: auto;
}
.evidence-seal__head--pending {
  background: var(--partial-soft);
  border-bottom-color: rgba(154, 100, 24, 0.2);
}
.evidence-seal__head--failed {
  background: var(--contra-soft);
}
.evidence-seal__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink-1);
  font-weight: 400;
}
.evidence-seal__rows {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-3) var(--space-5);
}
.evidence-row { display: flex; flex-direction: column; gap: 4px; }
.evidence-row__label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-3);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.evidence-row__value { font-size: 13px; color: var(--ink-1); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.evidence-seal__actions {
  padding: var(--space-3) var(--space-6);
  border-top: 1px solid var(--rule);
  display: flex; gap: var(--space-2);
  background: var(--paper-alt);
  flex-wrap: wrap;
}

/* Banner above step detail (error / pending / divergence) */
.state-banner {
  display: flex; align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  font-size: 13px;
}
.state-banner--warn { background: var(--partial-soft); border: 1px solid rgba(180, 83, 9, 0.25); }
.state-banner--error { background: var(--contra-soft); border: 1px solid rgba(185, 28, 28, 0.25); }
.state-banner--info { background: var(--paper-alt); border: 1px solid var(--rule-strong); }
.state-banner__icon {
  width: 28px; height: 28px;
  background: white;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.state-banner--warn .state-banner__icon { color: var(--partial); }
.state-banner--error .state-banner__icon { color: var(--contra); }
.state-banner--info .state-banner__icon { color: var(--ink-1); }
.state-banner__title { font-weight: 600; color: var(--ink-1); margin-bottom: 2px; }
.state-banner__sub { color: var(--ink-2); line-height: 1.5; }
.state-banner__actions { display: flex; gap: var(--space-2); margin-top: 10px; }

/* Divergence diff */
.diverge {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-3);
  padding: var(--space-4);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
}
.diverge__col {
  display: flex; flex-direction: column; gap: 6px;
}
.diverge__head {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}
.diverge__row {
  display: flex; justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 12.5px;
}
.diverge__row span:first-child { color: var(--ink-3); }
.diverge__row span:last-child { color: var(--ink-1); font-weight: 500; }

/* Auditor banner */
.auditor-banner {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-alt) 100%);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-5);
  display: flex; align-items: center; gap: var(--space-4);
}
.auditor-banner__badge {
  width: 40px; height: 40px;
  background: var(--ink-1);
  color: var(--paper);
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.auditor-banner__body { flex: 1; }
.auditor-banner__title {
  font-weight: 600;
  font-size: 14px;
}
.auditor-banner__sub { color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
