@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --bg: #f7f8fb;
  --bg-wash: rgba(15, 41, 77, 0.06);
  --paper: rgba(255, 255, 255, 0.92);
  --paper-strong: #ffffff;
  --line: rgba(15, 41, 77, 0.13);
  --line-strong: rgba(15, 41, 77, 0.28);
  --ink: #0f294d;
  --ink-soft: #223851;
  --ink-muted: #5c6f86;
  --accent: #f4b323;
  --accent-ink: #0f294d;
  --pine: #0f294d;
  --accent-soft: rgba(244, 179, 35, 0.16);
  --warn: #b66a00;
  --warn-soft: rgba(244, 179, 35, 0.2);
  --positive: #0f766e;
  --positive-soft: rgba(15, 118, 110, 0.1);
  --neutral: #5c6f86;
  --neutral-soft: rgba(92, 111, 134, 0.12);
  --negative: #b45309;
  --negative-soft: rgba(180, 83, 9, 0.1);
  --shadow: 0 24px 56px rgba(15, 41, 77, 0.1);
  --navy: #0f294d;
  --steel: #5e7a96;
  --slate: #7e8fa3;
  --concrete: #dde3ea;
  --warm-gray: #efeee8;
  --gold: #f4b323;
  --trofik-orange: #9f5a2f;
  --blueprint-line: rgba(15, 41, 77, 0.08);
  --serif: "Space Grotesk", "Satoshi", Inter, system-ui, sans-serif;
  --sans: "Satoshi", Inter, system-ui, sans-serif;
  --mono: "Space Grotesk", "Satoshi", Inter, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

/* Baseline keyboard focus indicator for any interactive element that does not
   define its own. Component-specific :focus-visible rules win on specificity. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-weight: 450;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, var(--bg-wash), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(159, 90, 47, 0.06), transparent 24%),
    linear-gradient(180deg, #f5f0e7 0%, var(--bg) 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page-shell {
  max-width: 1520px;
  margin: 0 auto;
  padding: 28px 28px 36px;
  transition: filter 180ms ease, opacity 180ms ease;
}

.page-shell.with-side-nav {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  column-gap: 22px;
  align-items: start;
}

.page-shell.with-side-nav > .topbar {
  display: contents;
}

.page-shell.with-side-nav > .topbar > .workspace-nav {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.page-shell.with-side-nav > .topbar > .topbar-copy,
.page-shell.with-side-nav > .topbar > .pitch-hero,
.page-shell.with-side-nav > main,
.page-shell.with-side-nav > .practice-workspace {
  grid-column: 2;
}

body.is-booting .page-shell {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

html.is-warm-workspace-navigation body.is-booting .page-shell {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

body.auth-locked .page-shell {
  filter: blur(10px);
  opacity: 0.28;
  pointer-events: none;
}

.auth-shell {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 40;
}

.loading-shell {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 50;
  background:
    linear-gradient(180deg, rgba(245, 240, 231, 0.92), rgba(242, 237, 227, 0.96)),
    radial-gradient(circle at top, rgba(35, 71, 60, 0.12), transparent 44%);
  backdrop-filter: blur(10px);
}

body:not(.is-booting) .loading-shell {
  display: none;
}

html.is-warm-workspace-navigation .loading-shell {
  display: none;
}

.loading-card {
  width: min(620px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(246, 240, 230, 0.98)),
    radial-gradient(circle at top right, rgba(35, 71, 60, 0.08), transparent 34%);
  box-shadow: 0 28px 64px rgba(25, 28, 22, 0.16);
}

.loading-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.loading-copy {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.loading-progress {
  margin-top: 20px;
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(35, 71, 60, 0.1);
}

.loading-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(35, 71, 60, 0.92), rgba(92, 135, 118, 0.76));
  transition: width 180ms ease;
}

.loading-step-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.loading-step {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
}

.loading-step-indicator {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.82);
}

.loading-step.is-active {
  border-color: rgba(35, 71, 60, 0.28);
  background: rgba(35, 71, 60, 0.08);
}

.loading-step.is-active .loading-step-indicator {
  border-color: rgba(35, 71, 60, 0.5);
  color: var(--accent);
}

.loading-step.is-complete .loading-step-indicator {
  border-color: rgba(35, 71, 60, 0.5);
  background: rgba(35, 71, 60, 0.92);
  color: #f6f2e8;
}

.loading-step.is-skipped {
  opacity: 0.62;
}

.loading-step-title {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.loading-step-detail {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.auth-card {
  width: min(480px, 100%);
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.97), rgba(246, 240, 230, 0.98)),
    radial-gradient(circle at top right, rgba(35, 71, 60, 0.08), transparent 36%);
  box-shadow: 0 28px 64px rgba(25, 28, 22, 0.18);
}

.auth-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.auth-copy,
.auth-feedback {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.auth-feedback.is-error {
  color: var(--warn);
}

.auth-feedback.is-success {
  color: var(--accent);
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.auth-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.auth-actions {
  display: flex;
  justify-content: start;
}

.auth-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-top: 2px;
}

.auth-link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.auth-link-button:hover,
.auth-admin-switch:hover {
  color: var(--accent);
}

.auth-project-confirmation[hidden] {
  display: none;
}

.auth-project-choice-list {
  display: grid;
  gap: 10px;
}

.auth-project-choice {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(35, 71, 60, 0.22);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.86);
  cursor: pointer;
}

.auth-project-choice input {
  width: auto;
  min-height: auto;
  margin: 0;
  accent-color: var(--accent);
}

.auth-project-choice strong,
.auth-project-choice span span {
  display: block;
}

.auth-project-choice strong {
  color: var(--ink);
  font-size: 15px;
}

.auth-project-choice span span {
  margin-top: 3px;
  color: var(--ink-muted);
  font-size: 12px;
}

.topbar {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
}

.workspace-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(252, 249, 241, 0.72);
}

.with-side-nav .workspace-nav {
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  align-items: stretch;
  justify-content: start;
  flex-direction: column;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(252, 249, 241, 0.88);
  box-shadow: 0 18px 44px rgba(39, 36, 28, 0.07);
}

.workspace-brand {
  display: grid;
  gap: 2px;
  color: var(--ink);
  text-decoration: none;
}

.workspace-brand-mark {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  font-weight: 700;
}

.workspace-brand-mark {
  font-size: 12px;
}

.workspace-nav-main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  flex-wrap: wrap;
  gap: 12px;
}

.with-side-nav .workspace-nav-main {
  display: grid;
  align-items: stretch;
  justify-content: stretch;
  flex: none;
  gap: 16px;
}

.workspace-nav-cluster {
  display: grid;
  gap: 8px;
}

.workspace-nav-cluster-label {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.workspace-nav-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.68);
}

.with-side-nav .workspace-nav-group {
  display: grid;
  align-items: stretch;
  gap: 4px;
  padding: 4px;
}

.workspace-nav-section {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.workspace-nav-section-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  list-style: none;
}

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

.workspace-nav-section-summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
}

.workspace-nav-section[open] > .workspace-nav-section-summary {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.workspace-nav-section[open] > .workspace-nav-section-summary::after {
  content: "-";
}

.workspace-nav-section-summary:hover,
.workspace-nav-section-summary:focus-visible {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
  outline: none;
}

.workspace-nav-section-summary:focus-visible {
  box-shadow: 0 0 0 3px rgba(35, 71, 60, 0.08);
}

.workspace-nav-section-links {
  display: grid;
  gap: 4px;
  margin-left: 4px;
  padding-left: 8px;
  border-left: 1px solid rgba(35, 71, 60, 0.14);
}

.workspace-nav-group-manage {
  padding: 0;
}

.workspace-nav-link,
.workspace-account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.nav-soon {
  margin-left: auto;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(35, 71, 60, 0.08);
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0;
}

.with-side-nav .workspace-nav-link,
.with-side-nav .workspace-account-trigger {
  width: 100%;
  justify-content: space-between;
  min-height: 38px;
  padding: 9px 10px;
}

.workspace-nav-link:hover,
.workspace-account-trigger:hover,
.nav-dropdown[open] > .workspace-nav-link,
.nav-dropdown.has-active > .workspace-nav-link {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.workspace-nav-link.is-active {
  color: var(--accent);
  border-color: rgba(35, 71, 60, 0.28);
  background: rgba(35, 71, 60, 0.08);
}

.workspace-nav-link.is-planned {
  color: var(--ink-soft);
}

.project-switcher {
  display: inline-grid;
  gap: 4px;
  min-width: 230px;
}

.with-side-nav .project-switcher {
  min-width: 0;
  width: 100%;
}

.project-switcher span {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-switcher select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 34px 8px 10px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
}

.project-switcher select:focus {
  border-color: rgba(35, 71, 60, 0.44);
  box-shadow: 0 0 0 3px rgba(35, 71, 60, 0.08);
  outline: none;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > summary {
  list-style: none;
}

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

.nav-dropdown-trigger::after,
.workspace-account-trigger::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 160ms ease;
}

.nav-dropdown[open] > .nav-dropdown-trigger::after,
.nav-dropdown[open] > .workspace-account-trigger::after {
  transform: rotate(-135deg) translate(-1px, -1px);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 12;
  min-width: 250px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 252, 246, 0.98);
  box-shadow: 0 20px 40px rgba(26, 29, 23, 0.12);
}

.with-side-nav .nav-dropdown-menu {
  position: static;
  min-width: 0;
  width: 100%;
  margin-top: 8px;
}

.nav-dropdown-end .nav-dropdown-menu {
  right: 0;
  left: auto;
}

.nav-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.nav-menu-item:hover,
.nav-menu-item.is-active {
  border-color: var(--line);
  background: rgba(35, 71, 60, 0.08);
}

.nav-menu-item-primary {
  border-color: rgba(35, 71, 60, 0.2);
  background: rgba(35, 71, 60, 0.92);
  color: #f6f2e8;
}

.nav-menu-item-primary:hover {
  border-color: rgba(35, 71, 60, 0.92);
  background: rgba(42, 83, 69, 0.96);
}

.workspace-account {
  flex-shrink: 0;
}

.with-side-nav .workspace-account,
.with-side-nav .workspace-nav > .control-button {
  width: 100%;
}

.workspace-account-trigger span:last-child {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-copy {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.with-side-nav .topbar-copy {
  margin-bottom: 20px;
}

body[data-workspace-mode="pm"] .with-side-nav .topbar-copy {
  display: none;
}

.with-side-nav .topbar-copy {
  display: none;
}

.topbar-copy .topbar-meta {
  flex-shrink: 0;
}

.eyebrow,
.section-label,
.section-caption,
.topbar-meta,
.meta-chip,
.metric-label,
.citation-index,
.citation-link,
.report-badge,
.timeline-stamp,
.report-axis {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
}

.topbar h1 {
  margin: 0;
  font-family: var(--serif);
  max-width: 760px;
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.topbar-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink-soft);
  font-size: 11px;
}

.control-button {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
}

.control-button:hover {
  border-color: rgba(35, 71, 60, 0.44);
  background: rgba(255, 255, 255, 0.92);
}

.control-button.is-active {
  border-color: rgba(35, 71, 60, 0.92);
  background: rgba(35, 71, 60, 0.1);
  color: var(--accent);
}

.control-button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.control-button-primary {
  background: rgba(35, 71, 60, 0.92);
  color: #f6f2e8;
  border-color: rgba(35, 71, 60, 0.92);
}

.control-button-primary:hover {
  background: rgba(42, 83, 69, 0.96);
}

.index-mock-body {
  background:
    linear-gradient(180deg, rgba(245, 240, 231, 0.96), rgba(242, 237, 227, 0.98)),
    radial-gradient(circle at 72% 12%, rgba(46, 106, 80, 0.08), transparent 28%);
}

.index-shell {
  max-width: 1360px;
}

.impact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.impact-explainer {
  grid-column: 1 / -1;
  max-width: 920px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.impact-project-summary {
  grid-column: 1 / -1;
  display: grid;
  gap: 18px;
  padding: 20px 22px;
}

.impact-project-summary-head,
.impact-project-summary-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.impact-project-summary h2 {
  margin: 5px 0 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.04;
}

.impact-project-summary-copy {
  max-width: 860px;
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.impact-project-summary-grid {
  display: grid;
  grid-template-columns: minmax(170px, 0.7fr) minmax(230px, 1fr) minmax(180px, 0.8fr);
  gap: 10px;
}

.impact-project-summary-grid article {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 112px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.impact-project-summary-grid article > span,
.impact-project-confidence-block > div:first-child > span {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.impact-project-summary-grid strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
}

.impact-project-summary-grid small {
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.4;
}

.impact-project-confidence-block > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.impact-project-confidence-block > div:first-child strong {
  font-family: var(--sans);
  font-size: 18px;
}

.impact-project-driver-section {
  padding-top: 2px;
}

.impact-project-driver-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.impact-project-driver-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink-muted);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.4;
}

.impact-project-driver-list li.is-supportive {
  border-left-color: var(--positive);
}

.impact-project-driver-list li.is-opposed {
  border-left-color: var(--negative);
}

.impact-project-driver-list strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.impact-project-driver-list em {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.impact-project-driver-list small {
  grid-column: 1 / -1;
  color: var(--ink-muted);
}

.impact-project-scale {
  display: grid;
  grid-template-columns: repeat(6, minmax(26px, 1fr));
  gap: 4px;
  width: min(100%, 330px);
  margin-top: 8px;
}

.impact-project-scale-segment {
  display: grid;
  place-items: center;
  min-height: 28px;
  border-radius: 5px;
  background: rgba(15, 41, 77, 0.08);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.impact-project-scale-segment.is-active {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 0 0 2px rgba(15, 41, 77, 0.2);
}

.impact-project-scale-labels {
  display: flex;
  justify-content: space-between;
  width: min(100%, 330px);
}

.impact-project-driver-list a {
  color: inherit;
  font-weight: 700;
  text-underline-offset: 3px;
}

.impact-project-summary-actions {
  align-items: center;
  justify-content: flex-start;
}

.impact-project-summary-actions p {
  margin: 0;
}

.impact-switcher {
  grid-column: 1 / -1;
  padding: 2px 0 6px;
}

.impact-stakeholder-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(218px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.impact-stakeholder-option {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.impact-stakeholder-option:hover {
  border-color: rgba(46, 106, 80, 0.36);
  background: rgba(246, 250, 245, 0.92);
  transform: translateY(-1px);
}

.impact-stakeholder-option.is-active {
  border-color: rgba(46, 106, 80, 0.58);
  background: rgba(46, 106, 80, 0.1);
}

.impact-stakeholder-option.is-unscored {
  opacity: 0.72;
  background: rgba(255, 255, 255, 0.48);
}

.impact-stakeholder-option span {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.impact-stakeholder-option strong,
.impact-stakeholder-option small,
.impact-stakeholder-option em {
  overflow-wrap: anywhere;
}

.impact-stakeholder-option strong {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.2;
}

.impact-stakeholder-option small {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.impact-stakeholder-option em {
  min-width: 36px;
  color: var(--positive);
  font-family: var(--mono);
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  text-align: right;
}

.impact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 22px 52px rgba(32, 34, 28, 0.08);
}

.impact-loading-shell {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(247, 248, 251, 0.9), rgba(238, 241, 246, 0.96)),
    radial-gradient(circle at top, rgba(15, 41, 77, 0.12), transparent 48%);
  backdrop-filter: blur(10px);
}

body:not(.is-impact-loading) .impact-loading-shell {
  display: none;
}

body.is-impact-loading {
  overflow: hidden;
}

.impact-loading-card {
  width: min(640px, 100%);
}

.impact-loading-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.impact-loading-head .eyebrow {
  margin-bottom: 7px;
}

.impact-loading-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(18, 42, 76, 0.14);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: ops-upload-spin 0.9s linear infinite;
}

.impact-loading-shell .loading-progress {
  position: relative;
}

.impact-loading-shell .loading-progress-bar {
  min-width: 12%;
}

@media (prefers-reduced-motion: reduce) {
  .impact-loading-spinner {
    animation: none;
  }

  .impact-loading-shell .loading-progress-bar {
    transition: none;
  }
}

.impact-primary-card {
  padding: 22px;
}

.impact-side-card {
  display: grid;
  gap: 22px;
  padding: 20px;
  position: sticky;
  top: 20px;
}

.impact-card-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.impact-card h2 {
  margin: 5px 0 0;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 400;
  line-height: 1;
}

.impact-subtitle,
.impact-side-copy,
.impact-score-copy {
  color: var(--ink-soft);
  line-height: 1.6;
}

.impact-subtitle {
  margin: 10px 0 0;
}

.impact-score-badge {
  min-width: 132px;
  padding: 14px;
  border: 1px solid rgba(46, 106, 80, 0.24);
  border-radius: 8px;
  background: var(--positive-soft);
  text-align: right;
}

.impact-score-trigger {
  appearance: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.impact-score-trigger:hover,
.impact-score-trigger:focus-visible {
  border-color: rgba(46, 106, 80, 0.58);
  box-shadow: 0 12px 26px rgba(31, 36, 31, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.impact-score-badge span,
.impact-metric strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
}

.impact-score-badge span {
  font-size: 44px;
  line-height: 0.9;
  color: var(--positive);
}

.impact-score-badge strong {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.impact-score-value-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 3px;
}

.impact-score-arrow {
  font-family: var(--sans);
  font-size: 22px;
  line-height: 1;
  color: var(--ink-muted);
}
.impact-score-arrow.is-up { color: var(--positive); }
.impact-score-arrow.is-down { color: var(--negative); }

.impact-score-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 22px;
  align-items: center;
  padding: 24px 0;
}

.impact-scale {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.impact-scale-segment {
  min-height: 54px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: rgba(31, 36, 31, 0.72);
  font-family: var(--mono);
  font-size: 13px;
}

.impact-scale-segment.is-negative { background: rgba(159, 90, 47, 0.24); }
.impact-scale-segment.is-negative-light { background: rgba(191, 117, 57, 0.18); }
.impact-scale-segment.is-neutral { background: rgba(139, 123, 53, 0.18); }
.impact-scale-segment.is-active {
  border: 2px solid rgba(20, 24, 26, 0.68);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px rgba(255, 253, 248, 0.8);
}
.impact-scale-segment.is-positive { background: rgba(31, 138, 91, 0.24); }
.impact-scale-segment.is-positive-strong { background: rgba(16, 107, 132, 0.28); }

.impact-confidence-band,
.impact-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(31, 36, 31, 0.08);
}

.impact-confidence-band {
  margin-top: 0;
}

.impact-confidence-band span,
.impact-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: rgba(35, 71, 60, 0.82);
}

.impact-scale-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.impact-confidence-row {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--ink-muted);
  font-size: 12px;
}

.impact-confidence-row > span {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.impact-confidence-row strong {
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
}

.impact-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.impact-metric {
  min-height: 150px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
  cursor: pointer;
  appearance: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

button.impact-metric:hover {
  border-color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.82);
}

button.impact-metric:focus-visible {
  outline: 2px solid var(--accent, #9f5a2f);
  outline-offset: 2px;
}

button.impact-metric:active {
  transform: translateY(1px);
}

.impact-metric strong {
  font-size: 34px;
  line-height: 1;
}

.impact-metric span {
  color: var(--ink-soft);
  font-size: 13px;
}

.impact-meter.relationship span {
  background: rgba(159, 90, 47, 0.76);
}

.impact-sparkline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  align-items: end;
  height: 38px;
}

.impact-sparkline span {
  display: block;
  min-height: 18px;
  border-radius: 4px 4px 0 0;
  background: rgba(139, 123, 53, 0.2);
}

.impact-sparkline span:nth-child(2),
.impact-sparkline span:nth-child(4) {
  min-height: 26px;
}

.impact-sparkline span:nth-child(5) {
  min-height: 24px;
  background: rgba(46, 106, 80, 0.24);
}

.impact-sparkline:has(.impact-sparkline-svg) {
  display: block;
  height: 36px;
  padding: 0;
}

.impact-sparkline-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.impact-sparkline-baseline {
  stroke: rgba(35, 71, 60, 0.18);
  stroke-width: 0.6;
  stroke-dasharray: 2 2;
}

.impact-sparkline-line {
  fill: none;
  stroke: rgba(35, 71, 60, 0.62);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.impact-sparkline-svg.is-up .impact-sparkline-line {
  stroke: var(--positive, rgba(46, 106, 80, 0.9));
}

.impact-sparkline-svg.is-down .impact-sparkline-line {
  stroke: var(--negative, rgba(204, 80, 80, 0.9));
}

.impact-sparkline-dot {
  fill: currentColor;
  color: rgba(35, 71, 60, 0.72);
}

.impact-sparkline-caption {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.impact-evidence-section {
  padding-top: 20px;
}

.impact-evidence-list,
.impact-timeline {
  display: grid;
  gap: 10px;
}

.impact-evidence-item {
  appearance: none;
  display: grid;
  width: 100%;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.impact-evidence-item:hover,
.impact-evidence-item:focus-visible {
  border-color: rgba(46, 106, 80, 0.36);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 22px rgba(31, 36, 31, 0.08);
  outline: none;
}

.impact-evidence-item.is-active {
  border-color: rgba(46, 106, 80, 0.58);
  background: rgba(46, 106, 80, 0.08);
}

.impact-evidence-index {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 10px;
}

.impact-evidence-item h3 {
  margin: 0;
  font-size: 15px;
}

.impact-evidence-item p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.impact-evidence-item strong {
  white-space: nowrap;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.impact-side-card h2 {
  font-size: 31px;
}

.impact-source-panel {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.impact-source-passage {
  margin: 12px 0 0;
  padding: 14px 16px;
  border-left: 3px solid rgba(46, 106, 80, 0.58);
  background: rgba(46, 106, 80, 0.08);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.impact-source-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--positive);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.impact-source-link:hover,
.impact-source-link:focus-visible {
  color: var(--ink);
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.impact-action-section {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.impact-alert-section {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.impact-alert-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.impact-alert-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface, transparent);
  align-items: start;
}

.impact-alert-row.is-negative {
  border-color: var(--negative-soft, rgba(204, 80, 80, 0.4));
  background: var(--negative-soft, rgba(204, 80, 80, 0.08));
}

.impact-alert-row.is-positive {
  border-color: var(--positive-soft, rgba(80, 160, 110, 0.4));
}

.impact-alert-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 4px;
}

.impact-alert-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
  margin: 0 0 4px;
}

.impact-alert-summary {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.45;
  margin: 0;
}

.impact-alert-severity {
  align-self: start;
  font-size: 11px;
  font-family: var(--mono);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--surface-raised);
  color: var(--ink-muted);
}

.impact-alert-severity.is-negative {
  background: var(--negative-soft);
  color: var(--negative);
}

.impact-alert-severity.is-positive {
  background: var(--positive-soft);
  color: var(--positive);
}

.impact-action-list {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.impact-action-list li + li {
  margin-top: 10px;
}

.impact-timeline {
  position: relative;
}

.impact-timeline div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.impact-timeline div.is-movement {
  border-color: rgba(35, 71, 60, 0.24);
}

.impact-timeline div.is-up p {
  color: var(--positive);
}

.impact-timeline div.is-down p {
  color: var(--negative);
}

.impact-timeline time {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.impact-timeline p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.impact-timeline-metric {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.impact-timeline-related {
  grid-column: 2;
  display: grid;
  gap: 5px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.4;
}

.impact-timeline-related li span {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.network-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.network-map-card,
.network-insight-card {
  padding: 20px;
}

.network-insight-card {
  display: grid;
  gap: 22px;
  position: sticky;
  top: 20px;
}

.network-map-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.network-map-head h2 {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.05;
}

.network-legend {
  display: grid;
  gap: 8px;
  min-width: 230px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.network-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legend-node,
.legend-edge,
.legend-bar-length {
  display: inline-block;
  flex: 0 0 auto;
}

.legend-node {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(15, 41, 77, 0.12);
}

.legend-node.project-anchor { background: var(--navy); border-color: var(--gold); }
.legend-node.priority { background: #fff; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.legend-node.opposed { background: var(--negative); }
.legend-node.neutral { background: var(--neutral); }
.legend-node.supportive { background: var(--positive); }

.legend-edge {
  width: 26px;
  height: 2px;
  background: rgba(15, 41, 77, 0.48);
}

.legend-edge.active {
  height: 3px;
  background: var(--gold);
}

.legend-bar-length {
  width: 26px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--neutral) 0 72%, rgba(92, 111, 134, 0.14) 72%);
}

.network-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.network-filter,
.network-reset {
  appearance: none;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font: 500 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.54);
  cursor: pointer;
}

.network-filter:hover,
.network-reset:hover,
.network-filter.is-active {
  border-color: rgba(244, 179, 35, 0.78);
  color: var(--ink);
  background: var(--accent-soft);
}

.network-reset {
  margin-left: auto;
}

.network-canvas {
  position: relative;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 560px;
  background:
    radial-gradient(circle at 18% 18%, rgba(244, 179, 35, 0.08), transparent 28%),
    linear-gradient(90deg, rgba(15, 41, 77, 0.05), transparent 34%, rgba(15, 41, 77, 0.03)),
    rgba(255, 255, 255, 0.52);
}

.network-bar-chart {
  width: 100%;
  padding: 18px;
}

.trust-bar-header,
.trust-bar-row {
  display: grid;
  grid-template-columns: minmax(145px, 0.9fr) minmax(120px, 1.5fr) 52px 88px;
  gap: 10px;
  align-items: center;
}

.trust-bar-header {
  padding: 0 12px 10px;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trust-bar-list {
  display: grid;
  gap: 8px;
}

.trust-bar-row {
  appearance: none;
  width: 100%;
  min-height: 66px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  text-align: left;
  cursor: pointer;
  transition: opacity 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.trust-bar-row:hover,
.trust-bar-row:focus-visible {
  border-color: var(--line-strong);
  background: #fff;
  transform: translateY(-1px);
}

.trust-bar-row.is-muted {
  opacity: 0.22;
}

.trust-bar-row.is-highlighted,
.trust-bar-row.focus {
  border-color: var(--gold);
  box-shadow: inset 4px 0 0 var(--gold);
}

.trust-bar-person {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.trust-bar-person strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trust-bar-person small,
.trust-bar-links {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.35;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.trust-bar-track {
  position: relative;
  display: block;
  width: 100%;
  height: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(92, 111, 134, 0.12);
}

.trust-bar-fill {
  display: block;
  width: var(--trust-bar-value);
  min-width: 4px;
  height: 100%;
  border-radius: inherit;
  background: var(--neutral);
}

.trust-bar-row.supportive .trust-bar-fill { background: var(--positive); }
.trust-bar-row.opposed .trust-bar-fill { background: var(--negative); }
.trust-bar-row.project-anchor .trust-bar-fill { background: var(--navy); }

.trust-bar-row.project-anchor {
  border-color: rgba(244, 179, 35, 0.75);
  background: rgba(15, 41, 77, 0.045);
}

.trust-bar-value {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  text-align: right;
}

.trust-bar-links {
  text-align: right;
}

.trust-bar-empty {
  margin: 0;
  padding: 40px 20px;
  color: var(--ink-muted);
  text-align: center;
}

.network-insight-block {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.network-path-list,
.network-schema-list {
  display: grid;
  gap: 10px;
}

.network-path-list article {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.network-path-list strong {
  font-size: 14px;
}

.network-path-list span {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.network-group-copy {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
}

.network-schema-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.network-schema-list span {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(15, 41, 77, 0.06);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.agent-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.agent-chat-card,
.agent-side-card {
  padding: 20px;
}

.agent-chat-card {
  min-height: 680px;
  display: grid;
  grid-template-rows: auto auto minmax(360px, 1fr) auto;
  gap: 18px;
}

.agent-chat-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.agent-chat-head h2,
.agent-side-card h2 {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
}

.agent-chat-head h2 {
  font-size: clamp(28px, 3vw, 44px);
}

.agent-side-card {
  display: grid;
  gap: 22px;
  position: sticky;
  top: 20px;
}

.agent-side-card h2 {
  font-size: 30px;
}

.agent-mode-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.agent-mode {
  appearance: none;
  min-height: 44px;
  border: 1px solid rgba(15, 41, 77, 0.18);
  border-radius: 6px;
  background: #ffffff;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.agent-mode.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--gold);
}

.agent-guidance {
  padding: 12px 14px;
  border: 1px solid rgba(35, 71, 60, 0.16);
  border-radius: 8px;
  background: rgba(246, 250, 245, 0.82);
}

.agent-guidance strong {
  color: var(--ink);
  font-size: 13px;
}

.agent-guidance p,
.agent-side-help,
.agent-context-help {
  margin: 5px 0 0;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.5;
}

.agent-thread {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow-y: auto;
  padding: 4px 4px 10px;
}

.agent-message {
  max-width: min(780px, 92%);
  display: grid;
  gap: 7px;
}

.agent-message.is-user {
  justify-self: end;
}

.agent-message-role {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.agent-message-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.agent-copy-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.agent-copy-button:hover {
  text-decoration: underline;
}

.agent-message-body {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.agent-message.is-user .agent-message-body {
  border-color: rgba(35, 71, 60, 0.24);
  background: rgba(46, 106, 80, 0.1);
  color: var(--ink);
}

.agent-message.is-pending .agent-message-body {
  color: var(--ink-muted);
}

/* A canned stand-in for an answer the agent could not produce. It must not be
   mistaken for a considered reply. */
