/* Strata Ledger cross-section.
   The shared geologic design tokens + primitives live in pact-theme.css;
   this file holds only the cross-section–specific geology (strata bands, rail,
   bedrock timeline, seals, frost, core-sample run). *//* ============================================================================
   PACT · Strata theme
   A single source for the geologic design language shared across the whole
   compliance interface — the landing survey, the ledger workspace shell, and
   every configuration / audit view. Themed entirely off Bootstrap 5.3 CSS
   variables so it inherits the host platform's light/dark mode and brand.
   The platform primary is the "signing vein" accent; success / danger /
   warning / info carry integrity, fault, heat and cold.
   ========================================================================== */
.pact-strata {
  --st-ink: var(--bs-body-color);
  --st-faint: var(--bs-secondary-color, #6c757d);
  --st-line: var(--bs-border-color, #dee2e6);
  --st-surface: var(--bs-body-bg);
  --st-raised: var(--bs-tertiary-bg, var(--bs-secondary-bg, var(--bs-body-bg)));
  --st-accent: var(--bs-primary);
  --st-accent-rgb: var(--bs-primary-rgb);
  --st-hot: var(--bs-warning);
  --st-hot-rgb: var(--bs-warning-rgb);
  --st-cold: var(--bs-info);
  --st-cold-rgb: var(--bs-info-rgb);
  --st-verified: var(--bs-success);
  --st-verified-rgb: var(--bs-success-rgb);
  --st-fault: var(--bs-danger);
  --st-fault-rgb: var(--bs-danger-rgb);
  --st-pending: var(--bs-warning);
  --st-mono: var(--bs-font-monospace, ui-monospace, "SFMono-Regular", Menlo, monospace);
  color: var(--st-ink);
}

/* ---- page hero ---------------------------------------------------------- */
.pact-strata .pact-hero {
  padding: 0.25rem 0 1.25rem;
  border-bottom: 1px solid var(--st-line);
  margin-bottom: 1.5rem;
}
.pact-strata .pact-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--st-accent);
  margin-bottom: 0.55rem;
}
.pact-strata .pact-hero-eyebrow::before {
  content: "";
  width: 1.4rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--st-accent), transparent);
}
.pact-strata .pact-hero h1,
.pact-strata .pact-hero h2 {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--bs-emphasis-color, var(--st-ink));
  text-wrap: balance;
  margin: 0 0 0.35rem;
}
.pact-strata .pact-hero .pact-hero-lead {
  color: var(--st-faint);
  max-width: 60ch;
  margin: 0;
}
.pact-strata .pact-hero-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- location trail ------------------------------------------------------
   PACT's own breadcrumb: the host shell no longer renders one (see
   PactTrail.tsx). Quiet by design — it sits above the hero and should read as
   wayfinding, not as a heading. */
.pact-strata .pact-trail {
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  line-height: 1.4;
}
.pact-strata .pact-trail ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pact-strata .pact-trail li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
/* a small chevron between crumbs, drawn so it follows the theme's line colour */
.pact-strata .pact-trail li + li::before {
  content: "";
  flex: none;
  width: 0.36rem;
  height: 0.36rem;
  margin: 0 0.65rem 0 0.5rem;
  border-top: 1.5px solid var(--st-faint);
  border-right: 1.5px solid var(--st-faint);
  opacity: 0.55;
  transform: rotate(45deg);
}
.pact-strata .pact-trail a,
.pact-strata .pact-trail span {
  display: inline-block;
  max-width: 32ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
.pact-strata .pact-trail a {
  color: var(--st-faint);
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.25rem;
}
.pact-strata .pact-trail a:hover {
  color: var(--st-accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.pact-strata .pact-trail a:focus-visible {
  outline: 2px solid var(--st-accent);
  outline-offset: 2px;
}
.pact-strata .pact-trail a i {
  margin-right: 0.4rem;
  font-size: 0.78em;
  color: var(--st-accent);
}
.pact-strata .pact-trail [aria-current="page"] {
  color: var(--bs-emphasis-color, var(--st-ink));
  font-weight: 600;
}

/* ---- section title (between cards) ------------------------------------- */
.pact-strata .pact-sectiontitle {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 1.75rem 0 0.85rem;
}
.pact-strata .pact-sectiontitle h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0;
  color: var(--bs-emphasis-color, var(--st-ink));
}
.pact-strata .pact-sectiontitle .pact-sectiontitle-hint {
  font-size: 0.8rem;
  color: var(--st-faint);
}

/* ---- card --------------------------------------------------------------- */
.pact-strata .pact-card {
  background: var(--st-surface);
  border: 1px solid var(--st-line);
  border-radius: 0.85rem;
  overflow: hidden;
}
.pact-strata .pact-card + .pact-card {
  margin-top: 1rem;
}
.pact-strata .pact-card-hd {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--st-line);
  background: var(--st-raised);
}
.pact-strata .pact-card-hd .pact-card-ico {
  width: 1.9rem;
  height: 1.9rem;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 0.5rem;
  background: rgba(var(--st-accent-rgb), 0.12);
  color: var(--st-accent);
  font-size: 0.85rem;
}
.pact-strata .pact-card-hd-txt {
  min-width: 0;
  flex: 1;
}
.pact-strata .pact-card-hd-txt h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  color: var(--bs-emphasis-color, var(--st-ink));
}
.pact-strata .pact-card-hd-txt p {
  font-size: 0.78rem;
  color: var(--st-faint);
  margin: 0.1rem 0 0;
}
.pact-strata .pact-card-hd-act {
  margin-left: auto;
  flex: none;
}
.pact-strata .pact-card-bd {
  padding: 1.1rem;
}
.pact-strata .pact-card-bd.flush {
  padding: 0;
}

