:root {
  --app-bg: #f8f8fb;
  --app-surface: #ffffff;
  --app-border: #ececf3;
  --app-ink: #191919;
  --app-muted: #8d8d98;
  --app-primary: #8f67ff;
  --app-primary-strong: #7446f7;
  --app-accent: #f1ebff;
  --app-sidebar: #ffffff;
  --app-nav-height: 64px;
  --type-minimum: 10px;
  --type-micro: 11px;
  --type-tiny: 12px;
  --type-caption: 13px;
  --type-small: 14px;
}

html {
  font-size: 15px;
}

body.app-body {
  background: linear-gradient(180deg, #fcfcfe 0%, var(--app-bg) 100%);
  color: var(--app-ink);
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9375rem;
}

.app-container {
  max-width: 1480px;
}

.app-main-workspace {
  padding-bottom: 0;
  min-height: 100vh;
}

.app-navbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--app-border);
  box-shadow: 0 8px 30px rgba(25, 25, 25, 0.04);
  backdrop-filter: blur(10px);
}

.app-brand {
  display: inline-flex;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}

.app-brand-tag {
  color: var(--app-muted);
  font-size: 0.78rem;
}

.app-brand-logo {
  display: block;
  height: 42px;
  width: auto;
  max-width: min(360px, 46vw);
  object-fit: contain;
}

.app-top-btn {
  border: 1px solid var(--app-border);
  background: #fff;
  color: var(--app-ink);
  border-radius: 0.8rem;
  padding-inline: 0.9rem;
}

.app-top-btn:hover {
  background: #f6f6fb;
  color: var(--app-ink);
}

.app-top-btn-primary {
  background: linear-gradient(135deg, var(--app-primary), var(--app-primary-strong));
  color: #fff;
  border-color: transparent;
}

.app-top-btn-primary:hover {
  color: #fff;
  background: linear-gradient(135deg, #9b76ff, #7d51f8);
}

.nav-user-chip {
  background: #f5f3fb;
  border: 1px solid #ece7ff;
  color: #5b4b8a;
  border-radius: 1px;
  padding: 0.4rem 0.7rem;
  font-size: 0.82rem;
}

.nav-user-chip-accent {
  background: #eef4ff;
  border-color: #d8e6ff;
  color: #35558a;
}

.page-shell {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.narrow-shell {
  max-width: inherit;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 0.85rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  font-weight: 700;
  color: #9b96aa;
}

.page-title {
  font-size: clamp(1.55rem, 2.2vw, 2.25rem);
  line-height: 1.1;
  margin-bottom: 0.2rem;
  font-weight: 700;
}

.page-subtitle {
  color: var(--app-muted);
  max-width: 50rem;
  margin-bottom: 0;
  font-size: 0.9rem;
}

.policy-builder {
  background: linear-gradient(180deg, #fcfcff 0%, #f5f4fb 100%);
  border: 1px solid var(--app-border);
}

.pagy.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.pagy.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.9rem;
  border: 1px solid var(--app-border);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.96);
  color: var(--app-ink);
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(25, 25, 25, 0.04);
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.pagy.nav a:hover {
  background: #f6f6fb;
  border-color: #ddd9ec;
  color: var(--app-ink);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(25, 25, 25, 0.07);
}

.pagy.nav a.current {
  background: linear-gradient(135deg, var(--app-primary), var(--app-primary-strong));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 24px rgba(116, 70, 247, 0.22);
}

.pagy.nav a[aria-label="Previous"],
.pagy.nav a[aria-label="Next"] {
  min-width: 6.5rem;
  padding: 0 1rem;
  border-radius: 999px;
  font-size: 0;
  letter-spacing: 0.01em;
}

.pagy.nav a[aria-label="Previous"]::before,
.pagy.nav a[aria-label="Next"]::before {
  font-size: 0.88rem;
  font-weight: 700;
}

.pagy.nav a[aria-label="Previous"]::before {
  content: "\2039  Prev";
}

.pagy.nav a[aria-label="Next"]::before {
  content: "Next  \203A";
}

.pagy.nav a.gap,
.pagy.nav a[aria-disabled="true"] {
  background: transparent;
  color: var(--app-muted);
  border-color: transparent;
  box-shadow: none;
  transform: none;
  cursor: default;
}

.pagy.nav a.gap {
  min-width: auto;
  padding: 0 0.15rem;
}

.pagy.nav a[aria-disabled="true"] {
  opacity: 0.72;
}

.pagy.nav a[aria-disabled="true"][aria-label="Previous"],
.pagy.nav a[aria-disabled="true"][aria-label="Next"] {
  border-color: var(--app-border);
  background: rgba(245, 245, 250, 0.9);
}

.account-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(219, 227, 239, 0.72);
  backdrop-filter: blur(10px);
}

.metric-card {
  border: 1px solid var(--app-border);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  /* border-radius: 1px; */
  border-radius: 1px;
  padding: 0.9rem 1rem;
}

.metric-label {
  color: var(--app-muted);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.metric-value {
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1;
}

.metric-value.small-value {
  font-size: 0.92rem;
  line-height: 1.35;
  word-break: break-word;
}

.module-policy-table th {
  font-size: 0.82rem;
  color: var(--app-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom-width: 1px;
}

.module-policy-table td,
.module-policy-table th {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.workspace-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: 100vh;
}

.workspace-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  height: 100vh;
}

.workspace-sidebar-card {
  background: var(--app-sidebar);
  color: var(--app-ink);
  min-height: 100vh;
  height: 100%;
  padding: 1.1rem 1rem 0;
  border-right: 1px solid var(--app-border);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.workspace-sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.workspace-sidebar-bottom {
  margin-top: auto;
  padding-top: 1.25rem;
  padding-bottom: 1rem;
}

.workspace-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.workspace-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #c9b7ff, #9a78ff);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
}

.workspace-user-name {
  font-weight: 700;
  font-size: 0.94rem;
  line-height: 1.15;
}

.workspace-user-email {
  color: var(--app-muted);
  font-size: 0.76rem;
  line-height: 1.3;
}

.workspace-client-name {
  margin-top: 0.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
}

.report-enhanced-select + .ts-wrapper {
  font-size: 0.98rem;
}

.report-enhanced-select + .ts-wrapper .ts-control {
  min-height: 3rem;
  max-height: 70px;
  border: 1px solid #d9deea;
  border-radius: 0.95rem;
  padding: 0.45rem 0.6rem;
  box-shadow: none;
  background: #fff;
  overflow-y: auto;
  align-content: flex-start;
  scrollbar-width: thin;
}

.report-enhanced-select + .ts-wrapper.focus .ts-control,
.report-enhanced-select + .ts-wrapper .ts-control:focus-within {
  border-color: #5d7df6;
  box-shadow: 0 0 0 0.2rem rgba(93, 125, 246, 0.12);
}

.report-enhanced-select + .ts-wrapper.multi .ts-control > div {
    background: #111111;
    border: 1px solid #202020;
    color: #ffffff;
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
    line-height: 1.2;
    font-size: 12px !important;
}

.report-enhanced-select + .ts-wrapper .ts-control > input {
  min-width: 8rem;
  font-size: 0.95rem;
}

.report-enhanced-select + .ts-wrapper .ts-dropdown {
border: 1px solid #323232;
    border-radius: 5px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    padding: 0.4rem;
}

.ts-dropdown, .ts-dropdown.form-control, .ts-dropdown.form-select {
    background: #0a0a0a !important;
}
.ts-control, .ts-control input, .ts-dropdown {
    color: #ffffff !important;
}

.report-enhanced-select + .ts-wrapper .option,
.report-enhanced-select + .ts-wrapper .item {
  word-break: break-word;
}

.report-enhanced-select + .ts-wrapper .option {
  border-radius: 0.7rem;
  padding: 0.55rem 0.7rem;
}

.report-enhanced-select + .ts-wrapper .option.active {
background: #111111;
    color: #ffffff;
    border-radius: 4px;
    border: 1px solid #202020;
}

.report-enhanced-select + .ts-wrapper .remove {
  border-left: 0;
  color: #4f67a9;
  margin-left: 0.35rem;
  padding-left: 0.25rem;
}

.report-enhanced-select + .ts-wrapper .no-results {
  color: #8d8d98;
  padding: 0.55rem 0.7rem;
}

.public-report-body {
  background:
    radial-gradient(circle at top left, rgba(99, 102, 241, 0.08), transparent 32%),
    linear-gradient(180deg, #fbfcff 0%, #f3f6fb 100%);
}

.public-report-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.public-report-shell {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.public-report-hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid rgba(219, 227, 239, 0.72);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-radius: 1.4rem;
}

.public-report-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: #7c86a3;
  margin-bottom: 0.45rem;
}

.public-report-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  margin-bottom: 0.9rem;
}

.public-report-brand img {
  display: block;
  height: 30px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
}

.public-report-slogan {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.6rem;
  font-weight: 700;
  color: #7c86a3;
}

.public-report-title {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.public-report-subtitle {
  margin-bottom: 0;
  color: #6b7280;
  max-width: 46rem;
}

.public-report-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.public-report-pill {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(219, 227, 239, 0.72);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 1.1rem;
}

@media (max-width: 991px) {
  .public-report-hero {
    flex-direction: column;
    align-items: start;
  }

  .public-report-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .public-report-main {
    padding-inline: 1rem;
  }

  .public-report-summary {
    grid-template-columns: 1fr;
  }
}

.report-chart-wrap {
  display: flex;
  justify-content: center;
  padding: 1rem 0 1.5rem;
}

.report-chart-donut {
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.report-chart-center {
  width: 8.25rem;
  height: 8.25rem;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.report-legend {
  display: grid;
  gap: 0.75rem;
}

.report-legend-item {
  display: flex;
  align-items: start;
  gap: 0.75rem;
}

.report-legend-swatch {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  margin-top: 0.25rem;
  flex: 0 0 auto;
}

.workspace-title {
  font-size: 1.25rem;
  line-height: 1.1;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.workspace-slug {
  color: var(--app-muted);
  font-size: 0.82rem;
}

.workspace-search-input {
  border-radius: 0.75rem;
  border-color: var(--app-border);
  background: #f3f4f8;
  font-size: 0.88rem;
  min-height: 2.5rem;
}

.workspace-search-input:disabled {
  color: #9d9cab;
  opacity: 1;
}

.workspace-nav-group {
  display: grid;
  gap: 0.55rem;
}

.workspace-section-label {
  color: #b0acbc;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  padding-inline: 0.45rem;
  margin-bottom: 0;
}

.workspace-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.workspace-nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.55rem;
  padding: 0.65rem 0.8rem;
  border-radius: 0.8rem;
  color: #78788a;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.94rem;
  transition: all 0.15s ease;
}

/* Count of items that need attention. Rendered only when non-zero, so a quiet
   queue adds nothing to the nav. */
.workspace-nav-count {
  margin-left: auto;
  min-width: 1.35rem;
  padding: 0.05rem 0.4rem;
  border-radius: 0.7rem;
  background: #e5484d;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.workspace-nav-link:hover {
  color: var(--app-ink);
  background: #f5f4fa;
}

.workspace-nav-link.active {
  color: var(--app-ink);
  background: #ffffff;
  border: 1px solid var(--app-border);
  box-shadow: 0 2px 8px rgba(32, 34, 39, 0.04);
}

.workspace-nav-link-muted {
  color: #9b97a9;
}

.workspace-main {
  min-width: 0;
  padding: 1.5rem 0 1.5rem 1.75rem;
}

.admin-sidebar-card {
  background: linear-gradient(180deg, #ffffff, #fbfbfe);
}

.admin-workspace-main {
  padding-top: 1.25rem;
}

.workspace-alert {
  margin-bottom: 1rem;
}

.auto-dismiss-alert {
  transition: opacity 0.3s ease, transform 0.3s ease, margin 0.3s ease;
}

.auto-dismiss-alert-hidden {
  opacity: 0;
  transform: translateY(-6px);
}

/* Transient flash feedback docks top-right rather than pushing the page
   down. Fixed, because a notice raised by a form near the foot of a long
   page was previously rendered at the top, out of view — the confirmation
   arrived where the reader was not looking.
   The one-time API token alert is deliberately NOT in here: it is the only
   copy of a secret the user will ever see, so it stays in the document flow
   where it cannot be missed or covered. */
.toast-stack {
  position: fixed;
  right: 1rem;
  top: 1rem;
  /* Above Bootstrap's modal (1055); matches its own toast layer. */
  z-index: 1090;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(21rem, calc(100vw - 2rem));
  /* The stack spans a corner of the viewport even when empty, so it must
     never intercept clicks meant for the page beneath it. */
  pointer-events: none;
}

.toast-stack .alert {
  margin-bottom: 0;
  padding: 0.55rem 0.8rem;
  font-size: 0.85rem;
  pointer-events: auto;
}

/* Docked at the top, so it leaves upward (the base rule already does). */

/* Solid tinted backgrounds. The page is near-black, so an untinted toast
   blended in and errors went unseen. */
.toast-stack .alert-success {
  background: #0f5c3f !important;
  border: 1px solid var(--pc-green) !important;
  color: #eafff6 !important;
}

.toast-stack .alert-danger {
  background: #7a1f2b !important;
  border: 1px solid var(--pc-red) !important;
  color: #fff0f1 !important;
}

.toast-stack .alert-warning {
  background: #6b4e08 !important;
  border: 1px solid var(--pc-amber) !important;
  color: #fff8e1 !important;
}

.panel-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--app-border);
  border-radius: 1px;
  padding: 1rem 1.05rem;
  box-shadow: 0 8px 24px rgba(22, 38, 63, 0.035);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.panel-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.panel-subtitle {
  margin: 0.25rem 0 0;
  color: var(--app-muted);
  font-size: 0.86rem;
}

.metric-card-hero {
  background: #fff;
  color: var(--app-ink);
}

.metric-card-request {
  background: linear-gradient(135deg, #fcfbff, #f6f3ff);
}

.metric-card-hero .metric-label,
.metric-card-hero .metric-footnote {
  color: var(--app-muted);
}

.metric-footnote {
  color: var(--app-muted);
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

.workspace-table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--app-muted);
  border-bottom-width: 1px;
}

.workspace-table td,
.workspace-table th {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  font-size: 0.9rem;
}

.finding-feed {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.insight-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 0.9rem;
}
.btn{
  border-radius: 1px !important;
}

.insight-tile {
  border: 1px solid var(--app-border);
  border-radius: 1px;
  background: linear-gradient(180deg, #ffffff, #fafbfe);
  padding: 0.95rem;
}

.insight-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--app-muted);
  margin-bottom: 0.8rem;
}

.status-meter-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.status-meter-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.status-meter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.84rem;
}

.progress-thin {
  height: 0.45rem;
  background: #f1f2f7;
}

.stats-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.insight-summary-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.insight-summary-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: 0.9rem;
  color: #363847;
}

.insight-summary-dot {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--app-primary), var(--app-primary-strong));
}

.insight-divider {
  height: 1px;
  background: var(--app-border);
  margin: 1rem 0;
}

.finding-feed-item {
  border: 1px solid var(--app-border);
  border-radius: 1px;
  padding: 0.9rem;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.stats-pill {
  padding: 0.9rem;
  border-radius: 1px;
  border: 1px solid var(--app-border);
  background: #fff;
}

.stats-pill-value {
  margin-top: 0.55rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.report-run-summary {
  overflow: hidden;
}

.report-run-hero {
  min-height: 100%;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--app-border);
  background:
    radial-gradient(circle at top right, rgba(143, 103, 255, 0.12), transparent 38%),
    linear-gradient(180deg, #ffffff, #f8fbff);
}

.report-run-status-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.45rem;
}

.report-run-pulse {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: #f0ad4e;
  box-shadow: 0 0 0 rgba(240, 173, 78, 0.5);
  animation: reportPulse 1.6s infinite;
}

.report-run-progress-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 250, 255, 0.98));
}

.report-run-progress-bar {
  position: relative;
  overflow: hidden;
  height: 0.5rem;
  border-radius: 999px;
  background: #eceefa;
  margin-bottom: 1rem;
}

.report-run-progress-fill {
  height: 100%;
  width: 36%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c9b7ff, #8f67ff, #7446f7);
}

.report-run-progress-fill.is-running {
  width: 52%;
  animation: reportProgressSlide 1.8s ease-in-out infinite alternate;
}

.report-run-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  padding: 0.9rem;
  min-height: 100%;
  border: 1px solid var(--app-border);
  background: #fff;
}

.report-run-step.is-active {
  border-color: #ddd2ff;
  background: linear-gradient(180deg, #fff, #faf8ff);
}

.report-run-step-marker {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #5c46a3;
  background: #eee8ff;
}

.report-run-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.report-run-meta-item {
  padding: 0.9rem;
  border: 1px solid var(--app-border);
  background: #fff;
}

.report-run-failure-card {
  border-color: #f1d7dd;
  background: linear-gradient(180deg, #fff, #fff9fa);
}

.report-run-error {
  padding: 0.95rem 1rem;
  border: 1px solid #f4d6dd;
  background: #fff;
}

@keyframes reportPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(240, 173, 78, 0.45);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(240, 173, 78, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(240, 173, 78, 0);
  }
}

@keyframes reportProgressSlide {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(85%);
  }
}

@media (max-width: 991px) {
  .report-run-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .report-run-meta-grid {
    grid-template-columns: 1fr;
  }
}

.module-usage-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.api-key-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-control {
    border-radius: 1px;
}

.api-key-policy-panel {
  border: 1px solid #ece9f8;
  border-radius: 0.95rem;
  background: #fbfaff;
  padding: 0.95rem;
}

.api-key-policy-default-note {
  border: 1px solid #ececf3;
  border-radius: 0.8rem;
  background: #ffffff;
  padding: 0.75rem 0.85rem;
}

.policy-note {
  border: 1px solid #ececf3;
  border-radius: 0.8rem;
  background: #ffffff;
  padding: 0.75rem 0.85rem;
}

.api-key-policy-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.api-key-policy-summary > div {
  padding: 10px;
  border: 1px solid var(--pc-border);
  border-radius: 5px;
  background: var(--pc-surface-2);
}

.api-key-policy-summary span,
.api-key-policy-summary strong {
  display: block;
}

.api-key-policy-summary span {
  color: var(--pc-muted);
  font-size: var(--type-tiny);
  font-weight: 780;
  text-transform: uppercase;
}

.api-key-policy-summary strong {
  margin-top: 5px;
  color: var(--pc-text);
  font-size: 18px;
  line-height: 1;
}

.api-key-policy-sections {
  display: grid;
  gap: 9px;
}

.api-key-policy-section,
.api-key-module-card {
  border: 1px solid var(--pc-border);
  border-radius: 5px;
  background: var(--pc-surface);
}

.api-key-policy-section > summary,
.api-key-module-card > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  cursor: pointer;
}

.api-key-policy-section > summary::-webkit-details-marker,
.api-key-module-card > summary::-webkit-details-marker {
  display: none;
}

.api-key-policy-section > summary {
  min-height: 54px;
  padding: 12px 14px;
}

.api-key-policy-section > summary span,
.api-key-policy-section > summary small {
  display: block;
}

.api-key-policy-section > summary span {
  color: var(--pc-text);
  font-size: 13px;
  font-weight: 820;
}

.api-key-policy-section > summary small {
  margin-top: 3px;
  color: var(--pc-muted);
  font-size: var(--type-caption);
}

.api-key-policy-section > summary::after,
.api-key-module-card > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  color: var(--pc-muted);
  transform: rotate(45deg);
}

.api-key-policy-section[open] > summary::after,
.api-key-module-card[open] > summary::after {
  transform: rotate(225deg);
}

.api-key-policy-section-body {
  padding: 0 14px 14px;
  border-top: 1px solid var(--pc-border);
}

.api-key-policy-section-body > .row:first-child,
.api-key-policy-section-body > .mb-3:first-child,
.api-key-module-editor {
  margin-top: 14px;
}

.api-key-policy-import-row {
  margin-top: 14px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px static var(--pc-border);
  border-radius: 4px;
  background: #111111;
}

.api-key-policy-import-row select {
  max-width: 260px;
}

.api-key-module-editor {
  display: grid;
  gap: 8px;
}

.api-key-module-card > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.62fr) auto;
  min-height: 62px;
  padding: 11px 12px;
}

.api-key-module-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.api-key-module-body {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-top: 1px solid var(--pc-border);
}

.module-score-cell {
  min-width: 140px;
}

.module-signal-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.module-signal-row td {
  padding-top: 0;
  border-top: 0;
}

.module-signal-card {
  min-width: 160px;
  flex: 1 1 180px;
  max-width: 220px;
  padding: 0.7rem;
  border: 1px solid #e7eaf3;
  border-radius: 0.8rem;
  background: #fbfcff;
}

.module-score-hint {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: #53576a;
  line-height: 1.35;
}

.module-score-hint strong {
  color: #222534;
}

.module-score-hint-muted {
  color: #8d90a0;
}

.api-key-card-details {
  border: 1px solid var(--app-border);
  border-radius: 1px;
  background: linear-gradient(180deg, #ffffff, #fafbfe);
  overflow: hidden;
}

.api-key-card-summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1rem 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.api-key-card-summary::-webkit-details-marker {
  display: none;
}

.api-key-card-summary::after {
  content: "+";
  font-size: 1.15rem;
  color: #82859a;
  margin-left: 0.75rem;
}

.api-key-card-details[open] .api-key-card-summary::after {
  content: "−";
}

.rounded-4{
  border-radius: 1px !important;
}
.alert {
    border-radius: 1px !important;
}
.api-key-card-summary-main {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.api-key-card-title-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.api-key-card-prefix {
  font-size: 0.8rem;
  color: var(--app-muted);
}

.api-key-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.api-key-card-summary-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(64px, 1fr));
  gap: 0.5rem;
}

.api-key-mini-stat {
  display: grid;
  gap: 0.15rem;
  text-align: center;
  padding: 0.55rem 0.6rem;
  border: 1px solid #ececf3;
  border-radius: 1px;
  background: #fff;
}

.api-key-mini-label {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--app-muted);
  font-weight: 700;
}

.api-key-mini-value {
  font-size: 0.98rem;
  font-weight: 700;
  color: #1f2231;
}

.api-key-card-body {
  padding: 0 1rem 1rem;
  border-top: 1px solid #f0f1f6;
}

.api-key-inline-note {
  padding-top: 0.65rem;
  font-size: 0.8rem;
  color: #7a7f91;
}

.module-usage-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  border-radius: 1px;
  border: 1px solid var(--app-border);
  background: #fff;
}

.table-warning-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.table-warning-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: #fff4e8;
  border: 1px solid #ffd9ae;
  color: #8a4b08;
  font-size: 0.76rem;
  line-height: 1.2;
}

.code-example-stack {
  display: grid;
  gap: 1rem;
}

.code-example-card {
  border: 1px solid var(--app-border);
  background: linear-gradient(180deg, #ffffff, #fafbfe);
}

.code-example-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem 0;
}

.empty-state-panel {
  padding: 1.1rem 1rem;
  border: 1px dashed var(--app-border);
  background: linear-gradient(180deg, #ffffff, #fafbfe);
}

.finding-fact-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed #efedf6;
}

.finding-fact-row:last-child {
  border-bottom: 0;
}

.finding-fact-label {
  color: var(--app-muted);
  font-size: 0.78rem;
}

.finding-fact-value {
  color: var(--app-ink);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: right;
}

.request-findings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.finding-card {
  border: 1px solid var(--app-border);
  border-radius: 1px;
  padding: 0.9rem;
  background: linear-gradient(180deg, #ffffff, #fcfcfe);
}

.finding-score {
  font-weight: 700;
  color: var(--app-primary-strong);
  font-size: 0.92rem;
}

.behavioral-visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.75rem;
}

.behavioral-visual-card {
  border: 1px solid rgba(16, 35, 60, 0.1);
  border-radius: 8px;
  padding: 0.75rem;
  background: #fff;
}