.agent-message.is-fallback .agent-message-body {
  border-color: rgba(180, 83, 9, 0.42);
  border-left-width: 3px;
  background: rgba(245, 158, 11, 0.08);
}

.agent-message.is-fallback .agent-message-role {
  color: rgb(180, 83, 9);
}

.agent-message.is-incomplete .agent-message-body {
  border-color: rgba(185, 28, 28, 0.42);
  border-left-width: 3px;
  background: rgba(220, 38, 38, 0.07);
}

.agent-message.is-incomplete .agent-message-role {
  color: rgb(185, 28, 28);
}

.agent-retrieval-receipt {
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 12px;
}

.agent-retrieval-receipt > summary {
  padding: 8px 2px;
  color: var(--accent);
  cursor: pointer;
  font-family: var(--mono);
  font-weight: 700;
}

.agent-retrieval-receipt > div {
  display: grid;
  gap: 5px;
  padding: 2px 2px 8px;
}

.agent-retrieval-receipt p,
.agent-retrieval-receipt ul {
  margin: 0;
}

.agent-retrieval-receipt ul {
  padding-left: 18px;
}

.agent-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.agent-composer textarea {
  width: 100%;
  min-height: 86px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
}

.agent-composer textarea:focus {
  outline: none;
  border-color: rgba(35, 71, 60, 0.44);
  box-shadow: 0 0 0 3px rgba(35, 71, 60, 0.08);
}

.agent-composer button {
  min-height: 44px;
}

.agent-context-stats,
.agent-suggestions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.agent-context-stats button,
.agent-suggestions button {
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.4;
}

.agent-context-stats button {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  cursor: pointer;
}

.agent-context-stats button:hover {
  border-color: rgba(35, 71, 60, 0.34);
  color: var(--accent);
}

.agent-context-stats button strong {
  color: var(--ink);
  font-size: 12px;
}

.agent-context-catalog {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.agent-context-selection {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 11px;
}

.agent-context-selection span {
  color: var(--ink-muted);
}

.agent-context-category {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
}

.agent-context-category > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.agent-context-category > summary::-webkit-details-marker {
  display: none;
}

.agent-context-category[open] > summary {
  border-bottom: 1px solid var(--line);
  color: var(--accent);
}

.agent-context-category > p,
.agent-context-empty {
  margin: 0;
  padding: 9px 10px 0;
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.45;
}

.agent-context-items {
  display: grid;
  gap: 6px;
  max-height: 230px;
  overflow-y: auto;
  padding: 9px 10px;
}

.agent-context-items > a,
.agent-context-items > div,
.agent-context-document {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  padding: 8px;
  border: 1px solid rgba(35, 71, 60, 0.12);
  border-radius: 6px;
  background: rgba(248, 250, 247, 0.84);
  color: var(--ink-soft);
  text-decoration: none;
}

.agent-context-items > a:hover {
  border-color: rgba(35, 71, 60, 0.3);
  color: var(--accent);
}

.agent-context-items strong,
.agent-context-items small {
  display: block;
  overflow-wrap: anywhere;
}

.agent-context-items strong {
  font-size: 11px;
}

.agent-context-items small {
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 10px;
}

.agent-context-document {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  cursor: pointer;
}

.agent-context-document input {
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.agent-context-document.is-excluded {
  opacity: 0.58;
  cursor: not-allowed;
}

.agent-context-selection-actions {
  display: flex;
  gap: 6px;
  padding: 9px 10px 0;
}

.agent-context-selection-actions button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.agent-context-browse {
  display: inline-block;
  margin: 0 10px 10px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.agent-suggestions button {
  appearance: none;
  cursor: pointer;
  text-align: left;
}

.agent-suggestions button:hover {
  border-color: rgba(35, 71, 60, 0.34);
  background: rgba(246, 250, 245, 0.92);
  color: var(--accent);
}

.agent-side-section {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.pitch-topbar {
  gap: 28px;
}

.pitch-hero {
  max-width: 980px;
}

.pitch-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 400;
  line-height: 0.96;
}

.pitch-hero p:last-child {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.55;
}

.pitch-flow {
  display: grid;
  gap: 20px;
}

.pitch-band {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 22px 52px rgba(32, 34, 28, 0.08);
}

.pitch-method-band,
.pitch-close-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 28px;
  align-items: start;
}

.pitch-band h2 {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.02;
}

.pitch-band p {
  color: var(--ink-soft);
  line-height: 1.6;
}

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

.pitch-principle-grid article {
  min-height: 150px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
}

.pitch-principle-grid span,
.pitch-mini-metrics span {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pitch-principle-grid strong {
  font-size: 18px;
}

.pitch-principle-grid p {
  margin: 0;
  font-size: 13px;
}

.pitch-step-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.pitch-step-head > div {
  max-width: 800px;
}

.pitch-preview {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.pitch-card-preview {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 260px;
  gap: 20px;
  align-items: center;
  padding: 18px;
}

.pitch-mini-score {
  padding: 18px;
  border: 1px solid rgba(46, 106, 80, 0.24);
  border-radius: 8px;
  background: var(--positive-soft);
  text-align: center;
}

.pitch-mini-score span {
  display: block;
  color: var(--positive);
  font-family: var(--serif);
  font-size: 56px;
  line-height: 0.9;
}

.pitch-mini-score strong {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pitch-card-preview h3 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
}

.pitch-mini-metrics {
  display: grid;
  gap: 8px;
}

.pitch-mini-metrics span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.74);
}

.pitch-mini-metrics strong {
  color: var(--accent);
}

.pitch-network-preview {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(159, 90, 47, 0.05), transparent 42%, rgba(46, 106, 80, 0.07)),
    rgba(255, 255, 255, 0.56);
}

.pitch-dot {
  position: absolute;
  display: grid;
  place-items: center;
  border: 4px solid rgba(255, 253, 248, 0.95);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  box-shadow: 0 14px 30px rgba(32, 34, 28, 0.12);
}

.pitch-dot.water { left: 12%; top: 28%; width: 72px; height: 72px; background: rgba(46, 106, 80, 0.56); }
.pitch-dot.commissioner { left: 38%; top: 20%; width: 98px; height: 98px; background: rgba(46, 106, 80, 0.66); border-color: rgba(35, 71, 60, 0.76); }
.pitch-dot.planning { left: 58%; top: 38%; width: 62px; height: 62px; background: rgba(139, 123, 53, 0.34); }
.pitch-dot.coalition { right: 13%; top: 26%; width: 76px; height: 76px; background: rgba(159, 90, 47, 0.56); }
.pitch-dot.labor { right: 22%; bottom: 22%; width: 66px; height: 66px; background: rgba(46, 106, 80, 0.56); }
.pitch-dot.client { left: 29%; bottom: 24%; width: 64px; height: 64px; background: rgba(46, 106, 80, 0.5); }

.pitch-network-line {
  position: absolute;
  height: 5px;
  border-radius: 999px;
  background: rgba(35, 71, 60, 0.28);
  transform-origin: left center;
}

.pitch-network-line.one { left: 18%; top: 37%; width: 300px; transform: rotate(-5deg); }
.pitch-network-line.two { left: 45%; top: 42%; width: 330px; transform: rotate(16deg); }
.pitch-network-line.three { left: 34%; bottom: 35%; width: 250px; transform: rotate(-18deg); }

.pitch-network-preview p {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pitch-next-list {
  margin: 0;
  padding-left: 22px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.workspace {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
}

.workspace[data-mode="research"][data-research-columns="evidence"] {
  grid-template-columns: minmax(0, 1fr) 380px;
}

.workspace[data-mode="research"][data-research-columns="browser"][data-research-focus="true"] {
  grid-template-columns: minmax(0, 1fr);
}

.workspace[data-mode="pm"] {
  grid-template-columns: minmax(0, 1fr);
}

.workspace[data-mode="research"][data-research-columns="evidence"] .panel-sidebar,
.workspace[data-mode="research"][data-research-columns="browser"][data-research-focus="true"] .panel-sidebar,
.workspace[data-mode="research"][data-research-columns="browser"] .panel-rail,
.workspace[data-mode="research"] .ops-panel,
.workspace[data-mode="pm"] .panel-sidebar,
.workspace[data-mode="pm"] .panel-rail,
.workspace[data-mode="pm"] .report-frame {
  display: none;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  min-height: 720px;
}

.panel-sidebar,
.panel-rail {
  padding: 20px 18px;
}

.panel-main {
  padding: 20px;
}

.workspace[data-mode="pm"] .panel-main {
  min-height: 720px;
}

.section-block + .section-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.section-block.is-expanded {
  position: relative;
}

.section-block.is-expanded::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10px;
  bottom: 0;
  width: 3px;
  border-radius: 999px;
  background: rgba(35, 71, 60, 0.82);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  user-select: none;
}

.section-label {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}

.section-caption {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-soft);
}

.section-block.is-collapsed > :not(.section-head) {
  display: none;
}

.section-block.is-collapsed {
  padding-bottom: 0;
}

.section-block.is-collapsed .section-head {
  margin-bottom: 0;
}

.section-block.is-expanded .section-head {
  color: var(--accent);
}

.project-list,
.timeline-list,
.report-list,
.citation-list {
  display: grid;
  gap: 10px;
}

.project-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.project-card,
.timeline-card,
.report-card,
.citation-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  padding: 14px;
  text-align: left;
}