/* ---- sub-panel (a bordered block inside a card) ------------------------- */
.pact-strata .pact-panel {
  border: 1px solid var(--st-line);
  border-radius: 0.6rem;
  padding: 0.9rem 1rem;
  background: var(--st-raised);
}
.pact-strata .pact-panel-k {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-faint);
  margin: 0 0 0.6rem;
}
.pact-strata .pact-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

/* ---- key / value rows --------------------------------------------------- */
.pact-strata .pact-kv {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pact-strata .pact-kv-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.pact-strata .pact-kv-row + .pact-kv-row {
  border-top: 1px dashed var(--st-line);
  padding-top: 0.5rem;
}
.pact-strata .pact-kv-k {
  font-size: 0.82rem;
  color: var(--st-faint);
}
.pact-strata .pact-kv-v {
  font-size: 0.85rem;
  font-weight: 600;
  text-align: right;
  color: var(--st-ink);
  word-break: break-word;
}
.pact-strata .pact-kv-v.mono {
  font-family: var(--st-mono);
  font-weight: 500;
}
.pact-strata .pact-kv-v.is-empty {
  color: var(--st-faint);
  font-weight: 500;
  font-style: italic;
}

/* ---- editable key/value rows (signing authority) ------------------------
   A row whose value carries controls, notes or an inline form. The label
   stays on the left; everything else lives in the body column. */
.pact-strata .pact-kv-row.pact-kv-row-top {
  align-items: flex-start;
}
.pact-strata .pact-kv-row-top > .pact-kv-k {
  flex: none;
  padding-top: 0.45rem; /* level with the first line of a button */
}
.pact-strata .pact-kv-body {
  flex: 1;
  min-width: 0;
  max-width: 72%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.pact-strata .pact-kv-line {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  min-width: 0;
}
.pact-strata .pact-kv-line > .pact-code {
  flex: 1;
  min-width: 0;
}
.pact-strata .pact-kv-line > .pact-btn {
  flex: none;
}
.pact-strata .pact-code-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pact-strata .pact-kv-edit {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pact-strata .pact-kv-edit .form-control.mono {
  font-family: var(--st-mono);
}
.pact-strata .pact-kv-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}
.pact-strata .pact-kv-note {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--st-faint);
  text-align: right;
}
.pact-strata .pact-kv-note code {
  font-family: var(--st-mono);
  font-size: 0.95em;
  color: var(--st-ink);
  background: var(--st-raised);
  padding: 0.05rem 0.3rem;
  border-radius: 0.3rem;
  word-break: break-all;
}
.pact-strata .pact-kv-note.warn {
  /* the text-emphasis shade, not --st-hot: warning yellow on a light ground
     is not legible as text */
  color: var(--bs-warning-text-emphasis, var(--st-hot));
}
.pact-strata .pact-kv-note.warn i {
  margin-right: 0.35rem;
}
.pact-strata .pact-kv-confirm {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(var(--st-hot-rgb), 0.45);
  background: rgba(var(--st-hot-rgb), 0.08);
  border-radius: 0.6rem;
}
.pact-strata .pact-kv-confirm p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--st-ink);
}
@media (max-width: 576px) {
  .pact-strata .pact-kv-row.pact-kv-row-top {
    flex-direction: column;
    gap: 0.35rem;
  }
  .pact-strata .pact-kv-row-top > .pact-kv-k {
    padding-top: 0;
  }
  .pact-strata .pact-kv-body {
    width: 100%;
    max-width: none;
  }
}

/* ---- tags / status pills ------------------------------------------------ */
.pact-strata .pact-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.15rem 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pact-strata .pact-tag i {
  font-size: 0.62rem;
}
.pact-strata .pact-tag.accent {
  color: var(--st-accent);
  border-color: rgba(var(--st-accent-rgb), 0.35);
  background: rgba(var(--st-accent-rgb), 0.1);
}
.pact-strata .pact-tag.good {
  color: var(--st-verified);
  border-color: rgba(var(--st-verified-rgb), 0.35);
  background: rgba(var(--st-verified-rgb), 0.1);
}
.pact-strata .pact-tag.bad {
  color: var(--st-fault);
  border-color: rgba(var(--st-fault-rgb), 0.35);
  background: rgba(var(--st-fault-rgb), 0.1);
}
.pact-strata .pact-tag.warn {
  color: var(--st-pending);
  border-color: rgba(var(--st-hot-rgb), 0.4);
  background: rgba(var(--st-hot-rgb), 0.1);
}
.pact-strata .pact-tag.muted {
  color: var(--st-faint);
  border-color: var(--st-line);
  background: var(--st-raised);
}

/* ---- themed table ------------------------------------------------------- */
.pact-strata .pact-table-wrap {
  overflow-x: auto;
}
.pact-strata table.pact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.pact-strata table.pact-table th {
  text-align: left;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--st-faint);
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--st-line);
  white-space: nowrap;
}
.pact-strata table.pact-table td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--st-line);
  vertical-align: middle;
}
.pact-strata table.pact-table tr:last-child td {
  border-bottom: none;
}
.pact-strata table.pact-table tbody tr {
  transition: background 0.12s ease;
}
.pact-strata table.pact-table tbody tr:hover {
  background: rgba(var(--st-accent-rgb), 0.04);
}
.pact-strata table.pact-table .mono {
  font-family: var(--st-mono);
  font-size: 0.78rem;
  color: var(--st-faint);
}

