/* The reconciliation workspace's stylesheet.
   Everything visual comes from PACT's shared Strata theme, so this remote looks
   identical to the compliance workspace without depending on it having loaded —
   a federated remote has to stand on its own. *//* ============================================================================
   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);
}
/*$vite$:1*/