button.project-card,
button.report-card,
button.timeline-card {
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

button.project-card:hover,
button.report-card:hover,
button.project-card.is-active,
button.report-card.is-active,
button.timeline-card:hover,
button.timeline-card.is-active {
  border-color: rgba(35, 71, 60, 0.44);
  background: rgba(233, 242, 237, 0.92);
  transform: translateY(-1px);
}

.project-title,
.report-card h3,
.timeline-card h3,
.citation-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

.project-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.project-copy,
.rail-copy,
.empty-copy,
.citation-quote,
.citation-context,
.report-article p,
.report-article li {
  color: var(--ink-soft);
}

.project-copy,
.rail-copy,
.empty-copy,
.citation-context {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.project-brief {
  display: grid;
  gap: 12px;
}

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

.metric-card {
  padding: 12px;
  border-radius: 16px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
}

.metric-card-lg {
  min-height: 112px;
  align-content: start;
}

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

.metric-value {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.metric-label {
  display: block;
  margin-top: 8px;
  color: var(--ink-muted);
  font-size: 10px;
}

.ops-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.ops-panel-head {
  padding: 0 2px;
}

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

.pm-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  max-width: 100%;
  margin-left: auto;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.pm-nav-badge.is-positive {
  border-color: rgba(46, 106, 80, 0.28);
  background: var(--positive-soft);
  color: var(--positive);
}

.pm-nav-badge.is-negative {
  border-color: rgba(159, 90, 47, 0.32);
  background: var(--negative-soft);
  color: var(--negative);
}

.pm-nav-badge.is-warning {
  border-color: rgba(183, 121, 31, 0.34);
  background: var(--warn-soft);
  color: var(--warn);
}

.workspace-nav-link {
  gap: 8px;
}

.workspace-nav-link > span:first-child {
  min-width: 0;
}

.ops-command-center {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(35, 71, 60, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(35, 71, 60, 0.08), rgba(255, 253, 248, 0.72)),
    rgba(255, 255, 255, 0.54);
}

.ops-command-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.ops-command-head h3 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.08;
}

.ops-command-metrics,
.ops-item-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
}

.ops-command-metrics {
  justify-content: flex-end;
}

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

.ops-profile-card .ops-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.ops-profile-card .ops-form .form-field:nth-of-type(1),
.ops-profile-card .ops-form .form-field:nth-of-type(2),
.ops-profile-card .ops-form .form-field:nth-of-type(3),
.ops-profile-card .ops-form .ops-profile-watch-section,
.ops-profile-card .ops-form .ops-profile-actions {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  .ops-profile-card .ops-form { grid-template-columns: 1fr; }
}

.ops-profile-meta {
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ops-profile-watch-section {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.ops-profile-watch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.ops-profile-watch-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.ops-profile-watch-row {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.62);
}

.ops-profile-watch-row.is-negative {
  border-color: var(--negative-soft, rgba(204, 80, 80, 0.4));
}

.ops-profile-watch-row.is-positive {
  border-color: var(--positive-soft, rgba(80, 160, 110, 0.4));
}

.ops-profile-watch-row label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  cursor: pointer;
}

.ops-profile-watch-row label > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ops-profile-watch-row strong {
  font-size: 14px;
  color: var(--ink);
}

.ops-profile-watch-row em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.ops-profile-watch-row small {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.ops-profile-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.ops-intel-card .ops-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.ops-intel-card .ops-form .form-field:first-of-type,
.ops-intel-card .ops-form .form-field:nth-of-type(2),
.ops-intel-card .ops-form .ops-intel-actions {
  grid-column: 1 / -1;
}

.ops-form-field-capture .form-field-wide,
.ops-form-capture-review .form-field-wide,
.ops-form-capture-review .field-capture-raw,
.ops-form-capture-review .ops-intel-actions {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  .ops-intel-card .ops-form { grid-template-columns: 1fr; }
  .ops-intel-card .ops-form .ops-intel-actions { grid-column: 1 / -1; }
}

.field-capture-surface {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field-capture-surface legend {
  width: 100%;
  margin-bottom: 2px;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.field-capture-surface-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  font-size: 12px;
  cursor: pointer;
}

.field-capture-surface-option input {
  width: auto;
  min-height: auto;
  margin: 0;
}

.field-capture-voice {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.field-capture-review {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.field-capture-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 10px;
}

.field-capture-source-context {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.76);
}

.field-capture-source-context > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.field-capture-source-context p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.4;
}

.field-capture-routing-summary {
  margin: 10px 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(55, 117, 84, 0.24);
  border-radius: 8px;
  background: rgba(235, 248, 241, 0.72);
}

.field-capture-routing-summary ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.field-capture-routing-summary li {
  padding: 4px 8px;
  border: 1px solid rgba(55, 117, 84, 0.22);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.ops-form-capture-review {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-capture-raw {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.68);
}

.field-capture-raw summary {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.field-capture-raw pre {
  overflow: auto;
  max-height: 180px;
  margin: 10px 0 0;
  white-space: pre-wrap;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.45;
}

.field-capture-review-button {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 11px;
}

.stakeholder-tracker-card {
  display: grid;
  gap: 12px;
}

.stakeholder-workspace-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
}

.stakeholder-workspace-tab {
  display: grid;
  flex: 1 1 0;
  gap: 2px;
  min-width: 0;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.stakeholder-workspace-tab:hover,
.stakeholder-workspace-tab.is-active {
  border-color: var(--accent);
  background: rgba(239, 246, 241, 0.96);
  color: var(--accent-ink);
}

.stakeholder-workspace-tab span {
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.stakeholder-workspace-tab small {
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stakeholder-action-panel {
  display: grid;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(250, 252, 248, 0.72);
}

.stakeholder-action-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stakeholder-action-panel-head .section-caption {
  margin-top: 3px;
}

.stakeholder-import-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.stakeholder-import-help {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.stakeholder-sheets-panel {
  background: rgba(250, 252, 248, 0.72);
}

.sheets-sync-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  color: var(--ink-muted);
  font-size: 12px;
}

.sheets-sync-meta a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.sheets-sync-links {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.sheets-setup-blocker {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(159, 90, 47, 0.24);
  border-radius: 8px;
  background: var(--negative-soft);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
}

.stakeholder-sheets-form {
  grid-template-columns: minmax(260px, 1fr) 116px 116px;
}

.sheets-mapping-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
}

.sheets-mapping-tabs span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sheets-sync-history {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.sheets-sync-history li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.sheets-sync-history p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 12px;
}

.custody-export-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.stakeholder-action-panel .custody-export-panel {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.custody-export-head,
.custody-export-row,
.custody-purge-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.custody-export-list {
  display: grid;
  gap: 8px;
}

.custody-export-row {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
}

.custody-export-row h4 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.custody-export-row p:not(.ops-item-meta),
.custody-export-note {
  margin: 5px 0 0;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.45;
}

.custody-export-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.custody-export-button {
  min-height: 30px;
  padding: 6px 9px;
  font-size: 10px;
}

.custody-purge-form {
  padding: 10px;
  border: 1px solid rgba(159, 90, 47, 0.28);
  border-radius: 8px;
  background: var(--negative-soft);
}

.custody-delete-steps {
  display: grid;
  gap: 10px;
}

.custody-delete-form {
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto) auto;
  align-items: end;
}

.custody-delete-check {
  align-self: center;
}

.custody-purge-form .form-field {
  min-width: min(100%, 280px);
}

.custody-purge-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.custody-purge-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-muted);
  font-size: 12px;
}

@media (max-width: 720px) {
  .stakeholder-workspace-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stakeholder-workspace-tab {
    min-width: 0;
  }

  .stakeholder-action-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .stakeholder-sheets-form {
    grid-template-columns: 1fr;
  }

  .sheets-sync-meta,
  .sheets-sync-history li,
  .custody-export-head,
  .custody-export-row,
  .custody-purge-form {
    align-items: flex-start;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .custody-export-actions {
    justify-content: flex-start;
  }
}

.stakeholder-add-panel {
  background: rgba(255, 255, 255, 0.5);
}

.stakeholder-entry-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stakeholder-entry-form .form-field-wide {
  grid-column: span 2;
}

.stakeholder-courtesy-toggle {
  align-self: end;
  min-height: 36px;
}

.stakeholder-tracker-table-wrap {
  overflow: auto;
  max-height: min(560px, calc(100vh - 220px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
}

.stakeholder-tracker-table {
  width: max-content;
  min-width: 1500px;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--ink);
  font-size: 12px;
}

.stakeholder-tracker-table th,
.stakeholder-tracker-table td {
  max-width: 220px;
  padding: 9px 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  line-height: 1.35;
}

.stakeholder-tracker-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f4efe5;
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stakeholder-tracker-table td {
  background: rgba(255, 253, 248, 0.78);
}

.stakeholder-tracker-table tbody tr:nth-child(even) td {
  background: rgba(248, 245, 239, 0.86);
}

.stakeholder-tracker-table tbody tr:hover td,
.stakeholder-tracker-table tbody tr.is-selected td {
  background: #eef4ef;
}

.stakeholder-tracker-table .stakeholder-col-name,
.stakeholder-tracker-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 180px;
  max-width: 220px;
  font-weight: 700;
}

.stakeholder-tracker-table th:first-child {
  background: #f4efe5;
}

.stakeholder-tracker-table .stakeholder-col-name {
  background: #fffdf8;
}

.stakeholder-tracker-table tbody tr:nth-child(even) .stakeholder-col-name {
  background: #f8f5ef;
}

.stakeholder-tracker-table tbody tr:hover .stakeholder-col-name,
.stakeholder-tracker-table tbody tr.is-selected .stakeholder-col-name {
  background: #e4eee7;
}

.stakeholder-name-button {
  display: block;
  width: 100%;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-ink);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.stakeholder-name-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.stakeholder-col-notes,
.stakeholder-col-correspondence {
  min-width: 260px;
}

.stakeholder-cell-details {
  width: 100%;
}

.stakeholder-cell-details summary {
  display: block;
  border-radius: 4px;
  outline: none;
  list-style: none;
  cursor: pointer;
}

.stakeholder-cell-details summary::-webkit-details-marker {
  display: none;
}

.stakeholder-cell-details summary:focus-visible {
  box-shadow: 0 0 0 2px rgba(184, 104, 0, 0.32);
}

.stakeholder-cell-preview {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.stakeholder-cell-toggle {
  display: inline-flex;
  margin-top: 7px;
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.stakeholder-cell-toggle .when-open,
.stakeholder-cell-details[open] .when-closed {
  display: none;
}

.stakeholder-cell-details[open] .when-open {
  display: inline;
}

.stakeholder-cell-details[open] .stakeholder-cell-preview {
  display: none;
}

.stakeholder-cell-full {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
  line-height: 1.45;
  white-space: pre-wrap;
}

.stakeholder-col-email,
.stakeholder-col-organization {
  min-width: 220px;
}

.stakeholder-detail-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.86);
}

.stakeholder-detail-head,
.stakeholder-section-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.stakeholder-detail-head h3 {
  margin: 2px 0 4px;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.05;
}

.stakeholder-detail-head p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.stakeholder-detail-close {
  flex: 0 0 auto;
}

.stakeholder-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 12px;
}

.stakeholder-detail-grid-secondary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stakeholder-detail-section {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.stakeholder-report-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 245, 239, 0.68);
}

.stakeholder-report-panel h4 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.calendar-report-panel {
  margin-top: 4px;
}

.report-center-card {
  align-content: start;
}

.report-center-form {
  grid-template-columns: repeat(2, minmax(160px, 1fr)) auto;
}

.report-center-list {
  display: grid;
  gap: 8px;
}

.report-center-controls {
  display: grid;
  grid-template-columns: minmax(130px, 0.65fr) minmax(130px, 0.65fr) minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.report-client-safe-toggle {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.72);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.report-client-safe-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--evergreen);
}

.report-center-row {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.7);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.report-center-row:hover,
.report-center-row.is-active {
  border-color: rgba(54, 84, 70, 0.55);
  background: rgba(232, 238, 224, 0.72);
}

.report-center-row span {
  font-weight: 600;
}

.report-center-row small {
  color: var(--muted);
}

.report-center-preview.stakeholder-report-panel {
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.stakeholder-report-actions,
.stakeholder-report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.stakeholder-report-meta {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stakeholder-report-preview {
  max-height: 420px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.stakeholder-report-empty {
  margin: 0;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.45;
}

.stakeholder-fact-grid,
.stakeholder-impact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.stakeholder-impact-link-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.stakeholder-impact-tracking {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 181, 34, 0.08);
  cursor: pointer;
}

.stakeholder-impact-tracking input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.stakeholder-impact-tracking span,
.stakeholder-impact-tracking strong,
.stakeholder-impact-tracking small {
  display: block;
}

.stakeholder-impact-tracking strong {
  color: var(--ink);
  font-size: 13px;
}

.stakeholder-impact-tracking small {
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.45;
}

.stakeholder-impact-link-form .form-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.stakeholder-impact-link-form .form-field span {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.stakeholder-impact-link-form select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.stakeholder-impact-link-form .control-button {
  min-height: 44px;
}

.stakeholder-score-explainer {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 245, 239, 0.72);
}

.stakeholder-score-explainer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.stakeholder-score-rationale {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.stakeholder-fact {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.stakeholder-fact span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stakeholder-fact strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.stakeholder-detail-note {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 245, 239, 0.74);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.stakeholder-timeline {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}

.stakeholder-timeline-item {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.stakeholder-timeline-item:last-child {
  border-bottom: 0;
}

.stakeholder-timeline-item h5 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}

.stakeholder-timeline-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.stakeholder-timeline-extra {
  font-family: var(--mono);
  font-size: 11px !important;
}

.stakeholder-inline-action {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.stakeholder-inline-action summary {
  width: fit-content;
  cursor: pointer;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stakeholder-task-form.ops-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stakeholder-task-form.ops-form .stakeholder-task-title,
.stakeholder-task-form.ops-form .form-field-wide,
.stakeholder-task-form.ops-form .form-field-mentions {
  grid-column: 1 / -1;
}

.stakeholder-file-upload-form.ops-upload-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stakeholder-file-upload-form.ops-upload-form .form-field-wide,
.stakeholder-file-upload-form.ops-upload-form .form-field-file,
.stakeholder-file-upload-form.ops-upload-form .control-button {
  grid-column: 1 / -1;
}

.stakeholder-timeline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.stakeholder-timeline-actions .control-button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 10px;
}

.stakeholder-evidence-head {
  margin-top: 2px;
}

.stakeholder-impact-evidence {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
}

.stakeholder-impact-evidence-item {
  display: grid;
  gap: 5px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.stakeholder-impact-evidence-item:last-child {
  border-bottom: 0;
}

.stakeholder-impact-evidence-item h5 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.stakeholder-impact-evidence-item p,
.stakeholder-impact-evidence-item blockquote {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.stakeholder-impact-evidence-item blockquote {
  padding-left: 10px;
  border-left: 2px solid var(--accent);
}

.stakeholder-impact-evidence-item a {
  width: fit-content;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.stakeholder-impact-evidence-item a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.stakeholder-touchpoint-section {
  padding-top: 14px;
}

.stakeholder-touchpoint-priority {
  border-color: rgba(48, 96, 67, 0.28) !important;
  background: rgba(239, 246, 241, 0.72) !important;
}

.stakeholder-touchpoint-priority .stakeholder-section-head h4 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.stakeholder-touchpoint-form.ops-form {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
}

.stakeholder-touchpoint-form.ops-form .form-field-wide,
.stakeholder-touchpoint-form.ops-form .stakeholder-touchpoint-subject,
.stakeholder-touchpoint-form.ops-form .stakeholder-capture-panel,
.stakeholder-surface-toggle {
  grid-column: 1 / -1;
}

.stakeholder-touchpoint-form.ops-form .stakeholder-touchpoint-notes textarea {
  min-height: 132px;
  font-size: 14px;
  line-height: 1.5;
}

.stakeholder-touchpoint-form.ops-form .stakeholder-touchpoint-type,
.stakeholder-touchpoint-form.ops-form .stakeholder-touchpoint-direction,
.stakeholder-touchpoint-form.ops-form .stakeholder-touchpoint-occurred {
  grid-column: span 2;
}

.stakeholder-touchpoint-form.ops-form .stakeholder-touchpoint-subject {
  grid-column: span 4;
}

.stakeholder-touchpoint-form.ops-form .stakeholder-touchpoint-submit {
  grid-column: span 2;
  align-self: end;
  min-height: 44px;
}

.stakeholder-surface-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.stakeholder-surface-toggle legend {
  width: 100%;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stakeholder-surface-toggle label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.stakeholder-surface-toggle label:has(input:checked) {
  border-color: rgba(48, 96, 67, 0.46);
  background: #e4eee7;
}

.stakeholder-capture-panel {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(248, 245, 239, 0.54);
}

.stakeholder-record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Final stakeholder workspace overrides live after the generic ops form rules. */
.stakeholder-tracker-card.is-detail-open {
  gap: 14px;
}

.stakeholder-tracker-card.is-detail-open .ops-card-head {
  padding-bottom: 12px;
}

.stakeholder-detail-panel {
  gap: 18px;
  padding: 18px 20px 20px;
}

.stakeholder-detail-head {
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.stakeholder-detail-head > div {
  min-width: 0;
}

.stakeholder-detail-grid {
  gap: 18px;
  align-items: start;
}

.stakeholder-detail-grid-secondary {
  gap: 14px;
}

.stakeholder-detail-section {
  align-content: start;
}

.stakeholder-detail-grid > .stakeholder-detail-section,
.stakeholder-detail-grid-secondary > .stakeholder-detail-section,
.stakeholder-touchpoint-section {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
}

.stakeholder-fact-grid,
.stakeholder-impact-grid,
.stakeholder-score-explainer-grid {
  gap: 12px 16px;
  align-items: start;
}

.stakeholder-fact {
  align-content: start;
}

.stakeholder-impact-link-form {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.stakeholder-impact-link-form .control-button {
  width: fit-content;
  min-width: 132px;
  max-width: 100%;
  justify-self: start;
}

.stakeholder-entry-form.ops-form {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px 12px;
  align-items: start;
}

.stakeholder-entry-form .form-field {
  min-width: 0;
}

.stakeholder-entry-form .form-field span,
.stakeholder-entry-form .form-mention-label span {
  min-height: 22px;
  margin-bottom: 7px;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}

.stakeholder-entry-form .stakeholder-field-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.stakeholder-field-count {
  flex: 0 0 auto;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0;
  white-space: nowrap;
}

.stakeholder-field-count.is-over-limit {
  color: var(--negative);
  font-weight: 700;
}

.stakeholder-entry-form .stakeholder-first-name-field,
.stakeholder-entry-form .stakeholder-last-name-field,
.stakeholder-entry-form .stakeholder-org-field,
.stakeholder-entry-form .stakeholder-phone-field,
.stakeholder-entry-form .stakeholder-position-field {
  grid-column: span 3;
}

.stakeholder-entry-form .stakeholder-first-name-field {
  grid-column: span 2;
}

.stakeholder-entry-form .stakeholder-last-name-field {
  grid-column: span 3;
}

.stakeholder-entry-form .stakeholder-org-field {
  grid-column: span 5;
}

.stakeholder-entry-form .stakeholder-phone-field {
  grid-column: span 2;
}

.stakeholder-entry-form .stakeholder-title-field,
.stakeholder-entry-form .stakeholder-org-type-field,
.stakeholder-entry-form .stakeholder-email-field,
.stakeholder-entry-form .stakeholder-status-field,
.stakeholder-entry-form .stakeholder-risk-field,
.stakeholder-entry-form .stakeholder-next-touch-field,
.stakeholder-entry-form .stakeholder-city-field,
.stakeholder-entry-form .stakeholder-state-field,
.stakeholder-entry-form .stakeholder-zip-field {
  grid-column: span 2;
}

.stakeholder-entry-form .stakeholder-email-field {
  grid-column: span 4;
}

.stakeholder-entry-form .stakeholder-position-field {
  grid-column: span 2;
}

.stakeholder-entry-form .stakeholder-influence-field,
.stakeholder-entry-form .stakeholder-stakes-field {
  grid-column: span 1;
}

.stakeholder-entry-form .stakeholder-impact-field,
.stakeholder-entry-form .stakeholder-address-field,
.stakeholder-entry-form .stakeholder-owner-field,
.stakeholder-entry-form .stakeholder-notes-field,
.stakeholder-entry-form .stakeholder-correspondence-field {
  grid-column: span 4;
}

.stakeholder-entry-form .stakeholder-courtesy-toggle {
  grid-column: span 2;
  align-self: end;
  min-height: 44px;
}

.stakeholder-entry-form > .control-button-primary {
  grid-column: span 2;
  align-self: end;
  min-height: 44px;
}

.stakeholder-entry-form .stakeholder-organization-input {
  min-height: 64px;
  overflow-wrap: anywhere;
}

.stakeholder-validation-error {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--negative);
  font-size: 12px;
  font-weight: 700;
}

.stakeholder-filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 8px;
  align-items: end;
  margin: 0 0 10px;
}

.stakeholder-row-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.stakeholder-tracker-table tbody tr.has-duplicate td {
  background: rgba(255, 246, 217, 0.88);
}

.stakeholder-tracker-table tbody tr.is-overdue td {
  background: rgba(255, 235, 230, 0.9);
}

.stakeholder-tracker-table tbody tr.has-duplicate.is-overdue td {
  background: rgba(255, 238, 216, 0.94);
}

@media (max-width: 720px) {
  .stakeholder-filter-form {
    grid-template-columns: 1fr;
  }
}

.stakeholder-entry-advanced {
  grid-column: 1 / -1;
  padding-top: 2px;
}

.stakeholder-entry-advanced summary,
.stakeholder-edit-detail > summary,
.stakeholder-merge-detail > summary,
.stakeholder-advanced-detail summary {
  width: fit-content;
  cursor: pointer;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stakeholder-edit-detail {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.stakeholder-merge-detail {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(166, 119, 0, 0.24);
}

.stakeholder-edit-detail > summary,
.stakeholder-merge-detail > summary {
  display: inline-grid;
  gap: 2px;
}

.stakeholder-edit-detail > summary small,
.stakeholder-merge-detail > summary small {
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.stakeholder-edit-form {
  margin-top: 12px;
}

.stakeholder-merge-form {
  margin-top: 12px;
}

.stakeholder-entry-advanced-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.stakeholder-advanced-detail {
  display: grid;
  gap: 12px;
}

.stakeholder-advanced-detail summary {
  display: inline-grid;
  gap: 2px;
  padding: 8px 0;
}

.stakeholder-advanced-detail summary small {
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.stakeholder-advanced-detail[open] {
  padding-top: 4px;
}

.stakeholder-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.stakeholder-mobile-capture-button {
  display: none;
}

@media (max-width: 1180px) {
  .stakeholder-detail-grid,
  .stakeholder-detail-grid-secondary {
    grid-template-columns: 1fr;
  }

  .stakeholder-entry-form .stakeholder-first-name-field,
  .stakeholder-entry-form .stakeholder-last-name-field,
  .stakeholder-entry-form .stakeholder-title-field,
  .stakeholder-entry-form .stakeholder-org-field,
  .stakeholder-entry-form .stakeholder-org-type-field,
  .stakeholder-entry-form .stakeholder-email-field,
  .stakeholder-entry-form .stakeholder-phone-field,
  .stakeholder-entry-form .stakeholder-position-field,
  .stakeholder-entry-form .stakeholder-status-field,
  .stakeholder-entry-form .stakeholder-risk-field,
  .stakeholder-entry-form .stakeholder-influence-field,
  .stakeholder-entry-form .stakeholder-stakes-field,
  .stakeholder-entry-form .stakeholder-next-touch-field,
  .stakeholder-entry-form .stakeholder-city-field,
  .stakeholder-entry-form .stakeholder-state-field,
  .stakeholder-entry-form .stakeholder-zip-field {
    grid-column: span 3;
  }

  .stakeholder-entry-form .stakeholder-impact-field,
  .stakeholder-entry-form .stakeholder-address-field,
  .stakeholder-entry-form .stakeholder-owner-field,
  .stakeholder-entry-form .stakeholder-notes-field,
  .stakeholder-entry-form .stakeholder-correspondence-field {
    grid-column: span 6;
  }

  .stakeholder-touchpoint-form.ops-form .stakeholder-touchpoint-type,
  .stakeholder-touchpoint-form.ops-form .stakeholder-touchpoint-direction,
  .stakeholder-touchpoint-form.ops-form .stakeholder-touchpoint-occurred,
  .stakeholder-touchpoint-form.ops-form .stakeholder-touchpoint-subject,
  .stakeholder-touchpoint-form.ops-form .stakeholder-touchpoint-submit {
    grid-column: span 6;
  }
}

@media (max-width: 720px) {
  .stakeholder-tracker-card,
  .stakeholder-action-panel,
  .stakeholder-detail-panel,
  .stakeholder-detail-section,
  .stakeholder-entry-form.ops-form,
  .stakeholder-touchpoint-form.ops-form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .stakeholder-tracker-card .ops-card-head,
  .stakeholder-detail-head,
  .stakeholder-section-head {
    flex-wrap: wrap;
  }

  .stakeholder-card-actions {
    flex: 1 1 100%;
    justify-content: space-between;
  }

  .stakeholder-mobile-capture-button {
    display: inline-flex;
    min-height: 44px;
  }

  .stakeholder-tracker-card .ops-card-head > div,
  .stakeholder-detail-head > div,
  .stakeholder-section-head > div {
    min-width: 0;
  }

  .stakeholder-tracker-card .metric-pill,
  .stakeholder-detail-panel .metric-pill {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .stakeholder-entry-form.ops-form,
  .stakeholder-entry-advanced-grid,
  .stakeholder-detail-grid,
  .stakeholder-detail-grid-secondary,
  .stakeholder-touchpoint-form.ops-form {
    grid-template-columns: 1fr;
  }

  .stakeholder-entry-form .form-field,
  .stakeholder-entry-form .stakeholder-courtesy-toggle,
  .stakeholder-entry-form > .control-button-primary,
  .stakeholder-touchpoint-form.ops-form .form-field,
  .stakeholder-touchpoint-form.ops-form .stakeholder-surface-toggle,
  .stakeholder-touchpoint-form.ops-form .stakeholder-capture-panel,
  .stakeholder-touchpoint-form.ops-form .stakeholder-touchpoint-submit {
    grid-column: 1 / -1 !important;
  }

  .stakeholder-entry-form input,
  .stakeholder-entry-form select,
  .stakeholder-entry-form textarea,
  .stakeholder-touchpoint-form input,
  .stakeholder-touchpoint-form select,
  .stakeholder-touchpoint-form textarea {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .stakeholder-detail-panel {
    padding: 14px;
  }
}

.ops-intel-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.ops-intel-recent {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.ops-intel-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.ops-intel-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.62);
}

.ops-intel-title {
  margin: 4px 0 2px;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.3;
}

.ops-intel-meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.ops-intel-status {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

@media (max-width: 900px) {
  .ops-form-capture-review {
    grid-template-columns: 1fr;
  }

  .stakeholder-import-form,
  .stakeholder-entry-form {
    grid-template-columns: 1fr;
  }

  .stakeholder-entry-form .form-field-wide {
    grid-column: 1 / -1;
  }

  .stakeholder-detail-grid,
  .stakeholder-detail-grid-secondary,
  .stakeholder-touchpoint-form {
    grid-template-columns: 1fr;
  }

  .stakeholder-fact-grid,
  .stakeholder-impact-grid {
    grid-template-columns: 1fr;
  }
}

.ops-baseline-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
}

.ops-baseline-head h3 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.08;
}

.ops-baseline-bucket {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.ops-baseline-bucket:first-of-type {
  border-top: none;
  padding-top: 0;
}

.ops-baseline-bucket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ops-baseline-counts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ops-baseline-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 720px) {
  .ops-baseline-columns { grid-template-columns: 1fr; }
}

.ops-baseline-column-label {
  font-size: 11px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin: 0 0 6px;
}

.ops-baseline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.ops-baseline-item {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface, rgba(255, 253, 248, 0.72));
}

.ops-baseline-item.is-negative {
  border-color: var(--negative-soft, rgba(204, 80, 80, 0.4));
  background: var(--negative-soft, rgba(204, 80, 80, 0.08));
}

.ops-baseline-item.is-positive {
  border-color: var(--positive-soft, rgba(80, 160, 110, 0.4));
}

.ops-baseline-title {
  font-size: 14px;
  font-weight: 500;
  margin: 4px 0 2px;
  color: var(--ink);
  line-height: 1.3;
}

.ops-baseline-meta {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--ink-muted);
  margin: 0;
}

.ops-team-strip {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.62);
}

.ops-team-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ops-team-roster {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.ops-team-member {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  color: var(--ink-soft);
}

.ops-team-member-name {
  color: var(--ink);
}

.ops-team-role {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-muted);
}

.ops-team-copy {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.ops-team-avatars {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.ops-readonly-notice {
  padding: 8px 12px;
  border: 1px solid rgba(139, 123, 53, 0.24);
  border-radius: 6px;
  background: var(--neutral-soft);
  color: var(--neutral);
  font-size: 12px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ops-mentioned-users {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.form-field-mentions {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
}

.form-field-stakeholders {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.54);
}

.form-field-mentions legend,
.form-field-stakeholders legend {
  padding: 0 4px;
  font-size: 11px;
  color: var(--ink-soft);
}

.form-mentions-list,
.form-stakeholder-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.form-stakeholder-list {
  max-height: 72px;
  overflow: auto;
}

.form-mention-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px 3px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
}

.form-mention-label:has(input:checked) {
  background: var(--accent-soft);
  border-color: rgba(35, 71, 60, 0.3);
  color: var(--accent);
}

.ops-user-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 8px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.2;
}

.ops-user-chip.is-empty {
  color: var(--ink-muted);
}

.ops-user-avatar {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(35, 71, 60, 0.2);
  border-radius: 999px;
  background: rgba(35, 71, 60, 0.1);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ops-user-avatar.is-more {
  background: rgba(159, 90, 47, 0.08);
  color: var(--negative);
}

.ops-signal-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  min-height: 126px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.76);
}

.ops-signal-card.is-positive {
  border-color: rgba(46, 106, 80, 0.24);
  background: var(--positive-soft);
}

.ops-signal-card.is-negative {
  border-color: rgba(159, 90, 47, 0.28);
  background: var(--negative-soft);
}

.ops-signal-label {
  margin: 0 0 8px;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ops-signal-card h4 {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
}

.ops-signal-card p:not(.ops-signal-label) {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.4;
}

.ops-episode-strip {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.ops-episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.ops-episode-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
}

.ops-episode-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.ops-episode-card p:not(.ops-signal-label) {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.4;
}

.ops-episode-actions {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.ops-source-health {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.ops-source-health-list {
  display: grid;
  gap: 8px;
}

.ops-recent-signals {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.ops-recent-signal-list {
  display: grid;
  gap: 8px;
}

.ops-recent-signal-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.ops-recent-signal-row h4 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.ops-recent-signal-row p:not(.ops-signal-label) {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.4;
}

.ops-signal-route-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 240px;
}

.ops-source-health-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--positive);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
}

.ops-source-health-row.is-neutral {
  border-left-color: var(--accent);
}

.ops-source-health-row.is-negative {
  border-left-color: var(--negative);
}

.ops-source-health-row h4 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.ops-source-health-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.ops-signal-action {
  align-self: start;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--accent);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ops-signal-action:hover:not(:disabled) {
  border-color: rgba(46, 106, 80, 0.35);
  background: rgba(46, 106, 80, 0.08);
}

.ops-signal-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ops-alert-pill {
  font-size: 9px;
}

.ops-alert-pill.is-positive {
  background: var(--positive-soft);
  color: var(--positive);
}

.ops-alert-pill.is-negative {
  background: var(--negative-soft);
  color: var(--negative);
}

.ops-alert-pill.is-warning {
  background: var(--warn-soft);
  color: var(--warn);
}

.ops-alert-pill.is-neutral {
  background: rgba(35, 71, 60, 0.08);
  color: var(--accent);
}

.ops-alert-pill.is-critical {
  background: rgba(159, 47, 47, 0.12);
  color: #9f2f2f;
}

.workspace[data-mode="pm"] .ops-grid,
.ops-grid[data-active-tool="calendar"],
.ops-grid[data-active-tool="board"],
.ops-grid[data-active-tool="crm"],
.ops-grid[data-active-tool="meetings"],
.ops-grid[data-active-tool="documents"],
.ops-grid[data-active-tool="budget"],
.ops-grid[data-active-tool="reports"],
.ops-grid[data-active-tool="public-signal"] {
  grid-template-columns: minmax(0, 1fr);
}

.ops-grid[data-active-tool="calendar"] [data-ops-tool]:not([data-ops-tool="calendar"]),
.ops-grid[data-active-tool="board"] [data-ops-tool]:not([data-ops-tool="board"]),
.ops-grid[data-active-tool="crm"] [data-ops-tool]:not([data-ops-tool="crm"]),
.ops-grid[data-active-tool="meetings"] [data-ops-tool]:not([data-ops-tool="meetings"]),
.ops-grid[data-active-tool="documents"] [data-ops-tool]:not([data-ops-tool="documents"]),
.ops-grid[data-active-tool="budget"] [data-ops-tool]:not([data-ops-tool="budget"]),
.ops-grid[data-active-tool="reports"] [data-ops-tool]:not([data-ops-tool="reports"]),
.ops-grid[data-active-tool="public-signal"] [data-ops-tool]:not([data-ops-tool="public-signal"]) {
  display: none;
}

.ops-grid[data-active-tool]:not([data-active-tool=""]) .ops-profile-card,
.ops-grid[data-active-tool]:not([data-active-tool=""]) .ops-intel-card,
.ops-grid[data-active-tool]:not([data-active-tool=""]) .ops-command-center,
.ops-grid[data-active-tool]:not([data-active-tool=""]) .ops-baseline-panel,
.ops-grid[data-active-tool]:not([data-active-tool=""]) .ops-team-strip,
.ops-grid[data-active-tool]:not([data-active-tool=""]) .ops-readonly-notice {
  display: none;
}

.ops-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.68);
}

.ops-card-wide {
  grid-column: 1 / -1;
}

.public-signal-card {
  display: grid;
  gap: 14px;
}

.public-signal-card-active {
  align-content: start;
}

.public-signal-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.public-signal-metrics span {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.public-signal-metrics strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
  text-transform: none;
}

.public-signal-filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(140px, 0.7fr)) minmax(200px, 1fr) repeat(2, minmax(130px, 0.6fr));
  gap: 10px;
  align-items: end;
}

.public-signal-filter-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.public-signal-feed {
  display: grid;
  gap: 10px;
  max-height: min(760px, 72vh);
  overflow: auto;
  padding-right: 4px;
}

.public-signal-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.public-signal-row.is-pending_review {
  border-color: rgba(144, 103, 35, 0.28);
}

.public-signal-row.is-approved {
  border-color: rgba(35, 71, 60, 0.28);
}

.public-signal-row.is-rejected {
  border-color: rgba(159, 47, 47, 0.26);
}

.public-signal-row-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.public-signal-row h4 {
  margin: 4px 0 0;
  max-width: 78ch;
  font-size: 17px;
  line-height: 1.3;
}

.public-signal-row-badges,
.public-signal-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.public-signal-review-actions {
  justify-content: flex-end;
}

.public-signal-detail {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.public-signal-detail summary {
  cursor: pointer;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.public-signal-detail-grid section {
  min-width: 0;
}

.public-signal-open-text {
  white-space: pre-wrap;
}

.public-signal-pairs {
  display: grid;
  gap: 7px;
  margin: 0;
}

.public-signal-pairs div {
  display: grid;
  grid-template-columns: minmax(110px, 0.4fr) minmax(0, 1fr);
  gap: 8px;
}

.public-signal-pairs dt {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.public-signal-pairs dd {
  margin: 0;
  color: var(--ink);
}

.public-signal-answer-list {
  display: grid;
  gap: 8px;
}

.public-signal-answer {
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}

.public-signal-answer:last-child {
  border-bottom: 0;
}

.public-signal-answer p {
  margin: 0 0 3px;
  color: var(--ink-soft);
}

.public-signal-answer strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
}

.public-signal-review-note {
  margin: 12px 0 0;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.public-signal-compact-list {
  display: grid;
  gap: 8px;
}

.public-signal-compact-list div {
  display: grid;
  gap: 2px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.public-signal-compact-list span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.public-signal-compact-list strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
}

@media (max-width: 980px) {
  .public-signal-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-signal-filter-form,
  .public-signal-detail-grid,
  .public-signal-row-main,
  .public-signal-pairs div {
    grid-template-columns: minmax(0, 1fr);
  }

  .public-signal-feed {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .public-signal-review-actions {
    justify-content: flex-start;
  }
}

.ops-card-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.ops-card h3 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.ops-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.ops-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
}

.ops-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: end;
}

.ops-status-button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.ops-status-button.is-active {
  border-color: rgba(35, 71, 60, 0.42);
  background: rgba(35, 71, 60, 0.12);
  color: var(--pine);
}

.ops-status-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.ops-list-item h4 {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
}

.ops-list-item p,
.ops-empty {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.ops-list-item .ops-item-tags {
  color: var(--pine);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.ops-file-item {
  align-items: center;
}

.ops-file-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.ops-file-analysis-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
}

.ops-file-analysis-state > span:last-child {
  color: var(--ink-muted);
  font-size: 12px;
}

.ops-file-analysis-button {
  min-height: 34px;
  padding: 6px 10px;
}

.ops-file-info-button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.ops-file-info-button:hover,
.ops-file-info-button.is-active {
  border-color: rgba(247, 181, 34, 0.78);
  background: rgba(247, 181, 34, 0.14);
}

.ops-file-info-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding: 12px;
  border: 1px solid rgba(18, 42, 76, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.ops-file-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ops-file-info-row {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 250, 247, 0.78);
}

.ops-file-info-row span,
.ops-file-info-policy {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.ops-file-info-row strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
}

.ops-file-info-row p,
.ops-file-info-importance,
.ops-file-info-policy {
  margin: 5px 0 0;
}

.ops-file-info-importance {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.ops-item-badges {
  margin-top: 8px;
}

.ops-connection-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.ops-connection-strip span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 5px 8px;
  border: 1px solid rgba(35, 71, 60, 0.14);
  border-radius: 999px;
  background: rgba(35, 71, 60, 0.05);
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ops-connection-strip strong {
  color: var(--pine);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

.ops-item-meta {
  margin: 0;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ops-empty {
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
  text-align: center;
}

.ops-kanban-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.ops-kanban-summary span {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(35, 71, 60, 0.06);
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ops-kanban-summary strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.ops-budget-head-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.ops-budget-summary {
  margin-top: 12px;
}

.ops-budget-summary span {
  border-color: rgba(35, 71, 60, 0.14);
}

.ops-budget-summary .is-planned {
  background: rgba(35, 71, 60, 0.06);
}

.ops-budget-summary .is-committed {
  border-color: rgba(139, 123, 53, 0.22);
  background: var(--neutral-soft);
  color: var(--neutral);
}

.ops-budget-summary .is-spent,
.ops-budget-summary .is-positive {
  border-color: rgba(46, 106, 80, 0.2);
  background: var(--positive-soft);
  color: var(--positive);
}

.ops-budget-summary .is-neutral {
  border-color: rgba(139, 123, 53, 0.22);
  background: var(--neutral-soft);
  color: var(--neutral);
}

.ops-budget-summary .is-negative {
  border-color: rgba(159, 90, 47, 0.22);
  background: var(--negative-soft);
  color: var(--negative);
}

.ops-budget-summary .is-warning {
  border-color: rgba(183, 121, 31, 0.24);
  background: var(--warn-soft);
  color: var(--warn);
}

.ops-budget-line {
  border-left: 4px solid rgba(35, 71, 60, 0.14);
}

.ops-budget-line.is-planned {
  border-left-color: rgba(35, 71, 60, 0.22);
}

.ops-budget-line.is-neutral {
  border-left-color: rgba(139, 123, 53, 0.55);
  background: rgba(139, 123, 53, 0.05);
}

.ops-budget-line.is-positive {
  border-left-color: rgba(46, 106, 80, 0.55);
  background: rgba(46, 106, 80, 0.04);
}

.ops-budget-line.is-negative {
  border-left-color: rgba(159, 90, 47, 0.72);
  background: rgba(159, 90, 47, 0.06);
}

.ops-budget-line.is-warning {
  border-left-color: rgba(183, 121, 31, 0.72);
  background: rgba(183, 121, 31, 0.07);
}

.ops-budget-amounts {
  display: grid;
  gap: 6px;
  min-width: 128px;
  text-align: right;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 10px;
}

.ops-budget-amounts span {
  display: grid;
  gap: 2px;
}

.ops-budget-amounts small {
  color: var(--ink-muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ops-budget-amounts .is-planned {
  color: var(--ink-soft);
}

.ops-budget-amounts .is-committed {
  color: var(--neutral);
}

.ops-budget-amounts .is-spent {
  color: var(--positive);
}

.ops-subhead {
  margin: 14px 0 8px;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.calendar-planner {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.segmented-control {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.segmented-control button,
.calendar-range .icon-button {
  min-height: 32px;
  border: 0;
  border-radius: 7px;
  padding: 7px 10px;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.segmented-control button.is-active,
.calendar-range .icon-button:hover {
  background: rgba(35, 71, 60, 0.12);
  color: var(--pine);
}

.calendar-range {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

.calendar-range h4 {
  min-width: 220px;
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.calendar-day {
  min-width: 0;
  min-height: 128px;
  padding: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.72);
}

.calendar-grid[data-calendar-view="week"] .calendar-day {
  min-height: 320px;
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day:nth-last-child(-n + 7) {
  border-bottom: 0;
}

.calendar-day.is-muted {
  background: rgba(255, 255, 255, 0.36);
  color: var(--ink-muted);
}

.calendar-day.is-today {
  box-shadow: inset 0 0 0 2px rgba(35, 71, 60, 0.24);
}

.calendar-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.calendar-day-head span {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.calendar-day-head strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}

.calendar-day-events {
  display: grid;
  gap: 6px;
}

.calendar-event {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 7px;
  border: 1px solid rgba(35, 71, 60, 0.16);
  border-radius: 8px;
  background: rgba(35, 71, 60, 0.08);
}

.calendar-event span,
.calendar-more,
.calendar-empty-slot {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.calendar-event strong {
  overflow: hidden;
  color: var(--pine);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-empty-slot {
  opacity: 0.58;
}

.calendar-more-details {
  display: grid;
  gap: 6px;
}

.calendar-more {
  display: inline-flex;
  width: fit-content;
  cursor: pointer;
}

.calendar-more-details[open] .calendar-more {
  color: var(--pine);
}

.calendar-hidden-events {
  display: grid;
  gap: 6px;
}

.ops-inline-link {
  width: fit-content;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ops-form,
.ops-upload-form {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(4, minmax(120px, 0.7fr)) auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.46);
}

.ops-upload-form {
  grid-template-columns: minmax(0, 1.2fr) 150px minmax(180px, 0.9fr) auto;
}

.ops-form-calendar {
  grid-template-columns: minmax(260px, 1fr) minmax(130px, 160px) minmax(190px, 220px) 72px;
  align-items: end;
}

.ops-form-calendar .calendar-title-field {
  grid-column: 1;
}

.ops-form-calendar .calendar-type-field {
  grid-column: 2;
}

.ops-form-calendar .calendar-start-field {
  grid-column: 3;
}

.ops-form-calendar .calendar-add-button {
  grid-column: 4;
  align-self: end;
  min-width: 72px;
}

.ops-form-calendar .calendar-location-field {
  grid-column: 1;
}

.ops-form-calendar .calendar-owner-field {
  grid-column: 2;
}

.ops-form-calendar .calendar-stakeholders-field {
  grid-column: 3 / -1;
}

.ops-form-workplan,
.ops-form-meeting,
.ops-form-documents,
.ops-form-budget-settings,
.ops-form-budget-line {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.ops-form-workplan .workplan-task-field {
  grid-column: span 4;
}

.ops-form-workplan .workplan-assignee-field,
.ops-form-workplan .workplan-due-field,
.ops-form-workplan .workplan-priority-field,
.ops-form-workplan .workplan-add-button {
  grid-column: span 2;
}

.ops-form-workplan .workplan-stakeholder-field {
  grid-column: span 4;
}

.ops-form-workplan .workplan-notify-field {
  grid-column: span 8;
}

.ops-form-meeting .meeting-title-field {
  grid-column: span 4;
}

.ops-form-meeting .meeting-type-field,
.ops-form-meeting .meeting-start-field,
.ops-form-meeting .meeting-add-button {
  grid-column: span 2;
}

.ops-form-meeting .meeting-url-field {
  grid-column: span 4;
}

.ops-form-meeting .meeting-owner-field {
  grid-column: span 3;
}

.ops-form-meeting .meeting-stakeholder-field {
  grid-column: span 5;
}

.ops-form-documents .document-title-field {
  grid-column: span 4;
}

.ops-form-documents .document-visibility-field,
.ops-form-documents .document-source-field,
.ops-form-documents .document-upload-button {
  grid-column: span 2;
}

.ops-form-documents .document-stakeholder-field,
.ops-form-documents .document-file-field {
  grid-column: span 4;
}

.ops-form-documents .document-permission-field {
  grid-column: span 7;
}

.ops-form-documents .document-index-field {
  grid-column: span 3;
}

.document-index-field {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 700;
}

.document-index-field input {
  width: 16px;
  min-height: 16px;
}

.ops-upload-progress {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  border-style: dashed;
  background: rgba(247, 181, 34, 0.08);
}

.ops-upload-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(18, 42, 76, 0.16);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: ops-upload-spin 0.9s linear infinite;
}

@keyframes ops-upload-spin {
  to {
    transform: rotate(360deg);
  }
}

.ops-upload-queue {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.ops-upload-queue-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.ops-upload-queue-row span {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-upload-queue-row strong {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.ops-upload-queue-row p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12px;
}

.ops-upload-queue-row.is-done {
  border-color: rgba(30, 132, 117, 0.28);
  background: rgba(30, 132, 117, 0.08);
}

.ops-upload-queue-row.is-failed {
  border-color: rgba(170, 60, 48, 0.32);
  background: rgba(170, 60, 48, 0.08);
}

.ops-upload-queue-row.is-uploading {
  border-color: rgba(247, 181, 34, 0.42);
}

.ops-form-budget-settings .budget-total-field {
  grid-column: span 4;
}

.ops-form-budget-settings .budget-cost-field,
.ops-form-budget-settings .budget-start-field,
.ops-form-budget-settings .budget-end-field,
.ops-form-budget-settings .budget-save-button {
  grid-column: span 2;
}

.ops-form-budget-line .budget-category-field {
  grid-column: span 4;
}

.ops-form-budget-line .budget-planned-field,
.ops-form-budget-line .budget-committed-field,
.ops-form-budget-line .budget-spent-field,
.ops-form-budget-line .budget-add-button {
  grid-column: span 2;
}

.ops-form-budget-line .budget-status-field,
.ops-form-budget-line .budget-date-field,
.ops-form-budget-line .budget-owner-field {
  grid-column: span 3;
}

.ops-form .control-button,
.ops-upload-form .control-button {
  width: 100%;
  min-height: 40px;
  align-self: end;
}

.ops-form .form-field,
.ops-upload-form .form-field {
  min-width: 0;
}

.ops-form .form-field span,
.ops-upload-form .form-field span {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-form input,
.ops-form select,
.ops-form textarea,
.ops-upload-form input,
.ops-upload-form select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.ops-form input[type="datetime-local"] {
  min-width: 0;
}

.ops-form textarea {
  min-height: 86px;
  resize: vertical;
}

.ops-upload-form input[type="file"] {
  padding: 7px 8px;
}

.ops-feedback {
  margin: 0 0 12px;
}

.ops-download-button {
  align-self: center;
  white-space: nowrap;
}

.report-frame {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  position: relative;
}

.report-banner {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  padding: 20px 22px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(35, 71, 60, 0.94), rgba(48, 89, 77, 0.84)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  color: #f6f2e8;
}

.report-banner h2 {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 680px;
}

.report-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.research-return-button {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  padding: 7px 16px 7px 12px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(35, 71, 60, 0.07);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
  white-space: nowrap;
}

.research-return-button:hover {
  background: rgba(35, 71, 60, 0.14);
  color: var(--accent);
  border-color: rgba(35, 71, 60, 0.28);
}

/* Nav collapse toggle button */
.nav-collapse-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-top: auto;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
  align-self: flex-start;
}

.nav-collapse-btn:hover {
  background: rgba(35, 71, 60, 0.08);
  color: var(--ink);
}

/* Collapsed nav state */
.page-shell.with-side-nav.nav-collapsed {
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 10px;
  transition: grid-template-columns 220ms ease;
}

.page-shell.with-side-nav {
  transition: grid-template-columns 220ms ease;
}

.page-shell.nav-collapsed .workspace-nav {
  padding: 10px 6px;
  gap: 0;
  overflow: hidden;
  align-items: center;
}

.page-shell.nav-collapsed .workspace-nav > :not(.nav-collapse-btn) {
  display: none;
}

.page-shell.nav-collapsed .nav-collapse-btn {
  margin-top: 0;
  align-self: center;
  width: 28px;
  height: 28px;
}

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

.meta-chip,
.report-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(246, 242, 232, 0.98);
  border: 1px solid rgba(246, 242, 232, 0.32);
  background: rgba(255, 255, 255, 0.12);
}

.meta-chip-button {
  cursor: pointer;
  font-family: var(--mono);
}

.meta-chip-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.report-download-button {
  min-height: 34px;
  padding-inline: 14px;
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.report-download-button:hover,
.report-download-button:focus-visible {
  background: #ffd568;
  color: var(--navy);
}

.empty-state {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 560px;
  text-align: center;
  padding: 24px;
}

.empty-kicker {
  margin: 0 0 10px;
  font-family: var(--mono);
  color: var(--ink-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.empty-copy {
  max-width: 360px;
  font-size: 15px;
}

.empty-copy code {
  font-family: var(--mono);
  font-size: 0.95em;
}

.launcher-panel {
  margin-top: 18px;
  padding: 28px;
  border-radius: 24px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
}

.launcher-shell {
  display: grid;
  gap: 20px;
}

.launcher-intro h3,
.launcher-status-card h3,
.workflow-toast-card h3,
.launcher-step-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.launcher-status-card,
.launcher-step-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 243, 234, 0.96));
}

.launcher-progress-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(35, 71, 60, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(35, 71, 60, 0.08), rgba(255, 253, 248, 0.86)),
    rgba(255, 255, 255, 0.84);
}

.launcher-progress-head,
.launcher-progress-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.launcher-progress-head h3 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.1;
}

.launcher-timer {
  min-width: 112px;
  padding: 10px 12px;
  border: 1px solid rgba(35, 71, 60, 0.2);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.9);
  text-align: center;
}

.launcher-timer span {
  display: block;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 20px;
  line-height: 1.1;
}

.launcher-timer small,
.launcher-progress-stats span {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.launcher-progress-meter {
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(35, 71, 60, 0.18);
  border-radius: 999px;
  background: rgba(35, 71, 60, 0.08);
}

.launcher-progress-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(35, 71, 60, 0.72), rgba(46, 106, 80, 0.96));
  transition: width 500ms ease;
}

.launcher-status-card.is-failed,
.launcher-step-card.is-failed,
.launcher-progress-card.is-failed,
.workflow-toast-card.is-failed {
  border-color: rgba(159, 90, 47, 0.42);
}

.launcher-step-card.is-running {
  border-color: rgba(46, 106, 80, 0.42);
  box-shadow: inset 4px 0 0 rgba(46, 106, 80, 0.55);
}

.launcher-step-card.is-succeeded {
  border-color: rgba(46, 106, 80, 0.26);
}

.launcher-step-grid {
  display: grid;
  gap: 12px;
}

.launcher-step-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.launcher-step-copy,
.workflow-toast-copy {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.launcher-step-error {
  color: var(--warn);
}

.launcher-step-muted {
  color: var(--ink-muted);
}

.launcher-form {
  display: grid;
  gap: 16px;
}

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

.form-field {
  display: grid;
  gap: 8px;
}

.form-field span {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
}

.form-field textarea {
  resize: vertical;
  min-height: 112px;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.external-capture-body {
  background:
    radial-gradient(circle at 8% 4%, rgba(35, 71, 60, 0.09), transparent 24%),
    radial-gradient(circle at 92% 18%, rgba(159, 90, 47, 0.07), transparent 24%),
    linear-gradient(180deg, #f7f3ea 0%, #ece6da 100%);
  overflow-x: hidden;
}

.external-capture-shell {
  display: grid;
  place-items: start center;
  width: 100%;
  min-height: 100vh;
  padding: 32px 20px;
}

.external-capture-card {
  width: 100%;
  max-width: 920px;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 24px 56px rgba(32, 34, 28, 0.1);
}

.external-capture-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  min-width: 0;
  margin-bottom: 22px;
}

.external-capture-head h1 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.external-capture-form {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.external-capture-form fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
}

.external-capture-form legend {
  padding: 0 6px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.external-stakeholder-picker small {
  display: block;
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.35;
}

.external-stakeholder-picker small[data-tone="error"] {
  color: var(--warn);
}

.external-stakeholder-picker small[data-tone="muted"] {
  color: rgba(48, 52, 43, 0.58);
}

.external-capture-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: end;
  min-height: 44px;
  color: var(--ink);
  font-size: 14px;
}

.external-capture-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.external-capture-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 2px;
}

.external-capture-status {
  min-height: 20px;
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
}

.external-capture-status[data-tone="success"] {
  color: var(--positive);
}

.external-capture-status[data-tone="error"] {
  color: var(--warn);
}

.external-capture-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 720px) {
  .external-capture-shell {
    padding: 14px;
  }

  .external-capture-card {
    padding: 18px;
  }

  .external-capture-head {
    display: grid;
    gap: 14px;
  }

  .external-capture-head h1 {
    font-size: 28px;
    line-height: 1.08;
  }

  .external-capture-form fieldset {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .external-capture-form .form-field-wide {
    grid-column: 1;
  }
}

.launcher-notify-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(35, 71, 60, 0.2);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.82);
}

.launcher-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.launcher-checkbox input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--accent);
}

.launcher-checkbox strong {
  font-size: 14px;
  font-weight: 600;
}

.launcher-notify-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.launcher-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.report-article {
  margin-top: 18px;
  padding: 28px 28px 32px;
  border-radius: 24px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  overflow: auto;
}

.report-article h1,
.report-article h2,
.report-article h3 {
  font-family: var(--serif);
  color: var(--ink);
  letter-spacing: -0.02em;
}

.report-article h1 {
  margin: 0 0 18px;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.02;
}

.report-article h2 {
  margin: 28px 0 10px;
  font-size: 26px;
  font-weight: 400;
}

.report-article h3 {
  margin: 22px 0 10px;
  font-size: 20px;
  font-weight: 500;
}

.report-article p,
.report-article li {
  font-size: 16px;
  line-height: 1.75;
}

.report-article p {
  margin: 0 0 16px;
}

.report-article ul {
  margin: 0 0 18px 18px;
  padding: 0;
}

.archetype-section + .archetype-section {
  margin-top: 30px;
}

details.archetype-collapsible {
  margin-top: 14px;
  padding: 16px 20px;
  border: 1px solid rgba(35, 71, 60, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 1px 0 rgba(36, 35, 31, 0.04);
}

details.archetype-collapsible:not([open]):hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(35, 71, 60, 0.4);
}

details.archetype-collapsible[open] {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(35, 71, 60, 0.32);
  padding-bottom: 22px;
}

details.archetype-collapsible > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 2px 0;
}

.collapsible-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

details.archetype-collapsible > summary::-webkit-details-marker {
  display: none;
}

details.archetype-collapsible > summary:hover .collapsible-title {
  color: var(--accent);
}

.collapsible-head-left {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.collapsible-chevron {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: rotate(-45deg);
  transition: transform 180ms ease, border-color 180ms ease;
  flex-shrink: 0;
}

details.archetype-collapsible[open] > summary .collapsible-chevron {
  transform: rotate(45deg);
  border-color: var(--accent);
}

.collapsible-title {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  transition: color 160ms ease;
}

.collapsible-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(35, 71, 60, 0.14);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.collapsible-caption {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: right;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collapsible-body {
  margin-top: 18px;
}

.collapsible-body > h2:first-child {
  display: none;
}

.collapsible-preview {
  display: block;
  padding: 8px 8px 0 24px;
  border-top: 1px solid rgba(36, 35, 31, 0.08);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  font-family: var(--sans);
  text-transform: none;
  letter-spacing: 0;
}

details.archetype-collapsible[open] .collapsible-preview {
  display: none;
}

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

.field-card,
.stack-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 243, 234, 0.96));
}

.field-card h3,
.stack-card h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
}

.field-card p,
.stack-card-copy {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 500;
  line-height: 1.5;
}

.stack-list {
  display: grid;
  gap: 12px;
}

.readiness-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(247, 243, 234, 0.96));
}

.readiness-grid,
.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}

.signal-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 14px 18px;
  border-radius: 18px;
  border-style: solid;
  align-self: stretch;
  min-width: 0;
}

.signal-column > .report-card-meta {
  margin-bottom: 2px;
  flex: 0 0 auto;
}

.signal-column > .stack-card-copy {
  font-size: 12px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.45;
  margin: 0;
  flex: 0 0 auto;
}

.signal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
  flex: 1 1 auto;
  min-width: 0;
}

.signal-item {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(36, 35, 31, 0.1);
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(36, 35, 31, 0.04);
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

.signal-item h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}

.signal-item .stack-card-copy {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
}

.signal-item .stack-card-copy strong {
  font-weight: 600;
  color: var(--ink);
}

.signal-item-type {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.tone-positive .signal-item,
.tone-neutral .signal-item,
.tone-negative .signal-item {
  background: #ffffff;
}

.signal-list .empty-list {
  background: rgba(255, 255, 255, 0.78);
  border-radius: 14px;
  border: 1px dashed rgba(36, 35, 31, 0.22);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 18px 12px;
}

.qa-overview-card,
.qa-check-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(247, 243, 234, 0.96));
}

.qa-overview-card.is-failed,
.qa-overview-card.is-escalated,
.qa-check-card {
  border-color: rgba(168, 95, 43, 0.22);
  background: linear-gradient(180deg, rgba(255, 250, 245, 0.92), rgba(248, 238, 228, 0.98));
}

.qa-overview-card.is-passed,
.qa-check-card-pass {
  border-color: rgba(35, 71, 60, 0.18);
  background: linear-gradient(180deg, rgba(243, 250, 246, 0.92), rgba(239, 247, 242, 0.98));
}

.qa-overview-card.is-evidence_limited {
  border-color: rgba(126, 117, 52, 0.22);
  background: linear-gradient(180deg, rgba(250, 249, 240, 0.92), rgba(246, 244, 229, 0.98));
}

.qa-check-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.qa-action-copy {
  margin: 12px 0 0;
  color: var(--ink);
}

.qa-run-list {
  margin-top: 14px;
}

.qa-details {
  margin-top: 14px;
}

.qa-details > summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px dashed var(--line-strong);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.5);
}

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

.qa-details[open] > summary {
  margin-bottom: 14px;
  border-style: solid;
  background: rgba(255, 255, 255, 0.72);
}

.qa-failure-line {
  margin-top: 12px;
}

.qa-run-card .launcher-step-head {
  margin-bottom: 10px;
}

.citation-ref-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.report-article li + li {
  margin-top: 10px;
}

.report-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(35, 71, 60, 0.35);
}

.report-link:hover {
  text-decoration-color: var(--accent);
}

.citation-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(35, 71, 60, 0.2);
  background: rgba(35, 71, 60, 0.08);
  color: var(--accent);
  font-size: 10px;
  cursor: pointer;
  vertical-align: middle;
}

.citation-link:hover,
.citation-link.is-active {
  background: rgba(35, 71, 60, 0.16);
  border-color: rgba(35, 71, 60, 0.34);
}

.timeline-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(243, 238, 227, 0.88));
}

.timeline-stamp {
  margin: 0 0 8px;
  color: var(--ink-muted);
  font-size: 10px;
}

.timeline-metrics,
.report-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.metric-pill {
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(35, 71, 60, 0.1);
  color: var(--accent-ink);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.metric-pill-tone {
  border: 1px solid transparent;
}

.metric-pill-positive,
.metric-pill.is-positive {
  background: var(--positive-soft);
  color: var(--positive);
  border-color: rgba(46, 106, 80, 0.2);
}

.metric-pill-neutral,
.metric-pill.is-neutral {
  background: var(--neutral-soft);
  color: var(--neutral);
  border-color: rgba(139, 123, 53, 0.24);
}

.metric-pill-negative,
.metric-pill.is-negative {
  background: var(--negative-soft);
  color: var(--negative);
  border-color: rgba(159, 90, 47, 0.2);
}

.metric-pill-warning,
.metric-pill.is-warning {
  background: var(--warn-soft);
  color: var(--warn);
  border-color: rgba(183, 121, 31, 0.24);
}

.tone-card {
  border-width: 1px;
}

.tone-positive {
  border-color: rgba(46, 106, 80, 0.22);
  background: linear-gradient(180deg, rgba(246, 252, 248, 0.94), rgba(238, 247, 241, 0.98));
}

.tone-neutral {
  border-color: rgba(139, 123, 53, 0.22);
  background: linear-gradient(180deg, rgba(252, 251, 244, 0.94), rgba(246, 243, 229, 0.98));
}

.tone-negative {
  border-color: rgba(159, 90, 47, 0.22);
  background: linear-gradient(180deg, rgba(255, 249, 244, 0.94), rgba(248, 238, 228, 0.98));
}

.report-axis {
  margin: 0 0 8px;
  color: var(--warn);
  font-size: 10px;
}

.report-card h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
}

.report-card-copy {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.5;
}

.archetype-summary-card {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.66);
}

.archetype-list-card {
  align-items: start;
}

.archetype-list-item {
  display: grid;
  gap: 6px;
}

.archetype-members-details {
  padding: 0 10px 10px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 9px 9px;
  background: rgba(255, 253, 248, 0.72);
}

.archetype-members-details summary {
  padding: 9px 0;
  color: var(--accent-ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.archetype-member-list {
  display: grid;
  gap: 7px;
}

.archetype-member-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(35, 71, 60, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-decoration: none;
}

.archetype-member-row:hover {
  border-color: rgba(35, 71, 60, 0.34);
  background: rgba(35, 71, 60, 0.06);
}

.archetype-member-row strong,
.archetype-member-row small {
  display: block;
}

.archetype-member-row small,
.archetype-member-empty {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.4;
}

.archetype-member-flags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.archetype-members-section,
.stakeholder-archetype-recommendation {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 253, 248, 0.82);
}

.stakeholder-archetype-recommendation {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.stakeholder-archetype-recommendation p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
}

.stakeholder-archetype-form {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.stakeholder-archetype-form .agent-side-help {
  margin: 0;
}

.stakeholder-archetype-assignment-card {
  background: linear-gradient(135deg, rgba(255, 252, 242, 0.96), rgba(246, 250, 247, 0.92));
}

.stakeholder-archetype-assignment-form {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(280px, 1.25fr) auto;
  gap: 12px;
  align-items: end;
}

.stakeholder-archetype-assignment-form .stakeholder-section-head,
.stakeholder-archetype-assignment-form .agent-side-help {
  grid-column: 1 / -1;
  margin: 0;
}

.stakeholder-archetype-assignment-form.is-compact {
  grid-template-columns: minmax(150px, 1fr) auto;
  gap: 8px;
  min-width: 220px;
}

.stakeholder-archetype-assignment-form.is-compact .form-field > span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.stakeholder-archetype-assignment-form.is-compact select,
.stakeholder-archetype-assignment-form.is-compact button {
  min-height: 40px;
}

@media (max-width: 780px) {
  .stakeholder-archetype-assignment-form {
    grid-template-columns: 1fr;
  }

  .stakeholder-archetype-assignment-form .stakeholder-section-head,
  .stakeholder-archetype-assignment-form .agent-side-help {
    grid-column: auto;
  }
}

.archetype-list-note {
  line-height: 1.55;
}

.citation-card {
  position: relative;
  display: grid;
  gap: 8px;
}

.citation-card.is-highlighted {
  border-color: rgba(35, 71, 60, 0.44);
  background: rgba(233, 242, 237, 0.92);
}

.citation-index {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  color: var(--ink-muted);
}

.citation-title {
  padding-right: 44px;
}

.citation-quote {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.citation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.citation-linkout {
  color: var(--accent);
  text-decoration: none;
}

.citation-linkout:hover {
  text-decoration: underline;
}

.status-shell {
  display: grid;
  gap: 24px;
}

.status-callout,
.status-milestone-card,
.status-next-card {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(246, 241, 231, 0.9)),
    radial-gradient(circle at top right, rgba(35, 71, 60, 0.08), transparent 34%);
}

.status-callout h2,
.status-milestone-card h3,
.status-next-card h3,
.status-outline-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.status-callout h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.status-section {
  display: grid;
  gap: 14px;
}

.status-outline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.status-outline-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
}

.status-outline-index,
.status-outline-window {
  margin: 0;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-outline-index {
  color: var(--warn);
  font-size: 12px;
}

.status-outline-window {
  color: var(--ink-muted);
  font-size: 10px;
}

.status-outline-copy,
.status-milestone-summary,
.status-outcome {
  margin: 10px 0 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.status-milestone-stack {
  display: grid;
  gap: 16px;
}

.status-milestone-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

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

.status-block {
  padding: 16px;
  border-radius: 18px;
  background: rgba(35, 71, 60, 0.04);
}

.status-list {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--ink);
  line-height: 1.6;
}

.status-list-compact {
  margin-top: 8px;
  gap: 8px;
  font-size: 13px;
}

.usage-shell {
  gap: 18px;
}

.usage-scenarios-grid,
.usage-runs-grid {
  display: grid;
  gap: 16px;
}

.usage-run-card,
.usage-scenario-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 241, 231, 0.92)),
    radial-gradient(circle at top right, rgba(35, 71, 60, 0.06), transparent 34%);
}

.empty-list {
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  color: var(--ink-muted);
  font-size: 13px;
}

.empty-list p {
  margin: 0;
}

.empty-list .control-button,
.empty-state-action {
  margin-top: 12px;
}

.workflow-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: min(380px, calc(100vw - 32px));
  z-index: 30;
}

.workflow-toast-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(252, 249, 241, 0.98);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.workflow-toast-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.workflow-toast-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.workflow-toast-link {
  border: 0;
  background: transparent;
  padding: 0;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  cursor: pointer;
}

.workflow-toast-link:hover {
  text-decoration: underline;
}

.workflow-toast-muted {
  color: var(--ink-muted);
}

.home-body {
  background: #f6f1e8;
}

.home-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 28px;
  background: rgba(246, 241, 232, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.home-brand {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  text-decoration: none;
}

.home-nav-actions,
.home-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.home-nav-link,
.home-admin-link {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.home-nav-link:hover,
.home-admin-link:hover {
  color: var(--accent);
}

.home-hero {
  position: relative;
  min-height: 84vh;
  display: grid;
  align-items: center;
  padding: 72px 28px 96px;
  overflow: hidden;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(246, 241, 232, 0.98) 0%, rgba(246, 241, 232, 0.9) 34%, rgba(246, 241, 232, 0.24) 78%);
  pointer-events: none;
}

.home-hero-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.home-hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.home-hero h1,
.home-section h2,
.home-section-head h2,
.home-access-band h2,
.home-final-cta h2,
.admin-band h2,
.admin-login h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0;
}

.home-hero h1 {
  font-size: clamp(48px, 7vw, 96px);
}

.home-lede {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.5;
}

.home-cta-row {
  margin-top: 30px;
}

.home-section {
  padding: 92px 28px;
  border-top: 1px solid var(--line);
}

.home-section-grid,
.home-section-head,
.home-card-grid,
.home-access-band,
.home-final-cta,
.admin-shell {
  width: min(1180px, calc(100vw - 56px));
  margin: 0 auto;
}

.home-section-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
}

.home-section h2,
.home-section-head h2,
.home-access-band h2,
.home-final-cta h2 {
  font-size: clamp(36px, 4.8vw, 68px);
}

.home-section p,
.home-section-head p,
.home-access-band p,
.home-final-cta p,
.admin-band p {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.7;
}

.home-spectrum {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.home-spectrum span {
  padding: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 253, 248, 0.68);
}

.home-spectrum span + span {
  border-left: 1px solid var(--line);
}

.home-spectrum span:last-child {
  background: rgba(35, 71, 60, 0.12);
  color: var(--accent);
}

.home-section-head {
  margin-bottom: 30px;
}

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.home-feature-card {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
}

.home-feature-card h3 {
  margin: 36px 0 0;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0;
}

.home-feature-card p:last-child {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

.home-access-band,
.home-final-cta,
.admin-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 40px 0;
}

.home-access-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-final-cta {
  flex-direction: column;
  align-items: start;
  padding: 92px 0 110px;
}

.login-dialog {
  width: min(520px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  background: transparent;
}

.login-dialog::backdrop {
  background: rgba(31, 36, 31, 0.36);
  backdrop-filter: blur(8px);
}

.home-login-card {
  position: relative;
}

.contact-dialog {
  width: min(620px, calc(100vw - 32px));
}

.home-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field-optional {
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-muted);
  opacity: 0.72;
}

.home-contact-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 540px) {
  .home-contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.auth-mode-switch {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
}

.auth-mode-button {
  border: 0;
  border-radius: 999px;
  padding: 9px 12px;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.auth-mode-button.is-active {
  background: var(--accent);
  color: #f6f2e8;
}

.auth-admin-switch {
  justify-self: start;
  margin-top: 10px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.auth-secondary-actions .auth-admin-switch {
  margin-top: 0;
}

.auth-admin-switch.is-active {
  color: var(--accent);
}

.auth-admin-switch[hidden] {
  display: none;
}

.admin-shell {
  width: min(1780px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.admin-login {
  margin: 48px auto;
}

.admin-console {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  min-height: calc(100vh - 72px);
}

.admin-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  align-content: start;
  gap: 18px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 22px 60px rgba(42, 37, 29, 0.12);
}

.admin-sidebar-kicker {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-sidebar-nav {
  display: grid;
  gap: 16px;
}

.admin-sidebar .workspace-nav-group {
  display: grid;
  align-items: stretch;
  gap: 4px;
  width: 100%;
}

.admin-sidebar .workspace-nav-link {
  width: 100%;
  justify-content: space-between;
  text-align: left;
}

.admin-sidebar button.workspace-nav-link {
  appearance: none;
  font-family: var(--mono);
}

.admin-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
}

.admin-panel {
  min-height: auto;
  padding: 20px;
}

.admin-tools-band {
  align-items: end;
}

.admin-tools-actions,
.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.admin-row {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--ink);
  text-decoration: none;
}

.admin-row span {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.4;
}

.admin-row-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.admin-row-action {
  text-decoration: none;
}

.admin-detail-panel {
  min-height: calc(100vh - 96px);
}

.admin-detail-body {
  margin-top: 16px;
}

.admin-overview-live {
  align-content: start;
}

.admin-live-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.admin-live-hero .report-card-meta {
  justify-content: flex-end;
  max-width: 360px;
}

.admin-overview-live .status-milestone-card .control-button {
  width: auto;
  white-space: nowrap;
}

.admin-users-shell {
  display: grid;
  gap: 20px;
}

.admin-user-callout {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
}

.admin-users-feedback {
  min-height: 24px;
  margin: 0;
  color: var(--ink-soft);
}

.admin-users-feedback.is-success {
  color: var(--accent);
}

.admin-users-feedback.is-error {
  color: var(--warn);
}

.admin-user-grid,
.admin-user-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-user-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.admin-user-filters .form-field input,
.admin-user-filters .form-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font: inherit;
}

.admin-access-matrix-shell {
  display: grid;
  gap: 12px;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.admin-access-matrix {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.admin-access-matrix th,
.admin-access-matrix td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  color: var(--ink);
  font-size: 13px;
}

.admin-access-matrix th {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-access-matrix tr:last-child td {
  border-bottom: 0;
}

.admin-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.admin-form:nth-child(2) {
  grid-row: span 2;
}

.admin-form h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
}

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

.admin-form-wide {
  grid-column: 1 / -1;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: inherit;
}

.admin-form textarea {
  resize: vertical;
  line-height: 1.45;
}

.soc2-shell {
  align-content: start;
}

.soc2-two-column {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: start;
}

.soc2-form {
  position: sticky;
  top: 18px;
}

.soc2-row {
  overflow: hidden;
}

.soc2-scroll-list {
  max-height: 640px;
  overflow: auto;
  padding-right: 4px;
}

.soc2-card-detail {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.4;
}

.soc2-metric.is-ok,
.soc2-status.is-ok {
  border-color: rgba(35, 71, 60, 0.24);
}

.soc2-metric.is-warning,
.soc2-status.is-warning {
  border-color: rgba(176, 118, 0, 0.28);
}

.soc2-metric.is-critical,
.soc2-status.is-critical {
  border-color: rgba(146, 42, 42, 0.32);
}

.soc2-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.soc2-status.is-ok {
  background: rgba(35, 71, 60, 0.08);
  color: var(--accent);
}

.soc2-status.is-warning {
  background: rgba(176, 118, 0, 0.09);
  color: #8c5c00;
}

.soc2-status.is-critical {
  background: rgba(146, 42, 42, 0.1);
  color: var(--warn);
}

.soc2-status.is-muted {
  background: rgba(50, 45, 36, 0.05);
  color: var(--ink-soft);
}

.soc2-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.soc2-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 13px;
}

.soc2-table th,
.soc2-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.soc2-table th {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.soc2-table tr:last-child td {
  border-bottom: 0;
}

.soc2-snippet {
  display: -webkit-box;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.soc2-link {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.mobile-pm-tabs,
.mobile-command-bar,
.mobile-agent-fab {
  display: none;
}

.settings-topbar-copy {
  align-items: end;
}

.settings-topbar-copy h1 {
  margin-bottom: 0;
}

.settings-lede {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
}

.settings-status-stack {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.settings-status-pill,
.settings-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid rgba(35, 71, 60, 0.22);
  border-radius: 4px;
  background: rgba(35, 71, 60, 0.08);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.settings-status-pill.is-muted,
.settings-chip.is-muted {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink-muted);
}

.settings-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  min-width: 0;
}

.settings-local-nav {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 18px 44px rgba(39, 36, 28, 0.06);
}

.settings-local-link {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.settings-local-link:hover,
.settings-local-link.is-active {
  border-color: rgba(35, 71, 60, 0.24);
  background: rgba(35, 71, 60, 0.08);
  color: var(--accent);
}

.settings-content {
  display: grid;
  gap: 34px;
  min-width: 0;
}

.settings-section {
  display: grid;
  gap: 18px;
  min-width: 0;
  scroll-margin-top: 28px;
}

.settings-section + .settings-section {
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.settings-section-head,
.settings-form-head,
.settings-form-actions,
.settings-option {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.settings-section-head h2,
.settings-form-head h3,
.settings-option h3,
.settings-article-reader h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0;
}

.settings-section-head h2 {
  margin-top: 6px;
  font-size: 34px;
}

.settings-account-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-form-head h3,
.settings-option h3,
.settings-article-reader h3 {
  font-size: 24px;
}

.settings-form-head p,
.settings-option p,
.settings-article-reader p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.settings-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.settings-summary-item,
.settings-option,
.settings-form,
.settings-article-reader,
.settings-article-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 18px 42px rgba(32, 34, 28, 0.06);
}

.settings-summary-item {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding: 16px;
}

.settings-summary-item span,
.settings-article-category,
.settings-article-button span {
  margin: 0;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-summary-item strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.settings-form {
  display: grid;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
  padding: 18px;
}

.settings-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.settings-support-form .settings-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.settings-form select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font: inherit;
}

.settings-form .form-field input,
.settings-form .form-field textarea {
  min-width: 0;
  border-radius: 8px;
}

.settings-form-actions {
  align-items: center;
  justify-content: start;
}

.settings-form-actions .auth-feedback {
  margin: 0;
}

.settings-support-desk {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.settings-support-list-panel,
.settings-support-ticket-detail {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.settings-support-ticket-list,
.settings-support-conversation,
.admin-support-ticket-list,
.admin-support-conversation {
  display: grid;
  gap: 10px;
}

.settings-support-ticket-button,
.admin-support-ticket-row {
  display: grid;
  gap: 6px;
  width: 100%;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.88);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.settings-support-ticket-button:hover,
.settings-support-ticket-button.is-active,
.admin-support-ticket-row:hover {
  border-color: var(--line-strong);
  background: var(--accent-soft);
}

.settings-support-ticket-button span,
.settings-support-ticket-button small {
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.4;
}

.settings-support-ticket-button strong {
  overflow-wrap: anywhere;
}

.settings-support-detail-head,
.admin-support-detail-toolbar,
.admin-support-filters {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.settings-support-detail-head h3 {
  margin: 6px 0;
  font-family: var(--serif);
  font-size: 24px;
}

.settings-support-detail-head p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 13px;
}

.settings-support-message,
.admin-support-message {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.settings-support-message.is-superadmin,
.admin-support-message.is-superadmin {
  border-color: rgba(15, 118, 110, 0.24);
  background: var(--positive-soft);
}

.admin-support-message.is-internal {
  border-color: rgba(244, 179, 35, 0.38);
  background: var(--warn-soft);
}

.settings-support-message > div,
.admin-support-message > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.settings-support-message span,
.admin-support-message span {
  color: var(--ink-muted);
  font-size: 11px;
}

.settings-support-message p,
.admin-support-message p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.settings-support-attachments,
.admin-support-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.settings-support-attachment {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-strong);
  color: var(--ink);
  cursor: pointer;
}

.settings-support-reply-form,
.admin-support-message-form,
.admin-support-controls {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.settings-support-reply-form textarea,
.admin-support-message-form textarea {
  min-height: 110px;
}

.admin-support-filters {
  justify-content: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.admin-support-filters .form-field {
  min-width: 180px;
}

.admin-support-ticket-row .admin-row-head {
  width: 100%;
}

.admin-support-ticket-row strong,
.admin-support-ticket-row span {
  display: block;
  margin-top: 4px;
}

.admin-support-controls {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-support-controls .settings-form-actions {
  grid-column: 1 / -1;
}

.admin-support-detail-toolbar {
  align-items: center;
}

.admin-support-audit,
.admin-support-context {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.admin-support-audit summary,
.admin-support-context summary {
  cursor: pointer;
  font-weight: 600;
}

.admin-support-context-grid {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.admin-support-context-grid div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px;
}

.admin-support-context-grid dt {
  color: var(--ink-muted);
  font-weight: 600;
}

.admin-support-context-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .settings-support-desk,
  .admin-support-controls {
    grid-template-columns: 1fr;
  }

  .admin-support-controls .settings-form-actions {
    grid-column: auto;
  }

  .admin-support-filters {
    align-items: stretch;
    flex-direction: column;
  }
}

.settings-report-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
}

.settings-report-sections legend {
  padding: 0 6px;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-report-sections label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.settings-report-sections input {
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.settings-report-section-option {
  align-items: flex-start;
  min-height: 92px;
  padding: 12px;
  border: 1px solid rgba(35, 71, 60, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.settings-report-section-option span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.settings-report-section-option strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.settings-report-section-option small {
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.35;
}

.settings-report-preview {
  min-width: 0;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(35, 71, 60, 0.16);
  border-radius: 8px;
  background: rgba(35, 71, 60, 0.06);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.settings-report-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.settings-report-item {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 18px 42px rgba(32, 34, 28, 0.06);
}

.settings-report-item-main {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.settings-report-item h3 {
  margin: 6px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.settings-report-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.settings-report-meta div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.58);
}

.settings-report-meta dt {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-report-meta dd {
  min-width: 0;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.settings-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-option-grid {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.settings-option {
  align-items: center;
  padding: 16px;
}

.settings-toggle {
  flex: 0 0 auto;
  min-width: 74px;
  min-height: 34px;
  padding: 5px;
  border: 1px solid rgba(35, 71, 60, 0.24);
  border-radius: 999px;
  background: rgba(35, 71, 60, 0.12);
  overflow: hidden;
  cursor: pointer;
}

.settings-toggle span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fffdf8;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateX(26px);
}

.settings-toggle[aria-pressed="false"] {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.settings-toggle[aria-pressed="false"] span {
  transform: none;
  background: var(--ink-muted);
}

.settings-help-toolbar {
  display: grid;
  gap: 12px;
}

.settings-search-field input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font: inherit;
}

.settings-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-category-button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.settings-category-button:hover,
.settings-category-button.is-active {
  border-color: rgba(35, 71, 60, 0.28);
  background: rgba(35, 71, 60, 0.1);
  color: var(--accent);
}

.settings-help-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.88fr) minmax(0, 1.12fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.settings-article-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.settings-article-button {
  display: grid;
  gap: 7px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 14px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.settings-article-button:hover,
.settings-article-button.is-active {
  border-color: rgba(35, 71, 60, 0.3);
  background: rgba(35, 71, 60, 0.08);
}

.settings-article-button strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.settings-article-button small {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.settings-article-reader {
  position: sticky;
  top: 20px;
  min-width: 0;
  max-width: 100%;
  padding: 20px;
}

.settings-article-category {
  color: var(--accent);
}

.settings-step-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 22px;
}

.settings-step-list li {
  color: var(--ink-soft);
  line-height: 1.6;
}

.settings-empty {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.58);
}

.settings-file-drop {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px dashed rgba(35, 71, 60, 0.3);
  border-radius: 8px;
  background: rgba(35, 71, 60, 0.05);
}

.settings-file-drop span {
  min-width: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  overflow-wrap: anywhere;
}

.settings-file-drop input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  color: var(--ink-soft);
  font: inherit;
}

/* PM polish: stronger operational labels, clearer controls, and denser scan targets. */
.workspace-nav-cluster-label,
.project-switcher span,
.section-label,
.metric-label,
.ops-form .form-field span,
.ops-upload-form .form-field span,
.field-capture-surface legend,
.stakeholder-impact-link-form .form-field span,
.stakeholder-surface-toggle legend,
.form-field span,
.form-field-mentions legend,
.form-field-stakeholders legend {
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
}

.ops-form .form-field span,
.ops-upload-form .form-field span,
.stakeholder-impact-link-form .form-field span {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.workspace-nav-link,
.workspace-account-trigger,
.nav-menu-item,
.project-switcher select,
.control-button,
.segmented-control button,
.calendar-range .icon-button,
.research-return-button,
.ops-signal-action,
.ops-readonly-notice,
.collapsible-title,
.collapsible-caption {
  letter-spacing: 0;
}

.workspace-nav-link,
.workspace-account-trigger,
.nav-menu-item,
.project-switcher select,
.control-button {
  font-size: 12px;
  font-weight: 800;
}

.workspace-nav-group,
.nav-dropdown-menu,
.project-switcher select {
  border-color: rgba(35, 71, 60, 0.2);
  background: rgba(255, 253, 248, 0.9);
}

.workspace-nav-link:hover,
.workspace-account-trigger:hover,
.nav-dropdown[open] > .workspace-nav-link,
.nav-dropdown.has-active > .workspace-nav-link,
.nav-menu-item:hover,
.nav-menu-item.is-active {
  border-color: rgba(35, 71, 60, 0.26);
  background: rgba(35, 71, 60, 0.09);
}

.pm-nav-badge {
  min-height: 20px;
  padding: 4px 7px;
  border-color: rgba(35, 71, 60, 0.18);
  background: rgba(35, 71, 60, 0.07);
  color: var(--accent-ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.section-caption,
.ops-item-meta,
.ops-kanban-summary span,
.ops-budget-amounts,
.ops-budget-amounts small,
.ops-subhead,
.calendar-day-head span,
.calendar-event span,
.calendar-more,
.calendar-empty-slot,
.ops-signal-label,
.ops-baseline-column-label,
.ops-baseline-meta,
.ops-team-role,
.stakeholder-fact span,
.stakeholder-tracker-table th,
.metric-pill {
  letter-spacing: 0;
}

.section-caption,
.ops-item-meta,
.calendar-day-head span,
.calendar-event span,
.calendar-more,
.calendar-empty-slot,
.ops-signal-label,
.ops-baseline-column-label,
.ops-baseline-meta,
.ops-team-role,
.stakeholder-fact span {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.metric-pill {
  padding: 7px 10px;
  border-color: rgba(35, 71, 60, 0.18);
  background: rgba(35, 71, 60, 0.11);
  font-size: 12px;
  font-weight: 800;
}

.ops-card,
.ops-command-center,
.ops-baseline-panel,
.ops-team-strip,
.calendar-planner,
.stakeholder-tracker-table-wrap {
  border-color: rgba(35, 71, 60, 0.2);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(248, 245, 239, 0.82));
  box-shadow: 0 14px 32px rgba(38, 33, 24, 0.07);
}

.ops-card-head {
  margin: -14px -14px 14px;
  padding: 14px;
  border-bottom-color: rgba(35, 71, 60, 0.16);
  border-radius: 7px 7px 0 0;
  background: rgba(35, 71, 60, 0.045);
}

.ops-card h3,
.ops-baseline-head h3 {
  color: var(--ink);
  font-size: 24px;
  letter-spacing: 0;
}

.ops-list-item,
.ops-episode-card,
.ops-recent-signal-row,
.ops-source-health-row,
.ops-baseline-item {
  border-color: rgba(35, 71, 60, 0.16);
  background: rgba(255, 253, 248, 0.82);
}

.ops-list-item:hover,
.ops-episode-card:hover,
.ops-recent-signal-row:hover,
.ops-source-health-row:hover,
.ops-baseline-item:hover {
  border-color: rgba(35, 71, 60, 0.28);
  background: rgba(255, 253, 248, 0.96);
}

.ops-list-item h4,
.ops-signal-card h4,
.ops-episode-card h4,
.ops-recent-signal-row h4,
.ops-source-health-row h4 {
  color: var(--ink);
  font-size: 15px;
}

.ops-list-item p,
.ops-empty,
.ops-signal-card p:not(.ops-signal-label),
.ops-episode-card p:not(.ops-signal-label),
.ops-recent-signal-row p:not(.ops-signal-label),
.ops-source-health-row p {
  color: var(--ink-soft);
}

.ops-item-actions {
  gap: 8px;
}

.ops-status-button {
  width: auto;
  min-width: 48px;
  height: 34px;
  padding: 0 10px;
  border-color: rgba(35, 71, 60, 0.2);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.ops-status-button:hover:not(:disabled) {
  border-color: rgba(35, 71, 60, 0.42);
  background: rgba(35, 71, 60, 0.09);
}

.ops-status-button.is-active {
  border-color: rgba(35, 71, 60, 0.58);
  background: rgba(35, 71, 60, 0.16);
  color: var(--accent);
}

.ops-kanban-summary span {
  border-color: rgba(35, 71, 60, 0.16);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
}

.ops-budget-amounts {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.35;
}

.ops-budget-amounts small {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
}

.ops-form,
.ops-upload-form {
  padding: 14px;
  border-color: rgba(35, 71, 60, 0.2);
  background: rgba(255, 253, 248, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.ops-form input,
.ops-form select,
.ops-form textarea,
.ops-upload-form input,
.ops-upload-form select,
.stakeholder-impact-link-form select,
.form-field input,
.form-field select,
.form-field textarea {
  min-height: 44px;
  border-color: rgba(35, 71, 60, 0.24);
  background: rgba(255, 253, 248, 0.96);
  color: var(--ink);
  font-size: 14px;
}

.ops-form input[type="checkbox"],
.ops-upload-form input[type="checkbox"] {
  width: auto;
  min-height: auto;
  accent-color: var(--accent);
}

.ops-form input:focus,
.ops-form select:focus,
.ops-form textarea:focus,
.ops-upload-form input:focus,
.ops-upload-form select:focus,
.stakeholder-impact-link-form select:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(35, 71, 60, 0.52);
  box-shadow: 0 0 0 3px rgba(35, 71, 60, 0.1);
  outline: none;
}

.form-mention-label,
.field-capture-surface-option,
.stakeholder-surface-toggle label,
.ops-user-chip,
.ops-team-member {
  border-color: rgba(35, 71, 60, 0.18);
  background: rgba(255, 253, 248, 0.82);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.calendar-day {
  background: rgba(255, 253, 248, 0.86);
}

.calendar-day.is-muted {
  background: rgba(248, 245, 239, 0.68);
}

.calendar-event {
  padding: 8px;
  border-color: rgba(35, 71, 60, 0.22);
  background: rgba(35, 71, 60, 0.1);
}

.calendar-event strong {
  color: var(--accent);
  font-size: 13px;
}

.stakeholder-tracker-table {
  font-size: 13px;
}

.stakeholder-tracker-table th {
  background: #edf3ed;
  color: var(--accent-ink);
  font-size: 11px;
  letter-spacing: 0;
}

.stakeholder-tracker-table td {
  color: var(--ink-soft);
}

@media (max-width: 1180px) {
  .settings-summary-grid,
  .settings-form-grid,
  .settings-support-form .settings-form-grid,
  .settings-report-grid,
  .settings-report-sections,
  .settings-report-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .settings-help-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .settings-article-reader {
    position: static;
  }
}

@media (max-width: 980px) {
  .settings-topbar-copy,
  .settings-section-head,
  .settings-form-head,
  .settings-form-actions,
  .settings-option,
  .settings-report-item-main {
    align-items: start;
    flex-direction: column;
  }

  .settings-status-stack {
    justify-items: start;
  }

  .settings-layout {
    grid-template-columns: 1fr;
  }

  .settings-local-nav {
    display: none;
  }

  .settings-section-head h2 {
    font-size: 28px;
  }

  .settings-category-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .settings-category-button {
    flex: 0 0 auto;
  }
}

.changelog-topbar-copy {
  align-items: end;
}

.changelog-lede {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
}

.changelog-layout {
  display: grid;
  grid-template-columns: 326px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.changelog-index-card {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 40px);
  padding: 16px;
  overflow: auto;
}

.changelog-index-head {
  margin-bottom: 0;
  cursor: default;
}

.changelog-tab-list {
  display: grid;
  gap: 8px;
}

.changelog-tab {
  width: 100%;
  min-height: 104px;
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.changelog-tab:hover,
.changelog-tab.is-active {
  border-color: rgba(35, 71, 60, 0.42);
  background: rgba(236, 245, 240, 0.9);
  transform: translateY(-1px);
}

.changelog-tab:focus-visible {
  outline-offset: 3px;
}

.changelog-tab-date,
.changelog-tab strong {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.changelog-tab-date {
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 600;
}

.changelog-tab strong {
  color: var(--accent);
  font-size: 11px;
}

.changelog-tab span:last-child {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.changelog-detail-card {
  min-height: 680px;
  padding: 24px;
}

.changelog-detail-header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.changelog-detail-header h2 {
  margin: 8px 0 0;
  max-width: 860px;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 400;
  line-height: 1;
}

.changelog-detail-summary {
  max-width: 820px;
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
}

.changelog-focus-block,
.changelog-next-block,
.changelog-source-block {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.changelog-source-block {
  border-bottom: 0;
  padding-bottom: 0;
}

.changelog-focus-block p:last-child,
.changelog-next-block p:last-child {
  max-width: 860px;
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

.changelog-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.changelog-bullet-list {
  display: grid;
  gap: 12px;
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

.changelog-bullet-list li::marker {
  color: var(--accent);
}

.changelog-commit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.changelog-commit-chip,
.changelog-commit-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.changelog-commit-chip code {
  color: var(--accent);
  font: inherit;
}

.admin-checkbox-row,
.admin-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 13px;
}

.admin-user-row,
.admin-membership-row {
  min-height: auto;
}

@media (max-width: 1300px) {
  .workspace {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .panel-rail {
    grid-column: 1 / -1;
    min-height: auto;
  }

  .readiness-grid,
  .signal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1120px) {
  .impact-layout,
  .network-layout,
  .agent-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .impact-side-card,
  .network-insight-card,
  .agent-side-card {
    position: static;
  }
}

@media (max-width: 980px) {
  .home-nav {
    position: static;
    align-items: start;
    flex-direction: column;
    padding: 16px;
  }

  .home-nav-actions {
    width: 100%;
  }

  .home-hero {
    min-height: 760px;
    padding: 54px 16px 68px;
    align-items: start;
  }

  .home-hero::after {
    background: linear-gradient(180deg, rgba(246, 241, 232, 0.98) 0%, rgba(246, 241, 232, 0.86) 58%, rgba(246, 241, 232, 0.22) 100%);
  }

  .home-hero-visual {
    object-position: 62% center;
  }

  .home-section {
    padding: 64px 16px;
  }

  .home-section-grid,
  .home-card-grid,
  .admin-console,
  .admin-grid,
  .admin-user-grid,
  .admin-user-lists,
  .admin-user-filters,
  .admin-form-grid,
  .soc2-two-column {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    max-height: none;
  }

  .admin-detail-panel {
    min-height: auto;
  }

  .admin-live-hero {
    flex-direction: column;
  }

  .admin-user-callout {
    flex-direction: column;
  }

  .soc2-form {
    position: static;
  }

  .home-section-grid,
  .home-section-head,
  .home-card-grid,
  .home-access-band,
  .home-final-cta,
  .admin-shell {
    width: calc(100vw - 32px);
  }

  .home-access-band,
  .admin-band {
    align-items: start;
    flex-direction: column;
  }

  .home-spectrum {
    grid-template-columns: 1fr;
  }

  .home-spectrum span + span {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .page-shell {
    padding: 20px 16px 28px;
  }

  .page-shell.with-side-nav {
    display: block;
  }

  .page-shell.with-side-nav > .topbar {
    display: grid;
  }

  .page-shell.with-side-nav > .topbar > .workspace-nav,
  .page-shell.with-side-nav > .topbar > .topbar-copy,
  .page-shell.with-side-nav > .topbar > .pitch-hero,
  .page-shell.with-side-nav > main,
  .page-shell.with-side-nav > .practice-workspace {
    grid-column: auto;
    grid-row: auto;
  }

  .topbar {
    gap: 14px;
  }

  .with-side-nav .workspace-nav {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 12px;
  }

  .workspace-nav {
    align-items: stretch;
    flex-direction: column;
    padding: 12px 0;
  }

  .workspace-nav-main {
    width: 100%;
    align-items: stretch;
    justify-content: start;
    flex-direction: column;
  }

  .workspace-nav-group {
    width: 100%;
    justify-content: start;
    flex-wrap: wrap;
  }

  .with-side-nav .workspace-nav-group {
    display: grid;
  }

  .workspace-nav-group-manage {
    display: block;
  }

  .project-switcher {
    width: 100%;
  }

  .workspace-account {
    width: 100%;
  }

  .workspace-account-trigger {
    width: 100%;
    justify-content: space-between;
  }

  .workspace-account-trigger span:last-child {
    max-width: none;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 8px;
  }

  .topbar-copy {
    align-items: start;
    flex-direction: column;
  }

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

  .workspace[data-mode="research"][data-research-columns="evidence"],
  .workspace[data-mode="pm"] {
    grid-template-columns: 1fr;
  }

  .ops-grid,
  .ops-kanban-summary,
  .ops-command-grid,
  .ops-form,
  .ops-upload-form {
    grid-template-columns: 1fr;
  }

  .ops-form-calendar .calendar-title-field,
  .ops-form-calendar .calendar-type-field,
  .ops-form-calendar .calendar-start-field,
  .ops-form-calendar .calendar-location-field,
  .ops-form-calendar .calendar-owner-field,
  .ops-form-calendar .calendar-stakeholders-field,
  .ops-form-calendar .calendar-add-button {
    grid-column: 1 / -1;
  }

  .ops-form-workplan .workplan-task-field,
  .ops-form-workplan .workplan-assignee-field,
  .ops-form-workplan .workplan-due-field,
  .ops-form-workplan .workplan-priority-field,
  .ops-form-workplan .workplan-stakeholder-field,
  .ops-form-workplan .workplan-notify-field,
  .ops-form-workplan .workplan-add-button,
  .ops-form-meeting .meeting-title-field,
  .ops-form-meeting .meeting-type-field,
  .ops-form-meeting .meeting-start-field,
  .ops-form-meeting .meeting-url-field,
  .ops-form-meeting .meeting-owner-field,
  .ops-form-meeting .meeting-stakeholder-field,
  .ops-form-meeting .meeting-add-button,
  .ops-form-documents .document-title-field,
  .ops-form-documents .document-visibility-field,
  .ops-form-documents .document-stakeholder-field,
  .ops-form-documents .document-file-field,
  .ops-form-documents .document-upload-button,
  .ops-form-budget-settings .budget-total-field,
  .ops-form-budget-settings .budget-cost-field,
  .ops-form-budget-settings .budget-start-field,
  .ops-form-budget-settings .budget-end-field,
  .ops-form-budget-settings .budget-save-button,
  .ops-form-budget-line .budget-category-field,
  .ops-form-budget-line .budget-planned-field,
  .ops-form-budget-line .budget-committed-field,
  .ops-form-budget-line .budget-spent-field,
  .ops-form-budget-line .budget-status-field,
  .ops-form-budget-line .budget-date-field,
  .ops-form-budget-line .budget-owner-field,
  .ops-form-budget-line .budget-add-button {
    grid-column: 1 / -1;
  }

  .ops-command-head,
  .ops-team-strip,
  .ops-signal-card,
  .ops-recent-signal-row {
    grid-template-columns: 1fr;
  }

  .ops-team-strip,
  .ops-command-head {
    display: grid;
  }

  .ops-team-avatars,
  .ops-command-metrics,
  .ops-signal-route-actions {
    justify-content: flex-start;
  }

  .calendar-toolbar {
    grid-template-columns: 1fr;
  }

  .calendar-range {
    justify-content: space-between;
  }

  .calendar-range h4 {
    min-width: 0;
    font-size: 18px;
  }

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

  .calendar-day,
  .calendar-grid[data-calendar-view="week"] .calendar-day {
    min-height: auto;
    border-right: 0;
  }

  .calendar-day:nth-last-child(-n + 7) {
    border-bottom: 1px solid var(--line);
  }

  .ops-card-wide {
    grid-column: auto;
  }

  .impact-card-header,
  .impact-score-panel {
    grid-template-columns: 1fr;
  }

  .impact-project-summary-head,
  .impact-project-summary-actions {
    flex-direction: column;
  }

  .impact-project-summary-grid {
    grid-template-columns: 1fr;
  }

  .impact-card-header {
    flex-direction: column;
  }

  .impact-score-badge {
    width: 100%;
    text-align: left;
  }

  .impact-metric-grid {
    grid-template-columns: 1fr;
  }

  .impact-evidence-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .impact-evidence-item strong {
    grid-column: 2;
  }

  .network-map-head {
    flex-direction: column;
  }

  .agent-chat-head,
  .agent-composer {
    grid-template-columns: 1fr;
  }

  .agent-chat-head {
    flex-direction: column;
  }

  .agent-mode-control {
    width: 100%;
  }

  .agent-composer button {
    width: 100%;
  }

  .network-legend {
    width: 100%;
    min-width: 0;
  }

  .network-canvas {
    min-height: 0;
  }

  .network-bar-chart {
    padding: 12px;
  }

  .trust-bar-header {
    display: none;
  }

  .trust-bar-row {
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 8px 12px;
  }

  .trust-bar-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .trust-bar-value {
    grid-column: 2;
    grid-row: 1;
  }

  .trust-bar-links {
    grid-column: 1 / -1;
    grid-row: 3;
    text-align: left;
  }

  .network-reset {
    margin-left: 0;
  }

  .network-schema-list {
    grid-template-columns: 1fr;
  }

  .pitch-method-band,
  .pitch-close-band,
  .pitch-card-preview {
    grid-template-columns: 1fr;
  }

  .pitch-step-head {
    flex-direction: column;
  }

  .pitch-step-head .control-button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .pitch-principle-grid {
    grid-template-columns: 1fr;
  }

  .pitch-network-preview {
    min-height: 280px;
  }

  .pitch-dot {
    transform: scale(0.78);
  }

  .pitch-network-line.one { width: 180px; }
  .pitch-network-line.two { width: 170px; }
  .pitch-network-line.three { width: 150px; }

  .panel {
    min-height: auto;
  }

  .report-banner {
    flex-direction: column;
    align-items: start;
  }

  .report-meta {
    justify-content: start;
  }

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

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

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

  .launcher-progress-head,
  .launcher-progress-stats {
    align-items: stretch;
    flex-direction: column;
  }

  .launcher-timer {
    width: 100%;
  }

  .workflow-toast {
    right: 16px;
    bottom: 16px;
    width: calc(100vw - 32px);
  }

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

  .status-milestone-grid {
    grid-template-columns: 1fr;
  }

  .status-outline-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .page-shell.with-side-nav,
  .practice-shell {
    padding-bottom: 104px;
  }

  .with-side-nav .workspace-nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
  }

  .with-side-nav .workspace-nav-main,
  .nav-collapse-btn {
    display: none;
  }

  .workspace-brand {
    display: grid;
    gap: 2px;
    flex: 0 0 auto;
    min-width: max-content;
  }

  .workspace-brand-mark {
    display: block;
    line-height: 1.15;
  }

  .workspace-brand-sub {
    display: none;
  }

  .with-side-nav .workspace-nav > .control-button {
    width: auto;
    min-height: 38px;
    padding-inline: 12px;
    white-space: nowrap;
  }

  .workspace-account {
    width: 38px;
    min-width: 0;
    flex: 0 0 auto;
  }

  .workspace-account-trigger {
    width: 38px;
    min-height: 38px;
    max-width: 38px;
    justify-content: center;
    padding-inline: 0;
  }

  .workspace-account-trigger span {
    display: none;
  }

  .mobile-pm-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scrollbar-width: none;
  }

  .mobile-pm-tabs::-webkit-scrollbar {
    display: none;
  }

  .mobile-pm-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    flex: 0 0 auto;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.64);
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: uppercase;
  }

  .mobile-pm-tab.is-active {
    border-color: rgba(35, 71, 60, 0.34);
    background: rgba(35, 71, 60, 0.1);
    color: var(--accent);
  }

  .mobile-command-bar {
    position: fixed;
    z-index: 80;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(35, 71, 60, 0.22);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.96);
    box-shadow: 0 18px 38px rgba(38, 33, 24, 0.18);
    backdrop-filter: blur(16px);
  }

  .mobile-command-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 42px;
    padding: 8px 4px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
  }

  .mobile-command-link.is-active {
    border-color: rgba(35, 71, 60, 0.28);
    background: rgba(35, 71, 60, 0.1);
    color: var(--accent);
  }

  .mobile-pm-tab .pm-nav-badge,
  .mobile-command-link .pm-nav-badge {
    display: none;
  }

  .mobile-command-primary {
    background: var(--ink);
    color: #fffdf8;
  }

  .mobile-agent-fab {
    position: fixed;
    z-index: 80;
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    min-height: 46px;
    padding: 12px 16px;
    border: 1px solid rgba(35, 71, 60, 0.22);
    border-radius: 8px;
    background: var(--ink);
    color: #fffdf8;
    box-shadow: 0 18px 38px rgba(38, 33, 24, 0.2);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: uppercase;
  }

  .workspace[data-mode="pm"] .ops-panel {
    gap: 8px;
    margin-bottom: 10px;
  }

  .workspace[data-mode="pm"] .ops-panel-head,
  .workspace[data-mode="pm"] .ops-readonly-notice,
  .workspace[data-mode="pm"] .ops-profile-card,
  .workspace[data-mode="pm"] .ops-intel-card,
  .workspace[data-mode="pm"] .ops-baseline-panel,
  .workspace[data-mode="pm"] .ops-team-strip,
  .workspace[data-mode="pm"] .ops-form,
  .workspace[data-mode="pm"] .ops-upload-form {
    display: none;
  }

  .workspace[data-mode="pm"] .ops-grid[data-active-tool=""] .ops-intel-card {
    display: block;
  }

  .workspace[data-mode="pm"] .ops-grid[data-active-tool=""] .ops-intel-card .ops-form {
    display: grid;
  }

  .workspace[data-mode="pm"] .ops-grid[data-active-tool="calendar"] #project-calendar .ops-form,
  .workspace[data-mode="pm"] .ops-grid[data-active-tool="crm"] .stakeholder-tracker-card .ops-form,
  .workspace[data-mode="pm"] .ops-grid[data-active-tool="crm"] .stakeholder-tracker-card .ops-upload-form {
    display: grid;
  }

  .workspace[data-mode="pm"] .ops-command-head > div:first-child {
    display: none;
  }

  .workspace[data-mode="pm"] .ops-command-head {
    display: block;
  }

  .workspace[data-mode="pm"] .ops-command-metrics {
    display: none;
  }

  .workspace[data-mode="pm"] .ops-grid[data-active-tool=""] [data-ops-tool] {
    display: none;
  }

  .workspace[data-mode="pm"] .panel-main,
  .panel-main {
    padding: 14px;
  }

  .ops-command-center,
  .ops-baseline-panel,
  .ops-card,
  .ops-team-strip {
    border-radius: 8px;
  }

  .ops-command-grid {
    gap: 8px;
  }

  .workspace[data-mode="pm"] .ops-signal-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 0;
    padding: 10px 12px;
    gap: 8px;
  }

  .workspace[data-mode="pm"] .ops-signal-label {
    margin-bottom: 4px;
  }

  .workspace[data-mode="pm"] .ops-signal-card h4 {
    font-size: 13px;
    line-height: 1.2;
  }

  .workspace[data-mode="pm"] .ops-signal-card p:not(.ops-signal-label) {
    display: none;
  }

  .ops-card h3,
  .ops-baseline-head h3 {
    font-size: 21px;
    line-height: 1.12;
  }

  .ops-list-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .ops-file-actions {
    justify-self: start;
  }

  .ops-file-info-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ops-item-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-self: start;
    width: 260px !important;
    max-width: 100%;
    justify-content: stretch;
  }

  .ops-status-button {
    width: 100%;
    min-width: 0;
    padding: 0 6px;
  }

  .report-center-form {
    grid-template-columns: 1fr;
  }

  .report-center-controls {
    grid-template-columns: 1fr;
  }

  .agent-chat-card {
    min-height: calc(100dvh - 190px);
    grid-template-rows: auto auto minmax(260px, 1fr) auto;
    padding: 14px;
  }

  .agent-thread {
    max-height: calc(100dvh - 330px);
  }

  .agent-composer {
    position: sticky;
    bottom: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.96);
    box-shadow: 0 12px 28px rgba(38, 33, 24, 0.12);
  }

  .agent-composer textarea {
    min-height: 72px;
  }

  .agent-side-card {
    min-height: auto;
  }

  .changelog-topbar-copy {
    align-items: stretch;
  }

  .changelog-layout {
    grid-template-columns: 1fr;
  }

  .changelog-index-card {
    position: static;
    max-height: none;
    padding: 12px;
  }

  .changelog-tab-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .changelog-tab-list::-webkit-scrollbar {
    display: none;
  }

  .changelog-tab {
    flex: 0 0 min(270px, 78vw);
    min-height: 126px;
  }

  .changelog-detail-card {
    min-height: auto;
    padding: 18px;
  }

  .changelog-detail-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* UI/UX review refinements */
.ops-add-details,
.stakeholder-danger-area {
  margin: 12px 0;
}

.ops-add-details > summary,
.stakeholder-danger-area > summary {
  width: fit-content;
  list-style: none;
  cursor: pointer;
}

.ops-add-details > summary::-webkit-details-marker,
.stakeholder-danger-area > summary::-webkit-details-marker {
  display: none;
}

.stakeholder-danger-area {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.stakeholder-danger-area > summary {
  color: var(--warn);
  font-weight: 700;
}

.ops-card-intro {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.stakeholder-tracker-table td.is-empty {
  color: var(--ink-muted);
  font-style: italic;
  opacity: 0.72;
}

.stakeholder-detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stakeholder-delete-button {
  border-color: color-mix(in srgb, var(--warn) 48%, var(--line));
  color: var(--warn);
}

.stakeholder-delete-button:hover:not(:disabled) {
  border-color: var(--warn);
  background: color-mix(in srgb, var(--warn) 9%, white);
}

.ops-form input[type="file"],
.ops-upload-form input[type="file"] {
  min-height: 42px;
  padding: 8px;
  border-style: dashed;
  background: rgba(255, 253, 248, 0.9);
  color: var(--ink-soft);
}

.ops-form input[type="file"]::file-selector-button,
.ops-upload-form input[type="file"]::file-selector-button {
  margin-right: 10px;
  border: 1px solid rgba(35, 71, 60, 0.28);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(35, 71, 60, 0.92);
  color: #f6f2e8;
  font: 700 12px/1 var(--sans);
  cursor: pointer;
}

.report-article {
  max-width: 78ch;
}

.agent-message-body h3,
.agent-message-body h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
}

.agent-message-body h3 {
  font-size: 24px;
}

.agent-message-body h4 {
  margin-top: 10px;
  font-size: 18px;
}

.agent-message-body p,
.agent-message-body ul,
.agent-message-body ol {
  margin: 0;
}

.agent-message-body p + p,
.agent-message-body p + ul,
.agent-message-body p + ol,
.agent-message-body ul + p,
.agent-message-body ol + p {
  margin-top: 10px;
}

.agent-message-body ul,
.agent-message-body ol {
  padding-left: 20px;
}

.agent-message-body li + li {
  margin-top: 6px;
}

.agent-message-body a {
  color: var(--accent);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.agent-citation-chip {
  display: inline-flex;
  align-items: center;
  margin: 0 2px;
  padding: 1px 5px;
  border: 1px solid rgba(35, 71, 60, 0.22);
  border-radius: 999px;
  background: rgba(35, 71, 60, 0.08);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.82em;
  font-weight: 700;
}

.agent-progress {
  display: grid;
  gap: 10px;
}

.agent-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.agent-progress-head strong {
  color: var(--ink);
  font-size: 13px;
}

.agent-progress-head span {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 10px;
}

.agent-progress-steps {
  display: grid;
  gap: 7px;
}

.agent-progress-steps span {
  position: relative;
  padding-left: 18px;
  color: var(--ink-muted);
  font-size: 12px;
}

.agent-progress-steps span::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 8px;
  height: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.agent-progress-steps span.is-active {
  color: var(--accent);
  font-weight: 700;
}

.agent-progress-steps span.is-active::before,
.agent-progress-steps span.is-complete::before {
  border-color: rgba(35, 71, 60, 0.58);
  background: rgba(35, 71, 60, 0.86);
}

/* Pulse survey admin and public respondent surfaces */
.pulse-admin-shell {
  max-width: 1740px;
}

.pulse-admin {
  display: grid;
  gap: 18px;
}

.pulse-admin-toolbar,
.pulse-admin-toolbar-actions,
.pulse-link-actions,
.pulse-question-add,
.pulse-public-actions,
.pulse-swipe-actions,
.pulse-response-actions,
.pulse-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse-admin-toolbar {
  justify-content: space-between;
}

.pulse-admin-toolbar h1 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2vw, 2.4rem);
  font-weight: 500;
  letter-spacing: 0;
}

.pulse-admin-toolbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pulse-admin-toolbar-actions .form-field {
  min-width: 240px;
}

.pulse-admin-layout {
  display: grid;
  grid-template-columns: 280px minmax(420px, 1fr) 380px;
  gap: 18px;
  align-items: start;
}

.pulse-admin-list-panel,
.pulse-builder-panel,
.pulse-admin-side-panel {
  min-width: 0;
}

.pulse-survey-list,
.pulse-response-list,
.pulse-action-stack,
.pulse-question-list,
.pulse-demographic-list {
  display: grid;
  gap: 10px;
}

.pulse-survey-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.pulse-survey-row.is-active {
  border-color: rgba(35, 71, 60, 0.48);
  background: rgba(216, 229, 223, 0.72);
}

.pulse-survey-row strong,
.pulse-response-row strong,
.pulse-question-metrics strong {
  display: block;
  font-size: 0.92rem;
}

.pulse-survey-row small,
.pulse-response-row span,
.pulse-question-metrics span {
  display: block;
  margin-top: 3px;
  color: var(--ink-muted);
  font-size: 0.78rem;
}

.pulse-response-detail {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.pulse-response-detail summary {
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
}

.pulse-response-detail h4 {
  margin: 12px 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pulse-response-detail ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pulse-response-detail li {
  display: grid;
  grid-template-columns: minmax(100px, 0.45fr) minmax(0, 1fr);
  gap: 10px;
  font-size: 12px;
}

.pulse-builder-form,
.pulse-builder-section,
.pulse-admin-side-panel,
.pulse-public-form {
  display: grid;
  gap: 16px;
}

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

.pulse-form-grid .form-field-wide,
.pulse-builder-form .form-field-wide {
  grid-column: 1 / -1;
}

.pulse-demographic-row,
.pulse-question-card,
.pulse-response-row,
.pulse-question-metrics article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.pulse-question-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.pulse-question-head select,
.pulse-question-add select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
}

.pulse-public-link {
  display: grid;
  gap: 10px;
}

.pulse-qr {
  width: 180px;
  height: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.pulse-side-section {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

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

.pulse-response-row {
  display: grid;
  gap: 10px;
}

.pulse-response-row p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.45;
}

.pulse-public-body {
  min-height: 100svh;
  background: #f6f8f5;
}

.pulse-public-shell {
  width: min(100%, 560px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 12px;
}

.pulse-public-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.pulse-public-topbar h1 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 7vw, 2.35rem);
  font-weight: 520;
  line-height: 1.04;
  letter-spacing: 0;
}

.pulse-language-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-strong);
  padding: 3px;
  flex: 0 0 auto;
}

.pulse-language-toggle button {
  min-width: 42px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-muted);
  font: 600 0.82rem var(--sans);
  cursor: pointer;
}

.pulse-language-toggle button.is-active {
  background: var(--accent);
  color: #fff;
}

.pulse-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(35, 71, 60, 0.14);
  overflow: hidden;
}

.pulse-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--positive);
  transition: width 180ms ease;
}

.pulse-progress-copy {
  min-height: 18px;
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.84rem;
}

.pulse-public-stage {
  display: grid;
  align-items: center;
}

.pulse-mobile-card,
.pulse-swipe-card {
  width: 100%;
  border: 1px solid rgba(20, 24, 26, 0.12);
  border-radius: 16px;
  background: #fffdf8;
  box-shadow: 0 18px 52px rgba(20, 24, 26, 0.12);
}

.pulse-mobile-card {
  padding: clamp(20px, 6vw, 32px);
}

.pulse-mobile-card h2,
.pulse-swipe-card p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 8vw, 2.7rem);
  font-weight: 540;
  line-height: 1.08;
  letter-spacing: 0;
}

.pulse-public-copy {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
}

.pulse-public-field {
  display: grid;
  gap: 7px;
}

.pulse-public-field span {
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 650;
  text-transform: uppercase;
}

.pulse-public-field input,
.pulse-public-field select,
.pulse-public-field textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 12px;
  font: inherit;
}

.pulse-public-field textarea {
  min-height: 150px;
  resize: vertical;
}

.pulse-primary-action,
.pulse-secondary-action,
.pulse-skip-button,
.pulse-choice-button,
.pulse-rating-list button,
.pulse-swipe-button {
  min-height: 52px;
  border-radius: 999px;
  font: 700 0.95rem var(--sans);
  cursor: pointer;
}

.pulse-primary-action {
  width: 100%;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
}

.pulse-secondary-action,
.pulse-skip-button {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  padding: 0 18px;
}

.pulse-public-actions {
  justify-content: space-between;
}

.pulse-public-actions .pulse-primary-action {
  width: auto;
  min-width: 150px;
  padding: 0 22px;
}

.pulse-swipe-wrap {
  display: grid;
  gap: 18px;
}

.pulse-swipe-card {
  min-height: min(56svh, 460px);
  padding: clamp(24px, 8vw, 40px);
  display: grid;
  place-items: center;
  text-align: center;
  touch-action: none;
  user-select: none;
  will-change: transform;
}

.pulse-swipe-actions {
  justify-content: center;
}

.pulse-swipe-button {
  width: 112px;
  border: 1px solid transparent;
  color: #fff;
}

.pulse-swipe-left {
  background: #a23d3d;
}

.pulse-swipe-right {
  background: #19795a;
}

.pulse-choice-list,
.pulse-rating-list {
  display: grid;
  gap: 10px;
}

.pulse-choice-button {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  text-align: left;
  padding: 0 18px;
}

.pulse-rating-list {
  grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
}

.pulse-rating-list button {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
}

.pulse-rating-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 18px;
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.pulse-recorder {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--positive);
  font-weight: 650;
}

.pulse-complete-card {
  text-align: center;
}

@media (max-width: 1180px) {
  .pulse-admin-layout {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  }

  .pulse-admin-side-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .pulse-admin-toolbar,
  .pulse-admin-toolbar-actions,
  .pulse-admin-layout,
  .pulse-form-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pulse-admin-toolbar-actions {
    justify-content: stretch;
  }

  .pulse-admin-toolbar-actions .form-field,
  .pulse-admin-toolbar-actions .control-button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .pulse-public-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .pulse-public-topbar {
    align-items: center;
  }

  .pulse-mobile-card {
    border-radius: 14px;
  }

  .pulse-swipe-actions {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }

  .pulse-swipe-button {
    width: 100%;
    min-width: 0;
  }
}

/* Guided Pulse builder overrides */
.pulse-admin-shell {
  max-width: 1480px;
}

.pulse-admin {
  gap: 14px;
}

.pulse-admin-toolbar.panel,
.pulse-wizard-panel.panel,
.pulse-admin-list-panel.panel,
.pulse-builder-panel.panel,
.pulse-admin-side-panel.panel,
.pulse-wizard-controls.panel {
  min-height: 0;
  border-radius: 12px;
}

.pulse-admin-toolbar {
  align-items: end;
  padding: 18px 20px;
}

.pulse-admin-toolbar h1 {
  font-size: clamp(1.45rem, 1.8vw, 2rem);
  line-height: 1.08;
}

.pulse-admin-toolbar-actions .form-field {
  min-width: min(360px, 42vw);
}

.pulse-wizard-panel {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.pulse-step-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-muted);
  font: 700 0.74rem var(--mono);
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.pulse-step-tab span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-muted);
  font-size: 0.72rem;
}

.pulse-step-tab strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pulse-step-tab.is-active,
.pulse-step-tab:hover {
  border-color: rgba(35, 71, 60, 0.24);
  background: rgba(35, 71, 60, 0.08);
  color: var(--accent);
}

.pulse-step-tab.is-complete span {
  border-color: rgba(35, 71, 60, 0.48);
  background: var(--accent);
  color: #fff;
}

.pulse-admin-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.pulse-admin-list-panel {
  position: sticky;
  top: 14px;
  max-height: calc(100vh - 28px);
  overflow: auto;
  padding: 16px;
}

.pulse-builder-panel,
.pulse-admin-side-panel,
.pulse-wizard-controls {
  grid-column: 2;
  max-width: 980px;
  width: 100%;
}

.pulse-builder-panel,
.pulse-admin-side-panel {
  padding: 22px 22px 96px;
}

.pulse-builder-panel[hidden],
.pulse-admin-side-panel[hidden] {
  display: none;
}

.pulse-builder-form {
  gap: 0;
}

.pulse-step-section {
  display: grid;
  gap: 16px;
}

.pulse-step-section[hidden] {
  display: none;
}

.pulse-step-section .section-head {
  align-items: end;
}

.pulse-step-section h2 {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.2vw, 2.4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0;
}

.pulse-builder-section,
.pulse-admin-side-panel,
.pulse-public-form {
  gap: 14px;
}

.pulse-form-grid {
  gap: 10px 12px;
}

.pulse-demographic-row,
.pulse-question-card,
.pulse-response-row,
.pulse-question-metrics article {
  padding: 14px;
  border-radius: 8px;
}

.pulse-demographic-row:not(.is-enabled) {
  background: rgba(255, 255, 255, 0.34);
}

.pulse-demographic-row:not(.is-enabled) .pulse-form-grid {
  display: none;
}

.pulse-demographic-row .pulse-checkbox-row {
  justify-content: flex-start;
  min-height: 28px;
}

.pulse-demographic-row .pulse-checkbox-row span {
  font-size: 1rem;
  font-weight: 700;
}

.pulse-builder-form textarea {
  min-height: 82px;
}

.pulse-demographic-row textarea,
.pulse-question-card textarea {
  min-height: 68px;
}

.pulse-question-head {
  align-items: stretch;
}

.pulse-question-head select {
  width: min(260px, 100%);
}

.pulse-question-add {
  justify-content: flex-start;
  padding-top: 4px;
}

.pulse-admin-side-panel .pulse-action-stack {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.pulse-admin-side-panel .pulse-action-stack .control-button-primary {
  grid-column: auto;
}

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

.pulse-admin-side-panel .pulse-public-link {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.pulse-admin-side-panel .pulse-public-link .form-field,
.pulse-admin-side-panel .pulse-link-actions {
  grid-column: 1;
}

.pulse-admin-side-panel .pulse-qr {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 150px;
  height: 150px;
}

.pulse-review-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 14px;
}

.pulse-review-grid .pulse-side-section {
  align-content: start;
  min-height: 0;
  padding-top: 12px;
}

.pulse-admin-side-panel .pulse-response-list {
  max-height: 190px;
  overflow: auto;
  padding-right: 4px;
}

.pulse-admin-side-panel .pulse-question-metrics {
  max-height: 118px;
  overflow: auto;
  padding-right: 4px;
}

.pulse-wizard-controls {
  position: sticky;
  bottom: 14px;
  z-index: 4;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 253, 248, 0.94);
}

.pulse-wizard-controls p {
  margin: 0;
  color: var(--ink-muted);
  font: 700 0.74rem var(--mono);
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.pulse-wizard-controls .control-button {
  min-width: 110px;
}

@media (max-width: 1120px) {
  .pulse-wizard-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pulse-admin-layout {
    grid-template-columns: 1fr;
  }

  .pulse-admin-list-panel,
  .pulse-builder-panel,
  .pulse-admin-side-panel,
  .pulse-wizard-controls {
    grid-column: 1;
    max-width: none;
  }

  .pulse-admin-list-panel {
    position: static;
    max-height: none;
  }

  .pulse-admin-side-panel .pulse-action-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pulse-admin-side-panel .pulse-action-stack .control-button-primary {
    grid-column: 1 / -1;
  }

  .pulse-admin-side-panel .pulse-public-link,
  .pulse-review-grid {
    grid-template-columns: 1fr;
  }

  .pulse-admin-side-panel .pulse-qr {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .pulse-wizard-panel {
    grid-template-columns: 1fr 1fr;
  }

  .pulse-admin-toolbar {
    align-items: stretch;
  }

  .pulse-admin-toolbar-actions .form-field {
    min-width: 0;
  }

  .pulse-step-tab {
    min-height: 42px;
  }

  .pulse-wizard-controls {
    grid-template-columns: 1fr 1fr;
  }

  .pulse-wizard-controls p {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

/* Mobile field capture */
.mobile-capture-body {
  min-height: 100svh;
  background: #f5f0e7;
}

.mobile-capture-shell {
  width: min(100%, 680px);
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 14px max(28px, env(safe-area-inset-bottom));
}

.mobile-capture-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -2px -4px 14px;
  padding: 10px 12px;
  border-bottom: 4px solid var(--gold);
  border-radius: 8px;
  background: linear-gradient(110deg, var(--navy), #173d68);
  box-shadow: 0 10px 24px rgba(15, 41, 77, 0.2);
  backdrop-filter: blur(14px);
}

.mobile-capture-topbar .mobile-capture-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
}

.mobile-capture-brand-logo {
  display: block;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

.mobile-capture-topbar .mobile-capture-workspace-button {
  min-height: 40px;
  border-color: #f28c28;
  background: #f28c28;
  color: var(--navy);
  box-shadow: 0 5px 14px rgba(4, 18, 36, 0.24);
}

.mobile-capture-topbar .mobile-capture-workspace-button:hover {
  border-color: #ffad4a;
  background: #ffad4a;
  color: var(--navy);
}

.mobile-capture-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 16px 32px rgba(32, 34, 28, 0.08);
}

.mobile-capture-card h1,
.mobile-capture-card h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 450;
  letter-spacing: 0;
  line-height: 1.08;
}

.mobile-capture-card h1 {
  font-size: 34px;
}

.mobile-capture-card h2 {
  font-size: 25px;
}

.mobile-capture-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mobile-capture-card-head > div {
  min-width: 0;
}

.mobile-capture-card-head .metric-pill {
  flex: 0 0 auto;
}

.mobile-capture-muted,
.mobile-capture-feedback {
  margin: 0 0 12px;
}

.mobile-capture-form {
  display: grid;
  gap: 12px;
}

.mobile-capture-form .form-field {
  min-width: 0;
}

.mobile-capture-form .form-field textarea {
  min-height: 104px;
  resize: vertical;
}

.mobile-capture-form .form-field small {
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.35;
}

.mobile-capture-intro {
  margin-bottom: 0;
}

.mobile-capture-project-select {
  margin-top: 2px;
}

.mobile-recorder-controls,
.mobile-review-actions,
.mobile-route-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.mobile-record-button {
  min-width: 116px;
}

.mobile-audio-preview {
  display: block;
  width: 100%;
  min-height: 40px;
}

.mobile-review-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mobile-review-form .form-field:first-child,
.mobile-review-form .form-field-wide,
.mobile-review-form .mobile-review-actions {
  grid-column: 1 / -1;
}

.mobile-capture-review.is-confirmed {
  border-color: rgba(31, 138, 91, 0.28);
}

.mobile-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mobile-result-link {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 78px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(35, 71, 60, 0.06);
  color: var(--ink);
  text-decoration: none;
}

.mobile-result-link span {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-result-link strong {
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.25;
}

.mobile-capture-auth .control-button,
.mobile-capture-recorder .control-button,
.mobile-review-actions .control-button {
  min-height: 44px;
}

@media (max-width: 560px) {
  .mobile-capture-shell {
    padding-inline: 10px;
  }

  .mobile-capture-card {
    padding: 14px;
  }

  .mobile-capture-card h1 {
    font-size: 30px;
  }

  .mobile-capture-card h2 {
    font-size: 22px;
  }

  .mobile-capture-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .mobile-capture-card-head .metric-pill {
    align-self: flex-start;
  }

  .mobile-review-form,
  .mobile-result-grid {
    grid-template-columns: 1fr;
  }

  .mobile-recorder-controls .control-button,
  .mobile-review-actions .control-button {
    flex: 1 1 120px;
  }
}

/* Trofik June 2026 brand refresh */
body {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 58%, #eef1f6 100%);
  background-size: 56px 56px, 56px 56px, 100% 100%;
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
}

h1,
h2,
h3,
h4,
.topbar h1,
.auth-card h2,
.loading-card h2,
.pitch-hero h1,
.pitch-band h2,
.report-banner h2,
.calendar-range h4,
.launcher-intro h3,
.launcher-status-card h3,
.workflow-toast-card h3,
.launcher-step-card h3,
.report-article h1,
.report-article h2,
.report-article h3,
.external-capture-head h1,
.field-card h3,
.stack-card h3,
.signal-item h3,
.mobile-capture-card h1,
.mobile-capture-card h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0;
}

.eyebrow,
.section-label,
.section-caption,
.topbar-meta,
.meta-chip,
.metric-label,
.citation-index,
.citation-link,
.report-badge,
.timeline-stamp,
.report-axis,
.workspace-nav-cluster-label,
.workspace-nav-link,
.workspace-account-trigger,
.nav-menu-item,
.form-field span,
.ops-form .form-field span,
.ops-upload-form .form-field span {
  font-family: var(--mono);
  letter-spacing: 0;
}

:focus-visible {
  outline-color: var(--gold);
}

.page-shell {
  max-width: 1500px;
}

.workspace-nav {
  border-color: rgba(15, 41, 77, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 248, 251, 0.9)),
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
}

.with-side-nav .workspace-nav {
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 251, 0.94)),
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  box-shadow: 0 24px 52px rgba(15, 41, 77, 0.08);
}

.workspace-brand,
.home-brand,
.mobile-capture-brand {
  position: relative;
  color: var(--navy);
  font-family: var(--serif);
  letter-spacing: 0;
}

.workspace-brand {
  grid-template-columns: 34px;
  grid-template-rows: auto;
  align-items: center;
  width: 34px;
  gap: 0;
}

.workspace-brand::before,
.home-brand::before {
  content: "";
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  background-image: url("/trofiklogo.png");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  box-shadow: none;
}

.workspace-brand::before {
  grid-column: 1;
  grid-row: 1;
}

.workspace-brand::after,
.home-brand::after,
.mobile-capture-brand::after {
  content: none;
}

.workspace-brand::after {
  left: 22px;
  top: 7px;
}

.home-brand::after {
  left: 22px;
  top: 7px;
}

.mobile-capture-brand::after {
  left: 22px;
  top: 7px;
}

.mobile-capture-brand::before {
  content: none;
}

.workspace-brand-mark {
  grid-column: 2;
  grid-row: 1;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.workspace-brand-mark.brand-wordmark {
  display: none;
}

.home-brand-word.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  color: var(--navy);
}

.brand-o {
  position: relative;
  display: inline-block;
  line-height: 1;
}

.brand-macron {
  position: absolute;
  left: 50%;
  top: -0.15em;
  width: 0.56em;
  height: 0.1em;
  border-radius: 999px;
  background: var(--gold);
  transform: translateX(-50%);
}

.workspace-brand-sub {
  display: none;
}

.workspace-nav-group,
.nav-dropdown-menu,
.segmented-control,
.calendar-grid,
.home-spectrum {
  border-color: rgba(15, 41, 77, 0.14);
  background: rgba(255, 255, 255, 0.74);
}

.workspace-nav-link,
.workspace-account-trigger,
.nav-menu-item {
  color: var(--steel);
}

.workspace-nav-section-links .workspace-nav-link {
  color: var(--trofik-orange);
}

.workspace-nav-link:hover,
.workspace-account-trigger:hover,
.nav-dropdown[open] > .workspace-nav-link,
.nav-dropdown.has-active > .workspace-nav-link,
.nav-menu-item:hover,
.nav-menu-item.is-active {
  border-color: rgba(15, 41, 77, 0.18);
  background: rgba(15, 41, 77, 0.04);
  color: var(--navy);
}

.workspace-nav-link.is-active {
  position: relative;
  border-color: rgba(244, 179, 35, 0.58);
  background: rgba(244, 179, 35, 0.14);
  color: var(--navy);
}

.workspace-nav-link.is-active::before,
.nav-menu-item.is-active::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex: 0 0 auto;
}

.project-switcher select,
.form-field input,
.form-field select,
.form-field textarea,
.ops-form input,
.ops-form select,
.ops-form textarea,
.ops-upload-form input,
.ops-upload-form select {
  border-color: rgba(15, 41, 77, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.project-switcher select:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.ops-form input:focus,
.ops-form select:focus,
.ops-form textarea:focus {
  border-color: rgba(244, 179, 35, 0.9);
  box-shadow: 0 0 0 3px rgba(244, 179, 35, 0.18);
  outline: none;
}

.control-button {
  border-color: rgba(15, 41, 77, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-family: var(--sans);
  font-weight: 700;
}

.control-button:hover {
  border-color: rgba(15, 41, 77, 0.5);
  background: #ffffff;
}

.control-button.is-active {
  border-color: rgba(244, 179, 35, 0.72);
  background: rgba(244, 179, 35, 0.16);
  color: var(--navy);
}

.control-button-primary,
.nav-menu-item-primary {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
}

.control-button-primary:hover,
.nav-menu-item-primary:hover {
  border-color: #dfa10f;
  background: #dfa10f;
  color: var(--navy);
}

.auth-card,
.loading-card,
.impact-card,
.impact-primary-card,
.impact-side-card,
.network-map-card,
.network-insight-card,
.agent-chat-card,
.agent-side-card,
.pitch-band,
.project-card,
.timeline-card,
.report-card,
.citation-card,
.metric-card,
.ops-card,
.stakeholder-tracker-card,
.report-center-card,
.ops-signal-card,
.ops-episode-card,
.field-card,
.stack-card,
.readiness-card,
.qa-overview-card,
.qa-check-card,
.launcher-panel,
.launcher-status-card,
.launcher-step-card,
.launcher-progress-card,
.external-capture-card,
.mobile-capture-card {
  border-color: rgba(15, 41, 77, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 251, 0.94)),
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
  box-shadow: 0 18px 42px rgba(15, 41, 77, 0.07);
}

.impact-primary-card,
.agent-chat-card,
.report-banner,
.home-access-band,
.home-final-cta {
  position: relative;
  overflow: hidden;
}

.impact-primary-card::after,
.agent-chat-card::after,
.report-banner::after,
.home-access-band::after,
.home-final-cta::after {
  content: "";
  position: absolute;
  right: -92px;
  bottom: -92px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(15, 41, 77, 0.1);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(244, 179, 35, 0.24) 0 34%, transparent 35%),
    repeating-radial-gradient(circle, rgba(15, 41, 77, 0.08) 0 1px, transparent 1px 24px);
  pointer-events: none;
}

.report-banner {
  border: 1px solid rgba(15, 41, 77, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 41, 77, 0.96), rgba(17, 49, 84, 0.94)),
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
  background-size: auto, 36px 36px, 36px 36px;
  color: #ffffff;
}

.meta-chip,
.report-badge {
  border-color: rgba(255, 255, 255, 0.26);
  color: rgba(255, 255, 255, 0.96);
}

.topbar-meta {
  border-color: rgba(15, 41, 77, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--steel);
}

.loading-progress,
.launcher-progress-meter {
  border-radius: 8px;
  background: rgba(15, 41, 77, 0.08);
}

.loading-progress-bar,
.launcher-progress-meter span {
  border-radius: 8px;
  background: linear-gradient(90deg, var(--gold), #f8d371);
}

.home-body {
  background-color: #f7f8fb;
}

.home-nav {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(15, 41, 77, 0.14);
}

.home-brand {
  display: grid;
  grid-template-columns: 34px auto;
  align-items: center;
  column-gap: 10px;
  text-decoration: none;
}

.home-brand::before {
  grid-column: 1;
  grid-row: 1;
}

.home-brand-word {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
}

.home-brand-subline {
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.home-nav-link {
  color: var(--steel);
  font-weight: 700;
}

.home-nav-link:hover {
  color: var(--navy);
}

.home-hero {
  min-height: calc(100svh - 124px);
  align-items: center;
  padding: 84px 28px 104px;
  background: var(--navy);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px),
    radial-gradient(circle at 78% 48%, rgba(244, 179, 35, 0.7) 0 15%, transparent 15.5%),
    linear-gradient(90deg, rgba(15, 41, 77, 0.98) 0%, rgba(15, 41, 77, 0.92) 42%, rgba(15, 41, 77, 0.22) 74%, rgba(15, 41, 77, 0.08) 100%);
  background-size: 52px 52px, 52px 52px, auto, auto;
  pointer-events: none;
}

.home-hero::after {
  z-index: 1;
  background:
    linear-gradient(180deg, transparent calc(100% - 16px), var(--gold) calc(100% - 16px)),
    linear-gradient(90deg, var(--navy) 0 72%, var(--gold) 72% 100%);
  inset: auto 0 0;
  height: 22px;
}

.home-hero-visual {
  opacity: 0.82;
  filter: saturate(0.78) contrast(1.04);
  object-position: center right;
}

.home-hero-content {
  max-width: 720px;
  color: #ffffff;
}

.home-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--gold);
  font-weight: 700;
}

.home-hero .eyebrow::before,
.section-label::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 3px;
  background: var(--gold);
  vertical-align: middle;
}

.home-hero h1 {
  max-width: 700px;
  color: #ffffff;
  font-size: 80px;
  line-height: 0.96;
}

.home-lede {
  max-width: 590px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 21px;
}

.home-cta-row .control-button:not(.control-button-primary) {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.home-section {
  border-top-color: rgba(15, 41, 77, 0.12);
  background: rgba(255, 255, 255, 0.34);
}

.home-problem {
  padding-top: 36px;
}

.home-section:nth-of-type(even) {
  background:
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px),
    rgba(239, 242, 247, 0.54);
  background-size: 48px 48px, 48px 48px, auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--steel);
  font-weight: 700;
}

.home-section h2,
.home-section-head h2,
.home-access-band h2,
.home-final-cta h2 {
  color: var(--navy);
  font-size: 58px;
  line-height: 1;
}

.home-section p,
.home-section-head p,
.home-access-band p,
.home-final-cta p {
  color: var(--steel);
}

.home-spectrum {
  border-radius: 8px;
}

.home-spectrum span {
  position: relative;
  background: rgba(255, 255, 255, 0.86);
  color: var(--steel);
  font-weight: 700;
}

.home-spectrum span::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  margin-bottom: 12px;
  border: 1px solid var(--navy);
  border-radius: 50%;
  background: #ffffff;
}

.home-spectrum span:last-child {
  background: rgba(244, 179, 35, 0.16);
  color: var(--navy);
}

.home-spectrum span:last-child::before {
  border-color: var(--gold);
  background: var(--gold);
}

.home-feature-card {
  position: relative;
  display: grid;
  align-content: space-between;
  overflow: hidden;
  border-color: rgba(15, 41, 77, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 251, 0.94)),
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
  box-shadow: 0 18px 42px rgba(15, 41, 77, 0.07);
}

.home-feature-card::before {
  content: "";
  width: 68px;
  height: 68px;
  border: 1.5px solid var(--navy);
  border-radius: 50%;
  background:
    radial-gradient(circle at 70% 58%, var(--gold) 0 7px, transparent 8px),
    repeating-radial-gradient(circle, transparent 0 16px, rgba(15, 41, 77, 0.18) 17px, transparent 18px);
}

.home-feature-card h3 {
  color: var(--navy);
  font-size: 29px;
}

.home-feature-card p:last-child {
  color: var(--steel);
}

.home-access-band,
.home-final-cta {
  border: 1px solid rgba(15, 41, 77, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 251, 0.92)),
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px;
  padding-inline: 32px;
}

.home-final-cta {
  margin-bottom: 48px;
}

.home-mission-callout {
  max-width: 760px;
  margin-top: 28px;
  padding: 22px 24px;
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--navy);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.55;
  box-shadow: 0 16px 34px rgba(15, 41, 77, 0.06);
}