/* ---- monospace code / endpoint line ------------------------------------ */
.pact-strata .pact-code {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--st-mono);
  font-size: 0.78rem;
  background: var(--st-raised);
  border: 1px solid var(--st-line);
  border-radius: 0.5rem;
  padding: 0.45rem 0.6rem;
  color: var(--st-ink);
  overflow-x: auto;
}
.pact-strata .pact-code .pact-code-copy {
  margin-left: auto;
  flex: none;
}

/* ---- inline copy button ------------------------------------------------- */
.pact-strata .pact-copy {
  border: 1px solid var(--st-line);
  background: var(--st-surface);
  color: var(--st-faint);
  border-radius: 0.4rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.12rem 0.4rem;
  cursor: pointer;
  transition: all 0.12s ease;
}
.pact-strata .pact-copy:hover {
  color: var(--st-accent);
  border-color: rgba(var(--st-accent-rgb), 0.4);
}

/* ---- empty state -------------------------------------------------------- */
.pact-strata .pact-empty {
  text-align: center;
  padding: 2.25rem 1rem;
  color: var(--st-faint);
  border: 1px dashed var(--st-line);
  border-radius: 0.7rem;
  background: var(--st-raised);
}
.pact-strata .pact-empty i {
  font-size: 1.4rem;
  opacity: 0.5;
  margin-bottom: 0.5rem;
  display: block;
}

/* ---- workspace tab bar -------------------------------------------------- */
.pact-strata .pact-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--st-line);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  /* Horizontal scroll only. Without this, overflow-x:auto forces overflow-y to
     auto too, and the tabs' -1px bottom margin (which straddles the divider)
     overflows by a pixel, showing a stray vertical scrollbar. */
  overflow-y: hidden;
}
.pact-strata .pact-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--st-faint);
  text-decoration: none;
  border: 0;
  background: none;
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.12s ease;
}
.pact-strata .pact-tab i {
  font-size: 0.82rem;
  opacity: 0.8;
}
.pact-strata .pact-tab:hover {
  color: var(--st-ink);
}
.pact-strata .pact-tab.is-active {
  color: var(--st-accent);
  border-bottom-color: var(--st-accent);
}
.pact-strata .pact-tab .pact-tab-count {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.05rem 0.4rem;
  border-radius: 0.6rem;
  background: rgba(var(--st-accent-rgb), 0.12);
  color: var(--st-accent);
}

/* ---- workspace header --------------------------------------------------- */
.pact-strata .pact-wshead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.pact-strata .pact-wshead h1 {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.2rem;
  color: var(--bs-emphasis-color, var(--st-ink));
}
.pact-strata .pact-wshead p {
  color: var(--st-faint);
  margin: 0;
  font-size: 0.88rem;
}

/* ---- ledger gallery grid ------------------------------------------------ */
.pact-strata .pact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.pact-strata .pact-ledger {
  position: relative;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.05rem 1.1rem 1.1rem;
  border: 1px solid var(--st-line);
  border-radius: 0.85rem;
  background: var(--st-surface);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.14s ease, transform 0.14s ease, box-shadow 0.14s ease;
}
/* stratified left edge — the geologic tell */
.pact-strata .pact-ledger::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: repeating-linear-gradient(
    to bottom,
    var(--st-accent) 0 6px,
    rgba(var(--st-accent-rgb), 0.35) 6px 10px
  );
  opacity: 0.75;
}
.pact-strata .pact-ledger:hover {
  border-color: rgba(var(--st-accent-rgb), 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--st-accent-rgb), 0.1);
}
.pact-strata .pact-ledger:focus-visible {
  outline: 2px solid var(--st-accent);
  outline-offset: 2px;
}
.pact-strata .pact-ledger-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}
.pact-strata .pact-ledger-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bs-emphasis-color, var(--st-ink));
  line-height: 1.25;
}
.pact-strata .pact-ledger-desc {
  font-size: 0.82rem;
  color: var(--st-faint);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.2em;
}
.pact-strata .pact-ledger-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.4rem;
  font-size: 0.72rem;
  color: var(--st-faint);
}
.pact-strata .pact-ledger-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--st-line);
}
/* "raise a new formation" create tile */
.pact-strata .pact-ledger.create {
  align-items: center;
  justify-content: center;
  text-align: center;
  border-style: dashed;
  color: var(--st-faint);
  gap: 0.4rem;
  min-height: 150px;
}
.pact-strata .pact-ledger.create::before {
  display: none;
}
.pact-strata .pact-ledger.create:hover {
  color: var(--st-accent);
}
.pact-strata .pact-ledger.create i {
  font-size: 1.4rem;
}

/* ---- toolbar (search / actions above a grid) --------------------------- */
.pact-strata .pact-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.pact-strata .pact-search {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.pact-strata .pact-search i {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--st-faint);
  font-size: 0.8rem;
  pointer-events: none;
}
.pact-strata .pact-search input {
  width: 100%;
  padding: 0.5rem 0.7rem 0.5rem 2rem;
  border: 1px solid var(--st-line);
  border-radius: 0.6rem;
  background: var(--st-surface);
  color: var(--st-ink);
  font-size: 0.85rem;
}
.pact-strata .pact-search input:focus {
  outline: none;
  border-color: rgba(var(--st-accent-rgb), 0.5);
  box-shadow: 0 0 0 3px rgba(var(--st-accent-rgb), 0.12);
}