.behavioral-visual-title {
  color: var(--app-ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

.behavioral-visual-frame {
  border: 1px solid #edf0f5;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.behavioral-visual-frame svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
}

.behavioral-visual-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.behavioral-visual-meta span {
  border: 1px solid #e7eaf0;
  border-radius: 999px;
  color: var(--app-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
}

.finding-ai-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.finding-ai-highlight {
  border: 1px solid #efedf6;
  border-radius: 10px;
  padding: 0.75rem 0.8rem;
  background: #fff;
}

.finding-ai-highlight-label {
  color: var(--app-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.finding-ai-highlight-value {
  color: var(--app-ink);
  font-size: 0.92rem;
  font-weight: 700;
  margin-top: 0.35rem;
  line-height: 1.25;
}

.json-block {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.76rem;
  color: #17314f;
  background: rgba(16, 35, 60, 0.05);
  border: 1px solid rgba(16, 35, 60, 0.08);
  border-radius: 1px;
  padding: 0.95rem;
  max-height: 360px;
  overflow: auto;
}

.token-panel {
  display: grid;
  gap: 0.9rem;
  background: linear-gradient(135deg, #fff8de, #ffefb4);
  border: 1px solid #f0d983;
  border-radius: 1px;
  padding: 1rem 1.05rem;
  box-shadow: 0 14px 40px rgba(135, 97, 17, 0.12);
}

.token-code-large {
  font-size: 0.9rem;
  padding: 0.85rem 0.95rem;
}

.summary-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.summary-list-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  border-bottom: 1px dashed #efedf6;
  padding-bottom: 0.55rem;
}

.summary-key {
  color: var(--app-muted);
  font-size: 0.8rem;
}

.summary-value {
  color: var(--app-ink);
  font-weight: 600;
  text-align: right;
  font-size: 0.86rem;
}

.finding-facts {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.finding-fact {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.82rem;
}

.finding-fact-key {
  color: var(--app-muted);
}

.finding-fact-value {
  color: var(--app-ink);
  text-align: right;
  font-weight: 500;
}

.request-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.request-summary-stat {
  border: 1px solid var(--app-border);
  border-radius: 10px;
  padding: 1rem 1.05rem;
  background: linear-gradient(180deg, #ffffff, #fbfbfd);
  min-height: 132px;
}

.request-summary-stat-score {
  background: linear-gradient(135deg, #fffdfa, #f6f2ff);
}

.request-summary-stat-core {
  background: linear-gradient(135deg, #fff6f6, #fffaf7);
}

.request-summary-stat-ai {
  background: linear-gradient(135deg, #fffaf0, #fffdf7);
}

.request-summary-stat-processing {
  background: linear-gradient(135deg, #f8fbff, #fafcff);
}

.request-summary-label,
.request-summary-meta-label {
  color: var(--app-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.request-summary-value,
.request-summary-meta-value {
  color: var(--app-ink);
  font-weight: 700;
}

.request-summary-value {
  font-size: 2rem;
  line-height: 1.05;
  margin-top: 0.55rem;
}

.request-summary-footnote {
  color: var(--app-muted);
  font-size: 0.82rem;
  margin-top: 0.55rem;
}

.request-summary-warning-panel {
  border: 1px solid var(--app-border);
  border-radius: 10px;
  padding: 1rem 1.05rem;
  background: linear-gradient(180deg, #ffffff, #fcfcfe);
}

.request-summary-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.request-summary-meta-card {
  border: 1px solid #efedf6;
  border-radius: 10px;
  padding: 0.9rem 0.95rem;
  background: #fff;
}

.request-summary-meta-value {
  margin-top: 0.45rem;
  font-size: 1rem;
  line-height: 1.3;
  word-break: break-word;
}

@media (max-width: 1199px) {
  .request-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .request-summary-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .request-summary-grid,
  .request-summary-meta-grid {
    grid-template-columns: 1fr;
  }

  .request-summary-value {
    font-size: 1.7rem;
  }

  .finding-ai-highlights {
    grid-template-columns: 1fr;
  }
}

.raw-details summary {
  cursor: pointer;
  color: var(--app-primary-strong);
  font-weight: 600;
  font-size: 0.82rem;
}

.token-alert {
  background: linear-gradient(180deg, #fff8dd, #fff2bf);
}

.token-code {
  display: block;
  padding: 0.75rem 0.85rem;
  border-radius: 0.8rem;
  background: rgba(16, 35, 60, 0.06);
  color: #0b2542;
  word-break: break-all;
  font-size: 0.82rem;
}

.list-group-item {
  background: transparent;
}

.ai-settings-hero {
  background:
    radial-gradient(circle at top right, rgba(31, 92, 214, 0.08), transparent 24rem),
    linear-gradient(180deg, #ffffff, #fbfcff);
}

.ai-settings-stat-card {
  height: 100%;
  border: 1px solid var(--app-border);
  background: rgba(255, 255, 255, 0.92);
  padding: 1rem;
  border-radius: 1px;
}

.ai-settings-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--app-muted);
  margin-bottom: 0.55rem;
}

.ai-settings-stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.ai-settings-connection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.connections-shell {
  display: grid;
  gap: 22px;
}

.connections-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--pc-border);
}

.connections-hero .page-subtitle {
  max-width: 760px;
}

.connections-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--pc-border);
  border-bottom: 1px solid var(--pc-border);
}

.connections-stat {
  min-height: 92px;
  padding: 20px 22px;
  border-right: 1px solid var(--pc-border);
}

.connections-stat:last-child {
  border-right: 0;
}

.connections-stat strong {
  display: block;
  color: var(--pc-text);
  font-size: 28px;
  font-weight: 760;
  line-height: 1;
}

.connections-stat span {
  display: block;
  margin-top: 12px;
  color: var(--pc-muted);
  font-size: var(--type-caption);
  font-weight: 760;
  text-transform: uppercase;
}

.connections-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 12px;
}

.connection-card,
.connections-empty {
  border: 1px solid var(--pc-border);
  border-radius: 5px;
  background: var(--pc-surface);
  color: var(--pc-text-soft);
}

.connection-card {
  display: grid;
  min-height: 360px;
  grid-template-rows: auto auto auto 1fr auto auto;
  gap: 16px;
  padding: 16px;
}

.connection-card-top,
.connection-card-actions,
.connection-badges {
  display: flex;
  align-items: center;
  gap: 10px;
}

.connection-card-top {
  justify-content: space-between;
}

.connection-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pc-border);
  border-radius: 5px;
  background: var(--pc-surface-2);
  color: var(--pc-cyan);
}

.connection-icon svg {
  width: 18px;
  height: 18px;
}

.connection-badges {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.connection-type-badge,
.connection-status-badge {
display: inline-flex;
    min-height: 24px;
    align-items: center;
    gap: 6px;
    padding: 3px 7px;
    border-radius: 3px;
    font-size: var(--type-micro);
    font-weight: 500;
}

.connection-type-badge {
  border-color: #333333 !important;
  background: #121212 !important;
  color: #a1a1a1 !important;
  text-transform: uppercase;
}

.connection-status-badge {
  border: 1px solid var(--pc-border);
  background: var(--pc-surface-2);
  color: var(--pc-muted);
}

.connection-status-badge i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.connection-status-badge.is-enabled {
  border-color: rgba(22, 163, 111, 0.45);
  background: rgba(22, 163, 111, 0.13);
  color: #20d698;
}

.connection-status-badge.is-paused {
  color: var(--pc-muted);
}

.connection-card-main h2 {
  margin: 0;
  color: var(--pc-text);
  font-size: 17px;
  font-weight: 400;
}

.connection-card-main p {
  min-height: 44px;
  margin: 10px 0 0;
  color: var(--pc-muted);
  line-height: 1.45;
}

.connection-endpoint {
  padding: 12px;
  border: 1px solid var(--pc-border);
  border-radius: 5px;
  background: var(--pc-sidebar);
}

.connection-endpoint code {
  color: var(--pc-text-soft);
  white-space: normal;
  word-break: break-word;
}

.connection-meta {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px dashed var(--pc-border);
  border-bottom: 1px dashed var(--pc-border);
}

.connection-meta div {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 10px;
}

.connection-meta dt {
  margin: 0;
  color: var(--pc-muted);
  font-size: var(--type-caption);
  font-weight: 500;
}

.connection-meta dd {
  margin: 0;
  color: var(--pc-text-soft);
  font-size: var(--type-small);
  font-weight: 400;
}

.connection-note {
  min-height: 40px;
  color: var(--pc-muted);
  font-size: var(--type-small);
  line-height: 1.45;
}

.connection-domains {
  font-size: var(--type-small);
}

.connection-domains-title {
  margin-bottom: 6px;
  color: var(--pc-text-soft);
  font-weight: 600;
}

.connection-domains ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.connection-domains li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
}

.connection-domain-name {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connection-domain-new {
  padding: 1px 8px;
  border-radius: 999px;
  background: #e8f0ff;
  color: #22559f;
  font-size: var(--type-micro);
  text-transform: uppercase;
}

.connection-domain-count {
  margin-left: auto;
  color: var(--pc-muted);
  font-variant-numeric: tabular-nums;
}

.connection-domains-more {
  color: var(--pc-muted);
}

.connection-card-actions {
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px solid var(--pc-border);
  flex-wrap: wrap;
}

.connection-actions-spacer {
  flex: 1;
}

.connections-empty {
  grid-column: 1 / -1;
  padding: 18px;
}

.signature-tabs {
  display: grid;
  gap: 14px;
}

.signature-tab-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--pc-border);
  border-radius: 5px;
  background: var(--pc-surface);
  overflow: hidden;
}

.signature-tab {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 0;
  border-right: 1px solid var(--pc-border);
  background: transparent;
  color: var(--pc-muted);
  text-align: left;
}

.signature-tab:last-child {
  border-right: 0;
}

.signature-tab span {
  font-size: var(--type-small);
  font-weight: 760;
  text-transform: uppercase;
}

.signature-tab strong {
  color: var(--pc-text);
  font-size: 26px;
  line-height: 1;
}

.signature-tab.is-active {
  background: var(--pc-surface-2);
  color: var(--pc-text);
}

.signature-tab:focus-visible {
  outline: 2px solid var(--pc-cyan);
  outline-offset: -2px;
}

.signature-tab-panel {
  display: block;
}

.signature-tab-panel[hidden] {
  display: none;
}

.ai-settings-connection-tile,
.ai-settings-empty-state,
.ai-settings-guidance,
.ai-settings-provider-card,
.ai-settings-builder-card,
.ai-settings-review-details {
  border: 1px solid var(--app-border);
  background: linear-gradient(180deg, #ffffff, #fbfbfe);
  border-radius: 1px;
}

.ai-settings-connection-tile,
.ai-settings-empty-state,
.ai-settings-guidance,
.ai-settings-provider-card,
.ai-settings-builder-card {
  padding: 1rem;
}

.ai-settings-empty-state {
  grid-column: 1 / -1;
}

.ai-settings-dialog {
  width: min(980px, calc(100vw - 2rem));
  max-height: calc(100vh - 3rem);
  border: 0;
  padding: 0;
  border-radius: 1px;
  box-shadow: 0 20px 60px rgba(15, 30, 52, 0.2);
}

.ai-settings-dialog::backdrop {
  background: rgba(10, 17, 27, 0.42);
}

.ai-settings-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  padding: 1.1rem 1.1rem 0.85rem;
  border-bottom: 1px solid var(--app-border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1;
}

.ai-settings-dialog-body {
  padding: 1rem 1.1rem 1.1rem;
  overflow: auto;
}

.ai-settings-provider-builder {
  border-top: 1px solid var(--app-border);
  padding-top: 1rem;
}

.ai-settings-review-details {
  overflow: hidden;
}

.ai-settings-review-summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  padding: 1rem;
  cursor: pointer;
}

.ai-settings-review-summary::-webkit-details-marker {
  display: none;
}

.ai-settings-review-summary-main {
  min-width: 0;
}

.ai-settings-review-body {
  border-top: 1px solid var(--app-border);
  padding: 1rem;
  background: rgba(252, 252, 255, 0.75);
}

.ai-settings-summary-caret {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--app-primary-strong);
}

.ai-settings-review-details[open] .ai-settings-summary-caret::after {
  content: " \2191";
}

.ai-settings-review-details:not([open]) .ai-settings-summary-caret::after {
  content: " \2193";
}

.ai-settings-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ai-settings-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d8dfeb;
  background: #f8fafc;
  color: #16324f;
  padding: 0.18rem 0.5rem;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 999px;
}

.ai-settings-chip-muted {
  color: var(--app-muted);
}

.ai-settings-module-option {
  display: flex;
  align-items: start;
  gap: 0.65rem;
  width: 100%;
  height: 100%;
  padding: 0.8rem 0.85rem;
  border: 1px solid var(--app-border);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 1px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.ai-settings-module-option:hover {
  border-color: #cfd8e6;
  background: #fbfcff;
  box-shadow: 0 8px 18px rgba(18, 34, 54, 0.04);
}

.ai-settings-module-option:has(input:checked) {
  border-color: #93c5fd;
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
}

.ai-settings-advanced-panel {
  border: 1px dashed #d7deea;
  border-radius: 1px;
  padding: 0.8rem 0.9rem;
  background: rgba(255, 255, 255, 0.76);
}

.ai-settings-advanced-panel summary {
  cursor: pointer;
  list-style: none;
}

.ai-settings-advanced-panel summary::-webkit-details-marker {
  display: none;
}

@media (max-width: 991.98px) {
  .page-header {
    align-items: start;
    flex-direction: column;
  }

  .metric-value {
    font-size: 1.45rem;
  }

  .workspace-shell {
    grid-template-columns: 1fr;
  }

  .workspace-sidebar {
    position: static;
    min-height: auto;
    height: auto;
  }

  .workspace-sidebar-card {
    min-height: auto;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--app-border);
  }

  .workspace-main {
    padding: 1.2rem 0 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .insight-grid,
  .stats-grid-compact {
    grid-template-columns: 1fr;
  }

  .ai-settings-dialog {
    width: calc(100vw - 1rem);
    max-height: calc(100vh - 1rem);
  }

  .ai-settings-dialog-header {
    flex-direction: column;
  }

  .ai-settings-review-summary {
    flex-direction: column;
  }
}

.auth-body {
  background:
    radial-gradient(circle at 50% 0%, rgba(14, 104, 255, 0.12), transparent 30rem),
    linear-gradient(180deg, #fbfdff 0%, #f3f7fc 100%);
}

.auth-body .app-container {
  max-width: none;
  width: 100%;
}

.auth-shell {
  min-height: calc(100vh - 4rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-form-panel {
  display: flex;
  justify-content: center;
  width: 100%;
}

.auth-card {
  width: 100%;
  max-width: 540px;
  overflow: hidden;
  border: 1px solid rgba(180, 198, 224, 0.55);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 30px 80px rgba(13, 35, 72, 0.18);
}

.auth-card-body {
  padding: clamp(1.45rem, 3vw, 2.35rem);
}

.auth-copy-block {
  margin-bottom: 1.5rem;
}

.auth-heading {
  color: #06152f;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 0.6rem;
}

.auth-subheading {
  color: #60708b;
  margin-bottom: 0;
}

.auth-form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form-stack .form-label {
  color: #fff;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}

.auth-input {
  min-height: 3.2rem;
  border-radius: 0.75rem;
  border-color: #d6e1ee;
  background: #fbfdff;
  padding-left: 0.95rem;
  padding-right: 0.95rem;
  box-shadow: inset 0 1px 0 rgba(13, 35, 72, 0.03);
}

.auth-input:focus {
  border-color: #0e68ff;
  box-shadow: 0 0 0 0.2rem rgba(14, 104, 255, 0.12);
}

.auth-submit {
  min-height: 3.25rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0b55d8, #0c7eff);
  box-shadow: 0 14px 32px rgba(14, 104, 255, 0.24);
  font-weight: 700;
}

.auth-submit:hover,
.auth-submit:focus {
  background: linear-gradient(135deg, #0a4ec7, #0b73ea);
}

.auth-footer-copy,
.auth-hint {
  color: #60708b;
  font-size: 0.92rem;
}

.auth-hint {
  margin-top: 0.45rem;
}

.auth-link-inline,
.auth-link,
.tiny-link {
  color: #0b63df;
  font-weight: 700;
  text-decoration: none;
}

.auth-link-inline:hover,
.auth-link:hover,
.tiny-link:hover {
  color: #094eb0;
  text-decoration: underline;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 991.98px) {
  .auth-body {
    background:
      radial-gradient(circle at 50% 0%, rgba(14, 104, 255, 0.12), transparent 24rem),
      linear-gradient(180deg, #fbfdff 0%, #f3f7fc 100%);
  }

  .auth-shell {
    min-height: calc(100vh - 2rem);
    padding: 1.25rem 0 2rem;
  }
}

/* ==== Client report: decision queue, funnel, scorecard, grouped concerns ==== */

.report-section-heading {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 1.1rem 0 0.65rem 0.15rem;
}

.quality-value {
  color: #0f766e;
}

.metric-card-decision {
  border-color: #f3d9a4;
  background: linear-gradient(180deg, #fffdf7, #fdf6e5);
}

.metric-card-decision .metric-value {
  color: #92600a;
}

.metric-card-clear .metric-value {
  color: #0f766e;
}

.decision-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.decision-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--app-border);
  border-radius: 1px;
  padding: 0.95rem 1.05rem;
  box-shadow: 0 8px 24px rgba(22, 38, 63, 0.035);
}

.decision-chip {
  flex-shrink: 0;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.92rem;
}

.decision-chip-danger {
  background: #fdecec;
  color: #b42323;
}

.decision-chip-warning {
  background: #fdf3dd;
  color: #92600a;
}

.decision-body {
  flex: 1;
  min-width: 0;
}

.decision-title {
  font-weight: 600;
  font-size: 0.98rem;
}

.decision-sub {
  color: var(--app-muted);
  font-size: 0.86rem;
  margin-top: 0.15rem;
}

.decision-source-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: #202020;
  padding: 0.1rem 0.4rem;
  border-radius: 1px;
}

.decision-actions {
  flex-shrink: 0;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.decision-preview summary {
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--app-primary-strong);
  margin-top: 0.45rem;
  list-style: none;
}

.decision-preview summary::before {
  content: "▸ ";
}

.decision-preview[open] summary::before {
  content: "▾ ";
}

.report-empty-state {
  text-align: center;
  padding: 2.25rem 1rem;
  margin-bottom: 1rem;
}

.report-empty-check {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: #e5f5f0;
  color: #0f766e;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.report-empty-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.report-empty-sub {
  color: var(--app-muted);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

.concern-group-list {
  display: flex;
  flex-direction: column;
}

.concern-group {
  border-top: 1px solid var(--app-border);
  padding: 0.6rem 0.15rem;
}

.concern-group:first-child {
  border-top: 0;
}

.concern-group summary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  list-style: none;
}

.concern-group summary::-webkit-details-marker {
  display: none;
}

.concern-group-label {
  font-weight: 600;
  font-size: 0.92rem;
}

.concern-group-followup {
  color: var(--app-muted);
  font-size: 0.82rem;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.concern-group-caret {
  margin-left: auto;
  color: var(--app-muted);
  font-size: 0.8rem;
}

.concern-group[open] .concern-group-caret {
  transform: rotate(180deg);
}

.count-pill {
  flex-shrink: 0;
  min-width: 2.4rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.14rem 0.55rem;
  border-radius: 999px;
}

.count-pill-danger {
  background: #fdecec;
  color: #b42323;
}

.scorecard-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.scorecard-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.scorecard-numbers {
  display: inline-flex;
  gap: 0.6rem;
  align-items: baseline;
}

.scorecard-bar {
  display: flex;
  height: 0.6rem;
  border-radius: 1px;
  background: #e7f3ee;
  overflow: hidden;
  margin-top: 0.3rem;
}

.scorecard-seg {
  display: block;
  height: 100%;
}

.scorecard-seg-blocked {
  background: #d64545;
}

.scorecard-seg-flagged {
  background: #eba63f;
}

.scorecard-detail {
  margin-top: 0.25rem;
}

.funnel-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.funnel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.funnel-track {
  height: 0.85rem;
  border-radius: 1px;
  background: #f2f2f7;
  overflow: hidden;
}

.funnel-fill {
  display: block;
  height: 100%;
  border-radius: 1px;
}

.funnel-fill-screened {
  background: #b9a7f4;
}

.funnel-fill-blocked {
  background: #d64545;
}

.funnel-fill-late {
  background: #e07b39;
}

.funnel-fill-flagged {
  background: #eba63f;
}

.funnel-fill-cleared {
  background: #a9b3c4;
}

.funnel-fill-clean {
  background: #2f9e77;
}

.handled-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  background: #f4faf7;
  border: 1px solid #d9ede4;
  border-radius: 1px;
  padding: 0.8rem 1.05rem;
  margin-bottom: 1rem;
}

.handled-strip-icon {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #e5f5f0;
  color: #0f766e;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.handled-strip-text {
  flex: 1;
  min-width: 240px;
  font-size: 0.88rem;
  color: #2f5d4e;
}

.handled-strip-actions {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

@media (max-width: 767.98px) {
  .decision-card {
    flex-wrap: wrap;
  }

  .decision-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* Paperclip console visual system, adapted from Custos. */
:root {
  color-scheme: dark;
  --pc-bg: #080909;
  --pc-sidebar: #0b0c0c;
  --pc-surface: #101111;
  --pc-surface-2: #151616;
  --pc-surface-3: #1b1c1c;
  --pc-hover: #202222;
  --pc-border: #292b2b;
  --pc-border-strong: #383b3b;
  --pc-text: #f4f5f4;
  --pc-text-soft: #c2c5c3;
  --pc-muted: #7e8380;
  --pc-faint: #555a57;
  --pc-cyan: #1fc7d4;
  --pc-green: #19c989;
  --pc-blue: #4c8dff;
  --pc-violet: #9b7bff;
  --pc-amber: #f3b91f;
  --pc-orange: #ff7a2f;
  --pc-red: #ff4d5f;
  --pc-control: #171919;
  --pc-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
  --app-bg: var(--pc-bg);
  --app-surface: var(--pc-surface);
  --app-border: var(--pc-border);
  --app-ink: var(--pc-text);
  --app-muted: var(--pc-muted);
  --app-primary: var(--pc-cyan);
  --app-primary-strong: var(--pc-blue);
  --app-accent: var(--pc-surface-2);
  --app-sidebar: var(--pc-sidebar);
}

html {
  background: var(--pc-bg);
}

body.app-body {
  min-height: 100vh;
  background: var(--pc-bg);
  color: var(--pc-text);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
}

body.console-body {
  overflow-x: clip;
}

body.console-body .console-main {
  width: 100%;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  max-width: none;
}

a {
  color: var(--pc-text);
  text-decoration-color: var(--pc-border-strong);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--pc-cyan);
  text-decoration-color: currentColor;
}

code,
pre,
.json-block,
.token-code,
.token-code-large {
  border: 1px solid var(--pc-border);
  border-radius: 4px;
  background: var(--pc-surface-2);
  color: var(--pc-text-soft);
}

.workspace-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--pc-bg);
}

.workspace-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  width: 248px;
  min-height: 100vh;
  height: 100vh;
  background: var(--pc-sidebar);
  border-right: 1px solid var(--pc-border);
}

.workspace-sidebar-card,
.admin-sidebar-card {
  display: flex;
  min-height: 100vh;
  height: 100%;
  padding: 0;
  flex-direction: column;
  background: var(--pc-sidebar);
  color: var(--pc-text);
  border-right: 0;
}

.workspace-brand {
  display: flex;
  min-height: 56px;
  padding: 0 14px;
  align-items: center;
  color: var(--pc-text);
  text-decoration: none;
}

.workspace-brand img {
  display: block;
  width: 142px;
  max-height: 38px;
  object-fit: contain;
}

.workspace-sidebar-top {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 15px;
  overflow-y: auto;
  padding-bottom: 14px;
}

.workspace-profile {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 8px 12px 2px;
}

.workspace-avatar {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--pc-surface-3);
  color: var(--pc-text);
  font-size: var(--type-caption);
  font-weight: 800;
}

.workspace-user-name,
.workspace-user-email,
.workspace-client-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-user-name {
  color: var(--pc-text);
  font-size: var(--type-caption);
  font-weight: 700;
  line-height: 1.2;
}

.workspace-user-email,
.workspace-client-name {
  margin-top: 2px;
  color: var(--pc-muted);
  font-size: var(--type-micro);
  line-height: 1.2;
}

.workspace-nav-group {
  display: grid;
  gap: 4px;
  padding: 0 9px;
}

.workspace-section-label {
  display: flex;
  padding: 3px 10px 6px;
  color: var(--pc-faint);
  font-size: var(--type-micro);
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.workspace-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.workspace-nav-link {
  display: flex;
  min-height: 35px;
  padding: 7px 10px;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--pc-text-soft);
  font-size: 13px;
  font-weight: 560;
  text-decoration: none;
  transition: none;
}

.workspace-nav-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--pc-text-faint);
  stroke-width: 1.9;
}

.workspace-nav-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-nav-lock {
  display: inline-flex;
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--pc-text-faint);
}

.workspace-nav-lock .workspace-nav-icon {
  width: 13px;
  height: 13px;
}

.workspace-nav-link:hover {
  background: var(--pc-hover);
  color: var(--pc-text);
}

.workspace-nav-link:hover .workspace-nav-icon {
  color: var(--pc-text-soft);
}

.workspace-nav-link.active {
  border-color: var(--pc-border);
  background: var(--pc-surface-3);
  box-shadow: none;
  color: var(--pc-text);
}

.workspace-nav-link.active .workspace-nav-icon {
  color: var(--pc-cyan);
}

.workspace-nav-parent.active {
  border-color: transparent;
  background: transparent;
}

.workspace-nav-parent.active span {
  /* padding: 4px 8px;
  border: 1px solid var(--pc-border);
  border-radius: 5px;
  background: var(--pc-surface-3); */
  color: var(--pc-text);
}

.workspace-sidebar-bottom {
  margin-top: auto;
  padding: 10px 9px 12px;
  border-top: 1px solid var(--pc-border);
}

.workspace-account-actions {
  display: grid;
  gap: 3px;
  margin-top: 10px;
}

.workspace-account-actions form {
  margin: 0;
}

.workspace-action-link {
  width: 100%;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.workspace-main,
.admin-workspace-main {
  min-width: 0;
  grid-column: 2;
  min-height: 100vh;
  padding: 0;
  background: var(--pc-bg);
}

.console-toolbar {
  position: sticky;
  top: 0;
  z-index: 70;
  display: flex;
  height: 48px;
  padding: 0 24px;
  align-items: center;
  gap: 12px;
  background: color-mix(in srgb, var(--pc-bg) 94%, transparent);
  border-bottom: 1px solid var(--pc-border);
  backdrop-filter: blur(14px);
}

.app-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--pc-muted);
  font-size: var(--type-caption);
}

.app-breadcrumb b {
  color: var(--pc-faint);
  font-weight: 400;
}

.app-breadcrumb strong {
  color: var(--pc-text-soft);
  font-size: var(--type-caption);
  font-weight: 700;
  text-transform: uppercase;
}

.app-toolbar-spacer {
  flex: 1;
}

.toolbar-action-form {
  margin: 0;
}

.toolbar-action-link,
.toolbar-action-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  font-size: var(--type-small);
  font-weight: 760;
}

.toolbar-action-link .workspace-nav-icon,
.toolbar-action-button .workspace-nav-icon {
  width: 15px;
  height: 15px;
  margin: 0;
  color: currentColor;
}

.page-shell,
.narrow-shell {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 28px 32px 72px;
  gap: 18px;
  color: var(--pc-text);
}

.page-header {
  display: flex;
  min-height: 44px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--pc-border);
}

.eyebrow,
.metric-label,
.review-stat-label,
.workspace-table thead th,
.module-policy-table th,
.request-summary-label,
.request-summary-meta-label,
.ai-settings-stat-label,
.insight-label,
.public-report-eyebrow {
  color: var(--pc-muted);
  font-size: var(--type-micro);
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.page-title,
.workspace-title,
.public-report-title {
  margin: 0;
  color: var(--pc-text);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}

.page-subtitle,
.panel-subtitle,
.metric-footnote,
.workspace-slug,
.text-muted,
.text-secondary,
.small,
.summary-key,
.decision-sub,
.report-empty-sub {
  color: var(--pc-muted) !important;
}

.panel-card,
.account-card,
.metric-card,
.stats-pill,
.insight-tile,
.finding-feed-item,
.api-key-card-details,
.module-usage-item,
.code-example-card,
.empty-state-panel,
.finding-card,
.behavioral-visual-card,
.finding-ai-highlight,
.request-summary-stat,
.request-summary-warning-panel,
.request-summary-meta-card,
.ai-settings-stat-card,
.ai-settings-connection-tile,
.ai-settings-empty-state,
.ai-settings-guidance,
.ai-settings-provider-card,
.ai-settings-builder-card,
.ai-settings-review-details,
.decision-card,
.public-report-pill,
.public-report-hero,
.report-run-hero,
.report-run-meta-item,
.report-run-step,
.policy-builder,
.api-key-policy-panel,
.api-key-policy-default-note,
.policy-note {
  border: 1px solid var(--pc-border);
  border-radius: 5px;
  background: var(--pc-surface);
  box-shadow: none;
  color: var(--pc-text-soft);
}

.panel-card {
  padding: 16px;
}

.trustx-page {
  --trustx-ink: #071a34;
  --trustx-muted: #607089;
  --trustx-border: #deebf5;
  --trustx-blue: #2f74f6;
  --trustx-soft-blue: #f2f8fc;
  --trustx-mint: #34d6bd;
  width: 100%;
  min-height: calc(100vh - 48px);
  background: #f8fbfd;
  color: var(--trustx-ink);
}

.trustx-inner {
  width: min(100%, 1140px);
  margin: 0 auto;
  padding: 0 32px;
}

.trustx-hero {
  min-height: 430px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--trustx-border);
  background-color: #f7fbfe;
  background-image:
    linear-gradient(rgba(219, 231, 241, 0.62) 1px, transparent 1px),
    linear-gradient(90deg, rgba(219, 231, 241, 0.62) 1px, transparent 1px);
  background-size: 54px 54px;
}

.trustx-hero h1,
.trustx-section h2,
.trustx-active-hero h1 {
  letter-spacing: 0;
}

.trustx-hero h1 {
  max-width: 900px;
  margin: 0 0 24px;
  color: var(--trustx-ink);
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 760;
  line-height: 0.94;
}

.trustx-hero h1 span {
  text-decoration: underline;
  text-decoration-color: var(--trustx-blue);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.trustx-hero p,
.trustx-copy p,
.trustx-benefit-card p,
.trustx-activation p,
.trustx-active-hero p,
.trustx-active-card p {
  color: var(--trustx-muted);
  font-size: 16px;
  line-height: 1.7;
}

.trustx-hero p {
  max-width: 620px;
  margin: 0;
}

.trustx-hero strong,
.trustx-copy strong {
  color: var(--trustx-ink);
}

.trustx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.trustx-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.trustx-button-primary {
  border-color: var(--trustx-blue);
  background: var(--trustx-blue);
  box-shadow: 0 18px 38px rgba(47, 116, 246, 0.24);
  color: #fff;
}

.trustx-button-primary:hover {
  background: #155ce5;
  border-color: #155ce5;
  color: #fff;
}

.trustx-button-secondary {
  border-color: var(--trustx-border);
  background: #fff;
  color: var(--trustx-ink);
}

.trustx-button-secondary:hover {
  border-color: #bfd4e7;
  background: #f9fcff;
  color: var(--trustx-ink);
}

.trustx-button-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.4;
}

.trustx-section {
  padding: 96px 0;
}

.trustx-section-white {
  background: #fff;
}

.trustx-section-blue {
  border-top: 1px solid var(--trustx-border);
  background: var(--trustx-soft-blue);
}

.trustx-copy {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.trustx-copy h2,
.trustx-section-blue h2 {
  margin: 0 0 24px;
  color: var(--trustx-ink);
  font-size: clamp(30px, 3.3vw, 42px);
  font-weight: 760;
  line-height: 1.04;
}

.trustx-copy p {
  margin: 0 0 18px;
}

.trustx-copy code {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--trustx-ink);
  font-size: 0.92em;
  font-weight: 760;
}

.trustx-pill,
.trustx-activation-label {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 0 16px;
  border: 1px solid var(--trustx-border);
  border-radius: 999px;
  background: #fff;
  color: var(--trustx-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.trustx-pill span,
.trustx-activation-label span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--trustx-mint);
}

.trustx-section-blue h2 {
  max-width: 640px;
}

.trustx-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.trustx-benefit-card {
  min-height: 178px;
  padding: 26px;
  border: 1px solid var(--trustx-border);
  border-radius: 8px;
  background: #fff;
}

.trustx-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.trustx-card-icon,
.trustx-status-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e5f1ff;
  color: var(--trustx-blue);
}

.trustx-card-icon-svg {
  width: 18px;
  height: 18px;
}

.trustx-card-number {
  color: #8798ad;
  font-size: 12px;
  font-weight: 800;
}

.trustx-benefit-card h3 {
  margin: 0 0 10px;
  color: var(--trustx-ink);
  font-size: 18px;
  font-weight: 780;
}

.trustx-benefit-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.trustx-activation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-top: 92px;
  padding: 46px 52px;
  border-radius: 8px;
  background: var(--trustx-ink);
  color: #fff;
}

.trustx-activation-label {
  margin-bottom: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--trustx-mint);
}

.trustx-activation h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 760;
  line-height: 1.1;
}

.trustx-activation p {
  max-width: 620px;
  margin: 0;
  color: #b9c7d8;
}

.trustx-page-active {
  --trustx-ink: var(--pc-text);
  --trustx-muted: var(--pc-text-soft);
  --trustx-border: var(--pc-border);
  --trustx-blue: var(--pc-blue);
  --trustx-soft-blue: var(--pc-surface);
  --trustx-mint: var(--pc-green);
  padding: 34px;
  background: var(--pc-bg);
  color: var(--pc-text);
}

.trustx-active-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: stretch;
  min-height: 340px;
  padding: 48px;
  border: 1px solid var(--pc-border);
  border-radius: 8px;
  background:
    linear-gradient(color-mix(in srgb, var(--pc-border) 72%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--pc-border) 72%, transparent) 1px, transparent 1px),
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--pc-blue) 12%, transparent), transparent 42%),
    var(--pc-surface);
  background-size: 54px 54px;
}

.trustx-active-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.trustx-pill-dark {
  width: fit-content;
  border-color: var(--pc-border-strong);
  background: var(--pc-surface-2);
  color: var(--pc-text-soft);
}

.trustx-active-hero h1 {
  max-width: 800px;
  margin: 0 0 20px;
  color: var(--pc-text);
  font-size: clamp(38px, 4.4vw, 62px);
  font-weight: 760;
  line-height: 0.98;
}

.trustx-active-hero p {
  max-width: 700px;
  margin: 0;
  color: var(--pc-text-soft);
}

.trustx-status-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 244px;
  padding: 28px;
  border: 1px solid var(--pc-border-strong);
  border-radius: 8px;
  background: color-mix(in srgb, var(--pc-surface-2) 88%, var(--pc-blue));
}

.trustx-page-active .trustx-status-icon,
.trustx-page-active .trustx-card-icon {
  background: color-mix(in srgb, var(--pc-blue) 16%, var(--pc-surface-3));
  color: var(--pc-blue);
}

.trustx-status-panel span,
.trustx-active-card span {
  color: var(--pc-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.trustx-status-panel strong {
  display: block;
  margin-top: 8px;
  color: var(--pc-text);
  font-size: 36px;
  line-height: 1;
}

.trustx-active-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.trustx-active-card {
  min-height: 168px;
  padding: 24px;
  border: 1px solid var(--pc-border);
  border-radius: 8px;
  background: var(--pc-surface);
}

.trustx-active-card strong {
  display: block;
  margin: 14px 0 10px;
  color: var(--pc-text);
  font-size: 26px;
  line-height: 1.1;
}

.trustx-active-card p {
  margin: 0;
  color: var(--pc-text-soft);
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 991px) {
  .trustx-inner {
    padding: 0 22px;
  }

  .trustx-hero {
    min-height: 380px;
  }

  .trustx-card-grid,
  .trustx-active-grid {
    grid-template-columns: 1fr;
  }

  .trustx-activation,
  .trustx-active-hero {
    grid-template-columns: 1fr;
  }

  .trustx-status-panel {
    min-height: 180px;
  }
}

@media (max-width: 575px) {
  .trustx-hero {
    min-height: 440px;
  }

  .trustx-section {
    padding: 66px 0;
  }

  .trustx-actions,
  .trustx-button {
    width: 100%;
  }

  .trustx-activation,
  .trustx-active-hero {
    padding: 28px 22px;
  }

  .trustx-page-active {
    padding: 18px;
  }
}

.panel-grid {
  display: grid;
  gap: 14px;
}

.panel-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.action-card {
  display: block;
  min-height: 148px;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.action-card:hover {
  border-color: var(--pc-border-strong);
  background: var(--pc-surface-2);
}

.client-admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px;
  border: 1px solid var(--pc-border);
  border-radius: 5px;
  background: var(--pc-surface);
}

.client-admin-tab {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--pc-muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.client-admin-tab:hover {
  border-color: var(--pc-border);
  background: var(--pc-surface-2);
  color: var(--pc-text);
}

.client-admin-tab.active {
  border-color: var(--pc-border-strong);
  background: var(--pc-surface-2);
  color: var(--pc-text);
}

.console-body .bg-light,
.console-body .bg-light-subtle,
.console-body .border.rounded-3.bg-light-subtle,
.console-body .border.rounded-3,
.console-body .form-control.bg-light {
  border-color: var(--pc-border) !important;
  background: var(--pc-surface-2) !important;
  color: var(--pc-text-soft) !important;
}

.console-body .text-bg-light {
  border-color: var(--pc-border) !important;
  background: var(--pc-surface-3) !important;
  color: var(--pc-text-soft) !important;
}

.ai-settings-dialog .border.rounded-3 {
  border-color: var(--pc-border) !important;
  background: var(--pc-surface-2) !important;
  color: var(--pc-text-soft) !important;
}

.module-signal-card {
  border-color: var(--pc-border);
  border-radius: 5px;
  background: var(--pc-surface-2);
  color: var(--pc-text-soft);
}

.module-signal-card .form-label,
.module-signal-card label {
  color: var(--pc-text-soft);
}

.module-score-hint {
  color: var(--pc-muted);
}

.module-score-hint strong {
  color: var(--pc-text-soft);
}

.policy-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.console-body .policy-builder:not(.card) {
  padding: 14px;
}

.rule-manager-panel {
  display: grid;
  gap: 16px;
}

.rule-manager-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--pc-border);
}

.rule-manager-count {
  display: grid;
  min-width: 108px;
  min-height: 78px;
  place-items: center;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--pc-cyan) 26%, var(--pc-border));
  border-radius: 7px;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--pc-cyan) 12%, transparent), transparent 42%),
    var(--pc-surface-2);
}

.rule-manager-count strong,
.rule-manager-count span {
  display: block;
  line-height: 1;
}

.rule-manager-count strong {
  color: var(--pc-text);
  font-size: 30px;
  font-weight: 880;
}

.rule-manager-count span {
  margin-top: 6px;
  color: var(--pc-muted);
  font-size: var(--type-tiny);
  font-weight: 820;
  text-transform: uppercase;
}

.rule-command-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.rule-command-input {
  min-width: 0;
}

.rule-command-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.rule-command-grid-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}

.rule-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.rule-card {
  display: flex;
  min-width: 0;
  min-height: 94px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--pc-border);
  border-left: 2px solid color-mix(in srgb, var(--pc-cyan) 42%, var(--pc-border));
  border-radius: 7px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--pc-cyan) 4%, transparent), transparent 40%),
    rgba(255, 255, 255, 0.018);
}

.rule-card-location {
  border-left-color: color-mix(in srgb, var(--pc-green) 34%, var(--pc-border));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--pc-green) 3.5%, transparent), transparent 40%),
    rgba(255, 255, 255, 0.018);
}

.rule-card-bypass {
  border-left-color: color-mix(in srgb, var(--pc-violet) 34%, var(--pc-border));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--pc-violet) 4%, transparent), transparent 40%),
    rgba(255, 255, 255, 0.018);
}

.rule-card div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.rule-card span {
  color: var(--pc-muted);
  font-size: var(--type-tiny);
  font-weight: 820;
  text-transform: uppercase;
}

.rule-card strong {
  color: var(--pc-text);
  font-size: 15px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.rule-card em {
  color: var(--pc-text-muted);
  font-size: var(--type-small);
  font-style: normal;
  overflow-wrap: anywhere;
}

.rule-remove-button {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid var(--pc-border);
  border-radius: 5px;
  background: var(--pc-control);
  color: var(--pc-text-soft);
  font-size: var(--type-caption);
  font-weight: 760;
}

.rule-remove-button:hover {
  border-color: color-mix(in srgb, var(--pc-red) 40%, var(--pc-border));
  color: var(--pc-text);
}

.rule-empty-state {
  padding: 18px;
  border: 1px dashed var(--pc-border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.016);
  color: var(--pc-muted);
  font-size: 13px;
}

.rule-empty-state[hidden] {
  display: none;
}

.rule-raw-editor {
  background: rgba(255, 255, 255, 0.016);
}

.rule-raw-editor textarea {
  min-height: 240px;
  border: 0;
  border-radius: 0;
  background: #070808;
}

.integration-page {
  display: grid;
  gap: 18px;
}

.integration-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 18px;
  align-items: center;
}

.integration-key-form {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--pc-border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.022);
}

.integration-token-note {
  color: var(--pc-text-muted);
  font-size: var(--type-small);
  line-height: 1.4;
}

.integration-fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.integration-fact-card,
.integration-lookup-grid > div {
  padding: 15px;
  border: 1px solid var(--pc-border);
  border-radius: 7px;
  background:
    radial-gradient(circle at 100% 0, rgba(76, 141, 255, 0.055), transparent 40%),
    var(--pc-surface);
}

.integration-fact-card span,
.integration-lookup-grid span {
  display: block;
  color: var(--pc-muted);
  font-size: var(--type-tiny);
  font-weight: 820;
  text-transform: uppercase;
}

.integration-fact-card strong,
.integration-lookup-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--pc-text);
  font-size: 15px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.integration-fact-card p {
  margin: 10px 0 0;
  color: var(--pc-text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.integration-code-panel {
  display: grid;
  gap: 16px;
}

.integration-mode-grid,
.integration-snippet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.integration-mode-card {
  display: block;
  padding: 15px;
  border: 1px solid var(--pc-border);
  border-radius: 7px;
  background: var(--pc-surface);
  color: inherit;
  text-decoration: none;
}

.integration-mode-card:hover,
.integration-mode-card.active {
  border-color: color-mix(in srgb, var(--pc-cyan) 46%, var(--pc-border));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--pc-cyan) 10%, transparent), transparent 48%),
    var(--pc-surface-2);
}

.integration-mode-card h4,
.integration-mode-card p {
  margin: 0;
}

.integration-mode-card h4 {
  margin-top: 8px;
  color: var(--pc-text);
  font-size: 16px;
  font-weight: 850;
}

.integration-mode-card p {
  margin-top: 9px;
  color: var(--pc-text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.integration-step-list {
  display: grid;
  gap: 14px;
}

.integration-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--pc-border);
  border-radius: 7px;
  background: var(--pc-surface);
}

.integration-step > span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--pc-cyan) 42%, var(--pc-border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--pc-cyan) 12%, var(--pc-control));
  color: var(--pc-text);
  font-size: 13px;
  font-weight: 850;
}

.integration-step h4,
.integration-step p {
  margin: 0;
}

.integration-step h4 {
  color: var(--pc-text);
  font-size: 16px;
  font-weight: 850;
}

.integration-step p {
  margin-top: 8px;
  color: var(--pc-text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.integration-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.integration-step .integration-code-card {
  margin-top: 12px;
}

.integration-step .integration-code-card .json-block {
  padding-top: 44px;
}

.integration-tab-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.integration-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 62px;
  padding: 10px;
  border: 1px solid var(--pc-border);
  border-radius: 7px;
  background: var(--pc-control);
  color: var(--pc-text-soft);
  text-align: left;
}

.integration-tab:hover,
.integration-tab.active {
  border-color: color-mix(in srgb, var(--pc-cyan) 42%, var(--pc-border));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--pc-cyan) 8%, transparent), transparent 44%),
    var(--pc-surface-2);
  color: var(--pc-text);
}