.home-chip-list,
.home-duo-grid,
.home-module-carousel {
  width: min(1180px, calc(100vw - 56px));
  margin: 0 auto;
}

.home-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: -6px;
  margin-bottom: 26px;
}

.home-chip-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(15, 41, 77, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--navy);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.home-chip-list-compact {
  width: auto;
  margin: 28px 0 0;
}

.home-duo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-superpower-grid .home-feature-card,
.home-audience-card,
.home-founder-card {
  min-height: 300px;
}

.home-audience-card h3,
.home-founder-card h3 {
  font-size: 27px;
  line-height: 1.08;
}

.home-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 28px;
  margin-top: 34px;
}

.home-method-grid article {
  min-height: 150px;
  padding: 20px 0 0;
  border-top: 3px solid rgba(244, 179, 35, 0.82);
}

.home-method-grid h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.12;
}

.home-method-grid p {
  max-width: none;
  margin: 12px 0 0;
  color: var(--steel);
  font-size: 15px;
  line-height: 1.62;
}

.home-module-carousel {
  --module-gap: 14px;
  outline: none;
}

.home-module-carousel:focus-visible {
  border-radius: 8px;
  box-shadow: 0 0 0 4px rgba(244, 179, 35, 0.28);
}

.home-module-viewport {
  overflow: hidden;
  padding: 8px 2px 4px;
}