/* ---- buttons ------------------------------------------------------------ */
.pact-strata .pact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 0.6rem;
  border: 1px solid var(--st-line);
  background: var(--st-surface);
  color: var(--st-ink);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.12s ease;
}
.pact-strata .pact-btn:hover {
  border-color: rgba(var(--st-accent-rgb), 0.45);
  color: var(--st-accent);
}
.pact-strata .pact-btn.primary {
  background: var(--st-accent);
  border-color: var(--st-accent);
  color: #fff;
}
.pact-strata .pact-btn.primary:hover {
  color: #fff;
  filter: brightness(1.06);
}
.pact-strata .pact-btn.danger {
  color: var(--st-fault);
}
.pact-strata .pact-btn.danger:hover {
  border-color: rgba(var(--st-fault-rgb), 0.5);
  color: var(--st-fault);
}

/* ---- reconciliation ----------------------------------------------------- */
.pact-strata .pact-metric {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.pact-strata .pact-metric-value {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--bs-emphasis-color, var(--st-ink));
  font-variant-numeric: tabular-nums;
}
.pact-strata .pact-metric-unit {
  font-size: 0.85rem;
  color: var(--st-faint);
}
.pact-strata .pact-metric-caption {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--st-faint);
  margin-bottom: 0.2rem;
}

/* coverage bar: measured vs derived vs uncovered */
.pact-strata .pact-bar {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--st-line);
  margin: 0.45rem 0 0.35rem;
}
.pact-strata .pact-bar-seg {
  height: 100%;
}
.pact-strata .pact-bar-seg.measured {
  background: rgb(var(--st-verified-rgb));
}
.pact-strata .pact-bar-seg.derived {
  background: rgba(var(--st-verified-rgb), 0.45);
}
.pact-strata .pact-bar-seg.uncovered {
  background: rgba(var(--st-fault-rgb), 0.35);
}
.pact-strata .pact-bar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.7rem;
  color: var(--st-faint);
}
.pact-strata .pact-bar-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 0.3rem;
}

/* proof strength, graded like the strata seal states */
.pact-strata .pact-strength {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
}
.pact-strata .pact-strength.confirmed {
  color: rgb(var(--st-verified-rgb));
  border-color: rgba(var(--st-verified-rgb), 0.4);
  background: rgba(var(--st-verified-rgb), 0.1);
}
.pact-strata .pact-strength.anchored {
  color: var(--st-accent);
  border-color: rgba(var(--st-accent-rgb), 0.4);
  background: rgba(var(--st-accent-rgb), 0.1);
}
.pact-strata .pact-strength.sealed {
  color: var(--st-pending);
  border-color: rgba(var(--st-hot-rgb), 0.4);
  background: rgba(var(--st-hot-rgb), 0.1);
}
.pact-strata .pact-strength.unsealed {
  color: var(--st-faint);
  border-color: var(--st-line);
  background: var(--st-raised);
}

/* a form row inside a card */
.pact-strata .pact-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.85rem;
  align-items: end;
}
.pact-strata .pact-field label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--st-faint);
  margin-bottom: 0.3rem;
}
.pact-strata .pact-field input,
.pact-strata .pact-field select {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--st-line);
  border-radius: 0.5rem;
  background: var(--st-surface);
  color: var(--st-ink);
  font-size: 0.85rem;
}
.pact-strata .pact-field input:focus,
.pact-strata .pact-field select:focus {
  outline: none;
  border-color: rgba(var(--st-accent-rgb), 0.5);
  box-shadow: 0 0 0 3px rgba(var(--st-accent-rgb), 0.12);
}

/* ---- integrity alert ----
   Shared rather than cross-section–specific: every PACT surface needs a way to
   say something is wrong, and a federated remote cannot borrow one from another
   remote's stylesheet. */
.pact-strata .strata-alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.6rem;
  margin-bottom: 1rem;
  background: rgba(var(--st-fault-rgb), 0.1);
  border: 1px solid rgba(var(--st-fault-rgb), 0.4);
}
.pact-strata .strata-alert > i {
  color: var(--st-fault);
}
/* amber variant: a fault exists, but on a forked-off branch (the live branch is healthy) */
.pact-strata .strata-alert.warn {
  background: rgba(var(--st-hot-rgb), 0.1);
  border-color: rgba(var(--st-hot-rgb), 0.42);
}
.pact-strata .strata-alert.warn > i,
.pact-strata .strata-alert.warn .strata-alert-go {
  color: var(--st-pending);
}
.pact-strata .strata-alert strong {
  font-weight: 600;
}
.pact-strata .strata-alert-go {
  margin-left: auto;
  border: 0;
  background: none;
  color: var(--st-fault);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  white-space: nowrap;
}

/* ---- stat strip ---- */
.pact-strata .strata-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--st-line);
  border: 1px solid var(--st-line);
  border-radius: 0.7rem;
  overflow: hidden;
  margin-bottom: 1rem;
}
@media (max-width: 575px) {
  .pact-strata .strata-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
.pact-strata .strata-stat {
  background: var(--st-raised);
  padding: 0.7rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.pact-strata .strata-stat-k {
  font-size: 0.62rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--st-faint);
  font-weight: 600;
}
.pact-strata .strata-stat-v {
  font-family: var(--st-mono);
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}
.pact-strata .strata-stat-v.good {
  color: var(--st-verified);
}
.pact-strata .strata-stat-v.bad {
  color: var(--st-fault);
}
.pact-strata .strata-stat-v.warn {
  color: var(--st-pending);
}
.pact-strata .strata-stat-sub {
  font-size: 0.66rem;
  color: var(--st-faint);
}

/* ---- layout ---- */
.pact-strata .strata-grid {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr) 340px;
  gap: 1.1rem;
  align-items: start;
}
/* drop the elevation rail first when width gets tight */
@media (max-width: 1180px) {
  .pact-strata .strata-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .pact-strata .strata-rail {
    display: none;
  }
}
@media (max-width: 900px) {
  .pact-strata .strata-grid {
    grid-template-columns: 1fr;
  }
  .pact-strata .strata-inspector {
    position: static !important;
  }
}