.integration-tab span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.integration-tab strong,
.integration-tab em {
  display: block;
  min-width: 0;
}

.integration-tab strong {
  color: inherit;
  font-size: 13px;
  font-weight: 850;
}

.integration-tab em {
  color: var(--pc-muted);
  font-size: var(--type-caption);
  font-style: normal;
}

.integration-logo {
  display: inline-grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--pc-border);
  border-radius: 7px;
  background: var(--pc-surface);
  color: var(--pc-text-soft);
}

.integration-logo svg {
  width: 22px;
  height: 22px;
}

.integration-logo-javascript {
  color: #f3d33b;
}

.integration-logo-python {
  color: #6eb4ff;
}

.integration-logo-ruby {
  color: #ff6671;
}

.integration-logo-php {
  color: #9b8cff;
}

.integration-logo-terminal {
  color: var(--pc-green);
}

.integration-code-stage {
  min-width: 0;
}

.integration-code-card {
  border: 1px solid var(--pc-border);
  border-radius: 7px;
  background: var(--pc-surface);
  overflow: hidden;
}

.integration-code-card[hidden] {
  display: none;
}

.integration-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--pc-border);
  background: rgba(255, 255, 255, 0.022);
}

.integration-code-title {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.integration-code-head h4,
.integration-code-head p {
  margin: 0;
}

.integration-code-head h4 {
  color: var(--pc-text);
  font-size: 16px;
  font-weight: 850;
}

.integration-code-head p {
  color: var(--pc-muted);
  font-size: var(--type-small);
}

.integration-code-card .json-block {
  max-height: 520px;
  margin: 0;
  border: 0;
  border-radius: 0;
}

.integration-copy-button {
  min-width: 76px;
  border-color: var(--pc-border);
  color: var(--pc-text-soft);
  background: var(--pc-control);
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
}

.integration-copy-button:hover,
.integration-copy-button.copied {
  border-color: color-mix(in srgb, var(--pc-green) 48%, var(--pc-border));
  color: var(--pc-text);
  background: color-mix(in srgb, var(--pc-green) 16%, var(--pc-control));
}

.integration-lookup-grid {
  display: grid;
  grid-template-columns: 0.5fr 1.5fr 1fr;
  gap: 10px;
}

.keys-page {
  display: grid;
  gap: 18px;
}

.keys-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.34fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.key-create-panel {
  position: sticky;
  top: 18px;
}

.origin-manager-panel {
  padding: 14px;
  border: 1px solid var(--pc-border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.018);
}

.empty-panel {
  padding: 22px;
  border: 1px dashed var(--pc-border);
  border-radius: 7px;
  color: var(--pc-muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.018);
}

.workspace-nav-details {
  display: grid;
  gap: 6px;
}

.workspace-nav-details > summary {
  list-style: none;
  cursor: pointer;
}

.workspace-nav-details > summary::-webkit-details-marker {
  display: none;
}

.workspace-nav-details > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.68;
}

.workspace-nav-details[open] > summary::after {
  transform: rotate(225deg);
}

.workspace-subnav {
  display: grid;
  gap: 5px;
  padding-left: 14px;
  border-left: 1px solid var(--pc-border);
  margin-left: 14px;
}

.workspace-subnav .workspace-nav-link {
  min-height: 36px;
  padding: 8px 10px;
  font-size: var(--type-small);
}

.workspace-subnav .workspace-nav-icon {
  width: 16px;
  height: 16px;
}

.policy-summary-card,
.policy-preset-bar,
.policy-module-group,
.policy-module-card,
.policy-empty-advanced {
  border: 1px solid var(--pc-border);
  border-radius: 5px;
  background: var(--pc-surface);
  color: var(--pc-text-soft);
}

.policy-summary-card {
  padding: 12px 14px;
}

.policy-summary-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--pc-muted);
  font-size: var(--type-caption);
  font-weight: 700;
  text-transform: uppercase;
}

.policy-summary-card strong {
  color: var(--pc-text);
  font-size: 24px;
  line-height: 1;
}

.policy-preset-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  background: var(--pc-surface-2);
}

.policy-preset-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.policy-order-panel {
  padding: 14px;
  background: var(--pc-surface-2);
}

.policy-order-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.policy-order-warning {
  margin-bottom: 10px;
  padding: 8px 10px;
  border-left: 2px solid var(--pc-red);
  background: rgba(255, 121, 133, 0.08);
  font-size: var(--type-micro);
}

.policy-order-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.policy-order-item {
  display: grid;
  grid-template-columns: 28px 44px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid var(--pc-border);
  background: var(--pc-surface);
}

.policy-order-item[hidden] {
  display: none;
}

.policy-order-position {
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: #8a8a8a;
  font-size: var(--type-micro);
}

.policy-order-code {
  color: #8a8a8a;
  font-size: var(--type-micro);
}

.policy-order-cost {
  padding: 1px 7px;
  border: 1px solid var(--pc-border);
  font-size: var(--type-minimum);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.policy-order-cost-local {
  color: #46dd91;
}

.policy-order-cost-redis {
  color: #6cc7e8;
}

.policy-order-cost-db {
  color: #d7b45a;
}

/* The expensive tier — the one that starves everything behind it. */
.policy-order-cost-vendor {
  color: #ff7985;
}

.policy-order-controls {
  display: flex;
  gap: 4px;
}

.latency-glossary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.latency-glossary-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: var(--type-minimum);
}

.latency-glossary-item p {
  margin: 0;
  color: #9a9a9a;
  font-size: var(--type-micro);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .latency-glossary {
    grid-template-columns: 1fr;
  }
}

.policy-module-groups {
  display: grid;
  gap: 12px;
}

.policy-module-group {
  overflow: hidden;
}

.policy-module-group > summary,
.policy-module-card > summary {
  display: grid;
  list-style: none;
  cursor: pointer;
}

.policy-module-group > summary::-webkit-details-marker,
.policy-module-card > summary::-webkit-details-marker {
  display: none;
}

.policy-module-group > summary {
  padding: 14px 16px;
  background: var(--pc-surface-2);
}

.policy-module-group > summary span {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.policy-module-group > summary strong {
  color: var(--pc-text);
}

.policy-module-group > summary small {
  color: var(--pc-muted);
}

.policy-module-stack {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.policy-module-card {
  overflow: hidden;
  background: var(--pc-sidebar);
}

.policy-module-card > summary {
  grid-template-columns: minmax(280px, 1fr) minmax(150px, 190px) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
}

.policy-module-main {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.policy-module-code {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pc-border);
  border-radius: 5px;
  background: var(--pc-surface-3);
  color: var(--pc-muted);
  font-size: var(--type-small);
  font-weight: 700;
}

.policy-module-title {
  color: var(--pc-text);
  font-weight: 700;
}

.policy-module-description {
  margin-top: 3px;
  color: var(--pc-muted);
  font-size: 13px;
  line-height: 1.35;
}

.policy-module-score {
  display: grid;
  gap: 5px;
}

.policy-module-score span,
.policy-module-score small {
  color: var(--pc-muted);
  font-size: var(--type-small);
}

.policy-module-score strong {
  color: var(--pc-text-soft);
}

.policy-module-toggles {
  display: grid;
  grid-template-columns: repeat(3, minmax(78px, 1fr));
  gap: 8px;
}

.policy-toggle {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid var(--pc-border);
  border-radius: 5px;
  background: var(--pc-surface);
  color: var(--pc-muted);
  font-size: var(--type-small);
  font-weight: 700;
  cursor: pointer;
}

.policy-toggle input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--pc-cyan);
}

.policy-toggle:has(input:checked) {
  border-color: color-mix(in srgb, var(--pc-cyan) 48%, var(--pc-border));
  background: color-mix(in srgb, var(--pc-cyan) 10%, var(--pc-surface));
  color: var(--pc-text);
}

.policy-module-advanced {
  padding: 14px;
  border-top: 1px solid var(--pc-border);
  background: var(--pc-surface);
}

.policy-module-advanced-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.policy-empty-advanced {
  padding: 12px;
  color: var(--pc-muted);
}

.panel-title,
.metric-value,
.stats-pill-value,
.finding-fact-value,
.summary-value,
.request-summary-value,
.request-summary-meta-value,
.ai-settings-stat-value,
.finding-ai-highlight-value,
.decision-title,
.report-empty-title,
.workspace-table td strong,
.card-title,
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--pc-text);
}

.metric-card,
.stats-pill,
.ai-settings-stat-card {
  padding: 14px 16px;
}

.metric-value,
.stats-pill-value,
.review-stat-value {
  display: block;
  color: var(--pc-text);
  font-size: 24px;
  font-weight: 680;
  line-height: 1.1;
}

.stats-grid,
.stats-grid-compact,
.request-summary-grid,
.request-summary-meta-grid,
.report-run-meta-grid,
.ai-settings-connection-grid,
.finding-ai-highlights,
.behavioral-visual-grid,
.request-findings-grid {
  gap: 10px;
}

.btn,
.btn-primary,
.btn-outline-primary,
.btn-outline-dark,
.btn-outline-secondary,
.btn-outline-danger,
.btn-outline-success,
.btn-success,
.btn-danger,
.btn-warning,
input[type="submit"],
button[type="submit"] {
  display: inline-flex;
  min-height: 34px;
  padding: 7px 13px;
  align-items: center;
  justify-content: center;
  border-radius: 5px !important;
  box-shadow: none !important;
  cursor: pointer;
  font-size: var(--type-small);
  font-weight: 720;
  line-height: 1.2;
  text-decoration: none;
}

.btn-primary,
input[type="submit"],
button[type="submit"] {
  border: 1px solid var(--pc-text) !important;
  background: var(--pc-text) !important;
  color: var(--pc-bg) !important;
}

.btn-outline-primary,
.btn-outline-dark,
.btn-outline-secondary,
.btn-outline-danger,
.btn-outline-success,
.btn-success,
.btn-danger,
.btn-warning,
.btn:not(.btn-primary) {
  border: 1px solid var(--pc-border-strong) !important;
  background: var(--pc-control) !important;
  color: var(--pc-text-soft) !important;
}

.btn:hover {
  filter: none;
  border-color: var(--pc-border-strong) !important;
  background: var(--pc-hover) !important;
  color: var(--pc-text) !important;
}

.form-control,
.form-select,
textarea,
input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
select {
  min-height: 26px;
  border: 1px solid var(--pc-border-strong);
  border-radius: 5px;
  outline: none;
  background-color: var(--pc-control);
  color: var(--pc-text);
  font: inherit;
}

.form-control:focus,
.form-select:focus,
textarea:focus,
input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):focus,
select:focus {
  border-color: var(--pc-cyan);
  background-color: var(--pc-control);
  color: var(--pc-text);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--pc-cyan) 15%, transparent);
}

.form-label,
label,
legend {
  color: var(--pc-text-soft);
  font-size: var(--type-small);
  font-weight: 620;
}

input::placeholder,
textarea::placeholder {
  color: var(--pc-faint) !important;
}

input[type="checkbox"],
input[type="radio"],
.form-check-input {
  accent-color: var(--pc-cyan);
}

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
}

.form-check-inline {
  display: inline-flex;
  margin-right: 22px;
}

.form-switch {
  padding-left: 0;
}

.form-check .form-check-input,
.form-switch .form-check-input {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 48px;
  height: 26px;
  min-height: 26px;
  margin: 0;
  border: 1px solid var(--pc-border-strong);
  border-radius: 999px;
  background-color: var(--pc-surface-3);
  background-image: radial-gradient(circle, #ffffff 0 42%, transparent 44%);
  background-position: 4px center;
  background-repeat: no-repeat;
  background-size: 18px 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: background-color 140ms ease, background-position 140ms ease, border-color 140ms ease;
}

.form-check .form-check-input:checked,
.form-switch .form-check-input:checked {
    background-position: 27px center;
    border-color: color-mix(in srgb, var(--pc-green) 44%, var(--pc-border)) !important;
    background-color: rgba(52, 217, 131, 0.08) !important;
}

.signout-btn{
  background: transparent !important;
    color: #999999 !important;
    display: contents !important;
}
.ts-dropdown-content{
      font-size: 12px !important;
}
.form-check .form-check-input:focus,
.form-switch .form-check-input:focus {
  border-color: var(--pc-cyan);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--pc-cyan) 18%, transparent);
}

.form-check .form-check-input:disabled,
.form-switch .form-check-input:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.form-check .form-check-label {
  margin: 0;
}

.report-section-picker {
  overflow: hidden;
  border: 1px solid var(--pc-border);
  border-radius: 5px;
  background: var(--pc-surface-2);
}

.report-section-picker-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--pc-border);
  background: var(--pc-surface);
}

.report-section-picker-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.report-section-picker-title {
  margin: 0;
  color: var(--pc-text);
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -0.015em;
}

.report-section-count {
  padding: 3px 8px;
  border: 1px solid var(--pc-border-strong);
  border-radius: 999px;
  color: var(--pc-text-soft);
  background: var(--pc-control);
  font-size: var(--type-micro);
  font-weight: 700;
}

.report-section-picker-subtitle {
  max-width: 680px;
  margin: 6px 0 0;
  color: var(--pc-muted);
  font-size: var(--type-tiny);
  line-height: 1.45;
}

.report-section-picker-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
}

.report-section-action {
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--pc-border-strong);
  border-radius: 4px;
  background: var(--pc-control);
  color: var(--pc-text-soft);
  font-size: var(--type-micro);
  font-weight: 700;
  cursor: pointer;
}

.report-section-action:hover,
.report-section-action:focus-visible {
  border-color: var(--pc-faint);
  background: var(--pc-hover);
  color: var(--pc-text);
}

.report-section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.report-section-card {
  min-width: 0;
  border: 1px solid var(--pc-border);
  border-radius: 4px;
  background: var(--pc-surface);
  transition: border-color 140ms ease, background-color 140ms ease, opacity 140ms ease;
}

.report-section-card:hover {
  border-color: var(--pc-border-strong);
}

.report-section-card.is-disabled {
  background: color-mix(in srgb, var(--pc-surface) 70%, var(--pc-bg));
  opacity: 0.62;
}

.report-section-card-header {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  min-height: 72px;
  padding: 13px 13px 12px;
}

.report-section-number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--pc-border);
  border-radius: 4px;
  background: var(--pc-surface-2);
  color: var(--pc-faint);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.report-section-card-copy {
  min-width: 0;
}

.report-section-card-title {
  display: block;
  color: var(--pc-text) !important;
  font-size: var(--type-small) !important;
  font-weight: 680 !important;
  line-height: 1.3;
  cursor: pointer;
}

.report-section-card-meta {
  margin-top: 5px;
  color: var(--pc-faint);
  font-size: var(--type-micro);
}

.report-section-parent-toggle {
  min-height: 28px;
}

.report-section-parent-toggle .form-check-input {
  width: 40px;
  height: 22px;
  min-height: 22px;
  background-position: 3px center;
  background-size: 14px 14px;
}

.report-section-parent-toggle .form-check-input:checked {
  background-position: 21px center;
}

.report-subsection-list {
  display: grid;
  gap: 1px;
  padding: 7px;
  border-top: 1px solid var(--pc-border);
  background: var(--pc-surface-2);
}

.report-subsection-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  min-height: 34px;
  padding: 5px 7px;
  border-radius: 3px;
}

.report-subsection-row:hover {
  background: var(--pc-hover);
}

.report-subsection-row .form-check-input {
  width: 30px;
  height: 18px;
  min-height: 18px;
  background-position: 2px center;
  background-size: 12px 12px;
}

.report-subsection-row .form-check-input:checked {
  background-position: 14px center;
}

.report-subsection-row .form-check-label {
  color: var(--pc-muted);
  font-size: var(--type-micro);
  font-weight: 560;
  line-height: 1.3;
  cursor: pointer;
}

.report-subsection-row .form-check-input:disabled + .form-check-label {
  cursor: not-allowed;
}

@media (max-width: 1100px) {
  .report-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .report-section-picker-header {
    display: grid;
    gap: 14px;
    padding: 16px;
  }

  .report-section-picker-actions {
    flex-wrap: wrap;
  }

  .report-section-grid {
    grid-template-columns: 1fr;
    padding: 8px;
  }
}

.table,
.workspace-table,
.module-policy-table {
  --bs-table-bg: var(--pc-surface);
  --bs-table-color: var(--pc-text-soft);
  --bs-table-border-color: var(--pc-border);
  --bs-table-hover-bg: var(--pc-surface-2);
  --bs-table-hover-color: var(--pc-text);
  margin: 0;
  border-color: var(--pc-border);
  color: var(--pc-text-soft);
}

.table-responsive,
.card {
  border-color: var(--pc-border) !important;
  background: var(--pc-surface) !important;
  color: var(--pc-text-soft);
}

.workspace-table td,
.workspace-table th,
.table td,
.table th,
.module-policy-table td,
.module-policy-table th {
  padding: 10px 12px;
  border-color: var(--pc-border);
  background: transparent;
  color: var(--pc-text-soft);
  font-size: var(--type-small);
  vertical-align: middle;
}

.card-header,
.card-footer {
  border-color: var(--pc-border) !important;
  background: var(--pc-surface-2) !important;
  color: var(--pc-text);
}

.badge,
.count-pill,
.table-warning-chip,
.ai-settings-chip,
.nav-user-chip,
.status-badge {
  display: inline-flex;
  min-height: 20px;
  padding: 2px 7px;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--pc-border);
  border-radius: 999px;
  background: var(--pc-surface-2);
  color: var(--pc-text-soft);
  font-size: var(--type-micro);
  font-weight: 720;
  letter-spacing: 0;
  white-space: nowrap;
}

.bg-success,
.text-success,
.badge.bg-success,
.quality-value,
.metric-card-clear .metric-value,
.conn-ok {
  color: var(--pc-green) !important;
}

.bg-danger,
.text-danger,
.badge.bg-danger {
  color: var(--pc-red) !important;
}

.bg-warning,
.text-warning,
.badge.bg-warning {
  color: var(--pc-amber) !important;
}

.progress,
.progress-thin,
.report-run-progress-bar,
.confidence-track,
.funnel-track,
.scorecard-bar {
  background: var(--pc-surface-3);
  border-radius: 999px;
}

.progress-bar,
.report-run-progress-fill,
.funnel-fill,
.scorecard-seg,
.confidence-fill {
  background: var(--pc-cyan);
}

.report-run-pulse,
.handled-strip-icon,
.report-empty-check {
  background: var(--pc-green);
  color: var(--pc-bg);
}

.alert,
.workspace-alert,
.token-alert {
  margin-bottom: 14px;
  border: 1px solid var(--pc-border) !important;
  border-radius: 5px !important;
  background: var(--pc-surface) !important;
  color: var(--pc-text-soft) !important;
  box-shadow: none !important;
}

.alert-success {
  box-shadow: inset 3px 0 var(--pc-green) !important;
}

.alert-danger {
  box-shadow: inset 3px 0 var(--pc-red) !important;
}

.alert-warning {
  box-shadow: inset 3px 0 var(--pc-amber) !important;
}

.pagy.nav {
  gap: 5px;
}

.pagy.nav a {
  min-width: 30px;
  height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--pc-border-strong);
  border-radius: 5px;
  background: var(--pc-control);
  box-shadow: none;
  color: var(--pc-text-soft);
  font-size: var(--type-caption);
}

.pagy.nav a.current,
.pagy.nav a:hover {
  border-color: var(--pc-border-strong);
  background: var(--pc-hover);
  color: var(--pc-text);
}

.modal-content,
dialog,
.ai-settings-dialog {
  border: 1px solid var(--pc-border-strong);
  border-radius: 7px;
  background: var(--pc-surface);
  box-shadow: var(--pc-shadow);
  color: var(--pc-text);
}

.modal-header,
.modal-footer,
.ai-settings-dialog-header {
  border-color: var(--pc-border);
  background: var(--pc-surface);
}

.ai-settings-dialog-body,
.ai-settings-review-body {
  background: var(--pc-surface);
}

.list-group-item,
.dropdown-menu {
  border-color: var(--pc-border);
  background: var(--pc-surface);
  color: var(--pc-text-soft);
}

.raw-details summary,
.decision-preview summary,
.tiny-link,
.auth-link,
.auth-link-inline {
  color: var(--pc-cyan);
}

.token-panel,
.handled-strip,
.report-empty-state {
  border: 1px solid var(--pc-border);
  border-radius: 5px;
  background: var(--pc-surface);
  color: var(--pc-text-soft);
  box-shadow: none;
}

.auth-body {
  background: var(--pc-bg);
}

.auth-shell {
  min-height: calc(100vh - 2rem);
}

.auth-card {
  max-width: 440px;
  border: 1px solid var(--pc-border);
  border-radius: 7px;
  background: var(--pc-surface);
  box-shadow: var(--pc-shadow);
}

.auth-heading {
  color: var(--pc-text);
  font-size: 22px;
}

.auth-subheading,
.auth-footer-copy,
.auth-hint {
  color: var(--pc-muted);
  margin-top: 20px;
}

.auth-input {
  min-height: 38px;
  border-radius: 5px;
  border-color: var(--pc-border-strong);
  background: var(--pc-control);
  color: var(--pc-text);
}

.auth-submit {
  min-height: 38px;
  border: 1px solid var(--pc-text);
  border-radius: 5px;
  background: var(--pc-text);
  box-shadow: none;
  color: var(--pc-bg);
}

.public-report-body {
  background: var(--pc-bg);
  color: var(--pc-text);
}

.public-report-main {
  max-width: 1500px;
}

.public-report-shell {
  gap: 18px;
}

.public-report-summary,
.report-legend,
.decision-list,
.concern-group-list,
.scorecard-list,
.funnel-list,
.finding-feed,
.module-usage-list,
.api-key-stack,
.code-example-stack {
  gap: 10px;
}

@media (max-width: 991.98px) {
  .workspace-shell {
    grid-template-columns: 1fr;
  }

  .workspace-sidebar {
    position: static;
    width: 100%;
    min-height: auto;
    height: auto;
  }

  .workspace-sidebar-card,
  .admin-sidebar-card {
    min-height: auto;
    height: auto;
    border-bottom: 1px solid var(--pc-border);
  }

  .workspace-sidebar-top {
    overflow: visible;
  }

  .workspace-main,
  .admin-workspace-main {
    grid-column: 1;
  }

  .page-shell,
  .narrow-shell {
    padding: 22px 20px 64px;
  }

  .panel-grid-two,
  .panel-grid-three {
    grid-template-columns: 1fr;
  }

  .policy-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .policy-preset-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .policy-preset-actions {
    justify-content: flex-start;
  }

  .policy-order-head {
    align-items: stretch;
    flex-direction: column;
  }

  .policy-order-item {
    grid-template-columns: 28px 1fr auto;
    row-gap: 4px;
  }

  .policy-order-code {
    display: none;
  }

  .policy-module-card > summary {
    grid-template-columns: 1fr;
  }

  .policy-module-toggles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rule-manager-hero,
  .rule-command-bar {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .rule-command-grid,
  .rule-command-grid-wide,
  .rule-card-grid {
    grid-template-columns: 1fr;
  }

  .integration-hero,
  .integration-fact-grid,
  .integration-mode-grid,
  .integration-snippet-grid,
  .integration-form-grid,
  .integration-tab-list,
  .integration-lookup-grid,
  .keys-layout {
    grid-template-columns: 1fr;
  }

  .integration-step {
    grid-template-columns: 1fr;
  }

  .key-create-panel {
    position: static;
  }

  .connections-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .connections-stats,
  .connections-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .connections-stat:nth-child(2n) {
    border-right: 0;
  }

  .signature-tab-list {
    grid-template-columns: 1fr;
  }

  .signature-tab {
    border-right: 0;
    border-bottom: 1px solid var(--pc-border);
  }

  .signature-tab:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 575.98px) {
  .console-toolbar {
    padding: 0 12px;
  }

  .app-breadcrumb span,
  .app-breadcrumb b {
    display: none;
  }

  .page-shell,
  .narrow-shell {
    padding: 18px 14px 60px;
  }

  .page-title,
  .workspace-title,
  .public-report-title {
    font-size: 23px;
  }

  .request-summary-grid,
  .request-summary-meta-grid,
  .report-run-meta-grid,
  .finding-ai-highlights {
    grid-template-columns: 1fr;
  }

  .policy-summary-grid,
  .policy-module-toggles {
    grid-template-columns: 1fr;
  }

  .connections-stats,
  .connections-grid {
    grid-template-columns: 1fr;
  }

  .connections-stat {
    border-right: 0;
    border-bottom: 1px solid var(--pc-border);
  }

  .connections-stat:last-child {
    border-bottom: 0;
  }

  .connection-card {
    min-height: auto;
  }

  .client-activity-heading {
    display: none;
  }

  .client-activity-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .client-activity-time {
    grid-column: 1 / -1;
    justify-self: start;
    color: var(--pc-muted);
  }
}

.console-body .client-admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px;
  border: 1px solid var(--pc-border);
  border-radius: 7px;
  background: var(--pc-surface);
}

.console-body a.client-admin-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--pc-border);
  border-radius: 6px;
  background: var(--pc-control);
  color: var(--pc-text-soft);
  font-size: var(--type-small);
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.console-body a.client-admin-tab:hover {
  border-color: var(--pc-border-strong);
  background: var(--pc-hover);
  color: var(--pc-text);
}

.console-body a.client-admin-tab.active {
  border-color: var(--pc-cyan);
  background: color-mix(in srgb, var(--pc-cyan) 14%, var(--pc-surface-2));
  color: var(--pc-text);
  box-shadow: inset 0 -2px var(--pc-cyan);
}

.console-body .ai-settings-connection-tile,
.console-body .ai-settings-empty-state,
.console-body .ai-settings-guidance,
.console-body .ai-settings-provider-card,
.console-body .ai-settings-builder-card,
.console-body .ai-settings-review-details,
.ai-settings-dialog .ai-settings-builder-card,
.ai-settings-dialog .ai-settings-review-details {
  border-color: var(--pc-border) !important;
  background: var(--pc-surface) !important;
  border-radius: 5px !important;
  color: var(--pc-text-soft) !important;
}

.console-body .ai-settings-review-body,
.ai-settings-dialog .ai-settings-review-body {
  border-color: var(--pc-border) !important;
  background: var(--pc-surface-2) !important;
}

.console-body .ai-settings-module-option,
.ai-settings-dialog .ai-settings-module-option,
.console-body .ai-settings-advanced-panel,
.ai-settings-dialog .ai-settings-advanced-panel {
  border-color: var(--pc-border) !important;
  background: var(--pc-surface-2) !important;
  border-radius: 5px !important;
  color: var(--pc-text-soft) !important;
}

.console-body .ai-settings-module-option:hover,
.ai-settings-dialog .ai-settings-module-option:hover {
  border-color: var(--pc-border-strong) !important;
  background: var(--pc-hover) !important;
}

.console-body .ai-settings-module-option:has(input:checked),
.ai-settings-dialog .ai-settings-module-option:has(input:checked) {
  border-color: var(--pc-blue) !important;
  background: color-mix(in srgb, var(--pc-blue) 12%, var(--pc-surface-2)) !important;
}

.console-body .ai-settings-chip,
.ai-settings-dialog .ai-settings-chip {
  border-color: var(--pc-border) !important;
  background: var(--pc-surface-3) !important;
  color: var(--pc-text-soft) !important;
}

.console-body .overview-range-shell {
  border: 1px solid var(--pc-border);
  border-radius: 6px;
  background: var(--pc-surface);
  padding: 16px;
}

.console-body .overview-range-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.console-body .overview-range-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.console-body .overview-range-copy strong {
  color: var(--pc-text);
  font-size: 18px;
  line-height: 1.2;
}

.console-body .overview-range-control {
  position: relative;
}

.console-body .overview-range-input-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--pc-border-strong);
  border-radius: 6px;
  background: var(--pc-control);
  color: var(--pc-text);
}

.console-body .overview-range-input-wrap:focus-within,
.console-body .overview-range-input-wrap:hover {
  border-color: var(--pc-blue);
  background: color-mix(in srgb, var(--pc-blue) 12%, var(--pc-control));
}

.console-body .overview-range-input {
  min-width: 190px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--pc-text);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.2;
  cursor: pointer;
}

.console-body .overview-range-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: var(--pc-cyan);
}

.console-body .overview-range-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.account-dashboard-page {
  display: grid;
  gap: 18px;
}

.account-dashboard-header {
  align-items: flex-end;
}

.account-range-shell {
  margin-bottom: 0 !important;
}

.account-value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.account-value-card {
  display: grid;
  align-content: start;
  min-height: 154px;
  padding: 16px;
  border: 1px solid var(--pc-border);
  border-radius: 7px;
  background:
    radial-gradient(circle at 100% 0, rgba(76, 141, 255, 0.07), transparent 34%),
    linear-gradient(180deg, var(--pc-surface-2), var(--pc-surface));
  color: var(--pc-text-soft);
}

.account-value-card-primary {
  border-color: color-mix(in srgb, var(--pc-cyan) 34%, var(--pc-border));
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--pc-cyan) 14%, transparent), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--pc-cyan) 7%, var(--pc-surface-2)), var(--pc-surface));
}

.account-value-card span {
  color: var(--pc-muted);
  font-size: var(--type-tiny);
  font-weight: 400;
  text-transform: uppercase;
}

.account-value-card strong {
  display: block;
  margin-top: 10px;
  color: var(--pc-text);
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 400;
  line-height: 1;
}

.account-value-card p {
  margin: 12px 0 0;
  color: var(--pc-text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.account-impact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 12px;
  align-items: stretch;
}

.account-impact-panel {
  display: grid;
  align-content: start;
  gap: 16px;
}

.account-risk-stack {
  display: grid;
  gap: 10px;
}

.account-risk-row {
  padding: 13px;
  border: 1px solid var(--pc-border);
  border-left: 2px solid color-mix(in srgb, currentColor 42%, var(--pc-border));
  border-radius: 7px;
  background:
    linear-gradient(90deg, color-mix(in srgb, currentColor 3.5%, transparent), transparent 38%),
    rgba(255, 255, 255, 0.018);
}

.account-dashboard-page .account-risk-row.risk-tone-low,
.account-dashboard-page .account-risk-row.risk-tone-medium,
.account-dashboard-page .account-risk-row.risk-tone-high {
  border-color: var(--pc-border);
  border-left-color: color-mix(in srgb, currentColor 34%, var(--pc-border));
  background:
    linear-gradient(90deg, color-mix(in srgb, currentColor 3.5%, transparent), transparent 38%),
    rgba(255, 255, 255, 0.018);
}

.account-dashboard-page .account-risk-row.risk-tone-low {
  color: color-mix(in srgb, #37d984 68%, var(--pc-text-soft));
}

.account-dashboard-page .account-risk-row.risk-tone-medium {
  color: color-mix(in srgb, #e9bd3f 62%, var(--pc-text-soft));
}

.account-dashboard-page .account-risk-row.risk-tone-high {
  color: color-mix(in srgb, #ff6671 62%, var(--pc-text-soft));
}

.account-risk-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.account-risk-row-head span {
  color: var(--pc-text);
  font-size: 13px;
  font-weight: 400;
}

.account-risk-row-head strong {
  color: var(--pc-text);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.account-risk-track {
  height: 6px;
  margin-top: 11px;
  border-radius: 999px;
  background: var(--pc-surface-3);
  overflow: hidden;
}

.account-risk-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: currentColor;
  opacity: 0.42;
}

.account-risk-foot {
  margin-top: 8px;
  color: var(--pc-text-muted);
  font-size: var(--type-small);
}

.account-value-list {
  display: grid;
  gap: 10px;
}

.account-value-list div {
  padding: 13px;
  border: 1px solid var(--pc-border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.022);
}

.account-value-list strong,
.account-value-list span {
  display: block;
}

.account-value-list strong {
  color: var(--pc-text);
  font-size: 13px;
  font-weight: 850;
}

.account-value-list span {
  margin-top: 5px;
  color: var(--pc-text-muted);
  font-size: 13px;
  line-height: 1.42;
}

.account-policy-grid .account-value-card {
  min-height: 128px;
}

.compact-filter-panel {
  padding: 0;
  overflow: hidden;
}

.compact-filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
}

.compact-filter-summary::-webkit-details-marker {
  display: none;
}

.compact-filter-summary::after {
  content: "+";
  display: inline-grid;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--pc-border);
  border-radius: 50%;
  color: var(--pc-text-muted);
  font-size: 16px;
  line-height: 1;
}

.compact-filter-panel[open] .compact-filter-summary {
  border-bottom: 1px solid var(--pc-border);
}

.compact-filter-panel[open] .compact-filter-summary::after {
  content: "-";
  color: var(--pc-blue);
}

.compact-filter-summary span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.compact-filter-summary strong {
  color: var(--pc-text);
  font-size: 14px;
  font-weight: 850;
}

.compact-filter-summary small {
  color: var(--pc-muted);
  font-size: var(--type-small);
}

.compact-filter-summary em {
  margin-left: auto;
  color: var(--pc-text-soft);
  font-size: var(--type-caption);
  font-style: normal;
  font-weight: 820;
  text-transform: uppercase;
  white-space: nowrap;
}

.compact-filter-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 16px 16px;
}

.compact-filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  grid-column: 1 / -1;
}

@media (max-width: 991.98px) {
  .console-body .overview-range-form {
    grid-template-columns: 1fr;
  }

  .console-body .overview-range-control,
  .console-body .overview-range-input-wrap {
    width: 100%;
  }

  .console-body .overview-range-input {
    width: 100%;
  }

  .account-value-grid,
  .account-impact-layout {
    grid-template-columns: 1fr;
  }

  .compact-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .compact-filter-grid {
    grid-template-columns: 1fr;
  }

  .compact-filter-actions {
    justify-content: stretch;
  }

  .compact-filter-actions .btn {
    flex: 1 1 0;
  }
}