.home-module-grid {
  display: flex;
  gap: var(--module-gap);
  margin: 0;
  will-change: transform;
  transition: transform 680ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.home-module-card {
  position: relative;
  flex: 0 0 calc((100% - (var(--module-gap) * 3)) / 4);
  min-height: 190px;
  padding: 22px 18px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(15, 41, 77, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 251, 0.94)),
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  box-shadow: 0 14px 32px rgba(15, 41, 77, 0.06);
  transition:
    border-color 260ms ease,
    box-shadow 260ms ease,
    opacity 260ms ease,
    transform 260ms ease;
}

.home-module-card::before {
  content: "";
  display: block;
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  margin-bottom: 30px;
  border: 1.5px solid var(--navy);
  border-radius: 50%;
  background:
    radial-gradient(circle at 68% 58%, var(--gold) 0 5px, transparent 6px),
    repeating-radial-gradient(circle, transparent 0 10px, rgba(15, 41, 77, 0.18) 11px, transparent 12px);
}

.home-module-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-120%);
  background: linear-gradient(
    115deg,
    transparent 0 40%,
    rgba(244, 179, 35, 0.18) 48%,
    rgba(255, 255, 255, 0.38) 52%,
    transparent 60% 100%
  );
}

.home-module-card.is-active {
  border-color: rgba(244, 179, 35, 0.72);
  box-shadow: 0 22px 46px rgba(15, 41, 77, 0.11);
  transform: translateY(-4px);
}