/* ---- elevation rail (mini-map) ---- */
.pact-strata .strata-rail {
  position: sticky;
  top: 1rem;
}
.pact-strata .rail-card {
  border: 1px solid var(--st-line);
  border-radius: 0.7rem;
  background: var(--st-raised);
  overflow: hidden;
}
.pact-strata .rail-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--st-line);
}
.pact-strata .rail-hd-title {
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--st-faint);
  font-weight: 600;
}
.pact-strata .rail-hd-count {
  font-family: var(--st-mono);
  font-size: 0.62rem;
  color: var(--st-faint);
}
.pact-strata .rail-now {
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--st-faint);
  padding: 0.45rem 0.6rem 0.15rem;
}
.pact-strata .rail-slivers {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0.2rem 0.6rem 0.5rem;
}
.pact-strata .rail-sliver {
  height: 12px;
  width: 100%;
  padding: 0;
  border: 1px solid var(--st-line);
  border-left: 4px solid var(--st-line);
  border-radius: 3px;
  background: var(--st-surface);
  cursor: pointer;
  opacity: 0.92;
  transition:
    opacity 0.1s ease,
    outline-color 0.1s ease;
}
.pact-strata .rail-sliver:hover {
  opacity: 1;
  outline: 1px solid var(--st-accent);
}
.pact-strata .rail-sliver:focus-visible {
  outline: 2px solid var(--st-accent);
  outline-offset: 1px;
}
.pact-strata .rail-sliver.temp-hot {
  border-left-color: var(--st-hot);
}
.pact-strata .rail-sliver.temp-cold {
  border-left-color: var(--st-cold);
  background: rgba(var(--st-cold-rgb), 0.14);
}
.pact-strata .rail-sliver.temp-deleted,
.pact-strata .rail-sliver.temp-none {
  border-left-color: var(--st-faint);
}
.pact-strata .rail-sliver.is-active {
  border-left-color: var(--st-hot);
  background: rgba(var(--st-hot-rgb), 0.18);
}
.pact-strata .rail-sliver.is-fault {
  border-left-color: var(--st-fault);
  background: rgba(var(--st-fault-rgb), 0.18);
}
.pact-strata .rail-sliver.is-selected {
  outline: 2px solid var(--st-accent);
  opacity: 1;
}
.pact-strata .rail-older {
  padding: 2px 0;
}
.pact-strata .rail-older-line {
  display: block;
  height: 7px;
  border-radius: 3px;
  border-left: 4px dashed var(--st-line);
  opacity: 0.6;
}
.pact-strata .rail-legend {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem 0.6rem;
  border-top: 1px solid var(--st-line);
}
.pact-strata .rail-li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  color: var(--st-faint);
}
.pact-strata .rail-li .sw {
  width: 12px;
  height: 7px;
  border-radius: 2px;
  border-left: 4px solid var(--st-line);
}
.pact-strata .rail-li .sw.hot {
  border-left-color: var(--st-hot);
}
.pact-strata .rail-li .sw.cold {
  border-left-color: var(--st-cold);
}
.pact-strata .rail-li .sw.fault {
  border-left-color: var(--st-fault);
}

.pact-strata .strata-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.pact-strata .strata-caption-title {
  font-weight: 600;
  font-size: 0.92rem;
}
.pact-strata .strata-caption-hint {
  font-family: var(--st-mono);
  font-size: 0.72rem;
  color: var(--st-faint);
}

.pact-strata .strata-column {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

/* ---- a stratum ---- */
.pact-strata .strata-band {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--st-line);
  border-left: 5px solid var(--st-line);
  border-radius: 0.6rem;
  background: var(--st-raised);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 7px,
    rgba(var(--bs-body-color-rgb, 0, 0, 0), 0.03) 7px,
    rgba(var(--bs-body-color-rgb, 0, 0, 0), 0.03) 8px
  );
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    border-color 0.12s ease;
  /* Lightweight virtualization: the browser skips layout/paint for off-screen
     bands, keeping thousands of loaded strata cheap. Falls back to normal
     rendering where unsupported. */
  content-visibility: auto;
  contain-intrinsic-size: auto 92px;
}
.pact-strata .strata-band:hover {
  transform: translateX(2px);
  box-shadow: var(--bs-box-shadow-sm, 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075));
}
.pact-strata .strata-band:focus-visible {
  outline: 2px solid var(--st-accent);
  outline-offset: 2px;
}
.pact-strata .strata-band.temp-hot {
  border-left-color: var(--st-hot);
}
.pact-strata .strata-band.temp-cold {
  border-left-color: var(--st-cold);
  filter: saturate(0.75);
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0,
    transparent 6px,
    rgba(var(--st-cold-rgb), 0.08) 6px,
    rgba(var(--st-cold-rgb), 0.08) 7px
  );
}
.pact-strata .strata-band.temp-deleted,
.pact-strata .strata-band.temp-none {
  border-left-color: var(--st-faint);
  opacity: 0.72;
}
.pact-strata .strata-band.is-active {
  border-left-color: var(--st-hot);
  background: rgba(var(--st-hot-rgb), 0.08);
}
.pact-strata .strata-band.is-fault {
  border-left-color: var(--st-fault);
  background: rgba(var(--st-fault-rgb), 0.07);
}
.pact-strata .strata-band.is-selected {
  border-color: var(--st-accent);
  border-left-color: var(--st-accent);
  box-shadow: 0 0 0 1px var(--st-accent) inset;
}