.admin-module-health-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.admin-module-health-card {
  display: grid;
  gap: 14px;
  min-height: 110px;
  padding: 14px;
  border: 1px solid var(--pc-border);
  border-radius: 6px;
  background: var(--pc-surface-2);
}

.admin-module-health-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--pc-text-muted);
  font-size: var(--type-caption);
  font-weight: 760;
  text-transform: uppercase;
}

.health-check-link,
.health-check-link:hover,
.health-check-link:focus {
  color: inherit;
  text-decoration: none;
}

.admin-module-health-error-link {
  color: var(--bs-danger);
  font-weight: 820;
  text-decoration: none;
}

.admin-module-health-error-link:hover,
.admin-module-health-error-link:focus {
  color: var(--bs-danger);
  text-decoration: underline;
}

.admin-module-health-warning-link {
  color: var(--bs-warning);
  font-weight: 820;
  text-decoration: none;
}

.admin-module-health-warning-link:hover,
.admin-module-health-warning-link:focus {
  color: var(--bs-warning);
  text-decoration: underline;
}

.health-error-message {
  max-width: 280px;
  white-space: normal;
  word-break: break-word;
}

.health-evidence-cell {
  min-width: 260px;
  max-width: 360px;
  white-space: normal;
}

.client-activity-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--pc-border);
  border-radius: 7px;
  overflow: hidden;
  background: var(--pc-surface);
}

.client-activity-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--pc-border);
  background: rgba(255, 255, 255, 0.022);
  color: var(--pc-muted);
  font-size: var(--type-tiny);
  font-weight: 820;
  text-transform: uppercase;
}

.client-activity-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--pc-border);
  background: transparent;
}

.client-activity-card:last-child {
  border-bottom: 0;
}

.client-activity-main {
  min-width: 0;
}

.client-activity-name {
  overflow: hidden;
  color: var(--pc-text);
  font-size: 14px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-activity-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  color: var(--pc-muted);
  font-size: var(--type-caption);
  font-weight: 720;
}

.client-activity-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--pc-muted);
}

.client-activity-dot.is-active {
  background: var(--pc-green);
}

.client-activity-dot.is-idle {
  background: var(--pc-border-strong);
}

.client-activity-count {
  display: inline-flex;
  width: max-content;
  max-width: 104px;
  align-items: baseline;
  justify-self: start;
  gap: 5px;
  padding: 7px 9px;
  border: 1px solid var(--pc-border);
  border-radius: 999px;
  background: var(--pc-control);
}

.client-activity-count strong {
  color: var(--pc-text);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
}

.client-activity-count span {
  color: var(--pc-muted);
  font-size: var(--type-micro);
  font-weight: 780;
  line-height: 1;
  text-transform: uppercase;
}

.client-activity-time {
  justify-self: end;
  color: var(--pc-text-soft);
  font-size: var(--type-small);
  font-weight: 760;
  white-space: nowrap;
}

.ranked-list {
  display: grid;
  gap: 8px;
}

.ranked-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--pc-border);
  border-radius: 7px;
  background: var(--pc-surface-2);
}

.ranked-main {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.ranked-name {
  overflow: hidden;
  color: var(--pc-text-soft);
  font-size: 13px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranked-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--pc-control);
}

.ranked-track span {
  display: block;
  min-width: 4px;
  height: 100%;
  border-radius: inherit;
  background: color-mix(in srgb, var(--pc-cyan) 62%, var(--pc-blue));
}

.ranked-count {
  min-width: 48px;
  padding: 6px 9px;
  border: 1px solid var(--pc-border);
  border-radius: 999px;
  background: var(--pc-control);
  color: var(--pc-text);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  text-align: center;
}

.admin-request-inspect .request-findings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.finding-card-ai {
  border-color: color-mix(in srgb, var(--pc-blue) 36%, var(--pc-border));
}

.admin-request-inspect {
  display: grid;
  gap: 22px;
}

.request-command-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--pc-border);
  border-left-width: 4px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, currentColor 11%, transparent) 0 30%, transparent 42%),
    linear-gradient(180deg, var(--pc-surface-2), var(--pc-surface));
  color: var(--pc-text);
}

.request-command-main {
  min-width: 0;
}

.request-command-main .page-title {
  margin: 4px 0 10px;
  max-width: 920px;
  overflow-wrap: anywhere;
}

.request-meta-row,
.finding-meta,
.muted-inline {
  color: var(--pc-text-muted);
}

.request-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: var(--type-small);
  font-weight: 760;
}

.request-meta-row span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid var(--pc-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.request-command-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.request-command-actions form {
  margin: 0;
}

.request-command-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-request-inspect .request-summary-stat {
  position: relative;
  min-height: 146px;
  padding: 18px;
  border: 1px solid var(--pc-border);
  border-top-width: 3px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--pc-surface-2), var(--pc-surface));
  overflow: hidden;
}

.admin-request-inspect .request-summary-stat::after {
  content: "";
  position: absolute;
  inset: auto 16px 14px 16px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.85;
}

.admin-request-inspect .request-summary-label {
  color: var(--pc-text-muted);
  font-size: var(--type-caption);
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-request-inspect .request-summary-value {
  margin-top: 12px;
  color: var(--pc-text);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  font-weight: 900;
}

.admin-request-inspect .request-summary-footnote {
  margin-top: 12px;
  color: var(--pc-text-muted);
  font-size: 13px;
}

.risk-tone-low,
.risk-tone-none,
.risk-tone-disabled,
.risk-tone-skipped,
.risk-tone-not-run,
.risk-tone-success {
  color: #2bd47d;
  border-color: color-mix(in srgb, #2bd47d 42%, var(--pc-border));
  background-color: rgba(15, 93, 54, 0.18);
}

.risk-tone-medium,
.risk-tone-pending,
.risk-tone-warning {
  color: #e4b93b;
  border-color: color-mix(in srgb, #e4b93b 48%, var(--pc-border));
  background-color: rgba(109, 78, 12, 0.23);
}

.risk-tone-high,
.risk-tone-danger,
.risk-tone-error {
  color: #ff5a67;
  border-color: color-mix(in srgb, #ff5a67 55%, var(--pc-border));
  background-color: rgba(108, 19, 28, 0.24);
}

.state-tone-completed {
  color: #7fb4ff;
  border-color: color-mix(in srgb, #7fb4ff 38%, var(--pc-border));
}

.state-tone-pending,
.state-tone-processing {
  color: #e4b93b;
  border-color: color-mix(in srgb, #e4b93b 48%, var(--pc-border));
}

.request-inspector-layout {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.request-context-rail,
.request-inspector-main {
  display: grid;
  gap: 18px;
}

.request-context-rail {
  position: static;
}

.admin-request-inspect .panel-card {
  border: 1px solid var(--pc-border);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--pc-surface-2), var(--pc-surface));
  box-shadow: none;
}

.request-decision-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: start;
}

.request-warning-band {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--pc-border);
  border-radius: 8px;
  background: var(--pc-surface-2);
}

.request-warning-band.has-warnings {
  border-color: color-mix(in srgb, #ff5a67 50%, var(--pc-border));
  background: rgba(108, 19, 28, 0.2);
}

.request-warning-band.is-clear {
  border-color: color-mix(in srgb, #2bd47d 38%, var(--pc-border));
  background: rgba(15, 93, 54, 0.16);
}

.request-warning-title {
  color: var(--pc-text);
  font-size: 20px;
  font-weight: 880;
}

.request-warning-subtitle {
  margin-top: 4px;
  color: var(--pc-text-muted);
}

.request-warning-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.request-status-pill,
.request-count-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: var(--type-small);
  font-weight: 850;
  white-space: nowrap;
}

.request-ai-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-request-inspect .metric-card {
  border: 1px solid var(--pc-border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
}

.admin-request-inspect .summary-list-row {
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--pc-border);
}

.admin-request-inspect .summary-list-row:last-child {
  border-bottom: 0;
}

.admin-request-inspect .summary-key {
  color: var(--pc-text-muted);
  font-size: var(--type-small);
}

.admin-request-inspect .summary-value {
  color: var(--pc-text);
  font-size: var(--type-small);
  font-weight: 820;
  overflow-wrap: anywhere;
}

.admin-request-inspect .request-findings-grid {
  gap: 12px;
}

.admin-request-inspect .finding-card {
  border: 1px solid var(--pc-border);
  border-left-width: 3px;
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
}

.finding-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.finding-module {
  color: var(--pc-text);
  font-weight: 850;
}

.finding-meta {
  margin-top: 3px;
  font-size: var(--type-small);
  font-weight: 700;
  text-transform: capitalize;
}

.admin-request-inspect .finding-score {
  padding: 5px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  font-size: var(--type-small);
  white-space: nowrap;
}

.finding-warning-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-request-inspect .finding-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.admin-request-inspect .finding-fact {
  padding: 9px;
  border: 1px solid var(--pc-border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}

.admin-request-inspect .finding-fact-key {
  display: block;
  color: var(--pc-text-muted);
  font-size: var(--type-caption);
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-request-inspect .finding-fact-value {
  display: block;
  margin-top: 4px;
  color: var(--pc-text);
  font-size: var(--type-small);
  font-weight: 760;
  overflow-wrap: anywhere;
}

.admin-request-inspect .behavioral-visual-card,
.admin-request-inspect .behavioral-visual-frame,
.admin-request-inspect .finding-ai-highlight {
  border-color: var(--pc-border);
  background: rgba(255, 255, 255, 0.025);
}

.admin-request-inspect .behavioral-visual-title,
.admin-request-inspect .finding-ai-highlight-value {
  color: var(--pc-text);
}

.admin-request-inspect .behavioral-visual-meta span,
.admin-request-inspect .finding-ai-highlight-label {
  color: var(--pc-text-muted);
  border-color: var(--pc-border);
}

.payload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.payload-drawer {
  border: 1px solid var(--pc-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.payload-drawer.compact,
.payload-drawer.nested {
  border-radius: 6px;
}

.payload-drawer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--pc-text);
  cursor: pointer;
  font-weight: 850;
  list-style: none;
}

.payload-drawer summary::-webkit-details-marker {
  display: none;
}

.payload-drawer summary::after {
  content: "+";
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--pc-border);
  border-radius: 50%;
  color: var(--pc-text-muted);
  font-size: 16px;
  line-height: 1;
}

.payload-drawer[open] summary {
  border-bottom: 1px solid var(--pc-border);
}

.payload-drawer[open] summary::after {
  content: "-";
  color: var(--pc-blue);
}

.admin-request-inspect .json-block {
  max-height: 520px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #070808;
  color: #c9d2df;
  font-size: var(--type-small);
  line-height: 1.55;
}

.admin-request-inspect .table-warning-chip {
  border-color: color-mix(in srgb, #e4b93b 42%, var(--pc-border));
  background: rgba(109, 78, 12, 0.22);
  color: #f4d36b;
}

.admin-request-inspect .risk-tone-low,
.admin-request-inspect .risk-tone-success {
  color: #37d984;
  border-color: color-mix(in srgb, #37d984 48%, var(--pc-border));
}

.admin-request-inspect .request-summary-stat.risk-tone-low,
.admin-request-inspect .request-summary-stat.risk-tone-success,
.admin-request-inspect .finding-card.risk-tone-low,
.admin-request-inspect .finding-card.risk-tone-success {
  background:
    radial-gradient(circle at 100% 0, rgba(55, 217, 132, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(16, 58, 38, 0.42), rgba(12, 16, 15, 0.98));
}

.admin-request-inspect .risk-tone-none,
.admin-request-inspect .risk-tone-disabled,
.admin-request-inspect .risk-tone-skipped,
.admin-request-inspect .risk-tone-not-run {
  color: #aeb6bd;
  border-color: color-mix(in srgb, #aeb6bd 38%, var(--pc-border));
}

.admin-request-inspect .request-summary-stat.risk-tone-none,
.admin-request-inspect .request-summary-stat.risk-tone-disabled,
.admin-request-inspect .request-summary-stat.risk-tone-skipped,
.admin-request-inspect .request-summary-stat.risk-tone-not-run,
.admin-request-inspect .finding-card.risk-tone-none,
.admin-request-inspect .finding-card.risk-tone-disabled,
.admin-request-inspect .finding-card.risk-tone-skipped,
.admin-request-inspect .finding-card.risk-tone-not-run {
  background:
    radial-gradient(circle at 100% 0, rgba(174, 182, 189, 0.11), transparent 34%),
    linear-gradient(180deg, rgba(45, 50, 54, 0.44), rgba(12, 16, 15, 0.98));
}

.admin-request-inspect .risk-tone-medium,
.admin-request-inspect .risk-tone-pending,
.admin-request-inspect .risk-tone-warning {
  color: #e9bd3f;
  border-color: color-mix(in srgb, #e9bd3f 54%, var(--pc-border));
}

.admin-request-inspect .request-summary-stat.risk-tone-medium,
.admin-request-inspect .request-summary-stat.risk-tone-pending,
.admin-request-inspect .request-summary-stat.risk-tone-warning,
.admin-request-inspect .finding-card.risk-tone-medium,
.admin-request-inspect .finding-card.risk-tone-pending,
.admin-request-inspect .finding-card.risk-tone-warning {
  background:
    radial-gradient(circle at 100% 0, rgba(233, 189, 63, 0.15), transparent 34%),
    linear-gradient(180deg, rgba(78, 58, 15, 0.46), rgba(12, 16, 15, 0.98));
}

.admin-request-inspect .risk-tone-high,
.admin-request-inspect .risk-tone-danger,
.admin-request-inspect .risk-tone-error {
  color: #ff6671;
  border-color: color-mix(in srgb, #ff6671 60%, var(--pc-border));
}

.admin-request-inspect .request-command-hero.risk-tone-high,
.admin-request-inspect .request-command-hero.risk-tone-danger,
.admin-request-inspect .request-command-hero.risk-tone-error,
.admin-request-inspect .request-summary-stat.risk-tone-high,
.admin-request-inspect .request-summary-stat.risk-tone-danger,
.admin-request-inspect .request-summary-stat.risk-tone-error,
.admin-request-inspect .finding-card.risk-tone-high,
.admin-request-inspect .finding-card.risk-tone-danger,
.admin-request-inspect .finding-card.risk-tone-error {
  background:
    radial-gradient(circle at 100% 0, rgba(255, 102, 113, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(83, 24, 29, 0.5), rgba(12, 16, 15, 0.98));
}

.admin-request-inspect .state-tone-completed {
  color: #81b8ff;
  border-color: color-mix(in srgb, #81b8ff 46%, var(--pc-border));
}

.admin-request-inspect .request-summary-stat.state-tone-completed {
  background:
    radial-gradient(circle at 100% 0, rgba(129, 184, 255, 0.15), transparent 34%),
    linear-gradient(180deg, rgba(22, 48, 79, 0.45), rgba(12, 16, 15, 0.98));
}

.admin-request-inspect .request-command-compact.risk-tone-high,
.admin-request-inspect .request-command-compact.risk-tone-danger,
.admin-request-inspect .request-command-compact.risk-tone-error {
  color: var(--pc-text);
  border-color: var(--pc-border);
  background:
    linear-gradient(90deg, rgba(255, 102, 113, 0.045), transparent 42%),
    transparent;
}

.admin-request-inspect .request-command-compact .request-meta-row span {
  color: var(--pc-text-soft);
}

.admin-request-inspect .request-command-strip-compact .request-summary-stat.risk-tone-high,
.admin-request-inspect .request-command-strip-compact .request-summary-stat.risk-tone-danger,
.admin-request-inspect .request-command-strip-compact .request-summary-stat.risk-tone-error {
  color: #e7838a;
  border-color: rgba(255, 102, 113, 0.28);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 102, 113, 0.07), transparent 32%),
    linear-gradient(180deg, rgba(42, 24, 26, 0.56), rgba(12, 16, 15, 0.98));
}

.admin-request-inspect .request-command-strip-compact .request-summary-stat.risk-tone-high::after,
.admin-request-inspect .request-command-strip-compact .request-summary-stat.risk-tone-danger::after,
.admin-request-inspect .request-command-strip-compact .request-summary-stat.risk-tone-error::after {
  opacity: 0.45;
}

.admin-request-inspect .request-command-compact {
  align-items: center;
  min-height: 0;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid var(--pc-border);
  border-radius: 0;
  background: transparent;
}

.admin-request-inspect .request-command-compact .page-title {
  margin: 2px 0 6px;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.05;
}

.admin-request-inspect .request-command-compact .eyebrow {
  font-size: var(--type-tiny);
}

.admin-request-inspect .request-command-compact .request-meta-row span {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--pc-text-muted);
}

.admin-request-inspect .request-command-compact .request-meta-row span + span::before {
  content: "/";
  margin-right: 8px;
  color: var(--pc-border-strong);
}

.admin-request-inspect .request-command-strip-compact {
  grid-template-columns: 1.05fr 1.05fr 1fr 1fr;
  gap: 10px;
}

.admin-request-inspect .request-command-strip-compact .request-summary-stat {
  min-height: 74px;
  padding: 11px 13px 13px;
  border-radius: 6px;
}

.admin-request-inspect .request-command-strip-compact .request-summary-value {
  margin-top: 5px;
  font-size: clamp(18px, 1.6vw, 24px);
}

.admin-request-inspect .request-command-strip-compact .request-summary-footnote {
  margin-top: 4px;
  font-size: var(--type-tiny);
}

.admin-request-inspect .request-command-strip-compact .request-summary-stat::after {
  inset: auto 14px 9px 14px;
  height: 2px;
}

.admin-request-inspect .module-evidence-panel {
  overflow: hidden;
}

.module-evidence-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--pc-border);
  border-radius: 6px;
  background: var(--pc-sidebar);
  overflow: hidden;
}

.module-evidence-row {
  border-bottom: 1px solid var(--pc-border);
  border-left: 3px solid currentColor;
  background: rgba(255, 255, 255, 0.018);
}

.module-evidence-row:last-child {
  border-bottom: 0;
}

.module-evidence-summary {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 12px 14px;
}

.module-evidence-id {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.module-code-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pc-border);
  border-radius: 5px;
  background: var(--pc-surface-2);
  color: var(--pc-text-muted);
  font-size: var(--type-small);
  font-weight: 820;
}

.module-evidence-warnings {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 6px;
  min-width: 0;
}

.module-evidence-facts {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.module-evidence-facts span {
  min-width: 0;
  padding: 6px 7px;
  border: 1px solid var(--pc-border);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.022);
  color: var(--pc-text-soft);
  font-size: var(--type-caption);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-evidence-facts strong {
  margin-right: 5px;
  color: var(--pc-text-muted);
  font-weight: 760;
}

.module-evidence-details {
  grid-column: 1 / -1;
  align-self: start;
  min-width: 0;
}

.module-evidence-details[open] {
  grid-column: 1 / -1;
}

.module-evidence-details[open] summary {
  border-bottom: 1px solid var(--pc-border);
}

.module-evidence-details .behavioral-visual-grid,
.module-evidence-details .finding-facts {
  margin: 12px;
}

.payload-grid {
  align-items: start;
}

.payload-drawer {
  align-self: start;
}

.payload-drawer[open] {
  height: auto;
}

@media (max-width: 991.98px) {
  .admin-module-health-grid,
  .admin-request-inspect .request-findings-grid {
    grid-template-columns: 1fr;
  }

  .request-command-hero,
  .request-decision-grid {
    grid-template-columns: 1fr;
  }

  .request-command-hero {
    display: grid;
  }

  .request-command-actions {
    justify-content: flex-start;
  }

  .request-command-strip,
  .request-inspector-layout,
  .request-ai-metrics,
  .payload-grid,
  .admin-request-inspect .finding-facts {
    grid-template-columns: 1fr;
  }

  .request-context-rail {
    position: static;
  }

  .module-evidence-summary {
    grid-template-columns: 1fr;
  }

  .module-evidence-facts {
    grid-template-columns: 1fr;
  }
}

.daterangepicker {
  border: 1px solid var(--pc-border-strong);
  border-radius: 7px;
  background: var(--pc-surface-2);
  color: var(--pc-text);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.48);
  font-family: inherit;
}

.daterangepicker:before,
.daterangepicker:after {
  border-bottom-color: var(--pc-border-strong);
}

.daterangepicker .calendar-table,
.daterangepicker .ranges li,
.daterangepicker td.off,
.daterangepicker td.off.in-range,
.daterangepicker td.off.start-date,
.daterangepicker td.off.end-date {
  background: var(--pc-surface);
  color: var(--pc-text-muted);
}

.daterangepicker .calendar-table {
  border-color: var(--pc-border);
  border-radius: 6px;
}

.daterangepicker .calendar-table th,
.daterangepicker .calendar-table td {
  border-radius: 5px;
  color: var(--pc-text-soft);
  font-weight: 720;
}

.daterangepicker .calendar-table th.month {
  color: var(--pc-text);
  font-weight: 820;
}

.daterangepicker .calendar-table .next span,
.daterangepicker .calendar-table .prev span {
  border-color: var(--pc-text-soft);
}

.daterangepicker td.available:hover,
.daterangepicker th.available:hover,
.daterangepicker .ranges li:hover {
  background: var(--pc-hover);
  color: var(--pc-text);
}

.daterangepicker td.in-range {
  background: color-mix(in srgb, var(--pc-blue) 16%, var(--pc-surface-3));
  color: var(--pc-text);
}

.daterangepicker td.active,
.daterangepicker td.active:hover,
.daterangepicker .ranges li.active {
  background: var(--pc-blue);
  color: #fff;
}

.daterangepicker .ranges {
  border-color: var(--pc-border);
}

.daterangepicker .ranges li {
  border-radius: 5px;
  color: var(--pc-text-soft);
  font-size: var(--type-small);
  font-weight: 760;
}

.daterangepicker .drp-buttons {
  border-top-color: var(--pc-border);
}

.daterangepicker .drp-selected {
  color: var(--pc-text-soft);
  font-size: var(--type-small);
}

.daterangepicker select.monthselect,
.daterangepicker select.yearselect {
  border: 1px solid var(--pc-border);
  border-radius: 5px;
  background: var(--pc-control);
  color: var(--pc-text);
}

.daterangepicker .btn-primary {
  background: var(--pc-blue);
  border-color: var(--pc-blue);
  color: #fff;
}

.daterangepicker .btn-outline-dark {
  border-color: var(--pc-border-strong);
  background: var(--pc-control);
  color: var(--pc-text-soft);
}

/* Revylta forensic console refinement. Keep this last so the whole admin/account
   shell inherits the sharper productized security-review look. */
:root {
  --pc-bg: #050505;
  --pc-sidebar: #060606;
  --pc-surface: #0a0a0a;
  --pc-surface-2: #0f0f0f;
  --pc-surface-3: #141414;
  --pc-hover: #121212;
  --pc-border: #202020;
  --pc-border-strong: #323232;
  --pc-text: #f5f5f5;
  --pc-text-soft: #d0d0d0;
  --pc-text-muted: #8b8b8b;
  --pc-muted: #8b8b8b;
  --pc-faint: #626262;
  --pc-cyan: #ededed;
  --pc-green: #34d983;
  --pc-blue: #9ebdff;
  --pc-violet: #b9a6ff;
  --pc-amber: #eab84e;
  --pc-orange: #f38a46;
  --pc-red: #ff5c69;
  --pc-control: #111111;
  --pc-shadow: none;
}

body.app-body {
  background: var(--pc-bg);
  color: var(--pc-text);
  font-size: 13px;
  line-height: 1.42;
}

.workspace-shell {
  grid-template-columns: 232px minmax(0, 1fr);
}

.workspace-sidebar {
  width: 232px;
}

.workspace-sidebar-card,
.admin-sidebar-card {
  padding-top: 0;
}

.workspace-brand {
  min-height: 58px;
  padding: 0 13px;
}

.workspace-brand img {
  width: 134px;
  max-height: 34px;
}

.workspace-sidebar-top {
  gap: 12px;
}

.workspace-profile {
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 9px;
  padding: 8px 13px 0;
}

.workspace-avatar {
  width: 31px;
  height: 31px;
  border: 1px solid #252525;
  border-radius: 3px;
  background: #151515;
  color: #bbbbbb;
  font-size: var(--type-tiny);
}

.workspace-user-name {
  font-size: var(--type-caption);
}

.workspace-user-email,
.workspace-client-name {
  color: var(--pc-muted);
  font-size: var(--type-micro);
}

.workspace-nav-group {
  gap: 3px;
  padding: 0 13px;
}

.workspace-section-label {
  padding: 12px 10px 5px;
  color: var(--pc-faint);
  font-size: var(--type-micro);
  letter-spacing: 0.13em;
}

.workspace-nav-link {
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 3px;
  color: #aaaaaa;
  font-size: var(--type-caption);
  font-weight: 600;
}

.workspace-nav-icon {
  width: 15px;
  height: 15px;
  color: #727272;
}

.workspace-nav-link:hover {
  background: #0e0e0e;
}

.workspace-nav-link.active {
  border-color: #202020;
  border-radius: 3px;
  background: #111111;
  box-shadow: inset 2px 0 #e7e7e7;
}

.workspace-nav-link.active .workspace-nav-icon {
  color: #ffffff;
}

.workspace-nav-link[href="/account/trustx"] .workspace-nav-icon,
.workspace-nav-link[href="/account/trustx"]:hover .workspace-nav-icon,
.workspace-nav-link[href="/account/trustx"].active .workspace-nav-icon, .workspace-nav-link[href="/account/trustx"] span.workspace-nav-label {
  color: var(--pc-amber);
}

.workspace-sidebar-bottom {
  padding: 10px 13px 14px;
}

.console-toolbar {
  height: 48px;
  padding: 0 30px;
  background: rgba(5, 5, 5, 0.94);
}

.app-breadcrumb {
  font-size: var(--type-tiny);
}

.app-breadcrumb strong {
  font-size: var(--type-tiny);
}

.page-shell,
.narrow-shell {
  max-width: 1480px;
  padding: 28px 30px 64px;
  gap: 10px;
}

.page-header {
  min-height: 88px;
  padding-bottom: 18px;
  gap: 28px;
}

.eyebrow,
.metric-label,
.review-stat-label,
.workspace-table thead th,
.module-policy-table th,
.request-summary-label,
.request-summary-meta-label,
.ai-settings-stat-label,
.insight-label,
.public-report-eyebrow {
  color: var(--pc-faint);
  font-size: var(--type-micro);
  font-weight: 760;
  letter-spacing: 0.1em;
}

.page-title,
.workspace-title,
.public-report-title {
  font-size: 25px;
  line-height: 1.1;
}

.page-subtitle,
.panel-subtitle,
.metric-footnote,
.request-summary-footnote {
  font-size: var(--type-tiny);
  line-height: 1.45;
}

.panel-card,
.account-card,
.metric-card,
.stats-pill,
.insight-tile,
.finding-feed-item,
.api-key-card-details,
.module-usage-item,
.code-example-card,
.empty-state-panel,
.finding-card,
.behavioral-visual-card,
.finding-ai-highlight,
.request-summary-stat,
.request-summary-warning-panel,
.request-summary-meta-card,
.ai-settings-stat-card,
.ai-settings-connection-tile,
.ai-settings-empty-state,
.ai-settings-guidance,
.ai-settings-provider-card,
.ai-settings-builder-card,
.ai-settings-review-details,
.decision-card,
.report-run-hero,
.report-run-meta-item,
.report-run-step,
.policy-builder,
.api-key-policy-panel,
.api-key-policy-default-note,
.policy-note,
.table-responsive,
.card {
  border-color: var(--pc-border) !important;
  border-radius: 3px !important;
  background: var(--pc-surface) !important;
  box-shadow: none !important;
}

/* .panel-card {
  padding: 15px 17px;
} */

.panel-header {
  margin-bottom: 12px;
  padding-bottom: 0;
}

.panel-title {
  font-size: var(--type-small);
  letter-spacing: -0.01em;
}

.panel-subtitle {
  margin-top: 4px;
}

.metric-card,
.stats-pill,
.ai-settings-stat-card {
  position: relative;
  min-height: 88px;
  padding: 13px 15px;
  overflow: hidden;
}

.metric-card::after,
.request-summary-stat::after,
.connections-stat::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #343434;
}

.metric-value,
.stats-pill-value,
.review-stat-value {
  margin-top: 7px;
  font-size: 22px;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.metric-value.small-value {
  font-size: var(--type-small);
  line-height: 1.25;
}

.connections-stats {
  gap: 0;
  margin-bottom: 10px !important;
  border-color: var(--pc-border);
  background: transparent;
}

.connections-stat {
  position: relative;
  min-height: 98px;
  padding: 15px 22px 13px;
}

.connections-stat strong {
  font-size: 24px;
  letter-spacing: -0.025em;
}

.connections-stat span {
  margin-top: 8px;
  color: var(--pc-muted);
  font-size: var(--type-micro);
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workspace-table td,
.workspace-table th,
.table td,
.table th,
.module-policy-table td,
.module-policy-table th {
  padding: 9px 12px;
  font-size: 13px;
}

.workspace-table thead th,
.module-policy-table th {
  padding-top: 8px;
  padding-bottom: 8px;
}

.table-hover > tbody > tr:hover > * {
  --bs-table-bg-state: var(--pc-hover);
}

.btn,
.btn-primary,
.btn-outline-primary,
.btn-outline-dark,
.btn-outline-secondary,
.btn-outline-danger,
.btn-outline-success,
.btn-success,
.btn-danger,
.btn-warning,
input[type="submit"],
button[type="submit"] {
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 3px !important;
  font-size: var(--type-caption);
  font-weight: 700;
}

.btn-primary,
input[type="submit"],
button[type="submit"] {
  border-color: #ededed !important;
  background: #ededed !important;
  color: #080808 !important;
}

.btn-outline-primary,
.btn-outline-dark,
.btn-outline-secondary,
.btn-outline-danger,
.btn-outline-success,
.btn-success,
.btn-danger,
.btn-warning,
.btn:not(.btn-primary) {
  border-color: var(--pc-border-strong) !important;
  background: var(--pc-control) !important;
  color: #d8d8d8 !important;
}

.btn:hover {
  border-color: #4b4b4b !important;
  background: #151515 !important;
  color: #ffffff !important;
}

.btn-primary:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  border-color: #ffffff !important;
  background: #ffffff !important;
  color: #080808 !important;
}

.form-control,
.form-select,
textarea,
input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
select {
  min-height: 29px;
  border-radius: 3px;
  background-color: #080808;
  font-size: var(--type-tiny);
}

.form-label,
label,
legend {
  color: var(--pc-text-soft);
  font-size: var(--type-caption);
}

.badge,
.count-pill,
.table-warning-chip,
.ai-settings-chip,
.nav-user-chip,
.status-badge,
.request-status-pill,
.request-count-pill {
  min-height: 20px;
  padding: 3px 7px;
  border-radius: 3px;
  font-size: var(--type-micro);
  font-weight: 760;
}

.badge.text-bg-success,
.badge.bg-success,
.text-bg-success {
  border-color: color-mix(in srgb, var(--pc-green) 44%, var(--pc-border)) !important;
  background: rgba(52, 217, 131, 0.08) !important;
  color: #46dd91 !important;
}

.badge.text-bg-danger,
.badge.bg-danger,
.text-bg-danger {
  border-color: color-mix(in srgb, var(--pc-red) 48%, var(--pc-border)) !important;
  background: rgba(255, 92, 105, 0.09) !important;
  color: #ff7480 !important;
}

.badge.text-bg-warning,
.badge.bg-warning,
.text-bg-warning {
  border-color: color-mix(in srgb, var(--pc-amber) 48%, var(--pc-border)) !important;
  background: rgba(234, 184, 78, 0.09) !important;
  color: #f1c861 !important;
}

.badge.text-bg-secondary,
.badge.bg-secondary,
.text-bg-secondary,
.badge.text-bg-light,
.text-bg-light {
  border-color: #333333 !important;
  background: #121212 !important;
  color: #a1a1a1 !important;
}

.progress,
.progress-thin,
.report-run-progress-bar,
.confidence-track,
.funnel-track,
.scorecard-bar {
  height: 4px;
  background: #1a1a1a;
}

.progress-bar,
.report-run-progress-fill,
.funnel-fill,
.scorecard-seg,
.confidence-fill {
  background: #e5e5e5;
}

.request-command-hero {
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid var(--pc-border);
  border-radius: 0;
  background: transparent;
}

.request-command-actions {
  gap: 7px;
}

.request-command-strip {
  gap: 10px;
}

.admin-request-inspect .request-summary-stat,
.request-summary-stat {
  min-height: 92px;
  padding: 14px 16px 13px;
  border-width: 1px;
  border-radius: 3px !important;
  background: var(--pc-surface) !important;
}

.admin-request-inspect .request-summary-label {
  font-size: var(--type-micro);
}

.admin-request-inspect .request-summary-value,
.request-summary-value {
  margin-top: 7px;
  font-size: 22px;
  font-weight: 780;
}

.admin-request-inspect .request-summary-footnote {
  margin-top: 6px;
  font-size: var(--type-micro);
}

.admin-request-inspect .request-summary-stat.risk-tone-high,
.admin-request-inspect .request-summary-stat.risk-tone-danger,
.admin-request-inspect .request-summary-stat.risk-tone-error,
.request-summary-stat-core.risk-tone-high,
.request-summary-stat-score.risk-tone-high {
  background: linear-gradient(180deg, rgba(255, 92, 105, 0.09), var(--pc-surface) 75%) !important;
}

.admin-request-inspect .request-summary-stat.risk-tone-medium,
.admin-request-inspect .request-summary-stat.risk-tone-warning {
  background: linear-gradient(180deg, rgba(234, 184, 78, 0.09), var(--pc-surface) 75%) !important;
}

.admin-request-inspect .request-summary-stat.risk-tone-low,
.admin-request-inspect .request-summary-stat.risk-tone-success {
  background: linear-gradient(180deg, rgba(52, 217, 131, 0.08), var(--pc-surface) 75%) !important;
}

.request-inspector-layout {
  gap: 16px;
}

.request-context-rail,
.request-inspector-main {
  gap: 10px;
}

.request-decision-grid {
  gap: 14px;
}

.request-warning-band {
  min-height: 82px;
  padding: 14px;
  border-radius: 3px;
}

.request-warning-title {
  font-size: 18px;
}

.request-warning-subtitle {
  font-size: var(--type-small);
}

.summary-list-row,
.admin-request-inspect .summary-list-row {
  padding: 8px 0;
  border-bottom-color: #181818;
}

.summary-key,
.admin-request-inspect .summary-key {
  font-size: var(--type-micro);
}

.summary-value,
.admin-request-inspect .summary-value {
  font-size: var(--type-tiny);
}

.module-evidence-list,
.payload-drawer,
.admin-module-health-card,
.client-activity-list,
.client-activity-card,
.connection-card,
.policy-summary-card,
.policy-preset-bar,
.policy-module-group,
.policy-module-card,
.rule-card,
.integration-fact-card,
.integration-code-card,
.integration-tab {
  border-radius: 3px !important;
}

.module-evidence-row {
  border-left-width: 2px;
}

.module-evidence-summary {
  min-height: 58px;
  padding: 10px 11px;
}

.module-code-pill {
  min-height: 25px;
  border-radius: 3px;
  font-size: var(--type-minimum);
}

.module-evidence-facts span {
  border-radius: 3px;
  font-size: var(--type-micro);
}

.admin-module-health-grid {
  gap: 8px;
}

.admin-module-health-card {
  min-height: 88px;
  padding: 12px;
}

.admin-module-health-foot {
  font-size: var(--type-micro);
}

.client-activity-card {
  min-height: 58px;
  padding: 10px 12px;
}

.client-activity-name {
  font-size: var(--type-small);
}

.client-activity-meta,
.client-activity-time {
  font-size: var(--type-tiny);
}

.client-activity-count {
  padding: 7px 9px;
  border-radius: 3px;
}

.json-block {
  background: #060606;
  color: #aaaaaa;
  font-size: var(--type-tiny);
}

@media (max-width: 991.98px) {
  .workspace-shell {
    grid-template-columns: 1fr;
  }

  .workspace-sidebar {
    width: 100%;
  }

  .workspace-sidebar-card,
  .admin-sidebar-card {
    padding: 9px 12px;
  }

  .workspace-sidebar-top {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding-bottom: 0;
  }

  .workspace-brand {
    min-height: 34px;
    padding: 0;
  }

  .workspace-brand img {
    width: 110px;
  }

  .workspace-profile {
    margin-left: auto;
    padding: 0;
  }

  .workspace-nav-group {
    padding: 0;
  }
}

@media (max-width: 575.98px) {
  .page-shell,
  .narrow-shell {
    padding: 15px 12px 36px;
  }

  .page-header {
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .connections-stat {
    min-height: 88px;
    padding: 14px 16px 12px;
  }

  .workspace-user-name,
  .workspace-user-email {
    display: none;
  }
}

/* Uploaded request-review layout */
.request-reference {
  max-width: 1480px;
  padding-top: 0;
}

.request-reference-header {
  position: sticky;
  top: 48px;
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  margin: 0 -30px;
  padding: 20px 30px 18px;
  background: rgba(5, 5, 5, 0.94);
  border-bottom: 1px solid var(--pc-border);
  backdrop-filter: blur(14px);
}

.request-reference .breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 9px;
  color: var(--pc-muted);
  font-size: var(--type-tiny);
}

.request-reference .breadcrumbs a {
  color: #bdbdbd;
  text-decoration: none;
}

.request-reference .title-row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.request-reference .title-row h1 {
  margin: 0;
  color: var(--pc-text);
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.request-reference .meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 9px;
  color: var(--pc-muted);
  font-size: var(--type-tiny);
}

.request-reference .meta-line strong {
  color: #cfcfcf;
  font-weight: 500;
}

.request-reference .header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.request-reference .header-actions form {
  margin: 0;
}

.request-reference .button {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--pc-border-strong);
  border-radius: 3px;
  background: #111111;
  color: #d8d8d8;
  font-size: var(--type-caption);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.request-reference .button:hover {
  border-color: #4b4b4b;
  background: #151515;
  color: #ffffff;
}

.request-reference .button.ghost {
  background: transparent;
  color: #b8b8b8;
}

.request-reference .button.primary {
  border-color: #ededed;
  background: #ededed;
  color: #080808;
}

.request-reference .button.primary:hover {
  background: #ffffff;
}

.request-reference .button.full {
  width: 100%;
}

.request-reference .compact-button {
  padding: 7px 10px;
}

.request-reference-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 16px;
}

.request-reference-content {
  min-width: 0;
}

.request-reference .page-rail {
  position: sticky;
  top: 178px;
  display: grid;
  height: max-content;
  gap: 10px;
  margin-top: 18px;
}

.request-reference .rail-card {
  padding: 8px;
  border: 1px solid var(--pc-border);
  border-radius: 3px;
  background: var(--pc-surface);
}

.request-reference .rail-label {
  display: block;
  margin: 3px 7px 8px;
  color: var(--pc-faint);
  font-size: var(--type-micro);
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.request-reference .rail-card a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  border-radius: 3px;
  color: #8d8d8d;
  font-size: var(--type-tiny);
  text-decoration: none;
}

.request-reference .rail-card a:hover,
.request-reference .rail-card a.active {
  background: #121212;
  color: #eeeeee;
}

.request-reference .rail-card a.active {
  box-shadow: inset 2px 0 #eeeeee;
}

.request-reference .rail-card a b {
  font-size: var(--type-micro);
}

.request-reference .review-card {
  padding: 14px;
}

.request-reference .review-card .rail-label {
  margin: 0 0 10px;
}

.request-reference .review-card > strong {
  display: block;
  color: var(--pc-text);
  font-size: var(--type-small);
}

.request-reference .review-card p {
  margin: 6px 0 13px;
  color: var(--pc-muted);
  font-size: var(--type-tiny);
  line-height: 1.55;
}

.request-reference .kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 10px;
}

.request-reference .kpi {
  position: relative;
  display: flex;
  min-height: 98px;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px 16px 13px;
  border: 1px solid var(--pc-border);
  border-radius: 3px;
  background: var(--pc-surface);
  overflow: hidden;
}

.request-reference .kpi::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #343434;
}

.request-reference .kpi.danger {
  background: linear-gradient(180deg, rgba(255, 92, 105, 0.09), var(--pc-surface) 75%);
}

.request-reference .kpi.danger::after {
  background: var(--pc-red);
}

.request-reference .kpi.warning {
  background: linear-gradient(180deg, rgba(243, 185, 31, 0.09), var(--pc-surface) 75%);
}

.request-reference .kpi.warning::after {
  background: var(--pc-amber);
}

.request-reference .kpi.success {
  background: linear-gradient(180deg, rgba(25, 201, 137, 0.09), var(--pc-surface) 75%);
}

.request-reference .kpi.success::after {
  background: var(--pc-green);
}

.request-reference .kpi span,
.request-reference .kpi small {
  display: block;
}

.request-reference .kpi span {
  color: var(--pc-muted);
  font-size: var(--type-micro);
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.request-reference .kpi strong {
  display: block;
  margin-top: 7px;
  color: var(--pc-text);
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.025em;
}

.request-reference .kpi small {
  color: var(--pc-muted);
  font-size: var(--type-micro);
}

.request-reference .review-grid {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.request-reference .primary-grid {
  grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.6fr);
}

.request-reference .secondary-grid {
  grid-template-columns: 1fr 1.3fr;
}

.request-reference .panel {
  border: 1px solid var(--pc-border);
  border-radius: 3px;
  background: var(--pc-surface);
  overflow: hidden;
}

.request-reference .panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 17px 13px;
  border-bottom: 1px solid var(--pc-border);
}

.request-reference .panel-heading h2 {
  margin: 0;
  color: var(--pc-text);
  font-size: var(--type-small);
  letter-spacing: -0.01em;
}

.request-reference .panel-heading p {
  margin: 4px 0 0;
  color: var(--pc-muted);
  font-size: var(--type-micro);
}

.request-reference .icon-button,
.request-reference .text-button {
  border: 0;
  background: none;
  color: #9d9d9d;
  cursor: pointer;
  font-size: var(--type-tiny);
}

.request-reference .details-list {
  margin: 0;
  padding: 6px 17px 13px;
}

.request-reference .details-list > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid #181818;
}

.request-reference .details-list > div:last-child {
  border-bottom: 0;
}

.request-reference .details-list.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
}

.request-reference .details-list dt {
  color: var(--pc-muted);
  font-size: var(--type-micro);
}

.request-reference .details-list dd {
  margin: 0;
  color: var(--pc-text);
  text-align: right;
  font-size: var(--type-tiny);
  font-weight: 700;
}

.request-reference .positive {
  color: var(--pc-green) !important;
}

.request-reference .negative {
  color: var(--pc-red) !important;
}

.request-reference .status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-size: var(--type-micro);
  font-weight: 760;
  line-height: 1.25;
  white-space: nowrap;
}

.request-reference .status-pill.blocked {
  color: #ff7480;
  background: rgba(255, 92, 105, 0.09);
}

.request-reference .status-pill.passed {
  color: #46dd91;
  background: rgba(52, 217, 131, 0.08);
}

.request-reference .status-pill.neutral {
  color: #a1a1a1;
  background: #121212;
  border-color: #333333;
}

.admin-lock-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border: 1px solid #333333;
  border-radius: 3px;
  background: #121212;
  color: #a1a1a1;
  font-size: var(--type-micro);
  font-weight: 760;
  line-height: 1.25;
  white-space: nowrap;
}