.home-module-card.is-active::before {
  border-color: var(--gold);
  box-shadow: 0 0 0 8px rgba(244, 179, 35, 0.08);
}

.home-module-card.is-active::after {
  opacity: 1;
}

.home-module-card:hover {
  transform: translateY(-6px);
}

.home-module-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.12;
}

.home-module-card p {
  position: relative;
  z-index: 1;
  max-width: none;
  margin: 10px 0 0;
  color: var(--steel);
  font-size: 14px;
  line-height: 1.55;
}

.home-module-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.home-module-nav {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(15, 41, 77, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 30px;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(15, 41, 77, 0.08);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.home-module-nav:hover,
.home-module-nav:focus-visible {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}

.home-module-nav:focus-visible {
  outline: 3px solid rgba(244, 179, 35, 0.32);
  outline-offset: 3px;
}

.home-module-nav:disabled {
  cursor: default;
  opacity: 0.44;
  transform: none;
}

.home-module-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 24px;
}

.home-module-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 41, 77, 0.2);
  cursor: pointer;
  padding: 0;
  transition:
    background-color 180ms ease,
    transform 180ms ease,
    width 180ms ease;
}

.home-module-dot:hover,
.home-module-dot:focus-visible {
  background: rgba(15, 41, 77, 0.46);
  outline: none;
  transform: scaleY(1.35);
}