.pact-strata .strata-liveedge {
  position: absolute;
  left: 5px;
  right: 0;
  top: 0;
  height: 3px;
  border-radius: 0.6rem 0.6rem 0 0;
  overflow: hidden;
}
.pact-strata .strata-liveedge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--st-hot), transparent);
  opacity: 0.85;
  animation: strata-sweep 2.6s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .pact-strata .strata-liveedge::after {
    animation: none;
    opacity: 0.5;
  }
}
@keyframes strata-sweep {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.pact-strata .band-gutter {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.pact-strata .band-id {
  font-weight: 700;
  font-size: 0.82rem;
}
.pact-strata .band-when {
  font-family: var(--st-mono);
  font-size: 0.62rem;
  color: var(--st-faint);
}
.pact-strata .band-core {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.pact-strata .band-seq {
  font-family: var(--st-mono);
  font-size: 0.74rem;
  color: var(--st-faint);
  font-variant-numeric: tabular-nums;
}
.pact-strata .band-seq strong {
  color: var(--st-ink);
  font-weight: 600;
}
.pact-strata .band-root {
  font-family: var(--st-mono);
  font-size: 0.68rem;
  color: var(--st-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pact-strata .band-tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.pact-strata .strata-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--st-mono);
  font-size: 0.62rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--st-line);
  color: var(--st-faint);
  background: var(--st-surface);
  white-space: nowrap;
}
.pact-strata .strata-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.pact-strata .strata-tag.tag-hot {
  color: var(--st-hot);
}
.pact-strata .strata-tag.tag-cold {
  color: var(--st-cold);
}
.pact-strata .strata-tag.tag-conf {
  color: var(--st-verified);
}
.pact-strata .strata-tag.tag-pend {
  color: var(--st-pending);
}
.pact-strata .strata-tag.tag-fail {
  color: var(--st-fault);
}
.pact-strata .strata-tag.tag-void {
  color: var(--st-faint);
}

.pact-strata .band-seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  width: 68px;
  color: var(--st-faint);
}
.pact-strata .band-seal.is-verified {
  color: var(--st-accent);
}
.pact-strata .band-seal.is-broken {
  color: var(--st-fault);
}
.pact-strata .band-seal .seal-broken {
  transform: rotate(-8deg);
}
.pact-strata .band-seal-label {
  font-family: var(--st-mono);
  font-size: 0.56rem;
  text-align: center;
  color: inherit;
  opacity: 0.85;
}

/* ---- older + bedrock ---- */
.pact-strata .strata-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.7rem 0.7rem;
}
.pact-strata .strata-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px dashed var(--st-line-strong, var(--st-line));
  border-radius: 0.6rem;
  background: var(--st-surface);
  color: var(--st-ink);
  font-family: var(--st-mono);
  font-size: 0.74rem;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  transition:
    border-color 0.12s ease,
    color 0.12s ease;
}
.pact-strata .strata-more-btn:hover:not(:disabled) {
  border-color: var(--st-accent);
  color: var(--st-accent);
}
.pact-strata .strata-more-btn:disabled {
  cursor: default;
  color: var(--st-faint);
}
.pact-strata .strata-more-btn:focus-visible {
  outline: 2px solid var(--st-accent);
  outline-offset: 2px;
}
.pact-strata .strata-more-count {
  font-family: var(--st-mono);
  font-size: 0.66rem;
  color: var(--st-faint);
}
.pact-strata .strata-bedrock {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem;
  border-radius: 0.6rem;
  border: 1px solid var(--st-line);
  background: linear-gradient(
    to bottom,
    var(--st-raised),
    rgba(var(--bs-body-color-rgb, 0, 0, 0), 0.08)
  );
}
.pact-strata .strata-anchor {
  color: var(--st-accent);
  font-size: 1.4rem;
  line-height: 1;
}
.pact-strata .strata-bedrock-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.pact-strata .strata-bedrock-text .t {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.pact-strata .strata-bedrock-text .m {
  font-family: var(--st-mono);
  font-size: 0.66rem;
  color: var(--st-faint);
}
.pact-strata .strata-bedrock-meta {
  margin-left: auto;
  text-align: right;
  font-family: var(--st-mono);
  font-size: 0.66rem;
  color: var(--st-verified);
  white-space: nowrap;
}

/* ---- inspector ---- */
.pact-strata .strata-inspector {
  position: sticky;
  top: 1rem;
}
.pact-strata .ins-card {
  border: 1px solid var(--st-line);
  border-radius: 0.7rem;
  overflow: hidden;
  background: var(--st-raised);
}
.pact-strata .ins-empty {
  padding: 1.2rem;
  border: 1px dashed var(--st-line);
  border-radius: 0.7rem;
  text-align: center;
}
.pact-strata .ins-hd {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--st-line);
  background: var(--st-surface);
}
.pact-strata .ins-hd-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.pact-strata .ins-hd h3 {
  font-size: 1.05rem;
  margin: 0;
}
.pact-strata .ins-sub {
  font-family: var(--st-mono);
  font-size: 0.66rem;
  color: var(--st-faint);
  margin-top: 0.25rem;
}
.pact-strata .ins-body {
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.pact-strata .ins-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.pact-strata .ins-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.pact-strata .ins-k {
  font-size: 0.58rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--st-faint);
  font-weight: 600;
}
.pact-strata .ins-v {
  font-family: var(--st-mono);
  font-size: 0.78rem;
  word-break: break-word;
}
.pact-strata .ins-faultcard {
  border: 1px solid rgba(var(--st-fault-rgb), 0.4);
  background: rgba(var(--st-fault-rgb), 0.08);
  border-radius: 0.6rem;
  padding: 0.7rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.pact-strata .ins-faultcard-h {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--st-fault);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.pact-strata .ins-faultrow {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.pact-strata .ins-faultrow .l {
  font-size: 0.55rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--st-faint);
}
.pact-strata .ins-faultrow .v {
  font-family: var(--st-mono);
  font-size: 0.72rem;
  word-break: break-word;
}
.pact-strata .ins-faultrow .v.good {
  color: var(--st-verified);
}
.pact-strata .ins-faultrow .v.bad {
  color: var(--st-fault);
}

/* ---- inspector: copy button ---- */
.pact-strata .ins-v-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: space-between;
}
.pact-strata .ins-v-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pact-strata .ins-copy {
  flex: 0 0 auto;
  border: 1px solid var(--st-line);
  background: var(--st-surface);
  color: var(--st-faint);
  border-radius: 5px;
  font-family: var(--st-mono);
  font-size: 0.58rem;
  padding: 0.1rem 0.35rem;
  cursor: pointer;
  transition:
    color 0.1s ease,
    border-color 0.1s ease;
}
.pact-strata .ins-copy:hover {
  color: var(--st-accent);
  border-color: var(--st-accent);
}
.pact-strata .ins-copy:focus-visible {
  outline: 2px solid var(--st-accent);
  outline-offset: 1px;
}