.admin-lock-pill .workspace-nav-icon {
  width: 11px;
  height: 11px;
}

.admin-lock-row {
  margin: 10px 0 6px;
}

.request-reference .decision-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: center;
  margin: 15px 17px 8px;
  padding: 14px;
  border: 1px solid rgba(255, 92, 105, 0.25);
  border-radius: 3px;
  background: rgba(255, 92, 105, 0.09);
}

.request-reference .decision-hero.is-clear {
  border-color: rgba(52, 217, 131, 0.28);
  background: rgba(52, 217, 131, 0.08);
}

.request-reference .risk-mark {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(255, 92, 105, 0.35);
  border-radius: 3px;
  background: rgba(255, 92, 105, 0.12);
  color: #ff7a86;
  font-size: var(--type-tiny);
  font-weight: 800;
}

.request-reference .decision-hero.is-clear .risk-mark {
  border-color: rgba(52, 217, 131, 0.35);
  background: rgba(52, 217, 131, 0.12);
  color: #46dd91;
}

.request-reference .decision-hero .eyebrow {
  display: block;
  margin: 0 0 4px;
  color: #bdbdbd;
}

.request-reference .decision-hero > div > strong {
  display: block;
  color: var(--pc-text);
  font-size: 13px;
}

.request-reference .decision-hero p {
  margin: 4px 0 0;
  color: #bdbdbd;
  font-size: var(--type-micro);
}

.request-reference .risk-score {
  text-align: right;
}

.request-reference .risk-score span,
.request-reference .risk-score small {
  display: block;
  color: #bdbdbd;
  font-size: var(--type-minimum);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.request-reference .risk-score strong {
  display: inline-block;
  color: var(--pc-text);
  margin-top: 3px;
  font-size: 22px;
  line-height: 1;
}

.request-reference .risk-score small {
  display: inline;
}

.request-reference .warning-list {
  padding: 0 17px 7px;
}

.request-reference .warning-list > div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--pc-border);
}

.request-reference .warning-list > div:last-child {
  border-bottom: 0;
}

.request-reference .warning-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pc-amber);
  box-shadow: 0 0 0 4px rgba(234, 184, 78, 0.09);
}

.request-reference .danger-dot {
  background: var(--pc-red);
  box-shadow: 0 0 0 4px rgba(255, 92, 105, 0.09);
}

.request-reference .clear-dot {
  background: var(--pc-green);
  box-shadow: 0 0 0 4px rgba(52, 217, 131, 0.08);
}

.request-reference .warning-list p {
  margin: 0;
}

.request-reference .warning-list p strong,
.request-reference .warning-list p small {
  display: block;
}

.request-reference .warning-list p strong {
  color: var(--pc-text);
  font-size: var(--type-tiny);
}

.request-reference .warning-list p small {
  margin-top: 2px;
  color: var(--pc-muted);
  font-size: var(--type-micro);
}

.request-reference .warning-list b {
  color: var(--pc-red);
  font-size: var(--type-micro);
}

.request-reference .warning-list b.medium {
  color: var(--pc-amber);
}

.request-reference .warning-list b.low {
  color: var(--pc-green);
}

.request-reference .decision-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding: 10px 17px 17px;
}

.request-reference .decision-meta > div,
.request-reference .score-row > div {
  padding: 9px 10px;
  border: 1px solid var(--pc-border);
  border-radius: 3px;
  background: var(--pc-surface-2);
}

.request-reference .decision-meta span,
.request-reference .decision-meta strong,
.request-reference .score-row span,
.request-reference .score-row strong {
  display: block;
}

.request-reference .decision-meta span,
.request-reference .score-row span {
  color: var(--pc-muted);
  font-size: var(--type-minimum);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.request-reference .decision-meta strong,
.request-reference .score-row strong {
  margin-top: 5px;
  color: var(--pc-text);
  font-size: var(--type-tiny);
}

.request-reference .score-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  padding: 14px 17px 8px;
}

.request-reference .muted-callout {
  margin: 0 17px 17px;
  padding: 9px 10px;
  border: 1px dashed #313131;
  border-radius: 3px;
  color: var(--pc-muted);
  font-size: var(--type-micro);
}

.request-reference .evidence-section,
.request-reference .notes-panel,
.request-reference .telemetry-panel,
.request-reference .payload-panel {
  margin-top: 10px;
}

.request-reference .section-heading {
  align-items: center;
}

.request-reference .section-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.request-reference .search-box {
  display: flex;
  height: 29px;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid var(--pc-border);
  border-radius: 3px;
  background: #080808;
  color: #777777;
}

.request-reference .search-box span {
  font-size: var(--type-micro);
}

.request-reference .search-box input {
  width: 118px;
  min-height: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #dddddd;
  font-size: var(--type-micro);
}

.request-reference .segment-group {
  display: flex;
}

.request-reference .segmented {
  padding: 6px 8px;
  border: 1px solid var(--pc-border);
  border-right: 0;
  background: transparent;
  color: #858585;
  font-size: var(--type-micro);
  cursor: pointer;
}

.request-reference .segmented:first-child {
  border-radius: 3px 0 0 3px;
}

.request-reference .segmented:last-child {
  border-right: 1px solid var(--pc-border);
  border-radius: 0 3px 3px 0;
}

.request-reference .segmented.active {
  border-color: #393939;
  background: #171717;
  color: #f0f0f0;
}

.request-reference .segmented b {
  margin-left: 3px;
  font-size: var(--type-minimum);
}

.request-reference .evidence-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--pc-border);
  background: #080808;
  color: #898989;
  font-size: var(--type-micro);
}

.request-reference .evidence-summary span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.request-reference .evidence-summary i {
  width: 15px;
  height: 3px;
  border-radius: 1px;
}

.request-reference .success-bar {
  background: var(--pc-green);
}

.request-reference .danger-bar {
  background: var(--pc-red);
}

.request-reference .neutral-bar {
  background: #4a4a4a;
}

.request-reference .evidence-summary strong {
  margin-left: auto;
  color: #bcbcbc;
  font-size: var(--type-micro);
}

.request-reference .module-list {
  display: grid;
  gap: 6px;
  padding: 9px;
}

.request-reference .module-card {
  border: 1px solid var(--pc-border);
  border-left: 2px solid var(--pc-green);
  border-radius: 3px;
  background: #080808;
  overflow: hidden;
}

.request-reference .module-card.flagged {
  border-left-color: var(--pc-red);
}

/* Produced no verdict — deliberately reads as absent rather than as a result. */
.request-reference .module-card.not-run {
  border-left-color: #4a4a4a;
  background: #060606;
}

.request-reference .module-card:hover {
  border-top-color: #363636;
  border-right-color: #363636;
  border-bottom-color: #363636;
  background: #0b0b0b;
}

.request-reference .module-card details,
.request-reference .module-evidence-details {
  display: block;
}

.request-reference .module-card summary {
  list-style: none;
}

.request-reference .module-card summary::-webkit-details-marker {
  display: none;
}

.request-reference .module-header {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 11px;
  cursor: pointer;
}

.request-reference .module-main,
.request-reference .module-status {
  display: flex;
  align-items: center;
  gap: 9px;
}

.request-reference .module-main {
  min-width: 0;
}

.request-reference .module-index {
  display: grid;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid #242424;
  border-radius: 3px;
  background: #121212;
  color: #757575;
  font-size: var(--type-minimum);
  font-weight: 760;
}

.request-reference .module-main h3 {
  margin: 0;
  color: var(--pc-text);
  font-size: var(--type-tiny);
}

.request-reference .module-main p {
  margin: 3px 0 0;
  color: var(--pc-green);
  font-size: var(--type-tiny);
}

.request-reference .module-card.flagged .module-main p {
  color: #ff7985;
}

.request-reference .module-card.not-run .module-main p {
  color: #8a8a8a;
}

.request-reference .score-chip {
  color: #7d7d7d;
  font-size: var(--type-minimum);
}

.request-reference .chevron {
  color: #777777;
  font-size: var(--type-caption);
  transition: transform 0.18s ease;
}

.request-reference .module-card details[open] .chevron {
  transform: rotate(180deg);
}

.request-reference .module-body {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-top: 1px solid var(--pc-border);
}

.request-reference .module-body span,
.request-reference .module-body strong {
  display: block;
}

.request-reference .module-body span {
  color: var(--pc-muted);
  font-size: var(--type-minimum);
}

.request-reference .module-body strong {
  margin-top: 3px;
  color: var(--pc-text);
  font-size: var(--type-micro);
}

.request-reference .finding-ai-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.request-reference .finding-ai-highlight {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--pc-border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
    #0d0d0d;
}

.request-reference .finding-ai-highlight-label {
  color: var(--pc-muted);
  font-size: var(--type-minimum);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.request-reference .finding-ai-highlight-value {
  margin-top: 8px;
  color: var(--pc-text);
  font-size: var(--type-small);
  font-weight: 760;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.request-reference .finding-ai-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  gap: 12px;
  align-items: start;
}

.request-reference .finding-ai-narratives {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.request-reference .finding-ai-panel {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--pc-border);
  border-radius: 8px;
  background: #0a0a0a;
}

.request-reference .finding-ai-panel-label {
  display: block;
  margin-bottom: 8px;
  color: var(--pc-muted);
  font-size: var(--type-minimum);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.request-reference .finding-ai-panel p {
  margin: 0;
  color: var(--pc-text);
  font-size: var(--type-tiny);
  line-height: 1.55;
}

.request-reference .finding-ai-notes {
  background:
    radial-gradient(circle at top left, rgba(234, 184, 78, 0.08), transparent 38%),
    #0a0a0a;
}

.request-reference .finding-ai-notes .warning-list {
  padding: 0;
}

.request-reference .evidence-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 31px;
  padding: 7px 9px;
  border: 1px solid var(--pc-border-strong);
  border-radius: 3px;
  background: transparent;
  color: #c2c2c2;
  font-size: var(--type-micro);
  cursor: pointer;
}

.request-reference .module-evidence-details {
  grid-column: 1 / -1;
  border: 1px solid var(--pc-border);
  border-radius: 3px;
  background: #070707;
}

.request-reference .module-evidence-details .json-block {
  margin: 0;
  max-height: 320px;
  border: 0;
  border-top: 1px solid var(--pc-border);
  border-radius: 0;
}

.request-reference .empty-state {
  padding: 35px;
  color: var(--pc-muted);
  text-align: center;
  font-size: var(--type-tiny);
}

.request-reference .notes-panel textarea {
  width: calc(100% - 34px);
  min-height: 90px;
  margin: 14px 17px 17px;
  padding: 11px;
  border: 1px solid var(--pc-border);
  border-radius: 3px;
  background: #070707;
  color: var(--pc-text);
  font-size: var(--type-tiny);
  resize: vertical;
  outline: 0;
}

.request-reference .telemetry-panel .behavioral-visual-grid {
  padding: 14px 17px 10px;
}

.request-reference .raw-details {
  margin: 0 17px 17px;
  border: 1px solid var(--pc-border);
  border-radius: 3px;
  overflow: hidden;
}

.request-reference .raw-details summary {
  display: flex;
  justify-content: space-between;
  padding: 9px 10px;
  color: var(--pc-text);
  cursor: pointer;
  font-size: var(--type-micro);
  font-weight: 700;
}

.request-reference .raw-details summary b {
  color: #777777;
  font-size: var(--type-minimum);
}

.request-reference .raw-details pre {
  margin: 0;
  padding: 11px;
  border-top: 1px solid var(--pc-border);
  background: #060606;
  color: #aaaaaa;
  font-size: var(--type-micro);
  overflow: auto;
}

.request-reference .payload-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px 17px 17px;
}

.request-reference .payload-button {
  display: block;
  border: 1px solid var(--pc-border);
  border-radius: 3px;
  background: #0d0d0d;
  overflow: hidden;
}

.request-reference .payload-button summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px;
  list-style: none;
  cursor: pointer;
}

.request-reference .payload-button summary::-webkit-details-marker {
  display: none;
}

.request-reference .payload-button:hover {
  border-color: #3b3b3b;
  background: #111111;
}

.request-reference .payload-button b,
.request-reference .payload-button small {
  display: block;
}

.request-reference .payload-button b {
  color: var(--pc-text);
  font-size: var(--type-tiny);
}

.request-reference .payload-button small {
  margin-top: 3px;
  color: var(--pc-muted);
  font-size: var(--type-minimum);
}

.request-reference .payload-button em {
  color: #aaaaaa;
  font-size: var(--type-micro);
  font-style: normal;
}

.request-reference .payload-button .json-block {
  max-height: 320px;
  border: 0;
  border-top: 1px solid var(--pc-border);
  border-radius: 0;
}

@media (max-width: 1180px) {
  .request-reference-layout {
    grid-template-columns: 1fr;
  }

  .request-reference .page-rail {
    display: none;
  }

  .request-reference .primary-grid,
  .request-reference .secondary-grid {
    grid-template-columns: 1fr;
  }

  .request-reference .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .workspace-sidebar-card,
  .admin-sidebar-card {
    padding: 9px 12px;
  }

  .workspace-sidebar-top {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .workspace-brand {
    flex: 0 0 auto;
  }

  .workspace-brand img {
    width: 112px;
  }

  .workspace-profile {
    display: flex;
    order: 3;
    margin-left: 0;
  }

  .workspace-profile > div:not(.workspace-avatar) {
    display: none;
  }

  .workspace-nav-group {
    order: 2;
    margin-left: auto;
    padding: 0;
  }

  .workspace-section-label {
    display: none;
  }

  .workspace-nav {
    flex-direction: row;
  }

  .workspace-nav-link {
    display: none;
    min-width: 48px;
    min-height: 40px;
    justify-content: center;
    padding: 8px;
  }

  .workspace-nav-link.active {
    display: flex;
  }

  .workspace-nav-link span {
    display: none;
  }

  .workspace-nav-icon {
    width: 16px;
    height: 16px;
  }

  .workspace-sidebar-bottom {
    display: none;
  }

  .request-reference-header {
    position: static;
    margin: 0 -12px;
    padding: 15px 12px;
    align-items: flex-start;
    flex-direction: column;
  }

  .request-reference .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .request-reference .title-row h1 {
    font-size: 20px;
  }

  .request-reference .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }

  .request-reference .decision-hero {
    grid-template-columns: auto 1fr;
  }

  .request-reference .risk-score {
    grid-column: 2;
    text-align: left;
  }

  .request-reference .decision-meta,
  .request-reference .score-row {
    grid-template-columns: 1fr 1fr;
  }

  .request-reference .details-list.two-col {
    grid-template-columns: 1fr;
  }

  .request-reference .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .request-reference .section-tools {
    justify-content: flex-start;
  }

  .request-reference .search-box {
    width: 100%;
  }

  .request-reference .search-box input {
    width: 100%;
  }

  .request-reference .module-status .score-chip {
    display: none;
  }

  .request-reference .module-body,
  .request-reference .payload-actions,
  .request-reference .finding-ai-layout {
    grid-template-columns: 1fr;
  }
}
.button-with-icon,
.tab-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
}

.tab-with-icon {
  justify-content: flex-start;
}

.button-with-icon > span,
.tab-with-icon > span {
  min-width: 0;
  line-height: 1.1;
}

.tab-label-copy {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}

.ui-action-icon {
  width: 0.8rem;
  height: 0.8rem;
  flex: 0 0 auto;
  stroke-width: 2.15;
}

.button-with-icon > span {
  white-space: nowrap;
}

.request-reference .button.button-with-icon,
.request-reference .icon-button.button-with-icon,
.request-reference .text-button.button-with-icon,
.request-reference .segmented.tab-with-icon {
  gap: 0.35rem;
}

.request-reference .button.button-with-icon {
  padding-left: 10px;
  padding-right: 10px;
}

.request-reference .button.button-with-icon .ui-action-icon,
.request-reference .icon-button.button-with-icon .ui-action-icon,
.request-reference .text-button.button-with-icon .ui-action-icon,
.request-reference .segmented.tab-with-icon .ui-action-icon {
  width: 0.72rem;
  height: 0.72rem;
}

.request-reference .button.button-with-icon > span,
.request-reference .icon-button.button-with-icon > span,
.request-reference .text-button.button-with-icon > span,
.request-reference .segmented.tab-with-icon > span {
  white-space: nowrap;
}

.client-admin-tab.button-with-icon,
.client-admin-tab.tab-with-icon,
.signature-tab.tab-with-icon,
.integration-tab.tab-with-icon {
  gap: 0.5rem;
}

.client-admin-tab.button-with-icon .ui-action-icon,
.client-admin-tab.tab-with-icon .ui-action-icon {
  width: 0.78rem;
  height: 0.78rem;
}

.signature-tab.tab-with-icon .ui-action-icon {
  width: 0.9rem;
  height: 0.9rem;
}

.integration-tab.tab-with-icon .ui-action-icon {
  width: 0.82rem;
  height: 0.82rem;
}

.client-admin-tab.button-with-icon > span,
.client-admin-tab.tab-with-icon > span,
.integration-tab.tab-with-icon > span,
.signature-tab.tab-with-icon > span {
  white-space: nowrap;
}

.signature-discovery-table {
  table-layout: fixed;
  min-width: 1180px;
}

.signature-discovery-table code {
  white-space: normal;
  word-break: break-word;
}

.signature-discovery-actions {
  white-space: normal;
}

.signature-discovery-actions form {
  display: inline-flex;
  margin: 2px 0 2px 4px;
  vertical-align: middle;
}

.signature-discovery-table-pending .signature-discovery-col-category,
.signature-discovery-table-observed .signature-discovery-col-category {
  width: 10%;
}

.signature-discovery-table-pending .signature-discovery-col-signature {
  width: 30%;
}

.signature-discovery-table-pending .signature-discovery-col-seen,
.signature-discovery-table-pending .signature-discovery-col-clients {
  width: 7%;
}

.signature-discovery-table-pending .signature-discovery-col-proposal {
  width: 22%;
}

.signature-discovery-table-pending .signature-discovery-col-decision {
  width: 24%;
}

.signature-discovery-table-observed .signature-discovery-col-signature {
  width: 32%;
}

.signature-discovery-table-observed .signature-discovery-col-seen,
.signature-discovery-table-observed .signature-discovery-col-clients {
  width: 5%;
}

.signature-discovery-table-observed .signature-discovery-col-last-seen {
  width: 10%;
}

.signature-discovery-table-observed .signature-discovery-col-decision {
  width: 38%;
}

.signature-discovery-table-resolved .signature-discovery-col-category,
.signature-discovery-table-resolved .signature-discovery-col-when {
  width: 12%;
}

.signature-discovery-table-resolved .signature-discovery-col-signature {
  width: 46%;
}

.signature-discovery-table-resolved .signature-discovery-col-status {
  width: 14%;
}

.signature-discovery-table-resolved .signature-discovery-col-decided-by {
  width: 16%;
}
.position-relative{position: relative !important;}

.border {
    border-color: var(--pc-border) !important;
    background: var(--pc-surface) !important;
}

.workspace-sidebar-card,
.workspace-sidebar {
  overflow-y: auto;
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* Legacy Edge/IE */
}

.workspace-sidebar-card::-webkit-scrollbar,
.workspace-sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
.workspace-sidebar-card *,
.workspace-sidebar * {
  scrollbar-width: none;
}

.workspace-sidebar-card *::-webkit-scrollbar,
.workspace-sidebar *::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.form-text {
  color: var(--pc-muted) !important;
}