.home-module-dot.is-active {
  width: 48px;
  background: var(--gold);
}

.home-network .home-section-grid,
.home-living-record .home-section-grid,
.home-readiness-layer .home-section-grid {
  align-items: start;
}

.login-dialog::backdrop {
  background: rgba(15, 41, 77, 0.54);
}

.dialog-close {
  border-radius: 8px;
}

.mobile-capture-body,
.external-capture-body,
.index-mock-body {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 58%, #eef1f6 100%);
  background-size: 52px 52px, 52px 52px, auto;
}

@media (max-width: 920px) {
  .home-hero {
    min-height: auto;
    align-items: end;
    padding: 82px 18px 74px;
  }

  .home-hero::before {
    background:
      linear-gradient(var(--blueprint-line) 1px, transparent 1px),
      linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px),
      linear-gradient(180deg, rgba(15, 41, 77, 0.96) 0%, rgba(15, 41, 77, 0.86) 62%, rgba(15, 41, 77, 0.44) 100%);
    background-size: 44px 44px, 44px 44px, auto;
  }

  .home-hero h1 {
    font-size: 52px;
  }

  .home-lede {
    font-size: 18px;
  }

  .home-section h2,
  .home-section-head h2,
  .home-access-band h2,
  .home-final-cta h2 {
    font-size: 42px;
  }

  .home-chip-list,
  .home-duo-grid,
  .home-module-carousel {
    width: min(100% - 36px, 1180px);
  }

  .home-duo-grid,
  .home-method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-module-card {
    flex-basis: calc((100% - var(--module-gap)) / 2);
    min-height: 170px;
  }
}

@media (max-width: 560px) {
  .home-nav {
    background: rgba(255, 255, 255, 0.96);
  }

  .home-brand-word {
    font-size: 23px;
  }

  .home-nav-actions {
    gap: 8px;
  }

  .home-nav-link {
    display: none;
  }

  .home-hero {
    padding: 70px 16px 68px;
  }

  .home-hero h1 {
    font-size: 42px;
  }

  .home-section h2,
  .home-section-head h2,
  .home-access-band h2,
  .home-final-cta h2 {
    font-size: 34px;
  }

  .home-access-band,
  .home-final-cta {
    padding-inline: 18px;
  }

  .home-chip-list,
  .home-duo-grid,
  .home-module-carousel {
    width: min(100% - 32px, 1180px);
  }

  .home-chip-list span {
    width: 100%;
  }

  .home-duo-grid,
  .home-method-grid {
    grid-template-columns: 1fr;
  }

  .home-method-grid article,
  .home-module-card {
    min-height: auto;
  }

  .home-module-card {
    flex-basis: 100%;
  }

  .home-module-controls {
    gap: 10px;
  }

  .home-module-nav {
    width: 38px;
    height: 38px;
    font-size: 28px;
  }

  .home-module-dots {
    flex: 1;
    gap: 6px;
  }

  .home-module-dot {
    width: 8px;
    height: 8px;
  }

  .home-module-dot.is-active {
    width: 26px;
  }

  .home-mission-callout {
    padding: 18px;
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .home-module-card.is-active::before {
    animation: modulePulse 2.8s ease-in-out infinite;
  }

  .home-module-card.is-active::after {
    animation: moduleSweep 4.2s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-module-grid,
  .home-module-card,
  .home-module-card::after,
  .home-module-nav,
  .home-module-dot {
    animation: none;
    transition: none;
  }
}

@keyframes modulePulse {
  0%,
  100% {
    box-shadow: 0 0 0 8px rgba(244, 179, 35, 0.08);
  }

  50% {
    box-shadow: 0 0 0 13px rgba(244, 179, 35, 0.18);
  }
}

@keyframes moduleSweep {
  0%,
  42% {
    transform: translateX(-120%);
  }

  70%,
  100% {
    transform: translateX(120%);
  }
}

body.home-body {
  background: #f2f0eb;
}

.home-body .home-nav {
  padding-block: 14px;
  background: rgba(242, 240, 235, 0.94);
}

.home-brand {
  display: inline-flex;
  align-items: center;
  min-width: 148px;
}

.home-brand-logo {
  display: block;
  width: 154px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: multiply;
}

.home-brand::before,
.home-brand::after {
  content: none;
  display: none;
}

.home-body .home-hero {
  align-items: start;
  min-height: min(760px, calc(100svh - 128px));
  padding: clamp(42px, 6.5vh, 70px) 28px clamp(72px, 9vh, 96px);
  background: #f2f0eb;
}

.home-body .home-hero::before {
  background: linear-gradient(90deg, rgba(242, 240, 235, 0.98) 0%, rgba(242, 240, 235, 0.88) 42%, rgba(242, 240, 235, 0.18) 78%, transparent 100%);
  background-size: auto;
}

.home-body .home-hero::after {
  height: 14px;
  background: linear-gradient(90deg, var(--navy) 0 78%, var(--gold) 78% 100%);
}

.home-body .home-hero-visual {
  opacity: 0.86;
  filter: none;
  object-position: center right;
}

.home-body .home-hero-content {
  align-self: start;
  max-width: 920px;
  color: var(--navy);
}

.home-body .home-hero h1 {
  max-width: 920px;
  color: var(--navy);
  font-size: clamp(44px, 5.4vw, 78px);
  line-height: 1;
}

.home-body .home-cta-row {
  margin-top: 22px;
}

.home-body .home-cta-row .control-button:not(.control-button-primary) {
  border-color: rgba(15, 41, 77, 0.24);
  background: rgba(255, 255, 255, 0.56);
  color: var(--navy);
}

.home-body .home-section,
.home-body .home-section:nth-of-type(even) {
  background: transparent;
  background-image: none;
}

.home-body .home-section-head .control-button {
  margin-top: 22px;
}

.home-body .home-belief-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(242, 240, 235, 0.98) 0%, rgba(252, 248, 239, 0.96) 55%, rgba(244, 179, 35, 0.13) 100%);
}

.home-belief-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.58fr);
  gap: clamp(32px, 5vw, 70px);
  width: min(1180px, calc(100vw - 56px));
  margin: 0 auto;
  align-items: center;
}

.home-belief-copy h2 {
  max-width: 790px;
}

.home-belief-copy > p {
  max-width: 820px;
}

.home-belief-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 28px;
}

.home-belief-principles > span {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 82px;
  padding: 14px;
  border: 1px solid rgba(15, 41, 77, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--steel);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: 0 12px 26px rgba(15, 41, 77, 0.05);
}

.home-belief-principles > span::before {
  content: "";
  width: 26px;
  height: 26px;
  border: 1px solid var(--navy);
  border-radius: 50%;
  background:
    radial-gradient(circle at 68% 62%, var(--gold) 0 5px, transparent 6px),
    radial-gradient(circle, rgba(255, 255, 255, 0.94) 0 11px, transparent 12px);
  box-shadow: 0 0 0 6px rgba(244, 179, 35, 0.08);
}

.home-belief-principle-text {
  min-width: 0;
}

.home-belief-principles strong {
  display: block;
  color: var(--navy);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.home-belief-principle-text > span {
  display: block;
  margin-top: 8px;
}

.home-belief-visual {
  position: relative;
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 41, 77, 0.14);
  border-radius: 8px;
  background: #fffaf1;
  box-shadow: 0 24px 54px rgba(15, 41, 77, 0.12);
}

.home-belief-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.94) contrast(1.02);
  transform: scale(1.34);
  transform-origin: center 58%;
}

.home-belief-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 10px;
  background: linear-gradient(90deg, var(--navy) 0 76%, var(--gold) 76% 100%);
}

.home-body .section-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-body .home-feature-card,
.home-body .home-module-card,
.home-body .home-access-band {
  background: rgba(255, 255, 255, 0.74);
  background-image: none;
}

.home-body .home-feature-card > p:last-child,
.home-body .home-founder-card > p,
.home-body .home-audience-card > p {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.65;
}

.home-body .home-audience-card {
  align-content: start;
}

.home-body .home-audience-card > p:last-child {
  margin-top: 36px;
}

.home-bundle-grid {
  --module-gap: 16px;
}

.home-bundle-grid .home-module-viewport {
  overflow: visible;
}

.home-bundle-grid .home-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--module-gap);
  transform: none !important;
}

.home-bundle-grid .home-module-card {
  min-height: 430px;
}

.home-bundle-card {
  display: grid;
  align-content: start;
}

.home-bundle-card .section-label {
  margin: 0 0 18px;
}

.home-tool-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.home-tool-list li {
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid rgba(15, 41, 77, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.home-specialist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0 26px;
}

.home-specialist-grid span {
  display: flex;
  align-items: center;
  min-height: 70px;
  padding: 16px;
  border: 1px solid rgba(15, 41, 77, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.home-story-body {
  width: min(1180px, calc(100vw - 56px));
  margin: 30px auto 0;
}

.home-story-transition,
.home-story-closing {
  max-width: 860px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.55;
}

.home-story-closing {
  margin-top: 34px;
}

.home-founder-placeholder {
  color: var(--steel);
  font-style: italic;
}

.home-access-band {
  margin-bottom: 48px;
}

@media (max-width: 920px) {
  .home-brand-logo {
    width: 138px;
    height: 44px;
  }

  .home-body .home-hero::before {
    background: linear-gradient(180deg, rgba(242, 240, 235, 0.98) 0%, rgba(242, 240, 235, 0.9) 58%, rgba(242, 240, 235, 0.24) 100%);
  }

  .home-body .home-hero h1 {
    font-size: 52px;
  }

  .home-belief-layout {
    grid-template-columns: 1fr;
  }

  .home-belief-visual {
    min-height: 360px;
  }

  .home-bundle-grid .home-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-bundle-grid .home-module-card {
    min-height: auto;
  }

  .home-specialist-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .home-body .home-nav {
    padding: 12px 16px;
  }

  .home-brand {
    min-width: 112px;
  }

  .home-brand-logo {
    width: 118px;
    height: 38px;
  }

  .home-body .home-hero {
    min-height: min(690px, calc(100svh - 120px));
    padding-top: 42px;
  }

  .home-body .home-hero h1 {
    font-size: 38px;
  }

  .home-belief-principles {
    grid-template-columns: 1fr;
  }

  .home-belief-visual {
    min-height: 280px;
  }

  .home-bundle-grid .home-module-grid {
    grid-template-columns: 1fr;
  }

  .home-tool-list {
    grid-template-columns: 1fr;
  }
}

body.home-body::before,
body.home-body::after {
  content: "";
  position: fixed;
  top: 76px;
  bottom: 0;
  z-index: 0;
  width: 42px;
  pointer-events: none;
  opacity: 0.2;
  background:
    radial-gradient(circle, rgba(15, 41, 77, 0.42) 0 2px, transparent 2.5px) center 18px / 100% 112px repeat-y,
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(15, 41, 77, 0.34) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px));
}

body.home-body::before {
  left: 0;
}

body.home-body::after {
  right: 0;
  transform: scaleX(-1);
}

.home-body .home-hero {
  align-items: start;
  min-height: min(760px, calc(100svh - 118px));
  padding: clamp(46px, 6.4vh, 72px) 28px clamp(72px, 8vh, 96px);
  background: #061a33;
}

.home-body .home-hero::before {
  z-index: 1;
  background:
    radial-gradient(circle at 84% 86%, rgba(255, 180, 0, 0.98) 0 15%, rgba(255, 180, 0, 0.66) 15.2% 22%, transparent 22.4%),
    linear-gradient(90deg, rgba(6, 26, 51, 0.98) 0%, rgba(6, 26, 51, 0.9) 37%, rgba(6, 26, 51, 0.34) 74%, rgba(6, 26, 51, 0.08) 100%);
  pointer-events: none;
}

.home-body .home-hero::after {
  z-index: 2;
  inset: auto 0 0;
  height: 14px;
  background: linear-gradient(90deg, #061a33 0 78%, #ffb400 78% 100%);
}

.home-body .home-hero-visual {
  opacity: 0.52;
  filter: invert(1) grayscale(1) brightness(1.9) contrast(1.22);
  mix-blend-mode: screen;
  object-position: center right;
}

.home-body .home-hero-content {
  z-index: 3;
  max-width: min(1120px, calc(100vw - 56px));
  color: #f5f3ee;
}

.home-body .home-hero h1 {
  max-width: min(1120px, calc(100vw - 56px));
  color: #f5f3ee;
  font-size: clamp(42px, 5.35vw, 78px);
  line-height: 0.98;
}

.home-hero h1 span {
  display: block;
}

.home-hero-title-gold {
  color: #ffb400;
}

.home-hero-title-light {
  color: #f5f3ee;
  font-size: 0.74em;
  line-height: 1.04;
}

.home-body .home-cta-row {
  margin-top: 24px;
}

.home-body .home-cta-row .control-button:not(.control-button-primary) {
  border-color: rgba(245, 243, 238, 0.45);
  background: rgba(245, 243, 238, 0.08);
  color: #f5f3ee;
}

.home-body .home-section-grid {
  align-items: start;
}

.home-body .home-section-head > .section-label,
.home-body .home-section-grid > .section-label,
.home-body .home-access-band .section-label {
  gap: 12px;
  font-size: 15px;
}

.home-body .home-section-head > .section-label::before,
.home-body .home-section-grid > .section-label::before,
.home-body .home-access-band .section-label::before {
  width: 34px;
  height: 4px;
  background: #ffb400;
}

.home-body .home-section-grid > .section-label {
  margin-top: 10px;
}

.home-body .home-belief-section {
  background:
    linear-gradient(120deg, rgba(242, 240, 235, 0.98) 0%, rgba(245, 243, 238, 0.96) 100%);
}

.home-body .home-belief-grid {
  grid-template-columns: 240px minmax(0, 760px);
  justify-content: center;
}

.home-belief-copy > p {
  max-width: 760px;
}

.home-belief-copy .home-belief-pullquote,
.home-belief-copy .home-belief-emphasis {
  max-width: 800px;
  margin: 32px 0;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.55;
}

.home-belief-pullquote {
  padding-left: 24px;
  border-left: 4px solid #ffb400;
  font-style: italic;
}

.home-belief-emphasis strong {
  color: #0a1d36;
}

.home-body .home-feature-card::before {
  content: none;
  display: none;
}

.home-card-icon {
  position: relative;
  display: block;
  width: 92px;
  height: 92px;
  margin-bottom: 26px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background:
    radial-gradient(circle at 76% 28%, #ffb400 0 6px, transparent 7px),
    radial-gradient(circle, rgba(255, 255, 255, 0.96) 0 31px, transparent 32px);
}

.home-card-icon::before,
.home-card-icon::after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 2px solid var(--navy);
  opacity: 0.9;
}

.home-icon-developers::before {
  inset: 44px 20px 22px;
  border-top: 2px solid var(--navy);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  transform: skewX(-18deg);
}

.home-icon-developers::after {
  inset: 23px 36px 42px 28px;
  border-radius: 16px 16px 4px 4px;
  border-bottom: 0;
}

.home-icon-agencies::before {
  inset: 24px;
  border: 0;
  background:
    radial-gradient(circle, var(--navy) 0 4px, transparent 5px) 50% 10% / 100% 100% no-repeat,
    radial-gradient(circle, var(--navy) 0 4px, transparent 5px) 18% 72% / 100% 100% no-repeat,
    radial-gradient(circle, var(--navy) 0 4px, transparent 5px) 82% 72% / 100% 100% no-repeat;
}

.home-icon-agencies::after {
  inset: 32px 28px 30px;
  border-top: 0;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  border-left: 2px solid var(--navy);
  transform: rotate(45deg);
}

.home-card-icon.home-icon-tools,
.home-card-icon.home-icon-training,
.home-card-icon.home-icon-support,
.home-card-icon.home-icon-developers,
.home-card-icon.home-icon-agencies {
  width: 136px;
  height: 136px;
  border: 0;
  border-radius: 0;
  background: none;
  object-fit: contain;
}

.home-icon-tools::before {
  inset: 23px 25px;
  border-radius: 4px;
}

.home-icon-tools::after {
  inset: 34px 16px;
  border-top: 2px solid var(--navy);
  border-right: 0;
  border-bottom: 2px solid var(--navy);
  border-left: 0;
}

.home-icon-training::before {
  inset: 24px 18px 30px;
  border-radius: 4px;
}

.home-icon-training::after {
  inset: 38px 24px;
  border-top: 2px solid var(--navy);
  border-right: 0;
  border-bottom: 2px solid var(--navy);
  border-left: 0;
}

.home-icon-support::before {
  inset: 30px;
  border-radius: 50%;
}

.home-icon-support::after {
  inset: 24px 16px 22px;
  border-top: 0;
  border-radius: 0 0 34px 34px;
}

.home-body .home-client-partners .home-section-head p {
  display: none;
}

.home-bundle-grid .home-module-card {
  min-height: 410px;
  border-color: rgba(15, 41, 77, 0.28);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(15, 41, 77, 0.06), 0 12px 24px rgba(15, 41, 77, 0.04);
}

.home-bundle-card::before {
  content: none;
  display: none;
}

.home-stage-icon {
  position: relative;
  z-index: 1;
  display: block;
  width: 96px;
  height: 96px;
  margin-bottom: 20px;
  object-fit: contain;
}

.home-bundle-card .section-label {
  margin-bottom: 22px;
  color: var(--navy);
  font-size: 18px;
}

.home-bundle-card .section-label::before {
  width: 34px;
  height: 4px;
  background: #ffb400;
}

.home-tool-list li {
  border-color: rgba(15, 41, 77, 0.22);
  background: #ffffff;
}

.home-network-intro,
.home-story-closing {
  max-width: 820px;
  margin: 30px 0;
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.55;
}

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

.home-story .home-section-head p {
  max-width: 820px;
}

.home-story-body {
  margin-top: 26px;
}

.home-story-closing {
  font-style: italic;
}

.home-hero-title-light {
  font-size: 1em;
  line-height: 0.98;
}

.home-solution-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
}

.home-solution-card .home-card-icon {
  margin-bottom: 0;
}

.home-solution-card h3 {
  max-width: 310px;
  margin: 0;
}

.home-body .home-client-partners .home-section-head > .section-label {
  display: inline-flex;
}

.home-partner-closer {
  width: min(1180px, calc(100vw - 56px));
  margin: 34px auto 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 700;
  line-height: 1.08;
}

.home-final-cta {
  min-height: 320px;
}

.home-final-cta h2 {
  max-width: 760px;
}

@media (max-width: 920px) {
  body.home-body::before,
  body.home-body::after {
    opacity: 0.1;
    width: 24px;
  }

  .home-body .home-hero h1 {
    font-size: 52px;
  }

  .home-hero-title-light {
    font-size: 1em;
  }

  .home-body .home-belief-grid {
    grid-template-columns: 1fr;
  }

  .home-body .home-section-grid > .section-label {
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  body.home-body::before,
  body.home-body::after {
    display: none;
  }

  .home-body .home-hero {
    min-height: min(690px, calc(100svh - 120px));
  }

  .home-body .home-hero h1 {
    font-size: 42px;
  }

  .home-body .home-section-head > .section-label,
  .home-body .home-section-grid > .section-label,
  .home-body .home-access-band .section-label {
    font-size: 13px;
  }

  .home-card-icon {
    width: 78px;
    height: 78px;
  }

  .home-card-icon.home-icon-tools,
  .home-card-icon.home-icon-training,
  .home-card-icon.home-icon-support,
  .home-card-icon.home-icon-developers,
  .home-card-icon.home-icon-agencies {
    width: 118px;
    height: 118px;
  }

  .home-stage-icon {
    width: 88px;
    height: 88px;
  }

  .home-partner-closer {
    width: calc(100vw - 32px);
  }

  .home-belief-copy .home-belief-pullquote,
  .home-belief-copy .home-belief-emphasis,
  .home-network-intro,
  .home-story-closing {
    font-size: 19px;
  }
}

/* Homepage punch-list refinements: canonical art, restored copy, and team panel. */
.home-body .home-hero::before {
  background: linear-gradient(90deg, rgba(6, 26, 51, 0.95) 0%, rgba(6, 26, 51, 0.72) 42%, rgba(6, 26, 51, 0.08) 76%, transparent 100%);
}

.home-body .home-hero-visual {
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
  object-position: center center;
}

.home-solutions-section .home-section-head {
  margin-bottom: 34px;
}

.home-solutions-section .home-superpower-grid {
  align-items: stretch;
}

.home-solutions-section .home-solution-card {
  min-height: 470px;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  padding: 30px;
  text-align: left;
}

.home-solution-card .home-card-icon {
  margin: 0 0 22px;
}

.home-solution-card > .section-label {
  margin: 0 0 24px;
  color: var(--steel);
  font-size: 12px;
}

.home-solution-card > .section-label::before {
  width: 22px;
  height: 3px;
}

.home-solution-card h3 {
  max-width: none;
  min-height: 64px;
  font-size: 27px;
  line-height: 1.12;
}

.home-body .home-solution-card > p:last-child {
  max-width: none;
  margin: 20px 0 0;
  color: var(--steel);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
}

.home-body .home-section.home-belief-section {
  padding: 88px 28px 0;
  border-top: 0;
  background: #061a33;
  background-image: none;
}

.home-body .home-belief-grid {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 56px));
  grid-template-columns: 220px minmax(0, 800px);
  justify-content: space-between;
  padding-bottom: 62px;
}