/* ---- inspector: recent events ---- */
.pact-strata .ins-events-empty {
  font-size: 0.72rem;
  color: var(--st-faint);
}
.pact-strata .ins-events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--st-line);
  border-radius: 0.5rem;
  overflow: hidden;
}
.pact-strata .ins-event {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--st-line);
}
.pact-strata .ins-event:last-child {
  border-bottom: none;
}
.pact-strata .ins-event-seq {
  font-family: var(--st-mono);
  font-size: 0.66rem;
  color: var(--st-faint);
  font-variant-numeric: tabular-nums;
}
.pact-strata .ins-event-mid {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}
.pact-strata .ins-event-corr {
  font-family: var(--st-mono);
  font-size: 0.7rem;
  color: var(--st-ink);
  overflow: hidden;
  text-overflow: ellipsis;
}
.pact-strata .ins-event-when {
  font-size: 0.58rem;
  color: var(--st-faint);
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  min-width: 0;
}
/* ---- recent-events envelope (Kurrent) ---- */
.pact-strata .ins-event-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}
.pact-strata .ins-event-type {
  font-family: var(--st-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--st-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pact-strata .ins-event-result {
  flex: none;
  font-size: 0.54rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.05rem 0.3rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
}
.pact-strata .ins-event-result.is-good {
  color: rgb(var(--st-verified-rgb));
  border-color: rgba(var(--st-verified-rgb), 0.35);
  background: rgba(var(--st-verified-rgb), 0.08);
}
.pact-strata .ins-event-result.is-bad {
  color: var(--bs-danger);
  border-color: rgba(var(--bs-danger-rgb), 0.35);
  background: rgba(var(--bs-danger-rgb), 0.08);
}
.pact-strata .ins-event-actor {
  font-family: var(--st-mono);
  color: var(--st-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 55%;
}
.pact-strata .ins-event-actor::after {
  content: '·';
  margin-left: 0.4rem;
  color: var(--st-line);
}

/* ---- legal hold: frozen overlay ---- */
.pact-strata .strata-hold {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.6rem;
  margin-bottom: 1rem;
  background: rgba(var(--st-cold-rgb), 0.12);
  border: 1px solid rgba(var(--st-cold-rgb), 0.45);
}
.pact-strata .strata-hold > i {
  color: var(--st-cold);
  font-size: 1.05rem;
}
.pact-strata .strata-hold strong {
  font-weight: 600;
}
.pact-strata .bedrock-frozen {
  color: var(--st-cold);
}
/* a subtle frost cast over the cross-section while held; readable + click-through */
.pact-strata.frozen .strata-column {
  position: relative;
}
.pact-strata.frozen .strata-column::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 0.6rem;
  pointer-events: none;
  z-index: 5;
  background: linear-gradient(
    180deg,
    rgba(var(--st-cold-rgb), 0.1),
    rgba(var(--st-cold-rgb), 0.03)
  );
  box-shadow: inset 0 0 0 1px rgba(var(--st-cold-rgb), 0.3);
}

/* ---- anchor history: bedrock timeline ---- */
.pact-strata .anchor-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-left: 1.5rem;
}
.pact-strata .anchor-timeline::before {
  content: "";
  position: absolute;
  left: 0.53rem;
  top: 0.5rem;
  bottom: 1.4rem;
  width: 2px;
  background: var(--st-line);
}
.pact-strata .anchor-node {
  position: relative;
  display: flex;
}
.pact-strata .anchor-marker {
  position: absolute;
  left: -1.5rem;
  top: 0.7rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--st-raised);
  border: 1px solid var(--st-line);
  display: grid;
  place-items: center;
  color: var(--st-accent);
  font-size: 0.6rem;
}
.pact-strata .anchor-card {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--st-line);
  border-radius: 0.6rem;
  background: var(--st-raised);
  padding: 0.6rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.pact-strata .anchor-card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.pact-strata .anchor-date {
  font-size: 0.82rem;
  font-weight: 600;
}
.pact-strata .anchor-card-meta {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  font-family: var(--st-mono);
  font-size: 0.72rem;
  color: var(--st-faint);
}
.pact-strata .anchor-bedrock {
  margin-top: 0.2rem;
  padding: 0.55rem 0.8rem;
  border-radius: 0.5rem;
  border: 1px solid var(--st-line);
  background: linear-gradient(
    to bottom,
    var(--st-raised),
    rgba(var(--bs-body-color-rgb, 0, 0, 0), 0.07)
  );
  font-family: var(--st-mono);
  font-size: 0.7rem;
  color: var(--st-faint);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pact-strata .anchor-bedrock > i {
  color: var(--st-accent);
}
.pact-strata .anchor-empty {
  padding: 1rem;
  color: var(--st-faint);
  border: 1px dashed var(--st-line);
  border-radius: 0.5rem;
  font-size: 0.85rem;
}

/* ---- core-sample verification run ---- */
.pact-strata .cs-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}
.pact-strata .cs-run-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--st-accent);
  background: rgba(var(--st-accent-rgb), 0.08);
  color: var(--st-accent);
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: background 0.12s ease;
}
.pact-strata .cs-run-btn:hover:not(:disabled) {
  background: rgba(var(--st-accent-rgb), 0.16);
}
.pact-strata .cs-run-btn:disabled {
  opacity: 0.55;
  cursor: default;
}
.pact-strata .cs-run-btn:focus-visible {
  outline: 2px solid var(--st-accent);
  outline-offset: 2px;
}
.pact-strata .cs-result {
  font-family: var(--st-mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
  border-radius: 0.4rem;
}
.pact-strata .cs-result.ok {
  color: var(--st-verified);
  background: rgba(var(--st-verified-rgb), 0.12);
}
.pact-strata .cs-result.bad {
  color: var(--st-fault);
  background: rgba(var(--st-fault-rgb), 0.12);
}
.pact-strata .cs-result.muted {
  color: var(--st-faint);
}
/* a verified stratum: a green core-sample bar just inside the temperature edge */
.pact-strata .strata-band.cs-verified {
  box-shadow: inset 3px 0 0 0 var(--st-verified);
  background-color: rgba(var(--st-verified-rgb), 0.05);
  transition:
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

/* ---- inspector: seal provenance ---- */
.pact-strata .ins-provenance {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--st-line);
  border-radius: 0.5rem;
  background: var(--st-surface);
}
.pact-strata .ins-provenance > .ins-k {
  color: var(--st-accent);
}

/* ---- precise seal colours ---- */
.pact-strata .band-seal.is-verified-ok {
  color: var(--st-verified);
}
.pact-strata .band-seal.is-sealed {
  color: var(--st-accent);
}

/* ---- density toggle ---- */
.pact-strata .density-toggle {
  margin-left: auto;
  display: inline-flex;
  border: 1px solid var(--st-line);
  border-radius: 0.5rem;
  overflow: hidden;
}
.pact-strata .density-toggle button {
  border: 0;
  background: var(--st-surface);
  color: var(--st-faint);
  font-size: 0.72rem;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}
.pact-strata .density-toggle button.is-active {
  background: var(--st-accent);
  color: #fff;
}
.pact-strata .density-toggle button:not(.is-active):hover {
  color: var(--st-ink);
}
.pact-strata .density-toggle button:focus-visible {
  outline: 2px solid var(--st-accent);
  outline-offset: -2px;
}

/* ---- band list wrapper ---- */
.pact-strata .band-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* ---- tape (high-density) rows ---- */
.pact-strata .tape-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pact-strata .tape-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.32rem 0.6rem;
  border: 1px solid var(--st-line);
  border-left: 4px solid var(--st-line);
  border-radius: 0.35rem;
  background: var(--st-raised);
  cursor: pointer;
  content-visibility: auto;
  contain-intrinsic-size: auto 30px;
}
.pact-strata .tape-row:hover {
  background: var(--st-surface);
}
.pact-strata .tape-row:focus-visible {
  outline: 2px solid var(--st-accent);
  outline-offset: 1px;
}
.pact-strata .tape-row.temp-hot {
  border-left-color: var(--st-hot);
}
.pact-strata .tape-row.temp-cold {
  border-left-color: var(--st-cold);
}
.pact-strata .tape-row.temp-deleted,
.pact-strata .tape-row.temp-none {
  border-left-color: var(--st-faint);
}
.pact-strata .tape-row.is-active {
  border-left-color: var(--st-hot);
  background: rgba(var(--st-hot-rgb), 0.06);
}
.pact-strata .tape-row.is-fault {
  border-left-color: var(--st-fault);
  background: rgba(var(--st-fault-rgb), 0.06);
}
.pact-strata .tape-row.is-selected {
  border-color: var(--st-accent);
  box-shadow: 0 0 0 1px var(--st-accent) inset;
}
.pact-strata .tape-id {
  flex: 0 0 auto;
  width: 52px;
  font-family: var(--st-mono);
  font-size: 0.7rem;
  font-weight: 600;
}
.pact-strata .tape-seq {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--st-mono);
  font-size: 0.72rem;
  color: var(--st-ink);
  font-variant-numeric: tabular-nums;
}
.pact-strata .tape-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--st-faint);
}
.pact-strata .tape-dot.seal-verified {
  background: var(--st-verified);
}
.pact-strata .tape-dot.seal-sealed {
  background: var(--st-accent);
}
.pact-strata .tape-dot.seal-broken {
  background: var(--st-fault);
}
.pact-strata .tape-state {
  flex: 0 0 auto;
  width: 64px;
  font-size: 0.64rem;
  color: var(--st-faint);
}
.pact-strata .tape-anchor {
  flex: 0 0 auto;
  font-family: var(--st-mono);
  font-size: 0.64rem;
  color: var(--st-verified);
}
/*$vite$:1*/