.input-group-text {
  background-color: transparent !important;
  border: var(--bs-border-width) solid #323232 !important;
}
/* Sentinel snapshot evidence: captions inherit the console's current theme. */
.sentinel-investigation table caption {
  color: var(--pc-text-soft, #565b61);
}
.sentinel-investigation .table-responsive:focus-visible,
.sentinel-investigation summary:focus-visible {
  outline: 2px solid var(--pc-text, #333);
  outline-offset: 3px;
}

/* Sentinel console pages share the same compact visual grammar as the admin
   surfaces. Keep the cinematic episode hero separate, but make the operational
   panels, forms and tables feel native to the surrounding console. */
.sentinel-console-page .sentinel-page-header {
  min-height: 88px;
  margin-bottom: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--pc-border);
}

.sentinel-console-page .sentinel-page-header > div:first-child {
  max-width: 820px;
}

.sentinel-console-page .sentinel-header-actions {
  gap: 7px;
}

.sentinel-console-page .sentinel-panel,
.sentinel-console-page .sentinel-filter-panel,
.sentinel-console-page .sentinel-ordering,
.sentinel-console-page .sentinel-banner {
  margin-bottom: 10px;
  padding: 15px 17px;
  border-color: var(--pc-border);
  border-radius: 3px;
  background: var(--pc-surface);
  box-shadow: none;
}

.sentinel-console-page .sentinel-filter-panel {
  background: #0b0b0b;
}

.sentinel-console-page .sentinel-panel > h2,
.sentinel-console-page .sentinel-panel > header h2 {
  margin: 0 0 10px;
  color: var(--pc-text);
  font-size: var(--type-small);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.sentinel-console-page .sentinel-panel > h2:last-child {
  margin-bottom: 0;
}

.sentinel-console-page .sentinel-panel .table-responsive {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.sentinel-console-page .sentinel-table {
  margin-bottom: 0;
}

.sentinel-console-page .sentinel-table caption {
  padding: 0 0 10px;
  color: var(--pc-muted);
  font-size: var(--type-tiny);
  line-height: 1.45;
}

.sentinel-console-page .sentinel-table thead th {
  color: var(--pc-faint);
  font-size: var(--type-micro);
  font-weight: 760;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.sentinel-console-page .sentinel-table td,
.sentinel-console-page .sentinel-table th {
  padding: 9px 12px;
  border-color: #181818;
  color: var(--pc-text-soft);
  font-size: 13px;
  vertical-align: middle;
}

.sentinel-console-page .sentinel-table tbody th,
.sentinel-console-page .sentinel-table tbody th a {
  color: var(--pc-text);
  font-weight: 680;
}

.sentinel-console-page .sentinel-muted {
  color: var(--pc-muted);
}

.sentinel-console-page .sentinel-badge {
  min-height: 20px;
  margin: 0 3px 0 0;
  padding: 3px 7px;
  border-radius: 3px;
  font-size: var(--type-micro);
  font-weight: 760;
  line-height: 1.2;
  text-transform: capitalize;
}

.sentinel-console-page .sentinel-badge--neutral {
  border-color: #333;
  background: #121212;
  color: #a1a1a1;
}

.sentinel-console-page .sentinel-badge--success {
  border-color: color-mix(in srgb, var(--pc-green) 44%, var(--pc-border));
  background: rgba(52, 217, 131, .08);
  color: #46dd91;
}

.sentinel-console-page .sentinel-badge--warning {
  border-color: color-mix(in srgb, var(--pc-amber) 48%, var(--pc-border));
  background: rgba(234, 184, 78, .09);
  color: #f1c861;
}

.sentinel-console-page .sentinel-badge--danger {
  border-color: color-mix(in srgb, var(--pc-red) 48%, var(--pc-border));
  background: rgba(255, 92, 105, .09);
  color: #ff7480;
}

.sentinel-console-page .sentinel-inline-search {
  grid-template-columns: repeat(2, minmax(220px, 1fr)) auto;
  gap: 10px;
  margin-top: 0;
}

.sentinel-console-page.sentinel-accounts .sentinel-inline-search {
  grid-template-columns: minmax(220px, 1fr) auto auto;
}

.sentinel-console-page .sentinel-filter-field .form-label {
  display: block;
  margin: 0 0 5px;
}

.sentinel-console-page .sentinel-inline-search > .btn {
  align-self: end;
}

.sentinel-console-page .sentinel-scope-switch {
  display: flex;
  gap: 7px;
  margin-bottom: 12px;
}

.sentinel-console-page .sentinel-guided-form fieldset {
  margin-bottom: 10px;
  padding: 15px;
  border-color: var(--pc-border);
  border-radius: 3px;
  background: #0a0a0a;
}

.sentinel-console-page .sentinel-guided-form legend {
  padding: 0 5px;
  color: var(--pc-text-soft);
  font-size: var(--type-small);
  font-weight: 700;
}

.sentinel-console-page .sentinel-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.sentinel-console-page .sentinel-form-grid label:not(.small),
.sentinel-console-page .sentinel-guided-form .form-check-label {
  margin-bottom: 5px;
  color: var(--pc-text-soft);
  font-size: var(--type-caption);
  font-weight: 600;
}

.sentinel-console-page .sentinel-empty-state {
  padding: 18px;
  border-color: var(--pc-border-strong);
  border-radius: 3px;
  background: #090909;
}

.sentinel-console-page .sentinel-empty-state h3 {
  font-size: var(--type-small);
}

.sentinel-program-detail .sentinel-panel:has(> .sentinel-empty-state) {
  padding: 0;
  border: 0;
  background: transparent;
}

.sentinel-program-detail .sentinel-panel > .sentinel-empty-state {
  border-style: solid;
  border-color: var(--pc-border-strong);
}

.sentinel-program-detail .sentinel-definition-grid,
.sentinel-integration-readiness .sentinel-definition-grid {
  font-size: var(--type-tiny);
}

.sentinel-integration-readiness .sentinel-section-heading {
  margin-bottom: 10px;
}

.sentinel-integration-readiness .sentinel-section-heading h2 {
  margin: 0 0 4px;
  font-size: var(--type-small);
  font-weight: 700;
}

.sentinel-integration-readiness .sentinel-section-heading p {
  margin: 0;
  color: var(--pc-muted);
  font-size: var(--type-tiny);
}

/* The requested Episodes hero remains untouched. Only its operational content
   below the hero is normalized to the console density. */
.sentinel-episode-index .sentinel-index-filter {
  padding: 15px 17px;
}

.sentinel-episode-index .sentinel-index-filter-heading {
  margin-bottom: 12px;
}

.sentinel-episode-index .sentinel-index-filter-heading h2 {
  font-size: var(--type-small);
}

.sentinel-episode-index .sentinel-index-filter-grid .form-control,
.sentinel-episode-index .sentinel-index-filter-grid .form-select {
  min-height: 29px;
  border-radius: 3px;
  font-size: var(--type-tiny);
}

.sentinel-episode-index .sentinel-index-results-heading {
  padding: 15px 17px;
}

.sentinel-episode-index .sentinel-index-results-heading h2 {
  font-size: 18px;
}

.sentinel-episode-index .sentinel-feed-card {
  min-height: 126px;
  padding: 15px 17px;
}

.sentinel-episode-index .sentinel-feed-main h3 {
  font-size: 16px;
}

/* The staff work queue keeps its command-intelligence hero, but uses the same
   compact typography and table construction as the rest of the console. */
.sentinel-queue-hero h4 {
  max-width: 940px;
  margin: 8px 0 10px;
  color: #f7f8f8;
  font-size: 28px;
  font-weight: 690;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.sentinel-queue-premium .sentinel-ordering {
  margin-bottom: 10px;
  padding: 12px 15px;
  border-color: var(--pc-border);
  border-radius: 3px;
  background: var(--pc-surface);
  color: var(--pc-text-soft);
  font-size: var(--type-tiny);
}

.sentinel-queue-premium .sentinel-ordering p {
  margin: 9px 0 0;
  color: var(--pc-muted);
  font-size: var(--type-tiny);
}

.sentinel-queue-premium .sentinel-command-list > .sentinel-section-heading {
  padding: 15px 17px;
}

.sentinel-queue-premium .sentinel-command-list .sentinel-section-heading h2 {
  font-size: var(--type-small);
  font-weight: 700;
}

.sentinel-queue-premium .sentinel-command-list .sentinel-section-heading p {
  margin-top: 4px;
  font-size: var(--type-tiny);
  line-height: 1.45;
}

.sentinel-queue-premium .sentinel-command-list .sentinel-queue-table {
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.sentinel-queue-premium .sentinel-command-list .sentinel-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border-spacing: 0;
}

.sentinel-queue-premium .sentinel-command-list .sentinel-table caption {
  padding: 10px 17px;
  border-bottom: 1px solid var(--pc-border);
  color: var(--pc-muted);
  font-size: var(--type-tiny);
  line-height: 1.45;
}

.sentinel-queue-premium .sentinel-command-list .sentinel-table thead th {
  padding: 9px 12px;
  border-bottom: 1px solid var(--pc-border);
  color: var(--pc-faint);
  font-size: var(--type-micro);
  font-weight: 760;
  letter-spacing: .1em;
}

.sentinel-queue-premium .sentinel-command-list .sentinel-table th:nth-child(1) { width: 43%; }
.sentinel-queue-premium .sentinel-command-list .sentinel-table th:nth-child(2) { width: 11%; }
.sentinel-queue-premium .sentinel-command-list .sentinel-table th:nth-child(3) { width: 12%; }
.sentinel-queue-premium .sentinel-command-list .sentinel-table th:nth-child(4) { width: 16%; }
.sentinel-queue-premium .sentinel-command-list .sentinel-table th:nth-child(5) { width: 10%; }
.sentinel-queue-premium .sentinel-command-list .sentinel-table th:nth-child(6) { width: 8%; }

.sentinel-queue-premium .sentinel-command-list .sentinel-queue-row,
.sentinel-queue-premium .sentinel-command-list .sentinel-queue-row:hover {
  background: transparent;
}

.sentinel-queue-premium .sentinel-command-list .sentinel-queue-row td,
.sentinel-queue-premium .sentinel-command-list .sentinel-queue-row td:first-child,
.sentinel-queue-premium .sentinel-command-list .sentinel-queue-row td:last-child {
  padding: 11px 12px;
  border: 0;
  border-bottom: 1px solid #181818;
  background: transparent;
  color: var(--pc-text-soft);
  font-size: var(--type-tiny);
  line-height: 1.4;
  vertical-align: top;
}

.sentinel-queue-premium .sentinel-command-list .sentinel-queue-row:hover td {
  border-color: #252525;
  background: #0d0d0d;
}

.sentinel-queue-premium .sentinel-command-list .sentinel-row-focus {
  gap: 6px;
  margin-bottom: 6px;
  color: var(--pc-faint);
  font-size: var(--type-micro);
}

.sentinel-queue-premium .sentinel-command-list .sentinel-queue-row h3 {
  margin: 6px 0 3px;
  font-size: 13px;
  font-weight: 680;
  line-height: 1.3;
}

.sentinel-queue-premium .sentinel-command-list .sentinel-queue-row p {
  margin: 3px 0 0;
  color: var(--pc-muted);
  font-size: var(--type-tiny);
  line-height: 1.45;
}

.sentinel-queue-premium .sentinel-command-list .sentinel-queue-row strong {
  color: var(--pc-text);
  font-weight: 680;
}

.sentinel-queue-premium .sentinel-command-list .sentinel-badge {
  min-height: 20px;
  margin: 0 3px 2px 0;
  padding: 3px 7px;
  border-radius: 3px;
  font-size: var(--type-micro);
  font-weight: 760;
  line-height: 1.2;
}

.sentinel-queue-premium .sentinel-command-list .sentinel-badge--neutral {
  border-color: #333;
  background: #121212;
  color: #a1a1a1;
}

.sentinel-queue-premium .sentinel-command-list .sentinel-badge--success {
  border-color: color-mix(in srgb, var(--pc-green) 44%, var(--pc-border));
  background: rgba(52, 217, 131, .08);
  color: #46dd91;
}

.sentinel-queue-premium .sentinel-command-list .sentinel-badge--warning {
  border-color: color-mix(in srgb, var(--pc-amber) 48%, var(--pc-border));
  background: rgba(234, 184, 78, .09);
  color: #f1c861;
}

.sentinel-queue-premium .sentinel-command-list .sentinel-badge--danger {
  border-color: color-mix(in srgb, var(--pc-red) 48%, var(--pc-border));
  background: rgba(255, 92, 105, .09);
  color: #ff7480;
}

@media (max-width: 767px) {
  .sentinel-console-page .sentinel-inline-search,
  .sentinel-console-page.sentinel-accounts .sentinel-inline-search,
  .sentinel-console-page .sentinel-form-grid {
    grid-template-columns: 1fr;
  }

  .sentinel-console-page .sentinel-page-header {
    min-height: 0;
  }
}

.sentinel-workspace {
  max-width: 1440px;
  min-width: 0;
  width: 100%;
  overflow-x: clip;
}

.sentinel-workspace *,
.sentinel-workspace *::before,
.sentinel-workspace *::after {
  min-width: 0;
}

.sentinel-page-header,
.sentinel-case-header,
.sentinel-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.sentinel-header-actions,
.sentinel-evidence-actions,
.sentinel-row-actions,
.sentinel-form-actions,
.sentinel-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}

.sentinel-breadcrumb {
  display: flex;
  gap: .5rem;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--pc-text-soft, #565b61);
}

.sentinel-panel,
.sentinel-filter-panel,
.sentinel-ordering,
.sentinel-banner {
  background: var(--app-surface, #fff);
  border: 1px solid var(--app-border, #ececf3);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.sentinel-banner--warning {
  border-color: #f1d28a;
  background: #fff8e6;
}

.sentinel-filter-grid,
.sentinel-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
}

.sentinel-filter-actions {
  display: flex;
  gap: .5rem;
  align-items: end;
}

.sentinel-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}

.sentinel-filter-chip,
.sentinel-badge {
display: inline-flex;
    align-items: center;
    gap: .25rem;
    border-radius: 3px;
    padding: 3px 7px;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.35;
    border: 1px solid transparent;
    margin: .1rem .15rem .1rem 0;
}

.sentinel-filter-chip,
.sentinel-badge--neutral {
  color: #a1a1a1 !important;
  background: #121212 !important;
  border-color: #333333 !important;
}

.sentinel-badge--danger {
  color: #721c24;
  background: #f8d7da;
  border-color: #f1aeb5;
}

.sentinel-badge--warning {
    border-color: color-mix(in srgb, var(--pc-amber) 48%, var(--pc-border)) !important;
    background: rgba(234, 184, 78, 0.09) !important;
    color: #f1c861 !important;
}

.sentinel-badge--success {
    border-color: color-mix(in srgb, var(--pc-green) 44%, var(--pc-border)) !important;
    background: rgba(52, 217, 131, 0.08) !important;
    color: #46dd91 !important;
}

.sentinel-table caption {
  caption-side: top;
  color: #4e5562;
  padding-bottom: .75rem;
}

.sentinel-queue-row h3,
.sentinel-history-row h3 {
  font-size: 1rem;
  margin: .35rem 0 .2rem;
}

.sentinel-queue-row p,
.sentinel-history-row p {
  margin-bottom: .2rem;
}

.sentinel-muted {
  color: #4e5562;
}

.sentinel-overdue {
  color: #9b1c1c;
  font-weight: 700;
}

.sentinel-empty-state {
  border: 1px dashed var(--app-border, #ececf3);
  border-radius: 12px;
  padding: 1.5rem;
  background: #070707;
}

.sentinel-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 1rem;
  align-items: start;
}

.sentinel-action-rail {
  position: sticky;
  top: 1rem;
}

.sentinel-case-id {
  min-width: 220px;
  border: 1px solid var(--app-border, #ececf3);
  border-radius: 12px;
  padding: .75rem;
  background: #fff;
}

.sentinel-case-id span,
.sentinel-metric-strip span,
.sentinel-assessment-cell span {
  display: block;
  font-size: .78rem;
  color: #4e5562;
}

.sentinel-assessment-grid,
.sentinel-metric-strip,
.sentinel-three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.sentinel-assessment-cell,
.sentinel-metric-strip > div {
  border: 1px solid var(--app-border, #ececf3);
  border-radius: 12px;
  padding: .85rem;
  background: #fbfbfd;
}

.sentinel-timeline {
  list-style: none;
  padding-left: 0;
}

.sentinel-timeline-card {
  border-left: 3px solid var(--app-primary, #8f67ff);
  padding: .25rem 0 .75rem 1rem;
  margin-bottom: 1rem;
}

.sentinel-timeline-card header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.sentinel-evidence-link {
  font-weight: 700;
}

.sentinel-check-list {
  padding-left: 1.25rem;
}

.sentinel-definition-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: .35rem .75rem;
}

.sentinel-guided-form fieldset {
  border: 1px solid var(--app-border, #ececf3);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.sentinel-guided-form legend {
  float: none;
  width: auto;
  padding: 0 .35rem;
  font-size: 1rem;
  font-weight: 800;
}

.sentinel-form-span {
  grid-column: 1 / -1;
}

.sentinel-inline-search {
  display: grid;
  grid-template-columns: auto minmax(220px, 360px) auto auto;
  gap: .75rem;
  align-items: end;
  margin-top: 1rem;
}

.sentinel-json-box,
.sentinel-summary-box,
.sentinel-raw-evidence {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.sentinel-raw-evidence {
  overflow-wrap: anywhere;
}

.sentinel-workspace .row {
  max-width: 100%;
}

.sentinel-workspace dd,
.sentinel-workspace dt,
.sentinel-workspace p,
.sentinel-workspace li,
.sentinel-workspace code,
.sentinel-workspace pre {
  overflow-wrap: anywhere;
}

@media (max-width: 1023px) {
  .sentinel-detail-layout,
  .sentinel-filter-grid,
  .sentinel-form-grid,
  .sentinel-assessment-grid,
  .sentinel-metric-strip,
  .sentinel-three-col {
    grid-template-columns: 1fr 1fr;
  }

  .sentinel-action-rail {
    position: static;
  }
}

@media (max-width: 767px) {
  .sentinel-page-header,
  .sentinel-case-header,
  .sentinel-section-heading {
    display: block;
  }

  .sentinel-workspace {
    padding-left: 12px;
    padding-right: 12px;
  }

  .sentinel-panel,
  .sentinel-filter-panel,
  .sentinel-ordering,
  .sentinel-banner {
    padding: 1rem;
    width: 100%;
  }

  .sentinel-filter-grid,
  .sentinel-form-grid,
  .sentinel-assessment-grid,
  .sentinel-metric-strip,
  .sentinel-three-col,
  .sentinel-detail-layout,
  .sentinel-inline-search,
  .sentinel-definition-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
  }

  .sentinel-detail-main,
  .sentinel-action-rail {
    width: 100%;
    max-width: 100%;
  }

  .sentinel-workspace .row {
    --bs-gutter-x: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .sentinel-workspace [class*="col-"] {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .sentinel-queue-table table,
  .sentinel-queue-table thead,
  .sentinel-queue-table tbody,
  .sentinel-queue-table th,
  .sentinel-queue-table td,
  .sentinel-queue-table tr {
    display: block;
  }

  .sentinel-queue-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .sentinel-queue-table tr {
    border: 1px solid var(--app-border, #ececf3);
    border-radius: 12px;
    padding: .75rem;
    margin-bottom: .75rem;
  }

  .sentinel-queue-table td {
    border: 0;
    padding: .35rem 0;
  }

  .sentinel-queue-table td::before {
    content: attr(data-label);
    display: block;
    color: #4e5562;
    font-size: .78rem;
    font-weight: 800;
  }
}

/* Sentinel episode indexes and staff command queue. */
.sentinel-episode-index,
.sentinel-queue-premium {
  --sentinel-accent: #f2bd4f;
  --sentinel-accent-rgb: 242, 189, 79;
  --sentinel-positive: #55d6a5;
  --sentinel-line: rgba(255, 255, 255, .1);
  max-width: 1540px;
  color: #eef1f0;
}

.sentinel-index-hero,
.sentinel-queue-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 28px 30px 0;
  border: 1px solid rgba(242, 189, 79, .22);
  border-radius: 5px;
  background: linear-gradient(145deg, #101011, #09090a 62%, #0d0c0a);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.sentinel-index-hero::before,
.sentinel-queue-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .22;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

.sentinel-index-hero-copy,
.sentinel-queue-hero-copy {
  max-width: 920px;
  padding-bottom: 30px;
}

.sentinel-index-eyebrow {
  margin-top: 30px;
  color: #818a88;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sentinel-index-hero h1,
.sentinel-queue-hero h1 {
  max-width: 940px;
  margin: 8px 0 10px;
  color: #f7f8f8;
  font-size: clamp(30px, 3.3vw, 52px);
  font-weight: 690;
  line-height: 1.04;
  letter-spacing: -.045em;
}

.sentinel-index-hero-copy > p,
.sentinel-queue-hero-copy > p {
  max-width: 780px;
  margin: 0;
  color: #969e9c;
  font-size: 14px;
  line-height: 1.6;
}

.sentinel-index-actions,
.sentinel-queue-hero .sentinel-header-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
}

.sentinel-index-actions .btn,
.sentinel-queue-hero .btn {
  border-color: rgba(255,255,255,.16);
}

.sentinel-index-metrics,
.sentinel-queue-metrics {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 -30px;
  border-top: 1px solid var(--sentinel-line);
}

.sentinel-index-metrics > div,
.sentinel-queue-metrics > div {
  min-height: 112px;
  padding: 20px 24px;
  border-right: 1px solid var(--sentinel-line);
}

.sentinel-index-metrics > div:last-child,
.sentinel-queue-metrics > div:last-child { border-right: 0; }

.sentinel-index-metrics span,
.sentinel-queue-metrics span,
.sentinel-index-filter-heading span,
.sentinel-index-results-heading > div > span {
  display: block;
  color: #737c79;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.sentinel-index-metrics strong,
.sentinel-queue-metrics strong {
  display: block;
  margin-top: 7px;
  color: #f1f3f2;
  font-size: 30px;
  font-weight: 680;
  line-height: 1;
}

.sentinel-index-metrics small,
.sentinel-queue-metrics small {
  display: block;
  margin-top: 7px;
  color: #727a78;
  font-size: 9px;
}

.sentinel-index-metric--attention strong,
.sentinel-queue-metric--focus strong { color: #ff696f; }

.sentinel-index-filter,
.sentinel-queue-premium .sentinel-filter-panel {
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 3px;
  background: #0b0b0c;
}

.sentinel-index-filter-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.sentinel-index-filter-heading h2 {
  margin: 4px 0 0;
  color: #e8ecea;
  font-size: 16px;
  font-weight: 650;
}

.sentinel-index-filter-heading > span {
  color: #929b98;
  letter-spacing: 0;
  text-transform: none;
}

.sentinel-index-filter-grid {
  display: grid;
  grid-template-columns: minmax(230px, 1.35fr) repeat(3, minmax(145px, .75fr));
  gap: 12px;
  align-items: end;
}

.sentinel-episode-index--staff .sentinel-index-filter-grid {
  grid-template-columns: minmax(220px, 1.3fr) repeat(4, minmax(135px, .7fr));
}

.sentinel-index-filter-grid .form-label,
.sentinel-queue-premium .sentinel-filter-grid .form-label {
  color: #7e8784;
  font-size: 9px;
  font-weight: 750;
}

.sentinel-index-filter-grid .form-control,
.sentinel-index-filter-grid .form-select,
.sentinel-queue-premium .sentinel-filter-grid .form-control,
.sentinel-queue-premium .sentinel-filter-grid .form-select {
  min-height: 38px;
  border-color: rgba(255,255,255,.12);
  border-radius: 2px;
  color: #dce1df;
  background-color: #080809;
  font-size: 11px;
}

.sentinel-index-filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.sentinel-index-results,
.sentinel-command-list {
  padding: 0;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 3px;
  background: #09090a;
}

.sentinel-index-results-heading,
.sentinel-command-list > .sentinel-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  padding: 22px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.sentinel-index-results-heading h2,
.sentinel-command-list .sentinel-section-heading h2 {
  margin: 4px 0 0;
  color: #edf0ef;
  font-size: 24px;
  font-weight: 670;
}

.sentinel-index-results-heading p,
.sentinel-command-list .sentinel-section-heading p {
  max-width: 800px;
  margin: 5px 0 0;
  color: #747d7a;
  font-size: 10px;
}

.sentinel-index-bulk-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #8c9592;
  font-size: 10px;
}

.sentinel-index-bulk-actions label { display: flex; gap: 6px; align-items: center; }

.sentinel-episode-feed { display: grid; }

.sentinel-feed-card {
  display: grid;
  grid-template-columns: 58px minmax(360px, 1fr) auto;
  gap: 20px;
  align-items: center;
  position: relative;
  min-height: 172px;
  padding: 22px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: #0a0a0b;
  transition: background-color .16s ease, border-color .16s ease;
}

.sentinel-feed-card:hover {
  background: #0e0e0f;
  border-color: rgba(242,189,79,.22);
}

.sentinel-feed-rank {
  display: grid;
  gap: 16px;
  justify-items: center;
  color: #59615f;
  font-size: 10px;
  font-weight: 800;
}

.sentinel-feed-pulse {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(242,189,79,.22);
  border-radius: 50%;
}

.sentinel-feed-pulse i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f2bd4f;
  box-shadow: 0 0 14px rgba(242,189,79,.65);
}

.sentinel-feed-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.sentinel-feed-badges > span:last-child {
  color: #77807d;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.sentinel-feed-client {
  margin-top: 10px;
  color: #8f9895;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.sentinel-feed-main h3 {
  margin: 8px 0 5px;
  font-size: 20px;
  font-weight: 660;
  line-height: 1.2;
}

.sentinel-feed-main h3 a { color: #edf1ef; text-decoration: none; }
.sentinel-feed-main h3 a:hover { color: #fff; }

.sentinel-feed-main > p {
  max-width: 760px;
  margin: 0;
  color: #9ba3a0;
  font-size: 11px;
  line-height: 1.55;
}

.sentinel-feed-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
  color: #68716e;
  font-size: 9px;
}

.sentinel-feed-scope strong { color: #aeb6b3; }

.sentinel-feed-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 15px 20px;
  margin: 0;
  padding-left: 20px;
  border-left: 1px solid rgba(255,255,255,.08);
}

.sentinel-feed-main .sentinel-feed-facts {
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  margin-top: 14px;
  padding: 12px 0 0;
  border-left: 0;
  border-top: 1px solid rgba(255,255,255,.08);
}

.sentinel-feed-fact--priority dd { display: flex; align-items: center; gap: 8px; }
.sentinel-feed-fact--priority b { font-size: 10px; font-weight: 800; }

.sentinel-priority-meter {
  display: block;
  width: 64px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,.1);
  overflow: hidden;
}

.sentinel-priority-meter i { display: block; height: 100%; border-radius: 3px; }

.sentinel-feed-facts dt {
  color: #626b68;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.sentinel-feed-facts dd {
  margin: 4px 0 0;
  color: #c8cecc;
  font-size: 10px;
}

.sentinel-feed-open {
  align-self: stretch;
  display: grid;
  min-width: 142px;
  place-items: center;
  border-left: 1px solid rgba(255,255,255,.08);
  color: #cbd1cf;
  font-size: 10px;
  font-weight: 750;
  text-decoration: none;
}

.sentinel-feed-open:hover { color: #f2bd4f; }

.sentinel-index-empty {
  padding: 54px 24px;
  text-align: center;
}

.sentinel-index-empty .sentinel-feed-pulse { margin: 0 auto 16px; }
.sentinel-index-empty h3 { color: #e8ecea; }
.sentinel-index-empty p { color: #747d7a; }

.sentinel-queue-premium .sentinel-scope-switch { margin-bottom: 14px; }
.sentinel-queue-premium .sentinel-filter-grid { grid-template-columns: minmax(240px,1.2fr) repeat(3,minmax(160px,.8fr)); }
.sentinel-ordering--premium { border-radius: 3px; color: #959e9b; background: #0a0a0b; }
.sentinel-command-list .sentinel-queue-table { padding: 0 18px 18px; }
.sentinel-command-list .sentinel-table { border-collapse: separate; border-spacing: 0 10px; }
.sentinel-command-list .sentinel-table caption { color: #626b68; font-size: 10px; }
.sentinel-command-list .sentinel-table thead th { border: 0; color: #69726f; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.sentinel-command-list .sentinel-queue-row { background: #0c0c0d; }
.sentinel-command-list .sentinel-queue-row td { padding: 16px 12px; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); color: #aab2af; vertical-align: middle; }
.sentinel-command-list .sentinel-queue-row td:first-child { border-left: 1px solid rgba(255,255,255,.08); }
.sentinel-command-list .sentinel-queue-row td:last-child { border-right: 1px solid rgba(255,255,255,.08); }
.sentinel-command-list .sentinel-queue-row:hover td { background: #101011; border-color: rgba(242,189,79,.2); }
.sentinel-command-list .sentinel-queue-row h3 a { color: #edf0ef; text-decoration: none; }
.sentinel-command-list .sentinel-queue-row p { color: #7c8582; font-size: 10px; line-height: 1.5; }
.sentinel-row-focus { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; color: #59615f; font-size: 9px; font-weight: 800; }
.sentinel-queue-premium .sentinel-panel,
.sentinel-queue-premium .sentinel-ordering { border-color: rgba(255,255,255,.1); }

@media (max-width: 1100px) {
  .sentinel-index-filter-grid,
  .sentinel-episode-index--staff .sentinel-index-filter-grid,
  .sentinel-queue-premium .sentinel-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sentinel-feed-card { grid-template-columns: 48px minmax(0, 1fr); }
  .sentinel-feed-open { grid-column: 2; min-height: 42px; border-top: 1px solid rgba(255,255,255,.08); border-left: 0; place-items: end start; }
}

@media (max-width: 767px) {
  .sentinel-index-hero,
  .sentinel-queue-hero { display: block; padding: 20px 18px 0; }
  .sentinel-index-actions,
  .sentinel-queue-hero .sentinel-header-actions { justify-content: flex-start; margin-bottom: 20px; }
  .sentinel-index-metrics,
  .sentinel-queue-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); margin: 0 -18px; }
  .sentinel-index-metrics > div:nth-child(2),
  .sentinel-queue-metrics > div:nth-child(2) { border-right: 0; }
  .sentinel-index-metrics > div:nth-child(-n+2),
  .sentinel-queue-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--sentinel-line); }
  .sentinel-index-filter-grid,
  .sentinel-episode-index--staff .sentinel-index-filter-grid,
  .sentinel-queue-premium .sentinel-filter-grid { grid-template-columns: 1fr; }
  .sentinel-index-results-heading,
  .sentinel-command-list > .sentinel-section-heading,
  .sentinel-index-filter-heading { display: block; }
  .sentinel-index-bulk-actions { margin-top: 14px; }
  .sentinel-feed-card { grid-template-columns: 36px minmax(0,1fr); gap: 12px; padding: 18px 14px; }
  .sentinel-feed-main .sentinel-feed-facts { grid-template-columns: 1fr 1fr; }
}

/* Sentinel episode intelligence surface
   The episode page is deliberately more cinematic than the surrounding
   console: it is the product's evidence-backed answer, not a settings page. */
.sentinel-episode-page {
  --sentinel-accent: #f2bd4f;
  --sentinel-accent-rgb: 242, 189, 79;
  --sentinel-positive: #55d6a5;
  --sentinel-ink: #f5f7f6;
  --sentinel-muted: #929b99;
  --sentinel-line: rgba(255, 255, 255, .1);
  max-width: 1540px;
  gap: 18px;
}

.sentinel-episode-tone--concern {
  --sentinel-accent: #ff6b70;
  --sentinel-accent-rgb: 255, 107, 112;
}

.sentinel-episode-tone--info {
  --sentinel-accent: #6eb7ff;
  --sentinel-accent-rgb: 110, 183, 255;
}

.sentinel-episode-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(var(--sentinel-accent-rgb), .27);
  border-radius: 6px;
  color: var(--sentinel-ink);
  background:
    radial-gradient(circle at 84% 28%, rgba(var(--sentinel-accent-rgb), .14), transparent 27%),
    linear-gradient(145deg, #101012 0%, #09090a 56%, #0d0d0f 100%);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .04);
}

.sentinel-episode-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .26;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

.sentinel-hero-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 62px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--sentinel-line);
}

.sentinel-product-mark,
.sentinel-hero-actions,
.sentinel-severity-line,
.sentinel-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.sentinel-product-mark {
  gap: 10px;
  color: #dfe5e3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sentinel-orbit {
  position: relative;
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(var(--sentinel-accent-rgb), .6);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(var(--sentinel-accent-rgb), .16);
}

.sentinel-orbit::before {
  content: "";
  position: absolute;
  width: 32px;
  height: 11px;
  border: 1px solid rgba(var(--sentinel-accent-rgb), .45);
  border-radius: 50%;
  transform: rotate(-28deg);
}

.sentinel-orbit i,
.sentinel-live-chip i,
.sentinel-monitor-icon i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sentinel-accent);
  box-shadow: 0 0 12px var(--sentinel-accent);
}

.sentinel-live-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: 5px;
    border: 1px solid rgba(85, 214, 165, .22);
    font-size: 9px;
    letter-spacing: .08em;
    border-color: 
color-mix(in srgb, var(--pc-green) 44%, var(--pc-border));
    background: rgba(52, 217, 131, .08);
    color: #46dd91;
    padding: 3px 7px;
    border-radius: 3px;
}

.sentinel-live-chip i,
.sentinel-monitor-icon i {
  width: 5px;
  height: 5px;
  background: var(--sentinel-positive);
  box-shadow: 0 0 10px var(--sentinel-positive);
}

.sentinel-hero-actions {
  justify-content: flex-end;
  gap: 8px;
}

.sentinel-hero-actions .btn {
  border-color: rgba(255, 255, 255, .18);
  color: #e9edec;
  background: rgba(255, 255, 255, .025);
}

.sentinel-hero-actions .btn:hover {
  border-color: rgba(var(--sentinel-accent-rgb), .55);
  color: #fff;
  background: rgba(var(--sentinel-accent-rgb), .08);
}

.sentinel-hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 36px;
  min-height: 300px;
  padding: 38px 42px 30px;
  align-items: center;
}

.sentinel-hero-copy {
  max-width: 980px;
}

.sentinel-hero-context {
  margin-bottom: 15px;
  color: #8d9794;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sentinel-severity-line {
  gap: 10px;
  margin-bottom: 14px;
  color: #9da6a3;
  font-size: 12px;
  font-weight: 650;
}

.sentinel-severity-chip {
  padding: 5px 10px;
  border: 1px solid rgba(var(--sentinel-accent-rgb), .5);
  border-radius: 999px;
  color: var(--sentinel-accent);
  background: rgba(var(--sentinel-accent-rgb), .09);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sentinel-hero-copy h4 {
  max-width: 930px;
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 680;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.sentinel-hero-summary {
  max-width: 940px;
  margin: 18px 0 0;
  color: #d5dbd9;
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.55;
}

.sentinel-hero-narrative {
  max-width: 900px;
  margin: 9px 0 0;
  color: #8f9996;
  font-size: 13px;
  line-height: 1.6;
}

.sentinel-hero-meta {
  gap: 8px 18px;
  margin-top: 22px;
  color: #77817e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.sentinel-hero-meta span {
  position: relative;
}

.sentinel-hero-meta span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #3f4846;
}

.sentinel-signal-visual {
  position: relative;
  width: 210px;
  height: 210px;
  margin: auto;
}

.sentinel-radar-ring,
.sentinel-radar-core {
  position: absolute;
  inset: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.sentinel-radar-ring {
  border: 1px solid rgba(var(--sentinel-accent-rgb), .22);
}

.sentinel-radar-ring::before,
.sentinel-radar-ring::after {
  content: "";
  position: absolute;
  background: rgba(var(--sentinel-accent-rgb), .13);
}

.sentinel-radar-ring::before { top: 50%; left: 0; width: 100%; height: 1px; }
.sentinel-radar-ring::after { top: 0; left: 50%; width: 1px; height: 100%; }
.sentinel-radar-ring--one { width: 190px; height: 190px; }
.sentinel-radar-ring--two { width: 120px; height: 120px; }

.sentinel-radar-core {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(var(--sentinel-accent-rgb), .6);
  background: radial-gradient(circle, rgba(var(--sentinel-accent-rgb), .28), rgba(var(--sentinel-accent-rgb), .03) 65%);
  box-shadow: 0 0 38px rgba(var(--sentinel-accent-rgb), .2);
}

.sentinel-radar-core::after {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: var(--sentinel-accent);
  box-shadow: 0 0 18px var(--sentinel-accent);
}

.sentinel-radar-point {
  position: absolute;
  width: 6px;
  height: 6px;
  border: 1px solid var(--sentinel-accent);
  border-radius: 50%;
  background: rgba(var(--sentinel-accent-rgb), .3);
  box-shadow: 0 0 10px rgba(var(--sentinel-accent-rgb), .7);
}

.sentinel-radar-point--one { top: 34px; right: 38px; }
.sentinel-radar-point--two { bottom: 48px; left: 23px; }
.sentinel-radar-point--three { top: 89px; left: 35px; }

.sentinel-metric-deck {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--sentinel-line);
  border-bottom: 1px solid var(--sentinel-line);
  background: rgba(0, 0, 0, .16);
}

.sentinel-metric-card {
  position: relative;
  min-height: 125px;
  padding: 21px 24px;
}

.sentinel-metric-card:not(:last-child) {
  border-right: 1px solid var(--sentinel-line);
}

.sentinel-metric-card span,
.sentinel-metric-card small {
  display: block;
}

.sentinel-metric-card span {
  color: #7f8986;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.sentinel-metric-card strong {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  color: #edf1f0;
  font-size: clamp(22px, 2.6vw, 35px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.035em;
}

.sentinel-metric-card--signal strong {
  color: var(--sentinel-accent);
}

.sentinel-metric-card small {
  margin-top: 8px;
  color: #6e7775;
  font-size: 10px;
}

.sentinel-assurance-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0 22px;
}

.sentinel-assurance-rail > div {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 18px 12px;
}

.sentinel-assurance-check {
  display: grid;
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  place-items: center;
  border: 1px solid rgba(85, 214, 165, .3);
  border-radius: 50%;
  color: var(--sentinel-positive);
  background: transparent;
  font-size: 10px;
}

.sentinel-assurance-rail p { margin: 0; }
.sentinel-assurance-rail strong,
.sentinel-assurance-rail small { display: block; }
.sentinel-assurance-rail strong { color: #ccd3d1; font-size: 10px; }
.sentinel-assurance-rail small { margin-top: 3px; color: #697370; font-size: 9px; line-height: 1.35; }

.sentinel-monitor-strip {
  display: flex;
  gap: 13px;
  align-items: center;
  min-height: 64px;
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 3px;
  color: #cbd4d1;
  background: #0d0d0f;
}

.sentinel-monitor-icon {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(85, 214, 165, .25);
  border-radius: 50%;
  background: transparent;
}

.sentinel-monitor-strip strong,
.sentinel-monitor-strip span { display: block; }
.sentinel-monitor-strip strong { font-size: 12px; }
.sentinel-monitor-strip span { margin-top: 2px; color: #72807c; font-size: 10px; }

.sentinel-legacy-note {
  margin: -6px 2px 0;
  color: #737d7a;
  font-size: 10px;
}

.sentinel-episode-nav {
  position: sticky;
  top: 48px;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 3px;
  background: rgba(7, 8, 8, .9);
  backdrop-filter: blur(18px);
}

.sentinel-episode-nav a {
  position: relative;
  overflow: hidden;
  padding: 8px 12px 8px 16px;
  border: 1px solid transparent;
  border-radius: 1px;
  color: #8e9895;
  font-size: 10px;
  font-weight: 750;
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.sentinel-episode-nav a:hover {
  border-color: #282828;
  color: #f2f2f2;
  background: #121212;
}

.sentinel-episode-nav a:first-child,
.sentinel-episode-nav a:focus {
  border-color: #292929;
  color: #f2f2f2;
  background: #121212;
  outline: 0;
}

.sentinel-episode-nav:has(a:focus) a:first-child:not(:focus),
body:has(.sentinel-episode-content :target) .sentinel-episode-nav a:first-child {
  border-color: transparent;
  color: #8e9895;
  background: transparent;
}

body:has(#evidence-section:target) .sentinel-episode-nav a[href="#evidence-section"],
body:has(#sample-leads-section:target) .sentinel-episode-nav a[href="#sample-leads-section"],
body:has(#other-open-section:target) .sentinel-episode-nav a[href="#other-open-section"],
body:has(#history-section:target) .sentinel-episode-nav a[href="#history-section"],
body:has(#board-verdict-section:target) .sentinel-episode-nav a[href="#board-verdict-section"],
body:has(#playbook-section:target) .sentinel-episode-nav a[href="#playbook-section"],
body:has(#actions-section:target) .sentinel-episode-nav a[href="#actions-section"],
body:has(#timeline-section:target) .sentinel-episode-nav a[href="#timeline-section"] {
  border-color: #292929;
  color: #f2f2f2;
  background: #121212;
}

.sentinel-episode-content {
  display: block;
}

.sentinel-episode-page .panel-card {
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  border-color: rgba(255, 255, 255, .09) !important;
  border-radius: 3px !important;
  background: linear-gradient(145deg, rgba(16, 16, 18, .98), rgba(10, 10, 11, .98)) !important;
}

.sentinel-episode-page .panel-header {
  margin: 0;
  padding: 20px 22px 0;
}

.sentinel-episode-page .panel-title {
  margin-top: 3px;
  color: #e9edec;
  font-size: 16px;
  font-weight: 650;
}

.sentinel-episode-page .panel-subtitle {
  max-width: 900px;
  color: #747e7b !important;
  font-size: 10px;
}

.sentinel-episode-page .panel-card > .p-3 {
  padding: 18px 22px 22px !important;
  color: #aeb6b4;
  font-size: 12px;
  line-height: 1.6;
}

.sentinel-section-kicker {
  display: block;
  color: var(--sentinel-accent);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.sentinel-intelligence-overview {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(320px, 1.5fr) minmax(240px, 1fr);
  border: 1px solid rgba(255, 255, 255, .085);
  background: #0b0b0c;
}

.sentinel-intelligence-impact,
.sentinel-intelligence-reading,
.sentinel-intelligence-context {
  min-width: 0;
  margin: 0;
  padding: 20px;
}

.sentinel-intelligence-impact,
.sentinel-intelligence-reading {
  border-right: 1px solid rgba(255, 255, 255, .085);
}

.sentinel-intelligence-impact > span,
.sentinel-intelligence-reading > span,
.sentinel-intelligence-context dt,
.sentinel-comparison-callout > span,
.sentinel-history-story article > span {
  display: block;
  color: #6f7876;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.sentinel-intelligence-impact strong {
  display: block;
  margin-top: 12px;
  color: var(--sentinel-accent);
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 680;
  line-height: .95;
  letter-spacing: -.045em;
}

.sentinel-intelligence-impact small {
  display: block;
  margin-top: 9px;
  color: #89928f;
  font-size: 10px;
}

.sentinel-intelligence-reading p {
  max-width: 620px;
  margin: 13px 0 0;
  color: #d3d8d6;
  font-size: 15px;
  line-height: 1.55;
}

.sentinel-intelligence-context {
  display: grid;
  gap: 12px;
}

.sentinel-intelligence-context div:not(:last-child) {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .065);
}

.sentinel-intelligence-context dd {
  margin: 4px 0 0;
  color: #b8bfbd;
  font-size: 10px;
  line-height: 1.4;
}

.sentinel-intelligence-detail {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .065);
  color: #89928f;
  background: rgba(255, 255, 255, .012);
}

.sentinel-comparison-module:has(.sentinel-comparison-callout) > .p-3 {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.sentinel-comparison-callout {
  padding: 4px 20px 4px 2px;
  border-right: 1px solid rgba(255, 255, 255, .085);
}

.sentinel-comparison-callout strong,
.sentinel-comparison-callout small {
  display: block;
}

.sentinel-comparison-callout strong {
  margin-top: 9px;
  color: var(--sentinel-accent);
  font-size: 32px;
  font-weight: 680;
  line-height: 1;
  letter-spacing: -.035em;
}

.sentinel-comparison-callout small {
  margin-top: 7px;
  color: #77807e;
  font-size: 9px;
}

.sentinel-history-story {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, .085);
  background: #0b0b0c;
}

.sentinel-history-story article {
  position: relative;
  min-height: 148px;
  padding: 19px 20px;
}

.sentinel-history-story article:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, .085);
}

.sentinel-history-story article::after {
  content: "";
  position: absolute;
  top: 22px;
  right: -4px;
  z-index: 2;
  width: 7px;
  height: 7px;
  border: 1px solid #666;
  border-radius: 50%;
  background: #111;
}

.sentinel-history-story article:last-child::after {
  display: none;
}

.sentinel-history-story-current {
  background: rgba(var(--sentinel-accent-rgb), .035);
}

.sentinel-history-story-current > span {
  color: var(--sentinel-accent) !important;
}

.sentinel-history-story h4 {
  margin: 12px 0 0;
  color: #e3e7e6;
  font-size: 14px;
  font-weight: 650;
}

.sentinel-history-story p {
  margin: 8px 0 0;
  color: #7e8885;
  font-size: 10px;
  line-height: 1.55;
}

.sentinel-history-recurrence {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .012);
}

.sentinel-history-recurrence strong {
  flex: 0 0 auto;
  color: #d3d8d6;
  font-size: 10px;
}

.sentinel-history-recurrence span {
  color: #717a78;
  font-size: 9px;
}

.sentinel-episode-page svg {
  overflow: visible;
}

.sentinel-episode-page svg rect {
  rx: 3px;
}

.sentinel-episode-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.sentinel-episode-duo--single {
  grid-template-columns: 1fr;
}

.sentinel-staff-workspace {
  margin-top: 34px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: #09090a;
}

.sentinel-staff-workspace-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 8px 8px 20px;
}

.sentinel-staff-workspace-header h2 {
  margin: 6px 0 0;
  color: #eef1f0;
  font-size: 20px;
  font-weight: 670;
}

.sentinel-staff-workspace-header p {
  max-width: 720px;
  margin: 6px 0 0;
  color: #747e7b;
  font-size: 10px;
  line-height: 1.55;
}

.sentinel-staff-lock {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, .11);
  color: #89918f;
  background: #0d0d0e;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.sentinel-staff-workspace > .panel-card:last-child {
  margin-bottom: 0;
}

.sentinel-proof-state {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.sentinel-proof-state > span {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(85, 214, 165, .28);
  border-radius: 50%;
  color: var(--sentinel-positive);
  background: transparent;
}

.sentinel-proof-state strong {
  display: block;
  color: #dce2e0;
  font-size: 12px;
}

.sentinel-proof-state p {
  margin: 4px 0 0;
  color: #77817e;
  font-size: 10px;
  line-height: 1.55;
}

.sentinel-coverage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sentinel-coverage-grid li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  color: #838d8a;
  font-size: 9px;
}

.sentinel-coverage-grid strong {
  color: #d7dddb;
  font-size: 10px;
}

.sentinel-coverage-grid i {
  grid-column: 1 / -1;
  position: relative;
  height: 3px;
  overflow: hidden;
  border-radius: 1px;
  background: #242928;
}

.sentinel-coverage-grid i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--coverage);
  max-width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4ebf98, #78e1bd);
}

.sentinel-playbook {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: playbook;
}

.sentinel-playbook li {
  counter-increment: playbook;
  position: relative;
  min-height: 72px;
  margin: 0 !important;
  padding: 13px 14px 13px 47px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 2px;
  color: #9ca5a2;
  background: rgba(255, 255, 255, .018);
  font-size: 10px;
}

.sentinel-playbook li::before {
  content: counter(playbook, decimal-leading-zero);
  position: absolute;
  top: 13px;
  left: 13px;
  color: var(--sentinel-accent);
  font-size: 10px;
  font-weight: 850;
}

.sentinel-episode-page .table {
  --bs-table-bg: transparent;
  --bs-table-color: #aeb6b4;
  --bs-table-border-color: rgba(255, 255, 255, .075);
}

.sentinel-episode-page .table thead th {
  color: #68726f;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.sentinel-episode-page .table a {
  color: #d8dfdd;
}

@media (max-width: 1100px) {
  .sentinel-hero-main { grid-template-columns: minmax(0, 1fr) 180px; }
  .sentinel-signal-visual { width: 165px; height: 165px; transform: scale(.82); }
  .sentinel-metric-deck,
  .sentinel-assurance-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sentinel-intelligence-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sentinel-intelligence-context { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .085); }
  .sentinel-intelligence-context div:not(:last-child) { padding: 0 12px 0 0; border-right: 1px solid rgba(255, 255, 255, .065); border-bottom: 0; }
  .sentinel-metric-card:nth-child(2) { border-right: 0; }
  .sentinel-metric-card:nth-child(-n+2) { border-bottom: 1px solid var(--sentinel-line); }
}

@media (max-width: 767px) {
  .sentinel-episode-page { padding-left: 12px; padding-right: 12px; }
  .sentinel-hero-topline { align-items: flex-start; padding: 14px 16px; }
  .sentinel-product-mark { max-width: 62%; }
  .sentinel-live-chip { margin-left: 0; }
  .sentinel-hero-main { display: block; min-height: 0; padding: 28px 20px; }
  .sentinel-hero-copy h4 { font-size: 24px; }
  .sentinel-hero-summary { font-size: 14px; }
  .sentinel-signal-visual { display: none; }
  .sentinel-metric-deck,
  .sentinel-assurance-rail,
  .sentinel-episode-duo,
  .sentinel-playbook,
  .sentinel-intelligence-overview,
  .sentinel-history-story { grid-template-columns: 1fr; }
  .sentinel-intelligence-impact,
  .sentinel-intelligence-reading,
  .sentinel-history-story article:not(:last-child) { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .085); }
  .sentinel-intelligence-context { grid-column: auto; grid-template-columns: 1fr; }
  .sentinel-intelligence-context div:not(:last-child) { padding: 0 0 12px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .065); }
  .sentinel-comparison-module:has(.sentinel-comparison-callout) > .p-3 { grid-template-columns: 1fr; }
  .sentinel-comparison-callout { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .085); padding-bottom: 16px; }
  .sentinel-history-story article::after { display: none; }
  .sentinel-history-recurrence { display: block; }
  .sentinel-history-recurrence span { display: block; margin-top: 5px; }
  .sentinel-staff-workspace-header { display: block; }
  .sentinel-staff-lock { display: inline-block; margin-top: 12px; }
  .sentinel-metric-card { min-height: 100px; border-right: 0 !important; border-bottom: 1px solid var(--sentinel-line); }
  .sentinel-metric-card:last-child { border-bottom: 0; }
  .sentinel-assurance-rail { padding: 7px 14px; }
  .sentinel-assurance-rail > div { padding: 10px 4px; }
  .sentinel-episode-nav { top: 48px; overflow-x: auto; flex-wrap: nowrap; }
  .sentinel-episode-nav a { flex: 0 0 auto; }
  .sentinel-coverage-grid { grid-template-columns: 1fr; }
}

/* Investigator case review */
.investigator-case-page {
  --case-border: #242424;
  --case-border-strong: #343434;
  --case-surface: #0a0a0a;
  --case-surface-raised: #0e0e0e;
  --case-muted: #858585;
  --case-soft: #c8c8c8;
  --case-accent: #efb84b;
  max-width: 1540px;
  padding-top: 22px;
}

.investigator-case-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 0 0 22px;
}

.investigator-case-header .page-title {
  margin-top: 7px;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -.035em;
}

.investigator-case-header .page-subtitle {
  max-width: 650px;
  margin-top: 8px;
  font-size: 13px;
}

.case-back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 20px;
  color: #a8a8a8;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.case-back-link:hover { color: #fff; }

.case-header-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid var(--case-border-strong);
  border-radius: 3px;
  color: #d7d7d7;
  background: #0d0d0d;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.case-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.case-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--case-accent);
  box-shadow: 0 0 0 3px rgba(239, 184, 75, .1);
}

.case-readiness {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
  padding: 13px 15px;
  border: 1px solid #3b3020;
  border-left: 3px solid var(--case-accent);
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(239, 184, 75, .07), rgba(239, 184, 75, .015));
}

.case-readiness-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #59451f;
  border-radius: 50%;
  color: var(--case-accent);
  font-size: 12px;
  font-weight: 850;
}

.case-readiness .case-section-kicker { margin-bottom: 3px; color: #8f7137; }
.case-readiness strong { color: #e0e0e0; font-size: 12px; }
.case-readiness p { margin: 3px 0 0; color: #8f8f8f; font-size: 10px; }
.case-readiness p b { color: #c7a45c; font-weight: 750; }
.case-readiness-label { color: #8a7040; font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }

.case-facts {
  display: grid;
  grid-template-columns: 1.3fr .9fr 1.15fr 1fr;
  margin-bottom: 22px;
  border: 1px solid var(--case-border);
  border-radius: 4px;
  background: #080808;
}

.case-fact {
  min-width: 0;
  min-height: 78px;
  padding: 15px 18px;
}

.case-fact + .case-fact { border-left: 1px solid var(--case-border); }
.case-fact-label,
.case-section-kicker {
  display: block;
  margin-bottom: 7px;
  color: #666;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.case-fact strong {
  display: block;
  overflow: hidden;
  color: #ededed;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-fact small {
  display: block;
  margin-top: 3px;
  color: #747474;
  font-size: 10px;
}

.case-profile-tags,
.case-token-list,
.case-trigger-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.case-profile-tags span,
.case-token,
.case-trigger-list span {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 4px 7px;
  border: 1px solid #2b2b2b;
  border-radius: 3px;
  color: #aaa;
  background: #111;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.case-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 370px);
  align-items: start;
  gap: 20px;
}

.case-evidence-column,
.case-review-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 18px;
}

.case-review-column {
  position: sticky;
  top: 66px;
}

.case-panel,
.case-question-card {
  border: 1px solid var(--case-border);
  border-radius: 4px;
  background: var(--case-surface);
}

.case-panel { padding: 20px; }

.case-panel-heading,
.case-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.case-panel-heading h2,
.case-section-heading h2 {
  margin: 0;
  color: #f0f0f0;
  font-size: 18px;
  font-weight: 730;
  line-height: 1.25;
  letter-spacing: -.015em;
}

.case-panel-heading h2 { font-size: 23px; }

.case-assessment-badge,
.case-section-count {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid #363025;
  border-radius: 999px;
  color: #d7aa50;
  background: #15120c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.case-section-count {
  border-color: #2a2a2a;
  color: #828282;
  background: #0d0d0d;
}

.case-caution {
  margin: 9px 0 18px;
  color: #929292;
  font-size: 11px;
}

.case-evidence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, .85fr);
  border: 1px solid var(--case-border);
  border-radius: 3px;
  overflow: hidden;
}

.case-evidence-block {
  min-width: 0;
  padding: 16px;
  background: #080808;
}

.case-evidence-block + .case-evidence-block { border-left: 1px solid var(--case-border); }
.case-evidence-primary { background: linear-gradient(145deg, #0d0c09, #080808 55%); }

.case-evidence-block h3 {
  margin: 0 0 12px;
  color: #8e8e8e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.case-signal-list,
.case-plain-list {
  display: flex;
  margin: 0;
  padding: 0;
  flex-direction: column;
  gap: 7px;
  list-style: none;
}

.case-signal-list li {
  display: grid;
  grid-template-columns: minmax(90px, .55fr) minmax(0, 1.45fr);
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid #25231d;
  border-radius: 3px;
  color: #d0d0d0;
  background: rgba(239, 184, 75, .025);
  font-size: 11px;
}

.case-signal-domain { color: #b5914a; font-weight: 750; }

.case-plain-list li {
  position: relative;
  padding: 0 0 0 14px;
  color: #b5b5b5;
  font-size: 11px;
  line-height: 1.5;
}

.case-plain-list li::before {
  content: "";
  position: absolute;
  top: .55em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #606060;
}

.case-empty-copy { margin: 0; color: #747474; font-size: 11px; }

.case-missing-row {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin-top: 16px;
}

.case-missing-row > span {
  padding-top: 5px;
  color: #777;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.case-token { color: #9b9b9b; background: #0c0c0c; }
.case-token-complete { color: #67b48b; border-color: #20372b; background: #09110d; }

.case-section { padding-top: 5px; }
.case-section > .case-section-heading { margin-bottom: 11px; padding: 0 2px; }
.case-section-heading-compact { margin-bottom: 14px; }

.case-question-list { display: flex; flex-direction: column; gap: 8px; }

.case-source-evidence > .case-section-heading { margin-bottom: 11px; padding: 0 2px; }

.case-availability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 8px;
  border: 1px solid var(--case-border);
  border-radius: 3px;
  overflow: hidden;
}

.case-availability-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  background: #080808;
}

.case-availability-item + .case-availability-item { border-left: 1px solid var(--case-border); }
.case-availability-item:nth-child(5) { border-left: 0; }
.case-availability-item:nth-child(n+5) { border-top: 1px solid var(--case-border); }
.case-availability-item > span { color: #5fbd89; font-size: 10px; font-weight: 850; }
.case-availability-item.is-missing > span { color: #5c5c5c; }
.case-availability-item strong,
.case-availability-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-availability-item strong { color: #bdbdbd; font-size: 9px; text-transform: uppercase; }
.case-availability-item small { margin-top: 2px; color: #626262; font-size: 8px; }
.case-availability-item.is-missing strong { color: #737373; }

.case-evidence-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.case-evidence-detail-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--case-border);
  border-radius: 3px;
  background: var(--case-surface);
}

.case-detail-card-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.case-detail-card-heading > span {
  color: #555;
  font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.case-detail-card-heading strong,
.case-detail-card-heading small { display: block; }
.case-detail-card-heading strong { color: #d0d0d0; font-size: 11px; }
.case-detail-card-heading small { margin-top: 2px; color: #626262; font-size: 9px; }

.case-detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid #202020; }
.case-detail-list > div { min-width: 0; padding: 8px 5px; border-bottom: 1px solid #1d1d1d; }
.case-detail-list > div:nth-child(odd) { padding-left: 0; padding-right: 12px; border-right: 1px solid #1d1d1d; }
.case-detail-list > div:nth-child(even) { padding-left: 12px; }
.case-detail-list dt { overflow: hidden; color: #686868; font-size: 8px; font-weight: 750; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.case-detail-list dd { margin: 3px 0 0; overflow-wrap: anywhere; color: #b8b8b8; font: 600 10px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; }

.case-visual-evidence,
.case-corroboration-panel,
.case-evidence-bundle { margin-top: 8px; }
.case-visual-evidence .behavioral-visual-card { background: #080808 !important; }
.case-visual-evidence .raw-details { margin-bottom: 0; border-color: #242424; background: #080808; }

.case-corroboration-list { display: flex; flex-direction: column; }
.case-corroboration-list article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #202020;
}
.case-corroboration-state { padding: 4px 5px; border: 1px solid #26372e; border-radius: 2px; color: #68ac86; background: #09100c; font-size: 8px; font-weight: 800; text-align: center; text-transform: uppercase; }
.case-corroboration-state.is-flagged { border-color: #43351d; color: #c99d49; background: #141006; }
.case-corroboration-list strong { color: #c1c1c1; font-size: 10px; }
.case-corroboration-list p { margin: 2px 0 0; color: #707070; font-size: 9px; }
.case-corroboration-list b { color: #777; font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: right; }

.case-json-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 18px;
  border-top: 1px solid #202020;
}
.case-json-actions p { margin: 0; color: #707070; font-size: 10px; }
.case-json-block {
  max-height: 520px;
  margin: 0;
  padding: 18px;
  overflow: auto;
  border-top: 1px solid #202020;
  color: #aaa;
  background: #060606;
  font-size: 10px;
  line-height: 1.5;
}

.case-question-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  overflow: hidden;
}

.case-question-number {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 19px;
  border-right: 1px solid var(--case-border);
  color: #5f5f5f;
  background: #080808;
  font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.case-question-body { padding: 17px 18px; }
.case-question-body h3 { margin: 0 0 10px; color: #e5e5e5; font-size: 15px; line-height: 1.35; }
.case-trigger-list { margin-bottom: 14px; }
.case-trigger-list span { color: #777; font-size: 8px; }

.case-finding {
  padding: 11px 13px;
  border-left: 2px solid #5a5a5a;
  background: #0d0d0d;
}

.case-finding strong { color: #d7d7d7; font-size: 11px; }
.case-finding p { margin: 4px 0 0; color: #9b9b9b; font-size: 11px; line-height: 1.5; }

.case-measurements {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
}

.case-measurements div {
  display: flex;
  gap: 6px;
  padding: 5px 7px;
  border: 1px solid #222;
  border-radius: 3px;
  background: #080808;
  font-size: 9px;
}

.case-measurements dt { color: #686868; font-weight: 600; }
.case-measurements dd { margin: 0; color: #c3c3c3; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.case-needed { margin: 11px 0 0; color: #7c7c7c; font-size: 10px; }
.case-needed strong { margin-right: 6px; color: #ad8a46; text-transform: uppercase; }

.case-helper-copy { margin: 0 0 15px; color: #838383; font-size: 11px; line-height: 1.55; }

.case-cohort-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
  padding: 10px 12px;
  border: 1px solid #252525;
  background: #0d0d0d;
  font-size: 10px;
}

.case-cohort-note strong { color: #c9c9c9; }
.case-cohort-note span { color: #777; }

.case-related-list,
.case-supporting-list,
.case-history-list { display: flex; flex-direction: column; }

.case-related-row {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 14px;
  padding: 11px 12px;
  border-top: 1px solid #202020;
  color: #aaa;
  text-decoration: none;
}

.case-related-row:hover { background: #0e0e0e; color: #ddd; }
.case-related-row > div { min-width: 0; }
.case-related-row > div > span,
.case-related-row > div > strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-related-row > div > span { color: #666; font-size: 9px; text-transform: uppercase; }
.case-related-row > div > strong { margin-bottom: 2px; color: #c8c8c8; font-size: 11px; }
.case-related-arrow { color: #606060; }

.case-supporting-list > div,
.case-history-list article { padding: 12px 0; border-top: 1px solid #202020; }
.case-supporting-list strong { color: #c9c9c9; font-size: 11px; }
.case-supporting-list p { margin: 4px 0 0; color: #858585; font-size: 11px; }

.case-empty-state {
  padding: 18px;
  border: 1px dashed #292929;
  color: #6f6f6f;
  background: #080808;
  font-size: 11px;
  text-align: center;
}

.case-raw-evidence { padding: 0; overflow: hidden; }
.case-raw-evidence summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
}
.case-raw-evidence summary::-webkit-details-marker { display: none; }
.case-raw-evidence summary > span:first-child { display: flex; flex-direction: column; gap: 3px; }
.case-raw-evidence summary strong { color: #cfcfcf; font-size: 12px; }
.case-raw-evidence summary small { color: #666; font-size: 9px; text-transform: uppercase; }
.case-raw-evidence[open] > summary > span:last-child:not(:first-child) { transform: rotate(45deg); }
.case-raw-evidence > summary:has(> span:only-child)::after { content: "+"; color: var(--case-muted); flex: 0 0 auto; }
.case-raw-evidence[open] > summary:has(> span:only-child)::after { transform: rotate(45deg); }
.case-raw-evidence .table-responsive { border-width: 1px 0 0 !important; }

.case-review-panel { border-top: 2px solid #d8d8d8; }
.case-review-form { display: flex; flex-direction: column; gap: 14px; }
.case-review-form .form-label { margin-bottom: 6px; color: #bdbdbd; font-size: 10px; font-weight: 750; }
.case-review-form .form-text { margin-top: 6px; color: #666; font-size: 9px; line-height: 1.45; }
.case-review-form textarea { resize: vertical; }
.case-review-form .btn { margin-top: 2px; }

.case-history-list article:first-child { border-top: 0; padding-top: 0; }
.case-history-list article:last-child { padding-bottom: 0; }
.case-history-list article > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.case-history-list strong { color: #cfcfcf; font-size: 10px; text-transform: uppercase; }
.case-history-list time,
.case-history-list small { color: #666; font-size: 9px; }
.case-history-list p { margin: 7px 0 5px; color: #999; font-size: 11px; line-height: 1.45; }

@media (max-width: 1180px) {
  .case-workspace { grid-template-columns: minmax(0, 1fr) 320px; }
  .case-evidence-grid { grid-template-columns: 1fr; }
  .case-evidence-block + .case-evidence-block { border-left: 0; border-top: 1px solid var(--case-border); }
  .case-availability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-availability-item:nth-child(odd) { border-left: 0; }
  .case-availability-item:nth-child(n+3) { border-top: 1px solid var(--case-border); }
}

@media (max-width: 920px) {
  .case-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-fact:nth-child(3) { border-left: 0; border-top: 1px solid var(--case-border); }
  .case-fact:nth-child(4) { border-top: 1px solid var(--case-border); }
  .case-workspace { grid-template-columns: 1fr; }
  .case-review-column { position: static; }
}

@media (max-width: 575px) {
  .investigator-case-page { padding: 18px 12px 50px; }
  .investigator-case-header { align-items: flex-start; flex-direction: column; }
  .case-header-actions { justify-content: flex-start; }
  .case-readiness { grid-template-columns: 28px minmax(0, 1fr); }
  .case-readiness-label { grid-column: 2; }
  .case-facts { grid-template-columns: 1fr; }
  .case-fact + .case-fact { border-top: 1px solid var(--case-border); border-left: 0; }
  .case-panel { padding: 16px; }
  .case-missing-row { grid-template-columns: 1fr; gap: 5px; }
  .case-question-card { grid-template-columns: 34px minmax(0, 1fr); }
  .case-question-body { padding: 15px 13px; }
  .case-signal-list li { grid-template-columns: 1fr; gap: 3px; }
  .case-related-row { grid-template-columns: 1fr 18px; }
  .case-related-row > div:nth-child(2) { display: none; }
  .case-availability-grid,
  .case-evidence-detail-grid { grid-template-columns: 1fr; }
  .case-availability-item + .case-availability-item { border-top: 1px solid var(--case-border); border-left: 0; }
  .case-detail-list { grid-template-columns: 1fr; }
  .case-detail-list > div:nth-child(odd) { padding-right: 5px; border-right: 0; }
  .case-detail-list > div:nth-child(even) { padding-left: 0; }
  .case-json-actions { align-items: flex-start; flex-direction: column; }
}

/* Sandbox (SANDBOX_SPEC.md) — client page, request detail, admin list.
   Colours come from the console theme tokens (--pc-*), falling back to the
   older --app-* ones, so this section follows whatever theme is active. */
.sandbox-shell .panel-card + .panel-card,
.sandbox-shell .sandbox-grid + .panel-card,
.sandbox-shell .panel-card + .sandbox-grid { margin-top: 1rem; }
.sandbox-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1rem; margin-top: 1rem; }
.sandbox-grid > .panel-card { margin: 0; min-width: 0; }
.sandbox-readiness { border-left: 3px solid var(--pc-border-strong, var(--app-border)); }
.sandbox-readiness.is-ready { border-left-color: #3fb27f; }
.sandbox-readiness.is-not-ready { border-left-color: var(--app-primary); }
.sandbox-readiness-head { margin-bottom: 0.5rem; }
.sandbox-checklist { list-style: none; margin: 0; padding: 0; }
.sandbox-check { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.7rem 0; border-top: 1px solid var(--pc-border, var(--app-border)); }
.sandbox-check:first-child { border-top: 0; }
.sandbox-check > .badge { margin-left: auto; flex-shrink: 0; }
.sandbox-check-body { min-width: 0; }
.sandbox-check-title { display: flex; gap: 0.5rem; align-items: baseline; flex-wrap: wrap; }
.sandbox-check-detail { color: var(--pc-muted, var(--app-muted)); font-size: 0.85rem; }
.sandbox-optional { font-size: 0.7rem; color: var(--pc-muted, var(--app-muted)); border: 1px solid var(--pc-border, var(--app-border)); border-radius: 999px; padding: 0 0.5rem; }
.sandbox-check-icon { display: inline-flex; width: 1.6rem; height: 1.6rem; border-radius: 50%; align-items: center; justify-content: center; flex-shrink: 0; background: var(--pc-surface-3, rgba(127, 127, 127, 0.15)); color: var(--pc-muted, var(--app-muted)); }
.sandbox-check-icon .workspace-nav-icon { width: 0.95rem; height: 0.95rem; }
.sandbox-check-icon.is-pass { background: rgba(63, 178, 127, 0.16); color: #3fb27f; }
.sandbox-check-icon.is-fail { background: rgba(229, 83, 83, 0.16); color: #e55353; }
.sandbox-check-icon.is-warn { background: rgba(230, 168, 60, 0.16); color: #e6a83c; }
.sandbox-key { padding: 0.6rem 0; border-top: 1px solid var(--pc-border, var(--app-border)); }
.sandbox-key:first-of-type { border-top: 0; }
.sandbox-key-head { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.35rem; }
.sandbox-token { display: flex; gap: 0.5rem; align-items: center; }
.sandbox-token code { flex: 1; min-width: 0; overflow-wrap: anywhere; background: var(--pc-surface-2, rgba(127, 127, 127, 0.1)); border: 1px solid var(--pc-border, var(--app-border)); border-radius: 6px; padding: 0.35rem 0.5rem; font-size: 0.8rem; }
.sandbox-key-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.sandbox-magic { --bs-table-bg: transparent; --bs-table-color: inherit; }
.sandbox-magic td { border-color: var(--pc-border, var(--app-border)); }
.sandbox-magic { table-layout: fixed; width: 100%; }
.sandbox-magic td:first-child { width: 48%; }
.sandbox-magic code { font-size: 0.8rem; overflow-wrap: anywhere; }
.sandbox-pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 28rem; overflow: auto; font-size: 0.8rem; }
.sandbox-log-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 0.75rem; }
.sandbox-filters { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.sandbox-filters .form-select { width: auto; }
.sandbox-hints { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.sandbox-hint { border: 1px solid var(--pc-border, var(--app-border)); border-left-width: 3px; border-radius: 6px; padding: 0.75rem 1rem; background: var(--pc-surface-2, transparent); }
.sandbox-hint.is-error { border-left-color: #e55353; }
.sandbox-hint.is-warning { border-left-color: #e6a83c; }
.sandbox-hint.is-info { border-left-color: #5b9bd5; }
.sandbox-hint-head { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.25rem; }
.sandbox-hint-fix { color: var(--pc-text-soft, var(--app-muted)); font-size: 0.875rem; margin-top: 0.25rem; }
.sandbox-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 0.75rem; margin: 1rem 0 0; }
.sandbox-facts dt { font-size: 0.7rem; color: var(--pc-muted, var(--app-muted)); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.sandbox-facts dd { margin: 0; overflow-wrap: anywhere; }
.connection-type-badge.is-sandbox { background: rgba(230, 168, 60, 0.16); color: #e6a83c; border-color: rgba(230, 168, 60, 0.35); }
.sandbox-callout { border-left: 3px solid var(--app-primary); margin-bottom: 1rem; font-size: 0.9rem; }
.sandbox-fix-cell { min-width: 300px; }

/* Tablet and phone navigation: top bar plus slide-in drawer.
   Kept last on purpose so it overrides the older stacked-header rules. */
.workspace-mobile-bar,
.workspace-drawer-backdrop {
  display: none;
}

@media (max-width: 991.98px) {
  .workspace-mobile-bar {
    position: sticky;
    top: 0;
    z-index: 90;
    display: flex;
    height: 56px;
    padding: 0 14px;
    align-items: center;
    justify-content: space-between;
    background: var(--pc-sidebar);
    border-bottom: 1px solid var(--pc-border);
    grid-column: 1;
  }

  .workspace-mobile-brand img {
    display: block;
    width: 112px;
  }

  .workspace-menu-button {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--pc-border);
    border-radius: 8px;
    background: transparent;
    color: var(--pc-text);
  }

  .workspace-shell {
    display: block;
  }

  .workspace-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 110;
    width: min(300px, 86vw);
    height: 100vh;
    min-height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    border-right: 1px solid var(--pc-border);
  }

  .workspace-shell.workspace-menu-open .workspace-sidebar {
    transform: translateX(0);
  }

  .workspace-sidebar-card,
  .admin-sidebar-card {
    height: 100%;
    min-height: 100%;
    padding: 0;
  }

  .workspace-sidebar-top {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    overflow-y: auto;
    padding-bottom: 24px;
  }

  .workspace-profile {
    display: grid;
    order: 0;
    margin-left: 0;
    padding: 8px 12px 2px;
  }

  .workspace-profile > div:not(.workspace-avatar),
  .workspace-user-name,
  .workspace-user-email {
    display: block;
  }

  .workspace-nav-group {
    order: 0;
    margin-left: 0;
    padding: 0 8px;
  }

  .workspace-section-label {
    display: block;
  }

  .workspace-nav {
    flex-direction: column;
  }

  .workspace-nav-link {
    display: flex;
    min-width: 0;
    min-height: 40px;
    justify-content: flex-start;
    padding: 8px 12px;
  }

  .workspace-nav-link span {
    display: inline;
  }

  .workspace-nav-icon {
    width: 18px;
    height: 18px;
  }

  .workspace-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 105;
    display: block;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .workspace-shell.workspace-menu-open .workspace-drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.workspace-menu-lock {
    overflow: hidden;
  }
}

/* Episode evidence is primary reading material, including its limitations. */
.sentinel-episode-page .panel-title { font-size: 21px; }
.sentinel-episode-page .panel-subtitle,
.sentinel-episode-page .panel-card > .p-3,
.sentinel-episode-page .small,
.sentinel-episode-page small,
.sentinel-episode-page .sentinel-intelligence-context dd,
.sentinel-episode-page .sentinel-proof-state p,
.sentinel-episode-page .sentinel-coverage-grid li { font-size: 15px; line-height: 1.65; }
.sentinel-episode-page .panel-subtitle,
.sentinel-episode-page .text-muted { color: #b7c1be !important; }
.sentinel-episode-page .sentinel-metric-card small,
.sentinel-episode-page .sentinel-assurance-rail small,
.sentinel-episode-page .sentinel-intelligence-impact small { color: #b7c1be; }
.sentinel-episode-page .sentinel-hero-summary { font-size: 18px; line-height: 1.65; }
.sentinel-episode-page .sentinel-section-kicker,
.sentinel-episode-page .sentinel-metric-card > span,
.sentinel-episode-page .sentinel-intelligence-impact > span,
.sentinel-episode-page .sentinel-intelligence-reading > span,
.sentinel-episode-page .sentinel-intelligence-context dt { font-size: 12px; color: #bdc6c3; }
.sentinel-episode-page .sentinel-assurance-rail strong,
.sentinel-episode-page .sentinel-proof-state strong,
.sentinel-episode-page .sentinel-episode-nav a { font-size: 14px; }
.sentinel-resemblance { color: #e1e7e4; }
.sentinel-resemblance h3 { font-size: 20px; margin: 0 0 16px; }
.sentinel-source-pair { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin: 20px 0; }
.sentinel-source-pair > div { padding: 20px; border: 1px solid #202020; border-radius: 8px; text-align: center; min-width: 0; overflow-wrap: anywhere; background: #050505;}
.sentinel-source-pair span, .sentinel-source-pair strong { display: block; }
.sentinel-source-pair strong { font-size: 24px; color: #f4c364; }
.sentinel-source-pair p { margin: 8px 0 0; }
.sentinel-source-pair .sentinel-pair-link { border: 0; align-self: center; }
.sentinel-pair-link > span { font-size: 30px; }
.sentinel-source-pair .sentinel-pair-link strong { font-size: 18px; }
.sentinel-score-explanation, .sentinel-checklist { padding: 22px; background: #050505; border-left: 3px solid #f4c364; margin: 24px 0;}
.sentinel-score-explanation > strong { font-size: 20px; }
.sentinel-score-explanation p, .sentinel-checklist p { margin: 10px 0 0; max-width: 90ch; }
.sentinel-checklist li { margin-bottom: 14px; padding-left: 8px; }
.sentinel-group-chart { margin: 28px 0; }
.sentinel-group-chart figcaption > strong { font-size: 20px; }
.sentinel-group-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 22px 0; border-top: 1px solid #3a4240; }
.sentinel-group-row p { margin: 8px 0 0; }
.sentinel-group-track { position: relative; height: 24px; background: #252e2b; margin-top: 8px; }
.sentinel-group-track::after { content: ''; position: absolute; left: 50%; top: -4px; bottom: -4px; border-left: 2px solid #e5ece9; }
.sentinel-group-track i { position: absolute; top: 0; height: 24px; background: #e9b850; }
.sentinel-group-scale { display: flex; justify-content: space-between; font-size: 12px; margin: 8px 0; gap: 6px; }
.sentinel-review-takeaway { font-size: 18px; color: #edf2f0; max-width: 85ch; }
.sentinel-review-details { padding: 16px 0; border-top: 1px solid #3a4240; }
.sentinel-review-details summary { cursor: pointer; font-size: 16px; color: #e6ece9; }
.sentinel-review-details p, .sentinel-review-details ul { margin-top: 16px; max-width: 90ch; }
.sentinel-review-details li { margin: 10px 0; }
.sentinel-episode-page summary:focus-visible { outline: 2px solid #f4c364; outline-offset: 4px; }
@media (max-width: 760px) {
  .sentinel-source-pair, .sentinel-group-row { grid-template-columns: 1fr; }
  .sentinel-source-pair .sentinel-pair-link { padding: 0; }
  .sentinel-group-row { gap: 12px; }
}
.sentinel-episode-page .sentinel-proof-state p,
.sentinel-episode-page .sentinel-history-story article p,
.sentinel-episode-page .sentinel-history-recurrence span,
.sentinel-episode-page .sentinel-staff-workspace-header p,
.sentinel-episode-page .sentinel-playbook li { color: #b7c1be; font-size: 15px; line-height: 1.65; }
.sentinel-episode-page .sentinel-history-story article h4 { font-size: 17px; }
.sentinel-episode-page .sentinel-history-story article > span,
.sentinel-episode-page .sentinel-history-recurrence strong,
.sentinel-episode-page .badge { font-size: 13px; }

.sentinel-guide .panel-header { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.sentinel-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.sentinel-guide-grid article { border: 1px solid #202020; padding: 22px; border-radius: 8px; background: #080808; }
.sentinel-guide h3, .sentinel-ai-drawer h3 { font-size: 18px; color: #f1f5f3; }
.sentinel-guide-grid p, .sentinel-ai-drawer p { font-size: 16px; line-height: 1.65; color: #cbd5d0; overflow-wrap: anywhere; }
.sentinel-guide-citations { display: flex; flex-wrap: wrap; gap: 12px; font-size: 14px; }
.sentinel-guide-citations a, .sentinel-guide-citations summary { color: #e6c578; cursor: pointer; }
.sentinel-guide-citations details { width: 100%; }
.sentinel-guide-citations details p { font-size: 14px; white-space: pre-wrap; }
@keyframes sentinel-drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .sentinel-ai-drawer[open] { animation: none; } }
@media (max-width: 760px) { .sentinel-guide-grid { grid-template-columns: 1fr; } .sentinel-guide .panel-header { align-items: start; flex-direction: column; } }

/* Episode questions: quiet evidence workspace with a persistent composer. */
.sentinel-ask-button { display: inline-flex; align-items: center; gap: 9px; border: 1px solid #b8adff; border-radius: 999px; background: linear-gradient(110deg, #682bd9, #375ff2); color: white; padding: 11px 21px; font-size: 16px; font-weight: 650; box-shadow: 0 4px 22px #5034bb30; white-space: nowrap; }
.sentinel-ask-button:hover { filter: brightness(1.15); }
.sentinel-ask-button span { font-size: 22px; line-height: 1; }
[data-ai-question-status].is-thinking::after { content: ""; display: inline-block; width: 1.4em; margin-left: 2px; text-align: left; animation: sentinel-ai-dots 1.2s steps(4, end) infinite; }
@keyframes sentinel-ai-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75%, 100% { content: "..."; } }
[data-ai-question-status].is-thinking { animation: sentinel-ai-pulse 1.8s ease-in-out infinite; }
@keyframes sentinel-ai-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { [data-ai-question-status].is-thinking, [data-ai-question-status].is-thinking::after { animation: none; } }
/* Ask Sentinel drawer: same flat dark system as the rest of Sentinel (3px radius, #323232 borders, 13px/700 controls). */
.sentinel-ai-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(720px, 100vw); height: 100dvh; max-height: 100dvh; max-width: 100vw; padding: 0; overflow: clip; border: 0; border-left: 1px solid #323232; background: #080808; color: #e8ecea; box-shadow: -20px 0 60px #000a; }
.sentinel-ai-drawer[open] { display: flex; flex-direction: column; animation: sentinel-drawer-in .22s ease-out; }
.sentinel-ai-drawer::backdrop { background: #000a; }
.sentinel-ai-drawer :focus-visible { outline: 2px solid #f2bd4f; outline-offset: 2px; }
.sentinel-ai-drawer button:disabled { opacity: .5; cursor: not-allowed; }
.sentinel-ai-drawer header { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sentinel-ai-drawer .sentinel-section-kicker { display: block; margin-bottom: 4px; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #818a88; }
.sentinel-ai-drawer h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; font-size: 16px; font-weight: 650; color: #e8ecea; }
.sentinel-ai-badge { font-size: 11px; font-weight: 750; border: 1px solid #414141; background: #161616; color: #c1c1c1; border-radius: 3px; padding: 2px 6px; }
.sentinel-ai-window-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.sentinel-ai-window-controls button, .sentinel-ai-back { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 30px; padding: 7px 11px; border: 1px solid #323232; border-radius: 3px; background: #111; color: #d8d8d8; font-size: 13px; font-weight: 700; line-height: 1; }
.sentinel-ai-window-controls button:hover, .sentinel-ai-back:hover { background: #1a1a1a; border-color: #444; color: #fff; }
.sentinel-ai-window-controls .sentinel-ai-icon-button { width: 30px; padding: 0; }
.sentinel-ai-window-controls svg, .sentinel-ai-back svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sentinel-ai-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 20px; }
.sentinel-ai-drawer .sentinel-ai-scope, .sentinel-ai-drawer p.sentinel-ai-scope { margin: 0 0 16px; font-size: 13px; line-height: 1.55; color: #9aa3a0; }
.sentinel-ai-intro { display: grid; grid-template-columns: 30px 1fr; gap: 11px; align-items: start; margin: 0 0 16px; padding: 13px; border: 1px solid #2d3241; border-radius: 7px; background: linear-gradient(135deg, #11141d, #0c0d11); }
.sentinel-ai-intro > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #6d4aff24; color: #b7a6ff; font-size: 16px; }
.sentinel-ai-drawer .sentinel-ai-intro p { margin: 0; color: #aeb8b4; font-size: 13px; line-height: 1.5; }
.sentinel-ai-drawer .sentinel-ai-intro strong { color: #f0f3f2; font-weight: 700; }
.sentinel-ai-drawer [data-ai-question-status] { margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: #9aa3a0; }
.sentinel-ai-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; }
.sentinel-ai-suggestions button { padding: 7px 11px; border: 1px solid #323232; border-radius: 3px; background: #111; color: #d8d8d8; font-size: 13px; font-weight: 700; text-align: left; }
.sentinel-ai-suggestions button:hover:not(:disabled) { background: #1a1a1a; border-color: #444; color: #fff; }
.sentinel-ai-messages article { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.sentinel-ai-drawer .sentinel-ai-messages h3 { margin: 0 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #818a88; }
.sentinel-ai-drawer .sentinel-ai-messages article p { margin: 0 0 8px; font-size: 14px; line-height: 1.6; color: #d8dedb; }
.sentinel-ai-messages .sentinel-ai-question { margin: 16px 0 0 32px; padding: 10px 13px; border: 1px solid #323232; border-radius: 3px; background: #161616; font-size: 14px; line-height: 1.55; color: #f1f4f2; }
.sentinel-ai-drawer .sentinel-guide-citations { font-size: 13px; }
.sentinel-ai-drawer .sentinel-guide-citations details { padding: 8px 10px; border: 1px solid #262626; border-radius: 3px; background: #0b0b0c; }
.sentinel-ai-drawer .sentinel-guide-citations details p { font-size: 13px; }
.sentinel-ai-drawer .sentinel-ai-answer > p { font-size: 15px; color: #eef2f0; }
.sentinel-ai-drawer .sentinel-guide-citations { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 14px; }
.sentinel-ai-drawer .sentinel-guide-citations > h4 { margin: 2px 0 0; color: #8e9794; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sentinel-ai-evidence-card { min-width: 0; padding: 13px; border: 1px solid #2a2d2c; border-radius: 7px; background: linear-gradient(145deg, #101311, #0b0c0c); box-shadow: 0 8px 24px #0002; }
.sentinel-ai-evidence-card.is-scale { border-color: #5d4c273f; background: linear-gradient(145deg, #16130c, #0c0c0b); }
.sentinel-ai-evidence-card.is-board { border-color: #4b3f633f; background: linear-gradient(145deg, #14111a, #0c0b0e); }
.sentinel-ai-evidence-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; }
.sentinel-ai-evidence-heading > span:first-child { display: grid; flex: 0 0 25px; place-items: center; width: 25px; height: 25px; border-radius: 5px; background: #ffffff0a; color: #dbc16f; font-weight: 800; }
.sentinel-ai-evidence-heading > div { min-width: 0; flex: 1; }
.sentinel-ai-evidence-heading small { display: block; margin-bottom: 2px; color: #777f7c; font-size: 8px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.sentinel-ai-evidence-heading h4 { margin: 0; color: #e6ebe8; font-size: 13px; font-weight: 750; }
.sentinel-ai-chip { display: inline-flex; width: fit-content; align-items: center; padding: 3px 7px; border: 1px solid #3a3d3b; border-radius: 999px; background: #ffffff08; color: #aeb7b3; font-size: 10px; font-weight: 750; letter-spacing: .02em; }
.sentinel-ai-chip.is-watch { border-color: #8e6c25; background: #e1a82a17; color: #f0c96e; }
.sentinel-ai-chip.is-danger { border-color: #8d3f43; background: #de535318; color: #f09393; }
.sentinel-ai-chip.is-advisory { border-color: #57436d; color: #c7ace4; }
.sentinel-ai-source-pair { display: grid; grid-template-columns: minmax(80px, 1fr) auto minmax(80px, 1fr); gap: 9px; align-items: center; margin-bottom: 10px; }
.sentinel-ai-source-pair strong { padding: 10px; border: 1px solid #383e3b; border-radius: 5px; background: #171b19; color: #f2f4f3; text-align: center; overflow-wrap: anywhere; }
.sentinel-ai-source-pair span { color: #838d89; font-size: 10px; text-align: center; }
.sentinel-ai-score-top { display: flex; align-items: baseline; gap: 9px; }
.sentinel-ai-score-top strong { color: #f0c96e; font-size: 25px; line-height: 1; }
.sentinel-ai-score-top span { color: #9da6a2; font-size: 11px; }
.sentinel-ai-score-path { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 12px; }
.sentinel-ai-score-path > span:not(.sentinel-ai-chip) { color: #7e8884; }
.sentinel-ai-score-path small { flex-basis: 100%; color: #767f7b; font-size: 9px; }
.sentinel-ai-not-equal { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.sentinel-ai-board-visual, .sentinel-ai-group-visual { display: grid; gap: 8px; }
.sentinel-ai-board-visual > strong { color: #dbc4ef; font-size: 20px; }
.sentinel-ai-board-visual > span:not(.sentinel-ai-chip), .sentinel-ai-group-visual > span { color: #a6afab; font-size: 11px; }
.sentinel-ai-board-visual progress, .sentinel-ai-group-visual progress { width: 100%; height: 7px; border: 0; border-radius: 999px; overflow: hidden; accent-color: #9d79c5; background: #29252d; }
.sentinel-ai-group-visual progress { accent-color: #d3ad55; }
.sentinel-ai-metric { display: flex; align-items: baseline; gap: 10px; margin-bottom: 7px; }
.sentinel-ai-metric strong { flex: 0 0 auto; color: #f1c963; font-size: 23px; }
.sentinel-ai-metric span { color: #a5aeaa; font-size: 11px; line-height: 1.4; }
.sentinel-ai-checklist { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; counter-reset: sentinel-check; }
.sentinel-ai-checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 9px; align-items: start; counter-increment: sentinel-check; }
.sentinel-ai-checklist li > span::before { content: counter(sentinel-check); display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #5c5134; border-radius: 50%; color: #e0bd68; font-size: 10px; font-weight: 800; }
.sentinel-ai-drawer .sentinel-ai-checklist p { margin: 1px 0 0; color: #d1d7d4; font-size: 12px; line-height: 1.5; }
.sentinel-ai-drawer .sentinel-ai-plain-explanation { width: 100%; margin-top: 13px; padding-top: 12px; border-top: 1px solid #ffffff0c; }
.sentinel-ai-drawer .sentinel-ai-plain-explanation p { margin: 0; color: #bbc4c0; font-size: 13px; line-height: 1.6; white-space: normal; }
.sentinel-ai-evidence-card > a { display: inline-block; margin-top: 11px; color: #c2b2ff; font-size: 10px; text-decoration: none; }
.sentinel-ai-evidence-card > a:hover { color: #e2d9ff; text-decoration: underline; }
.sentinel-ai-followups { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; padding-top: 15px; border-top: 1px solid #ffffff10; }
.sentinel-ai-followups > span { flex-basis: 100%; color: #7f8985; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.sentinel-ai-followups button { padding: 7px 10px; border: 1px solid #39334c; border-radius: 999px; background: #15121d; color: #cbbcff; font-size: 11px; text-align: left; }
.sentinel-ai-followups button:hover { border-color: #665887; background: #1d1728; color: #e5ddff; }
/* Composer: one rounded input, send arrow inside it, privacy note underneath. */
.sentinel-ai-drawer .sentinel-ai-composer { flex-shrink: 0; display: block; margin: 0; padding: 12px 20px 14px; border-top: 1px solid rgba(255,255,255,.1); background: #080808; }
.sentinel-ai-composer-box { display: flex; flex-direction: column; gap: 6px; padding: 10px 10px 8px 14px; border: 1px solid #323232; border-radius: 5px; background: #0b0b0c; transition: border-color .15s; }
.sentinel-ai-composer-box:focus-within { border-color: #5a5a5a; }
.sentinel-ai-drawer textarea { display: block; width: 100%; min-height: 24px; max-height: 180px; padding: 2px 0; border: 0; border-radius: 0; background: transparent; color: #f5f5f5; font-size: 14px; line-height: 1.5; resize: none; box-shadow: none; outline: 0; }
.sentinel-ai-drawer textarea:focus-visible { outline: 0; }
.sentinel-ai-drawer textarea::placeholder { color: #818a88; }
.sentinel-ai-composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; }
.sentinel-ai-model { font-size: 12px; color: #818a88; overflow-wrap: anywhere; }
.sentinel-ai-send { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 3px; background: #e8ecea; color: #0b0b0c; }
.sentinel-ai-send:hover:not(:disabled) { background: #fff; }
.sentinel-ai-send svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sentinel-ai-drawer .sentinel-ai-composer small { display: block; margin-top: 8px; text-align: center; font-size: 11px; color: #818a88; }
.sentinel-ai-settings-link { flex-shrink: 0; padding: 0 20px 14px; color: #c7b9ff; font-size: 12px; text-align: center; }
/* Saved questions: panel that slides in from the right over the chat. */
.sentinel-ai-history-panel { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; background: #080808; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
.sentinel-ai-history-panel.is-open { transform: translateX(0); visibility: visible; transition: transform .25s ease; }
.sentinel-ai-history-panel header h3 { margin: 0; font-size: 16px; font-weight: 650; color: #e8ecea; }
.sentinel-ai-history-panel [data-ai-history-list] { flex: 1; min-height: 0; overflow-y: auto; padding: 20px; }
.sentinel-ai-history-item { margin-bottom: 16px; padding: 16px; border: 1px solid #323232; border-radius: 6px; background: #0b0b0c; overflow-wrap: anywhere; }
.sentinel-ai-history-item time { display: block; margin-bottom: 5px; color: #777f7c; font-size: 10px; }
.sentinel-ai-history-item > h4 { margin: 0 0 7px; color: #e8ecea; font-size: 14px; font-weight: 700; }
.sentinel-ai-history-item > p { margin: 0 0 12px; color: #929b97; font-size: 11px; }
.sentinel-ai-history-panel [data-ai-history-list] > p { font-size: 13px; color: #9aa3a0; }
.sentinel-ai-history-panel [data-ai-history-list] > button { padding: 7px 11px; border: 1px solid #323232; border-radius: 3px; background: #111; color: #d8d8d8; font-size: 13px; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .sentinel-ai-history-panel, .sentinel-ai-history-panel.is-open { transition: none; } }
@media (max-width: 540px) { .sentinel-ai-drawer header, .sentinel-ai-scroll, .sentinel-ai-history-panel [data-ai-history-list] { padding: 14px; } .sentinel-ai-drawer .sentinel-ai-composer { padding: 10px 14px 12px; } .sentinel-ai-badge, .sentinel-ai-btn-label { display: none; } .sentinel-ai-source-pair { grid-template-columns: 1fr; } .sentinel-ai-source-pair span { padding: 1px 0; } }
.sentinel-ask-settings-form { display: grid; gap: 20px; max-width: 720px; }
.sentinel-ask-settings-form label { display: block; margin-bottom: 6px; }
.sentinel-ask-settings-form p { margin: 8px 0 0; }
.sentinel-ask-settings-page > .panel-card { margin-top: 22px; padding: 18px; }
.sentinel-ask-settings-page .page-header { align-items: center; }
.sentinel-ask-settings-page .page-subtitle { max-width: 780px; }
.sentinel-ask-settings-page .panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sentinel-ask-settings-page .table-responsive { overflow-x: auto; }
.sentinel-ask-settings-page .workspace-table { margin-bottom: 0; }
.sentinel-ask-settings-page .workspace-table td,
.sentinel-ask-settings-page .workspace-table th { vertical-align: middle; }
.sentinel-ask-settings-page .workspace-table td:last-child,
.sentinel-ask-settings-page .workspace-table th:last-child { white-space: nowrap; }
.sentinel-ask-settings-page .sentinel-ask-settings-form { max-width: none; gap: 18px; }
.sentinel-ask-enable { padding: 12px 14px 12px 38px; border: 1px solid var(--pc-border); background: var(--pc-surface); }
.sentinel-ask-enable .form-check-input { margin-left: -24px; }
.sentinel-ask-settings-page .sentinel-ask-enable label { margin: 0; }
.sentinel-ask-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.sentinel-ask-fields > div { min-width: 0; }
.sentinel-ask-prompt-field { margin: 22px 0; }
.sentinel-ask-prompt-field textarea { min-height: 260px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 13px; line-height: 1.55; }
.sentinel-ask-settings-page .form-text { color: var(--pc-muted); font-size: var(--type-tiny); line-height: 1.45; }
.sentinel-ask-usage-note,
.sentinel-ask-guidance { padding: 14px 16px; border: 1px solid var(--pc-border); background: var(--pc-surface); }
.sentinel-ask-usage-note { display: grid; gap: 5px; }
.sentinel-ask-usage-note strong { font-size: var(--type-small); }
.sentinel-ask-usage-note p,
.sentinel-ask-guidance p { margin: 0; color: var(--pc-muted); font-size: var(--type-tiny); line-height: 1.5; }
.sentinel-ask-guidance { display: grid; gap: 10px; }
.sentinel-ask-guidance strong { color: var(--pc-text); }
.sentinel-ask-form-actions { padding-top: 14px; border-top: 1px solid var(--pc-border); }
.sentinel-ask-settings-page .sentinel-saved-chat { border-color: var(--pc-border); border-radius: 3px; margin: 0 0 10px; padding: 0; }
.sentinel-ask-settings-page .sentinel-saved-chat summary { cursor: pointer; padding: 13px 15px; font-weight: 600; }
.sentinel-saved-chat-content { padding: 14px 15px; border-top: 1px solid var(--pc-border); overflow-wrap: anywhere; }
.sentinel-saved-chat-content p { margin: 0 0 12px; }
.sentinel-ask-empty { margin: 0; padding: 18px; color: var(--pc-muted); text-align: center; }
@media (max-width: 760px) {
  .sentinel-ask-settings-page .page-header { align-items: flex-start; flex-direction: column; }
  .sentinel-ask-fields { grid-template-columns: 1fr; }
}

/* Match episode labels to the compact, outlined investigation labels. */
.sentinel-episode-page :is(.sentinel-badge, .badge, .sentinel-live-chip, .sentinel-severity-chip, .sentinel-ai-badge) {
  border-radius: 3px;
  padding: 3px 7px;
  min-height: 20px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 750;
}
.sentinel-episode-page :is(.sentinel-badge, .badge) {
  border: 1px solid #414141;
  background: #161616 !important;
  color: #c1c1c1 !important;
}
.sentinel-episode-page :is(.sentinel-badge--warning, .badge.text-bg-warning, .badge.bg-warning, .badge.bg-warning-subtle) {
  border-color: #79632e;
  background: rgba(234, 184, 78, .09) !important;
  color: #f1c861 !important;
}
.sentinel-episode-page :is(.sentinel-badge--danger, .badge.text-bg-danger, .badge.bg-danger, .badge.bg-danger-subtle) {
  border-color: #8a3d45;
  background: rgba(255, 92, 105, .09) !important;
  color: #ff7480 !important;
}
.sentinel-episode-page :is(.sentinel-badge--success, .badge.text-bg-success, .badge.bg-success, .badge.bg-success-subtle) {
  border-color: #34734f;
  background: rgba(52, 217, 131, .08) !important;
  color: #46dd91 !important;
}
.sentinel-episode-page .sentinel-monitor-strip { padding: 16px 20px; gap: 16px; }
.sentinel-episode-page .sentinel-monitor-strip strong { font-size: 16px; color: #e7eeeb; line-height: 1.5; }
.sentinel-episode-page .sentinel-monitor-evaluation { font-size: 14px; color: #bccbc5; line-height: 1.5; margin-top: 4px; }
.sentinel-episode-page .sentinel-monitor-icon { display: grid; position: relative; margin: 0; }
.sentinel-episode-page .sentinel-monitor-icon::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid #55d6a5;
  border-radius: 50%;
  pointer-events: none;
  animation: sentinel-monitor-pulse 2.8s ease-out infinite;
}
@keyframes sentinel-monitor-pulse {
  0% { transform: scale(.85); opacity: .65; }
  80%, 100% { transform: scale(1.5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sentinel-episode-page .sentinel-monitor-icon::after { animation: none; opacity: .3; }
}

.form-select:disabled {
    background-color: #1d1d1d !important;
}

/* Aggregate browser measurements match the existing telemetry SVG cards. */
.measurement-visuals { margin: 18px; color: var(--pc-text, #f5f5f5); }
.measurement-heading { margin-bottom: 14px; }
.measurement-heading h3 { margin: 0; font-size: 14px; font-weight: 650; }
.measurement-heading p, .measurement-note { color: var(--pc-muted, #8b8b8b); font-size: 11px; line-height: 1.5; margin: 6px 0 0; }
.measurement-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.measurement-card { min-width: 0; border: 1px solid var(--pc-border, #202020); background: var(--pc-surface, #0a0a0a); padding: 12px; }
.measurement-card h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; margin: 0 0 10px; }
.measurement-canvas { background: #fff; border: 1px solid #e5e5e5; border-radius: 6px; aspect-ratio: 360 / 260; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.measurement-canvas svg { display: block; width: 100%; height: 100%; font-family: inherit; }
.measurement-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.measurement-meta span { border: 1px solid #999; border-radius: 999px; padding: 2px 6px; color: var(--pc-text-soft, #d0d0d0); font-size: 10px; line-height: 1.5; }
.measurement-empty { color: #64748b; text-align: center; padding: 16px; font-size: 13px; }
.measurement-empty small { display: block; font-size: 11px; margin-top: 8px; }
.diagram-device { fill: #f8fafc; stroke: #475569; stroke-width: 1.5; }
.diagram-outline { fill: none; stroke: #475569; stroke-width: 1.5; }
.diagram-ink { fill: #334155; }
.diagram-guide { fill: none; stroke: #cbd5e1; stroke-width: 1; stroke-dasharray: 3 4; }
.diagram-track { stroke: #e2e8f0; stroke-width: 3; stroke-linecap: round; }
.diagram-range { stroke: #64748b; stroke-width: 7; stroke-linecap: round; }
.diagram-dot { fill: #0f172a; stroke: #fff; stroke-width: 1.5; }
.diagram-offset { fill: #e2e8f0; fill-opacity: .55; stroke: #475569; stroke-width: 1.5; stroke-dasharray: 4 3; }
.diagram-label { fill: #334155; font-size: 11px; font-weight: 600; }
.diagram-value { fill: #0f172a; font-size: 12px; font-weight: 700; }
.diagram-caption { fill: #64748b; font-size: 9px; }
@media (max-width: 1100px) { .measurement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) { .measurement-grid { grid-template-columns: 1fr; } }

/* Reuse the mouse (teal), touch (orange), and scroll (blue) chart palette. */
.measurement-tone-teal { --measurement-stroke: #0f766e; --measurement-fill: #14b8a6; --measurement-tint: #ccfbf1; }
.measurement-tone-orange { --measurement-stroke: #b45309; --measurement-fill: #f59e0b; --measurement-tint: #fef3c7; }
.measurement-tone-blue { --measurement-stroke: #1d4ed8; --measurement-fill: #2563eb; --measurement-tint: #dbeafe; }
.measurement-card .diagram-range { stroke: var(--measurement-fill, #2563eb); }
.measurement-card .diagram-dot { fill: var(--measurement-stroke, #1d4ed8); }
.measurement-card .diagram-outline { stroke: var(--measurement-stroke, #1d4ed8); }
.measurement-card .diagram-ink { fill: var(--measurement-stroke, #1d4ed8); }
.measurement-card .diagram-offset { fill: var(--measurement-tint, #dbeafe); stroke: var(--measurement-stroke, #1d4ed8); }

.measurement-wave-label { color: var(--pc-text-soft, #d0d0d0); font-size: 12px; margin: 10px 0 6px; }
.measurement-card .wave-line { fill: none; stroke: var(--measurement-stroke); stroke-width: 2; }
.measurement-card .wave-area { fill: var(--measurement-fill); opacity: .14; }
.measurement-card .wave-grid { stroke: #e2e8f0; stroke-width: 1; }
.measurement-card .wave-caption { fill: #475569; font-size: 11px; }
.measurement-wave-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; margin: 0 0 10px; }
.measurement-wave-legend span { display: inline-flex; gap: 6px; align-items: center; }
.measurement-wave-legend i { display: inline-block; width: 16px; height: 3px; background: var(--measurement-stroke); }
.measurement-card .wave-sample { stroke: none; }

/* Guided investigator review and portable evidence. */
.case-review-guide { padding: 22px; margin-bottom: 22px; }
.case-guide-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding-left: 20px; margin: 18px 0; }
.case-guide-steps li::marker { color: var(--case-soft); font-weight: 700; }
.case-guide-steps p, .case-review-guide details p { margin: 8px 0; color: var(--case-muted); font-size: 13px; line-height: 1.6; }
.case-review-guide summary { cursor: pointer; font-weight: 600; }
.case-export { padding: 20px; }
.case-export-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.case-export-text { font-family: monospace; word-break: break-all; }
.case-review-column { position: static; }
@media (max-width: 1100px) { .case-guide-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .case-guide-steps { grid-template-columns: 1fr; gap: 10px; } }

/* Focused investigation workspace: inspect first, conclude last. */
.investigator-case-page { max-width: 1360px; }
.investigator-case-page [hidden] { display: none !important; }
.case-workflow-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; padding: 10px; margin: 0 0 24px; background: #080808; border: 1px solid var(--case-border); border-radius: 3px; scroll-margin-top: 70px; }
.case-workflow-nav button { text-align: left; background: transparent; border: 1px solid transparent; border-radius: 1px; padding: 12px; color: var(--case-muted); font-size: 14px; font-weight: 650; }
.case-workflow-nav button span { margin-right: 8px; color: #747474; font-size: 11px; }
.case-workflow-nav button small { display: block; padding-left: 26px; font-weight: 400; font-size: 12px; margin-top: 5px; }
.case-workflow-nav button[aria-pressed="true"] { background: #121212; color: #f2f2f2; border-color: #343434; }
.case-workflow-nav button[aria-pressed="true"] span { color: var(--case-soft); }
.case-workflow-nav button:hover { background: #121212; color: #fff; }
.case-workflow-nav button:focus-visible, .case-guide-help summary:focus-visible { outline: 2px solid var(--case-soft); outline-offset: 3px; }
.case-enhanced .case-workspace { grid-template-columns: minmax(0, 1fr); }
.case-enhanced .case-review-column { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); align-items: start; }
.case-review-guide { background: var(--case-surface); border-color: var(--case-border); }
.case-guide-help { margin-bottom: 14px; }
.case-guide-help summary { color: var(--case-soft); font-size: 13px; }
.case-readiness { margin-bottom: 18px; }
.case-readiness.case-capture-note { display: block; }
.case-capture-note strong { display: block; font-size: 13px; }
.case-capture-note p { max-width: 100ch; font-size: 12px; line-height: 1.65; }
.case-enhanced .case-evidence-detail-grid { gap: 16px; }
.case-enhanced .case-detail-list dt { font-size: 11px; color: var(--case-muted); }
.case-enhanced .case-detail-list dd { font-size: 14px; color: #ededed; font-variant-numeric: tabular-nums; }
.case-enhanced .case-evidence-detail-card { padding: 22px; border-radius: 4px; background: var(--case-surface); }
.case-enhanced .case-review-form { gap: 22px; }
.case-enhanced .case-review-form .form-label { font-size: 13px; color: #e0e0e0; }
.case-enhanced .case-review-form .form-text { font-size: 12px; line-height: 1.65; color: var(--case-muted); }
.case-enhanced .case-review-form .form-control, .case-enhanced .case-review-form .form-select { padding: 12px; border-radius: 3px; font-size: 14px; }
.case-enhanced .case-export { padding: 30px; }
.case-export .case-raw-evidence { margin-top: 20px; }
.case-export textarea { background: #080808; color: var(--case-soft); border: 1px solid var(--case-border-strong); padding: 16px; line-height: 1.6; }
.case-enhanced .case-question-body h3 { font-size: 16px; }
.case-enhanced .case-question-body p, .case-enhanced .case-helper-copy { font-size: 13px; line-height: 1.65; }
@media (max-width: 760px) {
  .case-workflow-nav { grid-template-columns: repeat(2, 1fr); }
  .case-workflow-nav button { padding: 12px; }
  .case-enhanced .case-review-column { grid-template-columns: 1fr; }
  .case-enhanced .case-export { padding: 18px; }
}

/* Keep expanded Observe telemetry readable without growing the entire page. */
.observe-telemetry-json { max-height: 600px; overflow: auto; }

/* Compact actions beside each placement without changing shared admin buttons. */
.observe-placement-actions .btn {
  min-height: 24px;
  padding: 3px 8px;
  font-size: 11px;
}