.home-belief-section .section-label {
  color: #f7f2e8;
}

.home-belief-section .home-belief-copy h2 {
  color: #f7f2e8;
}

.home-belief-section .home-belief-copy > p,
.home-belief-section .home-belief-copy .home-belief-pullquote,
.home-belief-section .home-belief-copy .home-belief-emphasis {
  color: rgba(247, 242, 232, 0.9);
}

.home-belief-section .home-belief-copy .home-belief-emphasis strong {
  color: #ffffff;
}

.home-belief-section .home-belief-pullquote {
  border-left-color: #ffb400;
}

.home-belief-art {
  position: relative;
  z-index: 0;
  display: block;
  width: min(1180px, calc(100vw - 56px));
  max-height: 620px;
  margin: 0 auto;
  object-fit: cover;
  object-position: center center;
}

.home-team {
  background: #f5f3ee;
}

.home-team .home-section-head {
  margin-bottom: 52px;
}

.home-team-group {
  width: min(1180px, calc(100vw - 56px));
  margin: 0 auto;
}

.home-team-group + .home-team-group {
  margin-top: 74px;
}

.home-team-group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.home-team-group-heading > .section-label {
  flex: none;
  margin: 0;
}

.home-team-group-heading h3,
.home-advisor-heading h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.05;
}

.home-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-team-card {
  min-width: 0;
  padding: 28px;
  border: 1px solid rgba(15, 41, 77, 0.18);
  border-radius: 8px;
}

.home-founder-card {
  min-height: 580px;
  background: #071d3a;
  color: #f7f2e8;
  box-shadow: 0 20px 42px rgba(6, 26, 51, 0.12);
}

.home-team-monogram {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 180, 0, 0.8);
  border-radius: 50%;
  color: #ffb400;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 800;
}

.home-team-card-heading {
  margin-bottom: 24px;
}

.home-team-card .home-team-card-heading h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.08;
}

.home-team-card .home-team-card-heading p {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  text-transform: uppercase;
}

.home-team-card > p:last-child {
  max-width: none;
  margin: 0;
  font-size: 15px;
  line-height: 1.68;
}

.home-founder-card .home-team-card-heading h3 {
  color: #ffffff;
}

.home-founder-card .home-team-card-heading p {
  color: #ffbd27;
}

.home-body .home-founder-card > p:last-child {
  color: rgba(247, 242, 232, 0.82);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.68;
}

.home-advisor-heading {
  align-items: center;
  justify-content: flex-start;
}

.home-advisor-heading > img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.home-advisor-heading .section-label {
  margin: 0 0 8px;
}

.home-advisor-intro {
  max-width: 1040px;
  margin: 0 0 30px;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.65;
}

.home-advisor-card {
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  box-shadow: 0 14px 30px rgba(15, 41, 77, 0.06);
}

.home-advisor-card .home-team-card-heading {
  padding-bottom: 18px;
  border-bottom: 2px solid rgba(15, 41, 77, 0.14);
}

.home-advisor-card .home-team-card-heading h3,
.home-advisor-card > p:last-child {
  color: var(--navy);
}

.home-advisor-card .home-team-card-heading p {
  color: var(--steel);
}

.home-final-cta {
  isolation: isolate;
  min-height: 360px;
  padding: 72px 32px 86px;
}

.home-final-cta::after {
  display: none;
}

.home-final-cta > div,
.home-final-cta > button {
  position: relative;
  z-index: 2;
}

.home-final-cta h2 {
  max-width: 660px;
}

.home-final-cta-art {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: min(340px, 34vw);
  height: 100%;
  object-fit: cover;
  object-position: left center;
  opacity: 0.8;
  pointer-events: none;
}

@media (max-width: 920px) {
  .home-solutions-section .home-solution-card {
    min-height: 0;
  }

  .home-body .home-belief-grid {
    grid-template-columns: 1fr;
  }

  .home-team-grid {
    grid-template-columns: 1fr;
  }

  .home-founder-card {
    min-height: 0;
  }

  .home-team-group-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .home-body .home-hero::before {
    background: linear-gradient(180deg, rgba(6, 26, 51, 0.94) 0%, rgba(6, 26, 51, 0.7) 58%, rgba(6, 26, 51, 0.2) 100%);
  }

  .home-body .home-hero-visual {
    object-position: 68% center;
  }

  .home-solutions-section .home-solution-card {
    padding: 24px;
  }

  .home-solution-card h3 {
    min-height: 0;
  }

  .home-body .home-section.home-belief-section {
    padding: 70px 16px 0;
  }

  .home-body .home-belief-grid,
  .home-belief-art,
  .home-team-group {
    width: 100%;
  }

  .home-belief-art {
    min-height: 300px;
    object-position: center center;
  }

  .home-team-group-heading {
    margin-bottom: 20px;
  }

  .home-team-card {
    padding: 24px;
  }

  .home-advisor-heading {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 16px;
  }

  .home-advisor-heading > img {
    width: 54px;
    height: 54px;
  }

  .home-final-cta {
    min-height: 430px;
    padding: 54px 24px 68px;
  }

  .home-final-cta h2 {
    max-width: 280px;
  }

  .home-final-cta-art {
    top: auto;
    bottom: 0;
    width: 180px;
    height: 250px;
    opacity: 0.72;
  }
}

/* Final homepage punch-list pass. */
.home-body .home-hero-content,
.home-body .home-hero h1 {
  max-width: min(980px, calc(100vw - 56px));
}

.home-body .home-hero h1 {
  font-size: clamp(42px, 4.35vw, 64px);
}

.home-body .home-section.home-network {
  border-top: 0;
  background: #061a33;
  background-image: none;
}

.home-body .home-network .home-section-grid > .section-label,
.home-body .home-network h2,
.home-body .home-network .home-section-grid > div > p {
  color: #f7f2e8;
}

.home-body .home-network .home-section-grid > div > p:first-of-type {
  color: rgba(247, 242, 232, 0.78);
}

.home-body .home-network .home-specialist-grid span {
  border-color: rgba(247, 242, 232, 0.16);
  background: #f7f2e8;
  color: #0f294d;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.home-body .home-client-partners .home-audience-card {
  min-height: 250px;
  padding: 32px;
}

.home-body .home-client-partners .home-audience-card > .section-label {
  margin: 0;
}

.home-belief-section .home-belief-copy .home-belief-emphasis strong {
  color: #ffb400;
}

.home-team .home-section-head {
  margin-bottom: 40px;
}

.home-team-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.home-team-card-top .home-team-monogram {
  margin-bottom: 0;
}

.home-linkedin-link {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(247, 242, 232, 0.42);
  border-radius: 50%;
  color: #f7f2e8;
  font-family: Arial, sans-serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.home-linkedin-link:hover,
.home-linkedin-link:focus-visible {
  border-color: #ffb400;
  background: #ffb400;
  color: #061a33;
}

.home-advisor-heading {
  display: block;
  margin-bottom: 24px;
}

.home-advisor-card a {
  color: #0f294d;
  font-weight: 800;
  text-decoration-color: #ffb400;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.home-advisor-card a:hover,
.home-advisor-card a:focus-visible {
  color: #8b6100;
}

.home-final-cta {
  min-height: 390px;
  border-color: rgba(247, 242, 232, 0.16);
  background: #061a33;
  background-image: none;
}

.home-final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(6, 26, 51, 0.98) 0%, rgba(6, 26, 51, 0.88) 44%, rgba(6, 26, 51, 0.12) 78%, transparent 100%);
  pointer-events: none;
}

.home-final-cta > div,
.home-final-cta > button {
  z-index: 3;
}

.home-final-cta h2 {
  max-width: 590px;
  color: #f7f2e8;
}

.home-final-cta-art {
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 1;
  object-fit: cover;
  object-position: center right;
}

@media (max-width: 560px) {
  .home-body .home-client-partners .home-audience-card {
    min-height: 0;
    padding: 24px;
  }

  .home-final-cta {
    min-height: 430px;
  }

  .home-final-cta::before {
    background: linear-gradient(180deg, rgba(6, 26, 51, 0.98) 0%, rgba(6, 26, 51, 0.84) 56%, rgba(6, 26, 51, 0.2) 100%);
  }

  .home-final-cta-art {
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    object-position: 72% center;
  }
}

.stakeholder-participant-options {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 11rem;
  overflow-y: auto;
  padding: 0.35rem 0.15rem;
}

.stakeholder-participant-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.stakeholder-participant-option input[type="checkbox"] {
  flex: none;
  width: auto;
}

.trust-dimension-toolbar > label {
  display: grid;
  gap: 6px;
  min-width: min(360px, 100%);
  color: var(--navy);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trust-dimension-toolbar select {
  min-height: 42px;
  border: 1px solid rgba(15, 41, 77, 0.18);
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  padding: 8px 10px;
  font: 500 14px/1.2 var(--sans);
  text-transform: none;
}

.legend-dimension {
  display: inline-block;
  width: 24px;
  height: 5px;
  border-radius: 999px;
}

.legend-dimension.reduces { background: var(--navy); }
.legend-dimension.neutral { background: #d9dee6; }
.legend-dimension.heightens { background: var(--trofik-orange); }

.trust-dimension-axis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 172px 12px 160px;
  color: var(--steel);
  font: 600 10px/1.2 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trust-dimension-axis span:last-child { text-align: right; }

.trust-dimension-list {
  display: grid;
  gap: 8px;
}

.trust-dimension-row {
  display: grid;
  grid-template-columns: 145px minmax(240px, 1fr) 88px 150px;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid rgba(15, 41, 77, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--navy);
}

.trust-dimension-row > strong {
  font-size: 13px;
  text-transform: capitalize;
}

.trust-dimension-track {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(15, 41, 77, 0.12), rgba(15, 41, 77, 0.04) 49.5%, rgba(217, 105, 45, 0.04) 50.5%, rgba(217, 105, 45, 0.14));
}

.trust-dimension-midpoint {
  position: absolute;
  inset: -3px auto -3px 50%;
  width: 1px;
  background: rgba(15, 41, 77, 0.32);
}

.trust-dimension-fill {
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: var(--trust-dimension-size);
  border-radius: 999px;
}

.trust-dimension-row.is-heightens .trust-dimension-fill {
  left: 50%;
  background: var(--trofik-orange);
}

.trust-dimension-row.is-reduces .trust-dimension-fill {
  right: 50%;
  background: var(--navy);
}

.trust-dimension-score {
  font: 700 12px/1.2 var(--mono);
}

.trust-dimension-confidence {
  color: var(--steel);
  font-size: 11px;
}

@media (max-width: 900px) {
  .trust-dimension-axis { display: none; }
  .trust-dimension-row {
    grid-template-columns: 1fr 82px;
  }
  .trust-dimension-track,
  .trust-dimension-confidence { grid-column: 1 / -1; }
}

.tap-start-shell .workspace-brand::before {
  animation: tap-brand-orbit 9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  transform-origin: center;
}

.tap-start-shell .workspace-brand:hover::before,
.tap-start-shell .workspace-brand:focus-visible::before {
  animation-duration: 1.4s;
}

@keyframes tap-brand-orbit {
  0%, 72% { transform: rotate(0deg); }
  88%, 100% { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .tap-start-shell .workspace-brand::before { animation: none; }
}

button.calendar-event {
  appearance: none;
  border: 0;
  font: inherit;
  text-align: left;
  width: 100%;
  cursor: pointer;
}

button.calendar-event:hover {
  filter: brightness(0.96);
}

/* TAP start screen - signed-in home */
.tap-start-body {
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 58%, #eef1f6 100%);
  background-size: 56px 56px, 56px 56px, 100% 100%;
}

.page-shell.with-side-nav.tap-start-shell {
  grid-template-columns: 276px minmax(0, 1fr);
  column-gap: clamp(28px, 3vw, 52px);
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 20px 28px 20px 12px;
}

.tap-start-shell > .tap-start-sidebar {
  margin: 0;
}

.tap-start-shell .workspace-nav {
  top: 20px;
  max-height: calc(100vh - 40px);
  padding: 16px;
  border-color: rgba(15, 41, 77, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 251, 0.94)),
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  box-shadow: 0 24px 52px rgba(15, 41, 77, 0.08);
}

.tap-start-shell .workspace-brand {
  min-height: 54px;
  width: 38px;
}

.tap-start-shell .workspace-brand::before {
  width: 38px;
  height: 38px;
  background-image: url("./trofiklogo.png");
}

.tap-start-shell .workspace-brand-mark {
  font-size: 24px;
}

.tap-start-shell .workspace-nav-main {
  gap: 18px;
}

.tap-start-shell .workspace-nav-cluster-label {
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.tap-start-shell .workspace-nav-group {
  border-color: rgba(15, 41, 77, 0.1);
  background: rgba(255, 255, 255, 0.76);
}

.tap-start-shell .workspace-nav-section-summary {
  min-height: 40px;
  font-size: 11px;
}

.tap-start-shell .workspace-nav-section-links {
  gap: 1px;
}

.tap-start-shell .workspace-nav-link {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 10.5px;
  line-height: 1.25;
}

.tap-start-main {
  min-width: 0;
  padding: 24px 0 72px;
}

.tap-start-hero h1 {
  margin: 0 0 18px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(48px, 4.3vw, 64px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
}

.tap-stage-explorer {
  display: grid;
  gap: 10px;
}

.tap-stage-tabs,
.tap-stage-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1vw, 16px);
}

.tap-stage-tab {
  position: relative;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  min-height: 116px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 41, 77, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 251, 0.94)),
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  color: var(--navy);
  font-family: var(--mono);
  font-size: clamp(15px, 1.45vw, 21px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(15, 41, 77, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.tap-stage-tab::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: transparent;
}

.tap-stage-tab .tap-stage-index {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(15, 41, 77, 0.18);
  border-radius: 50%;
  background: rgba(244, 179, 35, 0.1);
  color: var(--navy);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.tap-stage-tab span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.tap-stage-tab:hover {
  border-color: rgba(15, 41, 77, 0.42);
  background-color: #ffffff;
  transform: translateY(-2px);
}

.tap-stage-tab.is-active {
  border-color: var(--navy);
  background:
    linear-gradient(135deg, rgba(15, 41, 77, 0.98), rgba(17, 49, 84, 0.95)),
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 41, 77, 0.16);
}

.tap-stage-tab.is-active::after {
  background: var(--gold);
}

.tap-stage-tab.is-active .tap-stage-index {
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.96);
  color: var(--navy);
}

.tap-stage-tab:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.tap-stage-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid #d99a08;
  border-radius: 8px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--sans);
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.tap-stage-actions a:hover,
.tap-stage-actions a:focus-visible {
  border-color: #c88d05;
  background: #dfa10f;
  color: var(--navy);
  transform: translateY(-2px);
}

.tap-stage-actions.has-2-actions a:first-child {
  grid-column: 2;
}

.tap-stage-actions.has-2-actions a:last-child {
  grid-column: 3;
}

.tap-stage-actions:where(.has-3-actions) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tap-question-form {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 10px;
  min-height: 70px;
  overflow: hidden;
  border: 1px solid rgba(15, 41, 77, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(15, 41, 77, 0.05);
}

.tap-question-form:focus-within {
  border-color: rgba(244, 179, 35, 0.9);
  box-shadow: 0 0 0 3px rgba(244, 179, 35, 0.18);
}

.tap-question-form input {
  width: 100%;
  min-width: 0;
  height: 68px;
  padding: 0 82px 0 22px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--navy);
  font: 500 clamp(17px, 1.45vw, 21px)/1.3 var(--sans);
}

.tap-question-form input::placeholder {
  color: var(--steel);
  opacity: 1;
}

.tap-question-form input::-webkit-search-cancel-button {
  display: none;
}

.tap-question-form button {
  position: absolute;
  right: 13px;
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: var(--gold);
  color: var(--navy);
  cursor: pointer;
  opacity: 1;
  transform: none;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.tap-question-form button:hover {
  border-color: #dfa10f;
  background: #dfa10f;
  transform: translateY(-1px);
}

.tap-question-form button svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.tap-latest {
  margin-top: clamp(62px, 8vh, 92px);
}

.tap-latest-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.tap-latest h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(34px, 3vw, 46px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
}

.tap-latest-heading > a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(15, 41, 77, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--navy);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.tap-latest-heading > a:hover {
  border-color: rgba(244, 179, 35, 0.72);
  background: rgba(244, 179, 35, 0.12);
  text-decoration: none;
}

.tap-update-list {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid rgba(15, 41, 77, 0.13);
  color: var(--navy);
  list-style: none;
}

.tap-brief-card {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(15, 41, 77, 0.13);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.tap-brief-card strong {
  color: var(--navy);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.45;
}

.tap-brief-card span {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tap-brief-card a {
  width: fit-content;
  color: var(--navy);
  font-weight: 700;
  text-underline-offset: 3px;
}

.archetype-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(244, 179, 35, 0.42);
  border-radius: 12px;
  background: rgba(244, 179, 35, 0.08);
}

.archetype-action-bar > div:first-child {
  display: grid;
  gap: 5px;
}

.archetype-action-bar span {
  max-width: 680px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.tap-update-list li {
  position: relative;
  padding: 16px 10px 16px 32px;
  border-bottom: 1px solid rgba(15, 41, 77, 0.13);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.4;
}

.tap-update-list li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 24px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.tap-update-list a {
  color: inherit;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.tap-update-list a:hover {
  color: var(--steel);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 5px;
}

@media (max-width: 1180px) {
  .page-shell.with-side-nav.tap-start-shell {
    grid-template-columns: 244px minmax(0, 1fr);
    column-gap: 24px;
    padding-right: 20px;
  }

  .tap-stage-tab {
    min-height: 96px;
  }

  .tap-stage-actions a {
    min-height: 56px;
  }
}

@media (max-width: 980px) {
  .page-shell.with-side-nav.tap-start-shell {
    display: block;
    padding: 14px 18px 54px;
  }

  .tap-start-shell .workspace-nav {
    position: static;
    max-height: none;
    border-radius: 8px;
  }

  .tap-start-main {
    padding-top: 44px;
  }

  .tap-start-hero h1 {
    font-size: clamp(44px, 8vw, 64px);
  }
}

@media (max-width: 720px) {
  .tap-start-main {
    padding-top: 34px;
  }

  .tap-start-hero h1 {
    margin-bottom: 22px;
    font-size: clamp(39px, 12vw, 54px);
  }

  .tap-stage-tabs,
  .tap-stage-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tap-stage-tab {
    min-height: 84px;
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 14px;
    font-size: clamp(13px, 4vw, 17px);
  }

  .tap-stage-tab .tap-stage-index {
    width: 42px;
    height: 42px;
  }

  .tap-stage-actions a,
  .tap-stage-actions.has-2-actions a:first-child,
  .tap-stage-actions.has-2-actions a:last-child {
    grid-column: auto;
    min-height: 52px;
    font-size: 12px;
  }

  .tap-question-form {
    min-height: 66px;
  }

  .tap-question-form input {
    height: 64px;
    padding-left: 18px;
    font-size: 19px;
  }

  .tap-latest {
    margin-top: 52px;
  }

  .tap-latest-heading {
    align-items: flex-start;
  }

  .tap-latest h2 {
    font-size: 36px;
  }

  .tap-update-list {
    margin-top: 20px;
  }

  .tap-update-list li {
    font-size: 17px;
  }
}

@media (max-width: 440px) {
  .page-shell.with-side-nav.tap-start-shell {
    padding-inline: 12px;
  }

  .tap-stage-tabs,
  .tap-stage-actions {
    gap: 8px;
  }

  .tap-stage-tab {
    min-height: 72px;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
    font-size: 12px;
  }

  .tap-stage-tab .tap-stage-index {
    width: 34px;
    height: 34px;
    font-size: 9px;
  }

  .tap-stage-actions a {
    min-height: 48px;
    padding-inline: 8px;
    border-width: 1px;
    font-size: 11px;
  }

  .tap-question-form button {
    width: 44px;
    height: 44px;
    opacity: 1;
    transform: none;
  }

  .tap-question-form input {
    padding-right: 66px;
  }
}

/* July 31 research selection and governed document actions */
.research-landing {
  display: grid;
  gap: 24px;
  padding: clamp(20px, 3vw, 38px);
}

.research-landing-intro {
  max-width: 780px;
}

.research-landing-intro h3,
.research-section-head h3,
.research-custom-form h3 {
  margin: 4px 0 8px;
}

.research-section-head,
.research-section-actions,
.research-landing-actions,
.research-option-footer,
.ops-file-bulk-toolbar,
.ops-file-bulk-toolbar > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.research-option-grid,
.research-archetype-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.research-option-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: var(--paper-strong);
  text-align: left;
}

button.research-option-card {
  cursor: pointer;
}

.research-option-card.is-available {
  border-color: rgba(159, 90, 47, 0.32);
  box-shadow: 0 8px 24px rgba(15, 41, 77, 0.06);
}

.research-option-card.is-unavailable {
  opacity: 0.68;
}

.research-option-card h4,
.research-option-card strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 17px;
}

.research-option-card p,
.research-option-card span,
.research-option-card small,
.research-custom-form p {
  color: var(--ink-muted);
  line-height: 1.5;
}

.research-option-select,
.research-file-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.research-option-select input,
.research-file-row input,
.ops-file-select input {
  accent-color: var(--trofik-orange);
}

.research-option-status {
  color: var(--trofik-orange) !important;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.research-file-picker {
  display: grid;
  max-height: 380px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-strong);
}

.research-file-row {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}

.research-file-row:last-child {
  border-bottom: 0;
}

.research-file-row span {
  display: grid;
  gap: 3px;
}

.research-file-row.is-disabled {
  opacity: 0.58;
}

.research-custom-form {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(159, 90, 47, 0.28);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(244, 179, 35, 0.1), rgba(255, 255, 255, 0.86));
}

.research-custom-form .control-button {
  justify-self: start;
}

.ops-file-item {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.ops-file-item.is-selected {
  border-color: rgba(159, 90, 47, 0.45);
  background: rgba(244, 179, 35, 0.07);
}

.ops-file-select {
  padding-top: 4px;
}

.ops-file-bulk-toolbar {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-strong);
}

.citation-quality-button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.citation-quality-button.is-excluded {
  color: var(--positive);
}

@media (max-width: 760px) {
  .research-option-grid,
  .research-archetype-grid {
    grid-template-columns: 1fr;
  }

  .research-landing {
    padding: 18px;
  }

  .ops-file-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ops-file-actions {
    grid-column: 1 / -1;
  }
}

/* Public legal and trust pages */
.public-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
  padding: 34px clamp(22px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.78);
  background: #0f294d;
}

.public-footer-brand {
  display: grid;
  gap: 7px;
  font-size: 13px;
}

.public-footer-brand > a {
  width: fit-content;
  color: #fff;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
}

.public-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  justify-content: flex-end;
}

.public-footer-links a,
.form-privacy-note a {
  color: inherit;
  text-underline-offset: 3px;
}

.public-footer-links a:hover,
.public-footer-links a:focus-visible {
  color: #fff;
}

.form-privacy-note {
  margin: 0;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.55;
}

.legal-body {
  background: #f7f8fb;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(22px, 5vw, 72px);
  color: #fff;
  background: #0f294d;
}

.legal-header img {
  display: block;
  width: 138px;
  height: auto;
}

.legal-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 20px;
}

.legal-header nav a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  text-decoration: none;
}

.legal-header nav a[aria-current="page"],
.legal-header nav a:hover,
.legal-header nav a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-main {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 88px;
}

.legal-hero {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  max-width: 760px;
  margin: 8px 0 16px;
  font-family: var(--serif);
  font-size: clamp(40px, 7vw, 66px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.legal-hero > p:not(.legal-meta) {
  max-width: 720px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.65;
}

.legal-meta,
.legal-kicker {
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-content {
  display: grid;
  gap: 32px;
  min-width: 0;
  padding-top: 36px;
}

.legal-content section {
  min-width: 0;
  scroll-margin-top: 24px;
}

.legal-content h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 27px;
  letter-spacing: -0.025em;
}

.legal-content h3 {
  margin: 22px 0 8px;
  font-size: 16px;
}

.legal-content p,
.legal-content li {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.legal-content p {
  margin: 0 0 12px;
}

.legal-content ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.legal-callout {
  padding: 18px 20px;
  border: 1px solid rgba(244, 179, 35, 0.45);
  border-radius: 14px;
  background: rgba(244, 179, 35, 0.09);
}

.legal-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.legal-table th,
.legal-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  line-height: 1.55;
}

.legal-table th {
  color: var(--ink);
  background: rgba(15, 41, 77, 0.045);
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-status {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--accent-soft);
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .public-footer,
  .legal-header {
    display: grid;
  }

  .public-footer-links,
  .legal-header nav {
    justify-content: flex-start;
  }

  .legal-main {
    padding-top: 42px;
  }
}
