@layer legacy {
:root {
  --bg: #f3f5f2;
  --panel: #ffffff;
  --panel-soft: #f8f9f6;
  --ink: #121817;
  --muted: #66716d;
  --line: #dfe5df;
  --line-strong: #b9c4bc;
  --accent: #146a61;
  --accent-soft: #e7f2ef;
  --accent-alt: #3f607a;
  --danger: #9a3b36;
  --warning: #9a6a12;
  --ok: #176a3a;
  --shadow: 0 1px 1px rgba(18, 24, 23, 0.03), 0 14px 34px rgba(18, 24, 23, 0.055);
  --mono: "SFMono-Regular", "Roboto Mono", ui-monospace, monospace;
  --radius: 6px;
}

/* Markets & Theses: canonical Thesis Brief + Evidence Thread */
#view-market .market-thesis-thread-layout {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

#view-market .market-thesis-brief {
  display: grid;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(18, 24, 23, 0.035);
}

#view-market .market-brief-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

#view-market .market-brief-header h3 {
  max-width: 28ch;
  margin: 0;
  color: var(--ink);

}

#view-market .market-brief-header p {
  max-width: 72ch;
  margin: 7px 0 0;
  color: var(--muted);

}

#view-market .market-brief-state {
  min-width: 210px;
  display: grid;
  justify-items: end;
  gap: 4px;
  color: var(--muted);

}

#view-market .market-brief-state strong {
  padding: 4px 7px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);

}

#view-market .market-brief-state .market-folio-status {
  border: 0;
  padding: 0;
}

#view-market .market-current-view {
  max-width: 76ch;
}

#view-market .market-current-view h4,
#view-market .market-evidence-thread h4,
#view-market .market-brief-judgment h4,
#view-market .market-focus-next h4,
#view-market .market-lineage h4 {
  margin: 0 0 5px;
  color: var(--muted);

}

#view-market .market-current-view p {
  margin: 0;
  color: var(--ink);

}

#view-market .market-evidence-thread {
  display: grid;
  gap: 8px;
  outline: none;
}

#view-market .market-evidence-thread:focus-visible,
#view-market .market-evidence-source:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

#view-market .market-evidence-thread-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

#view-market .market-evidence-thread-head span {
  color: var(--muted);

}

#view-market .market-focus-sources {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#view-market .market-evidence-source {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
}

#view-market .market-evidence-source.is-unlinked {
  border-style: dashed;
}

#view-market .market-evidence-source p {
  margin: 0 0 7px;
  color: var(--ink);

}

#view-market .market-evidence-provenance,
#view-market .market-counterevidence-source {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 9px;
  color: var(--muted);

}

#view-market .market-evidence-provenance strong {
  color: var(--ink);
}

#view-market .market-evidence-provenance a,
#view-market .market-counterevidence-source a {
  color: var(--accent);

  text-underline-offset: 2px;
}

#view-market .market-additional-evidence {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
}

#view-market .market-additional-evidence > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--accent);
  cursor: pointer;

}

#view-market .market-additional-evidence > .market-evidence-source {
  margin-top: 4px;
}

#view-market .market-additional-evidence > .market-evidence-source + .market-evidence-source,
#view-market .market-additional-counterevidence > .market-evidence-source + .market-evidence-source {
  margin-top: 8px;
}

#view-market .market-additional-counterevidence {
  flex: 1 0 100%;
  border-top: 1px solid var(--line);
}

#view-market .market-additional-counterevidence > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--accent);
  cursor: pointer;

}

#view-market .market-additional-counterevidence > .market-evidence-source {
  margin-top: 4px;
  flex-basis: 100%;
}

#view-market .market-focus-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--panel-soft);
}

#view-market .market-focus-action button {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;

}

#view-market .market-focus-action button:disabled {
  border-color: var(--line-strong);
  background: var(--panel-soft);
  color: var(--muted);
  cursor: not-allowed;
}

#view-market .market-focus-action strong,
#view-market .market-focus-action p {
  margin: 0;
}

#view-market .market-focus-action strong {
  color: var(--ink);

}

#view-market .market-focus-action p {
  margin-top: 2px;
  color: var(--muted);

}

#view-market .market-brief-judgment {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

#view-market .market-brief-judgment > section {
  min-width: 0;
  padding: 13px 14px;
  border-right: 1px solid var(--line);
}

#view-market .market-brief-judgment > section:first-child {
  padding-left: 0;
}

#view-market .market-brief-judgment > section:last-child {
  padding-right: 0;
  border-right: 0;
}

#view-market .market-brief-judgment p {
  margin: 0 0 7px;
  color: var(--ink);

}

#view-market .market-focus-next {
  padding: 0;
  border: 0;
  background: transparent;
}

#view-market .market-focus-next strong {
  display: block;
  max-width: 72ch;
  color: var(--ink);

}

#view-market .market-focus-decision {
  border-block: 1px solid var(--line);
  margin: 0;
  padding: 4px 0 10px;
}

#view-market .market-focus-decision > summary {
  align-items: center;
  color: var(--ink);
  display: flex;

  min-height: 44px;
}

#view-market .market-focus-decision .thesis-decision-options {
  gap: 8px;
  padding: 4px 0 8px;
}

#view-market .market-focus-decision .thesis-decision-action {
  min-height: 44px;
  padding: 8px 12px;
}

#view-market .market-focus-decision > small {
  color: var(--muted);
  display: block;

}

#view-market .market-lineage ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

#view-market .market-lineage li {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 3px;
  padding: 10px 11px;
  border-right: 1px solid var(--line);
}

#view-market .market-lineage li:last-child {
  border-right: 0;
}

#view-market .market-lineage li span,
#view-market .market-lineage li small {
  color: var(--muted);

}

#view-market .market-lineage li strong {
  color: var(--ink);

}

#view-market .market-thesis-field,
#view-market .market-method-freshness {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  box-shadow: none;
}

#view-market .market-thesis-field > summary,
#view-market .market-method-freshness > summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  color: var(--ink);
  cursor: pointer;

}

#view-market .market-thesis-field > summary strong,
#view-market .market-method-freshness > summary strong {
  color: var(--muted);

}

#view-market .thesis-portfolio-controls {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr);
  align-items: end;
  gap: 12px;
  padding: 12px 14px 8px;
  border-top: 1px solid var(--line);
}

#view-market .thesis-filter-group {
  display: flex;
  gap: 5px;
}

#view-market .thesis-filter-action,
#view-market .thesis-inspect-action {
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);

}

#view-market .thesis-filter-action.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

#view-market .thesis-portfolio-controls label {
  display: grid;
  gap: 4px;
  color: var(--muted);

}

#view-market .thesis-portfolio-controls input {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
}

#view-market .market-thesis-order-note {
  margin: 0;
  padding: 0 14px 10px;
  color: var(--muted);

}

#view-market .thesis-field-list {
  display: grid;
  border-top: 1px solid var(--line);
}

#view-market .thesis-field-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.3fr) minmax(180px, 1.2fr) minmax(200px, 1.4fr) 105px auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

#view-market .thesis-field-row:last-child {
  border-bottom: 0;
}

#view-market .thesis-field-identity,
#view-market .thesis-field-delta,
#view-market .thesis-field-falsifier,
#view-market .thesis-field-handoffs {
  min-width: 0;
  display: grid;
  gap: 3px;
}

#view-market .thesis-field-identity strong,
#view-market .thesis-field-row span {
  overflow-wrap: anywhere;
  color: var(--ink);

}

#view-market .thesis-field-row small {
  color: var(--muted);

}

#view-market .thesis-register-status {
  width: fit-content;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--panel-soft);
  color: var(--muted);

}

#view-market .market-method-body {
  display: grid;
  gap: 14px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

#view-market .market-method-stage-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

#view-market .market-method-stage-counts > div {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-right: 1px solid var(--line);
}

#view-market .market-method-stage-counts > div:last-child {
  border-right: 0;
}

#view-market .market-method-stage-counts span,
#view-market .market-method-stage-counts small {
  color: var(--muted);

}

#view-market .market-method-stage-counts strong {
  color: var(--ink);

}

#view-market .market-method-section {
  display: grid;
  gap: 8px;
}

#view-market .market-method-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

#view-market .market-method-section-head h4,
#view-market .market-method-section-head strong {
  margin: 0;

}

@media (max-width: 900px) {
  #view-market .thesis-portfolio-controls {
    grid-template-columns: 1fr;
  }

  #view-market .thesis-filter-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #view-market .thesis-field-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
  }

  #view-market .thesis-field-identity,
  #view-market .thesis-field-delta,
  #view-market .thesis-field-falsifier,
  #view-market .thesis-field-handoffs {
    grid-column: 1;
  }

  #view-market .thesis-inspect-action {
    align-self: center;
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 760px) {
  #view-market .market-thesis-thread-layout {
    gap: 10px;
  }

  #view-market .market-thesis-brief {
    gap: 12px;
    padding: 15px 14px;
    border-radius: 10px;
  }

  #view-market .market-brief-header {
    grid-template-columns: 1fr;
    gap: 9px;
    padding-bottom: 10px;
  }

  #view-market .market-brief-header h3 {
    max-width: none;

  }

  #view-market .market-brief-header p {
    margin-top: 5px;

  }

  #view-market .market-brief-state {
    min-width: 0;
    grid-template-columns: auto 1fr;
    justify-items: start;
    gap: 4px 8px;
  }

  #view-market .market-brief-state span:last-child {
    grid-column: 1 / -1;
  }

  #view-market .market-current-view p {

  }

  #view-market .market-focus-sources {
    grid-template-columns: 1fr;
  }

  #view-market .market-evidence-source {
    padding: 9px 10px;
  }

  #view-market .market-focus-action {
    grid-template-columns: 1fr;
    gap: 7px;
    order: 3;
    padding: 9px 10px;
  }

  #view-market .market-current-view {
    order: 1;
  }

  #view-market .market-evidence-thread {
    order: 2;
  }

  #view-market .market-brief-judgment {
    order: 4;
  }

  #view-market .market-focus-next {
    order: 5;
  }

  #view-market .market-focus-decision {
    order: 6;
  }

  #view-market .market-lineage {
    order: 7;
  }

  #view-market .market-focus-action button {
    width: 100%;
  }

  #view-market .market-brief-judgment,
  #view-market .market-lineage ol,
  #view-market .market-method-stage-counts {
    grid-template-columns: 1fr;
  }

  #view-market .market-brief-judgment > section,
  #view-market .market-brief-judgment > section:first-child,
  #view-market .market-brief-judgment > section:last-child,
  #view-market .market-lineage li,
  #view-market .market-method-stage-counts > div {
    padding: 10px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  #view-market .market-brief-judgment > section:last-child,
  #view-market .market-lineage li:last-child,
  #view-market .market-method-stage-counts > div:last-child {
    border-bottom: 0;
  }

  #view-market .market-lineage li,
  #view-market .market-method-stage-counts > div {
    padding-inline: 10px;
  }

  #view-market .thesis-portfolio-controls {
    grid-template-columns: 1fr;
  }

  #view-market .thesis-filter-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #view-market .thesis-field-row {
    grid-template-columns: 1fr auto;
    gap: 8px 10px;
  }

  #view-market .thesis-field-identity,
  #view-market .thesis-field-delta,
  #view-market .thesis-field-falsifier,
  #view-market .thesis-field-handoffs {
    grid-column: 1;
  }

  #view-market .thesis-inspect-action {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
}

/* Protected stakeholder walkthrough: the same canonical data, framed read-only. */
.stakeholder-presentation-boundary {
  align-items: center;
  background: #101614;
  border-radius: 6px;
  color: #ffffff;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 0 28px;
  min-height: 52px;
  padding: 12px 18px;
}

.stakeholder-presentation-boundary[hidden] {
  display: none;
}

.stakeholder-presentation-boundary strong {

}

.stakeholder-presentation-boundary span {
  color: #dce8e3;

}

html.stakeholder-presentation,
html.stakeholder-presentation body {
  background: var(--bg);
}

.stakeholder-presentation .app-shell {
  display: block;
}

.stakeholder-presentation .sidebar,
.stakeholder-presentation .ops-drawer,
.stakeholder-presentation .action-status,
.stakeholder-presentation #primary-decision-banner,
.stakeholder-presentation #metrics,
.stakeholder-presentation .today-attention-rail,
.stakeholder-presentation #today-secondary-work,
.stakeholder-presentation .today-support,
.stakeholder-presentation .stakeholder-interaction-actions,
.stakeholder-presentation .source-run,
.stakeholder-presentation #run-evals {
  display: none !important;
}

.stakeholder-presentation main {
  margin: 0 auto;
  max-width: 1920px;
  min-height: 100vh;
  padding: 44px 96px 72px;
}

.stakeholder-presentation .topbar {
  align-items: end;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 30px;
  padding-bottom: 22px;
}

.stakeholder-presentation .page-heading h2 {

}

.stakeholder-presentation .page-subtitle {

  max-width: 70ch;
}

.stakeholder-presentation .role-mode-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 20px;
  width: min(100%, 1220px);
}

html.stakeholder-presentation .topbar .role-mode-strip {
  display: grid !important;
}

.stakeholder-presentation .role-mode-button {
  min-height: 58px;
  padding: 10px 14px;
}

.stakeholder-presentation .role-mode-button span {

}

.stakeholder-presentation .role-mode-button small {

}

.stakeholder-presentation .today-home-header {
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 26px;
}

.stakeholder-presentation #today-generated,
.stakeholder-presentation .today-mode {
  display: none;
}

.stakeholder-presentation .today-home-heading h3 {

}

.stakeholder-presentation .today-home-heading p {

  max-width: 72ch;
}

.stakeholder-presentation .today-workbench {
  display: block;
}

.stakeholder-presentation .today-primary-action {
  border-color: var(--line-strong);
  max-width: none;
  padding: 28px 32px 30px;
}

.stakeholder-presentation .today-primary-heading h4 {

}

.stakeholder-presentation .today-primary-state span {

}

.today-question-sequence {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.today-question-sequence > div {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 16px 20px 16px 0;
}

.today-question-sequence > div:nth-child(even) {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}

.today-question-sequence span {
  color: var(--muted);

}

.today-question-sequence strong {
  color: var(--ink);

}

.stakeholder-presentation .today-question-sequence {
  margin-top: 26px;
}

.stakeholder-presentation .today-question-sequence > div {
  gap: 8px;
  min-height: 126px;
  padding: 22px 28px 22px 0;
}

.stakeholder-presentation .today-question-sequence > div:nth-child(even) {
  padding-left: 28px;
}

.stakeholder-presentation .today-question-sequence span,
.stakeholder-presentation .today-primary-next span {

}

.stakeholder-presentation .today-question-sequence strong,
.stakeholder-presentation .today-primary-next strong {

}

.stakeholder-presentation .today-primary-next {
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr) auto;
}

.stakeholder-presentation .today-primary-route {

  min-height: 54px;
  min-width: 190px;
}

.stakeholder-presentation .view.active > :is(.market-stage-flow, .target-command-center, .transformation-command-center),
.stakeholder-presentation .view.active .panel,
.stakeholder-presentation .view.active .list-item,
.stakeholder-presentation .view.active .proof-reader-card {

}

.stakeholder-presentation .view.active h3 {

}

.stakeholder-presentation .view.active h4 {

}

.stakeholder-presentation .view.active p {

}

@media (max-width: 900px) {
  html.stakeholder-presentation .topbar .role-mode-strip {
    display: none !important;
  }

  .stakeholder-presentation main {
    padding: 24px 28px 48px;
  }

  .stakeholder-presentation-boundary,
  .stakeholder-presentation .topbar {
    align-items: start;
  }

  .stakeholder-presentation-boundary {
    display: grid;
    gap: 6px;
  }

  .stakeholder-presentation .role-mode-strip {
    grid-template-columns: 1fr;
  }

  .today-question-sequence,
  .stakeholder-presentation .today-question-sequence {
    grid-template-columns: 1fr;
  }

  .today-question-sequence > div:nth-child(even),
  .stakeholder-presentation .today-question-sequence > div:nth-child(even) {
    border-left: 0;
    padding-left: 0;
  }
}

[hidden] {
  display: none !important;
}

/* Agency95 redesign pass: premium evidence cockpit, table-first, low-noise. */
:root {
  --bg: #f5f7f6;
  --panel: #ffffff;
  --panel-soft: #f8faf8;
  --ink: #0d1412;
  --muted: #66706c;
  --line: #dde2de;
  --line-strong: #c3cbc5;
  --accent: #064f43;
  --accent-soft: #e8f2ee;
  --accent-alt: #8b6a20;
  --danger: #943a35;
  --warning: #74500a;
  --ok: #10683d;
  --shadow: 0 1px 0 rgba(13, 20, 18, 0.04), 0 22px 62px rgba(26, 37, 34, 0.055);
  --radius: 6px;
}

body {
  background: var(--bg);
  color: var(--ink);

}

.app-shell {
  grid-template-columns: 244px minmax(0, 1fr);
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(9, 80, 68, 0.24), rgba(6, 15, 17, 0) 42%),
    #071115;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8fbfa;
  padding: 24px 16px;
}

.brand {
  align-items: flex-start;
  gap: 12px;
  padding: 2px 2px 12px;
}

.brand-mark {
  background: transparent;
  border-color: rgba(209, 178, 96, 0.72);
  color: #f7edd3;
  height: 38px;
  width: 38px;
}

.brand h1 {

}

.brand p {
  color: #9eaaa5;

}

nav {
  gap: 18px;
}

.nav-section-label,
.nav-group-label {
  color: #8a9993;

}

.nav-item {
  color: #d7dfdc;

  padding: 10px 11px;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.115);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055);
}

.nav-item.active::before {
  background: #d1b260;
  inset: 9px auto 9px -1px;
  width: 3px;
}

.nav-drawer {
  border-top-color: rgba(255, 255, 255, 0.13);
}

.nav-drawer summary {
  color: #c1cac6;
  padding: 8px 10px;
}

.sidebar-footer {
  color: #aeb9b5;
}

main {
  padding: 30px 34px 44px;
}

.topbar {
  align-items: flex-start;
  border-bottom: 0;
  margin-bottom: 18px;
  padding-bottom: 0;
}

.page-heading {
  gap: 5px;
  max-width: 920px;
}

.topbar h2 {

}

.page-subtitle {
  color: #596460;

  max-width: 760px;
}

.section-label {
  color: #48685f;

}

.ops-drawer {
  min-width: 254px;
}

.ops-drawer summary {
  background: #fff;
  border-color: var(--line);
  min-height: 38px;
  padding: 8px 11px;
}

.ops-drawer summary span {

}

.ops-drawer summary small {
  color: #7b8581;
}

.action-status {
  background: #ffffff;
  border-color: var(--line);
  border-left-color: #c8a24a;
  box-shadow: none;
  color: #5d6763;
  margin-bottom: 12px;
}

.action-status strong {
  color: var(--ink);
}

.metrics {
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.metric {
  background: #fff;
  border-color: var(--line);
  border-radius: var(--radius);
  min-height: 72px;
  padding: 14px 15px;
}

.metric.primary {
  background: #08231e;
  border-color: #08231e;
}

.metric.needs-attention {
  background: #fffaf0;
  border-color: #dfc782;
}

.metric span {
  color: #65706c;

}

.metric.primary span {
  color: #b5c2be;
}

.metric strong {

}

.overview-shell {
  align-items: start;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 318px;
}

.overview-rail {
  order: 0;
  position: sticky;
  top: 24px;
}

.rail-panel {
  display: block;
}

.rail-panel .panel-header {
  align-items: flex-start;
  background: #fff;
  border-bottom: 1px solid var(--line);
  border-right: 0;
  display: flex;
}

.rail-stack {
  display: grid;
  grid-template-columns: 1fr;
}

.rail-section {
  border-left: 0;
  border-top: 1px solid var(--line);
  min-height: auto;
  padding: 16px;
}

.rail-section:first-child {
  border-top: 0;
}

.rail-section > span,
.rail-facts span {
  color: #6a746f;

}

.rail-section strong {
  display: block;

}

.rail-section p {
  color: #66706c;

}

.rail-facts {
  grid-template-columns: 1fr;
}

.rail-facts div {
  background: #f8faf8;
  border-color: var(--line);
  padding: 9px 10px;
}

.panel {
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.target-workbench.panel,
.overview-rail .panel {
  box-shadow: 0 1px 0 rgba(13, 20, 18, 0.04), 0 24px 70px rgba(13, 20, 18, 0.06);
}

.panel-header {
  background: #fff;
  padding: 18px 18px;
}

.panel-header h3 {

}

.mini-note {
  color: #6b7571;
}

.target-tools {
  background: #fbfcfb;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 280px) minmax(150px, 190px);
  padding: 12px;
}

input[type="search"],
select {
  border-color: var(--line);
  color: var(--ink);
  min-height: 40px;
}

table {

}

th {
  background: #fbfcfb;
  color: #5d6763;

  padding: 12px 16px;

}

td {
  padding: 15px 16px;
  vertical-align: middle;
}

tr.target-row:hover {
  background: #f7faf8;
}

tr.target-row.selected {
  background: #edf6f2;
  box-shadow: inset 3px 0 0 var(--accent);
}

.target-name {

}

td .muted {
  color: #69736e;

  margin-top: 3px;
}

td strong {

}

.domain-mini {
  border-top: 1px solid #edf0ed;
  margin-top: 8px;
  padding-top: 7px;
}

.domain-mini .pill {
  margin-right: 5px;
}

.pill {
  border-radius: 5px;

  padding: 3px 7px;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: left;
  white-space: normal;
}

.target-workbench .pill,
.metrics .pill,
.rail-panel .pill {
  white-space: nowrap;
}

.list-item h4 .pill,
.source-intake-header .pill,
.workflow-card-top .pill,
.transform-card-top .pill,
.method-card-top .pill,
.request-card-top .pill,
.source-record-card-head .pill,
.routine-card-top .pill {
  flex: 0 0 auto;
}

.source-record-card-head .pill,
.routine-card-top .pill {
  max-width: 164px;
  white-space: normal;
}

.pill.good {
  background: #e8f4ee;
  border-color: #c6dfd0;
  color: #0f623b;
}

.pill.warn {
  background: #fbf5e4;
  border-color: #e7d5a3;
  color: #76551a;
}

.pill.bad {
  background: #fae9e6;
  border-color: #ecc9c5;
  color: #8e352f;
}

.list,
.eval-grid,
.firm-module-grid,
.workflow-coverage-grid,
.gate-grid,
.transform-card-grid,
.faq-grid,
.method-card-grid,
.thesis-grid,
.routine-grid,
.request-grid {
  gap: 10px;
  padding: 12px;
}

.list-item,
.eval-item,
.firm-module,
.workflow-card,
.gate-card,
.transform-card,
.faq-card,
.method-card,
.thesis-card,
.routine-card,
.request-card,
.checklist-intro,
.source-intake-boundary,
.process-stage,
.process-state-card,
.tier-card {
  background: #fff;
  border-color: var(--line);
  box-shadow: none;
}

.list-item p,
.eval-item p,
.firm-module p,
.workflow-card p,
.gate-card p,
.transform-card p,
.faq-card p,
.method-card p,
.thesis-card p,
.routine-card p,
.request-card p,
.source-intake-proof,
.source-intake-boundary {
  color: #646f6a;

}

.brief-layout .hero-panel,
.firm-layout .hero-panel,
#view-firm .hero-panel.panel,
.transform-layout .hero-panel,
.method-layout .hero-panel,
#view-method .hero-panel.panel,
#view-transformability .hero-panel.panel {
  background: #fff !important;
  border-color: var(--line) !important;
  color: var(--ink) !important;
}

.hero-panel .panel-header,
#view-method .hero-panel.panel .panel-header,
#view-transformability .hero-panel.panel .panel-header {
  background: #fff;
  border-bottom-color: var(--line);
}

.hero-panel .section-label,
#view-method .hero-panel .section-label,
#view-transformability .hero-panel .section-label {
  color: #48685f;
}

.hero-panel .mini-note,
#view-method .hero-panel .mini-note,
#view-transformability .hero-panel .mini-note {
  color: #6b7571;
}

.brief-headline,
#view-transformability .hero-panel .brief-headline,
.method-layout .brief-headline {
  color: var(--ink);

  padding: 0 18px 18px;
}

.hero-panel .firm-summary,
.hero-panel .brief-focus {
  padding: 0 18px 18px;
}

.focus-chip {
  background: #f8faf8;
  border-color: var(--line);
  color: #3a4843;
}

.firm-stat,
.firm-layout .hero-panel .firm-stat,
#view-method .hero-panel .firm-stat,
#view-transformability .hero-panel .firm-stat,
.source-intake-panel .firm-stat,
.source-owner-request-panel .firm-stat,
.source-owner-outcome-scaffold-panel .firm-stat,
.source-movement-gate-panel .firm-stat,
.source-intake-scaffolds-panel .firm-stat {
  background: #f9fbf9;
  border-color: var(--line);
  color: var(--ink);
}

.firm-stat span,
.firm-layout .hero-panel .firm-stat span,
#view-method .hero-panel .firm-stat span,
#view-transformability .hero-panel .firm-stat span,
.source-intake-panel .firm-stat span,
.source-owner-request-panel .firm-stat span,
.source-owner-outcome-scaffold-panel .firm-stat span,
.source-movement-gate-panel .firm-stat span,
.source-intake-scaffolds-panel .firm-stat span {
  color: #6a746f;

}

.firm-stat strong,
.firm-layout .hero-panel .firm-stat strong,
#view-method .hero-panel .firm-stat strong,
#view-transformability .hero-panel .firm-stat strong,
.source-intake-panel .firm-stat strong,
.source-owner-request-panel .firm-stat strong,
.source-owner-outcome-scaffold-panel .firm-stat strong,
.source-movement-gate-panel .firm-stat strong,
.source-intake-scaffolds-panel .firm-stat strong {
  color: var(--ink);

}

.source-intake-panel,
.source-owner-request-panel,
.source-owner-outcome-scaffold-panel,
.source-movement-gate-panel,
.source-intake-scaffolds-panel {
  padding: 18px;
}

.source-intake-header h3 {

}

.subhead,
.mini-list strong,
.module-columns strong,
.source-record-list > strong {
  color: #3b4844;

}

.mini-list span,
.module-columns span {
  color: #626d68;
}

.source-path {
  background: #f7f9f7;
  color: #5c6863;

}

.target-modal-backdrop {
  background: rgba(6, 15, 17, 0.58);
}

.target-modal-card {
  box-shadow: 0 34px 100px rgba(6, 15, 17, 0.34);
}

.target-detail-summary {
  background: rgba(255, 255, 255, 0.97);
}

@media (min-width: 1500px) {
  .overview-shell {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .overview-rail {
    order: 0;
    position: sticky;
  }

  .rail-stack,
  .rail-facts {
    grid-template-columns: 1fr;
  }

  .rail-section,
  .rail-section:first-child {
    border-left: 0;
  }

  .rail-section {
    border-top: 1px solid var(--line);
  }

  .rail-section:first-child {
    border-top: 0;
  }

  .target-workbench table,
  .target-workbench thead,
  .target-workbench tbody,
  .target-workbench tr,
  .target-workbench td {
    display: block;
    width: 100% !important;
  }

  .target-workbench thead {
    display: none;
  }

  .target-workbench tbody {
    display: grid;
    gap: 10px;
    padding: 10px;
  }

  .target-workbench tr.target-row {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    overflow: hidden;
  }

  .target-workbench tr.target-row.selected {
    box-shadow: inset 3px 0 0 var(--accent);
  }

  .target-workbench td {
    align-items: start;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 6px 10px;
    grid-template-columns: minmax(76px, 0.38fr) minmax(0, 1fr);
    overflow-wrap: anywhere;
    padding: 10px 12px;
  }

  .target-workbench td:last-child {
    border-bottom: 0;
  }

  .target-workbench td::before {
    color: #68736e;
    content: "";

  }

  .target-workbench td:nth-child(1)::before { content: "Target"; }
  .target-workbench td:nth-child(2)::before { content: "Status"; }
  .target-workbench td:nth-child(3)::before { content: "Proof gap"; }
  .target-workbench td:nth-child(4)::before { content: "Score"; }
  .target-workbench td:nth-child(5)::before { content: "Next step"; }

  .target-workbench th:nth-child(6),
  .target-workbench td:nth-child(6) {
    display: none !important;
  }

  .rail-panel {
    display: block;
    grid-template-columns: 1fr;
  }

  .rail-panel .panel-header {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .rail-stack,
  .rail-facts {
    grid-template-columns: 1fr;
  }

  .rail-section {
    min-height: 0;
  }

  .target-title,
  .list-item h4,
  .list-item-head {
    min-width: 0;
  }

  .list-item h4,
  .list-item-head {
    flex-wrap: wrap;
  }

  .list-item h4 .pill,
  .list-item-head .pill {
    margin-left: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }
}

/* Agency96 final cascade lock: keep the live target queue above legacy dashboard rules. */
main {
  padding: 28px 36px 44px;
}

.topbar {
  margin-bottom: 12px;
}

.topbar h2 {

}

.metrics {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(13, 20, 18, 0.04), 0 18px 52px rgba(13, 20, 18, 0.045);
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
  overflow: hidden;
}

.metric {
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--line);
  box-shadow: none;
  min-height: 66px;
  padding: 12px 16px;
}

.metric:last-child {
  border-right: 0;
}

.metric.primary {
  background: #0b1a17;
  border-color: #0b1a17;
}

.metric.needs-attention {
  background: #fffaf0;
}

.metric strong {

}

/* Partnerfocus pass: top metrics explain action posture, not raw database volume. */
.metric {
  align-content: center;
  display: grid;
  gap: 3px;
}

.metric strong {

  overflow-wrap: anywhere;
}

.metric small {
  color: #69736f;
  display: block;

  max-width: 24ch;
}

.metric.primary small {
  color: #bac6c2;
}

.metric.needs-attention small {
  color: #74602f;
}

.overview-shell.target-cockpit {
  align-items: start;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.target-workbench.panel,
.overview-rail .panel {
  border: 1px solid #dce3dd;
  box-shadow: 0 1px 0 rgba(13, 20, 18, 0.04), 0 28px 86px rgba(13, 20, 18, 0.065);
}

.target-workbench.panel {
  overflow: hidden;
}

.target-workbench .panel-header {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 20px 22px 16px;
}

.target-workbench .panel-header h3 {

}

.target-tools {
  background: #f8faf7;
  border-bottom: 1px solid var(--line);
  gap: 10px;
  grid-template-columns: minmax(250px, 1fr) minmax(178px, 220px) minmax(132px, 156px);
  padding: 12px 16px;
}

.target-tools input,
.target-tools select {
  background: #ffffff;
  border: 1px solid #d8dfd9;
  border-radius: 5px;
  box-shadow: none;

  min-height: 38px;
}

.target-queue-shell {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfa 100%);
  padding: 8px 10px 10px;
}

.target-queue-head,
.target-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(160px, 1.18fr) 120px 126px 112px minmax(210px, 1.6fr);
}

.target-queue-head {
  color: #6c7671;

  padding: 9px 12px;
}

.target-queue {
  display: grid;
  gap: 7px;
}

.target-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #e2e8e2;
  border-radius: 7px;
  color: var(--ink);
  cursor: pointer;
  min-height: 78px;
  padding: 12px;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.proof-cell .queue-subtle {
  display: none;
}

.next-cell strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.target-row:hover,
.target-row:focus-visible {
  background: #ffffff;
  border-color: #bdcfc3;
  box-shadow: 0 10px 28px rgba(13, 20, 18, 0.07);
  outline: 0;
}

.target-row.selected {
  background: #f2f8f4;
  border-color: #7fa995;
  box-shadow: inset 3px 0 0 var(--accent), 0 10px 30px rgba(13, 20, 18, 0.06);
}

.target-row-main,
.queue-cell {
  min-width: 0;
}

.target-row-main {
  display: grid;
  gap: 4px;
}

.queue-eyebrow,
.queue-label,
.queue-subtle {
  color: #68736e;
  display: block;

}

.queue-eyebrow {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.target-row-main .target-name {
  color: #0c1412;

}

.queue-label {
  display: none;

}

.queue-cell > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.queue-cell strong {
  color: #111816;

}

.queue-subtle {
  color: #67716d;
  overflow: hidden;
}

.score-kpi {
  color: #0d1412;

}

.score-meter {
  background: #e7ece7;
  border-radius: 99px;
  display: block;
  height: 4px;
  overflow: hidden;
  width: 82px;
}

.score-meter span {
  background: linear-gradient(90deg, #c58c32, var(--accent));
  display: block;
  height: 100%;
}

.target-empty {
  color: #68736e;

  padding: 24px 14px;
}

.target-discovery-list {
  border-block: 1px solid var(--line);
  margin-top: 16px;
  padding: 18px 0 20px;
}

.target-discovery-header {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.target-discovery-header > * {
  min-width: 0;
}

.target-discovery-header h4 {

  margin: 2px 0 0;
  text-wrap: balance;
}

.target-discovery-header > strong {
  color: var(--accent);

  text-align: right;
}

.target-discovery-summary {
  color: var(--muted);

  margin: 8px 0 0;
  max-width: 75ch;
}

.target-discovery-filters {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

.target-discovery-filter {
  align-items: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  display: grid;
  gap: 3px;
  min-height: 68px;
  padding: 10px 11px;
  text-align: left;
}

.target-discovery-filter:hover {
  background: var(--panel-soft);
  border-color: var(--line-strong);
}

.target-discovery-filter.active {
  background: var(--accent-soft);
  border-color: rgba(6, 79, 67, 0.38);
  box-shadow: inset 0 0 0 1px rgba(6, 79, 67, 0.08);
}

.target-discovery-filter strong {
  color: var(--accent);

}

.target-discovery-filter span {
  color: var(--ink);

}

.target-discovery-tools {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  max-width: 720px;
}

.target-discovery-tools > label {
  color: var(--ink);

}

.target-discovery-tools > div {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.target-discovery-tools input {
  min-width: 0;
}

.target-discovery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 14px;
}

.target-discovery-card {
  align-content: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 13px 14px;
}

.target-discovery-result-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);

}

.target-discovery-card p {
  margin: 0;
  overflow-wrap: break-word;
}

.target-discovery-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.target-discovery-card-head > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.target-discovery-card-head strong {

  overflow-wrap: break-word;
}

.target-discovery-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);

}

@media (max-width: 760px) {
  .target-discovery-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .target-discovery-grid {
    grid-template-columns: 1fr;
  }

  .target-discovery-card-head,
  .target-discovery-header {
    display: grid;
  }

  .target-discovery-header > strong {
    text-align: left;
  }
}

.overview-rail {
  order: 0;
  position: sticky;
  top: 24px;
}

.overview-rail .rail-panel {
  background: #0a1715;
  border-color: #0a1715;
  color: #f8fbf8;
  display: block;
  overflow: hidden;
}

.overview-rail .rail-stack,
.overview-rail .rail-section {
  background: #0a1715;
}

.overview-rail .panel-header {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 0;
  padding: 20px;
}

.overview-rail .section-label {
  color: #b7c6c0;
}

.overview-rail h3,
.overview-rail .rail-section strong,
.overview-rail .rail-facts strong {
  color: #ffffff;
}

.overview-rail .pill {
  background: rgba(210, 178, 96, 0.14);
  border-color: rgba(210, 178, 96, 0.5);
  color: #f2d68c;
}

.rail-stack {
  display: grid;
  grid-template-columns: 1fr;
}

.rail-section {
  border-left: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  min-height: auto;
  padding: 18px 20px;
}

.rail-section:first-child {
  border-top: 0;
}

.rail-section > span,
.rail-facts span {
  color: #9fb0aa;

}

.rail-section strong {

}

.rail-section p {
  color: #bdc9c4;
}

.rail-facts {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}

.rail-facts div {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.pill {
  border-radius: 5px;
}

@media (min-width: 1181px) {
  .overview-shell.target-cockpit {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .overview-rail {
    order: 0;
    position: sticky;
  }

  .overview-rail .rail-panel {
    display: block;
  }

  .overview-rail .panel-header {
    border-right: 0;
  }

  .rail-stack,
  .rail-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  main {
    padding: 24px;
  }

  .overview-shell.target-cockpit {
    grid-template-columns: 1fr;
  }

  .overview-rail {
    order: -1;
    position: static;
  }

  .overview-rail .rail-panel {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .overview-rail .panel-header {
    border-bottom: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }

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

  .rail-section {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 0;
  }

  .rail-section:first-child {
    border-left: 0;
  }

  .target-queue-head,
  .target-row {
    grid-template-columns: minmax(170px, 1.2fr) 124px 136px minmax(220px, 1.3fr);
  }

  .target-queue-head span:nth-child(4),
  .proof-cell {
    display: none;
  }
}

@media (max-width: 820px) {
  main {
    padding: 18px 14px 30px;
  }

  .topbar h2 {

  }

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

  .metric:nth-child(2n) {
    border-right: 0;
  }

  .metric:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .overview-rail .rail-panel {
    grid-template-columns: 1fr;
  }

  .overview-rail .panel-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 0;
  }

  .rail-stack {
    grid-template-columns: 1fr;
  }

  .rail-section,
  .rail-section:first-child {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .rail-section:first-child {
    border-top: 0;
  }

  .target-tools {
    grid-template-columns: 1fr;
  }

  .target-queue-head {
    display: none;
  }

  .target-row {
    gap: 11px;
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .proof-cell {
    display: block;
  }

  .queue-label {
    display: block;
  }

  .queue-cell {
    display: grid;
    gap: 10px;
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .score-meter {
    width: 100%;
  }
}

/* Agency96 live correction: replace the table-first shell with a quieter target queue. */
main {
  padding: 28px 36px 44px;
}

.topbar {
  margin-bottom: 12px;
}

.topbar h2 {

}

.page-subtitle {
  color: #5e6864;

}

.metrics {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(13, 20, 18, 0.04), 0 18px 52px rgba(13, 20, 18, 0.045);
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
  overflow: hidden;
}

.metric {
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--line);
  box-shadow: none;
  min-height: 66px;
  padding: 12px 16px;
}

.metric:last-child {
  border-right: 0;
}

.metric.primary {
  background: #0b1a17;
  border-color: #0b1a17;
}

.metric.needs-attention {
  background: #fffaf0;
}

.metric strong {

}

.overview-shell.target-cockpit {
  align-items: start;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.target-workbench.panel,
.overview-rail .panel {
  border: 1px solid #dce3dd;
  box-shadow: 0 1px 0 rgba(13, 20, 18, 0.04), 0 28px 86px rgba(13, 20, 18, 0.065);
}

.target-workbench.panel {
  overflow: hidden;
}

.target-workbench .panel-header {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 20px 22px 16px;
}

.target-workbench .panel-header h3 {

}

.target-tools {
  background: #f8faf7;
  border-bottom: 1px solid var(--line);
  gap: 10px;
  grid-template-columns: minmax(250px, 1fr) minmax(178px, 220px) minmax(132px, 156px);
  padding: 12px 16px;
}

.target-tools input,
.target-tools select {
  background: #ffffff;
  border: 1px solid #d8dfd9;
  border-radius: 5px;
  box-shadow: none;

  min-height: 38px;
}

.target-queue-shell {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfa 100%);
  padding: 8px 10px 10px;
}

.target-queue-head,
.target-row {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 1.25fr) 128px 142px 150px minmax(230px, 1.35fr);
}

.target-queue-head {
  color: #6c7671;

  padding: 9px 12px;
}

.target-queue {
  display: grid;
  gap: 7px;
}

.target-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #e2e8e2;
  border-radius: 7px;
  color: var(--ink);
  cursor: pointer;
  min-height: 78px;
  padding: 12px;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.target-row:hover,
.target-row:focus-visible {
  background: #ffffff;
  border-color: #bdcfc3;
  box-shadow: 0 10px 28px rgba(13, 20, 18, 0.07);
  outline: 0;
}

.target-row.selected {
  background: #f2f8f4;
  border-color: #7fa995;
  box-shadow: inset 3px 0 0 var(--accent), 0 10px 30px rgba(13, 20, 18, 0.06);
}

.target-row-main,
.queue-cell {
  min-width: 0;
}

.target-row-main {
  display: grid;
  gap: 4px;
}

.queue-eyebrow,
.queue-label,
.queue-subtle {
  color: #68736e;
  display: block;

}

.queue-eyebrow {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.target-row-main .target-name {
  color: #0c1412;

}

.queue-label {
  display: none;

}

.queue-cell > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.queue-cell strong {
  color: #111816;

}

.queue-subtle {
  color: #67716d;
  overflow: hidden;
}

.score-kpi {
  color: #0d1412;

}

.score-meter {
  background: #e7ece7;
  border-radius: 99px;
  display: block;
  height: 4px;
  overflow: hidden;
  width: 82px;
}

.score-meter span {
  background: linear-gradient(90deg, #c58c32, var(--accent));
  display: block;
  height: 100%;
}

.target-empty {
  color: #68736e;

  padding: 24px 14px;
}

.overview-rail {
  order: 0;
  position: sticky;
  top: 24px;
}

.overview-rail .rail-panel {
  background: #0a1715;
  border-color: #0a1715;
  color: #f8fbf8;
  display: block;
  overflow: hidden;
}

.overview-rail .panel-header {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 0;
  padding: 20px;
}

.overview-rail .section-label {
  color: #b7c6c0;
}

.overview-rail h3,
.overview-rail .rail-section strong,
.overview-rail .rail-facts strong {
  color: #ffffff;
}

.overview-rail .pill {
  background: rgba(210, 178, 96, 0.14);
  border-color: rgba(210, 178, 96, 0.5);
  color: #f2d68c;
}

.rail-stack {
  display: grid;
  grid-template-columns: 1fr;
}

.rail-section {
  border-left: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  min-height: auto;
  padding: 18px 20px;
}

.rail-section:first-child {
  border-top: 0;
}

.rail-section > span,
.rail-facts span {
  color: #9fb0aa;

}

.rail-section strong {

}

.rail-section p {
  color: #bdc9c4;
}

.rail-facts {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}

.rail-facts div {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.pill {
  border-radius: 5px;
}

@media (min-width: 1181px) {
  .overview-shell.target-cockpit {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .overview-rail {
    order: 0;
    position: sticky;
  }

  .overview-rail .rail-panel {
    display: block;
  }

  .overview-rail .panel-header {
    border-right: 0;
  }

  .rail-stack,
  .rail-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  main {
    padding: 24px;
  }

  .overview-shell.target-cockpit {
    grid-template-columns: 1fr;
  }

  .overview-rail {
    order: -1;
    position: static;
  }

  .overview-rail .rail-panel {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .overview-rail .panel-header {
    border-bottom: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }

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

  .rail-section {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 0;
  }

  .rail-section:first-child {
    border-left: 0;
  }

  .target-queue-head,
  .target-row {
    grid-template-columns: minmax(170px, 1.2fr) 124px 136px minmax(220px, 1.3fr);
  }

  .target-queue-head span:nth-child(4),
  .proof-cell {
    display: none;
  }
}

@media (max-width: 820px) {
  main {
    padding: 18px 14px 30px;
  }

  .topbar h2 {

  }

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

  .metric:nth-child(2n) {
    border-right: 0;
  }

  .metric:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .overview-rail .rail-panel {
    grid-template-columns: 1fr;
  }

  .overview-rail .panel-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 0;
  }

  .rail-stack {
    grid-template-columns: 1fr;
  }

  .rail-section,
  .rail-section:first-child {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .rail-section:first-child {
    border-top: 0;
  }

  .target-tools {
    grid-template-columns: 1fr;
  }

  .target-queue-head {
    display: none;
  }

  .target-row {
    gap: 11px;
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .proof-cell {
    display: block;
  }

  .queue-label {
    display: block;
  }

  .queue-cell {
    display: grid;
    gap: 10px;
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .score-meter {
    width: 100%;
  }
}

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

  .overview-rail {
    order: -1;
    position: static;
  }

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

  .rail-section {
    border-left: 1px solid var(--line);
    border-top: 0;
  }

  .rail-section:first-child {
    border-left: 0;
  }
}

@media (max-width: 760px) {
  main {
    padding: 18px 14px 28px;
  }

  .topbar h2 {

  }

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

  .target-tools,
  .rail-stack {
    grid-template-columns: 1fr;
  }

  .pill,
  .target-workbench .pill,
  .metrics .pill,
  .rail-panel .pill {
    white-space: normal;
  }

  .firm-module-top .pill,
  .list-item h4 .pill,
  .routine-card-top .pill {
    flex: 0 0 auto;
  }

  .target-workbench table,
  .target-workbench thead,
  .target-workbench tbody,
  .target-workbench tr,
  .target-workbench td {
    display: block;
    width: 100%;
  }

  .target-workbench thead {
    display: none;
  }

  .target-workbench tbody {
    display: grid;
    gap: 10px;
    padding: 10px;
  }

  .target-workbench tr.target-row {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 0;
    overflow: hidden;
  }

  .target-workbench tr.target-row.selected {
    box-shadow: inset 3px 0 0 var(--accent);
  }

  .target-workbench td {
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 4px;
    padding: 10px 12px;
  }

  .target-workbench td:last-child {
    border-bottom: 0;
  }

  .target-workbench td::before {
    color: #68736e;
    content: "";

  }

  .target-workbench td:nth-child(1)::before { content: "Target"; }
  .target-workbench td:nth-child(2)::before { content: "Status"; }
  .target-workbench td:nth-child(3)::before { content: "Proof gap"; }
  .target-workbench td:nth-child(4)::before { content: "Score"; }
  .target-workbench td:nth-child(5)::before { content: "Next step"; }

  .target-workbench th:nth-child(6),
  .target-workbench td:nth-child(6) {
    display: none;
  }

  .rail-section,
  .rail-section:first-child {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .rail-section:first-child {
    border-top: 0;
  }

  .target-workbench table,
  .target-workbench thead,
  .target-workbench tbody,
  .target-workbench tr,
  .target-workbench td,
  .target-workbench th:nth-child(1),
  .target-workbench td:nth-child(1),
  .target-workbench th:nth-child(2),
  .target-workbench td:nth-child(2),
  .target-workbench th:nth-child(3),
  .target-workbench td:nth-child(3),
  .target-workbench th:nth-child(4),
  .target-workbench td:nth-child(4),
  .target-workbench th:nth-child(5),
  .target-workbench td:nth-child(5) {
    width: 100% !important;
  }

  .target-workbench table,
  .target-workbench thead,
  .target-workbench tbody,
  .target-workbench tr,
  .target-workbench td {
    display: block;
  }

  .target-workbench thead {
    display: none;
  }

  .target-workbench tbody {
    display: grid;
    gap: 10px;
    padding: 10px;
  }

  .target-workbench tr.target-row {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    overflow: hidden;
  }

  .target-workbench tr.target-row.selected {
    box-shadow: inset 3px 0 0 var(--accent);
  }

  .target-workbench td {
    align-items: start;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 6px;
    grid-template-columns: 1fr;
    overflow-wrap: anywhere;
    padding: 10px 12px;
  }

  .target-workbench td:last-child {
    border-bottom: 0;
  }

  .target-workbench td::before {
    color: #68736e;
    content: "";

  }

  .target-workbench td:nth-child(1)::before { content: "Target"; }
  .target-workbench td:nth-child(2)::before { content: "Status"; }
  .target-workbench td:nth-child(3)::before { content: "Proof gap"; }
  .target-workbench td:nth-child(4)::before { content: "Score"; }
  .target-workbench td:nth-child(5)::before { content: "Next step"; }

  .target-workbench th:nth-child(6),
  .target-workbench td:nth-child(6) {
    display: none !important;
  }

  .target-title,
  .list-item h4,
  .list-item-head {
    min-width: 0;
  }

  .list-item h4,
  .list-item-head {
    flex-wrap: wrap;
  }

  .list-item h4 .pill,
  .list-item-head .pill {
    margin-left: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);

}

body.login-page {
  background: #101917;
}

button,
input,
select {

}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
}

.sidebar {
  background: #111614;
  color: #edf5f2;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);

}

.brand h1 {
  margin: 0;

}

.brand p {
  margin: 5px 0 0;
  color: #9eb0ab;

}

nav {
  display: grid;
  gap: 14px;
}

.nav-section-label {
  color: #7f9690;

}

.nav-primary,
.nav-secondary {
  display: grid;
  gap: 5px;
}

.nav-drawer:not([open]) > .nav-secondary,
.ops-drawer:not([open]) > .topbar-actions,
.goal-disclosure:not([open]) > .goal-grid,
.target-detail-disclosure:not([open]) > .target-detail-disclosure-body,
.nested-detail:not([open]) > .target-detail-disclosure-body,
.nested-detail:not([open]) > .scorecard-factor-table,
.faq-item:not([open]) > p {
  display: none;
}

.nav-group-label {
  color: #6f8781;

  padding: 8px 10px 3px;

}

.nav-item {
  border: 0;
  background: transparent;
  color: #b8c8c4;
  text-align: left;
  padding: 9px 10px;
  border-radius: 7px;
  cursor: pointer;

}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-drawer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.nav-drawer summary {
  color: #8ea39e;
  cursor: pointer;

  list-style: none;
  margin-bottom: 8px;
}

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

.nav-drawer summary::after {
  content: "+";
  float: right;
  color: #5ebaaa;
}

.nav-drawer[open] summary::after {
  content: "-";
}

.nav-drawer.active-compact summary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--accent);
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a8b9b5;

}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #35bf91;
  box-shadow: 0 0 0 4px rgba(53, 191, 145, 0.12);
}

main {
  padding: 26px 28px 34px;
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.section-label {
  margin: 0 0 6px;
  color: var(--accent);

}

.topbar h2 {
  margin: 0;

  max-width: 850px;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar-actions button {
  white-space: nowrap;
}

.ops-drawer {
  flex: 0 0 auto;
  min-width: 250px;
  position: relative;
}

.ops-drawer summary {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  list-style: none;
  padding: 8px 11px;
}

.ops-drawer summary::-webkit-details-marker {
  display: none;
}

.ops-drawer summary span {

}

.ops-drawer summary small {
  color: var(--muted);

  text-align: right;
}

.ops-drawer summary::after {
  color: var(--accent);
  content: "+";

  margin-left: 2px;
}

.ops-drawer[open] summary {
  border-color: var(--accent);
}

.ops-drawer[open] summary::after {
  content: "-";
}

.ops-drawer .topbar-actions {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 8px;
  padding: 10px;
  position: absolute;
  right: 0;
  top: 100%;
  width: 360px;
  z-index: 30;
}

.ops-drawer .topbar-actions button {
  min-width: 0;
  width: 100%;
}

button {
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--ink);
  padding: 8px 11px;
  border-radius: 9px;
  cursor: pointer;

}

button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

body.busy {
  cursor: progress;
}

.action-status {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-color: var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(31, 46, 43, 0.03);
  padding: 10px 13px;
  margin: -6px 0 14px;
  color: var(--muted);

}

.action-status strong {
  flex: 0 0 auto;
  color: var(--ink);
}

.action-status.good {
  border-left-color: var(--ok);
}

.action-status.warn {
  border-left-color: var(--warning);
}

.action-status.bad {
  border-left-color: var(--danger);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.login-brand {
  color: var(--ink);
  margin-bottom: 24px;
}

.login-brand .brand-mark {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--panel-soft);
}

.login-brand p {
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 10px;
}

.login-form label {

  color: var(--muted);

}

.login-form input {
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 11px 12px;
}

.login-form button {
  margin-top: 4px;
  background: #101917;
  color: #fff;
}

.login-form button:hover {
  color: #fff;
  border-color: #101917;
}

.login-form[aria-busy="true"] input {
  cursor: wait;
}

.login-error:focus-visible {
  outline: 2px solid var(--danger);
  outline-offset: 3px;
}

.login-error {
  color: var(--danger);
  margin: 4px 0 0;

}

.login-note {
  color: var(--muted);

  margin: 18px 0 0;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 1px 0 rgba(31, 46, 43, 0.03);
}

.metric.primary {
  background: #10211d;
  border-color: #10211d;
  color: #f5fbf8;
}

.metric.needs-attention {
  border-color: #d9ba75;
  background: #fffaf0;
}

.metric span {
  color: var(--muted);
  display: block;

  margin-bottom: 7px;
}

.metric.primary span {
  color: #a9bbb6;
}

.metric strong {

}

.goal-panel {
  margin-bottom: 16px;
  padding: 15px 17px;
}

.goal-disclosure {
  padding: 0;
}

.goal-summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  list-style: none;
  padding: 15px 17px;
}

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

.goal-summary::after {
  color: var(--muted);
  content: "Open";

  margin-left: auto;

}

.goal-disclosure[open] .goal-summary::after {
  content: "Close";
}

.goal-summary > span:first-child {
  display: grid;
  gap: 4px;
}

.goal-summary strong {
  display: block;

}

.goal-summary small {
  color: var(--muted);

}

.goal-main {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.goal-main h3 {
  margin: 0 0 6px;

}

.goal-main p:last-child {
  margin: 0;
  color: var(--muted);

  max-width: 980px;
}

.goal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0 17px 15px;
}

.goal-grid div {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.goal-grid span {
  color: var(--muted);
  display: block;

  margin-bottom: 5px;

}

.goal-grid strong {
  display: block;

}

.view {
  display: none;
}

.view.active {
  display: block;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(340px, 0.7fr);
  gap: 16px;
  align-items: start;
}

.target-cockpit {
  grid-template-columns: minmax(0, 1fr);
}

.overview-shell {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
}

.target-workbench {
  min-width: 0;
}

.overview-rail {
  display: grid;
  gap: 14px;
  min-width: 0;
  order: -1;
  position: static;
}

.rail-panel .panel-header {
  align-items: flex-start;
}

.rail-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rail-section {
  border-left: 1px solid var(--line);
  display: grid;
  gap: 6px;
  padding: 13px 15px;
}

.rail-section:first-child {
  border-left: 0;
}

.rail-section > span,
.rail-facts span {
  color: var(--muted);

}

.rail-section strong {
  color: var(--ink);

}

.rail-section p {
  color: var(--muted);

  margin: 0;
}

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

.rail-facts div {
  align-items: center;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 8px 9px;
}

.rail-facts strong {
  flex: 0 0 auto;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-header {
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.panel-header h3 {
  margin: 0;

}

.mini-note {
  color: var(--muted);

  max-width: 260px;
  text-align: right;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;

}

th {
  text-align: left;
  color: var(--muted);

  background: var(--panel-soft);
  border-bottom: 1px solid var(--line);
  padding: 10px 13px;
  white-space: nowrap;
}

td {
  border-bottom: 1px solid var(--line);
  padding: 12px 13px;
  vertical-align: top;
}

tr.target-row {
  cursor: pointer;
}

tr.target-row:hover {
  background: #f6f9f8;
}

tr.target-row.selected {
  background: #e7f2ef;
  box-shadow: inset 4px 0 0 var(--accent);
}

.target-name {

  min-width: 190px;
}

.muted {
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;

  white-space: nowrap;
}

.pill.good {
  color: var(--ok);
  background: #e6f4eb;
}

.pill.warn {
  color: var(--warning);
  background: #fff3d7;
}

.pill.bad {
  color: var(--danger);
  background: #fbe7e6;
}

.detail-body {
  padding: 16px 18px 20px;
  display: grid;
  gap: 14px;
}

.detail-body.empty {
  color: var(--muted);

}

.detail-section h4 {
  margin: 0 0 8px;

  color: var(--muted);
}

.detail-section ul {
  margin: 0;
  padding-left: 18px;
}

.detail-section li {
  margin: 6px 0;

}

body.modal-open {
  overflow: hidden;
}

.target-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.target-modal[hidden] {
  display: none;
}

.target-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 17, 15, 0.56);
  backdrop-filter: blur(7px);
}

.target-modal-card {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  max-height: min(920px, calc(100vh - 48px));
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(13, 22, 19, 0.28);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.target-modal-header {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fbfcfb;
}

.target-modal-header h3 {
  margin: 0;

}

.modal-close {
  flex: 0 0 auto;
  background: #10211d;
  border-color: #10211d;
  color: #fff;
}

.modal-close:hover {
  color: #fff;
  border-color: var(--accent);
}

.target-modal .detail-body {
  min-height: 0;
  overflow: auto;
  padding: 0 18px 18px;
  gap: 12px;
  background: var(--panel);
}

.target-detail-summary {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0 -18px;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: 12px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.target-detail-summary-copy {
  display: grid;
  align-content: start;
  gap: 7px;
}

.target-detail-summary-copy p {
  margin: 0;
  color: var(--muted);

}

.target-detail-kpis {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}

.target-detail-kpis span {
  border: 1px solid var(--line);
  background: var(--panel-soft);
  border-radius: 7px;
  padding: 8px 9px;
  color: var(--muted);

}

.target-detail-kpis strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);

}

.target-detail-summary.target-detail-brief {
  align-items: stretch;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.15fr) minmax(240px, 0.72fr);
  padding: 16px 18px;
}

.target-brief-lead {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.target-brief-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.target-brief-lead h4 {
  color: var(--ink);

  margin: 0;
  overflow-wrap: anywhere;
}

.target-brief-lead > p {
  color: #56635d;

  margin: 0;
}

.target-partner-actions {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

.target-partner-action {
  background: #f7faf7;
  border: 1px solid var(--line);
  border-color: var(--line-strong);
  border-radius: 7px;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px;
}

.target-partner-action.primary {
  background: #10201c;
  border-color: #10201c;
}

.target-partner-action.warn {
  background: #fff8e8;
  border-color: #ead8aa;
}

.target-partner-action.good {
  background: #eef8f1;
  border-color: #cbe3d1;
}

.target-partner-action span,
.target-brief-card span,
.target-brief-proof-head span {
  color: #69746f;

}

.target-partner-action.primary span,
.target-partner-action.primary strong,
.target-partner-action.primary p {
  color: #f8fbf8;
}

.target-partner-action strong {
  color: var(--ink);

  overflow-wrap: anywhere;
}

.target-partner-action p {
  color: #66716c;

  margin: 0;
  overflow-wrap: anywhere;
}

.target-brief-card-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

.target-brief-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 11px;
}

.target-brief-card.primary {
  background: #10201c;
  border-color: #10201c;
}

.target-brief-card.warn {
  background: #fff8e8;
  border-color: #ead8aa;
}

.target-brief-card.good {
  background: #eef8f1;
  border-color: #cbe3d1;
}

.target-brief-card strong {
  color: var(--ink);

  overflow-wrap: anywhere;
}

.target-brief-card.primary span,
.target-brief-card.primary strong,
.target-brief-card.primary p {
  color: #f8fbf8;
}

.target-brief-card p {
  color: #61706a;

  margin: 0;
  overflow-wrap: anywhere;
}

.target-brief-proof-list {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  min-width: 0;
  overflow: hidden;
}

.target-brief-proof-head,
.target-brief-proof-row {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 11px;
}

.target-brief-proof-head {
  background: #fbfcfb;
  border-bottom: 1px solid var(--line);
}

.target-brief-proof-head strong {
  color: var(--ink);

}

.target-brief-proof-row + .target-brief-proof-row {
  border-top: 1px solid var(--line);
}

.target-brief-proof-row strong {
  color: #26342f;

  overflow-wrap: anywhere;
}

.target-brief-proof-row span {
  color: #66716c;

}

.target-detail-stack {
  display: grid;
  gap: 9px;
  padding-top: 12px;
}

.target-detail-disclosure {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.target-detail-disclosure.primary {
  border-color: #b7d7d1;
}

.target-detail-disclosure > summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fbfcfb;

}

.target-detail-disclosure > summary::-webkit-details-marker {
  display: none;
}

.target-detail-disclosure > summary::after {
  content: "View";
  color: var(--accent);

}

.target-detail-disclosure[open] > summary::after {
  content: "Close";
}

.target-detail-disclosure > summary > span:last-child:not(:first-child) {
  margin-left: auto;
  color: var(--muted);

}

.target-detail-disclosure-body {
  border-top: 1px solid var(--line);
  padding: 12px;
  display: grid;
  gap: 12px;
}

.target-detail-disclosure-body > .detail-section > h4 {
  display: none;
}

.target-modal .detail-section p {

}

.target-modal .mini-note {
  max-width: 860px;
  text-align: left;
}

.target-modal .score-row {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 7px;
}

.target-modal .score-row span {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-soft);
  padding: 8px 9px;
}

.target-modal .operator-score-row span {
  background: #f5f8f4;
  border-color: #c8d7cc;
}

.target-modal .operator-proof-row {
  margin-top: 8px;
}

.target-modal .method-diagnostics {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfcfb;
  margin-top: 10px;
  padding: 0;
}

.target-modal .method-diagnostics > summary {
  cursor: pointer;

  padding: 10px 12px;
}

.target-modal .method-diagnostics > .score-row,
.target-modal .method-diagnostics > .module-columns {
  margin: 0 10px 10px;
}

.target-modal .scorecard-domain-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.target-modal .module-columns {
  gap: 9px;
}

.nested-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  overflow: hidden;
}

.nested-detail > summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);

}

.nested-detail > summary::-webkit-details-marker {
  display: none;
}

.nested-detail > summary::after {
  content: "Open";
  color: var(--accent);

  margin-left: auto;

}

.nested-detail[open] > summary::after {
  content: "Close";
}

.nested-detail > summary span {
  color: var(--muted);

}

.nested-detail .scorecard-factor-table {
  border-width: 1px 0 0;
  border-radius: 0;
}

input[type="search"] {
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  min-width: 320px;
  padding: 9px 11px;
  color: var(--ink);
}

select {
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--panel);
  color: var(--ink);
  padding: 9px 10px;
  min-height: 38px;

}

.target-tools {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(220px, 280px) minmax(150px, 190px);
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
}

.target-tools input[type="search"] {
  min-width: 0;
}

.list {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.subhead {
  margin: 10px 2px 0;
  color: var(--accent);

}

.list.compact {
  max-height: 680px;
  overflow: auto;
}

.list-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel-soft);
  min-width: 0;
  overflow: hidden;
}

.list-item.empty-state {
  border-style: dashed;
  background: #fbfcfb;
}

.list-item * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.list-item h4 {
  margin: 0 0 6px;

  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.list-item p {
  margin: 0;
  color: var(--muted);

}

.list-meta {
  margin-top: 9px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);

}

.source-path {
  max-width: 100%;
  overflow-wrap: anywhere;

  color: var(--muted);
}

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

.eval-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel-soft);
}

.eval-item h4 {
  margin: 0 0 8px;

}

.eval-item p {
  margin: 0;

  color: var(--muted);

}

.market-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.agenda-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.agenda-command-panel {
  grid-column: 1 / -1;
}

.brief-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.firm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.transform-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 16px;
  align-items: start;
}

.method-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 16px;
  align-items: start;
}

.brief-layout .hero-panel {
  grid-column: 1 / -1;
  background: #111614;
  color: #edf5f2;
  border-color: #1f312d;
  box-shadow: var(--shadow);
}

.firm-layout .hero-panel,
#view-firm .hero-panel.panel,
.transform-layout .hero-panel,
.method-layout .hero-panel {
  grid-column: 1 / -1;
  background: #111614 !important;
  color: #edf5f2 !important;
  border-color: #274039 !important;
  box-shadow: var(--shadow);
}

#view-firm .hero-panel.panel *,
#view-firm .hero-panel.panel h3,
#view-firm .hero-panel.panel strong,
#view-firm .hero-panel.panel span,
#view-firm .hero-panel.panel p {
  color: inherit;
}

.hero-panel .section-label {
  color: #63c7b8;
}

.transform-disclosure {
  overflow: hidden;
  padding: 0;
}

.transform-disclosure-summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  list-style: none;
  padding: 16px;
}

.transform-disclosure-summary::-webkit-details-marker {
  display: none;
}

.transform-disclosure-summary > span:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.transform-disclosure-summary strong {
  color: var(--ink);

}

.transform-disclosure-summary small {
  color: var(--muted);

}

.transform-disclosure[open] .transform-disclosure-summary {
  border-bottom: 1px solid var(--line);
}

.transform-detail-stack {
  display: grid;
  gap: 0;
  padding: 0 16px 16px;
}

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

.transform-detail-block:first-child {
  border-top: 0;
}

.transform-detail-block-head {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  min-width: 0;
}

.transform-detail-block-head h3 {
  color: var(--ink);

  margin: 0;
}

.transform-detail-block > .gate-grid,
.transform-detail-block > .underadoption-panel,
.transform-detail-block > .transform-card-grid,
.transform-detail-block > .list,
.transform-detail-block > .faq-grid,
.transform-detail-block > .faq-list,
.transform-detail-block > .method-card-grid,
.transform-detail-block > .workflow-coverage-grid,
.transform-detail-block > .checklist-panel {
  padding: 0;
}

.hero-panel .mini-note {
  color: #9eb0ab;
}

.brief-headline {
  margin-top: 8px;
  max-width: 980px;

}

.method-layout .brief-headline {
  max-width: 900px;

}

.partnership-rule-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 18px 12px;
}

.partnership-rule-card {
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-color: var(--line-strong);
  border-radius: 7px;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
}

.partnership-rule-card.warn {
  border-left-color: #c58b34;
}

.partnership-rule-card.good {
  border-left-color: #4e8f61;
}

.partnership-rule-card.bad {
  border-left-color: #b65d57;
}

.partnership-rule-card span {
  color: #66736e;

}

.partnership-rule-card strong {
  color: var(--ink);

}

.partnership-rule-card p {
  color: #4a5551;

  margin: 0;
}

.partnership-rule-card small {
  color: #6f7a75;

}

@media (max-width: 900px) {
  .partnership-rule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .partnership-rule-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.method-layout .firm-summary {
  margin-top: 16px;
}

.brief-focus {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.focus-chip {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: #dbe7e4;

  padding: 7px 10px;
  max-width: 420px;
}

.process-panel {
  grid-column: 1 / -1;
}

.process-map {
  display: grid;
  grid-template-columns: repeat(11, minmax(150px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.lifecycle-summary-strip {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  margin-top: 14px;
}

.lifecycle-summary-strip .firm-stat {
  background: #fbfcfa;
  border-color: var(--line);
  color: var(--ink);
  min-height: 86px;
}

.lifecycle-summary-strip .firm-stat span,
.lifecycle-summary-strip .firm-stat small {
  color: var(--muted);
}

.lifecycle-summary-strip .firm-stat strong {
  color: var(--ink);
}

.lifecycle-map,
.lifecycle-handoff-grid,
.lifecycle-method-grid,
.lifecycle-coverage-grid,
.lifecycle-output-grid,
.lifecycle-governance-grid,
.lifecycle-control-group {
  display: grid;
  gap: 10px;
}

.lifecycle-map {
  grid-template-columns: repeat(7, minmax(170px, 1fr));
  overflow-x: auto;
  padding-bottom: 4px;
}

.lifecycle-handoff-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.lifecycle-handoff-disclosure .lifecycle-handoff-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lifecycle-stage-summary {
  display: flex;
  flex-direction: column;
  min-height: 230px;
}

.lifecycle-stage-summary > p {
  color: var(--muted);

  margin: 0;
}

.lifecycle-stage-summary .process-stage-meta {
  margin-top: auto;
  padding-top: 14px;
}

.lifecycle-stage-summary .process-stage-meta span {
  display: grid;
  gap: 3px;
}

.lifecycle-stage-summary .process-stage-meta strong {
  color: var(--ink);

}

.lifecycle-method-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  overflow-x: clip;
}

.lifecycle-method-grid .method-process-metrics,
.lifecycle-method-grid .lifecycle-control-group {
  grid-column: 1 / -1;
}

.lifecycle-method-grid > *,
.lifecycle-control-group > * {
  min-width: 0;
}

.lifecycle-coverage-grid,
.lifecycle-output-grid,
.lifecycle-control-group {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  margin-top: 12px;
}

.lifecycle-governance-grid {
  margin-top: 12px;
}

.lifecycle-stage {
  min-width: 160px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  border-radius: 8px;
  padding: 12px;
}

.lifecycle-stage.compact {
  min-width: 0;
}

.lifecycle-stage-topline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.lifecycle-stage-topline > * {
  min-width: 0;
}

.lifecycle-stage-topline .section-label {
  overflow-wrap: anywhere;
  white-space: normal;
}

.lifecycle-coverage-card .lifecycle-stage-topline {
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
}

.lifecycle-stage h4 {

  margin: 10px 0 7px;
}

.lifecycle-stage p {
  color: var(--muted);

  margin: 0;
}

.lifecycle-mini-list {
  margin-top: 10px;
}

.stage-agent-brief {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.stage-agent-brief span {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  display: block;

  min-width: 0;
  overflow-wrap: anywhere;
  padding: 7px 8px;
}

.stage-agent-brief strong {
  color: var(--ink);
  display: block;

  margin-bottom: 3px;

}

.lifecycle-coverage-card,
.lifecycle-output-card,
.lifecycle-control-card {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 8px;
  min-width: 0;
  overflow-x: clip;
  padding: 12px;
}

.lifecycle-coverage-card h4,
.lifecycle-output-card h4 {

  margin: 9px 0 7px;
  overflow-wrap: anywhere;
}

.lifecycle-coverage-card p,
.lifecycle-output-card p {
  color: var(--muted);

  margin: 0;
  overflow-wrap: anywhere;
}

.lifecycle-control-card span {
  color: #4d7770;
  display: block;

}

.lifecycle-control-card strong {
  display: block;

  margin-top: 6px;
  overflow-wrap: anywhere;
}

.lifecycle-control-card p,
.lifecycle-control-card small {
  color: var(--muted);
  display: block;

  margin: 7px 0 0;
  overflow-wrap: anywhere;
}

.process-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.process-metric-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.process-metric-card span {
  color: #4d7770;
  display: block;

}

.process-metric-card strong {
  display: block;

  margin-top: 6px;
}

.process-metric-card p {
  color: var(--muted);

  margin: 7px 0 0;
}

.ben-feedback-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.ben-feedback-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 12px;
}

.ben-feedback-card.agree {
  background: #fbfdfb;
  border-color: #cbd9d2;
}

.ben-feedback-card.question,
.ben-feedback-card.boundary {
  background: #fffdf7;
  border-color: #dfd0a8;
}

.ben-feedback-card h4 {

  margin: 9px 0 7px;
  overflow-wrap: anywhere;
}

.ben-feedback-card p,
.ben-feedback-card small {
  color: var(--muted);
  display: block;

  margin: 0;
  overflow-wrap: anywhere;
}

.ben-feedback-card small {
  margin-top: 8px;
}

.ben-workplan-list {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px;
}

.ben-workplan-summary {
  background: #f8faf7;
  border: 1px solid #dce7df;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ben-workplan-summary span {
  border-right: 1px solid #dce7df;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
}

.ben-workplan-summary span:last-child {
  border-right: 0;
}

.ben-workplan-summary strong {
  color: var(--ink);

}

.ben-workplan-summary small {
  color: var(--muted);

  overflow: hidden;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.ben-workplan-stack {
  border: 1px solid var(--line);
  display: grid;
}

.ben-workplan-row {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 42px minmax(0, 1fr);
  min-width: 0;
  padding: 12px 14px;
}

.ben-workplan-row:last-child {
  border-bottom: 0;
}

.ben-workplan-row.control {
  background: #fbfdfb;
}

.ben-workplan-row.question,
.ben-workplan-row.boundary {
  background: #fffdf7;
}

.ben-workplan-row.neutral {
  background: #fbfbfa;
}

.ben-workplan-rank {
  align-items: center;
  background: #0b1a17;
  color: #ffffff;
  display: inline-flex;

  height: 34px;
  justify-content: center;

  width: 34px;
}

.ben-workplan-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.ben-workplan-topline {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
}

.ben-workplan-copy > strong {
  color: var(--ink);

  overflow-wrap: anywhere;
}

.ben-workplan-copy p,
.ben-workplan-copy small {
  color: var(--muted);

  margin: 0;
  overflow-wrap: anywhere;
}

.ben-workplan-copy small {
  color: #38534d;
}

.stakeholder-milestones-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 16px 16px;
}

.stakeholder-milestone-card {
  background: #ffffff;
  border: 1px solid var(--line);
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 12px;
}

.stakeholder-milestone-card.prep_now {
  background: #fffdf7;
  border-color: #e7d8a7;
}

.stakeholder-milestone-topline {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.stakeholder-milestone-card > strong {
  color: var(--ink);

  overflow-wrap: anywhere;
}

.stakeholder-milestone-card p,
.stakeholder-milestone-card small,
.stakeholder-milestone-meta {
  color: var(--muted);

  margin: 0;
  overflow-wrap: anywhere;
}

.stakeholder-milestone-meta {
  display: grid;
  gap: 4px;
}

.stakeholder-milestone-meta b {
  color: var(--ink);
}

.stakeholder-milestone-card small {
  color: #38534d;
}

.stakeholder-readiness-card {
  padding: 0 16px 16px;
}

.stakeholder-readiness-shell {
  background: #fffdf7;
  border: 1px solid #e7d8a7;
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  padding: 12px;
}

.stakeholder-readiness-shell.ready {
  background: #f1faf3;
  border-color: #cbe3d1;
}

.stakeholder-readiness-head {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.stakeholder-readiness-head strong {
  color: var(--ink);
  display: block;

  margin-top: 3px;
}

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

.stakeholder-readiness-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px;
}

.stakeholder-readiness-item.open {
  border-color: #ead8aa;
}

.stakeholder-readiness-item.done {
  border-color: #cbe3d1;
}

.stakeholder-readiness-item span,
.stakeholder-readiness-item small,
.stakeholder-readiness-shell > small {
  color: var(--muted);

  overflow-wrap: anywhere;
}

.stakeholder-readiness-item strong {
  color: var(--ink);

}

.stakeholder-readiness-next {
  color: #38534d;

  margin: 0;
  overflow-wrap: anywhere;
}

.stakeholder-readiness-next b {
  color: var(--ink);
}

.stakeholder-readiness-decisions {
  border-top: 1px solid #eadfbd;
  padding-top: 8px;
}

.stakeholder-readiness-decisions summary {
  align-items: center;
  color: var(--ink);
  cursor: pointer;
  display: flex;

  gap: 8px;
  justify-content: space-between;
}

.stakeholder-readiness-decisions summary strong {
  color: var(--muted);

}

.stakeholder-readiness-decisions > div {
  display: grid;
  gap: 4px;
  margin-top: 7px;
}

.stakeholder-readiness-decisions > div span {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);

  padding: 6px 8px;
}

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

@media (max-width: 760px) {
  .stakeholder-milestones-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 1100px) {
  .lifecycle-summary-strip,
  .lifecycle-handoff-grid,
  .process-metric-grid,
  .lifecycle-coverage-grid,
  .lifecycle-output-grid,
  .lifecycle-control-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lifecycle-handoff-disclosure .lifecycle-handoff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .ben-workplan-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ben-workplan-summary span {
    border-bottom: 1px solid #dce7df;
  }

  .ben-workplan-summary span:nth-child(3n) {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .lifecycle-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 10px;
  }

  .lifecycle-summary-strip .firm-stat {
    min-height: 72px;
    padding: 8px;
  }

  .lifecycle-map {
    grid-template-columns: repeat(7, minmax(142px, 1fr));
  }

  .ben-workplan-list {
    padding: 0 12px 12px;
  }

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

  .ben-workplan-summary span {
    padding: 8px;
  }

  .ben-workplan-summary span:nth-child(3n) {
    border-right: 1px solid #dce7df;
  }

  .ben-workplan-summary span:nth-child(2n) {
    border-right: 0;
  }

  .ben-workplan-row {
    gap: 9px;
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 10px;
  }

  .ben-workplan-rank {

    height: 28px;
    width: 28px;
  }

  .ben-workplan-topline {
    align-items: flex-start;
    gap: 6px;
  }

  .ben-workplan-copy > strong {

  }

  .ben-workplan-copy p,
  .ben-workplan-copy small {

  }

  .lifecycle-handoff-grid,
  .lifecycle-method-grid,
  .process-metric-grid,
  .lifecycle-coverage-grid,
  .lifecycle-output-grid,
  .lifecycle-control-group {
    grid-template-columns: 1fr;
  }

  .lifecycle-handoff-disclosure .lifecycle-handoff-grid {
    grid-template-columns: 1fr;
  }

  .lifecycle-stage-summary {
    min-height: 0;
  }

  .lifecycle-stage,
  .lifecycle-coverage-card,
  .lifecycle-output-card,
  .lifecycle-control-card,
  .ben-feedback-card {
    padding: 10px;
  }

  .lifecycle-stage h4,
  .lifecycle-coverage-card h4,
  .lifecycle-output-card h4 {

  }

  .lifecycle-stage p,
  .lifecycle-coverage-card p,
  .lifecycle-output-card p,
  .lifecycle-control-card p,
  .lifecycle-control-card small,
  .process-metric-card p {

  }
}

.process-stage {
  min-width: 150px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  border-radius: 8px;
  padding: 12px;
}

.process-stage.active {
  border-color: #9ccbc3;
  background: #eef8f5;
}

.process-stage-topline {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  color: var(--muted);

}

.process-stage-index {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #12211d;
  color: #eaf4f1;
}

.process-stage h4,
.tier-card h4 {
  margin: 10px 0 7px;

}

.process-stage p,
.tier-card p {
  margin: 0;
  color: var(--muted);

}

.process-stage-meta {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  color: var(--muted);

}

.process-state-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.process-state-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  background: #fff;
}

.process-state-card span {
  display: block;
  color: var(--muted);

}

.process-state-card strong {
  display: block;
  margin-top: 5px;

}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 12px;
}

.tier-card {
  border: 1px solid var(--line);
  background: var(--panel-soft);
  border-radius: 8px;
  padding: 13px;
}

.tier-card-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.tier-card-header h4 {
  margin-top: 0;
}

.tier-card-header span {
  color: var(--accent);

  white-space: nowrap;
}

.tier-card .mini-list {
  margin: 10px 0;
}

.firm-layout .panel.wide {
  grid-column: 1 / -1;
}

.transform-layout .panel.wide {
  grid-column: 1 / -1;
}

.method-layout .panel.wide {
  grid-column: 1 / -1;
}

.firm-layout .hero-panel .panel-header {
  border-bottom-color: var(--line);
}

.firm-layout .hero-panel .brief-focus {
  margin-top: 18px;
}

.firm-layout .hero-panel .focus-chip {
  background: #f6faf7;
  border-color: #dce6df;
  color: #34443e;
}

.firm-layout .hero-panel .firm-stat {
  background: #fbfcfa;
  border-color: var(--line);
}

.firm-layout .hero-panel .firm-stat.primary {
  background: #eef5f1;
  border-color: var(--line-strong);
}

.firm-layout .hero-panel .firm-stat span {
  color: #68766f;
}

.firm-layout .hero-panel .firm-stat strong {
  color: var(--ink);
}

.firm-layout .hero-panel .firm-stat small {
  color: #56635d;
}

.firm-layout .hero-panel,
.firm-layout .panel.wide {
  grid-column: 1 / -1;
}

.firm-detail-stack {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
}

.firm-ledger {
  box-shadow: none;
}

.firm-ledger summary {
  background: #ffffff;
  min-height: 58px;
}

.firm-ledger summary::-webkit-details-marker {
  display: none;
}

.firm-ledger summary span {
  color: var(--ink);

}

.firm-ledger summary strong {
  color: #65726c;
  white-space: nowrap;
}

.firm-ledger[open] summary {
  border-bottom: 1px solid var(--line);
}

.firm-ledger > .list,
.firm-ledger > .firm-module-grid,
.firm-ledger > .workflow-coverage-grid {
  border-top: 0;
}

.firm-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

#firm-os-summary .firm-stat.primary {
  grid-column: 1 / -1;
}

.firm-priority-meta {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 12px 0 0;
}

.firm-priority-meta > div {
  border-left: 1px solid var(--line);
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 0 12px;
}

.firm-priority-meta > div:first-child {
  border-left: 0;
  padding-left: 0;
}

.firm-priority-meta dt {
  color: var(--muted);

}

.firm-priority-meta dd {
  color: var(--ink);

  margin: 0;
  overflow-wrap: anywhere;
}

.firm-priority-route {
  align-items: center;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: #ffffff;
  display: inline-flex;

  justify-content: center;
  margin-top: 12px;
  min-height: 44px;
  padding: 8px 12px;
  text-decoration: none;
  width: fit-content;
}

#view-firm .hero-panel.panel .firm-priority-route {
  color: #ffffff;
}

#view-firm .hero-panel.panel .firm-priority-route:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

@media (max-width: 620px) {
  #firm-os-summary {
    grid-template-columns: 1fr;
  }

  .firm-priority-meta {
    grid-template-columns: 1fr;
  }

  .firm-priority-meta > div,
  .firm-priority-meta > div:first-child {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 8px 0;
  }

  .firm-priority-meta > div:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .firm-priority-route {
    width: 100%;
  }
}

/* TailorCare private-case workbench: turn the source-gated Stage 5-10 payload
   into a readable operating playbook without changing any underlying record. */
.target-modal.private-case-open {
  padding: 16px;
}

.target-modal.private-case-open .target-modal-card {
  height: calc(100vh - 32px);
  max-height: none;
  width: min(1440px, calc(100vw - 32px));
}

.target-modal.private-case-open .target-modal-header {
  padding: 12px 16px;
}

.target-modal.private-case-open .target-modal-header h3 {

}

.private-case-detail-sheet {
  display: block;
  height: 100%;
  overflow: hidden;
}

.private-case-detail-sheet .target-detail-workspace {
  background: #f5f7f6;
  height: 100%;
  overflow: auto;
  padding: 0;
}

.private-case-detail {
  background: transparent;
  border: 0;
  border-radius: 0;
  gap: 0;
  margin: 0 auto;
  max-width: 1380px;
  padding: 0;
}

.private-case-detail-head {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  gap: 24px;
  padding: 18px 22px;
}

.private-case-detail-head h4 {

  margin: 2px 0 5px;
}

.private-case-detail-head p {
  max-width: 78ch;
}

.private-case-detail > .boundary-note {
  background: #fff8e9;
  border: 0;
  border-bottom: 1px solid #eadfbd;
  border-radius: 0;
  color: #5f4b20;

  margin: 0;
  padding: 9px 22px;
}

.private-stage-nav {
  background: #fff;
  border-bottom: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  position: sticky;
  top: 0;
  z-index: 4;
}

.private-stage-nav button {
  background: #fff;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  display: grid;
  gap: 2px;
  min-height: 68px;
  padding: 10px 12px;
  text-align: left;
}

.private-stage-nav button:last-child {
  border-right: 0;
}

.private-stage-nav button:hover,
.private-stage-nav button:focus-visible {
  background: var(--panel-soft);
}

.private-stage-nav button[aria-selected="true"] {
  background: var(--accent-soft);
  box-shadow: inset 0 -3px 0 var(--accent);
  color: var(--accent);
}

.private-stage-nav button > span,
.private-stage-nav button > small {
  color: var(--muted);

}

.private-stage-nav button > strong {

}

.private-stage-workbench {
  padding: 20px 22px 28px;
}

.private-stage-panel[hidden],
.private-workstream-panel[hidden] {
  display: none;
}

.private-transformation-sheet,
.private-stage-sheet {
  display: grid;
  gap: 18px;
}

.private-transformation-head,
.private-stage-sheet-head {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.private-transformation-head > div,
.private-stage-sheet-head > div {
  display: grid;
  gap: 5px;
}

.private-transformation-head > div > span,
.private-stage-sheet-head > div > span,
.private-workstream-head > div > span {
  color: var(--accent);

}

.private-transformation-head h5,
.private-stage-sheet-head h5 {

  margin: 0;
  max-width: 28ch;
}

.private-transformation-head p,
.private-stage-sheet-head p {
  color: #4f5c57;

  margin: 0;
  max-width: 78ch;
}

.private-lock-label {
  background: #fff8e9;
  border: 1px solid #d9c88f;
  border-radius: 4px;
  color: #775b17;

  max-width: 180px;
  padding: 5px 7px;
  text-align: center;
}

.private-transformation-actions {
  align-items: end;
  display: grid !important;
  gap: 9px !important;
  justify-items: end;
}

.private-plan-download {
  align-items: center;
  background: var(--copper, #f09a3e);
  border: 1px solid var(--copper, #f09a3e);
  color: #0a2332;
  display: inline-flex;

  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  text-decoration: none;
}

.private-plan-download:hover,
.private-plan-download:focus-visible {
  background: #102d3e;
  border-color: #102d3e;
  color: #fff;
}

.private-plan-summary {
  background: #fff;
  border: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.private-plan-summary > div {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
}

.private-plan-summary > div + div {
  border-left: 1px solid var(--line);
}

.private-plan-summary strong {
  color: var(--ink);

}

.private-plan-summary span {
  color: var(--muted);

}

.private-plan-section {
  background: #fff;
  border: 1px solid var(--line-strong);
}

.private-plan-section > header {
  align-items: end;
  background: var(--panel-soft);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 13px 15px;
}

.private-plan-section > header > div {
  display: grid;
  gap: 3px;
}

.private-plan-section > header h6,
.private-workstream-head h6,
.private-workstream-context h6,
.private-workstream-evidence-grid h6,
.private-vendor-detail h6,
.private-control-grid h6,
.private-stage-callout h6 {
  color: var(--ink);

  margin: 0;
}

.private-plan-section > header p {
  color: var(--muted);

  margin: 0;
}

.private-plan-section > header > span {
  color: var(--muted);

  white-space: nowrap;
}

.private-ventures-overlay {
  border-color: #aec4c5;
}

.private-ventures-overlay > header {
  background: #edf4f2;
}

.private-ventures-ledger {
  display: grid;
}

.private-ventures-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(190px, 0.9fr) minmax(210px, 1fr) auto auto;
  min-width: 0;
  padding: 12px 15px;
}

.private-ventures-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.private-ventures-row strong,
.private-ventures-row span {
  overflow-wrap: anywhere;
}

.private-ventures-row strong {
  color: var(--ink);

}

.private-ventures-row span {
  color: var(--muted);

}

.private-ventures-boundary {
  color: var(--muted);

  margin: 0;
  padding: 12px 15px;
}

.private-plan-timeline {
  counter-reset: plan-step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.private-plan-timeline li {
  counter-increment: plan-step;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  position: relative;
}

.private-plan-timeline li + li {
  border-left: 1px solid var(--line);
}

.private-plan-timeline li > span {
  color: var(--accent);

}

.private-plan-timeline li > p {
  color: #3f4c47;

  margin: 0;
}

.private-plan-timeline.compact {
  border: 1px solid var(--line);
}

.private-plan-timeline.compact li {
  padding: 12px;
}

.private-workstream-layout {
  display: grid;
  grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
  min-height: 640px;
}

.private-workstream-nav {
  background: var(--panel-soft);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  max-height: 760px;
  overflow: auto;
}

.private-workstream-nav button {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  display: grid;
  gap: 3px;
  padding: 11px 13px;
  text-align: left;
}

.private-workstream-nav button:hover,
.private-workstream-nav button:focus-visible {
  background: #fff;
}

.private-workstream-nav button[aria-selected="true"] {
  background: #fff;
  box-shadow: inset 3px 0 0 var(--accent);
  color: var(--accent);
}

.private-workstream-nav button > span {
  color: var(--muted);

}

.private-workstream-nav button > strong {

}

.private-workstream-nav button > small {
  color: var(--muted);

}

.private-workstream-panels {
  min-width: 0;
}

.private-workstream-panel {
  display: grid;
  gap: 15px;
  padding: 17px 18px 20px;
}

.private-workstream-head {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.private-workstream-head > div {
  display: grid;
  gap: 4px;
}

.private-workstream-head h6 {

}

.private-workstream-job {
  color: #24332e;

  margin: 0;
  max-width: 72ch;
}

.private-workstream-context,
.private-workstream-evidence-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.private-workstream-context section,
.private-workstream-evidence-grid section,
.private-control-grid section,
.private-vendor-detail section {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.private-workstream-context p,
.private-workstream-evidence-grid p,
.private-control-grid p,
.private-vendor-detail p {
  color: #4f5c57;

  margin: 0;
}

.private-workstream-evidence-grid {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  padding: 13px;
}

.private-workstream-evidence-grid small {
  color: var(--muted);

}

.private-probability-strip {
  background: #f1f6f3;
  border: 1px solid #cfddd6;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 130px)) minmax(0, 1fr);
}

.private-probability-strip > div {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
}

.private-probability-strip > div + div {
  border-left: 1px solid #cfddd6;
}

.private-probability-strip > div.base {
  background: #e5f0ea;
}

.private-probability-strip span {
  color: var(--muted);

}

.private-probability-strip strong {
  color: var(--accent);

}

.private-probability-strip > p {
  align-self: center;
  color: #52615b;

  margin: 0;
  padding: 10px 12px;
}

.private-vendor-ledger {
  display: grid;
}

.private-vendor-row {
  border-bottom: 1px solid var(--line);
}

.private-vendor-row:last-child {
  border-bottom: 0;
}

.private-vendor-row > summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 11px 14px;
}

.private-vendor-row > summary:hover,
.private-vendor-row > summary:focus-visible {
  background: var(--panel-soft);
}

.private-vendor-row > summary > span:first-child {
  display: grid;
  gap: 2px;
}

.private-vendor-row > summary strong {
  color: var(--ink);

}

.private-vendor-row > summary small {
  color: var(--muted);

}

.private-vendor-score {
  color: var(--accent);
  display: grid;
  grid-template-columns: auto auto;
  min-width: 110px;
  text-align: right;
}

.private-vendor-score small {
  grid-column: 1 / -1;
}

.private-vendor-detail {
  background: var(--panel-soft);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 14px;
}

.private-vendor-metrics {
  border-bottom: 1px solid var(--line);
  grid-column: 1 / -1;
  padding-bottom: 14px;
}

.private-vendor-metrics > header {
  align-items: baseline;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.private-vendor-metrics > header span {
  color: var(--muted);

}

.private-vendor-metric-ledger {
  border-top: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.private-vendor-metric-ledger > div {
  display: grid;
  gap: 3px;
  grid-template-columns: minmax(118px, 0.58fr) minmax(0, 1.42fr);
  padding: 9px 10px 9px 0;
}

.private-vendor-metric-ledger > div:nth-child(even) {
  border-left: 1px solid var(--line);
  padding-left: 10px;
}

.private-vendor-metric-ledger > div:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}

.private-vendor-metric-ledger strong {
  color: var(--ink);

}

.private-vendor-metric-ledger p {

}

.private-vendor-metric-ledger span {
  color: var(--accent);

  grid-column: 1 / -1;
}

.private-vendor-metrics > p {
  color: var(--muted);

  margin-top: 8px;
  max-width: 100ch;
}

.private-vendor-condition {
  border-top: 1px solid var(--line);
  grid-column: 1 / -1;
  padding-top: 11px;
}

.private-vendor-sources {
  display: flex;
  gap: 8px;
  grid-column: 1 / -1;
}

.private-vendor-sources a {
  color: var(--accent);

}

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

.private-control-grid section {
  border-bottom: 1px solid var(--line);
  padding: 13px 15px;
}

.private-control-grid section:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.private-control-grid section:nth-last-child(-n+2) {
  border-bottom: 0;
}

.private-stage-sheet {
  margin: 0 auto;
  max-width: 1060px;
}

.private-stage-section-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.private-stage-callout,
.private-stage-ledger {
  background: #fff;
  border: 1px solid var(--line-strong);
  min-width: 0;
}

.private-stage-callout {
  display: grid;
  gap: 7px;
  padding: 14px;
}

.private-stage-callout.primary {
  background: var(--accent-soft);
  border-color: #bdd3c9;
}

.private-stage-ledger > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 14px;
}

.private-stage-ledger > summary span {
  color: var(--ink);

}

.private-stage-ledger > summary strong {
  color: var(--accent);

  white-space: nowrap;
}

.private-stage-ledger-body {
  border-top: 1px solid var(--line);
  max-height: 560px;
  overflow: auto;
  padding: 13px;
}

.private-stage-ledger-body .private-payload-section {
  margin-bottom: 8px;
}

.private-model-boundary {
  background: #fff8e9;
  border: 1px solid #d9c88f;
  display: grid;
  gap: 3px;
  padding: 11px 13px;
}

.private-model-boundary strong {
  color: #5f4b20;

}

.private-model-boundary span {
  color: #745e2d;

}

.private-model-inputs {
  background: #fff;
  border: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.private-model-inputs > div {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
}

.private-model-inputs > div + div {
  border-left: 1px solid var(--line);
}

.private-model-inputs dt,
.private-model-inputs small {
  color: var(--muted);

}

.private-model-inputs dd {
  color: var(--ink);

  margin: 0;
}

.private-scenario-table {
  background: #fff;
  border: 1px solid var(--line-strong);
}

.private-scenario-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1.2fr repeat(4, minmax(90px, 1fr));
  padding: 11px 13px;
}

.private-scenario-row + .private-scenario-row {
  border-top: 1px solid var(--line);
}

.private-scenario-row.head {
  background: var(--panel-soft);
  color: var(--muted);

}

.private-scenario-row:not(.head) {
  color: #33423d;

}

.private-proof-probability-grid {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 10px;
}

.private-proof-probability-grid > div {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
}

.private-proof-probability-grid strong {
  color: var(--ink);

}

.private-proof-probability-grid span {
  color: var(--muted);

}

.private-case-sources {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  margin: 0 22px 28px;
}

@media (max-width: 980px) {
  .private-stage-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    position: static;
  }

  .private-stage-nav button:nth-child(3) {
    border-right: 0;
  }

  .private-stage-nav button:nth-child(-n+3) {
    border-bottom: 1px solid var(--line);
  }

  .private-workstream-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .private-plan-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .private-plan-timeline li:nth-child(3) {
    border-left: 0;
  }

  .private-plan-timeline li:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }

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

  .private-vendor-metric-ledger {
    grid-template-columns: 1fr;
  }

  .private-vendor-metric-ledger > div:nth-child(even) {
    border-left: 0;
    padding-left: 0;
  }

  .private-vendor-metric-ledger > div:nth-child(n + 2) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 700px) {
  .target-modal.private-case-open {
    padding: 0;
  }

  .target-modal.private-case-open .target-modal-card {
    border: 0;
    border-radius: 0;
    height: 100vh;
    width: 100vw;
  }

  .private-case-detail-head,
  .private-transformation-head,
  .private-stage-sheet-head,
  .private-workstream-head {
    grid-template-columns: 1fr;
  }

  .private-case-detail-head {
    padding: 14px 15px;
  }

  .private-case-detail-counts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .private-case-detail-counts span {
    white-space: normal;
  }

  .private-case-detail > .boundary-note {
    padding: 9px 15px;
  }

  .private-stage-nav {
    display: flex;
    overflow-x: auto;
  }

  .private-stage-nav button {
    border-bottom: 0 !important;
    flex: 0 0 138px;
    min-height: 64px;
  }

  .private-stage-workbench {
    padding: 15px;
  }

  .private-transformation-head h5,
  .private-stage-sheet-head h5 {

  }

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

  .private-plan-summary > div + div {
    border-left: 0;
  }

  .private-plan-summary > div:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .private-plan-summary > div:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }

  .private-plan-section > header {
    align-items: start;
    display: grid;
  }

  .private-plan-section > header > span {
    white-space: normal;
  }

  .private-plan-timeline,
  .private-plan-timeline.compact {
    grid-template-columns: 1fr;
  }

  .private-plan-timeline li + li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .private-workstream-layout {
    display: block;
    min-height: 0;
  }

  .private-workstream-nav {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    display: flex;
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
  }

  .private-workstream-nav button {
    border-bottom: 0;
    border-right: 1px solid var(--line);
    flex: 0 0 210px;
  }

  .private-workstream-nav button[aria-selected="true"] {
    box-shadow: inset 0 -3px 0 var(--accent);
  }

  .private-workstream-panel {
    padding: 15px;
  }

  .private-workstream-context,
  .private-workstream-evidence-grid,
  .private-control-grid,
  .private-stage-section-grid,
  .private-vendor-detail,
  .private-model-inputs,
  .private-proof-probability-grid {
    grid-template-columns: 1fr;
  }

  .private-control-grid section,
  .private-control-grid section:nth-child(odd),
  .private-control-grid section:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .private-control-grid section:last-child {
    border-bottom: 0;
  }

  .private-probability-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .private-probability-strip > p {
    border-top: 1px solid #cfddd6;
    grid-column: 1 / -1;
  }

  .private-model-inputs > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .private-scenario-table {
    overflow-x: auto;
  }

  .private-scenario-row {
    grid-template-columns: 110px repeat(4, 100px);
    min-width: 560px;
  }

  .private-case-sources {
    margin: 0 15px 22px;
  }
}

/* Stage 1–3 intelligence loop: snapshot truth before historical inventory. */
.today-intelligence-loop {
  background: var(--panel-soft);
}

.today-intelligence-header {
  align-items: center;
}

.today-intelligence-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.today-intelligence-actions .inline-route-button {
  min-height: 44px;
}

.today-intelligence-facts {
  border: 1px solid var(--line);
  border-radius: var(--rounded-sm, 5px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
}

.today-intelligence-facts > div {
  background: var(--panel);
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px 12px;
}

.today-intelligence-facts > div + div {
  border-left: 1px solid var(--line);
}

.today-intelligence-facts dt,
.market-loop-freshness dt {
  color: var(--muted);

}

.today-intelligence-facts dd,
.market-loop-freshness dd {
  color: var(--ink);

  margin: 0;
  overflow-wrap: anywhere;
}

.market-loop-header {
  align-items: center;
}

.market-loop-header p,
.market-detail-panel > .panel-header p {
  color: var(--muted);

  margin: 4px 0 0;
}

.market-loop-freshness {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.market-loop-freshness > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 14px;
}

.market-loop-freshness > div + div {
  border-left: 1px solid var(--line);
}

.market-loop-lanes {
  background: var(--panel-soft);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 1px;
}

.market-loop-lanes button {
  align-content: start;
  background: var(--panel);
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 5px;
  min-height: 88px;
  min-width: 0;
  padding: 12px 14px;
  text-align: left;
}

.market-loop-lanes button:hover,
.market-loop-lanes button:focus-visible {
  background: var(--accent-soft);
}

.market-loop-lanes button > span {
  color: var(--accent);

}

.market-loop-lanes button > strong {

}

.market-loop-lanes button > small {
  color: var(--muted);

}

.market-loop-delta {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  color: var(--muted);

  padding: 10px 14px;
}

.market-loop-delta.good {
  color: var(--ok);
}

.market-loop-delta.warn {
  color: var(--warning);
}

.market-loop-delta.bad {
  color: var(--danger);
}

#market-stage-1,
#market-stage-2,
#market-stage-3 {
  scroll-margin-top: 24px;
}

.signal-quality-gate > summary {
  align-items: center;
  color: var(--ink);
  cursor: pointer;
  display: flex;

  min-height: 44px;
}

.thesis-portfolio-controls {
  align-items: end;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.35fr);
  padding: 12px 14px;
}

.thesis-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.thesis-filter-action {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--rounded-sm, 5px);
  color: var(--ink);
  cursor: pointer;

  min-height: 44px;
  min-width: 44px;
  padding: 8px 10px;
}

.thesis-filter-action.active,
.thesis-filter-action:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.thesis-portfolio-controls label {
  color: var(--muted);
  display: grid;

  gap: 5px;
}

.thesis-portfolio-controls input {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--rounded-sm, 5px);
  color: var(--ink);

  min-height: 44px;
  min-width: 0;
  padding: 8px 10px;
  width: 100%;
}

.thesis-portfolio-card {
  background: var(--panel);
  display: grid;
  gap: 11px;
}

.thesis-version-line {
  color: var(--muted) !important;

  margin: 0 !important;
}

.thesis-argument-grid {
  border: 1px solid var(--line);
  border-radius: var(--rounded-sm, 5px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
}

.thesis-argument-grid > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
}

.thesis-argument-grid > div:nth-child(even) {
  border-left: 1px solid var(--line);
}

.thesis-argument-grid > div:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}

.thesis-argument-grid dt,
.thesis-change-summary > span,
.thesis-stage3-handoff span {
  color: var(--muted);

}

.thesis-argument-grid dd {
  color: var(--ink);

  margin: 0;
  overflow-wrap: anywhere;
}

.thesis-change-summary {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--rounded-sm, 5px);
  display: grid;
  gap: 4px;
  padding: 10px;
}

.thesis-change-summary p {
  color: var(--ink);
  margin: 0;
}

.thesis-analysis-disclosure > summary,
.thesis-human-decision > summary {
  cursor: pointer;

  min-height: 44px;
}

.thesis-evidence-columns {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 10px;
}

.thesis-evidence-columns section {
  min-width: 0;
}

.thesis-evidence-columns h5 {

  margin: 0 0 8px;
}

.thesis-evidence-columns ul,
.stage3-handoff-list ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.thesis-evidence-columns li,
.stage3-handoff-list li {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding-top: 8px;
}

.thesis-evidence-columns li span,
.thesis-evidence-columns li small,
.stage3-handoff-list li span,
.stage3-handoff-list li small {
  color: var(--muted);

  overflow-wrap: anywhere;
}

.thesis-stage3-handoff {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-top: 10px;
}

.thesis-stage3-handoff > div {
  display: grid;
  gap: 3px;
}

.thesis-stage3-handoff strong {

}

.thesis-boundary {
  color: var(--muted);

}

.thesis-decision-options button,
.stage-one-feedback-options button {
  min-height: 44px;
  padding: 8px 10px;
}

.stage3-handoff-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.stage3-handoff-summary {
  border: 1px solid var(--line);
  border-radius: var(--rounded-sm, 5px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  overflow: hidden;
}

.stage3-handoff-summary > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
}

.stage3-handoff-summary > div + div {
  border-left: 1px solid var(--line);
}

.stage3-handoff-summary span,
.stage3-handoff-list > p {
  color: var(--muted);

  margin: 0;
}

.stage3-handoff-summary strong {

}

.stage3-handoff-summary > a,
.thesis-stage3-handoff > a {
  align-items: center;
  color: var(--accent);
  display: inline-flex;

  justify-content: center;
  min-height: 44px;
  padding: 8px 10px;
}

#view-market button,
#view-market a[href],
#view-market summary {
  min-height: 44px;
}

@media (max-width: 820px) {
  .today-intelligence-facts,
  .market-loop-freshness {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .today-intelligence-facts > div:nth-child(3),
  .market-loop-freshness > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .today-intelligence-facts > div:nth-child(4),
  .market-loop-freshness > div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .market-loop-lanes,
  .thesis-portfolio-controls,
  .stage3-handoff-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .market-loop-lanes button {
    min-height: 72px;
  }

  .stage3-handoff-summary > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .today-intelligence-header,
  .thesis-stage3-handoff {
    align-items: stretch;
    flex-direction: column;
  }

  .today-intelligence-actions {
    align-items: stretch;
    display: grid;
    justify-content: stretch;
  }

  .today-intelligence-facts,
  .market-loop-freshness,
  .thesis-argument-grid,
  .thesis-evidence-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .today-intelligence-facts > div + div,
  .market-loop-freshness > div + div,
  .thesis-argument-grid > div:nth-child(even) {
    border-left: 0;
  }

  .today-intelligence-facts > div + div,
  .market-loop-freshness > div + div,
  .thesis-argument-grid > div:nth-child(n + 2) {
    border-top: 1px solid var(--line);
  }

  .thesis-filter-group {
    flex-wrap: nowrap;
    margin: 0 -14px;
    overflow-x: auto;
    padding: 0 14px 4px;
    scrollbar-width: thin;
  }

  .thesis-filter-action {
    flex: 0 0 auto;
  }

  #market-stage-1,
  #market-stage-2,
  #market-stage-3 {
    scroll-margin-top: 116px;
  }
}

#transform-summary[hidden] {
  display: none !important;
}

.support-summary {
  margin-top: 10px;
}

.decision-brief-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 18px 8px;
}

.decision-brief-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  padding: 13px;
  display: grid;
  gap: 8px;
}

.decision-brief-card.primary {
  background: #10201c;
  border-color: #1e3d35;
  color: #eff8f4;
}

.decision-brief-card.warn {
  background: #fffaf0;
  border-color: #e6d5a7;
}

.decision-brief-card.good {
  background: #f0f8f4;
  border-color: #c6dfd0;
}

.decision-brief-card.bad {
  background: #fff4f1;
  border-color: #e5c5be;
}

.decision-brief-card span {
  display: block;
  color: #68766f;

}

.decision-brief-card.primary span {
  color: #9bcfc3;
}

.decision-brief-card strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);

}

.decision-brief-card.primary strong,
.decision-brief-card.primary p,
.decision-brief-card.primary small {
  color: inherit;
}

.decision-brief-card p {
  margin: 0;
  color: #5f6a65;

}

.decision-brief-card small {
  color: #66746e;

}

.eval-control-panel .decision-brief-grid {
  padding-bottom: 10px;
}

.eval-control-panel .control-verdict-band {
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  padding: 0 18px 10px;
}

.eval-control-panel .control-verdict-band .decision-brief-card {
  border-radius: 0;
  border-right-width: 0;
  min-height: 116px;
}

.eval-control-panel .control-verdict-band .decision-brief-card:first-child {
  border-bottom-left-radius: var(--radius);
  border-top-left-radius: var(--radius);
}

.eval-control-panel .control-verdict-band .decision-brief-card:last-child {
  border-bottom-right-radius: var(--radius);
  border-right-width: 1px;
  border-top-right-radius: var(--radius);
}

.eval-control-panel .boundary-note {
  margin: 0 18px 18px;
}

.eval-mobile-triage,
.eval-mobile-brief-drawer {
  display: none;
}

.eval-mobile-triage {
  padding: 0 18px 10px;
}

.eval-mobile-triage-card {
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.eval-mobile-triage-card.good {
  background: #eef8f2;
  border-color: #c6dfd0;
}

.eval-mobile-triage-card.bad {
  background: #fff4f1;
  border-color: #e5c5be;
}

.eval-mobile-triage-card.warn {
  background: var(--panel-soft);
  border-color: var(--warning);
}

.eval-mobile-triage-top {
  align-items: end;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

.eval-mobile-triage-top span {
  color: #64736d;

}

.eval-mobile-triage-top strong {
  color: var(--ink);

}

.eval-mobile-triage-card p {
  color: #53635d;

  margin: 0;
}

.eval-mobile-status-row,
.eval-mobile-chip-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.eval-mobile-status-row span,
.eval-mobile-chip {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
  min-width: 0;
}

.eval-mobile-status-row span {
  color: #40504a;

  padding: 7px 8px;
}

.eval-mobile-chip-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.eval-mobile-chip {
  display: grid;
  gap: 2px;
  padding: 7px 8px;
}

.eval-mobile-chip.good {
  border-color: #c6dfd0;
}

.eval-mobile-chip.warn {
  border-color: #e6d5a7;
}

.eval-mobile-chip.bad {
  border-color: #e5c5be;
}

.eval-mobile-chip strong,
.eval-mobile-chip small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.eval-mobile-chip strong {
  color: var(--ink);

}

.eval-mobile-chip small {
  color: var(--muted);

}

.control-routing-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 18px 16px;
}

.control-routing-panel .eval-ledger {
  border-top: 1px solid var(--line);
}

.ic-decision-brief {
  padding: 0 18px 14px;
}

.ic-lane-board {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 18px 16px;
}

.ic-lane-card {
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 13px;
}

.ic-lane-card.quiet {
  background: #ffffff;
}

.ic-lane-card span {
  color: #68766f;

}

.ic-lane-card strong {
  color: var(--ink);

}

.ic-lane-card p {
  color: #5f6a65;

  margin: 0;
}

.ic-lane-card small {
  color: #7b8581;

}

.ic-decision-note {
  background: #fffaf0;
  border-color: #e6d5a7;
  margin-bottom: 12px;
}

.eval-diagnostic-panel .tier-summary-grid {
  padding: 0 18px 14px;
}

.eval-ledger {
  border-top: 1px solid var(--line);
}

.eval-ledger .eval-grid {
  padding: 14px;
}

.firm-stat {
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px;
}

.firm-stat span {
  display: block;
  color: #a9bbb6;

  margin-bottom: 7px;
}

.firm-stat strong {
  color: #edf5f2;

}

.firm-stat small {
  color: #b8c8c2;
  display: block;

  margin-top: 8px;
}

.firm-stat.primary {
  background: rgba(99, 199, 184, 0.13);
  border-color: rgba(99, 199, 184, 0.34);
}

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

.firm-module {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel-soft);
  min-width: 0;
}

.firm-module * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.firm-module-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.firm-module h4 {
  margin: 0;

}

.firm-module p {
  margin: 0 0 10px;
  color: var(--muted);

}

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

.workflow-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  min-width: 0;
  overflow: hidden;
  padding: 14px;
}

.workflow-card * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.workflow-card-top {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.workflow-card h4 {

  margin: 0;
}

.workflow-card p {
  color: var(--muted);

  margin: 0 0 10px;
}

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

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

.module-columns div {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 9px;
  display: grid;
  gap: 6px;
  align-content: start;
}

.module-columns strong {
  color: var(--ink);

}

.module-columns span {
  color: var(--muted);

}

.signal-quality-gate {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  margin: 12px;
  padding: 14px;
}

.signal-quality-gate-header {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.signal-quality-gate-header h4 {
  color: var(--ink);

  margin: 0;
}

.signal-quality-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 11px;
}

.signal-quality-grid div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 9px;
}

.signal-quality-grid strong {
  color: var(--ink);

}

.signal-quality-grid span {
  color: var(--muted);

}

.stage-handoff-gates {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 12px;
  padding: 14px;
}

.stage-handoff-gates > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 44px;
}

.stage-handoff-gates > summary strong {
  color: var(--accent);

  white-space: nowrap;
}

.stage-handoff-gates-header {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.stage-handoff-gates-header h4 {
  color: var(--ink);

  margin: 0;
}

.stage-handoff-gates-grid {
  margin: 11px 0 0;
}

.checklist-panel {
  padding: 14px;
}

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

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

.underadoption-grid .module-columns {
  grid-template-columns: 1fr;
}

.underadoption-checks {
  margin-top: 0;
}

.checklist-intro {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 14px;
  margin-bottom: 12px;
}

.checklist-intro p {
  margin: 0 0 10px;
  color: var(--muted);

}

.checklist-intro strong {
  display: block;
  color: var(--ink);

}

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

.request-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  min-width: 0;
}

.request-card * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.request-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.request-card h4 {
  margin: 0;

}

.request-card p {
  margin: 0 0 9px;
  color: var(--muted);

}

.request-card .module-columns {
  grid-template-columns: 1fr;
}

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

.gate-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px;
  min-width: 0;
  overflow: hidden;
}

.gate-card > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);

  margin-bottom: 10px;
}

.gate-card h4 {
  margin: 0 0 8px;

}

.gate-card p {
  margin: 0 0 10px;
  color: var(--muted);

}

.gate-card strong {
  display: block;
  color: var(--ink);

}

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

.transform-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-soft);
  padding: 14px;
  min-width: 0;
  overflow: hidden;
}

.transform-card.compact {
  background: var(--panel-soft);
  border-color: var(--line);
}

.transform-card * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.transform-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.transform-card h4 {
  margin: 0;

}

.transform-card p {
  margin: 0 0 9px;
  color: var(--muted);

}

.transform-card-ledger {
  border: 1px solid var(--line);
  border-radius: 9px;
  grid-column: 1 / -1;
  overflow: hidden;
}

.nested-transform-card-grid {
  border-top: 1px solid var(--line);
  padding: 12px;
}

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

.faq-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px;
  min-width: 0;
}

.faq-card h4 {
  margin: 10px 0 7px;

}

.faq-card p {
  margin: 0;
  color: var(--muted);

}

.faq-list {
  padding: 8px 14px 14px;
  display: grid;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;

  padding: 13px 14px;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  border-top: 1px solid var(--line);
  color: var(--muted);

  margin: 0;
  padding: 0 14px 14px;
}

.method-card-grid {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.method-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px;
  min-width: 0;
  overflow: hidden;
}

.method-card * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.method-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.method-card h4 {
  margin: 0;

}

.method-card p {
  margin: 0 0 9px;
  color: var(--muted);

}

.transform-detail .score-row {
  margin-bottom: 10px;
}

.market-layout .panel:first-child {
  grid-column: 1 / -1;
}

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

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

.operator-cadence-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  padding: 14px;
}

.thesis-card {
  border: 1px solid var(--line);
  background: var(--panel-soft);
  border-radius: 8px;
  padding: 13px;
  min-width: 0;
  overflow: hidden;
}

.thesis-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.routine-card {
  border: 1px solid var(--line);
  background: var(--panel-soft);
  border-radius: 8px;
  padding: 13px;
  min-width: 0;
  overflow: hidden;
}

.routine-card.quiet {
  background: #ffffff;
}

.routine-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.routine-card h4 {
  margin: 0;

}

.routine-card p {
  margin: 9px 0 0;
  color: var(--muted);

}

.thesis-card h4 {
  margin: 0;

}

.thesis-card p,
.evidence-excerpt {
  margin: 9px 0 0;
  color: var(--muted);

}

.evidence-excerpt {
  color: #354440;
  background: #eef5f3;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 8px 10px;
}

.score-row {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;

  color: var(--muted);
}

.score-row strong {
  display: block;
  color: var(--ink);

  margin-top: 2px;
}

.domain-row {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.scorecard-panel,
.scorecard-context {
  display: grid;
  gap: 12px;
}

.scorecard-domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.scorecard-domain-grid article {
  border: 1px solid var(--line);
  background: var(--panel-soft);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 7px;
}

.scorecard-domain-grid strong {
  display: block;

}

.scorecard-domain-grid span {

}

.scorecard-factor-table {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.scorecard-factor-table table {
  min-width: 760px;
}

.scorecard-factor-table td {

}

.mini-list {
  margin-top: 10px;
  display: grid;
  gap: 5px;

  color: var(--muted);
}

.mini-list strong {
  color: var(--ink);

}

.mini-list span {

}

.ic-item {
  border-color: var(--line-strong);
}

.ic-item .score-row {
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
}

.ic-item-head {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  min-width: 0;
}

.ic-item-head > div {
  min-width: 0;
}

.ic-item-head span:not(.pill),
.ic-item-body span {
  color: #68766f;
  display: block;

  margin-bottom: 4px;

}

.ic-item-head h4 {
  margin: 0;
}

.ic-item-head > strong {
  background: #f4f7f4;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #34423d;
  flex: 0 0 auto;

  padding: 7px 9px;
}

.ic-item-body {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.ic-item-body p {
  color: #4f5d57;

  margin: 0;
}

.ic-proof-strip {
  align-items: center;
  border-top: 1px solid var(--line);
  color: #6e7874;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
}

.ic-proof-strip span:not(.pill) {

}

.source-intake-panel {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.source-owner-request-panel {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.source-owner-outcome-scaffold-panel {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.source-movement-gate-panel {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.source-intake-scaffolds-panel {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.source-intake-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.source-intake-header h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 2px 0 0;

}

.source-intake-proof {
  max-width: 920px;
  margin: 0 0 12px;
  color: var(--muted);

}

.source-intake-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.source-intake-panel .firm-stat,
.source-owner-request-panel .firm-stat,
.source-owner-outcome-scaffold-panel .firm-stat,
.source-movement-gate-panel .firm-stat,
.source-intake-scaffolds-panel .firm-stat {
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.source-intake-panel .firm-stat span,
.source-owner-request-panel .firm-stat span,
.source-owner-outcome-scaffold-panel .firm-stat span,
.source-movement-gate-panel .firm-stat span,
.source-intake-scaffolds-panel .firm-stat span {
  color: var(--muted);
}

.source-intake-panel .firm-stat strong,
.source-owner-request-panel .firm-stat strong,
.source-owner-outcome-scaffold-panel .firm-stat strong,
.source-movement-gate-panel .firm-stat strong,
.source-intake-scaffolds-panel .firm-stat strong {
  color: var(--ink);
}

.source-intake-boundary {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);

}

.source-intake-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.source-request-card-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  margin: 12px 0;
}

.source-request-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
}

.source-request-card.primary {
  background: #10201c;
  border-color: #1e3d35;
  color: #eff8f4;
}

.source-request-card.locked {
  background: #fff8f3;
  border-color: #ead0c2;
}

.source-request-card span {
  color: #65746e;

}

.source-request-card.primary span,
.source-request-card.primary strong,
.source-request-card.primary p,
.source-request-card.primary small {
  color: inherit;
}

.source-request-card strong {
  color: var(--ink);

  overflow-wrap: anywhere;
}

.source-request-card p {
  color: #5f6a65;

  margin: 0;
}

.source-request-card small {
  color: #77827e;

}

.source-subdrawer {
  background: #ffffff;
  margin-top: 10px;
}

.source-subdrawer > summary {
  background: #fbfcfa;
}

.source-subdrawer > summary span:first-child {
  color: var(--ink);
}

.source-subdrawer-body {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding: 12px;
}

.source-intake-class {
  min-width: 0;
}

.source-record-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.source-record-list > strong {
  color: var(--ink);

}

.source-record-card {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-soft) 86%, transparent);
}

.source-record-card.is-ready {
  border-color: color-mix(in srgb, var(--ok) 38%, var(--line));
}

.source-record-card-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.source-record-card-head strong {
  min-width: 0;
  color: var(--ink);

}

.source-record-path {
  margin: 6px 0;
  color: var(--muted);

  overflow-wrap: anywhere;
}

.source-record-meta span {
  overflow-wrap: anywhere;
}

.source-record-meta strong {
  margin-right: 4px;
  color: var(--muted);
}

.source-record-warning {
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.source-record-warning span {
  color: var(--warning);
}

.source-owner-request-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 10px;
}

.source-owner-request-class {
  min-width: 0;
}

.source-scaffold-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 10px;
}

.source-intake-scaffold {
  min-width: 0;
}

.source-movement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 10px;
  margin-top: 12px;
}

.source-unlock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 10px;
  margin-top: 10px;
}

.source-movement-list,
.source-movement-next,
.source-unlock-card,
.source-unlock-policy {
  min-width: 0;
}

.source-movement-next {
  margin-top: 10px;
}

.source-owner-format,
.source-owner-acceptance {
  margin: 12px 0;
}

.source-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);

}

.inline-action {
  padding: 6px 9px;

  border-radius: 6px;
}

/* Modern95 UX system: restrained operating-product polish. */
body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0) 260px),
    var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.app-shell {
  grid-template-columns: 236px minmax(0, 1fr);
}

.sidebar {
  background: #101614;
  border-right: 1px solid #22302b;
  gap: 22px;
  padding: 20px 14px;
}

.brand {
  padding: 0 2px 4px;
}

.brand-mark {
  background: #17231f;
  border-color: #34433e;
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.brand h1 {

}

.brand p {
  color: #a0afa9;
}

.nav-section-label,
.nav-group-label {
  color: #7f918b;

}

.nav-primary,
.nav-secondary {
  gap: 3px;
}

.nav-item {
  border-radius: var(--radius);
  color: #b9c6c1;

  padding: 9px 10px;
  position: relative;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #f8fbfa;
}

.nav-item.active {
  background: #202925;
  color: #ffffff;
}

.nav-item.active::before {
  background: #c9a766;
  border-radius: 99px;
  content: "";
  inset: 8px auto 8px 0;
  position: absolute;
  width: 3px;
}

.nav-drawer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.nav-drawer summary {
  border-radius: var(--radius);
  color: #a3b2ad;

}

.sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

main {
  padding: 28px 30px 40px;
}

.topbar {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
  padding-bottom: 18px;
}

.page-heading {
  display: grid;
  gap: 4px;
  max-width: min(860px, 100%);
}

.topbar h2 {

  max-width: none;
}

.page-subtitle {
  color: var(--muted);

  margin: 3px 0 0;
  max-width: 820px;
}

.section-label {
  color: #4d7770;

  margin-bottom: 5px;

}

.ops-drawer summary {
  border-color: var(--line);
  border-radius: var(--radius);
  min-height: 40px;
  padding: 8px 10px;
}

.ops-drawer summary span {

}

.ops-drawer summary small {
  max-width: 150px;
}

.ops-drawer .topbar-actions {
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(18, 24, 23, 0.13);
}

button,
input[type="search"],
select {
  border-radius: var(--radius);
}

button {

  min-height: 34px;
}

.action-status {
  align-items: center;
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-color: var(--line-strong);
  border-radius: var(--radius);
  box-shadow: none;

  margin: 0 0 12px;
  min-height: 40px;
  padding: 8px 11px;
}

.action-status strong {
  color: #24302d;

}

.metrics {
  gap: 8px;
  margin-bottom: 14px;
}

.metric {
  border-radius: var(--radius);
  box-shadow: none;
  min-height: 62px;
  padding: 11px 12px;
}

.metric.primary {
  background: #13211d;
}

.metric.needs-attention {
  background: #fffaf0;
  border-color: #d8bd7d;
}

.metric span {

  margin-bottom: 8px;

}

.metric strong {

}

.panel,
.list-item,
.eval-item,
.firm-module,
.workflow-card,
.gate-card,
.transform-card,
.faq-card,
.method-card,
.thesis-card,
.routine-card,
.request-card,
.checklist-intro,
.source-intake-boundary,
.process-stage,
.process-state-card,
.tier-card {
  border-radius: var(--radius);
}

.panel {
  border-color: var(--line);
  box-shadow: 0 1px 0 rgba(18, 24, 23, 0.035);
}

.panel-header {
  background: #fbfcfa;
  padding: 14px 16px;
}

.panel-header h3 {

}

.mini-note {
  color: #73807c;

  max-width: 330px;
}

.target-tools {
  background: #fbfcfa;
  gap: 8px;
  padding: 10px 12px;
}

input[type="search"],
select {
  background: #fff;
  border-color: var(--line);
  min-height: 38px;
}

input[type="search"]:focus,
select:focus,
button:focus-visible,
.nav-item:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(20, 106, 97, 0.28);
  outline-offset: 2px;
}

table {

}

th {
  background: #f7f8f5;
  color: #59645f;

  padding: 9px 12px;
}

td {
  padding: 11px 12px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tr.target-row:hover {
  background: #f8fbfa;
}

tr.target-row.selected {
  background: #edf7f4;
  box-shadow: inset 3px 0 0 var(--accent);
}

.target-name {

}

.pill {
  border: 1px solid transparent;
  border-radius: 4px;

  padding: 3px 6px;

  white-space: nowrap;
}

.pill.good {
  background: #e9f4ed;
  border-color: #cae3d2;
}

.pill.warn {
  background: #faf5e6;
  border-color: #e1d1a2;
}

.pill.bad {
  background: #fae9e7;
  border-color: #edc7c3;
}

.rail-panel {
  display: grid;
  grid-template-columns: minmax(190px, 0.22fr) minmax(0, 1fr);
}

.rail-panel .panel-header {
  align-content: center;
  align-items: flex-start;
  background: #fff;
  border-bottom: 0;
  border-right: 1px solid var(--line);
  display: grid;
}

.rail-panel .panel-header h3 {

}

.rail-stack {
  background: #fff;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(260px, 1.25fr);
}

.rail-section {
  min-height: 104px;
  padding: 14px 16px;
}

.rail-section p,
.proof-preview,
.source-record-path {
  overflow-wrap: anywhere;
}

.rail-section strong {

}

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

.rail-facts div,
.goal-grid div,
.target-detail-kpis span,
.score-row span,
.module-columns div,
.source-record-card,
.source-intake-panel .firm-stat,
.source-owner-request-panel .firm-stat,
.source-owner-outcome-scaffold-panel .firm-stat,
.source-movement-gate-panel .firm-stat,
.source-intake-scaffolds-panel .firm-stat {
  border-radius: var(--radius);
  box-shadow: none;
}

.list {
  gap: 8px;
  padding: 10px;
}

.list.compact {
  max-height: none;
}

.list-item {
  background: #fbfcfa;
  padding: 11px 12px;
}

.list-item-head {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

.list-item-head h4 {
  min-width: 0;
}

.list-item h4 {

}

.list-item p,
.eval-item p,
.firm-module p,
.workflow-card p,
.gate-card p,
.transform-card p,
.faq-card p,
.method-card p,
.thesis-card p,
.routine-card p,
.request-card p,
.source-intake-proof,
.source-intake-boundary {
  color: #65726d;

}

.proof-item {
  background: #fff;
}

.proof-preview {
  margin-top: 8px;
  max-width: 94ch;
}

.inline-disclosure {
  border-top: 1px solid var(--line);
  margin-top: 9px;
  padding-top: 8px;
}

.inline-disclosure summary {
  color: #5b6964;
  cursor: pointer;
  display: inline-flex;

  list-style: none;
}

.inline-disclosure summary::-webkit-details-marker {
  display: none;
}

.inline-disclosure[open] summary {
  margin-bottom: 8px;
}

.inline-disclosure p {
  color: #4f5e59;

  margin: 0;
}

.list-meta {
  color: #77827e;

  gap: 6px;
}

.brief-layout,
.firm-layout,
.transform-layout,
.method-layout,
.market-layout,
.agenda-layout {
  gap: 14px;
}

.brief-layout .hero-panel,
.firm-layout .hero-panel,
#view-firm .hero-panel.panel,
.transform-layout .hero-panel,
.method-layout .hero-panel {
  background: #101614 !important;
  border-color: #25342f !important;
  border-radius: var(--radius);
}

.hero-panel .panel-header {
  background: transparent;
}

.brief-headline {

  padding: 0 16px 16px;
}

.hero-panel .firm-summary,
.hero-panel .brief-focus {
  padding: 0 16px 16px;
}

.focus-chip {
  border-radius: 4px;
}

.firm-stat {
  border-radius: var(--radius);
}

.firm-stat strong {

}

.gate-card > span,
.process-stage-index {
  border-radius: 4px;
}

.source-intake-panel,
.source-owner-request-panel,
.source-owner-outcome-scaffold-panel,
.source-movement-gate-panel,
.source-intake-scaffolds-panel {
  margin: 0;
  padding: 18px 16px;
}

.source-intake-panel:first-of-type {
  padding-top: 16px;
}

.source-intake-header {
  margin-bottom: 9px;
}

.source-intake-header h3 {

}

.source-intake-metrics {
  gap: 8px;
}

.source-intake-grid,
.source-owner-request-grid,
.source-scaffold-grid,
.source-movement-grid,
.source-unlock-grid {
  gap: 8px;
}

.source-record-list {
  gap: 7px;
}

.source-record-card {
  background: #fff;
}

.source-path {
  background: #f6f8f5;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #66736e;
  display: inline-flex;

  max-width: 100%;
  padding: 3px 5px;
}

#view-method .hero-panel.panel {
  background: #fff !important;
  border-color: var(--line) !important;
  box-shadow: 0 1px 0 rgba(18, 24, 23, 0.035);
  color: var(--ink) !important;
}

#view-method .hero-panel.panel .panel-header {
  background: #fbfcfa;
  border-bottom-color: var(--line);
}

#view-method .hero-panel .section-label {
  color: #4d7770;
}

#view-method .hero-panel .mini-note,
#view-method .method-layout .brief-headline {
  color: var(--muted);
}

#view-method .hero-panel .firm-summary {
  gap: 8px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

#view-method .hero-panel .firm-stat {
  background: #fbfcfa;
  border-color: var(--line);
  min-height: 62px;
}

#view-method .hero-panel .firm-stat span {
  color: #68766f;
}

#view-method .hero-panel .firm-stat strong {
  color: var(--ink);

}

#view-transformability .hero-panel.panel {
  background: #fff !important;
  border-color: var(--line) !important;
  box-shadow: 0 1px 0 rgba(18, 24, 23, 0.035);
  color: var(--ink) !important;
}

#view-transformability .hero-panel.panel .panel-header {
  background: #fbfcfa;
  border-bottom-color: var(--line);
}

#view-transformability .hero-panel .section-label {
  color: #4d7770;
}

#view-transformability .hero-panel .mini-note {
  color: var(--muted);
}

#view-transformability .hero-panel .brief-headline {
  color: var(--ink);

  max-width: 980px;
}

#view-transformability .hero-panel .firm-summary {
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#view-transformability .hero-panel .firm-stat {
  background: #fbfcfa;
  border-color: var(--line);
  min-height: 62px;
}

#view-transformability .hero-panel .firm-stat span {
  color: #68766f;
}

#view-transformability .hero-panel .firm-stat strong {
  color: var(--ink);

}

.source-intake-boundary {
  background: #fff;
  border: 1px solid var(--line-strong);
}

.source-intake-class .pill.warn,
.source-record-card .pill.warn,
.request-card .pill.warn {
  background: #fbf8ef;
  border-color: #e8ddbd;
  color: #5e502d;
}

.process-map {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  overflow-x: visible;
}

.process-stage {
  min-width: 0;
}

.target-modal-card {
  border-radius: var(--radius);
}

.target-modal-header,
.target-detail-summary,
.target-detail-disclosure > summary,
.nested-detail > summary {
  background: #fbfcfa;
}

.target-detail-disclosure,
.nested-detail {
  border-radius: var(--radius);
}

@media (min-width: 1500px) {
  .overview-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .overview-rail {
    order: -1;
    position: static;
  }

  .rail-stack {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(260px, 1.25fr);
  }

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

  .rail-section {
    border-left: 1px solid var(--line);
    border-top: 0;
  }

  .rail-section:first-child {
    border-left: 0;
  }
}

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

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
  }

  nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .nav-section-label {
    display: none;
  }

  .nav-primary,
  .nav-secondary {
    display: flex;
    gap: 6px;
  }

  .nav-group-label {
    align-self: center;
    flex: 0 0 auto;
    padding: 0 4px;
    white-space: nowrap;
  }

  .nav-drawer {
    border-top: 0;
    padding-top: 0;
    flex: 0 0 auto;
  }

  .nav-drawer summary {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    margin: 0;
    padding: 8px 10px;
    white-space: nowrap;
  }

  .nav-drawer[open] .nav-secondary {
    padding-left: 6px;
  }

  .nav-item {
    flex: 0 0 auto;
    padding: 8px 11px;
    text-align: center;
    white-space: nowrap;

  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand h1 {

  }

  .brand p,
  .sidebar-footer {

  }

  .sidebar-footer {
    margin-top: 0;
    justify-content: flex-end;
  }

  .metrics {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow-x: visible;
    padding-bottom: 2px;
  }

  .metric {
    flex: 0 0 126px;
    padding: 10px 12px;
  }

  .metric span {
    margin-bottom: 6px;
  }

  .metric strong {

  }

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

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

  .overview-rail {
    position: static;
  }

  .rail-panel {
    grid-template-columns: 1fr;
  }

  .rail-panel .panel-header {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .topbar h2 {

    max-width: 520px;
  }

  .ops-drawer {
    min-width: 230px;
  }

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

  .target-tools {
    grid-template-columns: 1fr;
  }

  .market-layout,
  .agenda-layout,
  .brief-layout,
  .transform-layout,
  .method-layout,
  .firm-layout,
  .firm-module-grid,
  .thesis-grid,
  .gate-grid,
  .faq-grid,
  .transform-card-grid,
  .method-card-grid,
  .workflow-coverage-grid,
  .request-grid,
  .operator-cadence-strip,
  .operator-focus-grid,
  .underadoption-formula,
  .decision-band-grid,
  .routine-grid {
    grid-template-columns: 1fr;
  }

  .brief-layout .hero-panel,
  .process-panel,
  .firm-layout .hero-panel,
  .firm-layout .panel.wide,
  .transform-layout .hero-panel,
  .transform-layout .panel.wide,
  .method-layout .hero-panel,
  .method-layout .panel.wide {
    grid-column: auto;
  }

  .process-state-grid,
  .tier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .target-detail-summary {
    grid-template-columns: 1fr;
  }

  .target-detail-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .topbar {
    flex-direction: column;
  }

  .ops-drawer {
    width: 100%;
  }

  .ops-drawer .topbar-actions {
    position: static;
    width: 100%;
  }

  .topbar-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .sidebar {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
  }

  .brand,
  .sidebar-footer {
    justify-content: center;
  }

  nav {
    display: grid;
    gap: 10px;
    overflow: visible;
  }

  .nav-primary,
  .nav-secondary {
    display: flex;
    flex-wrap: wrap;
  }

  .nav-drawer {
    width: 100%;
  }

  main {
    padding: 18px;
  }

  .topbar {
    flex-direction: column;
  }

  .ops-drawer {
    width: 100%;
  }

  .ops-drawer .topbar-actions {
    position: static;
    width: 100%;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .action-status {
    flex-direction: column;
  }

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

  .rail-stack {
    grid-template-columns: 1fr;
  }

  .rail-facts {
    grid-template-columns: 1fr;
  }

  .rail-section {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .rail-section:first-child {
    border-top: 0;
  }

  .source-owner-request-grid,
  .source-scaffold-grid,
  .source-movement-grid,
  .source-unlock-grid {
    grid-template-columns: 1fr;
  }

  input[type="search"] {
    min-width: 0;
    width: 100%;
  }

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .mini-note {
    text-align: left;
  }

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

  .brief-headline {

  }

  .process-state-grid,
  .tier-grid {
    grid-template-columns: 1fr;
  }

  .target-modal {
    padding: 10px;
    align-items: stretch;
  }

  .target-modal-card {
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 8px;
  }

  .target-modal-header {
    align-items: flex-start;
  }

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

  .target-detail-disclosure > summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .target-detail-disclosure > summary > span:last-child:not(:first-child) {
    margin-left: 0;
  }
}

/* Stakeholder capture: keep the thesis case, countercase, and falsifier on one readable canvas. */
.stakeholder-presentation .market-readable-layout {
  grid-template-columns: minmax(0, 1fr);
}

.stakeholder-presentation .market-readable-layout > .market-detail-panel {
  grid-column: 1 / -1;
}

.stakeholder-presentation .market-detail-panel .thesis-grid {
  grid-template-columns: minmax(0, 1fr);
}

.stakeholder-presentation .thesis-portfolio-card {
  padding: 22px 24px;
}

.stakeholder-presentation .thesis-argument-grid dt,
.stakeholder-presentation .thesis-change-summary > span,
.stakeholder-presentation .thesis-stage3-handoff span,
.stakeholder-presentation .thesis-version-line {

}

.stakeholder-presentation .thesis-argument-grid dd,
.stakeholder-presentation .thesis-change-summary p,
.stakeholder-presentation .thesis-review-rule span,
.stakeholder-presentation .thesis-review-rule small {

}

/* Agency95 cascade lock: must remain after legacy responsive rules. */
body {
  background: var(--bg);
}

main {
  padding: 30px 34px 44px;
}

.topbar h2 {

}

.overview-shell {
  grid-template-columns: minmax(0, 1fr) 318px;
}

.overview-rail {
  order: 0;
  position: sticky;
  top: 24px;
}

.rail-panel {
  display: block;
}

.rail-panel .panel-header {
  border-bottom: 1px solid var(--line);
  border-right: 0;
}

.rail-stack,
.rail-facts {
  grid-template-columns: 1fr;
}

.rail-section {
  border-left: 0;
  border-top: 1px solid var(--line);
}

.rail-section:first-child {
  border-top: 0;
}

.target-workbench.panel,
.overview-rail .panel {
  box-shadow: 0 1px 0 rgba(13, 20, 18, 0.04), 0 24px 70px rgba(13, 20, 18, 0.06);
}

.target-tools {
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 280px) minmax(150px, 190px);
}

.target-workbench table {
  table-layout: fixed;
}

.target-workbench th:nth-child(1),
.target-workbench td:nth-child(1) {
  width: 26%;
}

.target-workbench th:nth-child(2),
.target-workbench td:nth-child(2) {
  width: 14%;
}

.target-workbench th:nth-child(3),
.target-workbench td:nth-child(3) {
  width: 16%;
}

.target-workbench th:nth-child(4),
.target-workbench td:nth-child(4) {
  width: 15%;
}

.target-workbench th:nth-child(5),
.target-workbench td:nth-child(5) {
  width: 29%;
}

.target-workbench th:nth-child(6),
.target-workbench td:nth-child(6) {
  display: none;
}

.target-workbench td {
  overflow-wrap: normal;
}

.target-workbench td .muted,
.target-workbench td strong {
  overflow-wrap: anywhere;
}

@media (min-width: 1500px) {
  .overview-shell {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .target-workbench th:nth-child(1),
  .target-workbench td:nth-child(1) {
    width: 22%;
  }

  .target-workbench th:nth-child(2),
  .target-workbench td:nth-child(2) {
    width: 12%;
  }

  .target-workbench th:nth-child(3),
  .target-workbench td:nth-child(3) {
    width: 14%;
  }

  .target-workbench th:nth-child(4),
  .target-workbench td:nth-child(4) {
    width: 14%;
  }

  .target-workbench th:nth-child(5),
  .target-workbench td:nth-child(5) {
    width: 25%;
  }

  .target-workbench th:nth-child(6),
  .target-workbench td:nth-child(6) {
    display: table-cell;
    width: 13%;
  }
}

.section-label,
.metric span,
th,
.subhead,
.mini-list strong,
.module-columns strong {

}

.routine-card-top {
  align-items: flex-start;
  display: grid;
  gap: 7px;
  grid-template-columns: 1fr;
  justify-content: stretch;
}

.routine-card-top h4 {
  min-width: 0;
  overflow-wrap: anywhere;
}

.routine-card-top .pill {
  justify-self: start;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

@media (max-width: 1399px) {
  main {
    padding: 24px;
  }

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

  .overview-rail {
    order: -1;
    position: static;
  }

  .rail-panel {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .rail-panel .panel-header {
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

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

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

  .rail-section {
    border-left: 1px solid var(--line);
    border-top: 0;
    min-height: 118px;
    padding: 14px 16px;
  }

  .rail-section:first-child {
    border-left: 0;
  }
}

@media (max-width: 760px) {
  main {
    padding: 18px 14px 28px;
  }

  .topbar h2 {

  }

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

  .target-tools,
  .rail-stack {
    grid-template-columns: 1fr;
  }

  .rail-section,
  .rail-section:first-child {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .rail-section:first-child {
    border-top: 0;
  }
}

/* Agency95 final phone lock: overrides desktop table widths after every legacy block. */
@media (max-width: 760px) {
  .target-workbench table,
  .target-workbench thead,
  .target-workbench tbody,
  .target-workbench tr,
  .target-workbench td,
  .target-workbench th:nth-child(1),
  .target-workbench td:nth-child(1),
  .target-workbench th:nth-child(2),
  .target-workbench td:nth-child(2),
  .target-workbench th:nth-child(3),
  .target-workbench td:nth-child(3),
  .target-workbench th:nth-child(4),
  .target-workbench td:nth-child(4),
  .target-workbench th:nth-child(5),
  .target-workbench td:nth-child(5) {
    width: 100% !important;
  }

  .target-workbench table,
  .target-workbench thead,
  .target-workbench tbody,
  .target-workbench tr,
  .target-workbench td {
    display: block;
  }

  .target-workbench thead {
    display: none;
  }

  .target-workbench tbody {
    display: grid;
    gap: 10px;
    padding: 10px;
  }

  .target-workbench tr.target-row {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    overflow: hidden;
  }

  .target-workbench tr.target-row.selected {
    box-shadow: inset 3px 0 0 var(--accent);
  }

  .target-workbench td {
    align-items: start;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 6px;
    grid-template-columns: 1fr;
    overflow-wrap: anywhere;
    padding: 10px 12px;
  }

  .target-workbench td:last-child {
    border-bottom: 0;
  }

  .target-workbench td::before {
    color: #68736e;
    content: "";

  }

  .target-workbench td:nth-child(1)::before { content: "Target"; }
  .target-workbench td:nth-child(2)::before { content: "Status"; }
  .target-workbench td:nth-child(3)::before { content: "Proof gap"; }
  .target-workbench td:nth-child(4)::before { content: "Score"; }
  .target-workbench td:nth-child(5)::before { content: "Next step"; }

  .target-workbench th:nth-child(6),
  .target-workbench td:nth-child(6) {
    display: none !important;
  }

  .rail-panel {
    display: block;
    grid-template-columns: 1fr;
  }

  .rail-panel .panel-header {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .rail-stack,
  .rail-facts {
    grid-template-columns: 1fr;
  }

  .rail-section {
    min-height: 0;
  }

  .target-title,
  .list-item h4,
  .list-item-head {
    min-width: 0;
  }

  .list-item h4,
  .list-item-head {
    flex-wrap: wrap;
  }

  .list-item h4 .pill,
  .list-item-head .pill {
    margin-left: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }
}

/* Agency96 final cascade lock: keep the live target queue above legacy dashboard rules. */
main {
  padding: 28px 36px 44px;
}

.topbar {
  margin-bottom: 12px;
}

.topbar h2 {

}

.metrics {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(13, 20, 18, 0.04), 0 18px 52px rgba(13, 20, 18, 0.045);
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
  overflow: hidden;
}

.metric {
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--line);
  box-shadow: none;
  min-height: 66px;
  padding: 12px 16px;
}

.metric:last-child {
  border-right: 0;
}

.metric.primary {
  background: #0b1a17;
  border-color: #0b1a17;
}

.metric.needs-attention {
  background: #fffaf0;
}

.metric strong {

}

.overview-shell.target-cockpit {
  align-items: start;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.target-workbench.panel,
.overview-rail .panel {
  border: 1px solid #dce3dd;
  box-shadow: 0 1px 0 rgba(13, 20, 18, 0.04), 0 28px 86px rgba(13, 20, 18, 0.065);
}

.target-workbench.panel {
  overflow: hidden;
}

.target-tools {
  background: #f8faf7;
  border-bottom: 1px solid var(--line);
  gap: 10px;
  grid-template-columns: minmax(250px, 1fr) minmax(178px, 220px) minmax(132px, 156px);
  padding: 12px 16px;
}

.target-queue-head,
.target-row {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 1.25fr) 128px 142px 150px minmax(230px, 1.35fr);
}

.overview-rail {
  order: 0;
  position: sticky;
  top: 24px;
}

.overview-rail .rail-panel {
  background: #0a1715;
  border-color: #0a1715;
  color: #f8fbf8;
  display: block;
  overflow: hidden;
}

.overview-rail .panel-header {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 0;
  padding: 20px;
}

.overview-rail .section-label {
  color: #b7c6c0;
}

.overview-rail h3,
.overview-rail .rail-section strong,
.overview-rail .rail-facts strong {
  color: #ffffff;
}

.overview-rail .pill {
  background: rgba(210, 178, 96, 0.14);
  border-color: rgba(210, 178, 96, 0.5);
  color: #f2d68c;
}

.rail-stack,
.rail-facts {
  grid-template-columns: 1fr;
}

.rail-section {
  border-left: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  min-height: auto;
  padding: 18px 20px;
}

.rail-section:first-child {
  border-top: 0;
}

.rail-section > span,
.rail-facts span {
  color: #9fb0aa;

}

.rail-section p {
  color: #bdc9c4;
}

.rail-facts div {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.overview-rail .rail-facts div {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.overview-rail .rail-facts strong {
  color: #ffffff;
  display: block;

  margin-top: 4px;
}

@media (min-width: 1181px) {
  .overview-shell.target-cockpit {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .overview-rail {
    order: 0;
    position: sticky;
  }

  .overview-rail .rail-panel {
    display: block;
  }

  .overview-rail .panel-header {
    border-right: 0;
  }

  .rail-stack,
  .rail-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  main {
    padding: 24px;
  }

  .overview-shell.target-cockpit {
    grid-template-columns: 1fr;
  }

  .overview-rail {
    order: -1;
    position: static;
  }

  .overview-rail .rail-panel {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .overview-rail .panel-header {
    border-bottom: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }

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

  .rail-section {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 0;
  }

  .rail-section:first-child {
    border-left: 0;
  }

  .target-queue-head,
  .target-row {
    grid-template-columns: minmax(170px, 1.2fr) 124px 136px minmax(220px, 1.3fr);
  }

  .target-queue-head span:nth-child(4),
  .proof-cell {
    display: none;
  }
}

@media (max-width: 820px) {
  main {
    padding: 18px 14px 30px;
  }

  .topbar h2 {

  }

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

  .metric:nth-child(2n) {
    border-right: 0;
  }

  .metric:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .overview-rail .rail-panel {
    grid-template-columns: 1fr;
  }

  .overview-rail .panel-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 0;
  }

  .rail-stack {
    grid-template-columns: 1fr;
  }

  .rail-section,
  .rail-section:first-child {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .rail-section:first-child {
    border-top: 0;
  }

  .target-tools {
    grid-template-columns: 1fr;
  }

  .target-queue-head {
    display: none;
  }

  .target-row {
    gap: 11px;
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .proof-cell {
    display: block;
  }

  .queue-label {
    display: block;
  }

  .queue-cell {
    display: grid;
    gap: 10px;
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .score-meter {
    width: 100%;
  }
}

/* Agency96 QA lock: rail contrast and queue column pressure. */
.target-queue-head,
.target-row {
  gap: 10px;
  grid-template-columns: minmax(160px, 1.18fr) 120px 126px 112px minmax(210px, 1.6fr);
}

.proof-cell .queue-subtle {
  display: none;
}

.next-cell strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.overview-rail .rail-stack,
.overview-rail .rail-section {
  background: #0a1715;
}

.overview-rail .rail-section {
  color: #f8fbf8;
}

.overview-rail .rail-section p,
.overview-rail .rail-facts span {
  color: #bdc9c4;
}

.overview-rail .rail-facts div {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.overview-rail .rail-facts strong {
  color: #ffffff;
  display: block;

  margin-top: 4px;
}

@media (max-width: 1180px) {
  .target-queue-head,
  .target-row {
    grid-template-columns: minmax(170px, 1.2fr) 124px 136px minmax(220px, 1.3fr);
  }
}

@media (max-width: 820px) {
  .target-row {
    grid-template-columns: 1fr;
  }

  .proof-cell .queue-subtle {
    display: block;
  }
}

/* Agency96 QA lock v2: fit the queue inside the workbench at common desktop widths. */
.target-queue-head,
.target-row {
  grid-template-columns: minmax(150px, 1.1fr) 118px 126px 92px minmax(170px, 1.7fr);
}

.target-row,
.next-cell,
.next-cell > div,
.next-cell strong,
.next-cell .queue-subtle {
  max-width: 100%;
  min-width: 0;
}

.next-cell strong,
.next-cell .queue-subtle {
  overflow: hidden;
  text-overflow: ellipsis;
}

.score-meter {
  width: 72px;
}

@media (max-width: 1180px) {
  .target-queue-head,
  .target-row {
    grid-template-columns: minmax(160px, 1.2fr) 116px 126px minmax(190px, 1.4fr);
  }
}

@media (max-width: 820px) {
  .target-row {
    grid-template-columns: 1fr;
  }
}

/* Agency96 QA lock v3: phone-first queue ordering. */
@media (max-width: 820px) {
  .overview-rail {
    order: 0;
  }
}

/* Agency97 comprehensive UX pass: readable brief, non-overlapping queue, wrapped process surfaces. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

main {
  min-width: 0;
}

.panel,
.workflow-card,
.gate-card,
.transform-card,
.faq-card,
.method-card,
.thesis-card,
.routine-card,
.request-card,
.list-item,
.process-stage,
.process-state-card,
.tier-card {
  min-width: 0;
}

.panel-header {
  align-items: flex-start;
}

.panel-header > div {
  min-width: 0;
}

.mini-note {

  overflow-wrap: anywhere;
}

.brief-layout .hero-panel {
  background: #ffffff;
  border-color: #dbe3dd;
  color: var(--ink);
  display: grid;
  gap: 0;
  overflow: hidden;
}

.brief-layout .hero-panel .panel-header {
  border-bottom: 0;
  padding: 18px 20px 7px;
}

.brief-layout .hero-panel .panel-header h3 {
  color: var(--ink);

}

.brief-layout .hero-panel .section-label {
  color: var(--accent);
}

.brief-layout .hero-panel .mini-note {
  color: var(--muted);
  max-width: 190px;
  text-align: right;
}

.brief-layout .hero-panel .brief-headline {
  color: var(--ink);

  margin: 0;
  max-width: none;
  padding: 0 20px 0;
}

.brief-layout .hero-panel .brief-focus {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  margin: 15px 0 0;
  padding: 16px 20px 20px;
}

.brief-layout .hero-panel .focus-chip {
  background: #f7f9f6;
  border: 1px solid #dfe6df;
  border-radius: 7px;
  color: var(--ink);

  max-width: none;
  min-width: 0;
  padding: 10px 12px;
}

.firm-layout .hero-panel,
#view-firm .hero-panel.panel,
.transform-layout .hero-panel,
.method-layout .hero-panel,
#view-method .hero-panel.panel,
#view-transformability .hero-panel.panel {
  color: #edf5f2 !important;
}

.firm-layout .hero-panel h3,
.firm-layout .hero-panel .brief-headline,
.firm-layout .hero-panel .firm-summary,
.firm-layout .hero-panel .firm-stat strong,
#view-firm .hero-panel.panel h3,
#view-firm .hero-panel.panel strong,
.transform-layout .hero-panel h3,
.transform-layout .hero-panel .brief-headline,
.transform-layout .hero-panel .firm-summary,
.method-layout .hero-panel h3,
.method-layout .hero-panel .brief-headline,
.method-layout .hero-panel .firm-summary,
#view-method .hero-panel.panel h3,
#view-transformability .hero-panel.panel h3 {
  color: #f8fbf8 !important;
}

.process-map {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  overflow-x: visible;
}

.process-stage {
  min-width: 0;
}

.process-state-grid {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.tier-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.overview-shell.target-cockpit {
  gap: 16px;
}

.target-workbench.panel {
  min-width: 0;
}

.target-tools {
  grid-template-columns: minmax(240px, 1fr) minmax(220px, 260px) minmax(170px, 220px);
}

.target-queue-head,
.target-row {
  gap: 14px;
  grid-template-columns: minmax(210px, 1.2fr) 96px 116px 88px minmax(240px, 1.45fr);
}

.target-row {
  align-items: start;
  min-height: 104px;
  padding: 15px 16px;
}

.target-row-main,
.queue-cell,
.queue-cell > div,
.next-cell,
.next-cell > div,
.score-cell,
.proof-cell,
.state-cell {
  min-width: 0;
}

.target-row-main {
  gap: 6px;
}

.queue-eyebrow {
  display: block;

  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.target-row-main .target-name {

}

.target-row-main .ownership-inline {
  color: #53665f;
  display: block;

  overflow-wrap: anywhere;
}

.target-row-main .ownership-inline.incomplete {
  color: #8a5b20;

}

.queue-cell {
  align-content: start;
}

.queue-cell > div {
  display: grid;
  gap: 4px;
}

.next-cell strong,
.next-cell .queue-subtle,
.proof-cell .queue-subtle {
  display: block;
  max-width: 100%;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.proof-cell .queue-subtle {
  display: none;
}

.next-cell strong {
  -webkit-box-orient: initial;
  -webkit-line-clamp: initial;

}

.score-meter {
  max-width: 96px;
  width: 100%;
}

@media (max-width: 1440px) {
  .overview-shell.target-cockpit {
    grid-template-columns: 1fr;
  }

  .overview-rail {
    order: -1;
    position: static;
  }

  .overview-rail .rail-panel {
    display: grid;
    grid-template-columns: minmax(190px, 0.22fr) minmax(0, 1fr);
  }

  .overview-rail .panel-header {
    border-bottom: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    padding: 16px 18px;
  }

  .overview-rail .rail-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-rail .rail-section {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 0;
    padding: 14px 18px;
  }

  .overview-rail .rail-section:first-child {
    border-left: 0;
  }

  .overview-rail .rail-facts {
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-rail .rail-facts div {
    align-items: start;
    display: grid;
    gap: 3px;
    padding: 7px 8px;
  }

  .overview-rail .rail-facts strong {

    margin-top: 0;
  }

  .overview-rail .rail-facts span {

    white-space: normal;
  }
}

@media (max-width: 1120px) {
  .overview-rail .rail-panel {
    grid-template-columns: 1fr;
  }

  .overview-rail .panel-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 0;
  }

  .overview-rail .rail-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .target-tools {
    grid-template-columns: 1fr;
  }

  .target-queue-head {
    display: none;
  }

  .target-row {
    grid-template-columns: 1fr;
  }

  .queue-label {
    display: block;
  }

  .queue-cell {
    display: grid;
    gap: 10px;
    grid-template-columns: 92px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .brief-layout .hero-panel .panel-header {
    display: grid;
    gap: 8px;
  }

  .brief-layout .hero-panel .mini-note {
    max-width: none;
    text-align: left;
  }

  .overview-rail {
    order: 0;
  }

  .overview-rail .rail-panel {
    grid-template-columns: 1fr;
  }

  .overview-rail .panel-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 0;
  }

  .overview-rail .rail-stack {
    grid-template-columns: 1fr;
  }

  .overview-rail .rail-section,
  .overview-rail .rail-section:first-child {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .overview-rail .rail-section:first-child {
    border-top: 0;
  }
}

/* Agency97 final color authority: no invisible hero text. */
.brief-layout .hero-panel,
.method-layout .hero-panel,
#view-method .hero-panel.panel,
.transform-layout .hero-panel,
#view-transformability .hero-panel.panel {
  background: #ffffff !important;
  border-color: #dbe3dd !important;
  color: var(--ink) !important;
}

.brief-layout .hero-panel h3,
.brief-layout .hero-panel .brief-headline,
.brief-layout .hero-panel .focus-chip,
.method-layout .hero-panel h3,
.method-layout .hero-panel .brief-headline,
.method-layout .hero-panel .firm-summary,
#view-method .hero-panel.panel h3,
#view-method .hero-panel.panel .brief-headline,
#view-method .hero-panel.panel .firm-summary,
.transform-layout .hero-panel h3,
.transform-layout .hero-panel .brief-headline,
.transform-layout .hero-panel .firm-summary,
#view-transformability .hero-panel.panel h3,
#view-transformability .hero-panel.panel .brief-headline,
#view-transformability .hero-panel.panel .firm-summary {
  color: var(--ink) !important;
}

.brief-layout .hero-panel .section-label,
.method-layout .hero-panel .section-label,
.transform-layout .hero-panel .section-label {
  color: var(--accent) !important;
}

.brief-layout .hero-panel .mini-note,
.method-layout .hero-panel .mini-note,
.transform-layout .hero-panel .mini-note {
  color: var(--muted) !important;
}

.firm-layout .hero-panel,
#view-firm .hero-panel.panel {
  background: #ffffff !important;
  border-color: var(--line) !important;
  color: var(--ink) !important;
}

.firm-layout .hero-panel h3,
.firm-layout .hero-panel .brief-headline,
.firm-layout .hero-panel .firm-summary,
.firm-layout .hero-panel .firm-stat strong,
#view-firm .hero-panel.panel h3,
#view-firm .hero-panel.panel strong {
  color: var(--ink) !important;
}

#view-firm .hero-panel.panel .section-label {
  color: var(--accent) !important;
}

#view-firm .hero-panel.panel .mini-note {
  color: var(--muted) !important;
}

.mini-list,
.module-columns,
.module-columns div,
.list-meta,
.source-path {
  max-width: 100%;
  min-width: 0;
}

.mini-list strong,
.mini-list span,
.module-columns strong,
.module-columns span,
.list-meta span,
.source-path,
.evidence-excerpt {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
}

.role-mode-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.role-mode-button {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 2px;
  min-height: 46px;
  min-width: 118px;
  padding: 8px 10px;
  text-align: left;
}

.role-mode-button span {

}

.role-mode-button small {
  color: var(--muted);

}

.role-mode-button:hover,
.role-mode-button.active {
  border-color: rgba(6, 79, 67, 0.35);
  box-shadow: 0 0 0 2px rgba(6, 79, 67, 0.08);
}

.role-card-grid,
.packet-builder-grid,
.cluster-grid,
.operator-lane-grid,
.tier-summary-grid {
  align-items: start;
  display: grid;
  gap: 12px;
}

.role-card-grid,
.packet-builder-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cluster-grid,
.operator-lane-grid,
.tier-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.role-card,
.packet-builder-card,
.cluster-card,
.operator-lane-card,
.tier-summary-card {
  align-content: start;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
}

.role-card.primary,
.packet-builder-card.primary {
  background: #ffffff;
  border-color: var(--line-strong);
}

.packet-action-list,
.packet-proof-list,
.packet-lock-list {
  display: grid;
  gap: 8px;
}

.packet-action-list div,
.packet-proof-list div,
.packet-lock-list span {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
}

.packet-action-list strong,
.packet-proof-list strong {
  color: var(--ink);

}

.packet-action-list span,
.packet-proof-list span,
.packet-lock-list span {
  color: var(--muted);

}

.packet-lock-list span {
  border-color: rgba(184, 88, 62, 0.22);
  color: #5f3429;
}

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

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

.stage6-proof-boundary div {
  background: #f6faf7;
  border: 1px solid #d8e7dc;
  border-radius: var(--radius);
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px;
}

.stage6-proof-boundary span {
  color: var(--muted);

}

.stage6-proof-boundary strong {
  color: var(--ink);

  overflow-wrap: anywhere;
}

.stage6-proof-meta {
  margin: 0;
}

.packet-status-strip div {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
}

.packet-status-strip span,
.packet-card-note {
  color: var(--muted);

}

.packet-status-strip span {

}

.packet-status-strip strong {
  color: var(--ink);

  overflow-wrap: anywhere;
}

.packet-card-note {
  margin: 0;
}

.role-card-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
}

.role-card-head h4,
.tier-summary-card h4 {

  margin: 0;
}

.compact-row {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 3px;
  min-width: 0;
  padding-top: 9px;
}

.compact-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.compact-row strong,
.compact-row span,
.compact-row small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.compact-row span,
.compact-row small,
.compact-empty,
.boundary-note {
  color: var(--muted);

}

.role-card .compact-empty,
.operator-lane-card .compact-empty,
.packet-builder-card .compact-empty {
  background: #f8faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #4a5751;
  padding: 9px 10px;
}

.role-card .compact-subhead {
  margin-top: 2px;
}

.boundary-note {
  background: #fff7e8;
  border: 1px solid #ead8aa;
  border-radius: var(--radius);
  color: #694a0b;
  padding: 9px 10px;
}

.mode-summary,
.summary-strip,
.rail-stat-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  margin-bottom: 12px;
}

.mode-summary.compact {
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  margin-bottom: 0;
}

.mode-summary div,
.summary-chip,
.rail-stat-grid div {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px;
}

.summary-chip small {
  color: var(--muted);

}

.mode-summary span,
.summary-chip span,
.rail-stat-grid span {
  color: var(--muted);

}

.mode-summary strong,
.summary-chip strong,
.rail-stat-grid strong {
  color: var(--ink);

  overflow-wrap: anywhere;
}

.lane-section {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.lane-section summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
}

.lane-section summary span {

}

.lane-section summary strong {
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent);

  padding: 3px 8px;
}

.lane-section-body {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding: 12px;
}

.lane-pill {
  justify-self: start;
  margin-top: 6px;
}

.compact-subhead {

  margin-top: 4px;
}

.tier-summary-card {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) auto;
}

.tier-summary-card p {
  color: var(--muted);

  grid-column: 1 / -1;
  margin: 0;
}

@media (max-width: 920px) {
  .role-card-grid,
  .packet-builder-grid {
    grid-template-columns: 1fr;
  }

  .packet-status-strip {
    grid-template-columns: 1fr;
  }

  .stage6-proof-boundary {
    grid-template-columns: 1fr;
  }

  .role-mode-button {
    min-width: calc(50% - 4px);
  }
}

@media (max-width: 620px) {
  .role-mode-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .role-mode-button {
    min-width: 0;
  }

  .summary-strip,
  .mode-summary,
  .rail-stat-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Commandcenter pass: first-read cards for two-partner operation. */
.decision-board,
.command-center {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.decision-board {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}

.decision-board .command-card:first-child {
  grid-column: span 2;
}

#target-decision-board.decision-board .command-card:first-child {
  grid-column: span 1;
}

.command-card {
  align-content: start;
  background: #f8faf7;
  border: 1px solid #dfe6df;
  border-radius: 7px;
  display: grid;
  gap: 5px;
  min-height: 94px;
  min-width: 0;
  padding: 13px 14px;
}

.command-card.primary {
  background: #10201c;
  border-color: #10201c;
  color: #ffffff;
}

.command-card.needs-attention {
  background: #fff7e7;
  border-color: #ead3a5;
}

.command-card span {
  color: #6b7671;

}

.command-card.primary span {
  color: #b9cac3;
}

.command-card strong {
  color: #101714;

  overflow-wrap: anywhere;
}

.command-card.primary strong {
  color: #ffffff;
}

.command-card p {
  color: #64706a;

  margin: 0;
}

.command-card.primary p {
  color: #d7e2dd;
}

.source-command-center {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding: 16px;
}

.pursuit-gate-board {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding: 16px;
}

.proof-command-center {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding: 16px;
}

.market-command-center {
  background: #ffffff;
  display: grid;
  gap: 14px;
  padding: 16px;
}

.market-command-grid .command-card:first-child {
  grid-column: span 2;
}

.market-action-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  padding: 14px;
}

.market-action-list[hidden] {
  display: none !important;
}

.market-action-card {
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 9px;
  min-width: 0;
  overflow: hidden;
  padding: 13px;
}

.market-action-card h4 {

  margin: 0;
}

.market-action-card p {
  color: #5e6964;

  margin: 0;
}

.market-detail-stack {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.market-detail-ledger .thesis-grid,
.market-detail-ledger .cluster-grid,
.market-detail-ledger .list {
  border-top: 1px solid var(--line);
}

.market-detail-panel .thesis-grid,
.market-detail-panel .cluster-grid {
  grid-template-columns: 1fr;
}

.brief-layout .panel.wide {
  grid-column: 1 / -1;
}

/* 2026-06-23 partner brief-first: put the readable decision context before cockpit depth. */
body[data-view="brief"] .brief-layout .hero-panel {
  order: 1;
}

body[data-view="brief"] .brief-layout .role-panel {
  order: 2;
}

body[data-view="brief"] .brief-layout .partner-support-panel {
  order: 3;
}

body[data-view="brief"] .brief-layout .ben-feedback-panel {
  order: 4;
}

body[data-view="brief"] .brief-layout .ben-workplan-panel {
  order: 5;
}

body[data-view="brief"] .brief-layout .brief-detail-panel {
  order: 6;
}

#brief-partner-cockpit,
#brief-partner-support {
  padding: 14px;
}

.partner-support-panel {
  grid-column: 1 / -1;
}

.partner-support-grid {
  padding-top: 14px;
}

.brief-detail-stack {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.brief-detail-ledger .process-map,
.brief-detail-ledger .process-state-grid,
.brief-detail-ledger .tier-grid,
.brief-detail-ledger .list {
  border-top: 1px solid var(--line);
}

.brief-detail-panel .process-map,
.brief-detail-panel .process-state-grid,
.brief-detail-panel .tier-grid {
  padding: 12px;
}

.source-command-copy {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding-top: 10px;
}

.source-command-copy strong {
  color: var(--ink);

}

.source-command-copy p {
  color: #5f6b65;

  margin: 0;
  max-width: 980px;
}

.source-access-board,
.pursuit-gate-card-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
}

.source-access-card {
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 13px;
}

.source-access-card.primary {
  background: #f6faf7;
  border-color: var(--line-strong);
}

.source-access-card.locked {
  border-color: var(--danger);
}

.source-access-card > span {
  color: #68766f;

}

.source-access-card strong {
  color: var(--ink);

  overflow-wrap: anywhere;
}

.source-access-card p {
  color: #4e5c56;

  margin: 0;
}

.source-access-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.source-access-chip-row span {
  background: #eef4f1;
  border: 1px solid #dce6e0;
  border-radius: 999px;
  color: #3f514a;

  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 5px 8px;
}

.source-gate-summary {
  background: #f8fbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 1px;
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
  min-width: 0;
  overflow: hidden;
}

.source-gate-item {
  background: #ffffff;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 11px;
}

.source-gate-item.primary {
  background: #f5faf6;
}

.source-gate-item.locked {
  background: #fffaf0;
}

.source-gate-item span {
  color: #68766f;

}

.source-gate-item strong {
  color: var(--ink);

  min-width: 0;
  overflow-wrap: anywhere;
}

.source-gate-item p {
  color: #53605a;
  display: -webkit-box;

  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.command-center {
  margin-bottom: 14px;
}

.agenda-current-panel,
.agenda-cadence-panel {
  grid-column: 1 / -1;
}

.agenda-command-panel {
  order: -2;
}

.agenda-current-panel {
  order: -1;
}

body[data-view="agenda"] #operator-command-cards {
  /* 2026-06-22 operator first reachability */
  padding: 14px 16px 16px;
}

.operator-worklist-ledger {
  margin: 0;
}

.operator-detail-stack {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.operator-action-card {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin-bottom: 0;
  min-width: 0;
  padding: 15px;
}

.operator-action-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
}

.operator-action-head h4 {
  color: #111916;

  margin: 0;
  overflow-wrap: anywhere;
}

.operator-action-card p {
  color: #4f5d56;

  margin: 0;
  max-width: 920px;
}

.operator-action-meta,
.operator-lane-count-strip,
.operator-source-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.operator-action-meta span,
.operator-lane-count-strip span,
.operator-source-chip-grid span {
  background: #f7f9f6;
  border: 1px solid #dfe6df;
  border-radius: 999px;
  color: #596861;

  min-width: 0;
  overflow-wrap: anywhere;
  padding: 6px 9px;
}

.operator-action-meta strong,
.operator-lane-count-strip strong {
  color: #17211d;
}

.operator-source-chip-grid span {
  background: #eef4f1;
  color: #243a32;

}

.operator-lane-grid {
  margin-bottom: 12px;
}

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

.operator-lane-card.primary {
  background: #ffffff;
  border-color: var(--line-strong);
}

.operator-task-card p,
.operator-lane-card .compact-row span {
  color: #5e6964;

}

.operator-ledger {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.routine-ledger {
  border-left: 0;
  border-radius: 0;
  border-right: 0;
  border-bottom: 0;
}

.source-detail-ledger,
.pursuit-detail-ledger {
  border-left: 0;
  border-radius: 0;
  border-right: 0;
  border-bottom: 0;
}

.source-detail-stack,
.pursuit-detail-stack {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.source-detail-stack > *,
.pursuit-detail-stack > * {
  min-width: 0;
}

.pursuit-action-row {
  align-items: center;
  justify-content: flex-start;
}

.pursuit-action-row span {
  color: #5d6a63;

}

.operator-ledger summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 13px 15px;
}

.operator-ledger summary span {
  color: #141c19;

}

.operator-ledger summary strong {
  color: #66716c;

}

.operator-ledger-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 9px;
  padding: 12px;
}

.proof-reader-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 16px;
}

.evidence-triage-board {
  background: #fbfcfa;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding: 16px;
}

.evidence-posture-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr));
}

.evidence-posture-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
}

.evidence-posture-card.primary {
  border-color: var(--line-strong);
  box-shadow: 0 14px 30px rgba(21, 34, 29, 0.07);
}

.evidence-posture-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
}

.evidence-posture-head div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.evidence-posture-head span:not(.pill) {
  color: #6d7872;

}

.evidence-posture-head h4 {
  color: var(--ink);

  margin: 0;
  overflow-wrap: anywhere;
}

.evidence-posture-card p {
  color: #4f5d56;

  margin: 0;
}

.evidence-reader-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.evidence-reader-body input[type="search"] {
  margin: 0;
  width: 100%;
}

.evidence-reader-body .summary-strip {
  margin-bottom: 0;
}

.evidence-reader-body .proof-reader-list {
  padding: 0;
}

.claim-triage-board {
  background: #fbfcfa;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding: 16px;
}

.claim-posture-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr));
}

.claim-posture-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
}

.claim-posture-card.primary {
  border-color: var(--line-strong);
  box-shadow: 0 14px 30px rgba(21, 34, 29, 0.07);
}

.claim-posture-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
}

.claim-posture-head div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.claim-posture-head span:not(.pill) {
  color: #6d7872;

}

.claim-posture-head h4 {
  color: var(--ink);

  margin: 0;
  overflow-wrap: anywhere;
}

.claim-posture-card p {
  color: #4f5d56;

  margin: 0;
}

.claim-reader-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.claim-reader-body .summary-strip {
  margin-bottom: 0;
}

.claim-reader-body .proof-reader-list {
  padding: 0;
}

.proof-reader-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 14px;
}

.proof-card-top {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
}

.proof-card-top div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.proof-card-top span:not(.pill) {
  color: #6d7872;

}

.proof-card-top h4 {
  color: var(--ink);

  margin: 0;
  overflow-wrap: anywhere;
}

.proof-reader-card p {
  color: #4f5d56;

  margin: 0;
}

.proof-decision-note {
  background: #f4f7f4;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #33413b;

  padding: 8px 10px;
}

.proof-ledger {
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.proof-ledger summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  padding: 13px 16px;
}

.proof-ledger summary::-webkit-details-marker {
  display: none;
}

.proof-ledger summary span {
  color: var(--ink);

}

.proof-ledger summary strong {
  color: var(--muted);

}

.proof-ledger[open] summary {
  border-bottom: 1px solid var(--line);
}

@media (max-width: 1180px) {
  .decision-board,
  .command-center,
  .decision-brief-grid,
  .control-routing-grid,
  .ic-lane-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .decision-board .command-card:first-child {
    grid-column: span 1;
  }

  .market-command-grid .command-card:first-child {
    grid-column: span 1;
  }

  .target-detail-summary.target-detail-brief {
    grid-template-columns: 1fr;
  }

  .target-brief-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .target-partner-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .source-access-board,
  .pursuit-gate-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .decision-board,
  .command-center,
  .decision-brief-grid,
  .control-routing-grid,
  .ic-lane-board {
    grid-template-columns: 1fr;
  }

  .command-card {
    min-height: auto;
  }

  .decision-brief-grid {
    padding: 0 14px 8px;
  }

  body[data-view="evals"] .eval-control-panel .panel-header {
    padding: 14px 14px 8px;
  }

  body[data-view="evals"] #eval-control-summary,
  body[data-view="evals"] #eval-control-note {
    display: none;
  }

  body[data-view="evals"] .eval-mobile-triage {
    display: block;
    padding: 0 14px 10px;
  }

  body[data-view="evals"] .eval-mobile-brief-drawer {
    border: 1px solid var(--line);
    border-radius: 8px;
    display: block;
    margin: 0 14px 6px;
    overflow: hidden;
  }

  body[data-view="evals"] .eval-mobile-brief-drawer summary {
    min-height: 36px;
    padding: 9px 12px;
  }

  body[data-view="evals"] .eval-mobile-brief-drawer .decision-brief-grid {
    display: grid;
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .control-routing-grid {
    padding: 0 14px 14px;
  }

  .ic-decision-brief,
  .ic-lane-board {
    padding-left: 14px;
    padding-right: 14px;
  }

  .ic-item-head,
  .ic-item-body {
    grid-template-columns: 1fr;
  }

  .ic-item-head {
    display: grid;
  }

  .ic-item-head > strong {
    justify-self: start;
  }

  .source-command-center,
  .pursuit-gate-board {
    padding: 14px;
  }

  .source-access-board,
  .pursuit-gate-card-grid {
    grid-template-columns: 1fr;
  }

  .proof-command-center,
  .proof-reader-list {
    padding: 14px;
  }

  .proof-reader-list {
    grid-template-columns: 1fr;
  }

  .evidence-posture-grid {
    grid-template-columns: 1fr;
  }

  .evidence-reader-body .proof-reader-list {
    padding: 0;
  }

  .claim-posture-grid {
    grid-template-columns: 1fr;
  }

  .claim-reader-body .proof-reader-list {
    padding: 0;
  }

  .target-detail-summary.target-detail-brief {
    position: static;
  }

  .target-brief-card-grid {
    grid-template-columns: 1fr;
  }

  .target-partner-actions {
    grid-template-columns: 1fr;
  }

  .target-brief-proof-head,
  .target-brief-proof-row {
    padding: 9px 10px;
  }

  .operator-ledger summary {
    align-items: start;
    display: grid;
  }
}

/* Mobilefocus pass: keep phone-sized role views on the decision surface, not global telemetry. */
@media (max-width: 620px) {
  .sidebar {
    gap: 8px;
    grid-template-columns: 1fr;
    padding: 10px 12px 8px;
  }

  .brand {
    justify-content: flex-start;
  }

  .brand-mark {
    height: 32px;
    width: 32px;
  }

  .brand h1 {

  }

  .brand p,
  .sidebar-footer {
    display: none;
  }

  nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  .nav-primary,
  .nav-secondary {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .nav-drawer {
    flex: 0 0 auto;
    width: auto;
  }

  .nav-drawer summary,
  .nav-item {

    padding: 7px 9px;
  }

  main {
    padding: 14px 14px 28px;
  }

  .topbar {
    gap: 10px;
    margin-bottom: 9px;
    padding-bottom: 10px;
  }

  .page-heading {
    gap: 2px;
  }

  .topbar h2 {

  }

  .page-subtitle {

    margin-top: 2px;
  }

  .role-mode-strip {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 8px;
  }

  .role-mode-button {
    align-items: center;
    justify-items: center;
    min-height: 38px;
    min-width: 0;
    padding: 6px 4px;
    text-align: center;
  }

  .role-mode-button span {

  }

  .role-mode-button small,
  .ops-drawer summary small {
    display: none;
  }

  .ops-drawer summary {
    min-height: 36px;
    padding: 7px 10px;
  }

  .action-status {
    align-items: center;
    flex-direction: row;

    gap: 8px;
    margin-bottom: 8px;
    min-height: 0;
    padding: 7px 9px;
  }

  .action-status span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-view="firm"] .metrics,
  body[data-view="market"] .metrics,
  body[data-view="method"] .metrics,
  body[data-view="transformability"] .metrics,
  body[data-view="pursuit"] .metrics,
  body[data-view="adapters"] .metrics,
  body[data-view="ingestion"] .metrics,
  body[data-view="evals"] .metrics {
    display: none;
  }

  body[data-view="evals"] .action-status {
    display: none;
  }

  #view-method .hero-panel.panel .panel-header,
  #view-transformability .hero-panel.panel .panel-header {
    padding: 14px 14px 6px;
  }

  #view-method .hero-panel.panel .panel-header h3,
  #view-transformability .hero-panel.panel .panel-header h3 {

  }

  #view-method .hero-panel .brief-headline,
  #view-transformability .hero-panel .brief-headline {

    padding: 0 14px;
  }

  #view-method .decision-brief-grid,
  #view-transformability .decision-brief-grid {
    gap: 8px;
    padding: 12px 14px 8px;
  }

  #view-method .decision-brief-card,
  #view-transformability .decision-brief-card {
    gap: 5px;
    padding: 10px 11px;
  }

  #view-method .decision-brief-card strong,
  #view-transformability .decision-brief-card strong {

    margin-top: 2px;
  }

  #view-method .decision-brief-card p,
  #view-transformability .decision-brief-card p {

  }

  #view-method .decision-brief-card small,
  #view-transformability .decision-brief-card small,
  #view-method .support-summary,
  #view-transformability .support-summary {
    display: none;
  }
}

/* 20260617 target focus: make the default board a compact proof-sprint queue. */
.target-sprint-board {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
}

.target-sprint-summary {
  align-items: stretch;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  padding: 14px;
}

.target-sprint-summary h4 {
  color: #111916;

  margin: 0;
}

.target-sprint-summary p {
  color: #58655f;

  margin: 7px 0 0;
  max-width: 860px;
}

.target-sprint-summary-meta {
  align-content: start;
  display: grid;
  gap: 7px;
  min-width: 150px;
}

.target-sprint-summary-meta span,
.target-sprint-meta span {
  background: #f7f9f6;
  border: 1px solid #dfe6df;
  border-radius: 999px;
  color: #5d6a64;

  padding: 6px 9px;
}

.target-sprint-summary-meta strong,
.target-sprint-meta strong {
  color: #16211d;
}

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

.target-sprint-card {
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 13px;
}

.target-sprint-card:hover,
.target-sprint-card:focus-visible,
.target-sprint-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(63, 116, 99, 0.12);
  outline: none;
}

.target-sprint-rank,
.target-sprint-head span {
  color: #718078;

}

.target-sprint-head {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

.target-sprint-head h4 {
  color: #111916;

  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.target-sprint-card p {
  color: #52615a;

  margin: 0;
}

.target-sprint-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.target-workbench-drawer {
  margin: 0 16px 16px;
}

.target-workbench-body {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.target-sprint-empty {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #596861;
  display: grid;
  gap: 4px;
  padding: 14px;
}

.target-sprint-empty strong {
  color: #111916;
}

@media (max-width: 1440px) {
  .overview-shell.target-cockpit .target-workbench.panel {
    display: block;
    overflow: hidden;
    order: 1;
  }

  .overview-shell.target-cockpit .overview-rail {
    order: 2;
    position: static;
  }
}

.target-focus-head,
.target-focus-queue .target-row-compact {
  grid-template-columns: minmax(200px, 1.08fr) minmax(112px, 0.52fr) minmax(140px, 0.72fr) minmax(220px, 1.35fr);
}

.target-focus-queue .target-row-compact {
  align-items: start;
  min-height: auto;
  padding: 12px 14px;
}

.target-focus-queue .target-row-main {
  gap: 5px;
}

.target-focus-queue .target-row-main .target-name {

}

.target-focus-queue .queue-cell {
  align-content: start;
  gap: 4px;
}

.target-focus-queue .queue-label {
  color: #7b867f;

}

.target-focus-queue .queue-subtle,
.target-focus-queue .proof-cell .queue-subtle {
  color: #5f6a64;
  display: block;

  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.target-focus-queue .next-cell strong {
  display: -webkit-box;

  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.target-full-list:not([open]) #target-full-table {
  display: none;
}

/* 2026-06-23 targets duplicate collapse: full-list proof preview is opt-in. */
body[data-view="overview"] .target-full-list:not([open]) > #target-sprint-board,
body[data-view="overview"] .target-full-list:not([open]) > .target-queue-shell {
  display: none;
}

body[data-view="overview"] .target-full-list[open] > #target-sprint-board {
  border-bottom: 1px solid var(--line);
}

body[data-view="overview"] .target-full-list[open] > .target-queue-shell {
  margin: 0 10px 10px;
}

/* 2026-06-23 target rail visibility: keep decision context beside row selection on desktop/laptop. */
@media (min-width: 1180px) {
  .overview-shell.target-cockpit {
    align-items: start;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) clamp(260px, 21vw, 300px);
  }

  .overview-shell.target-cockpit .target-workbench.panel {
    order: 1;
  }

  .overview-shell.target-cockpit .overview-rail {
    min-width: 0;
    order: 2;
    position: sticky;
    top: 18px;
  }

  .overview-shell.target-cockpit .overview-rail .rail-panel {
    display: block;
  }

  .overview-shell.target-cockpit .overview-rail .panel-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 0;
    padding: 14px 15px 12px;
  }

  .overview-shell.target-cockpit .overview-rail .panel-header h3 {

  }

  .overview-shell.target-cockpit .overview-rail .rail-stack {
    grid-template-columns: 1fr;
  }

  .overview-shell.target-cockpit .overview-rail .rail-section,
  .overview-shell.target-cockpit .overview-rail .rail-section:first-child {
    border-left: 0;
    padding: 12px 15px;
  }

  .overview-shell.target-cockpit .overview-rail .rail-section {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .overview-shell.target-cockpit .overview-rail .rail-section:first-child {
    border-top: 0;
  }

  .overview-shell.target-cockpit .overview-rail .rail-section strong {

  }

  .overview-shell.target-cockpit .overview-rail .rail-section p {

    margin-bottom: 0;
  }

  .overview-shell.target-cockpit .overview-rail .rail-stat-grid {
    gap: 7px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 0 14px 14px;
  }

  .overview-shell.target-cockpit .overview-rail .rail-stat-grid div {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    padding: 8px;
  }

  .overview-shell.target-cockpit .overview-rail .rail-stat-grid span {
    color: #9fb0aa;

  }

  .overview-shell.target-cockpit .overview-rail .rail-stat-grid strong {
    color: #ffffff;

  }

  .overview-shell.target-cockpit .target-workbench,
  .overview-shell.target-cockpit .target-workbench-body,
  .overview-shell.target-cockpit .target-workbench-drawer,
  .overview-shell.target-cockpit .target-full-list,
  .overview-shell.target-cockpit .target-tools,
  .overview-shell.target-cockpit .target-queue-shell,
  .overview-shell.target-cockpit .target-queue,
  .overview-shell.target-cockpit .target-row {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
  }

  .overview-shell.target-cockpit .target-workbench-drawer {
    max-width: calc(100% - 32px);
  }
}

@media (min-width: 1180px) and (max-width: 1440px) {
  .overview-shell.target-cockpit #target-decision-board.decision-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    padding: 8px 16px;
  }

  .overview-shell.target-cockpit #target-decision-board .command-card {
    box-sizing: border-box;
    min-height: 58px;
    padding: 8px 10px;
  }

  .overview-shell.target-cockpit #target-decision-board .command-card strong {

  }

  .overview-shell.target-cockpit #target-decision-board .command-card p {

    -webkit-line-clamp: 1;
  }

  .overview-shell.target-cockpit .target-tools {
    grid-template-columns: minmax(150px, 1.1fr) minmax(150px, 1fr) minmax(110px, 0.7fr) minmax(135px, 0.9fr);
  }

  .overview-shell.target-cockpit .target-tools > * {
    min-width: 0;
  }

  .target-focus-head,
  .target-focus-queue .target-row-compact {
    gap: 10px;
    grid-template-columns: minmax(165px, 1.05fr) minmax(106px, 0.52fr) minmax(170px, 1.12fr);
  }

  .target-focus-head span:nth-child(3),
  .target-focus-queue .target-row-compact .proof-cell {
    display: none;
  }

  .target-full-list .target-queue-head,
  .target-full-list #target-full-table .target-row {
    gap: 10px;
    grid-template-columns: minmax(150px, 1.02fr) 80px 88px minmax(160px, 1.18fr);
  }

  .target-full-list .target-queue-head span:nth-child(4),
  .target-full-list #target-full-table .target-row .proof-cell {
    display: none;
  }
}

@media (max-width: 1120px) {
  .target-focus-head,
  .target-focus-queue .target-row-compact {
    grid-template-columns: minmax(210px, 1.15fr) minmax(126px, 0.62fr) minmax(230px, 1.24fr);
  }

  .target-focus-head span:nth-child(3),
  .target-focus-queue .target-row-compact .proof-cell {
    display: none;
  }
}

@media (max-width: 760px) {
  .target-sprint-summary {
    grid-template-columns: 1fr;
  }

  .target-sprint-summary-meta {
    display: flex;
    flex-wrap: wrap;
    min-width: 0;
  }

  .target-sprint-grid {
    grid-template-columns: 1fr;
  }

  .target-workbench-drawer {
    margin-left: 12px;
    margin-right: 12px;
  }

  .target-focus-head {
    display: none;
  }

  .target-focus-queue .target-row-compact {
    grid-template-columns: 1fr;
    padding: 13px;
  }

  .target-focus-queue .target-row-compact .proof-cell {
    display: grid;
  }

  .target-focus-queue .queue-cell {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
  }
}

/* 2026-06-17 platform chrome compaction: keep route focus above repeated system furniture. */
main {
  padding-top: 22px;
}

.topbar {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 10px;
  padding-bottom: 0;
}

.page-heading {
  gap: 3px;
  max-width: none;
  min-width: 0;
}

.topbar h2 {

}

.page-subtitle {

  max-width: 900px;
}

.role-mode-strip {
  align-items: center;
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.role-mode-button {
  align-items: baseline;
  background: rgba(255, 255, 255, 0.72);
  border-color: #d7ded8;
  border-radius: 999px;
  display: inline-flex;
  gap: 7px;
  justify-content: center;
  min-height: 32px;
  min-width: 0;
  padding: 6px 11px;
  text-align: center;
  white-space: nowrap;
}

.role-mode-button span {

}

.role-mode-button small {
  color: #6f7a74;

}

.role-mode-button:hover,
.role-mode-button.active {
  background: #08231e;
  border-color: #08231e;
  box-shadow: none;
  color: #ffffff;
}

.role-mode-button:hover small,
.role-mode-button.active small {
  color: #b9c8c3;
}

.ops-drawer {
  min-width: 214px;
}

.ops-drawer summary {
  border-radius: 999px;
  min-height: 34px;
  padding: 7px 11px;
}

.action-status {
  align-items: center;
  border-left-width: 1px;
  border-radius: 999px;
  box-shadow: none;

  gap: 8px;
  margin: 0 0 10px;
  min-height: 0;
  padding: 7px 11px;
}

.action-status span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metrics {
  gap: 8px;
  margin-bottom: 14px;
}

.metric {
  min-height: 62px;
  padding: 11px 12px;
}

.metric strong {

}

.mode-summary:empty {
  display: none;
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .ops-drawer {
    justify-self: start;
  }
}

@media (min-width: 621px) and (max-width: 1100px) {
  .sidebar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  nav {
    min-width: 0;
    overflow: visible;
  }

  .nav-primary {
    min-width: 0;
  }

  .nav-drawer {
    position: relative;
  }

  .nav-drawer[open] .nav-secondary {
    background: #101a17;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 10px;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: min(480px, calc(100vw - 28px));
    z-index: 50;
  }

  .nav-drawer[open] .nav-secondary .nav-group-label {
    grid-column: 1 / -1;
    padding: 4px 2px 0;
  }

  .nav-drawer[open] .nav-secondary .nav-item {
    min-width: 0;
  }

  body[data-view="evals"] .metrics,
  body[data-view="evals"] .action-status {
    display: none;
  }
}

@media (max-width: 760px) {
  main {
    padding-top: 12px;
  }

  .topbar {
    gap: 8px;
    margin-bottom: 8px;
  }

  .topbar h2 {

  }

  .role-mode-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }

  .role-mode-button {
    border-radius: 8px;
    min-height: 34px;
    padding: 6px 5px;
  }

  .role-mode-button small,
  .ops-drawer summary small {
    display: none;
  }

  .ops-drawer {
    min-width: 0;
    width: 100%;
  }

  .ops-drawer summary,
  .action-status {
    border-radius: 8px;
  }

  .action-status span {
    white-space: normal;
  }

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

@media (max-width: 620px) {
  nav {
    display: grid;
    gap: 6px;
    overflow: visible;
    padding-bottom: 0;
  }

  .nav-primary,
  .nav-secondary {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nav-drawer {
    width: 100%;
  }

  .nav-drawer summary,
  .nav-item {
    min-width: 0;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-group-label {
    grid-column: 1 / -1;
    padding: 5px 2px 1px;
  }
}

/* 2026-06-17 chrome simplification: the sidebar is the mode switcher; keep the working surface first. */
.role-mode-strip {
  display: none !important;
}

.topbar {
  align-items: start;
  gap: 10px;
  margin-bottom: 7px;
}

.page-heading {
  gap: 2px;
}

.ops-drawer {
  min-width: 154px;
}

.ops-drawer summary {
  background: rgba(255, 255, 255, 0.7);
  border-color: #dbe2dd;
  box-shadow: none;
  min-height: 31px;
  padding: 6px 10px;
}

.ops-drawer summary span {

}

.ops-drawer summary small {
  color: #7c8782;

}

.action-status {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #68736f;
  display: inline-flex;
  margin: -1px 0 8px;
  padding: 0;
}

.action-status strong {
  background: #ffffff;
  border: 1px solid #dce3de;
  border-radius: 999px;
  color: #0f211d;
  padding: 4px 8px;
}

.action-status span {
  color: #6d7874;
}

.action-status.bad {
  background: #fff5f2;
  border: 1px solid #e6b5a9;
  border-radius: 8px;
  padding: 8px 10px;
}

.action-status.bad strong {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #8f3325;
  padding: 0;
}

@media (max-width: 760px) {
  .topbar {
    gap: 6px;
  }

  .ops-drawer {
    width: auto;
  }

  .action-status {
    align-items: flex-start;
    display: flex;
    gap: 6px;
  }

  .action-status span {
    white-space: normal;
  }
}

/* 2026-06-17 mobile tightening: keep the partner decision above the fold. */
@media (max-width: 620px) {
  .sidebar {
    gap: 8px;
    padding: 10px 12px 8px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    height: 32px;
    width: 32px;
  }

  .brand h1 {

  }

  .brand p,
  .nav-section-label,
  .nav-group-label,
  .sidebar-footer {
    display: none;
  }

  nav {
    display: grid;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
  }

  .nav-primary,
  .nav-secondary,
  .nav-drawer[open] .nav-secondary {
    display: flex;
    gap: 6px;
    grid-template-columns: none;
    min-width: 0;
    overflow-x: auto;
    padding: 0 0 2px;
    scrollbar-width: none;
    width: 100%;
  }

  .nav-primary::-webkit-scrollbar,
  .nav-secondary::-webkit-scrollbar {
    display: none;
  }

  .nav-drawer {
    width: 100%;
  }

  .nav-drawer summary,
  .nav-item {
    border-radius: 8px;
    flex: 0 0 auto;

    min-height: 30px;
    min-width: 74px;
    padding: 7px 9px;
    white-space: nowrap;
  }

  .nav-drawer summary {
    justify-content: center;
    min-width: 100%;
  }

  .nav-drawer[open] summary {
    margin-bottom: 2px;
  }

  main {
    padding-top: 10px;
  }

  .topbar {
    gap: 5px;
    margin-bottom: 6px;
  }

  .topbar h2 {

  }

  .page-subtitle {

  }

  .ops-drawer summary {
    min-height: 30px;
    padding: 6px 9px;
  }

  .action-status {
    margin-bottom: 7px;
  }

  .metrics {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .metrics::-webkit-scrollbar {
    display: none;
  }

  .metric {
    flex: 0 0 154px;
    min-height: 82px;
    padding: 10px 11px;
  }

  .metric strong {

  }

  .metric span,
  .metric small {

  }

  #view-method .partnership-rule-grid {
    gap: 8px;
    grid-template-columns: 1fr;
    padding: 0 14px 10px;
  }

  #view-method .partnership-rule-card {
    padding: 11px;
  }

  #view-method .partnership-rule-card strong,
  #view-method .partnership-rule-card p,
  #view-method .partnership-rule-card small {
    overflow-wrap: anywhere;
  }

  #view-method .goal-summary {
    align-items: start;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr);
    justify-content: start;
    padding: 14px;
  }

  #view-method .goal-summary::after {
    display: none;
  }

  #view-method .goal-summary > span:first-child,
  #view-method .goal-summary strong,
  #view-method .goal-summary small {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  #view-method #goal-status {
    justify-self: start;
  }
}

/* 2026-06-17 streamline pass: reduce global chrome before the work surface. */
main {
  padding-top: 24px;
}

.topbar {
  align-items: center;
  gap: 18px;
  margin-bottom: 8px;
}

.page-heading {
  gap: 3px;
}

.topbar h2 {

}

.page-subtitle {

  max-width: 700px;
}

.role-mode-strip {
  display: none;
}

.ops-drawer {
  min-width: 188px;
}

.ops-drawer summary {
  border-radius: 999px;
  min-height: 34px;
  padding: 6px 10px;
}

.ops-drawer summary span {

}

.ops-drawer summary small {

}

.action-status {
  border: 0;
  border-left: 0;
  border-radius: 999px;
  box-shadow: none;
  display: inline-flex;
  gap: 8px;
  margin-bottom: 10px;
  max-width: 100%;
  padding: 5px 10px;
  width: auto;
}

.action-status strong {
  background: transparent;
  border: 0;
  border-radius: 0;

  padding: 0;
}

.action-status span {

}

.metrics {
  box-shadow: 0 1px 0 rgba(13, 20, 18, 0.035);
  margin-bottom: 14px;
}

.metric {
  min-height: 58px;
  padding: 9px 14px;
}

.metric strong {

}

.metric span {

}

.metric small {

  max-width: 30ch;
}

.panel {
  box-shadow: 0 1px 0 rgba(13, 20, 18, 0.035), 0 14px 42px rgba(26, 37, 34, 0.04);
}

.panel-header {
  padding: 15px 16px;
}

.panel-header h3 {

}

@media (max-width: 760px) {
  .topbar {
    align-items: stretch;
  }

  .action-status {
    border-radius: 8px;
    display: flex;
    width: 100%;
  }
}

@media (max-width: 620px) {
  main {
    padding-top: 10px;
  }

  .topbar h2 {

  }

  .action-status {
    margin-bottom: 7px;
    padding: 5px 8px;
  }

  .metric {
    flex-basis: 148px;
    min-height: 76px;
  }
}

/* 2026-06-17 readable5: mobile should read, not scroll sideways. */
@media (max-width: 620px) {
  nav {
    overflow: visible;
  }

  .nav-primary,
  .nav-secondary,
  .nav-drawer[open] .nav-secondary {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    padding: 0;
  }

  .nav-item,
  .nav-drawer summary {
    flex: initial;
    min-width: 0;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
  }

  .nav-drawer summary {
    width: 100%;
  }

  .metrics {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    padding-bottom: 0;
  }

  .metric {
    flex-basis: auto;
    min-height: 0;
  }

  .metric strong,
  .metric small {
    overflow-wrap: anywhere;
  }
}

/* 2026-06-22 target detail UX pass: split partner action from the proof workspace. */
.target-modal-card {
  width: min(1320px, 100%);
}

.target-modal .detail-body {
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.target-modal .detail-body.empty {
  overflow: auto;
  padding: 16px 18px 18px;
}

.target-detail-sheet {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.target-detail-summary.target-detail-rail {
  align-content: start;
  background: #fbfcfa;
  border-bottom: 0;
  border-right: 1px solid var(--line);
  gap: 13px;
  grid-template-columns: 1fr;
  margin: 0;
  min-height: 0;
  overflow: auto;
  padding: 14px;
  position: static;
  top: auto;
  z-index: auto;
}

.target-detail-rail .target-brief-lead {
  gap: 12px;
}

.target-detail-rail .target-partner-actions {
  grid-template-columns: 1fr;
}

.target-detail-rail .target-partner-action {
  min-height: 0;
}

.target-rail-proof-callout {
  background: #fff;
  border: 1px solid #d5e3dc;
  border-color: var(--line-strong);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 11px 12px;
}

.target-rail-proof-callout span {
  color: #59706a;

}

.target-rail-proof-callout strong {
  color: var(--ink);

  overflow-wrap: anywhere;
}

.target-brief-rail-note {
  color: #69746f;

  margin: 0;
}

.target-mobile-action-summary,
.target-mobile-action-detail {
  display: none;
}

.target-detail-workspace {
  align-content: start;
  background: var(--panel);
  display: grid;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding: 14px 16px 18px;
}

.target-detail-workspace-head {
  align-items: center;
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 11px 13px;
}

.target-detail-workspace-head > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.target-detail-workspace-head span {
  color: #63746e;

}

.target-detail-workspace-head strong {
  color: var(--ink);

}

.target-detail-workspace-head p {
  color: var(--muted);

  margin: 0;
  max-width: 440px;
}

.target-detail-stack {
  padding-top: 0;
}

/* 2026-06-23 target detail workspace: make the detail area a selector plus one large active panel. */
.target-detail-workspace .target-detail-stack {
  align-items: stretch;
  display: grid;
  gap: 8px 12px;
  grid-auto-rows: min-content;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
  min-height: min(456px, calc(100vh - 252px));
  position: relative;
}

.target-detail-workspace .target-detail-stack > .target-detail-disclosure {
  display: contents;
}

.target-detail-workspace .target-detail-stack > .target-detail-disclosure > summary {
  align-content: center;
  align-items: start;
  background: #ffffff;
  border: 1px solid var(--line);
  border-color: var(--line-strong);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  grid-column: 1;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 60px;
  padding: 10px 11px;
}

.target-detail-workspace .target-detail-stack > .target-detail-disclosure.primary > summary {
  border-left-color: var(--accent);
}

.target-detail-workspace .target-detail-stack > .target-detail-disclosure[open] > summary {
  background: #10201c;
  border-color: #10201c;
  color: #f8fbf8;
}

.target-detail-workspace .target-detail-stack > .target-detail-disclosure > summary > span:first-child {
  align-self: end;

  overflow-wrap: anywhere;
}

.target-detail-workspace .target-detail-stack > .target-detail-disclosure > summary > span:last-child:not(:first-child) {
  color: #67756f;

  grid-column: 1;

  margin-left: 0;
  overflow-wrap: anywhere;
}

.target-detail-workspace .target-detail-stack > .target-detail-disclosure[open] > summary > span:last-child:not(:first-child) {
  color: rgba(248, 251, 248, 0.72);
}

.target-detail-workspace .target-detail-stack > .target-detail-disclosure > summary::after {
  align-self: start;
  content: "View";

  grid-column: 2;
  grid-row: 1 / span 2;

  padding-top: 1px;
}

.target-detail-workspace .target-detail-stack > .target-detail-disclosure[open] > summary::after {
  color: #f8fbf8;
  content: "Active";
}

.target-detail-workspace .target-detail-stack > .target-detail-disclosure > .target-detail-disclosure-body {
  align-content: start;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  border-top: 1px solid var(--line);
  bottom: 0;
  display: none;
  gap: 12px;
  left: 242px;
  max-height: none;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 14px;
  position: absolute;
  right: 0;
  top: 0;
}

.target-detail-workspace .target-detail-stack > .target-detail-disclosure[open] > .target-detail-disclosure-body {
  display: grid;
}

.target-detail-warm-start .target-detail-workspace-head {
  border-color: var(--line-strong);
}

.target-warm-start-stack {
  display: grid;
  gap: 10px;
}

.target-warm-start-block {
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 7px;
  padding: 13px 14px;
}

.target-warm-start-block > span {
  color: #64736d;

}

.target-warm-start-block strong {
  color: var(--ink);

}

.target-warm-start-block p {
  color: var(--muted);

  margin: 0;
}

.target-warm-skeleton {
  display: grid;
  gap: 7px;
}

.target-warm-skeleton i {
  background: linear-gradient(90deg, #edf2ee, #f8faf7, #edf2ee);
  border-radius: 999px;
  display: block;
  height: 9px;
  max-width: 100%;
}

.target-warm-skeleton i:nth-child(1) {
  width: 72%;
}

.target-warm-skeleton i:nth-child(2) {
  width: 88%;
}

.target-warm-skeleton i:nth-child(3) {
  width: 54%;
}

.target-proof-lock-overview {
  display: grid;
  gap: 10px;
}

.target-proof-lock-overview .target-brief-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

@media (max-width: 1180px) {
  .target-modal {
    padding: 18px;
  }

  .target-detail-sheet {
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  }

  .target-detail-workspace-head {
    align-items: start;
    display: grid;
  }

  .target-detail-workspace-head p {
    max-width: none;
  }

  .target-proof-lock-overview .target-brief-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .target-modal {
    align-items: stretch;
    padding: 10px;
  }

  .target-modal-card {
    max-height: calc(100vh - 20px);
  }

  .target-modal .detail-body {
    overflow: auto;
  }

  .target-detail-sheet {
    align-content: start;
    grid-auto-rows: max-content;
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }

  .target-detail-summary.target-detail-rail {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    overflow: visible;
  }

  .target-detail-workspace {
    overflow: visible;
    padding: 14px;
  }

  .target-detail-workspace .target-detail-stack {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
    position: static;
  }

  .target-detail-workspace .target-detail-stack > .target-detail-disclosure {
    border: 1px solid var(--line);
    border-radius: 8px;
    display: block;
    overflow: hidden;
  }

  .target-detail-workspace .target-detail-stack > .target-detail-disclosure > summary {
    border: 0;
    border-left: 0;
    border-radius: 0;
    display: flex;
    grid-column: auto;
    min-height: 0;
    padding: 11px 13px;
  }

  .target-detail-workspace .target-detail-stack > .target-detail-disclosure[open] > summary {
    background: #fbfcfb;
    color: var(--ink);
  }

  .target-detail-workspace .target-detail-stack > .target-detail-disclosure > summary > span:first-child {

  }

  .target-detail-workspace .target-detail-stack > .target-detail-disclosure > summary > span:last-child:not(:first-child) {
    color: var(--muted);
    grid-column: auto;
    margin-left: auto;
  }

  .target-detail-workspace .target-detail-stack > .target-detail-disclosure[open] > summary > span:last-child:not(:first-child) {
    color: var(--muted);
  }

  .target-detail-workspace .target-detail-stack > .target-detail-disclosure > summary::after {
    content: "View";
    grid-column: auto;
    grid-row: auto;
  }

  .target-detail-workspace .target-detail-stack > .target-detail-disclosure[open] > summary::after {
    color: var(--accent);
    content: "Close";
  }

  .target-detail-workspace .target-detail-stack > .target-detail-disclosure > .target-detail-disclosure-body {
    border: 0;
    border-radius: 0;
    border-top: 1px solid var(--line);
    bottom: auto;
    grid-column: auto;
    grid-row: auto;
    left: auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
    padding: 12px;
    position: static;
    right: auto;
    top: auto;
  }

  .target-detail-workspace .target-detail-stack > .target-detail-disclosure:not([open]) > .target-detail-disclosure-body {
    display: none;
  }

  .target-detail-workspace .target-detail-stack > .target-detail-disclosure[open] > .target-detail-disclosure-body {
    display: grid;
  }
}

@media (max-width: 620px) {
  .target-modal {
    padding: 0;
  }

  .target-modal-card {
    border-radius: 0;
    max-height: 100vh;
  }

  .target-modal-header {
    padding: 12px 14px;
  }

  .target-modal-header h3 {

  }

  .target-proof-lock-overview .target-brief-card-grid,
  .target-brief-card-grid,
  .target-partner-actions,
  .target-detail-rail .target-partner-actions {
    grid-template-columns: 1fr;
  }

  .target-detail-workspace-head {
    padding: 10px 11px;
  }
}

/* 2026-06-22 target detail mobile pass: compress the decision rail before proof. */
@media (max-width: 620px) {
  .target-detail-summary.target-detail-rail {
    gap: 8px;
    padding: 10px 14px;
  }

  .target-detail-rail .target-brief-lead {
    gap: 7px;
  }

  .target-detail-rail .target-brief-pills {
    gap: 5px;
  }

  .target-detail-rail .target-brief-lead h4 {

  }

  .target-detail-rail .target-brief-lead > p {

  }

  .target-detail-rail .target-brief-lead > .target-partner-actions {
    display: none;
  }

  .target-mobile-action-summary {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 0;
  }

  .target-mobile-action-pill {
    background: #f7faf7;
    border: 1px solid var(--line);
    border-color: var(--line-strong);
    border-radius: 7px;
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 7px 8px;
  }

  .target-mobile-action-pill.primary {
    background: #10201c;
    border-color: #10201c;
  }

  .target-mobile-action-pill.warn {
    background: #fff8e8;
    border-color: #ead8aa;
  }

  .target-mobile-action-pill small {
    color: #69746f;

    overflow-wrap: anywhere;

  }

  .target-mobile-action-pill strong {
    color: var(--ink);

    overflow-wrap: anywhere;
  }

  .target-mobile-action-pill.primary small,
  .target-mobile-action-pill.primary strong {
    color: #f8fbf8;
  }

  .target-mobile-action-detail {
    background: #fbfcfb;
    border: 1px solid var(--line);
    border-radius: 7px;
    display: block;
    overflow: hidden;
  }

  .target-mobile-action-detail > summary {
    align-items: center;
    cursor: pointer;
    display: grid;
    gap: 3px;
    grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
    list-style: none;
    padding: 7px 9px;
  }

  .target-mobile-action-detail > summary::-webkit-details-marker {
    display: none;
  }

  .target-mobile-action-detail > summary span {
    color: #63746e;

  }

  .target-mobile-action-detail > summary strong {
    color: var(--ink);

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .target-mobile-action-detail .target-mobile-full-actions {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 7px;
    grid-template-columns: 1fr;
    padding: 8px;
  }

  .target-rail-proof-callout {
    gap: 4px;
    padding: 8px 10px;
  }

  .target-rail-proof-callout span {

  }

  .target-rail-proof-callout strong {

  }

  .target-brief-rail-note {

  }

  .target-detail-workspace {
    gap: 10px;
    padding: 10px 14px 14px;
  }

  .target-detail-workspace-head {
    gap: 4px;
    padding: 8px 10px;
  }

  .target-detail-workspace-head p {
    display: none;
  }
}

/* 2026-06-22 target workbench reachability: keep the proof queue open, bounded, and physically clickable. */
.target-workbench-drawer[open] {
  display: grid;
  min-height: 0;
}

.target-workbench-body > .target-queue-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: min(44vh, 430px);
  min-height: min(32vh, 330px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.target-workbench-body > .target-queue-shell .target-queue-head {
  background: #fbfcfa;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1;
}

.target-workbench-body > .target-queue-shell .target-row {
  scroll-margin: 54px;
}

.target-full-list[open] .target-queue-shell {
  max-height: min(52vh, 520px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (max-width: 760px) {
  .target-workbench-body > .target-queue-shell {
    max-height: 460px;
    min-height: 340px;
  }

  .target-workbench-body > .target-queue-shell .target-queue-head {
    display: none;
  }
}

/* 2026-06-22 Targets first-viewport pass: promote the workbench above context cards. */
body[data-view="overview"] .metrics {
  display: none;
}

body[data-view="overview"] .action-status {
  margin-bottom: 10px;
}

.target-workbench.panel {
  align-content: start;
  display: grid;
  overflow: visible;
}

.target-workbench > .panel-header {
  order: 0;
  padding-bottom: 12px;
}

#target-decision-board {
  order: 1;
}

.target-workbench-jump {
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: #66726d;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  order: 2;
  padding: 8px 16px 10px;
}

.target-workbench-jump a {
  background: #0b211d;
  border: 1px solid #0b211d;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;

  padding: 7px 10px;
  text-decoration: none;
}

.target-workbench-jump a:hover,
.target-workbench-jump a:focus-visible {
  background: #16362f;
  border-color: #16362f;
  outline: 2px solid rgba(63, 116, 99, 0.28);
  outline-offset: 2px;
}

.target-workbench-jump span {

}

.target-workbench-drawer {
  order: 3;
  scroll-margin-top: 18px;
}

.target-sprint-board {
  order: 4;
}

#target-decision-board.decision-board {
  gap: 8px;
  padding: 10px 16px;
}

#target-decision-board .command-card {
  gap: 4px;
  min-height: 76px;
  padding: 10px 11px;
}

#target-decision-board .command-card span {

}

#target-decision-board .command-card strong {

}

#target-decision-board .command-card p {
  display: -webkit-box;

  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.target-sprint-board {
  gap: 8px;
  grid-template-columns: minmax(210px, 0.32fr) minmax(0, 1fr);
  padding: 10px 16px 12px;
}

.target-sprint-summary {
  gap: 8px;
  grid-template-columns: 1fr;
  padding: 10px 11px;
}

.target-sprint-summary h4 {

}

.target-sprint-summary p,
.target-sprint-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.target-sprint-summary p {

  margin-top: 4px;
}

.target-sprint-summary-meta,
.target-sprint-meta {
  gap: 5px;
}

.target-sprint-summary-meta {
  align-content: start;
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
}

.target-sprint-summary-meta span,
.target-sprint-meta span {

  padding: 4px 7px;
}

.target-sprint-grid {
  gap: 8px;
}

.target-sprint-card {
  gap: 6px;
  padding: 10px;
}

.target-sprint-rank,
.target-sprint-head span {

}

.target-sprint-head {
  gap: 7px;
}

.target-sprint-head h4 {

  margin-top: 3px;
}

.target-sprint-card p {

}

.target-workbench-body {
  gap: 9px;
  padding: 10px 14px 12px;
}

.target-tools {
  gap: 8px;
  grid-template-columns: minmax(210px, 1fr) minmax(170px, 220px) minmax(136px, 170px) minmax(170px, 220px);
  padding: 10px;
}

.target-tools input,
.target-tools select {
  min-height: 36px;
}

.target-workbench-body > .target-queue-shell {
  max-height: min(50vh, 470px);
  min-height: min(34vh, 350px);
}

@media (max-width: 1180px) {
  .target-sprint-board {
    grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr);
  }

  .target-tools {
    grid-template-columns: minmax(210px, 1fr) minmax(150px, 200px) minmax(130px, 160px) minmax(150px, 200px);
  }
}

@media (max-width: 760px) {
  body[data-view="overview"] .action-status {
    margin-bottom: 8px;
  }

  #target-decision-board.decision-board {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 12px;
    scrollbar-width: none;
  }

  #target-decision-board.decision-board::-webkit-scrollbar {
    display: none;
  }

  #target-decision-board .command-card {
    flex: 0 0 150px;
    min-height: 94px;
  }

  #target-decision-board .command-card strong {

  }

  .target-workbench-jump {
    align-items: flex-start;
    display: grid;
    gap: 6px;
    padding: 8px 12px 10px;
  }

  .target-workbench-jump a {
    justify-self: start;
  }

  .target-workbench-drawer {
    margin-left: 12px;
    margin-right: 12px;
  }

  .target-sprint-board {
    grid-template-columns: 1fr;
    padding: 10px 12px 12px;
  }

  .target-sprint-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .target-sprint-grid::-webkit-scrollbar {
    display: none;
  }

  .target-sprint-card {
    flex: 0 0 236px;
    max-width: 236px;
  }

  .target-workbench-body {
    padding: 10px;
  }

  .target-tools {
    grid-template-columns: 1fr 1fr;
  }

  .target-tools input,
  .target-tools select:last-child {
    grid-column: 1 / -1;
  }

  .target-workbench-body > .target-queue-shell {
    max-height: 500px;
    min-height: 360px;
  }
}

/* 2026-06-22 target-route reachability correction:
   keep the compact proof controls inside the viewport and pull rows higher. */
body[data-view="overview"] #target-decision-board .command-card {
  min-height: 68px;
}

body[data-view="overview"] #target-decision-board .command-card p {
  -webkit-line-clamp: 1;
}

body[data-view="overview"] .target-workbench-jump {
  padding-bottom: 8px;
  padding-top: 7px;
}

@media (max-width: 760px) {
  body[data-view="overview"] .page-subtitle,
  body[data-view="overview"] .action-status {
    display: none;
  }

  body[data-view="overview"] main {
    overflow-x: hidden;
  }

  body[data-view="overview"] .target-workbench.panel,
  body[data-view="overview"] #target-decision-board,
  body[data-view="overview"] .target-workbench-jump,
  body[data-view="overview"] .target-workbench-drawer,
  body[data-view="overview"] .target-workbench-body,
  body[data-view="overview"] .target-queue-shell,
  body[data-view="overview"] .target-focus-queue,
  body[data-view="overview"] .target-row {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
  }

  body[data-view="overview"] #target-decision-board.decision-board {
    width: 100%;
  }

  body[data-view="overview"] #target-decision-board .command-card {
    flex: 0 0 132px;
    min-height: 76px;
    padding: 8px 9px;
  }

  body[data-view="overview"] #target-decision-board .command-card strong {

  }

  body[data-view="overview"] #target-decision-board .command-card p {

  }

  body[data-view="overview"] .target-workbench-jump {
    display: none;
    width: 100%;
  }

  body[data-view="overview"] .target-workbench-jump span {
    display: none;
  }

  body[data-view="overview"] .target-workbench-jump a {
    padding: 6px 9px;
  }

  body[data-view="overview"] .target-workbench-drawer {
    margin-left: 12px;
    margin-right: 12px;
    width: calc(100% - 24px);
  }

  body[data-view="overview"] .target-workbench-body {
    gap: 7px;
    padding: 8px;
  }

  body[data-view="overview"] .target-tools {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 8px;
    scrollbar-width: none;
  }

  body[data-view="overview"] .target-tools::-webkit-scrollbar {
    display: none;
  }

  body[data-view="overview"] .target-tools input,
  body[data-view="overview"] .target-tools select,
  body[data-view="overview"] .target-tools select:last-child {
    flex: 0 0 150px;
    grid-column: auto;
    min-height: 34px;
  }

  body[data-view="overview"] .target-tools input {
    flex-basis: 170px;
  }

  body[data-view="overview"] .target-workbench-body > .target-queue-shell {
    max-height: 520px;
    min-height: 360px;
  }

  body[data-view="overview"] .target-focus-queue .target-row-compact {
    gap: 8px;
    padding: 10px;
  }

  body[data-view="overview"] .target-focus-queue .target-row-main {
    align-items: center;
    display: grid;
    gap: 4px 8px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body[data-view="overview"] .target-focus-queue .target-row-main .queue-eyebrow {
    display: none;
  }

  body[data-view="overview"] .target-focus-queue .target-row-main .target-name {

  }

  body[data-view="overview"] .target-focus-queue .target-row-main .lane-pill {
    max-width: 118px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-view="overview"] .target-focus-queue .queue-cell {
    gap: 6px;
    grid-template-columns: 72px minmax(0, 1fr);
  }

  body[data-view="overview"] .target-focus-queue .queue-label {

  }

  body[data-view="overview"] .target-focus-queue .target-read-cell .queue-subtle:last-child,
  body[data-view="overview"] .target-focus-queue .next-cell .queue-subtle {
    display: none;
  }

  body[data-view="overview"] .target-focus-queue .proof-cell .queue-subtle,
  body[data-view="overview"] .target-focus-queue .next-cell strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

body[data-view="overview"] .target-focus-queue .next-cell strong {

  }
}

/* 2026-06-23 targets compact proof header: keep guardrails visible while giving rows the viewport. */
body[data-view="overview"] .target-workbench-jump {
  display: none;
}

body[data-view="overview"] .overview-shell.target-cockpit #target-decision-board.decision-board {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(180px, 1.25fr) repeat(3, minmax(0, 1fr));
  overflow: hidden;
  padding: 6px 16px 8px;
}

body[data-view="overview"] .overview-shell.target-cockpit #target-decision-board .command-card {
  align-content: center;
  box-sizing: border-box;
  gap: 2px;
  min-height: 48px;
  min-width: 0;
  padding: 6px 8px;
}

body[data-view="overview"] .overview-shell.target-cockpit #target-decision-board .command-card span {

}

body[data-view="overview"] .overview-shell.target-cockpit #target-decision-board .command-card strong {

  min-width: 0;
  overflow-wrap: anywhere;
}

body[data-view="overview"] .overview-shell.target-cockpit #target-decision-board .command-card:first-child strong {

}

body[data-view="overview"] .overview-shell.target-cockpit #target-decision-board .command-card p {
  display: -webkit-box;

  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

@media (max-width: 640px) {
  body[data-view="overview"] .target-workbench > .panel-header {
    display: grid;
    gap: 4px;
    padding: 10px 12px 6px;
  }

  body[data-view="overview"] .target-workbench > .panel-header h3 {

  }

  body[data-view="overview"] #target-count-note {

  }

  body[data-view="overview"] .overview-shell.target-cockpit #target-decision-board.decision-board {
    gap: 5px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 5px 10px 7px;
  }

  body[data-view="overview"] .overview-shell.target-cockpit #target-decision-board .command-card,
  body[data-view="overview"] .overview-shell.target-cockpit #target-decision-board .command-card:first-child {
    min-height: 36px;
    padding: 5px 6px;
  }

  body[data-view="overview"] .overview-shell.target-cockpit #target-decision-board .command-card:first-child {
    grid-column: 1 / -1;
  }

  body[data-view="overview"] .overview-shell.target-cockpit #target-decision-board .command-card span {

  }

  body[data-view="overview"] .overview-shell.target-cockpit #target-decision-board .command-card strong,
  body[data-view="overview"] .overview-shell.target-cockpit #target-decision-board .command-card:first-child strong {

  }

  body[data-view="overview"] .overview-shell.target-cockpit #target-decision-board .command-card p {
    display: none;
  }
}

/* 2026-06-23 mobile command bar final source-route exception: keep System and content reachability. */
@media (max-width: 620px) {
  .app-shell {
    grid-template-rows: 44px minmax(0, 1fr);
  }

  main {
    min-height: 0;
  }

  body[data-view="adapters"] .ops-drawer {
    display: block;
  }

  body[data-view="adapters"] .topbar {
    align-items: center;
    display: grid;
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 6px;
    min-height: 32px;
    padding-bottom: 0;
  }

  body[data-view="adapters"] main {
    padding: 8px 10px 30px;
  }

  body[data-view="adapters"] #view-adapters > .panel {
    margin-top: 0;
  }
}
/* 2026-06-23 mobile command bar row lock: prevent source-route nav content from reserving hidden row space. */
@media (max-width: 620px) {
  .app-shell {
    grid-template-rows: 44px minmax(0, 1fr);
  }

  main {
    min-height: 0;
  }

  body[data-view="adapters"] .topbar {
    padding-bottom: 0 !important;
  }
}

/* 2026-06-23 mobile command bar v2: final shell override after route-specific density rules. */
@media (max-width: 620px) {
  .sidebar {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: auto minmax(0, 1fr);
    height: 44px;
    min-height: 44px;
    overflow: visible;
    padding: 6px 8px;
    z-index: 80;
  }

  .brand {
    gap: 0;
    height: 32px;
    min-height: 0;
    min-width: 32px;
    padding: 0;
  }

  .brand-mark {
    height: 32px;
    width: 32px;
  }

  .brand h1,
  .brand p,
  .nav-section-label,
  .nav-group-label,
  .sidebar-footer,
  .page-subtitle,
  .role-mode-strip,
  .action-status,
  .metrics {
    display: none;
  }

  .sidebar nav {
    align-items: center;
    display: flex;
    gap: 6px;
    height: 32px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: visible;
    padding: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar nav::-webkit-scrollbar {
    display: none;
  }

  .nav-primary,
  .nav-secondary,
  .nav-drawer[open] .nav-secondary {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    grid-template-columns: none;
    min-width: max-content;
    overflow: visible;
    padding: 0;
    width: auto;
  }

  .nav-drawer {
    border-top: 0;
    flex: 0 0 auto;
    padding-top: 0;
    position: relative;
    width: auto;
  }

  .nav-drawer summary,
  .nav-item {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    flex: 0 0 auto;

    justify-content: center;

    min-height: 30px;
    min-width: auto;
    padding: 6px 8px;
    white-space: nowrap;
    width: auto;
  }

  .nav-item.active::before {
    inset: 7px auto 7px 0;
    width: 3px;
  }

  .nav-drawer summary {
    max-width: 118px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-drawer[open] .nav-secondary {
    background: #071115;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    box-shadow: 0 18px 48px rgba(6, 15, 17, 0.28);
    left: auto;
    max-width: min(340px, calc(100vw - 16px));
    overflow-x: auto;
    padding: 8px;
    position: absolute;
    right: 0;
    top: 36px;
    z-index: 100;
  }

  main {
    padding: 8px 10px 30px;
  }

  .topbar {
    align-items: center;
    display: grid;
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 6px;
    min-height: 32px;
  }

  .page-heading {
    gap: 0;
    min-width: 0;
  }

  .page-heading .section-label {
    display: none;
  }

  .topbar h2 {
    display: block;

    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ops-drawer {
    justify-self: end;
    min-width: 0;
    position: relative;
    width: auto;
  }

  .ops-drawer summary {
    border-radius: 999px;
    min-height: 30px;
    padding: 6px 9px;
  }

  .ops-drawer summary small {
    display: none;
  }

  .ops-drawer[open] .topbar-actions {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 18px 48px rgba(18, 24, 23, 0.16);
    display: grid;
    gap: 7px;
    padding: 9px;
    position: absolute;
    right: 0;
    top: 36px;
    width: min(330px, calc(100vw - 20px));
    z-index: 100;
  }

  .ops-drawer .topbar-actions button {
    min-height: 32px;
  }

  body[data-view="adapters"] .ops-drawer {
    display: block;
  }

  body[data-view="adapters"] .topbar {
    align-items: center;
    display: grid;
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 6px;
    min-height: 32px;
  }

  body[data-view="adapters"] main {
    padding: 8px 10px 30px;
  }

  body[data-view="adapters"] #view-adapters > .panel {
    margin-top: 0;
  }
}

/* 2026-06-23 mobile command bar: collapse repeated app chrome before the work surface. */
@media (max-width: 620px) {
  .sidebar {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: auto minmax(0, 1fr);
    height: 44px;
    min-height: 44px;
    overflow: visible;
    padding: 6px 8px;
    z-index: 80;
  }

  .brand {
    gap: 0;
    height: 32px;
    min-height: 0;
    min-width: 32px;
    padding: 0;
  }

  .brand-mark {
    height: 32px;
    width: 32px;
  }

  .brand h1,
  .brand p,
  .nav-section-label,
  .nav-group-label,
  .sidebar-footer,
  .page-subtitle,
  .role-mode-strip,
  .action-status,
  .metrics {
    display: none;
  }

  .sidebar nav {
    align-items: center;
    display: flex;
    gap: 6px;
    height: 32px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: visible;
    padding: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar nav::-webkit-scrollbar {
    display: none;
  }

  .nav-primary,
  .nav-secondary,
  .nav-drawer[open] .nav-secondary {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    grid-template-columns: none;
    min-width: max-content;
    overflow: visible;
    padding: 0;
    width: auto;
  }

  .nav-drawer {
    border-top: 0;
    flex: 0 0 auto;
    padding-top: 0;
    position: relative;
    width: auto;
  }

  .nav-drawer summary,
  .nav-item {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    flex: 0 0 auto;

    justify-content: center;

    min-height: 30px;
    min-width: auto;
    padding: 6px 8px;
    white-space: nowrap;
    width: auto;
  }

  .nav-item.active::before {
    inset: 7px auto 7px 0;
    width: 3px;
  }

  .nav-drawer summary {
    max-width: 118px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-drawer[open] .nav-secondary {
    background: #071115;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    box-shadow: 0 18px 48px rgba(6, 15, 17, 0.28);
    left: auto;
    max-width: min(340px, calc(100vw - 16px));
    overflow-x: auto;
    padding: 8px;
    position: absolute;
    right: 0;
    top: 36px;
    z-index: 100;
  }

  main {
    padding: 8px 10px 30px;
  }

  .topbar {
    align-items: center;
    display: grid;
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 6px;
    min-height: 32px;
  }

  .page-heading {
    gap: 0;
    min-width: 0;
  }

  .page-heading .section-label {
    display: none;
  }

  .topbar h2 {
    display: block;

    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ops-drawer {
    justify-self: end;
    min-width: 0;
    position: relative;
    width: auto;
  }

  .ops-drawer summary {
    border-radius: 999px;
    min-height: 30px;
    padding: 6px 9px;
  }

  .ops-drawer summary small {
    display: none;
  }

  .ops-drawer[open] .topbar-actions {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 18px 48px rgba(18, 24, 23, 0.16);
    display: grid;
    gap: 7px;
    padding: 9px;
    position: absolute;
    right: 0;
    top: 36px;
    width: min(330px, calc(100vw - 20px));
    z-index: 100;
  }

  .ops-drawer .topbar-actions button {
    min-height: 32px;
  }
}

/* 2026-06-23 targets mobile stack: avoid clipped horizontal proof controls. */
@media (max-width: 640px) {
  body[data-view="overview"] #target-decision-board.decision-board {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
    overflow: visible;
    padding: 10px 12px;
    width: 100%;
  }

  body[data-view="overview"] #target-decision-board .command-card {
    box-sizing: border-box;
    flex: none;
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  body[data-view="overview"] .target-sprint-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
    overflow: visible;
    padding-bottom: 0;
    width: 100%;
  }

  body[data-view="overview"] .target-sprint-card {
    box-sizing: border-box;
    flex: none;
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  body[data-view="overview"] .target-sprint-head > div {
    min-width: 0;
  }

  body[data-view="overview"] .target-sprint-head > .pill {
    flex: 0 0 auto;
    max-width: 100px;
    overflow-wrap: normal;
    white-space: nowrap;
  }

  body[data-view="overview"] .target-tools {
    display: grid;
    gap: 7px;
    grid-template-columns: 1fr;
    overflow: visible;
    padding: 8px;
    width: 100%;
  }

  body[data-view="overview"] .target-tools input,
  body[data-view="overview"] .target-tools select,
  body[data-view="overview"] .target-tools select:last-child {
    box-sizing: border-box;
    flex: none;
    grid-column: 1;
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
}

/* 2026-06-22 sources-route request reachability:
   keep the record-owner ask visible before background connector detail. */
body[data-view="adapters"] .page-subtitle {
  max-width: 760px;
}

body[data-view="adapters"] .metrics,
body[data-view="adapters"] .action-status {
  display: none;
}

body[data-view="adapters"] .role-mode-strip {
  display: none;
}

body[data-view="adapters"] .ops-drawer,
body[data-view="adapters"] .page-subtitle {
  display: none;
}

body[data-view="adapters"] .topbar {
  margin-bottom: 8px;
  padding-bottom: 10px;
}

body[data-view="adapters"] #view-adapters > .panel {
  overflow: hidden;
}

body[data-view="adapters"] #view-adapters .panel-header {
  padding-bottom: 10px;
}

body[data-view="adapters"] #view-adapters > .panel > .panel-header .mini-note {
  display: none;
}

.source-request-workbench {
  background: #fbfcfa;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
  min-width: 0;
}

.source-mobile-record-detail {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  overflow: hidden;
}

.source-mobile-record-detail > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  list-style: none;
  min-width: 0;
  padding: 10px 12px;
}

.source-mobile-record-detail > summary::-webkit-details-marker {
  display: none;
}

.source-mobile-record-detail > summary span {
  color: var(--ink);

}

.source-mobile-record-detail > summary strong {
  background: #eef4ef;
  border: 1px solid #d8e4dc;
  border-radius: 999px;
  color: #50635a;
  flex: 0 0 auto;

  padding: 6px 8px;
  white-space: nowrap;
}

.source-mobile-record-detail[open] > summary {
  border-bottom: 1px solid var(--line);
}

@media (min-width: 761px) {
  body[data-view="adapters"] .source-mobile-record-detail {
    display: contents;
  }

  body[data-view="adapters"] .source-mobile-record-detail > summary {
    display: none;
  }
}

.source-request-workbench-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
  padding: 12px 16px 10px;
}

.source-request-workbench-head h3 {
  color: var(--ink);

  margin: 2px 0 0;
}

.source-request-workbench-body {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 0 16px 14px;
}

.source-proof-workspace {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.source-owner-workspace-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.source-workspace-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
}

.source-workspace-head h3 {
  color: var(--ink);

  margin: 2px 0 0;
}

body[data-view="adapters"] .source-command-center {
  gap: 8px;
  padding: 10px 14px;
}

body[data-view="adapters"] .source-command-copy {
  gap: 2px;
}

body[data-view="adapters"] .source-command-copy strong {

}

body[data-view="adapters"] .source-command-copy p {
  display: -webkit-box;

  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-view="adapters"] .source-access-board {
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-view="adapters"] .source-access-card {
  gap: 5px;
  padding: 9px 10px;
}

body[data-view="adapters"] .source-access-card > span {

}

body[data-view="adapters"] .source-access-card strong {

}

body[data-view="adapters"] .source-access-card p {
  display: -webkit-box;

  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-view="adapters"] .source-access-chip-row {
  display: none;
}

body[data-view="adapters"] .source-gate-summary {
  grid-template-columns: minmax(0, 1.1fr) repeat(3, minmax(0, 1fr));
}

body[data-view="adapters"] .source-gate-item {
  padding: 8px 10px;
}

body[data-view="adapters"] .source-owner-request-panel,
body[data-view="adapters"] .source-intake-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  min-width: 0;
  padding: 12px;
}

body[data-view="adapters"] .source-owner-request-panel {
  border-color: var(--line-strong);
}

body[data-view="adapters"] .source-intake-header {
  gap: 10px;
  margin-bottom: 7px;
}

body[data-view="adapters"] .source-intake-header h3 {

}

body[data-view="adapters"] .source-intake-proof {
  display: -webkit-box;

  margin-bottom: 8px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-view="adapters"] .source-request-card-grid {
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 8px 0;
}

body[data-view="adapters"] .source-owner-request-panel .source-owner-action-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

body[data-view="adapters"] .source-request-workbench-head {
  padding-bottom: 8px;
  padding-top: 10px;
}

body[data-view="adapters"] .source-request-workbench-body {
  align-items: start;
  grid-template-columns: 1fr;
  padding-bottom: 12px;
}

body[data-view="adapters"] .source-proof-workspace {
  max-height: calc(100vh - 300px);
  min-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

body[data-view="adapters"] .source-owner-workspace-panel {
  padding-bottom: 2px;
}

body[data-view="adapters"] .source-loading-copy p {
  color: #607168;
}

body[data-view="adapters"] .source-loading-gate .source-gate-item,
body[data-view="adapters"] .source-loading-card {
  background: #f8faf8;
  border-color: #dce7df;
  color: #3d4c46;
}

body[data-view="adapters"] .source-loading-card strong {
  color: #50645b;
}

body[data-view="adapters"] .source-loading-card p,
body[data-view="adapters"] .source-loading-card small {
  color: #73827a;
}

body[data-view="adapters"] .source-owner-request-panel .source-loading-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-view="adapters"] .source-owner-request-panel .source-loading-card strong {
  overflow-wrap: normal;
  word-break: normal;
}

body[data-view="adapters"] .source-loading-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

body[data-view="adapters"] .source-loading-line {
  background: linear-gradient(90deg, #edf3ee 0%, #f7faf7 45%, #e8f0ea 100%);
  border-radius: 999px;
  display: block;
  height: 9px;
  overflow: hidden;
  position: relative;
}

body[data-view="adapters"] .source-loading-line::after {
  animation: source-loading-sweep 1.25s ease-in-out infinite;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  content: "";
  inset: 0;
  position: absolute;
  transform: translateX(-100%);
}

body[data-view="adapters"] .source-loading-line-1 {
  width: 82%;
}

body[data-view="adapters"] .source-loading-line-2 {
  width: 68%;
}

body[data-view="adapters"] .source-loading-line-3 {
  width: 74%;
}

body[data-view="adapters"] .source-loading-line-4 {
  width: 52%;
}

body[data-view="adapters"] .source-loading-panel {
  display: grid;
  gap: 8px;
  min-width: 0;
}

body[data-view="adapters"] .source-loading-drawer > summary {
  background: #fbfdfb;
  color: #52635b;
}

body[data-view="adapters"] .source-loading-drawer > summary span:last-child {
  color: #77877f;
}

@keyframes source-loading-sweep {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

body[data-view="adapters"] .source-workspace-head {
  background: #f7faf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

body[data-view="adapters"] .source-owner-workspace-panel .source-subdrawer {
  margin-top: 0;
}

body[data-view="adapters"] .source-request-card {
  gap: 4px;
  padding: 9px;
}

body[data-view="adapters"] .source-request-card span {

}

body[data-view="adapters"] .source-request-card strong {

}

body[data-view="adapters"] .source-request-card p {
  display: -webkit-box;

  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-view="adapters"] .source-request-card small {

}

body[data-view="adapters"] .source-owner-request-panel > .source-intake-boundary,
body[data-view="adapters"] .source-owner-format,
body[data-view="adapters"] .source-owner-request-panel .source-subdrawer {
  display: none;
}

body[data-view="adapters"] .source-intake-panel .source-intake-boundary {
  display: none;
}

body[data-view="adapters"] .source-intake-metrics {
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 8px;
}

body[data-view="adapters"] .source-intake-panel .subhead {
  display: none;
}

body[data-view="adapters"] .source-intake-panel .source-request-card-grid {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-view="adapters"] .source-intake-panel .source-subdrawer {
  display: none;
}

body[data-view="adapters"] .source-detail-ledger {
  border-top: 1px solid var(--line);
}

.source-owner-mobile-record-preview {
  display: none;
}

@media (max-width: 1120px) {
  body[data-view="adapters"] .source-request-workbench-body {
    grid-template-columns: 1fr;
  }

  body[data-view="adapters"] .source-proof-workspace {
    max-height: none;
    min-height: 0;
    overflow-y: visible;
    padding-right: 0;
  }

  body[data-view="adapters"] .source-request-card-grid,
  body[data-view="adapters"] .source-intake-metrics,
  body[data-view="adapters"] .source-intake-panel .source-request-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1300px) and (min-width: 761px) {
  body[data-view="adapters"] .source-command-copy p,
  body[data-view="adapters"] .source-intake-proof,
  body[data-view="adapters"] .source-request-card p {
    -webkit-line-clamp: 1;
  }

  body[data-view="adapters"] .source-command-center {
    padding-bottom: 8px;
    padding-top: 8px;
  }

  body[data-view="adapters"] .source-request-workbench-head {
    padding-bottom: 7px;
    padding-top: 8px;
  }

  body[data-view="adapters"] .source-owner-request-panel,
  body[data-view="adapters"] .source-intake-panel {
    padding: 10px;
  }

  body[data-view="adapters"] .source-request-card {
    padding: 8px;
  }

  body[data-view="adapters"] .source-gate-item {
    padding-bottom: 7px;
    padding-top: 7px;
  }
}

@media (max-width: 900px) {
  body[data-view="adapters"] .source-gate-summary,
  body[data-view="adapters"] .source-access-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  body[data-view="adapters"] .app-shell,
  body[data-view="adapters"] .sidebar,
  body[data-view="adapters"] main {
    max-width: 100%;
    overflow-x: hidden;
  }

  body[data-view="adapters"] .topbar {
    margin-bottom: 8px;
    padding-bottom: 8px;
  }

  body[data-view="adapters"] .source-command-copy p {
    -webkit-line-clamp: 1;
  }
}

@media (max-width: 760px) {
  body[data-view="adapters"] .page-subtitle,
  body[data-view="adapters"] .action-status {
    display: none;
  }

  body[data-view="adapters"] main {
    overflow-x: hidden;
  }

  body[data-view="adapters"] #view-adapters > .panel,
  body[data-view="adapters"] .source-command-center,
  body[data-view="adapters"] .source-request-workbench,
  body[data-view="adapters"] .source-request-workbench-body,
  body[data-view="adapters"] .source-access-board,
  body[data-view="adapters"] .source-gate-summary,
  body[data-view="adapters"] .source-owner-request-panel,
  body[data-view="adapters"] .source-intake-panel,
  body[data-view="adapters"] .source-request-card,
  body[data-view="adapters"] .source-detail-ledger {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
  }

  body[data-view="adapters"] #view-adapters .panel-header,
  body[data-view="adapters"] .source-command-center,
  .source-request-workbench-head,
  .source-request-workbench-body {
    padding-left: 12px;
    padding-right: 12px;
  }

  body[data-view="adapters"] .source-access-board,
  body[data-view="adapters"] .source-gate-summary,
  body[data-view="adapters"] .source-request-card-grid,
  body[data-view="adapters"] .source-intake-metrics,
  body[data-view="adapters"] .source-intake-panel .source-request-card-grid {
    grid-template-columns: 1fr;
  }

  body[data-view="adapters"] .source-access-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-view="adapters"] .source-gate-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-view="adapters"] .source-gate-item {
    gap: 3px;
    padding: 7px 8px;
  }

  body[data-view="adapters"] .source-gate-item strong {

  }

  body[data-view="adapters"] .source-gate-item p {
    -webkit-line-clamp: 1;

  }

  body[data-view="adapters"] .source-access-card {
    gap: 3px;
    padding: 8px 9px;
  }

  body[data-view="adapters"] .source-access-card strong {

  }

  body[data-view="adapters"] .source-access-card p {
    display: none;
  }

  body[data-view="adapters"] .source-command-copy p {
    display: none;
  }

  body[data-view="adapters"] .source-owner-request-panel > .source-intake-proof,
  body[data-view="adapters"] .source-owner-request-panel > .source-intake-header .mini-note {
    display: none;
  }

  body[data-view="adapters"] .source-owner-request-panel .source-request-card p {
    -webkit-line-clamp: 1;
  }

  /* 2026-06-22 sources mobile request focus: keep owner ask and record preview before adapter detail. */
  body[data-view="adapters"] #view-adapters > .panel > .panel-header {
    padding-bottom: 7px;
  }

  body[data-view="adapters"] .source-command-center {
    gap: 7px;
    padding-bottom: 9px;
    padding-top: 9px;
  }

  body[data-view="adapters"] .source-command-center .source-command-copy {
    border-left-width: 2px;
    gap: 1px;
    padding-left: 9px;
  }

  body[data-view="adapters"] .source-command-center .source-command-copy strong {

  }

  body[data-view="adapters"] .source-command-center .command-center {
    gap: 5px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body[data-view="adapters"] .source-command-center .command-card {
    gap: 2px;
    min-height: 50px;
    padding: 6px 5px;
  }

  body[data-view="adapters"] .source-command-center .command-card span {
    display: block;

    overflow: hidden;
    text-overflow: ellipsis;

    white-space: nowrap;
  }

  body[data-view="adapters"] .source-command-center .command-card strong {
    display: -webkit-box;

    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body[data-view="adapters"] .source-command-center .command-card p {
    display: none;
  }

  body[data-view="adapters"] .source-request-workbench-head {
    padding-bottom: 7px;
    padding-top: 9px;
  }

  body[data-view="adapters"] .source-request-workbench-head h3 {

  }

  body[data-view="adapters"] .source-request-workbench-body {
    gap: 8px;
    padding-bottom: 9px;
  }

  body[data-view="adapters"] .source-workspace-head {
    display: none;
  }

  body[data-view="adapters"] .source-owner-request-panel {
    gap: 7px;
    padding: 8px;
  }

  body[data-view="adapters"] .source-owner-request-panel .source-intake-header {
    gap: 3px;
    margin-bottom: 6px;
  }

  body[data-view="adapters"] .source-owner-request-panel .source-intake-header h3 {

  }

  body[data-view="adapters"] .source-owner-request-panel .source-request-card-grid {
    gap: 5px;
    grid-template-columns: 1fr;
    margin: 6px 0 0;
  }

  body[data-view="adapters"] .source-owner-request-panel .source-request-card {
    gap: 3px;
    min-height: 0;
    padding: 6px 8px;
  }

  body[data-view="adapters"] .source-owner-request-panel .source-request-card span {

  }

  body[data-view="adapters"] .source-owner-request-panel .source-request-card strong {

  }

  body[data-view="adapters"] .source-owner-request-panel .source-request-card p {

  }

  body[data-view="adapters"] .source-owner-request-panel .source-request-card small {
    display: none;
  }

  body[data-view="adapters"] .source-owner-mobile-record-preview {
    background: #f7fbf8;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    grid-column: 1 / -1;
    overflow: hidden;
  }

  body[data-view="adapters"] .source-owner-mobile-record-preview > summary {
    align-items: center;
    cursor: pointer;
    display: grid;
    gap: 3px 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    list-style: none;
    padding: 8px 10px;
  }

  body[data-view="adapters"] .source-owner-mobile-record-preview > summary::-webkit-details-marker {
    display: none;
  }

  body[data-view="adapters"] .source-owner-mobile-record-preview > summary span {
    color: #68766f;

  }

  body[data-view="adapters"] .source-owner-mobile-record-preview > summary strong {
    color: var(--ink);

  }

  body[data-view="adapters"] .source-owner-mobile-record-preview > summary small {
    background: #eef5f0;
    border: 1px solid #d8e4dc;
    border-radius: 999px;
    color: #50645b;

    grid-row: 1 / span 2;

    padding: 5px 7px;
    white-space: nowrap;
  }

  body[data-view="adapters"] .source-owner-mobile-record-preview[open] > summary {
    border-bottom: 1px solid #dfe9e3;
  }

  body[data-view="adapters"] .source-owner-mobile-record-list {
    display: grid;
    gap: 6px;
    padding: 7px;
  }

  body[data-view="adapters"] .source-owner-mobile-record-row {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dfe9e3;
    border-radius: 7px;
    display: grid;
    gap: 2px 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 0;
    padding: 6px 8px;
  }

  body[data-view="adapters"] .source-owner-mobile-record-row span {
    color: #68766f;

  }

  body[data-view="adapters"] .source-owner-mobile-record-row strong {
    color: var(--ink);

    min-width: 0;
    overflow-wrap: anywhere;
  }

  body[data-view="adapters"] .source-owner-mobile-record-row small {
    color: #6a746f;

    grid-row: 1 / span 2;

    text-align: right;
    white-space: nowrap;
  }

  body[data-view="adapters"] .source-mobile-record-detail {
    background: #fbfcfa;
  }

  body[data-view="adapters"] .source-mobile-record-detail > summary {
    padding: 9px 10px;
  }

  body[data-view="adapters"] .source-mobile-record-detail .source-intake-panel {
    border: 0;
    border-radius: 0;
    margin: 0;
    padding: 8px;
  }

  body[data-view="adapters"] .source-mobile-record-detail .source-intake-panel .source-intake-header,
  body[data-view="adapters"] .source-mobile-record-detail .source-intake-panel .source-intake-proof,
  body[data-view="adapters"] .source-mobile-record-detail .source-intake-panel .source-intake-boundary,
  body[data-view="adapters"] .source-mobile-record-detail .source-intake-panel .subhead,
  body[data-view="adapters"] .source-mobile-record-detail .source-intake-panel .source-subdrawer {
    display: none;
  }

  body[data-view="adapters"] .source-mobile-record-detail .source-intake-metrics {
    gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 0 7px;
  }

  body[data-view="adapters"] .source-mobile-record-detail .source-intake-panel .source-request-card-grid {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
  }

  .source-request-workbench-head {
    align-items: flex-start;
    display: grid;
    gap: 4px;
  }

  body[data-view="adapters"] .source-access-card p,
  body[data-view="adapters"] .source-request-card p,
  body[data-view="adapters"] .source-intake-proof {
    -webkit-line-clamp: 2;
  }

  body[data-view="adapters"] .source-intake-header {
    display: grid;
  }

  body[data-view="adapters"] .source-owner-request-panel,
  body[data-view="adapters"] .source-intake-panel {
    padding: 10px;
  }
}

/* 2026-06-22 records compact request reachability: keep record lock semantics but bring request menu into view. */
@media (max-width: 1400px) {
  body[data-view="ingestion"] .ingestion-command-panel .panel-header,
  body[data-view="ingestion"] .ingestion-detail-panel .panel-header {
    padding: 12px 16px;
  }

  body[data-view="ingestion"] #data-room-command-center {
    gap: 10px;
    padding: 12px 16px;
  }

  body[data-view="ingestion"] #data-room-command-center .source-command-copy {
    gap: 2px;
  }

  body[data-view="ingestion"] #data-room-command-center .source-command-copy strong {

  }

  body[data-view="ingestion"] #data-room-command-center .source-command-copy p {
    display: -webkit-box;

    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body[data-view="ingestion"] #data-room-command-center .pursuit-gate-card-grid {
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body[data-view="ingestion"] #data-room-command-center .source-access-card {
    gap: 5px;
    padding: 9px 10px;
  }

  body[data-view="ingestion"] #data-room-command-center .source-access-card > span {

  }

  body[data-view="ingestion"] #data-room-command-center .source-access-card strong {

  }

  body[data-view="ingestion"] #data-room-command-center .source-access-card p {
    display: -webkit-box;

    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body[data-view="ingestion"] #data-room-command-center .source-access-chip-row {
    display: none;
  }

  body[data-view="ingestion"] .market-detail-stack.ingestion-detail-stack {
    padding: 10px 14px 14px;
  }
}

@media (max-width: 620px) {
  body[data-view="ingestion"] #data-room-command-center {
    gap: 7px;
    padding: 10px 14px;
  }

  body[data-view="ingestion"] #data-room-command-center .source-command-copy p {
    -webkit-line-clamp: 1;
  }

  /* 2026-06-23 records mobile density:
     keep the lock visible while preventing the loading/fallback command stack from owning the viewport. */
  body[data-view="ingestion"] #data-room-command-center .command-center {
    gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 0;
  }

  body[data-view="ingestion"] #data-room-command-center .command-card {
    gap: 2px;
    min-height: 50px;
    padding: 7px;
  }

  body[data-view="ingestion"] #data-room-command-center .command-card span {
    display: block;

    overflow: hidden;
    text-overflow: ellipsis;

    white-space: nowrap;
  }

  body[data-view="ingestion"] #data-room-command-center .command-card strong {
    display: -webkit-box;

    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body[data-view="ingestion"] #data-room-command-center .command-card p {
    display: none;
  }

  body[data-view="ingestion"] #data-room-command-center .pursuit-gate-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-view="ingestion"] #data-room-command-center .source-access-card {
    min-height: 0;
    padding: 8px;
  }

  body[data-view="ingestion"] #data-room-command-center .source-access-card strong {

  }

  body[data-view="ingestion"] #data-room-command-center .source-access-card p {
    display: none;
  }
}

/* 2026-06-23 records request-first workspace: make the actionable request menu the first read. */
body[data-view="ingestion"] .records-request-panel {
  border-color: var(--line-strong);
}

body[data-view="ingestion"] .records-request-panel .panel-header {
  padding: 14px 16px 10px;
}

body[data-view="ingestion"] .records-request-panel .panel-header h3 {

}

body[data-view="ingestion"] .records-request-panel .ingestion-detail-stack {
  padding-top: 10px;
}

body[data-view="ingestion"] .records-zero-state-row {
  align-items: center;
  background: #f7faf8;
  border: 1px solid #d8e5df;
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 58px;
  padding: 10px 12px;
}

body[data-view="ingestion"] .records-zero-state-row[hidden] {
  display: none !important;
}

body[data-view="ingestion"] .records-zero-state-row div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

body[data-view="ingestion"] .records-zero-state-row span {
  color: #4d7770;

}

body[data-view="ingestion"] .records-zero-state-row strong {
  color: var(--ink);

}

body[data-view="ingestion"] .records-zero-state-row p {
  color: var(--muted);
  display: -webkit-box;

  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-view="ingestion"] .records-zero-state-row small {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #66736e;

  padding: 6px 8px;
  white-space: nowrap;
}

body[data-view="ingestion"] .records-request-panel.is-empty-records-request .panel-header {
  padding: 10px 14px 6px;
}

body[data-view="ingestion"] .records-request-panel.is-empty-records-request .panel-header h3 {

}

body[data-view="ingestion"] .records-request-panel.is-empty-records-request .ingestion-detail-stack {
  padding: 8px 14px 12px;
}

body[data-view="ingestion"] .records-request-panel.is-empty-records-request .ingestion-detail-ledger {
  display: none;
}

body[data-view="ingestion"] .records-request-menu {
  border-color: var(--line-strong);
}

body[data-view="ingestion"] .records-request-menu[open] > summary {
  background: #f6faf7;
  border-bottom: 1px solid var(--line);
}

body[data-view="ingestion"] .records-request-menu[open] > summary span {
  color: #12231b;
}

body[data-view="ingestion"] .records-request-menu > .checklist-panel {
  max-height: max(420px, calc(100vh - 300px));
  overflow: auto;
  overscroll-behavior: contain;
  padding: 12px;
}

body[data-view="ingestion"] .records-request-menu .checklist-intro {
  margin-bottom: 10px;
  padding: 12px;
}

body[data-view="ingestion"] .records-request-menu .checklist-intro p,
body[data-view="ingestion"] .records-request-menu .checklist-intro strong {

}

body[data-view="ingestion"] .records-request-menu .request-grid {
  gap: 10px;
}

body[data-view="ingestion"] .records-request-menu .request-card {
  padding: 12px;
}

body[data-view="ingestion"] .records-request-menu .request-card p {
  display: -webkit-box;

  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body[data-view="ingestion"] .records-lock-panel {
  margin-top: 14px;
}

body[data-view="ingestion"] .records-lock-body {
  border-top: 1px solid var(--line);
}

body[data-view="ingestion"] .records-lock-body > .boundary-note {
  margin: 10px 14px 0;
}

body[data-view="ingestion"] .records-lock-panel .panel-header {
  padding: 10px 14px;
}

body[data-view="ingestion"] .records-lock-panel .panel-header h3 {

}

body[data-view="ingestion"] .records-lock-panel #data-room-command-center {
  gap: 8px;
  padding: 10px 14px;
}

body[data-view="ingestion"] .records-lock-panel #data-room-command-center .source-command-copy {
  gap: 2px;
}

body[data-view="ingestion"] .records-lock-panel #data-room-command-center .source-command-copy strong {

}

body[data-view="ingestion"] .records-lock-panel #data-room-command-center .source-command-copy p {
  display: -webkit-box;

  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

body[data-view="ingestion"] .records-lock-panel #data-room-command-center .pursuit-gate-card-grid {
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-view="ingestion"] .records-lock-panel #data-room-command-center .source-access-card {
  gap: 4px;
  padding: 8px 9px;
}

body[data-view="ingestion"] .records-lock-panel #data-room-command-center .source-access-card > span {

}

body[data-view="ingestion"] .records-lock-panel #data-room-command-center .source-access-card strong {

}

body[data-view="ingestion"] .records-lock-panel #data-room-command-center .source-access-card p {
  display: -webkit-box;

  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

body[data-view="ingestion"] .records-lock-panel #data-room-command-center .source-access-chip-row {
  display: none;
}

@media (max-width: 900px) {
  body[data-view="ingestion"] .records-request-menu > .checklist-panel {
    max-height: none;
    overflow: visible;
  }

  body[data-view="ingestion"] .records-request-menu .request-grid,
  body[data-view="ingestion"] .records-lock-panel #data-room-command-center .pursuit-gate-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body[data-view="ingestion"] .records-zero-state-row {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  body[data-view="ingestion"] .records-zero-state-row small {
    justify-self: flex-start;
  }

  body[data-view="ingestion"] .records-request-panel .panel-header {
    padding: 12px 14px 8px;
  }

  body[data-view="ingestion"] .records-request-panel .panel-header h3 {

  }

  body[data-view="ingestion"] .records-request-menu > .checklist-panel {
    padding: 10px;
  }

  body[data-view="ingestion"] .records-request-menu .checklist-intro {
    padding: 10px;
  }

  body[data-view="ingestion"] .records-request-menu .request-card {
    padding: 10px;
  }
}

/* 2026-06-23 playbook rule workspace: make active method checks the first working surface. */
body[data-view="method"] .method-rule-controls {
  background: #ffffff;
  border: 1px solid #cbdcd4;
  border-radius: 8px;
  margin: 0 18px 12px;
  min-width: 0;
  overflow: hidden;
}

body[data-view="method"] .metrics {
  display: none;
}

body[data-view="method"] .action-status {
  display: none;
}

body[data-view="method"] .method-rule-controls summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  min-width: 0;
  background: #f5faf7;
  border-bottom: 1px solid var(--line);
  padding: 9px 12px;
}

body[data-view="method"] .method-rule-controls summary::-webkit-details-marker {
  display: none;
}

body[data-view="method"] .method-rule-controls summary > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

body[data-view="method"] .method-rule-controls summary strong {
  color: var(--ink);

  overflow-wrap: anywhere;
}

body[data-view="method"] .method-rule-controls summary small {
  color: var(--muted);

  overflow-wrap: anywhere;
}

body[data-view="method"] .method-rule-controls summary em {
  background: #e8f4ee;
  border: 1px solid #c6dfd0;
  border-radius: 999px;
  color: #0f623b;
  flex: 0 0 auto;

  padding: 6px 8px;
  white-space: nowrap;
}

body[data-view="method"] .method-rule-controls .decision-brief-grid {
  gap: 8px;
  padding: 10px 12px 12px;
}

body[data-view="method"] .method-rule-controls .decision-brief-card {
  gap: 6px;
  padding: 10px 11px;
}

body[data-view="method"] .method-rule-controls .decision-brief-card strong {

  margin-top: 2px;
}

body[data-view="method"] .method-rule-controls .decision-brief-card p {

}

body[data-view="method"] .method-rule-controls .decision-brief-card small {

}

body[data-view="method"] .method-rule-controls .support-summary {
  display: none;
}

body[data-view="method"] #view-method #method-partnership-rules {
  padding-top: 0;
}

@media (max-width: 1400px) {
  body[data-view="method"] #view-method .hero-panel.panel .panel-header {
    padding: 12px 16px 5px;
  }

  body[data-view="method"] #view-method .hero-panel.panel .panel-header h3 {

  }

  body[data-view="method"] #view-method #method-source-note {

    padding: 0 16px 10px;
  }

  body[data-view="method"] #view-method #method-partnership-rules {
    gap: 8px;
    padding: 0 16px 10px;
  }

  body[data-view="method"] #view-method .partnership-rule-card {
    gap: 4px;
    padding: 10px;
  }

  body[data-view="method"] #view-method .partnership-rule-card strong {

  }

  body[data-view="method"] #view-method .partnership-rule-card p {

  }

  body[data-view="method"] #view-method .partnership-rule-card small {

  }

  body[data-view="method"] .method-rule-controls {
    margin: 0 16px 14px;
  }
}

@media (max-width: 620px) {
  body[data-view="method"] #view-method .hero-panel.panel .panel-header {
    padding: 10px 12px 4px;
  }

  body[data-view="method"] #view-method .hero-panel.panel .panel-header h3 {

  }

  body[data-view="method"] #view-method #method-source-note {
    display: -webkit-box;

    overflow: hidden;
    padding: 0 12px 6px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body[data-view="method"] #view-method #method-partnership-rules {
    gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 12px 7px;
  }

  body[data-view="method"] #view-method .partnership-rule-card {
    gap: 3px;
    min-height: 0;
    padding: 7px;
  }

  body[data-view="method"] #view-method .partnership-rule-card span {

  }

  body[data-view="method"] #view-method .partnership-rule-card strong {
    display: -webkit-box;

    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body[data-view="method"] #view-method .partnership-rule-card p {
    display: -webkit-box;

    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body[data-view="method"] #view-method .partnership-rule-card small {
    display: block;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-view="method"] .method-rule-controls {
    margin: 0 12px 10px;
  }

  body[data-view="method"] .method-rule-controls summary {
    gap: 8px;
    padding: 9px 10px;
  }

  body[data-view="method"] .method-rule-controls summary small {
    display: none;
  }
}

/* 2026-06-22 proof route reachability: let route-specific proof cards own constrained first viewports. */
@media (max-width: 1100px) {
  body[data-view="market"] .metrics,
  body[data-view="market"] .action-status,
  body[data-view="evidence"] .metrics,
  body[data-view="evidence"] .action-status,
  body[data-view="claims"] .metrics,
  body[data-view="claims"] .action-status {
    display: none;
  }
}

/* 2026-06-22 pursuit compact lock reachability: keep proof locks visible without stacking four full cards. */
@media (max-width: 620px) {
  body[data-view="pursuit"] #view-pursuit > .panel:first-child .panel-header {
    padding: 14px 14px 8px;
  }

  body[data-view="pursuit"] #view-pursuit > .panel:first-child .panel-header h3 {

  }

  body[data-view="pursuit"] #view-pursuit > .panel:first-child .mini-note {
    display: none;
  }

  body[data-view="pursuit"] #pursuit-gate-board {
    gap: 9px;
    padding: 12px 14px 14px;
  }

  body[data-view="pursuit"] #pursuit-gate-board .source-command-copy {
    gap: 3px;
    padding-left: 10px;
  }

  body[data-view="pursuit"] #pursuit-gate-board .source-command-copy strong {

  }

  body[data-view="pursuit"] #pursuit-gate-board .source-command-copy p {

  }

  body[data-view="pursuit"] #pursuit-gate-board .pursuit-gate-card-grid {
    gap: 7px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-view="pursuit"] #pursuit-gate-board .source-access-card {
    align-content: start;
    gap: 5px;
    min-height: 0;
    padding: 8px;
  }

  body[data-view="pursuit"] #pursuit-gate-board .source-access-card.locked {
    border-left-width: 2px;
  }

  body[data-view="pursuit"] #pursuit-gate-board .source-access-card > span {

  }

  body[data-view="pursuit"] #pursuit-gate-board .source-access-card strong {

  }

  body[data-view="pursuit"] #pursuit-gate-board .source-access-card p {

  }

  body[data-view="pursuit"] #pursuit-gate-board .source-access-chip-row {
    gap: 4px;
  }

  body[data-view="pursuit"] #pursuit-gate-board .source-access-chip-row span {

    padding: 4px 6px;
  }
}

/* 2026-06-22 proof reader mobile reachability: let the first proof card own the viewport. */
@media (max-width: 600px) {
  body[data-view="evidence"] #view-evidence > .panel > .panel-header,
  body[data-view="claims"] #view-claims > .panel > .panel-header,
  body[data-view="evidence"] #evidence-command-center,
  body[data-view="claims"] #claim-command-center {
    display: none;
  }

  body[data-view="evidence"] #view-evidence > .panel,
  body[data-view="claims"] #view-claims > .panel {
    overflow: hidden;
  }

  body[data-view="evidence"] .evidence-triage-board,
  body[data-view="claims"] .claim-triage-board {
    padding: 10px 14px 12px;
  }

  body[data-view="evidence"] .evidence-posture-card,
  body[data-view="claims"] .claim-posture-card,
  body[data-view="evidence"] .proof-reader-card,
  body[data-view="claims"] .proof-reader-card {
    padding: 12px;
  }

  body[data-view="evidence"] .evidence-posture-head,
  body[data-view="claims"] .claim-posture-head,
  body[data-view="evidence"] .proof-card-top,
  body[data-view="claims"] .proof-card-top {
    gap: 8px;
  }

  body[data-view="evidence"] .evidence-posture-head h4,
  body[data-view="claims"] .claim-posture-head h4 {

  }
}

/* 2026-06-22 partner/decision mobile reachability: keep the decision cards in the first viewport. */
@media (max-width: 600px) {
  body[data-view="brief"] .action-status,
  body[data-view="ic"] .action-status {
    margin-bottom: 6px;
    padding: 5px 8px;
  }

  body[data-view="brief"] .action-status span,
  body[data-view="ic"] .action-status span {
    display: none;
  }

  body[data-view="brief"] .metrics,
  body[data-view="ic"] .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 10px;
  }

  body[data-view="brief"] .metric,
  body[data-view="ic"] .metric {
    gap: 2px;
    min-height: 50px;
    padding: 7px 8px;
  }

  body[data-view="brief"] .metric span,
  body[data-view="ic"] .metric span {

    margin-bottom: 0;
  }

  body[data-view="brief"] .metric strong,
  body[data-view="ic"] .metric strong {

  }

  body[data-view="brief"] .metric small,
  body[data-view="ic"] .metric small {
    display: -webkit-box;

    max-width: none;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  body[data-view="brief"] .brief-layout {
    gap: 10px;
  }

  body[data-view="brief"] .brief-layout .hero-panel {
    order: 1;
  }

  body[data-view="brief"] .brief-layout .role-panel {
    order: 2;
  }

  body[data-view="brief"] .brief-layout .partner-support-panel {
    order: 3;
  }

  body[data-view="brief"] .brief-layout .ben-feedback-panel {
    order: 4;
  }

  body[data-view="brief"] .brief-layout .ben-workplan-panel {
    order: 5;
  }

  body[data-view="brief"] .brief-layout .brief-detail-panel {
    order: 6;
  }
}

/* 2026-06-22 partner detail reachability: put working disclosures before secondary context on mobile. */
@media (max-width: 600px) {
  body[data-view="brief"] #brief-partner-cockpit,
  body[data-view="brief"] #brief-partner-support {
    gap: 8px;
    grid-template-columns: 1fr;
    padding: 10px 12px 12px;
  }

  body[data-view="brief"] .role-panel .panel-header,
  body[data-view="brief"] .brief-detail-panel .panel-header {
    padding: 13px 14px 8px;
  }

  body[data-view="brief"] .role-panel .panel-header h3,
  body[data-view="brief"] .brief-detail-panel .panel-header h3 {

  }

  body[data-view="brief"] .role-panel .mini-note,
  body[data-view="brief"] .brief-detail-panel .mini-note {
    display: none;
  }

  body[data-view="brief"] .role-card {
    gap: 8px;
    padding: 11px;
  }

  body[data-view="brief"] .role-card-head {
    gap: 8px;
  }

  body[data-view="brief"] .role-card-head h4 {

  }

  body[data-view="brief"] .compact-row {
    gap: 2px;
    padding-top: 7px;
  }

  body[data-view="brief"] .compact-row span,
  body[data-view="brief"] .compact-row small,
  body[data-view="brief"] .compact-empty,
  body[data-view="brief"] .boundary-note {

  }

  body[data-view="brief"] .boundary-note {
    padding: 8px;
  }

  body[data-view="brief"] .brief-detail-stack {
    gap: 8px;
    padding: 10px 12px 12px;
  }
}

/* 2026-06-22 packets decision frame first: laptop/desktop now see the proof boundary before packet-builder depth. */
/* 2026-06-22 packets mobile grid: keep all four proof-boundary cards visible before packet-builder depth. */
/* 2026-06-22 packets mobile reachability: show partner action before packet-builder depth. */
.transform-layout .packet-intro-row {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-color: var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(18, 24, 23, 0.035);
  color: var(--ink);
  display: grid;
  gap: 14px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(190px, 0.28fr) minmax(0, 1fr) auto;
  padding: 12px 16px;
}

.packet-intro-head {
  align-items: center;
  display: grid;
  gap: 4px;
  min-width: 0;
}

.packet-intro-head > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.packet-intro-head h3 {
  color: var(--ink);

  margin: 0;
  overflow-wrap: anywhere;
}

.packet-intro-head .section-label {
  color: #4d7770;
}

.packet-intro-head .mini-note {
  color: var(--muted);

  white-space: nowrap;
}

.packet-intro-row .brief-headline {
  color: var(--ink);

  margin: 0;
  max-width: 860px;
  padding: 0;
}

.packet-intro-row #transform-command-brief[hidden],
.packet-intro-row #transform-summary[hidden] {
  display: none !important;
}

.packet-builder-mobile-detail {
  display: none;
}

@media (max-width: 600px) {
  body[data-view="transformability"] .transform-layout {
    gap: 10px;
  }

  body[data-view="transformability"] .transform-layout > * {
    order: 3;
  }

  body[data-view="transformability"] #view-transformability .packet-intro-row {
    order: 1;
  }

  body[data-view="transformability"] .packet-builder-disclosure {
    order: 2;
  }

  body[data-view="transformability"] .action-status {
    margin-bottom: 7px;
    padding: 5px 8px;
  }

  body[data-view="transformability"] .action-status span {
    display: none;
  }

  body[data-view="transformability"] #view-transformability .packet-intro-row {
    gap: 8px;
    grid-template-columns: 1fr;
    padding: 10px 12px;
  }

  body[data-view="transformability"] #view-transformability .packet-intro-head {
    gap: 8px;
  }

  body[data-view="transformability"] #view-transformability .packet-intro-head h3 {

  }

  body[data-view="transformability"] #view-transformability .packet-intro-row .brief-headline {

  }

  body[data-view="transformability"] #view-transformability .decision-brief-grid {
    padding-top: 10px;
  }

  body[data-view="transformability"] #transform-command-brief {
    gap: 7px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 9px 14px 8px;
  }

  body[data-view="transformability"] #transform-command-brief .decision-brief-card {
    gap: 4px;
    min-height: 0;
    padding: 8px;
  }

  body[data-view="transformability"] #transform-command-brief .decision-brief-card span {

  }

  body[data-view="transformability"] #transform-command-brief .decision-brief-card strong {

    margin-top: 0;
  }

  body[data-view="transformability"] #transform-command-brief .decision-brief-card p {
    display: -webkit-box;

    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body[data-view="transformability"] #transform-command-brief .decision-brief-card small {
    display: none;
  }

  body[data-view="transformability"] .packet-builder-grid {
    gap: 8px;
    grid-template-columns: 1fr;
    padding: 0;
  }

  body[data-view="transformability"] .packet-builder-summary-card {
    gap: 8px;
    padding: 12px;
  }

  body[data-view="transformability"] .packet-builder-summary-card > p {

  }

  body[data-view="transformability"] .packet-builder-summary-card .packet-action-list {
    gap: 6px;
  }

  body[data-view="transformability"] .packet-builder-summary-card .packet-action-list div {
    padding: 8px 9px;
  }

  body[data-view="transformability"] .packet-builder-summary-card .boundary-note {

    padding: 8px 9px;
  }

  body[data-view="transformability"] .packet-builder-desktop-card {
    display: none;
  }

  body[data-view="transformability"] .packet-builder-mobile-detail {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: block;
    min-width: 0;
    overflow: hidden;
  }

  body[data-view="transformability"] .packet-builder-mobile-detail summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    list-style: none;
    min-width: 0;
    padding: 10px 11px;
  }

  body[data-view="transformability"] .packet-builder-mobile-detail summary::-webkit-details-marker {
    display: none;
  }

  body[data-view="transformability"] .packet-builder-mobile-detail summary > span:first-child {
    display: grid;
    gap: 3px;
    min-width: 0;
  }

  body[data-view="transformability"] .packet-builder-mobile-detail summary strong {
    color: var(--ink);

    overflow-wrap: anywhere;
  }

  body[data-view="transformability"] .packet-builder-mobile-detail summary small {
    color: var(--muted);

  }

  body[data-view="transformability"] .packet-builder-mobile-detail[open] summary {
    border-bottom: 1px solid var(--line);
  }

  body[data-view="transformability"] .packet-builder-mobile-detail-body {
    display: grid;
    gap: 8px;
    padding: 10px 11px 11px;
  }

  body[data-view="transformability"] .packet-builder-mobile-detail-body p,
  body[data-view="transformability"] .packet-builder-mobile-detail-body .packet-card-note {

  }
}

/* 2026-06-22 partner mobile decision strip: make the proof cockpit arrive before first-screen fatigue. */
@media (max-width: 600px) {
  body[data-view="brief"] .topbar {
    gap: 7px;
    margin-bottom: 7px;
  }

  body[data-view="brief"] .page-heading {
    gap: 2px;
  }

  body[data-view="brief"] .topbar h2 {

  }

  body[data-view="brief"] .page-subtitle {
    display: none;
  }

  body[data-view="brief"] .ops-drawer summary {
    min-height: 28px;
    padding: 5px 9px;
  }

  body[data-view="brief"] .metrics {
    display: grid;
    gap: 5px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 8px;
    overflow: visible;
    padding-bottom: 0;
  }

  body[data-view="brief"] .metric {
    flex: initial;
    gap: 2px;
    min-height: 48px;
    padding: 6px 5px;
  }

  body[data-view="brief"] .metric span {
    display: block;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-view="brief"] .metric strong {
    display: -webkit-box;

    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body[data-view="brief"] .metric small {
    display: none;
  }

  body[data-view="brief"] #brief-partner-cockpit {
    gap: 7px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px 10px 10px;
  }

  body[data-view="brief"] #brief-partner-cockpit .role-card {
    gap: 6px;
    padding: 8px;
  }

  body[data-view="brief"] #brief-partner-cockpit .role-card-head {
    gap: 5px;
  }

  body[data-view="brief"] #brief-partner-cockpit .role-card-head h4 {

  }

  body[data-view="brief"] #brief-partner-cockpit .role-card-head .pill {
    display: none;
  }

  body[data-view="brief"] #brief-partner-cockpit .compact-row {
    gap: 2px;
    padding-top: 5px;
  }

  body[data-view="brief"] #brief-partner-cockpit .compact-row strong,
  body[data-view="brief"] #brief-partner-cockpit .compact-row span,
  body[data-view="brief"] #brief-partner-cockpit .compact-row small,
  body[data-view="brief"] #brief-partner-cockpit .compact-empty,
  body[data-view="brief"] #brief-partner-cockpit .boundary-note {

  }

  body[data-view="brief"] #brief-partner-cockpit .compact-row span,
  body[data-view="brief"] #brief-partner-cockpit .compact-row small,
  body[data-view="brief"] #brief-partner-cockpit .compact-empty,
  body[data-view="brief"] #brief-partner-cockpit .boundary-note {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  body[data-view="brief"] #brief-partner-cockpit .boundary-note,
  body[data-view="brief"] #brief-partner-cockpit .compact-empty {
    padding: 6px;
  }
}

/* 2026-06-23 partner mobile readability: keep the decision sheet legible before working detail. */
@media (max-width: 600px) {
  body[data-view="brief"] #brief-partner-cockpit {
    gap: 8px;
    grid-template-columns: 1fr;
  }

  body[data-view="brief"] #brief-partner-cockpit .role-card {
    gap: 6px;
    min-height: 0;
    padding: 8px 10px;
  }

  body[data-view="brief"] #brief-partner-cockpit .role-card-head h4 {

  }

  body[data-view="brief"] #brief-partner-cockpit .compact-row span,
  body[data-view="brief"] #brief-partner-cockpit .compact-empty,
  body[data-view="brief"] #brief-partner-cockpit .boundary-note {
    display: block;

    overflow: visible;
    -webkit-line-clamp: unset;
  }

  body[data-view="brief"] #brief-partner-cockpit .compact-row small {
    display: none;
  }
}

/* 2026-06-23 mobile shell compression: keep route content above the first thumb scroll. */
@media (max-width: 620px) {
  .sidebar {
    display: grid;
    gap: 6px;
    grid-template-columns: 1fr;
    padding: 8px 12px 6px;
  }

  .brand {
    gap: 8px;
    min-height: 30px;
    padding: 0;
  }

  .brand-mark {
    height: 30px;
    width: 30px;
  }

  .brand h1 {

  }

  nav {
    display: flex;
    gap: 6px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  .nav-primary,
  .nav-secondary,
  .nav-drawer[open] .nav-secondary {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    grid-template-columns: none;
    min-width: max-content;
    overflow: visible;
    padding: 0;
    width: auto;
  }

  .nav-drawer {
    border-top: 0;
    flex: 0 0 auto;
    padding-top: 0;
    position: relative;
    width: auto;
  }

  .nav-drawer summary,
  .nav-item {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;

    justify-content: center;

    min-height: 28px;
    min-width: auto;
    padding: 6px 9px;
    width: auto;
  }

  .nav-item.active::before {
    inset: 7px auto 7px 0;
    width: 3px;
  }

  .nav-drawer summary {
    max-width: 124px;
  }

  .nav-drawer.active-compact summary {
    background: #202925;
    color: #ffffff;
  }
}

/* 2026-06-23 targets mobile proof density: keep the workbench rows closer to first view. */
@media (max-width: 640px) {
  body[data-view="overview"] .target-sprint-board {
    gap: 6px;
    padding: 8px 12px 10px;
  }

  body[data-view="overview"] .target-sprint-summary {
    gap: 6px;
    padding: 8px 10px;
  }

  body[data-view="overview"] .target-sprint-summary h4 {

  }

  body[data-view="overview"] .target-sprint-summary p {
    -webkit-line-clamp: 1;
  }

  body[data-view="overview"] .target-sprint-summary-meta {
    gap: 4px;
  }

  body[data-view="overview"] .target-sprint-summary-meta span {

    padding: 3px 6px;
  }

  body[data-view="overview"] .target-sprint-grid {
    gap: 6px;
  }

  body[data-view="overview"] .target-sprint-card {
    gap: 6px;
    padding: 9px 10px;
  }

  body[data-view="overview"] .target-sprint-card:not(:first-child) {
    align-items: center;
    gap: 4px 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 64px;
    padding: 8px 10px;
  }

  body[data-view="overview"] .target-sprint-card:not(:first-child) .target-sprint-rank {
    grid-column: 1 / -1;
  }

  body[data-view="overview"] .target-sprint-card:not(:first-child) .target-sprint-head {
    align-items: center;
    grid-column: 1 / -1;
  }

  body[data-view="overview"] .target-sprint-card:not(:first-child) .target-sprint-head > div > span,
  body[data-view="overview"] .target-sprint-card:not(:first-child) p,
  body[data-view="overview"] .target-sprint-card:not(:first-child) .target-sprint-meta span:first-child {
    display: none;
  }

  body[data-view="overview"] .target-sprint-card:not(:first-child) .target-sprint-head h4 {

    margin: 0;
  }

  body[data-view="overview"] .target-sprint-card:not(:first-child) .target-sprint-meta {
    grid-column: 1 / -1;
  }

  body[data-view="overview"] .target-sprint-card:not(:first-child) .target-sprint-meta span {

    padding: 3px 6px;
  }

  body[data-view="overview"] .target-tools {
    order: 1;
  }

  body[data-view="overview"] .target-workbench-body > .target-queue-shell {
    order: 2;
  }

  body[data-view="overview"] .target-full-list {
    order: 3;
  }

  body[data-view="overview"] .target-workbench-drawer > summary,
  body[data-view="overview"] .target-full-list > summary {
    min-height: 34px;
    padding: 8px 10px;
  }

  body[data-view="overview"] .target-workbench-body {
    gap: 6px;
    padding: 8px;
  }

  body[data-view="overview"] .target-focus-queue .target-row-compact {
    padding: 10px;
  }

  body[data-view="overview"] .target-focus-queue .target-row-main {
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-view="overview"] .target-focus-queue .target-row-main .lane-pill {
    grid-column: 1;
    justify-self: start;

    max-width: 100%;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    width: fit-content;
  }

  body[data-view="overview"] .target-focus-queue .next-cell strong {
    display: block;
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
    -webkit-box-orient: initial;
    -webkit-line-clamp: unset;
  }
}

/* 2026-06-23 targets mobile command strip: keep proof guardrails visible while exposing rows earlier. */
@media (max-width: 640px) {
  body[data-view="overview"] .target-workbench > .panel-header {
    padding: 14px 12px 8px;
  }

  body[data-view="overview"] .target-workbench > .panel-header h3 {

  }

  body[data-view="overview"] #target-count-note {

  }

  body[data-view="overview"] #target-decision-board.decision-board {
    gap: 6px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 6px 12px 8px;
  }

  body[data-view="overview"] #target-decision-board .command-card {
    align-content: center;
    min-height: 52px;
    padding: 7px 6px;
  }

  body[data-view="overview"] #target-decision-board .command-card:first-child {
    align-content: start;
    grid-column: 1 / -1;
    min-height: 58px;
    padding: 8px 10px;
  }

  body[data-view="overview"] #target-decision-board .command-card span {

  }

  body[data-view="overview"] #target-decision-board .command-card strong {

    overflow-wrap: anywhere;
  }

  body[data-view="overview"] #target-decision-board .command-card:first-child strong {

  }

  body[data-view="overview"] #target-decision-board .command-card p {

  }

body[data-view="overview"] #target-decision-board .command-card:not(:first-child) p {
    display: none;
  }
}

/* 2026-06-23 targets laptop proof strip: expose the scan queue on call-height screens. */
@media (min-width: 761px) and (max-width: 1280px) and (max-height: 820px) {
  body[data-view="overview"] main {
    padding-top: 22px;
  }

  body[data-view="overview"] .topbar {
    margin-bottom: 8px;
  }

  body[data-view="overview"] .topbar h2 {

  }

  body[data-view="overview"] .page-subtitle {

    margin-top: 6px;
    max-width: 780px;
  }

  body[data-view="overview"] .action-status {
    margin-bottom: 8px;
  }

  body[data-view="overview"] .target-workbench > .panel-header {
    align-items: center;
    padding: 12px 16px 10px;
  }

  body[data-view="overview"] .target-workbench > .panel-header h3 {

  }

  body[data-view="overview"] #target-count-note {

    text-align: right;
  }

  body[data-view="overview"] #target-decision-board.decision-board {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(220px, 1.25fr) repeat(3, minmax(138px, 0.75fr));
    padding: 8px 16px;
  }

  body[data-view="overview"] #target-decision-board .command-card {
    align-content: center;
    gap: 2px;
    min-height: 58px;
    padding: 8px 10px;
  }

  body[data-view="overview"] #target-decision-board .command-card span {

  }

  body[data-view="overview"] #target-decision-board .command-card strong {

  }

  body[data-view="overview"] #target-decision-board .command-card:first-child strong {

  }

  body[data-view="overview"] #target-decision-board .command-card p {
    display: -webkit-box;

    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  body[data-view="overview"] .target-workbench-jump {
    padding: 6px 16px;
  }

  body[data-view="overview"] .target-workbench-jump a {
    padding: 6px 9px;
  }

  body[data-view="overview"] .target-workbench-drawer {
    margin: 0 16px 12px;
  }

  body[data-view="overview"] .target-workbench-drawer > summary,
  body[data-view="overview"] .target-full-list > summary {
    min-height: 36px;
    padding: 8px 12px;
  }

  body[data-view="overview"] .target-workbench-body {
    gap: 8px;
    padding: 9px;
  }

  body[data-view="overview"] .target-tools {
    gap: 8px;
    padding: 9px;
  }

  body[data-view="overview"] .target-tools input,
  body[data-view="overview"] .target-tools select {
    min-height: 34px;
  }

  body[data-view="overview"] .target-workbench-body > .target-queue-shell {
    max-height: min(54vh, 410px);
    min-height: min(32vh, 240px);
    padding: 7px 8px 8px;
  }

  body[data-view="overview"] .target-focus-head {
    padding: 7px 10px;
  }

  body[data-view="overview"] .target-focus-queue .target-row-compact {
    min-height: 68px;
    padding: 10px 12px;
  }

  body[data-view="overview"] .target-focus-queue .target-row-main {
    gap: 3px;
  }

  body[data-view="overview"] .target-focus-queue .target-row-main .target-name {

  }

  body[data-view="overview"] .target-focus-queue .queue-eyebrow,
  body[data-view="overview"] .target-focus-queue .queue-subtle,
  body[data-view="overview"] .target-focus-queue .proof-cell .queue-subtle {

  }

  body[data-view="overview"] .target-focus-queue .next-cell strong {

  }
}

/* 2026-06-23 targets compact proof header v2: enforce the density target after later route-specific rules. */
@media (min-width: 761px) and (max-width: 1280px) {
  body[data-view="overview"] .overview-shell.target-cockpit #target-decision-board.decision-board {
    gap: 6px;
    grid-template-columns: minmax(172px, 1.2fr) repeat(3, minmax(0, 1fr));
    padding: 5px 16px 6px;
  }

  body[data-view="overview"] .overview-shell.target-cockpit #target-decision-board .command-card {
    min-height: 44px;
    padding: 5px 7px;
  }

  body[data-view="overview"] .overview-shell.target-cockpit #target-decision-board .command-card p {
    display: none;
  }
}

/* 2026-06-23 mobile command bar final: collapse repeated app chrome after all route rules. */
@media (max-width: 620px) {
  .sidebar {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: auto minmax(0, 1fr);
    height: 44px;
    min-height: 44px;
    overflow: visible;
    padding: 6px 8px;
    z-index: 80;
  }

  .brand {
    gap: 0;
    height: 32px;
    min-height: 0;
    min-width: 32px;
    padding: 0;
  }

  .brand-mark {
    height: 32px;
    width: 32px;
  }

  .brand h1,
  .brand p,
  .nav-section-label,
  .nav-group-label,
  .sidebar-footer,
  .page-subtitle,
  .role-mode-strip,
  .action-status,
  .metrics {
    display: none;
  }

  .sidebar nav {
    align-items: center;
    display: flex;
    gap: 6px;
    height: 32px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: visible;
    padding: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar nav::-webkit-scrollbar {
    display: none;
  }

  .nav-primary,
  .nav-secondary,
  .nav-drawer[open] .nav-secondary {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    grid-template-columns: none;
    min-width: max-content;
    overflow: visible;
    padding: 0;
    width: auto;
  }

  .nav-drawer {
    border-top: 0;
    flex: 0 0 auto;
    padding-top: 0;
    position: relative;
    width: auto;
  }

  .nav-drawer summary,
  .nav-item {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    flex: 0 0 auto;

    justify-content: center;

    min-height: 30px;
    min-width: auto;
    padding: 6px 8px;
    white-space: nowrap;
    width: auto;
  }

  .nav-item.active::before {
    inset: 7px auto 7px 0;
    width: 3px;
  }

  .nav-drawer summary {
    max-width: 118px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-drawer[open] .nav-secondary {
    background: #071115;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    box-shadow: 0 18px 48px rgba(6, 15, 17, 0.28);
    left: auto;
    max-width: min(340px, calc(100vw - 16px));
    overflow-x: auto;
    padding: 8px;
    position: absolute;
    right: 0;
    top: 36px;
    z-index: 100;
  }

  main {
    padding: 8px 10px 30px;
  }

  .topbar {
    align-items: center;
    display: grid;
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 6px;
    min-height: 32px;
  }

  .page-heading {
    gap: 0;
    min-width: 0;
  }

  .page-heading .section-label {
    display: none;
  }

  .topbar h2 {
    display: block;

    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ops-drawer {
    justify-self: end;
    min-width: 0;
    position: relative;
    width: auto;
  }

  .ops-drawer summary {
    border-radius: 999px;
    min-height: 30px;
    padding: 6px 9px;
  }

  .ops-drawer summary small {
    display: none;
  }

  .ops-drawer[open] .topbar-actions {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 18px 48px rgba(18, 24, 23, 0.16);
    display: grid;
    gap: 7px;
    padding: 9px;
    position: absolute;
    right: 0;
    top: 36px;
    width: min(330px, calc(100vw - 20px));
    z-index: 100;
  }

  .ops-drawer .topbar-actions button {
    min-height: 32px;
  }
}

@media (max-width: 640px) {
  body[data-view="overview"] .target-workbench > .panel-header {
    display: grid;
    gap: 3px;
    padding: 8px 12px 5px;
  }

  body[data-view="overview"] .target-workbench > .panel-header .section-label,
  body[data-view="overview"] #target-count-note {
    display: none;
  }

  body[data-view="overview"] .target-workbench > .panel-header h3 {

  }

  body[data-view="overview"] .overview-shell.target-cockpit #target-decision-board.decision-board {
    gap: 5px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 5px 10px 6px;
  }

  body[data-view="overview"] .overview-shell.target-cockpit #target-decision-board .command-card,
  body[data-view="overview"] .overview-shell.target-cockpit #target-decision-board .command-card:first-child {
    min-height: 34px;
    padding: 5px 6px;
  }

  body[data-view="overview"] .overview-shell.target-cockpit #target-decision-board .command-card:first-child {
    grid-column: 1 / -1;
  }

  body[data-view="overview"] .overview-shell.target-cockpit #target-decision-board .command-card p {
    display: none;
  }
}
/* 2026-06-23 mobile command bar final source-route exception: keep System and content reachability. */
@media (max-width: 620px) {
  body[data-view="adapters"] .ops-drawer {
    display: block;
  }

  body[data-view="adapters"] .topbar {
    align-items: center;
    display: grid;
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 6px;
    min-height: 32px;
  }

  body[data-view="adapters"] main {
    padding: 8px 10px 30px;
  }

  body[data-view="adapters"] #view-adapters > .panel {
    margin-top: 0;
  }
}

/* 2026-06-29 Gemini editorial workbench release: reduce generic chrome while preserving proof density. */
.page-heading h2,
.topbar h2 {

}

.page-heading .page-subtitle,
.page-subtitle {

}

@media (min-width: 621px) {
  .nav-primary .nav-item,
  .nav-secondary .nav-item {
    border-radius: 2px;
  }

  .nav-primary .nav-item.active,
  .nav-secondary .nav-item.active {
    background: #0b1412;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    color: #ffffff;
  }

  .nav-primary .nav-item.active::before,
  .nav-secondary .nav-item.active::before {
    background: var(--accent);
    border-radius: 0;
    inset: 0 auto 0 0;
    width: 3px;
  }
}

.ben-feedback-grid {
  display: grid;
  column-gap: 24px;
  row-gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ben-feedback-card,
.ben-feedback-card.agree,
.ben-feedback-card.question,
.ben-feedback-card.neutral,
.ben-feedback-card.boundary {
  background: transparent;
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--line-strong);
  padding: 15px 0 14px;
}

.ben-feedback-card:first-child {
  border-top-color: var(--ink);
}

.ben-feedback-card:nth-child(2) {
  border-top-color: var(--ink);
}

.ben-feedback-card .lifecycle-stage-topline {
  align-items: center;
}

.ben-feedback-card h4 {

  margin: 8px 0 6px;
}

.ben-feedback-card p,
.ben-feedback-card small {
  max-width: 58ch;
}

body[data-view="method"] .method-rule-controls:not([open]) {
  margin-bottom: 12px;
}

body[data-view="overview"] .target-queue-shell {
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}

body[data-view="overview"] .target-workbench-body > .target-queue-shell {
  border-left: 0;
  border-right: 0;
}

body[data-view="overview"] .target-queue-head {
  border-left: 0;
  border-right: 0;
  padding-left: 0;
  padding-right: 0;
}

body[data-view="overview"] .target-queue,
body[data-view="overview"] .target-row {
  border-left: 0;
  border-right: 0;
}

body[data-view="overview"] .target-row {
  border-radius: 0;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

body[data-view="overview"] .target-row:hover,
body[data-view="overview"] .target-row:focus-visible {
  background: #fbfcfa;
}

body[data-view="overview"] .target-row.selected {
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--accent);
}

@media (max-width: 640px) {
  .ben-feedback-grid {
    grid-template-columns: 1fr;
  }

  .ben-feedback-card,
  .ben-feedback-card.agree,
  .ben-feedback-card.question,
  .ben-feedback-card.neutral,
  .ben-feedback-card.boundary {
    padding: 12px 0;
  }

  .ben-feedback-card:nth-child(2) {
    border-top-color: var(--line-strong);
  }
}

/* 2026-07-09 partner workspace: five human surfaces with one canonical next action. */
.role-mode-strip {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 12px;
  width: min(100%, 980px);
}

.role-mode-button {
  align-items: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: grid;
  gap: 3px;
  justify-content: start;
  min-height: 48px;
  padding: 8px 10px;
  text-align: left;
  white-space: normal;
}

.role-mode-button span {

}

.role-mode-button small {

}

.role-mode-button:hover,
.role-mode-button.active {
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: none;
  color: #ffffff;
}

.primary-decision-banner {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0 0 12px;
  padding: 9px 0;
}

.primary-decision-banner[hidden] {
  display: none;
}

body:not([data-view="brief"]):not([data-view="market"]):not([data-view="overview"]):not([data-view="ingestion"]):not([data-view="transformability"]):not([data-view="evals"]) .primary-decision-banner {
  display: none;
}

.primary-decision-copy {
  align-items: baseline;
  display: grid;
  gap: 2px 10px;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 0;
}

.primary-decision-copy .section-label {
  grid-column: 1;
  grid-row: 1;
}

.primary-decision-copy > strong {
  color: var(--ink);

  grid-column: 2;
  grid-row: 1;

}

.primary-decision-copy p {
  color: var(--muted);

  grid-column: 2;

  margin: 0;
  max-width: 82ch;
}

.primary-decision-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.primary-decision-route,
.inline-route-button {
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: #ffffff;
  cursor: pointer;

  min-height: 34px;
  padding: 7px 11px;
}

.primary-decision-route:hover,
.inline-route-button:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.market-mode-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.market-mode-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
}

.market-mode-card > strong {

}

.market-mode-card > p,
.market-mode-why p {
  color: var(--muted);

  margin: 0;
}

.market-mode-label {
  color: var(--accent);

}

.market-mode-why {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 3px;
  padding-top: 8px;
}

.market-mode-why > span {
  color: var(--ink);

}

.market-mode-link {
  align-items: center;
  display: flex;

  gap: 8px;
  margin-top: auto;
  min-height: 24px;
  min-width: 0;
}

.market-mode-link > a,
.thesis-source-boundary > a {
  flex-shrink: 0;
  white-space: nowrap;
}

.market-mode-link > small {
  min-width: 0;
}

.shadow-score-row {
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

.shadow-component-grid {
  display: grid;
  gap: 5px 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shadow-component-grid > span {
  color: var(--muted);
  display: flex;

  gap: 5px;
  justify-content: space-between;

}

.shadow-component-grid strong {
  color: var(--ink);

}

.thesis-human-decision {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding-top: 9px;
}

.thesis-review-rule {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 4px;
  margin: 12px 0;
  padding: 10px 12px;
}

.thesis-proposal-review {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
  padding-top: 9px;
}

.thesis-proposal-review span,
.thesis-proposal-reviewed {
  color: var(--muted);

  margin-right: auto;
}

.thesis-proposal-review-action {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;

  padding: 5px 9px;
}

.thesis-proposal-review-action:hover {
  border-color: var(--ink);
}

.thesis-proposal-review-action[data-review-action="reject"] {
  color: var(--muted);
}

.thesis-proposal-reviewed {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 9px;
}

.stage-feedback-ledger-item {
  gap: 0.55rem;
}

.stage-feedback-ledger-head {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.stage-feedback-ledger-head h4 {
  margin: 0.15rem 0 0;
}

.stage-feedback-ledger-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.stage-feedback-ledger-actions button {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;

  padding: 5px 9px;
}

.stage-feedback-ledger-actions button:hover,
.stage-feedback-ledger-actions button:focus-visible {
  border-color: var(--ink);
}

.stage-feedback-ledger-actions button[data-review-action="reject"] {
  color: var(--muted);
}

.stakeholder-interaction-form {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
}

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

.stakeholder-interaction-form label {
  color: var(--ink);
  display: grid;

  gap: 5px;

}

.stakeholder-interaction-form input,
.stakeholder-interaction-form select,
.stakeholder-interaction-form textarea {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink);

  padding: 8px 9px;

  width: 100%;
}

.stakeholder-interaction-form textarea {
  min-height: 52px;
  resize: vertical;
}

.stakeholder-interaction-form input:focus,
.stakeholder-interaction-form select:focus,
.stakeholder-interaction-form textarea:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(6, 79, 67, 0.12);
}

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

.stakeholder-form-actions .mini-note {
  color: var(--muted);

}

.stakeholder-interaction-record {
  gap: 6px;
}

.stakeholder-interaction-lock {
  color: var(--muted);

}

.stakeholder-interaction-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.stakeholder-interaction-action {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;

  padding: 4px 8px;
}

.stakeholder-interaction-action:hover,
.stakeholder-interaction-action:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.stakeholder-interaction-action.muted {
  color: var(--muted);
}

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

@media (max-width: 560px) {
  .stakeholder-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.thesis-review-rule strong {
  color: var(--ink);

}

.thesis-review-rule span,
.thesis-review-rule small {
  color: var(--muted);

}

.thesis-human-decision-label {
  color: var(--ink);

}

.thesis-decision-options {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.thesis-decision-options span,
.thesis-decision-options button {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;

  padding: 4px 7px;
}

.thesis-decision-options button:hover,
.thesis-decision-options button:focus-visible {
  background: var(--wash);
  border-color: var(--accent);
  outline: none;
}

.thesis-decision-options button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.thesis-human-decision small {
  color: var(--muted);

}

.matt-build-focus-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  padding: 14px;
}

.matt-build-focus-card {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 9px;
  grid-template-columns: 24px minmax(0, 1fr);
  min-width: 0;
  padding: 12px;
}

.matt-build-focus-card.primary {
  border-color: rgba(6, 79, 67, 0.38);
  box-shadow: inset 3px 0 0 var(--accent);
}

.matt-build-focus-card.warn {
  box-shadow: inset 3px 0 0 var(--warning);
}

.matt-build-focus-rank {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: #ffffff;
  display: flex;

  height: 22px;
  justify-content: center;
  width: 22px;
}

.matt-build-focus-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.matt-build-focus-topline {
  align-items: center;
  display: flex;
  gap: 7px;
  justify-content: space-between;
}

.matt-build-focus-copy strong {
  color: var(--ink);

}

.matt-build-focus-copy p,
.matt-build-focus-copy small {
  color: var(--muted);

  margin: 0;
}

.stage-one-feedback {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding-top: 9px;
}

.stage-one-feedback > summary {
  color: var(--ink);
  cursor: pointer;

  list-style-position: inside;

}

.stage-one-feedback-label {
  color: var(--ink);

}

.stage-one-feedback-options {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.stage-one-feedback-options button {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;

  padding: 4px 7px;
}

.stage-one-feedback-options button:hover,
.stage-one-feedback-options button:focus-visible {
  background: var(--wash);
  border-color: var(--accent);
  outline: none;
}

.stage-one-feedback-options button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.stage-one-feedback small {
  color: var(--muted);

}

.stage-one-research-action-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  max-width: 68ch;
  min-width: 0;
}
.stage-one-research-action-form label {
  display: grid;
  gap: 6px;
  min-width: 0;

}
.stage-one-research-action-form input,
.stage-one-research-action-form textarea,
.stage-one-research-action-form select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  box-sizing: border-box;

  padding: 10px 12px;
}
.stage-one-research-action-form textarea { resize: vertical; }
.stage-one-research-action-form .stage-one-feedback-options button { min-height: 44px; }
.stage-one-research-action-form .stage-one-research-error { color: var(--danger); }

.shadow-production-disclosure {
  border-color: var(--line-strong);
  margin-top: 9px;
}

.shadow-production-disclosure > summary {
  color: var(--warning);

}

.shadow-production-disclosure > p {
  color: var(--muted);

  margin: 7px 0 0;
}

.market-information-boundary,
.market-feedback-path {
  align-items: start;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: grid;
  gap: 4px 14px;
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1.45fr);
  margin-top: 10px;
  padding: 11px 12px;
}

.market-information-boundary strong,
.market-information-boundary span,
.market-information-boundary small,
.market-feedback-path > div {
  min-width: 0;
}

.market-information-boundary span,
.market-information-boundary small,
.market-feedback-path span {
  color: var(--muted);

}

.market-information-boundary > strong {

  overflow-wrap: break-word;
  text-wrap: pretty;
}

.market-information-boundary > span,
.market-information-boundary > small {
  overflow-wrap: break-word;
}

.market-information-boundary small {
  grid-column: 1 / -1;
}

.market-feedback-path > div {
  display: grid;
  gap: 2px;
}

.lifecycle-stage.is-stub {
  background: var(--panel-soft);
  border-color: var(--line-strong);
}

.lifecycle-output-card.is-stub {
  background: var(--panel-soft);
  border-color: var(--line-strong);
}

.lifecycle-output-card.is-stub > small {
  color: var(--muted);
  display: block;

  margin-top: 7px;
}

.stage-stub-lock {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  display: grid;
  gap: 3px;
  margin-top: 10px;
  padding: 8px 9px;
}

.stage-stub-lock strong {
  color: var(--warning);

}

.stage-stub-lock span,
.stage-stub-lock small {
  color: var(--muted);

}

.information-mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.information-mode-row > span {
  background: var(--accent-soft);
  border: 1px solid rgba(6, 79, 67, 0.18);
  border-radius: 999px;
  color: var(--accent);

  padding: 3px 7px;
}

.human-decision-row > span {
  background: var(--panel-soft);
  border-color: var(--line);
  color: var(--ink);
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 1040px) {
  .role-mode-strip {
    display: flex;
    max-width: calc(100vw - 48px);
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: thin;
  }

  .role-mode-button {
    flex: 0 0 165px;
  }

  .primary-decision-banner {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .primary-decision-meta {
    justify-content: flex-start;
  }

  .market-mode-grid {
    grid-template-columns: 1fr;
  }

  .market-feedback-path,
  .market-information-boundary {
    grid-template-columns: 1fr;
  }

  .market-information-boundary small {
    grid-column: auto;
  }

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

@media (max-width: 620px) {
  .role-mode-strip {
    display: flex;
    margin-top: 7px;
    max-width: calc(100vw - 20px);
  }

  .role-mode-button {
    flex-basis: 150px;
    min-height: 42px;
    padding: 7px 9px;
  }

  .primary-decision-banner {
    gap: 10px;
    margin-bottom: 9px;
    padding: 11px 12px;
  }

  .primary-decision-copy {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .primary-decision-copy .section-label,
  .primary-decision-copy > strong,
  .primary-decision-copy p {
    grid-column: 1;
    grid-row: auto;
  }

  .primary-decision-meta .pill {
    display: none;
  }

  .market-feedback-path,
  .market-information-boundary {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .market-information-boundary small {
    grid-column: auto;
  }

  .signal-quality-grid {
    grid-template-columns: 1fr;
  }
}

/* Truthful Today: one decision, one lifecycle, and partner-owned work. */
.skip-link {
  background: var(--ink);
  border-radius: 0 0 6px 0;
  color: #ffffff;

  left: 0;
  padding: 12px 16px;
  position: fixed;
  top: 0;
  transform: translateY(-120%);
  transition: transform 160ms ease-out;
  z-index: 50;
}

.skip-link:focus {
  outline: 2px solid #ffffff;
  outline-offset: -4px;
  transform: translateY(0);
}

.visually-hidden {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.nav-item,
.role-mode-button,
.ops-drawer summary,
#target-search,
#evidence-query,
#today-company-search,
.today-primary-route {
  min-height: 44px;
}

.nav-item.active::before {
  display: none;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

#page-title:focus-visible {
  box-shadow: inset 0 -3px 0 var(--accent);
  outline: none;
}

body[data-view="brief"] .topbar h2,
body[data-view="brief"] .today-home h3,
body[data-view="brief"] .today-home h4,
body[data-view="brief"] .today-home h5 {

}

body[data-view="brief"] #action-status,
body[data-view="brief"] #primary-decision-banner,
body[data-view="brief"] #metrics {
  display: none;
}

body[data-view="brief"] .ops-drawer {
  display: none;
}

body[data-view="brief"] .topbar {
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
  padding-bottom: 20px;
}

body[data-view="brief"] .topbar h2 {

}

.today-home {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 20px;
  overflow: hidden;
}

.today-home-header {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  padding: 24px 26px 22px;
}

.today-home-heading {
  display: grid;
  gap: 6px;
  max-width: 68ch;
}

.today-home-heading > span {
  color: var(--muted);

}

.today-home-heading h3 {

  margin: 0;
}

.today-home-heading p {
  color: var(--muted);

  margin: 0;
  max-width: 68ch;
}

.today-mode {
  display: grid;
  gap: 11px;
}

.today-mode > strong {
  color: var(--accent);

  text-align: right;
}

.today-mode-facts,
.today-system-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.today-mode-facts > div,
.today-system-facts > div {
  border-top: 1px solid var(--line);
  min-width: 0;
  padding: 9px 10px 0 0;
}

.today-mode-facts > div + div,
.today-system-facts > div + div {
  padding-left: 10px;
}

.today-mode-facts dt,
.today-system-facts dt {
  color: var(--muted);

}

.today-mode-facts dd,
.today-system-facts dd {
  color: var(--ink);

  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.today-primary-action {
  background: #101614;
  color: #ffffff;
  padding: 24px 26px;
}

.today-primary-action.is-no-action {
  background: var(--panel-soft);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.today-primary-action.is-no-action .today-primary-heading h4,
.today-primary-action.is-no-action .today-primary-next strong {
  color: var(--ink);
}

.today-primary-action.is-no-action .today-primary-heading > div:first-child > span,
.today-primary-action.is-no-action .today-primary-next span,
.today-primary-action.is-no-action > p {
  color: var(--muted);
}

.today-primary-action.is-no-action .today-primary-state span:first-child,
.today-primary-action.is-no-action .today-primary-state .is-pending {
  border-color: var(--line-strong);
  color: var(--muted);
}

.today-primary-action.is-no-action .today-primary-next {
  border-top-color: var(--line);
}

.today-primary-heading {
  align-items: start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.today-primary-heading > div:first-child {
  display: grid;
  gap: 5px;
  max-width: 78ch;
}

.today-primary-heading > div:first-child > span,
.today-primary-next span {
  color: var(--line-strong);

}

.today-primary-heading h4 {
  color: #ffffff;

  margin: 0;
  text-wrap: balance;
}

.today-primary-state {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.today-primary-state span,
.today-system-state,
#today-system-state,
.today-work-item-heading > span,
.today-table-state {
  border: 1px solid currentColor;
  border-radius: 4px;
  display: inline-flex;

  padding: 4px 6px;
}

.today-primary-state span:first-child {
  border-color: var(--line-strong);
  color: #ffffff;
}

.today-primary-state .is-ready {
  color: #ffffff;
}

.today-primary-state .is-pending {
  color: #ffffff;
}

.today-primary-state .is-risk {
  color: #ffffff;
}

.today-primary-action > p {
  color: var(--line);

  margin: 13px 0 0;
  max-width: 72ch;
}

.today-completion-proof {
  border-top: 1px solid var(--line-strong);
  margin-top: 14px;
  padding-top: 12px;
}

.today-completion-proof summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  list-style-position: inside;
  min-height: 44px;
}

.today-completion-proof summary span {
  border: 1px solid currentColor;
  border-radius: 4px;
  display: inline-flex;

  margin-left: 5px;
  padding: 4px 6px;
}

.today-completion-proof p {
  color: var(--line);

  margin: 8px 0 0;
  max-width: 72ch;
}

.today-primary-action.is-no-action .today-completion-proof {
  border-top-color: var(--line);
}

.today-primary-action.is-no-action .today-completion-proof p {
  color: var(--muted);
}

.today-primary-next {
  align-items: end;
  border-top: 1px solid var(--line-strong);
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  margin-top: 19px;
  padding-top: 16px;
}

.today-primary-next > div {
  display: grid;
  gap: 4px;
}

.today-primary-next strong {
  color: #ffffff;

}

.today-primary-route {
  align-items: center;
  background: #ffffff;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;

  justify-content: center;
  padding: 10px 14px;
  white-space: nowrap;
  grid-column: 3;
  grid-row: 1 / span 2;
}

.today-primary-route:hover {
  background: #e8f2ee;
}

.today-primary-route[hidden] {
  display: none;
}

.today-stage-rail {
  background: var(--line);
  border-bottom: 1px solid var(--line);
  overflow-x: visible;
}

.today-stage-rail ol {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.today-stage {
  background: var(--panel);
  min-width: 0;
}

.today-stage a {
  align-items: start;
  color: var(--ink);
  display: grid;
  gap: 7px;
  grid-template-columns: 22px minmax(0, 1fr);
  min-height: 70px;
  padding: 11px 10px;
  text-decoration: none;
}

.today-stage a:hover {
  background: var(--panel-soft);
}

.today-stage-number {
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  display: inline-flex;

  height: 22px;
  justify-content: center;
  width: 22px;
}

.today-stage-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.today-stage-copy strong {

}

.today-stage-copy small {
  color: var(--muted);

}

.today-stage.is-ready .today-stage-number {
  background: var(--accent-soft);
  border-color: var(--line-strong);
  color: var(--accent);
}

.today-stage.is-locked {
  background: #fafbfa;
}

.today-stage.is-locked .today-stage-number {
  border-style: dashed;
}

.today-section {
  border-bottom: 1px solid var(--line);
  padding: 23px 26px 25px;
}

.today-section-header {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 15px;
}

.today-section-header h4 {

  margin: 0;
}

.today-section-header p {
  color: var(--muted);

  margin: 4px 0 0;
}

.today-work-queues {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.today-work-queue + .today-work-queue {
  border-left: 1px solid var(--line);
}

.today-work-queue > header {
  align-items: center;
  background: var(--panel-soft);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 44px;
  padding: 9px 12px;
}

.today-work-queue h5 {

  margin: 0;
}

.today-work-queue > header span {
  color: var(--muted);

}

.today-work-queue ul,
.today-change-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.today-work-item {
  display: grid;
  gap: 7px;
  padding: 13px 12px;
}

.today-work-item + .today-work-item {
  border-top: 1px solid var(--line);
}

.today-work-item-heading {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.today-work-item-heading > strong {

}

.today-work-item-heading > span,
.today-table-state,
#today-system-state {
  flex: 0 0 auto;
}

.today-work-item-heading > span.is-ready,
.today-table-state.is-ready,
#today-system-state.is-ready {
  color: var(--ok);
}

.today-work-item-heading > span.is-pending,
.today-table-state.is-pending,
#today-system-state.is-pending {
  color: var(--warning);
}

.today-work-item-heading > span.is-risk,
.today-table-state.is-risk,
#today-system-state.is-risk {
  color: var(--danger);
}

.today-work-item p {
  color: var(--muted);

  margin: 0;
}

.today-work-item > small {
  color: var(--muted);

}

.today-work-item > small b {
  color: var(--ink);
}

.today-work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
}

.today-work-meta span {
  color: var(--muted);

}

.today-empty-row {
  color: var(--muted);

  padding: 14px 12px;
}

.today-pipeline-header {
  align-items: center;
}

.today-search-label {
  align-items: center;
  display: flex;
  gap: 9px;
}

.today-search-label > span {
  color: var(--muted);

}

.today-search-label input {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);

  padding: 9px 11px;
  width: 210px;
}

.today-search-label input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.today-table-wrap {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow-x: auto;
}

.today-company-table {
  border-collapse: collapse;
  min-width: 900px;
  width: 100%;
}

.today-company-table th,
.today-company-table td {
  border-bottom: 1px solid var(--line);

  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
}

.today-company-table thead th {
  background: var(--panel-soft);
  color: var(--muted);

  position: static;
}

.today-company-table tbody th {
  color: var(--ink);

  min-width: 150px;
}

.today-company-table tbody tr:last-child th,
.today-company-table tbody tr:last-child td {
  border-bottom: 0;
}

.today-table-stage {
  color: var(--ink);

}

.today-table-state {
  white-space: nowrap;
}

.today-table-record-posture {
  color: var(--muted);
  display: block;

  margin-top: 5px;
}

.today-company-action {
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.today-company-action.is-canonical-primary {
  display: block;
  overflow: visible;
  -webkit-box-orient: initial;
  -webkit-line-clamp: unset;
}

.today-table-empty {
  color: var(--muted);
  padding: 18px 12px !important;
  text-align: center !important;
}

.today-closing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
}

.today-closing-grid .today-section {
  border-bottom: 0;
}

.today-closing-grid .today-system {
  border-left: 1px solid var(--line);
}

.today-change-list li {
  display: grid;
  gap: 4px;
  padding: 10px 0;
}

.today-change-list li + li {
  border-top: 1px solid var(--line);
}

.today-change-list strong {

}

.today-change-list p,
.today-change-list small {
  color: var(--muted);

  margin: 0;
}

.today-system .today-section-header {
  align-items: start;
}

.today-system-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.today-system-facts > div:nth-child(n + 3) {
  margin-top: 12px;
}

@media (max-width: 1180px) {
  .today-home-header {
    grid-template-columns: 1fr;
  }

  .today-mode > strong {
    text-align: left;
  }

  .today-work-queues {
    grid-template-columns: 1fr;
  }

  .today-work-queue + .today-work-queue {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 800px) {
  .today-home {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .today-home-header,
  .today-primary-action,
  .today-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .today-primary-heading,
  .today-section-header,
  .today-pipeline-header {
    align-items: stretch;
    flex-direction: column;
  }

  .today-primary-state {
    justify-content: flex-start;
  }

  .today-primary-next {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .today-primary-route {
    grid-column: auto;
    grid-row: auto;
  }

  .today-search-label {
    align-items: stretch;
    flex-direction: column;
  }

  .today-search-label input {
    width: 100%;
  }

  .today-closing-grid {
    grid-template-columns: 1fr;
  }

  .today-closing-grid .today-system {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .today-stage-rail {
    overflow-x: visible;
  }

  .today-stage-rail ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .today-table-wrap {
    overflow: visible;
  }

  .today-company-table {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .today-company-table thead {
    display: none;
  }

  .today-company-table tbody {
    display: grid;
    gap: 10px;
  }

  .today-company-table tbody tr {
    border: 1px solid var(--line);
    border-radius: 6px;
    display: grid;
    padding: 12px;
  }

  .today-company-table tbody th,
  .today-company-table tbody td {
    align-items: start;
    border-bottom: 0;
    display: grid;
    gap: 4px;
    grid-template-columns: minmax(82px, 0.34fr) minmax(0, 1fr);
    min-width: 0;
    padding: 6px 0;
    text-align: left;
    white-space: normal;
  }

  .today-company-table tbody th {
    display: block;

    padding-top: 0;
  }

  .today-company-table tbody td::before {
    color: var(--muted);
    content: attr(data-label);

  }

  .today-company-table .today-table-state {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .today-company-table .today-table-empty {
    display: block;
    text-align: left !important;
  }

  .today-company-table .today-table-empty::before {
    content: none;
  }
}

@media (max-width: 520px) {
  .today-mode-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .today-mode-facts > div:nth-child(n + 3) {
    margin-top: 12px;
  }

  .today-primary-heading h4 {

  }
}

@media (max-width: 620px) {
  .app-shell {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .sidebar {
    align-items: start;
    height: auto;
    min-height: 0;
  }

  .sidebar nav {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    height: auto;
    overflow: visible;
    width: 100%;
  }

  .nav-primary {
    display: contents;
  }

  .nav-primary .nav-item,
  .nav-drawer summary {
    min-height: 44px;
    padding: 7px 6px;
    white-space: normal;
    width: 100%;
  }

  .nav-drawer {
    min-width: 0;
    width: 100%;
  }

  .nav-drawer[open] .nav-secondary {
    max-width: calc(100vw - 16px);
    top: calc(100% + 4px);
  }
}

/* Route context: programmatic focus must land below persistent navigation. */
html,
#main-content {
  scroll-padding-top: 24px;
}

#page-title,
#transform-lifecycle-handoff .lifecycle-stage,
#main-content .view.active details > summary,
#main-content .view.active details > :not(summary),
details.nav-drawer > summary,
details.nav-drawer > :not(summary),
details.ops-drawer > summary,
details.ops-drawer > :not(summary) {
  scroll-margin-top: 24px;
}

@media (max-width: 1100px) {
  html,
  #main-content {
    scroll-padding-top: 88px;
  }

  #page-title,
  #transform-lifecycle-handoff .lifecycle-stage,
  #main-content .view.active details > summary,
  #main-content .view.active details > :not(summary) {
    scroll-margin-top: 88px;
  }
}

@media (max-width: 620px) {
  html,
  #main-content {
    scroll-padding-top: 116px;
  }

  #page-title,
  #transform-lifecycle-handoff .lifecycle-stage,
  #main-content .view.active details > summary,
  #main-content .view.active details > :not(summary) {
    scroll-margin-top: 116px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skip-link {
    transition: none;
  }
}

/* Primary routes use their own decision brief; the global four-card strip was
   repeating the same posture and reading like a dashboard template. */
body[data-view="brief"] #metrics,
body[data-view="market"] #metrics,
body[data-view="overview"] #metrics,
body[data-view="ingestion"] #metrics,
body[data-view="transformability"] #metrics {
  display: none;
}

#view-transformability #transform-summary {
  display: block;
}

.lifecycle-handoff-disclosure > .transform-disclosure-summary {
  border-bottom: 1px solid var(--line);
  cursor: default;
}

#transform-lifecycle-handoff {
  padding: 12px 16px 16px;
}

.transform-operating-line {
  align-items: center;
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px 16px;
  grid-template-columns: minmax(150px, 0.65fr) minmax(180px, 0.8fr) minmax(260px, 1.35fr);
  padding: 12px 14px;
}

.transform-operating-line > div {
  display: grid;
  gap: 3px;
}

.transform-operating-line span {
  color: var(--muted);

}

.transform-operating-line strong {
  color: var(--ink);

}

.transform-operating-line p {
  color: var(--ink);

  margin: 0;
}

.transform-operating-line small {
  color: var(--muted);

  grid-column: 1 / -1;

}

.transform-operating-line .transform-summary-actions,
.transform-action-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.transform-action-row {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.transform-action-row small {
  color: var(--muted);
  flex: 1 1 260px;

}

.stage6-decision-boundary {
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.stage6-decision-boundary span {
  color: var(--muted);

}

.stage6-decision-boundary strong {
  color: var(--ink);

}

@media (max-width: 760px) {
  .transform-operating-line {
    grid-template-columns: 1fr;
  }

  .transform-operating-line small {
    grid-column: 1;
  }

  .transform-operating-line .transform-summary-actions,
  .transform-action-row {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* 2026-07-13 company closeout: one decision, one record path, optional depth. */
.target-records-route {
  align-items: center;
  background: #10201c;
  border: 1px solid #10201c;
  border-radius: 8px;
  color: #f8fbf8;
  cursor: pointer;
  display: inline-flex;

  justify-content: center;

  min-height: 44px;
  padding: 9px 12px;
  text-align: center;
}

.target-records-route:hover,
.target-records-route:focus-visible {
  background: #1a342c;
  border-color: #1a342c;
  outline: 3px solid rgba(53, 113, 91, 0.2);
  outline-offset: 2px;
}

.target-keep-status {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;

  justify-content: center;
  min-height: 44px;
  padding: 9px 12px;
}

.target-keep-status:hover,
.target-keep-status:focus-visible {
  background: var(--surface-muted);
  outline: 3px solid rgba(53, 113, 91, 0.16);
  outline-offset: 2px;
}

.target-relationship-summary {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  margin: 0;
}

.target-relationship-summary > div {
  display: grid;
  gap: 3px;
  padding: 9px 0;
}

.target-relationship-summary > div + div {
  border-top: 1px solid var(--line);
}

.target-relationship-summary dt {
  color: var(--muted);

}

.target-relationship-summary dd {
  color: var(--ink);

  margin: 0;
}

.ownership-fact-panel {
  background: #f7faf8;
  border: 1px solid #d5e2dc;
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  padding: 12px 14px;
}

.ownership-fact-panel .ownership-fact-label {
  color: #52665e;

}

.ownership-fact-meta {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  justify-content: space-between;
}

.ownership-fact-meta > span:last-child {
  color: var(--muted);

}

.ownership-fact-panel > strong {
  color: var(--ink);

}

.ownership-party-list {
  display: grid;
  gap: 7px;
}

.ownership-party-record {
  background: #ffffff;
  border: 1px solid var(--line);
  display: grid;
  gap: 5px;
  padding: 8px 10px;
}

.ownership-party-record > strong,
.ownership-party-empty {
  color: var(--ink);

}

.ownership-fact-panel > p {

  margin: 0;
}

.ownership-fact-panel .ownership-sources {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.ownership-evidence-disclosure {
  border-top: 1px solid var(--line);
  margin-top: 2px;
  padding-top: 8px;
}

.ownership-evidence-disclosure summary {
  color: #284d40;
  cursor: pointer;

}

.ai-native-disruption-panel {
  background: var(--surface-muted);
  border-color: var(--line);
}

.ai-native-disruption-panel details {
  border-top: 1px solid var(--line);
  margin-top: 2px;
  padding-top: 8px;
}

.ai-native-disruption-panel summary {
  color: #284d40;
  cursor: pointer;

}

.ai-native-disruption-panel details[open] summary {
  margin-bottom: 10px;
}

.ownership-evidence-disclosure[open] summary {
  margin-bottom: 8px;
}

.ownership-evidence-disclosure .module-columns {
  margin-top: 8px;
}

.ownership-transaction-record,
.ownership-conflict-boundary,
.ownership-context-sources {
  border: 1px solid var(--line);
  display: grid;
  gap: 4px;
  margin-top: 7px;
  padding: 9px 10px;
}

.ownership-transaction-record {
  background: #ffffff;
}

.ownership-transaction-record > strong,
.ownership-conflict-boundary > strong,
.ownership-context-sources > strong {
  color: var(--ink);

}

.ownership-transaction-record > span,
.ownership-conflict-boundary > span,
.ownership-context-sources > span {
  color: var(--muted);

}

.ownership-conflict-boundary {
  background: #fff7ed;
  border-color: #e8cda6;
}

.ownership-context-sources {
  background: #f5f7f6;
}

.ownership-former-parties {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
  margin-top: 9px;
  padding-top: 8px;
}

.ownership-former-parties > strong {
  color: var(--ink);

}

.ownership-former-parties > span {
  color: var(--muted);

}

@media (max-width: 760px) {
  body[data-view="overview"] .target-focus-queue .target-row-main .ownership-inline {
    grid-column: 1 / -1;
  }

  .ownership-fact-panel .ownership-sources a {
    align-items: center;
    display: inline-flex;
    min-height: 44px;
  }
}

.target-closeout {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  display: grid;
  gap: 0;
  overflow: hidden;
}

.target-closeout-head {
  align-items: start;
  background: #f7faf8;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px 16px;
}

.target-closeout-head > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.target-closeout-head span:not(.pill),
.target-closeout-grid > div > span {
  color: #5f716a;

}

.target-closeout-head h4 {
  color: var(--ink);

  margin: 0;
}

.target-closeout-grid {
  display: grid;
}

.target-closeout-grid > div {
  display: grid;
  gap: 5px;
  padding: 11px 16px;
}

.target-closeout-grid > div + div {
  border-top: 1px solid var(--line);
}

.target-closeout-grid > div.primary {
  background: #fbfdfb;
  padding-left: 16px;
}

.target-closeout-grid p {
  color: var(--ink);

  margin: 0;
}

.target-closeout-action {
  align-items: center;
  background: #f7faf8;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: max-content max-content minmax(0, 1fr);
  padding: 12px 16px;
}

.target-closeout-action small {
  color: var(--muted);

}

@media (min-width: 761px) {
  .target-modal-card {
    width: min(1160px, 100%);
  }

  .target-detail-sheet {
    grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
  }

  .target-detail-workspace .target-detail-stack {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
    min-height: 0;
    position: static;
  }

  .target-detail-workspace .target-detail-stack > .target-detail-disclosure {
    border: 1px solid var(--line);
    border-radius: 8px;
    display: block;
    overflow: hidden;
  }

  .target-detail-workspace .target-detail-stack > .target-detail-disclosure > summary {
    align-items: center;
    background: #ffffff;
    border: 0;
    border-radius: 0;
    display: flex;
    gap: 10px;
    min-height: 46px;
    padding: 10px 12px;
  }

  .target-detail-workspace .target-detail-stack > .target-detail-disclosure[open] > summary {
    background: #f7faf8;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
  }

  .target-detail-workspace .target-detail-stack > .target-detail-disclosure > summary > span:first-child {
    align-self: auto;

  }

  .target-detail-workspace .target-detail-stack > .target-detail-disclosure > summary > span:last-child:not(:first-child),
  .target-detail-workspace .target-detail-stack > .target-detail-disclosure[open] > summary > span:last-child:not(:first-child) {
    color: var(--muted);

    grid-column: auto;
    margin-left: auto;
  }

  .target-detail-workspace .target-detail-stack > .target-detail-disclosure > summary::after {
    align-self: auto;
    content: "Open";

    grid-column: auto;
    grid-row: auto;
    padding: 0;
  }

  .target-detail-workspace .target-detail-stack > .target-detail-disclosure[open] > summary::after {
    color: var(--accent);
    content: "Close";
  }

  .target-detail-workspace .target-detail-stack > .target-detail-disclosure > .target-detail-disclosure-body {
    background: #ffffff;
    border: 0;
    border-radius: 0;
    bottom: auto;
    display: none;
    left: auto;
    max-height: none;
    overflow: visible;
    padding: 12px;
    position: static;
    right: auto;
    top: auto;
  }

  .target-detail-workspace .target-detail-stack > .target-detail-disclosure[open] > .target-detail-disclosure-body {
    display: grid;
  }
}

@media (max-width: 620px) {
  .target-closeout-head {
    padding: 11px 12px;
  }

  .target-closeout-head h4 {

  }

  .target-closeout-grid > div {
    padding: 9px 12px;
  }

  .target-closeout-grid > div.primary {
    padding-left: 12px;
  }

  .target-closeout-action {
    grid-template-columns: 1fr;
    padding: 10px 12px;
  }
}

@media (max-width: 760px) {
  body[data-view="overview"] .target-focus-queue .target-row-main .queue-eyebrow {
    display: block;

    grid-column: 1 / -1;

    white-space: normal;
  }
}

/* Companies: a selected file is one decision sheet; evidence machinery stays
   available on demand instead of occupying the default reading plane. */
.target-modal-card {
  width: min(920px, 100%);
}

.target-decision-sheet {
  display: block;
  height: 100%;
  overflow: auto;
}

.target-decision-sheet .target-detail-workspace {
  gap: 14px;
  margin: 0 auto;
  max-width: 840px;
  overflow: visible;
  padding: 22px 24px 28px;
}

.target-company-orientation {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0 0 20px;
}

.target-company-answer {
  display: grid;
  gap: 6px;
}

.target-company-answer > span,
.target-company-boundaries span {
  color: var(--muted);

}

.target-company-answer > strong {
  color: var(--ink);

}

.target-company-answer p,
.target-company-boundary {
  color: var(--muted);

  margin: 0;
  max-width: 70ch;
}

.target-company-boundaries {
  display: grid;
  gap: 0 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.target-company-boundaries > div {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 5px;
  padding: 12px 0 0;
}

.target-company-boundaries strong {
  color: var(--ink);

}

.target-decision-sheet .target-operating-proof {
  margin: 0;
}

.target-decision-sheet .target-closeout > * {
  min-width: 0;
}

.target-decision-sheet .target-closeout-action {
  display: flex;
  flex-wrap: wrap;
}

.target-decision-sheet .target-closeout-action small {
  flex: 1 1 320px;
  min-width: 0;
}

@media (max-width: 620px) {
  .target-decision-sheet .target-detail-workspace {
    padding: 16px 14px 22px;
  }

  .target-company-answer > strong {

  }

  .target-company-boundaries {
    grid-template-columns: minmax(0, 1fr);
  }

  .target-company-boundaries > div + div {
    margin-top: 12px;
  }
}

/* Company board: keep the primary filter simple and place scoring mechanics in
   an explicitly optional control. */
body[data-view="overview"] .target-tools {
  grid-template-columns: minmax(210px, 1fr) minmax(180px, 230px) minmax(190px, 250px);
}

.advanced-company-filters {
  align-self: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
}

.advanced-company-filters > summary {
  align-items: center;
  color: var(--ink);
  cursor: pointer;
  display: flex;

  min-height: 34px;
  padding: 0 10px;
}

.advanced-company-filters > div {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 7px;
  padding: 8px;
}

@media (max-width: 760px) {
  body[data-view="overview"] .target-tools {
    grid-template-columns: 1fr;
  }

  .advanced-company-filters {
    grid-column: 1;
    width: 100%;
  }
}

/* Transformation summary: one operating line replaces the repeated four-card strip. */
@media (min-width: 761px) {
  #view-transformability .packet-intro-row {
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
  }

  #view-transformability .packet-intro-row .brief-headline {
    min-width: 0;
  }

  #view-transformability #transform-summary {
    color: var(--ink);
    display: block;
    grid-column: 1 / -1;
    margin: 0;
    min-width: 0;
    width: 100%;
  }

  #view-transformability #transform-summary .firm-stat {
    background: #fbfcfa;
    border: 1px solid var(--line);
    min-height: 88px;
    min-width: 0;
    padding: 12px;
  }

  #view-transformability #transform-summary .firm-stat span {
    color: #68766f;

    margin-bottom: 7px;

  }

  #view-transformability #transform-summary .firm-stat strong {
    color: var(--ink);
    display: block;

    overflow-wrap: anywhere;
  }
}

/* Bounded route hydration: the active view stays visibly non-actionable until
   its one route contract has completed. */
.view.is-loading,
.view.is-load-failed {
  min-height: 280px;
  pointer-events: none;
  position: relative;
}

.view.is-loading::after,
.view.is-load-failed::after {
  align-items: center;
  background: rgba(245, 247, 246, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  content: "Loading current records…";
  display: flex;

  inset: 0;
  justify-content: center;
  min-height: 220px;
  position: absolute;
  z-index: 20;
}

.view.is-load-failed::after {
  background: var(--panel);
  border-color: var(--warning);
  color: var(--warning);
  content: "Current records did not load. Choose this view again to retry, or choose another view.";
  padding: 24px;
  text-align: center;
}

#operation-mode-note {
  color: #45514d;

}

details:not([open]) > :not(summary) {
  display: none !important;
}

#view-market button,
#view-market a[href],
#view-market summary,
#view-market [role="button"],
#view-overview button,
#view-overview input,
#view-overview select,
#view-overview summary,
#view-overview a[href],
#view-overview [role="button"] {
  min-height: 44px;
}

#view-market a[href] {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-width: 44px;
}

#view-overview a[href] {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-width: 44px;
}

#view-market details > summary {
  min-height: 44px !important;
}

#view-transformability button,
#view-transformability a[href],
#view-transformability summary {
  min-height: 44px;
}

.thesis-partner-question {
  color: var(--ink);

  margin: 0;
}

.thesis-why-now,
.thesis-source-boundary {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 10px;
}

.thesis-why-now > span,
.thesis-source-boundary > span {
  color: var(--muted);

}

.thesis-why-now p,
.thesis-source-boundary p,
.thesis-source-boundary small {
  margin: 0;
  overflow-wrap: anywhere;
}

.thesis-source-boundary small {
  color: var(--muted);

}

@media (max-width: 760px) {
  #view-overview .module-columns.two-col.stage-handoff-gates-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

#view-evals details > summary {
  min-height: 44px;
}

.skip-link,
.primary-decision-banner button {
  min-height: 44px;
}

/* Records Needed is an action workflow; the long checklist is reference only. */
.record-request-workflow {
  min-width: 0;
}

.record-request-form {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.18fr);
  overflow: hidden;
}

.record-request-picker,
.record-request-editor {
  display: grid;
  min-width: 0;
}

.record-request-picker {
  align-content: start;
  background: #f8faf8;
  border-right: 1px solid var(--line);
}

.record-request-editor {
  align-content: start;
  gap: 12px;
  padding-bottom: 14px;
}

.record-request-step-head {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 9px;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  padding: 12px 14px;
}

.record-request-step-head > span:first-child {
  align-items: center;
  background: #10201c;
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;

  height: 24px;
  justify-content: center;
  width: 24px;
}

.record-request-step-head > div {
  display: grid;
  gap: 3px;
}

.record-request-step-head > div > strong {
  color: var(--ink);

}

.record-request-step-head > div > small {
  color: var(--muted);

}

.record-request-options {
  display: grid;
}

.record-request-primary-option {
  border-bottom: 1px solid var(--line);
  display: grid;
}

.record-request-primary-option > span,
.record-request-alternatives > summary span {
  color: var(--muted);

}

.record-request-primary-option > span {
  padding: 10px 12px 0;
}

.record-request-primary-option .record-request-option {
  border-bottom: 0;
  min-height: 64px;
}

.record-request-alternatives {
  border-bottom: 1px solid var(--line);
}

.record-request-alternatives > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 12px;
}

.record-request-alternatives > summary strong {
  align-items: center;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;

  justify-content: center;
  min-height: 24px;
  min-width: 24px;
}

.record-request-alternatives[open] > summary {
  border-bottom: 1px solid var(--line);
}

.record-request-proof-gap {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  display: grid;

  gap: 4px;

  margin: 0;
  padding: 10px 14px;
}

.record-request-proof-gap strong,
.record-request-option > span small.record-request-kind {
  color: var(--ink);

}

.record-request-option {
  align-items: center;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  display: grid;
  gap: 9px;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  min-height: 58px;
  padding: 9px 12px;
}

.record-request-option:last-child {
  border-bottom: 0;
}

.record-request-option:hover {
  background: #ffffff;
}

.record-request-option.selected {
  background: #eef5f1;
  box-shadow: inset 3px 0 0 var(--accent);
}

.record-request-option input {
  accent-color: var(--accent);
  height: 18px;
  margin: 0;
  width: 18px;
}

.record-request-option > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.record-request-option > span strong {
  color: var(--ink);

}

.record-request-option > span small {
  color: var(--muted);
  display: -webkit-box;

  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.record-request-option > span small.record-request-kind {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.record-request-option em {

  white-space: nowrap;
}

.record-request-field-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 14px;
}

.record-request-field-grid label,
.record-request-wide-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.record-request-field-grid label > span,
.record-request-wide-field > span {
  color: #4f5f59;

}

.record-request-field-grid label > span small {
  color: var(--muted);

}

.record-request-field-grid input,
.record-request-field-grid select,
.record-request-wide-field textarea {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-sizing: border-box;
  color: var(--ink);

  min-height: 44px;
  padding: 9px 10px;
  width: 100%;
}

.record-request-wide-field {
  padding: 0 14px;
}

.record-request-wide-field textarea {
  min-height: 72px;
  resize: vertical;
}

.record-request-actions {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px 0;
}

.record-request-action {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--ink);
  cursor: pointer;

  min-height: 44px;
  padding: 9px 12px;
}

.record-request-action.primary {
  background: #10201c;
  border-color: #10201c;
  color: #ffffff;
}

.record-request-action.quiet {
  color: var(--muted);
}

.record-request-actions > small {
  color: var(--muted);
  flex: 1 1 240px;

}

.records-action-empty {
  background: #f8faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 14px;
}

.records-action-empty p {
  color: var(--muted);

  margin: 0;
}

/* The direct route is intentionally blank: a proof request must inherit an exact company and gap. */
.records-no-scope-empty {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  max-width: 64ch;
  padding: 22px 28px 28px;
}

.records-no-scope-empty p,
.records-no-scope-empty small {
  color: var(--muted);

  margin: 0;
}

.records-no-scope-empty small {

}

.records-no-scope-route {
  align-items: center;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: #ffffff;
  cursor: pointer;

  justify-self: start;
  min-height: 44px;
  padding: 9px 13px;
}

.records-no-scope-route:hover,
.records-no-scope-route:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
}

@media (max-width: 620px) {
  .records-no-scope-empty {
    padding: 18px 16px 22px;
  }

  .records-no-scope-route {
    justify-self: stretch;
    width: 100%;
  }
}

.record-reference-list {
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.record-reference-row + .record-reference-row {
  border-top: 1px solid var(--line);
}

.record-reference-row > summary {
  align-items: center;
  background: #ffffff;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  list-style: none;
  min-height: 44px;
  padding: 8px 10px;
}

.record-reference-row > summary::-webkit-details-marker {
  display: none;
}

.record-reference-row > summary > span {
  color: var(--muted);

  text-align: center;
}

.record-reference-row > summary > strong {
  color: var(--ink);

}

.record-reference-row > summary > em {

}

.record-reference-row > div {
  background: #fbfcfa;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  padding: 10px 44px;
}

.record-reference-row p,
.record-reference-row small {
  color: var(--muted);

  margin: 0;
}

@media (max-width: 980px) {
  .record-request-form {
    grid-template-columns: 1fr;
  }

  .record-request-picker {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .record-request-field-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .record-request-step-head {
    grid-template-columns: 24px minmax(0, 1fr);
    padding: 10px 11px;
  }

  .record-request-step-head > .pill {
    grid-column: 2;
    justify-self: start;
  }

  .record-request-option {
    grid-template-columns: 18px minmax(0, 1fr);
    padding: 8px 10px;
  }

  .record-request-option em {
    grid-column: 2;
    justify-self: start;
  }

  .record-request-field-grid {
    grid-template-columns: 1fr;
    padding: 0 11px;
  }

  .record-request-wide-field {
    padding: 0 11px;
  }

  .record-request-actions {
    padding: 10px 11px 0;
  }

  .record-request-action {
    flex: 1 1 calc(50% - 8px);
  }

  .record-reference-row > div {
    padding: 9px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  .skip-link,
  .target-row {
    transition: none !important;
  }

  body[data-view="adapters"] .source-loading-line::after {
    animation: none !important;
    transform: none;
  }
}

/* The platform is operated on touch laptops and phones as well as with a
   mouse. Preserve compact visual density while giving every internal control
   a WCAG-sized activation box. */
.app-shell :is(button, input, select, summary, a[href], [role="button"]),
.login-shell :is(button, input, a[href]) {
  min-block-size: 44px;
}

.app-shell a[href] {
  align-items: center;
  display: inline-flex;
}

/* 2026-08-09 operating-proof release: one literal evidence sequence, with
   empty ledgers and unavailable freshness rendered as first-class state. */
.primary-decision-freshness {
  color: var(--muted);

  grid-column: 2;

  margin: 1px 0 0;
}

.primary-decision-freshness.is-warning {
  color: var(--warning-text, #7a4c00);

}

.operating-proof-cockpit {
  background: color-mix(in srgb, var(--panel) 96%, var(--accent) 4%);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: none;
}

.operating-proof-header {
  align-items: start;
}

.operating-proof-header h4,
.target-operating-proof-head h4 {
  margin: 2px 0 0;
}

.operating-proof-header p {
  margin: 5px 0 0;
  max-width: 88ch;
}

.operating-proof-summary {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.operating-proof-summary > article {
  align-content: start;
  background: var(--panel);
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 13px 14px;
}

.operating-proof-summary > article + article {
  border-left: 1px solid var(--line);
}

.operating-proof-summary span {
  color: var(--muted);

}

.operating-proof-summary small {
  color: var(--muted);

}

.operating-proof-summary strong {
  color: var(--ink);

}

.operating-proof-warning {
  color: var(--warning-text, #7a4c00) !important;

}

.operating-proof-steps {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.operating-proof-step {
  align-items: start;
  border-top: 2px solid var(--line);
  display: grid;
  gap: 4px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-width: 0;
  padding: 11px 10px 0 0;
}

.operating-proof-step.good {
  border-top-color: var(--ok);
}

.operating-proof-step.warn {
  border-top-color: var(--warning, #ad7417);
}

.operating-proof-step-marker {
  background: var(--panel);
  border: 2px solid var(--line-strong, var(--line));
  border-radius: 50%;
  height: 10px;
  margin-top: 3px;
  width: 10px;
}

.operating-proof-step.good .operating-proof-step-marker {
  background: var(--ok);
  border-color: var(--ok);
}

.operating-proof-step.warn .operating-proof-step-marker {
  border-color: var(--warning, #ad7417);
}

.operating-proof-step div {
  display: grid;
  gap: 2px;
}

.operating-proof-step strong {
  color: var(--ink);

}

.operating-proof-step small {
  color: var(--muted);

}

.operating-proof-step > span:last-child {
  color: var(--muted);

}

.operating-proof-detail {
  border-top: 1px solid var(--line);
  margin-top: 14px;
}

.operating-proof-detail > summary {
  align-items: center;
  color: var(--ink);
  display: flex;

  justify-content: space-between;
  padding: 11px 0 0;
}

.operating-proof-detail > summary strong {
  color: var(--muted);

}

.operating-proof-detail-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 12px;
}

.operating-proof-detail-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  display: grid;
  gap: 6px;
  padding: 13px 14px;
}

.operating-proof-detail-grid h5,
.operating-proof-detail-grid p,
.operating-proof-detail-grid small {
  margin: 0;
}

.operating-proof-detail-grid p,
.operating-proof-detail-grid small {
  color: var(--muted);

}

.target-operating-proof {
  margin-bottom: 14px;
  padding: 14px;
}

.target-operating-proof-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.operating-proof-control-panel {
  margin-top: 12px;
}

.operating-proof-control-summary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.operating-proof-control-row {
  border: 1px solid var(--line);
  border-radius: 5px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.operating-proof-control-row.has-record {
  border-color: var(--ok);
}

.operating-proof-control-row > div {
  align-items: baseline;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.operating-proof-control-row span {
  color: var(--muted);

  margin: 0;
}

.operating-proof-control-row p {
  color: var(--muted);

  margin: 0;
}

.decision-ledger-boundary {
  color: var(--muted);

  margin: 12px 0 0;
}

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

.decision-ledger-grid > section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  min-width: 0;
  padding: 12px;
}

.decision-ledger-grid h5 {
  align-items: baseline;
  color: var(--ink);
  display: flex;

  gap: 8px;
  justify-content: space-between;
  margin: 0 0 10px;
}

.decision-ledger-grid h5 span {
  color: var(--muted);

  white-space: nowrap;
}

.decision-ledger-list {
  display: grid;
  gap: 8px;
}

.decision-ledger-row {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 5px;
  padding-top: 8px;
}

.decision-ledger-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.decision-ledger-row > div {
  align-items: baseline;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.decision-ledger-row p,
.decision-ledger-row small,
.decision-ledger-empty {
  color: var(--muted);

  margin: 0;
  overflow-wrap: anywhere;
}

.operating-proof-control-row strong {
  color: var(--ink);

}

@media (max-width: 980px) {
  .operating-proof-summary,
  .operating-proof-control-summary,
  .decision-ledger-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operating-proof-summary > article:nth-child(odd) {
    border-left: 0;
  }

  .operating-proof-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .primary-decision-freshness {
    grid-column: 1 / -1;
  }

  .operating-proof-summary,
  .operating-proof-detail-grid,
  .operating-proof-control-summary,
  .decision-ledger-grid {
    grid-template-columns: 1fr;
  }

  .operating-proof-summary > article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* 2026-08-16 Today decision canvas: one question, one boundary, one next move. */
body[data-view="brief"] .app-shell {
  display: block;
  min-height: 100vh;
}

body[data-view="brief"] .sidebar {
  align-items: center;
  background: #fbfaf7;
  border-bottom: 1px solid #d9ddd9;
  color: #111815;
  display: flex;
  flex-direction: row;
  height: 74px;
  justify-content: space-between;
  padding: 0 30px;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 40;
}

body[data-view="brief"] .brand {
  align-items: center;
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
}

body[data-view="brief"] .brand-mark,
body[data-view="brief"] .brand p,
body[data-view="brief"] .nav-section-label,
body[data-view="brief"] .nav-primary,
body[data-view="brief"] .nav-drawer,
body[data-view="brief"] .sidebar-footer {
  display: none;
}

body[data-view="brief"] .brand h1 {
  color: #0c493e;
  display: block;

}

body[data-view="brief"] .sidebar nav {
  display: block;
  height: auto;
  overflow: visible;
  width: auto;
}

body[data-view="brief"] .mobile-nav-drawer {
  display: block;
  position: relative;
}

body[data-view="brief"] .mobile-nav-drawer > summary {
  align-items: center;
  background: transparent;
  border: 1px solid #cdd3ce;
  border-radius: 6px;
  color: #111815;
  cursor: pointer;
  display: grid;
  gap: 1px;
  list-style: none;
  min-height: 44px;
  min-width: 118px;
  padding: 7px 11px;
}

body[data-view="brief"] .mobile-nav-drawer > summary::-webkit-details-marker {
  display: none;
}

body[data-view="brief"] .mobile-nav-drawer > summary span {

}

body[data-view="brief"] .mobile-nav-drawer > summary small {
  color: #66706c;

}

body[data-view="brief"] .mobile-nav-list {
  background: #ffffff;
  border: 1px solid #cdd3ce;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(17, 24, 21, 0.14);
  display: grid;
  max-height: min(70vh, 540px);
  min-width: min(88vw, 330px);
  overflow-y: auto;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
}

body[data-view="brief"] .mobile-nav-list .nav-item {
  background: transparent;
  border: 0;
  border-radius: 5px;
  color: #4f5a55;
  min-height: 44px;
  padding: 10px;
  text-align: left;
}

body[data-view="brief"] .mobile-nav-list .nav-item:hover,
body[data-view="brief"] .mobile-nav-list .nav-item.active {
  background: #edf2ee;
  color: #0d1412;
}

body[data-view="brief"] main {
  background: #fbfaf7;
  min-height: calc(100vh - 74px);
  padding: 48px 58px 76px;
}

body[data-view="brief"] .topbar,
body[data-view="brief"] #action-status,
body[data-view="brief"] #primary-decision-banner,
body[data-view="brief"] #metrics {
  display: none;
}

body[data-view="brief"] .today-home {
  background: transparent;
  border: 0;
  border-radius: 0;
  margin: 0 auto;
  max-width: 1380px;
  overflow: visible;
}

.today-canvas-header {
  max-width: 1050px;
}

.today-canvas-meta {
  align-items: center;
  color: #66706c;
  display: flex;

  gap: 12px;
  justify-content: space-between;

}

.today-canvas-meta span + span {

}

body[data-view="brief"] .today-canvas-header h3 {
  color: #101512;

  margin: 26px 0 26px;
  max-width: 21ch;
  text-wrap: balance;
}

.today-case-boundary {
  align-items: center;
  display: flex;
  flex-wrap: wrap;

  gap: 8px 0;

}

.today-case-boundary strong {
  color: #101512;

}

.today-case-boundary span {
  color: #66706c;
}

.today-case-boundary span::before {
  color: #a8afaa;
  content: "·";
  margin: 0 9px;
}

#today-mode-summary {
  color: #66706c;

  margin: 5px 0 0;
  max-width: 76ch;
}

body[data-view="brief"] .today-workbench {
  align-items: start;
  display: grid;
  gap: 46px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 310px);
  margin-top: 38px;
}

body[data-view="brief"] .today-focus-column {
  display: grid;
  gap: 18px;
  min-width: 0;
}

body[data-view="brief"] .today-primary-action,
body[data-view="brief"] .today-primary-action.is-no-action {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #101512;
  padding: 0;
}

body[data-view="brief"] .today-primary-heading {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  min-height: 22px;
}

body[data-view="brief"] .today-primary-state {
  align-items: center;
  color: #66706c;
  display: flex;
  flex-wrap: wrap;

  gap: 0;

}

body[data-view="brief"] .today-primary-state span {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: inherit;
  padding: 0;
}

body[data-view="brief"] .today-primary-state span + span::before {
  color: #a8afaa;
  content: "·";
  margin: 0 8px;
}

body[data-view="brief"] .today-question-sequence {
  border-top: 1px solid #cbd1cc;
  display: block;
  margin-top: 10px;
}

body[data-view="brief"] .today-question-sequence > section {
  align-items: start;
  border-bottom: 1px solid #d9ddd9;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(160px, 0.38fr) minmax(0, 1fr);
  padding: 25px 4px;
}

.today-sequence-label {
  align-items: baseline;
  display: grid;
  gap: 16px;
  grid-template-columns: 24px minmax(0, 1fr);
}

.today-sequence-label > span {
  color: #88918c;

  font-variant-numeric: tabular-nums;

}

body[data-view="brief"] .today-sequence-label h5 {
  color: #101512;

  margin: 0;
}

.today-sequence-copy {
  display: grid;
  gap: 7px;
  max-width: 72ch;
  min-width: 0;
}

.today-sequence-copy > strong {
  color: #1c231f;

}

.today-sequence-copy > p {
  color: #7d6230;

  margin: 0;
}

.today-next-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 7px 0 0;
}

.today-next-facts > div {
  display: flex;
  gap: 6px;
}

.today-next-facts dt {
  color: #66706c;

}

.today-next-facts dd {
  color: #101512;

  margin: 0;
}

body[data-view="brief"] .today-primary-next,
body[data-view="brief"] .today-primary-action.is-no-action .today-primary-next {
  align-items: center;
  border: 0;
  display: grid;
  gap: 12px 22px;
  grid-template-columns: auto auto minmax(240px, 1fr);
  margin: 24px 0 0;
  padding: 0;
}

body[data-view="brief"] .today-primary-route {
  align-items: center;
  background: #0d5144;
  border: 1px solid #0d5144;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;

  grid-column: auto;
  grid-row: auto;
  justify-content: center;
  min-height: 48px;
  min-width: 178px;
  padding: 10px 15px;
}

body[data-view="brief"] .today-primary-route:hover,
body[data-view="brief"] .today-primary-route:focus-visible {
  background: #103f36;
  border-color: #103f36;
}

.today-source-link {
  color: #0d5144;

  padding: 12px 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

body[data-view="brief"] .today-stop-condition {
  border: 0;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 0 0 0 5px;
}

body[data-view="brief"] .today-stop-condition span {
  color: #66706c;

}

body[data-view="brief"] .today-stop-condition strong,
body[data-view="brief"] .today-primary-action.is-no-action .today-primary-next strong {
  color: #4f5a55;

}

body[data-view="brief"] .today-attention-rail {
  border-left: 1px solid #d9ddd9;
  min-width: 0;
  padding-left: 28px;
  position: sticky;
  top: 112px;
}

.today-source-header {
  align-items: start;
  border-bottom: 1px solid #d9ddd9;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 0 0 18px;
}

.today-source-header h4 {
  color: #101512;

  margin: 0;
}

.today-source-header p {
  color: #66706c;

  margin: 5px 0 0;
  max-width: 28ch;
}

#today-intelligence-status {
  color: #66706c;

}

body[data-view="brief"] .today-intelligence-loop {
  padding-top: 8px;
}

body[data-view="brief"] #today-intelligence-summary {
  color: #66706c;

  margin: 8px 0 12px;
}

body[data-view="brief"] .today-intelligence-facts {
  border: 0;
  border-radius: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  overflow: visible;
}

body[data-view="brief"] .today-intelligence-facts > div,
body[data-view="brief"] .today-intelligence-facts > div + div {
  border-left: 0;
  border-top: 1px solid #e0e3e0;
  padding: 12px 0;
}

body[data-view="brief"] .today-intelligence-facts dt {
  color: #66706c;

}

body[data-view="brief"] .today-intelligence-facts dd {
  color: #1c231f;

  margin: 4px 0 0;
}

/* Decision Thread: one answer artifact, evidence only when invoked. */
body[data-view="brief"] .today-canvas-header {
  max-width: 900px;
}

body[data-view="brief"] .today-canvas-header h3 {

  margin: 22px 0 20px;
  max-width: 23ch;
}

body[data-view="brief"] .today-workbench {
  display: block;
  margin-top: 30px;
  max-width: 940px;
}

body[data-view="brief"] .today-primary-action,
body[data-view="brief"] .today-primary-action.is-no-action {
  background: #ffffff;
  border: 1px solid #cfd5d0;
  border-radius: 14px;
  overflow: hidden;
}

body[data-view="brief"] .today-primary-heading {
  border-bottom: 1px solid #e0e4e0;
  justify-content: flex-start;
  min-height: 46px;
  padding: 0 26px;
}

body[data-view="brief"] .today-thread-answer {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.58fr) minmax(250px, 0.82fr);
  padding: 30px 26px 28px;
}

body[data-view="brief"] .today-current-answer {
  min-width: 0;
}

body[data-view="brief"] .today-current-answer > strong {
  color: #101512;
  display: block;

  max-width: 27ch;
}

body[data-view="brief"] .today-current-answer > p {
  color: #58635d;

  margin: 12px 0 0;
  max-width: 62ch;
}

body[data-view="brief"] .today-decision-needed {
  align-self: start;
  background: #f5f1e7;
  border-radius: 10px;
  display: grid;
  gap: 8px;
  padding: 18px;
}

body[data-view="brief"] .today-decision-needed h5,
body[data-view="brief"] .today-next-copy h5 {
  color: #6e5728;

  margin: 0;

}

body[data-view="brief"] .today-decision-needed > strong {
  color: #30291c;

}

body[data-view="brief"] .today-primary-next,
body[data-view="brief"] .today-primary-action.is-no-action .today-primary-next {
  align-items: center;
  background: #f7f8f6;
  border-top: 1px solid #e0e4e0;
  display: grid;
  gap: 16px 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0;
  padding: 20px 26px 18px;
}

body[data-view="brief"] .today-next-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

body[data-view="brief"] .today-next-copy > strong {
  color: #19201c;

  max-width: 60ch;
}

body[data-view="brief"] .today-next-copy h5 {
  color: #0d5144;
}

body[data-view="brief"] .today-next-facts {
  margin-top: 1px;
}

body[data-view="brief"] .today-stop-condition {
  border: 0;
  grid-column: 1 / -1;
  padding: 0;
}

body[data-view="brief"] .today-stop-condition strong,
body[data-view="brief"] .today-primary-action.is-no-action .today-primary-next strong {
  color: #68726d;

}

body[data-view="brief"] .today-attention-rail {
  border: 0;
  border-top: 1px solid #e0e4e0;
  padding: 0;
  position: static;
}

body[data-view="brief"] .today-attention-rail > summary {
  align-items: center;
  color: #0d5144;
  cursor: pointer;
  display: flex;

  justify-content: space-between;
  list-style: none;
  min-height: 48px;
  padding: 0 26px;
}

body[data-view="brief"] .today-attention-rail > summary::-webkit-details-marker {
  display: none;
}

body[data-view="brief"] .today-attention-rail > summary::after {
  content: "+";

  margin-left: 12px;
}

body[data-view="brief"] .today-attention-rail[open] > summary::after {
  content: "−";
}

body[data-view="brief"] .today-attention-rail > summary strong {
  color: #68726d;

  margin-left: auto;
}

body[data-view="brief"] .today-source-body {
  border-top: 1px solid #e0e4e0;
  padding: 22px 26px 24px;
}

body[data-view="brief"] .today-source-header {
  border: 0;
  padding: 0;
}

body[data-view="brief"] .today-intelligence-facts {
  gap: 0 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-view="brief"] .today-intelligence-facts > div,
body[data-view="brief"] .today-intelligence-facts > div + div {
  border-left: 0;
  border-top: 1px solid #e0e3e0;
  padding: 12px 0;
}

body[data-view="brief"] .today-work {
  background: #ffffff;
  border: 1px solid #d9ddd9;
  border-radius: 8px;
  padding: 0;
}

body[data-view="brief"] .today-work > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  min-height: 54px;
  padding: 10px 14px;
}

body[data-view="brief"] .today-work > summary span {
  color: #101512;

}

body[data-view="brief"] .today-work > summary small {
  color: #66706c;

}

body[data-view="brief"] .today-work-queues {
  border-top: 1px solid #d9ddd9;
  padding: 0 14px 10px;
}

body[data-view="brief"] .today-work-queue + .today-work-queue {
  border-top: 1px solid #e0e3e0;
}

body[data-view="brief"] .today-support {
  margin-top: 58px;
}

body[data-view="brief"] .today-support-header {
  align-items: end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 10px;
}

body[data-view="brief"] .today-support-header h4 {
  color: #101512;

  margin: 0;
}

body[data-view="brief"] .today-support-header p {
  color: #66706c;

  margin: 4px 0 0;
}

body[data-view="brief"] .today-disclosure-list {
  border-top: 1px solid #cbd1cc;
}

body[data-view="brief"] .today-context-disclosure {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #d9ddd9;
  border-radius: 0;
  margin: 0;
}

body[data-view="brief"] .today-context-disclosure > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 64px;
  padding: 12px 2px;
}

body[data-view="brief"] .today-context-disclosure > summary:hover {
  background: rgba(255, 255, 255, 0.58);
}

body[data-view="brief"] .today-context-disclosure[open] > summary {
  border-bottom: 1px solid #d9ddd9;
}

body[data-view="brief"] .today-disclosure-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

body[data-view="brief"] .today-disclosure-copy strong {
  color: #101512;

}

body[data-view="brief"] .today-disclosure-copy small {
  color: #66706c;

  max-width: 84ch;
  overflow-wrap: anywhere;
}

body[data-view="brief"] .today-disclosure-meta {
  color: #66706c;
  flex: 0 0 auto;

}

body[data-view="brief"] .today-disclosure-body {
  padding: 18px 2px 24px;
}

body[data-view="brief"] .today-context-disclosure .operating-proof-summary,
body[data-view="brief"] .today-context-disclosure .operating-proof-steps,
body[data-view="brief"] .today-context-disclosure .operating-proof-detail {
  margin-left: 0;
  margin-right: 0;
}

body[data-view="brief"] .today-stage-rail {
  border: 1px solid #d9ddd9;
  border-radius: 6px;
  overflow: hidden;
}

body[data-view="brief"] .today-stage a {
  min-height: 68px;
}

body[data-view="brief"] .today-pipeline.today-disclosure-body {
  border-bottom: 0;
  padding: 18px 2px 24px;
}

body[data-view="brief"] .today-closing-grid.today-disclosure-body {
  padding: 0;
}

body[data-view="brief"] .today-closing-grid .today-section {
  padding: 20px 2px 24px;
}

body[data-view="brief"] .today-closing-grid .today-system {
  padding-left: 24px;
}

@media (max-width: 1050px) {
  body[data-view="brief"] .today-workbench {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-view="brief"] .today-attention-rail {
    border-left: 0;
    border-top: 1px solid #cbd1cc;
    padding: 24px 0 0;
    position: static;
  }

  body[data-view="brief"] .today-intelligence-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body[data-view="brief"] .today-intelligence-facts > div,
  body[data-view="brief"] .today-intelligence-facts > div + div {
    border-left: 1px solid #e0e3e0;
    border-top: 0;
    padding: 0 12px;
  }

  body[data-view="brief"] .today-intelligence-facts > div:first-child {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 720px) {
  body[data-view="brief"] .sidebar {
    height: 58px;
    padding: 0 14px;
  }

  body[data-view="brief"] .brand h1 {

  }

  body[data-view="brief"] .mobile-nav-drawer > summary {
    min-height: 44px;
    min-width: 108px;
    padding: 6px 9px;
  }

  body[data-view="brief"] main {
    min-height: calc(100vh - 58px);
    padding: 26px 18px 54px;
  }

  body[data-view="brief"] .today-canvas-header h3 {

    margin: 18px 0 17px;
    max-width: 17ch;
    text-wrap: balance;
  }

  .today-canvas-meta {
    align-items: start;
    display: grid;

    gap: 3px;
  }

  .today-case-boundary {

  }

  #today-mode-summary {
    display: none;
  }

  body[data-view="brief"] .today-workbench {
    gap: 28px;
    margin-top: 22px;
  }

  body[data-view="brief"] .today-primary-heading {
    min-height: 18px;
  }

  body[data-view="brief"] .today-primary-state {

  }

  body[data-view="brief"] .today-question-sequence {
    margin-top: 8px;
  }

  body[data-view="brief"] .today-question-sequence > section {
    gap: 8px;
    grid-template-columns: minmax(0, 1fr);
    padding: 12px 0;
  }

  .today-sequence-label {
    gap: 8px;
    grid-template-columns: 22px minmax(0, 1fr);
  }

  body[data-view="brief"] .today-sequence-label h5 {

  }

  .today-sequence-copy {
    gap: 4px;
    padding-left: 30px;
  }

  .today-sequence-copy > strong {

  }

  .today-sequence-copy > p {

  }

  .today-next-facts {
    display: grid;
    gap: 4px;
    margin-top: 4px;
  }

  .today-next-facts > div {
    justify-content: space-between;
  }

  body[data-view="brief"] .today-primary-next,
  body[data-view="brief"] .today-primary-action.is-no-action .today-primary-next {
    align-items: stretch;
    display: grid;
    gap: 6px;
    grid-template-columns: minmax(0, 1fr);
    margin-top: 16px;
  }

  body[data-view="brief"] .today-primary-route {
    min-width: 0;
    width: 100%;
  }

  .today-source-link {
    justify-self: start;
    min-height: 44px;
  }

  body[data-view="brief"] .today-stop-condition {
    border-top: 1px solid #d9ddd9;
    gap: 4px;
    padding: 9px 0 0;
  }

  body[data-view="brief"] .today-attention-rail {
    padding-top: 20px;
  }

  body[data-view="brief"] .today-intelligence-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-view="brief"] .today-intelligence-facts > div,
  body[data-view="brief"] .today-intelligence-facts > div + div {
    border-left: 0;
    border-top: 1px solid #e0e3e0;
    padding: 10px 0;
  }

  body[data-view="brief"] .today-support {
    margin-top: 38px;
  }

  body[data-view="brief"] .today-support-header p {
    max-width: 38ch;
  }

  body[data-view="brief"] .today-context-disclosure > summary {
    align-items: start;
    min-height: 60px;
    padding: 11px 0;
  }

  body[data-view="brief"] .today-disclosure-body {
    padding: 14px 0 20px;
  }

  body[data-view="brief"] .today-stage-rail ol {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-view="brief"] .today-stage a {
    min-height: 62px;
  }

  body[data-view="brief"] .today-closing-grid .today-section,
  body[data-view="brief"] .today-closing-grid .today-system {
    padding: 18px 0;
  }

  body[data-view="brief"] .today-closing-grid .today-system {
    border-left: 0;
    border-top: 1px solid #d9ddd9;
  }

  body[data-view="brief"] .today-canvas-header h3 {

    margin: 15px 0 14px;
    max-width: 19ch;
  }

  body[data-view="brief"] .today-workbench {
    margin-top: 18px;
  }

  body[data-view="brief"] .today-primary-heading {
    min-height: 40px;
    padding: 0 18px;
  }

  body[data-view="brief"] .today-thread-answer {
    gap: 16px;
    grid-template-columns: minmax(0, 1fr);
    padding: 20px 18px 18px;
  }

  body[data-view="brief"] .today-current-answer > strong {

  }

  body[data-view="brief"] .today-current-answer > p {

    margin-top: 8px;
  }

  body[data-view="brief"] .today-decision-needed {
    padding: 13px 14px;
  }

  body[data-view="brief"] .today-primary-next,
  body[data-view="brief"] .today-primary-action.is-no-action .today-primary-next {
    gap: 13px;
    margin: 0;
    padding: 16px 18px 14px;
  }

  body[data-view="brief"] .today-next-copy > strong {

  }

  body[data-view="brief"] .today-stop-condition {
    padding: 0;
  }

  body[data-view="brief"] .today-attention-rail {
    padding: 0;
  }

  body[data-view="brief"] .today-attention-rail > summary {
    min-height: 46px;
    padding: 0 18px;
  }

  body[data-view="brief"] .today-source-body {
    padding: 18px;
  }

  body[data-view="brief"] .today-intelligence-facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Today review session: one question, one read, one unknown, one next move. */
body[data-view="brief"] .today-canvas-header {
  max-width: 860px;
}

body[data-view="brief"] .today-canvas-header h3 {

  margin: 22px 0 16px;
  max-width: 18ch;
}

body[data-view="brief"] .today-case-boundary {

}

body[data-view="brief"] #today-mode-summary {

  margin-top: 8px;
  max-width: 60ch;
}

body[data-view="brief"] .today-workbench {
  margin-top: 48px;
  max-width: 1040px;
}

body[data-view="brief"] .today-primary-action,
body[data-view="brief"] .today-primary-action.is-no-action {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

body[data-view="brief"] .today-primary-heading {
  align-items: end;
  border-bottom: 1px solid #cbd1cc;
  border-top: 1px solid #cbd1cc;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 0;
  padding: 24px 0 26px;
}

body[data-view="brief"] .today-primary-heading > div:first-child {
  display: grid;
  gap: 9px;
  max-width: 720px;
}

body[data-view="brief"] .today-primary-heading > div:first-child > span {
  color: #0d5144;

}

body[data-view="brief"] .today-primary-heading h4 {
  color: #101512;

  margin: 0;
  max-width: 32ch;
}

body[data-view="brief"] .today-primary-state {
  align-self: start;
  padding-top: 2px;
}

body[data-view="brief"] .today-thread-answer {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
}

body[data-view="brief"] .today-current-answer,
body[data-view="brief"] .today-decision-needed {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #d9ddd9;
  border-radius: 0;
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 26px 34px 28px 0;
}

body[data-view="brief"] .today-decision-needed {
  border-left: 1px solid #d9ddd9;
  padding-left: 34px;
  padding-right: 0;
}

body[data-view="brief"] .today-current-answer h5,
body[data-view="brief"] .today-decision-needed h5,
body[data-view="brief"] .today-next-copy h5 {
  color: #66706c;

  margin: 0;

}

body[data-view="brief"] .today-current-answer > strong,
body[data-view="brief"] .today-decision-needed > strong {
  color: #1c231f;

  max-width: 48ch;
}

body[data-view="brief"] .today-current-answer > p {
  color: #66706c;

  margin: 0;
}

body[data-view="brief"] .today-learning-source {
  margin-top: 3px;
}

body[data-view="brief"] .today-learning-source a {
  color: #0d5144;

  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

body[data-view="brief"] .today-primary-next,
body[data-view="brief"] .today-primary-action.is-no-action .today-primary-next {
  align-items: center;
  background: transparent;
  border: 0;
  display: grid;
  gap: 13px 28px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0;
  padding: 25px 0 20px;
}

body[data-view="brief"] .today-next-copy {
  gap: 6px;
}

body[data-view="brief"] .today-next-copy h5 {
  color: #0d5144;
}

body[data-view="brief"] .today-next-copy > strong {

  max-width: 62ch;
}

body[data-view="brief"] .today-primary-route {
  border-radius: 6px;
  min-height: 48px;
  min-width: 220px;
  padding-inline: 18px;
}

body[data-view="brief"] .today-stop-condition {
  border-left: 1px solid #c8a75c;
  grid-column: 1 / -1;
  padding: 1px 0 1px 12px;
}

body[data-view="brief"] .today-stop-condition strong,
body[data-view="brief"] .today-primary-action.is-no-action .today-primary-next strong {
  color: #66706c;

}

body[data-view="brief"] .today-attention-rail {
  border: 0;
  border-bottom: 1px solid #cbd1cc;
  border-top: 1px solid #d9ddd9;
}

body[data-view="brief"] .today-attention-rail > summary {
  min-height: 52px;
  padding: 0;
}

body[data-view="brief"] .today-source-body {
  border-top: 1px solid #d9ddd9;
  padding: 24px 0 28px;
}

body[data-view="brief"] .today-support[hidden] {
  display: none;
}

/* Partner laptops often expose less than 800px after browser chrome. Preserve
   the full decision sequence in that real review window without shrinking the
   evidence copy or changing the mobile composition. */
@media (min-width: 721px) and (max-height: 820px) {
  body[data-view="brief"] main {
    padding-top: 18px;
  }

  body[data-view="brief"] .today-canvas-header h3 {

    margin: 8px 0;
  }

  body[data-view="brief"] #today-mode-summary {
    margin-top: 5px;
  }

  body[data-view="brief"] .today-workbench {
    margin-top: 20px;
  }

  body[data-view="brief"] .today-primary-heading {
    padding: 14px 0 16px;
  }

  body[data-view="brief"] .today-current-answer,
  body[data-view="brief"] .today-decision-needed {
    padding-bottom: 16px;
    padding-top: 16px;
  }

  body[data-view="brief"] .today-primary-next,
  body[data-view="brief"] .today-primary-action.is-no-action .today-primary-next {
    padding: 12px 0;
  }
}

/* Chrome's visible page area can be roughly 55px shorter than the window
   frame. Keep the action fully reviewable in that true sub-700px canvas. */
@media (min-width: 721px) and (max-height: 720px) {
  body[data-view="brief"] main {
    padding-top: 5px;
  }

  body[data-view="brief"] .today-canvas-header h3 {

    margin: 4px 0;
  }

  body[data-view="brief"] #today-mode-summary {
    margin-top: 2px;
  }

  body[data-view="brief"] .today-workbench {
    margin-top: 10px;
  }

  body[data-view="brief"] .today-primary-heading {
    padding: 8px 0 10px;
  }

  body[data-view="brief"] .today-current-answer,
  body[data-view="brief"] .today-decision-needed {
    padding-bottom: 12px;
    padding-top: 12px;
  }

  body[data-view="brief"] .today-primary-next,
  body[data-view="brief"] .today-primary-action.is-no-action .today-primary-next {
    padding: 8px 0;
  }
}

@media (max-width: 720px) {
  body[data-view="brief"] .today-canvas-header h3 {

    margin: 14px 0 11px;
    max-width: none;
  }

  body[data-view="brief"] .today-workbench {
    margin-top: 20px;
  }

  body[data-view="brief"] .today-primary-heading {
    align-items: start;
    gap: 11px;
    grid-template-columns: minmax(0, 1fr);
    padding: 18px 0 20px;
  }

  body[data-view="brief"] .today-primary-heading h4 {

  }

  body[data-view="brief"] .today-primary-state {
    padding: 0;
  }

  body[data-view="brief"] .today-thread-answer {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-view="brief"] .today-current-answer,
  body[data-view="brief"] .today-decision-needed {
    border-bottom: 1px solid #d9ddd9;
    border-left: 0;
    gap: 6px;
    padding: 13px 0 14px;
  }

  body[data-view="brief"] .today-current-answer > strong,
  body[data-view="brief"] .today-decision-needed > strong {

  }

  body[data-view="brief"] .today-primary-next,
  body[data-view="brief"] .today-primary-action.is-no-action .today-primary-next {
    gap: 12px;
    grid-template-columns: minmax(0, 1fr);
    padding: 15px 0 13px;
  }

  body[data-view="brief"] .today-primary-route {
    min-width: 0;
    width: 100%;
  }

  body[data-view="brief"] .today-stop-condition {
    border-left: 1px solid #c8a75c;
    border-top: 0;
    padding: 1px 0 1px 10px;
  }

  body[data-view="brief"] .today-attention-rail > summary {
    min-height: 48px;
    padding: 0;
  }

  body[data-view="brief"] .today-source-body {
    padding: 19px 0 22px;
  }
}

/* Markets & Theses: one thesis judgment first, the operating machinery on demand. */
body[data-view="market"] .app-shell {
  display: block;
  min-height: 100vh;
}

body[data-view="market"] .sidebar {
  align-items: center;
  background: #fbfaf7;
  border-bottom: 1px solid #d9ddd9;
  border-right: 0;
  display: flex;
  flex-direction: row;
  height: 74px;
  justify-content: space-between;
  padding: 0 30px;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 40;
}

body[data-view="market"] .brand {
  align-items: center;
  display: flex;
  gap: 0;
}

body[data-view="market"] .brand-mark,
body[data-view="market"] .brand p,
body[data-view="market"] .nav-section-label,
body[data-view="market"] .nav-primary,
body[data-view="market"] .nav-drawer,
body[data-view="market"] .sidebar-footer {
  display: none;
}

body[data-view="market"] .brand h1 {
  color: #123f35;
  display: block;

  margin: 0;
}

body[data-view="market"] .sidebar nav {
  display: block;
  margin: 0;
  width: auto;
}

body[data-view="market"] .mobile-nav-drawer {
  display: block;
  position: relative;
}

body[data-view="market"] .mobile-nav-drawer > summary {
  align-items: center;
  background: transparent;
  border: 1px solid #cdd3ce;
  border-radius: 6px;
  color: #111815;
  cursor: pointer;
  display: grid;
  gap: 1px;
  list-style: none;
  min-height: 44px;
  min-width: 118px;
  padding: 7px 11px;
}

body[data-view="market"] .mobile-nav-drawer > summary::-webkit-details-marker {
  display: none;
}

body[data-view="market"] .mobile-nav-drawer > summary span {

}

body[data-view="market"] .mobile-nav-drawer > summary small {
  color: #66706c;

}

body[data-view="market"] .mobile-nav-list {
  background: #ffffff;
  border: 1px solid #cdd3ce;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(17, 24, 21, 0.14);
  display: grid;
  max-height: min(70vh, 540px);
  min-width: min(88vw, 330px);
  overflow-y: auto;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
}

body[data-view="market"] .mobile-nav-list .nav-item {
  background: transparent;
  border: 0;
  border-radius: 5px;
  color: #4f5a55;
  min-height: 44px;
  padding: 10px;
  text-align: left;
}

body[data-view="market"] .mobile-nav-list .nav-item:hover,
body[data-view="market"] .mobile-nav-list .nav-item.active {
  background: #edf2ee;
  color: #0d1412;
}

body[data-view="market"] main {
  background: #fbfaf7;
  min-height: calc(100vh - 74px);
  padding: 48px 58px 84px;
}

body[data-view="market"] #action-status,
body[data-view="market"] #primary-decision-banner,
body[data-view="market"] #metrics,
body[data-view="market"] .ops-drawer {
  display: none;
}

body[data-view="market"] .topbar {
  display: none;
}

#view-market .market-folio-layout {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1080px;
}

.market-thesis-folio {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.market-folio-header {
  align-items: start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 0 0 22px;
}

.market-folio-header > div {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.market-folio-header h3 {
  color: #101512;

  margin: 0;
  max-width: 25ch;
  text-wrap: balance;
}

.market-folio-header p {
  color: #66706c;

  margin: 0;
  max-width: 70ch;
}

.market-folio-status {
  border-bottom: 1px solid currentColor;
  color: var(--accent);
  flex: 0 0 auto;

  padding: 4px 0 3px;
}

.market-folio-status.warn {
  color: #7a5b18;
}

.market-folio-status.bad {
  color: var(--danger);
}

.market-folio-body {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
}

.market-focus-copy {
  min-width: 0;
  padding: 0;
}

.market-focus-state {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;

  gap: 6px 0;

  margin-bottom: 17px;
}

.market-focus-state > * {
  align-items: center;
  display: inline-flex;
}

.market-focus-state > * + *::before {
  background: var(--line-strong);
  content: "";
  height: 13px;
  margin: 0 10px;
  width: 1px;
}

.market-focus-state strong {
  color: var(--ink);

}

.market-focus-reason {
  border-top: 1px solid #cbd1cc;
  display: grid;
  gap: 8px;
  max-width: none;
  padding: 20px 2px;
}

.market-focus-reason h4,
.market-focus-challenge h4,
.market-focus-next h4 {
  color: var(--muted);

  margin: 0;

}

.market-focus-reason p {
  color: var(--ink);

  margin: 0;
}

.market-focus-challenge {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.market-focus-challenge section {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 22px 2px;
}

.market-focus-challenge section + section {
  border-left: 1px solid var(--line);
  border-top: 0;
  padding-left: 22px;
}

.market-focus-challenge p {
  color: var(--ink);

  margin: 0;
  max-width: 67ch;
  overflow-wrap: anywhere;
}

.market-focus-next {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 7px;
  padding: 20px 2px;
}

.market-focus-next > strong {
  color: var(--ink);

  max-width: 70ch;
}

.market-focus-action {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: max-content minmax(0, 1fr);
  padding: 18px 0 4px;
}

.market-focus-action button {
  align-items: center;
  background: #163d34;
  border: 1px solid #163d34;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;

  justify-content: center;
  min-height: 44px;
  padding: 9px 15px;
}

.market-focus-action button:hover,
.market-focus-action button:focus-visible {
  background: #205547;
  border-color: #205547;
}

.market-focus-action button:disabled {
  background: var(--panel-soft);
  border-color: var(--line);
  color: var(--muted);
  cursor: not-allowed;
}

.market-focus-action > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.market-focus-action strong {
  color: var(--ink);

}

.market-focus-action p {
  color: var(--muted);

  margin: 0;
  max-width: 72ch;
}

.market-evidence-path {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  min-width: 0;
  padding: 0;
}

.market-evidence-path-head {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px 2px;
}

.market-evidence-path-head > span:first-child {
  display: grid;
  gap: 3px;
}

.market-evidence-path-head strong {
  color: var(--ink);

}

.market-evidence-path-head span,
.market-evidence-path-head small {
  color: var(--muted);

}

.market-evidence-path ol {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.market-evidence-path li {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding: 13px 0;
}

.market-evidence-path li + li {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.market-evidence-path li > span {
  color: var(--muted);

}

.market-evidence-path li > strong {
  color: var(--ink);

}

#view-market .market-register,
#view-market .market-evidence-drawer,
#view-market > .market-folio-layout > .market-detail-ledger {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  margin: 0;
  overflow: hidden;
}

#view-market .market-register > summary,
#view-market .market-evidence-drawer > summary,
#view-market > .market-folio-layout > .market-detail-ledger > summary {
  align-items: center;
  background: var(--panel);
  border: 0;
  cursor: pointer;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  min-height: 52px;
  padding: 11px 16px;
}

#view-market .market-register[open] > summary,
#view-market .market-evidence-drawer[open] > summary,
#view-market > .market-folio-layout > .market-detail-ledger[open] > summary {
  background: #f8faf8;
  border-bottom: 1px solid var(--line);
}

#view-market .market-register > summary > span,
#view-market .market-evidence-drawer > summary > span,
#view-market > .market-folio-layout > .market-detail-ledger > summary > span {
  color: var(--ink);

}

#view-market .market-register > summary > strong,
#view-market .market-evidence-drawer > summary > strong,
#view-market > .market-folio-layout > .market-detail-ledger > summary > strong {
  color: var(--muted);

  text-align: right;
}

#view-market .market-register > .thesis-review-rule {
  background: #f8faf8;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  display: grid;
  gap: 5px 18px;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
  margin: 0;
  padding: 13px 16px;
}

#view-market .market-register > .thesis-review-rule strong {
  grid-row: 1 / span 2;
}

#view-market .market-register > .thesis-review-rule span,
#view-market .market-register > .thesis-review-rule small {

}

#view-market .market-register > .thesis-portfolio-controls {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
}

#view-market .thesis-register {
  display: block;
  gap: 0;
  padding: 0;
}

#view-market .thesis-register .thesis-register-row {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  display: block;
  margin: 0;
  padding: 0;
}

#view-market .thesis-register .thesis-register-row:last-child {
  border-bottom: 0;
}

.thesis-register-detail {
  margin: 0;
}

.thesis-register-summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(260px, 1.35fr) minmax(115px, 0.35fr) minmax(220px, 1fr) minmax(90px, 0.25fr) 42px;
  list-style: none;
  min-height: 72px;
  padding: 12px 16px;
}

.thesis-register-summary::-webkit-details-marker {
  display: none;
}

.thesis-register-summary::after {
  color: var(--accent);
  content: "Open";

  grid-column: 5;
  text-align: right;
}

.thesis-register-detail[open] > .thesis-register-summary {
  background: #f8faf8;
}

.thesis-register-detail[open] > .thesis-register-summary::after {
  content: "Close";
}

.thesis-register-title,
.thesis-register-test,
.thesis-register-handoff {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.thesis-register-title > strong {
  color: var(--ink);

}

.thesis-register-title > small,
.thesis-register-test > small,
.thesis-register-handoff > small {
  color: var(--muted);

}

.thesis-register-title > small {
  display: -webkit-box;

  overflow: hidden;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.thesis-register-status {
  color: var(--ink);

}

.thesis-register-status.good {
  color: var(--accent);
}

.thesis-register-status.warn {
  color: #7a5b18;
}

.thesis-register-test > strong {
  color: var(--ink);
  display: -webkit-box;

  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.thesis-register-handoff > strong {
  color: var(--ink);

}

.thesis-register-body {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 13px;
  padding: 16px;
}

.thesis-register-body > .thesis-card-top {
  display: none;
}

.thesis-register-body .thesis-version-line {
  margin: 0;
}

.thesis-register-body .thesis-argument-grid {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  gap: 0;
}

.thesis-register-body .thesis-argument-grid > div,
.thesis-register-body .thesis-argument-grid > div:nth-child(even) {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 12px 14px;
}

.thesis-register-body .thesis-argument-grid > div:nth-child(even) {
  border-left: 1px solid var(--line);
}

.thesis-register-body .thesis-argument-grid > div:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}

.thesis-register-body .thesis-change-summary {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 2px 0;
}

#view-market .market-evidence-drawer > .market-command-panel {
  background: var(--panel);
  border: 0;
  border-radius: 0;
  padding: 4px 16px 18px;
}

#view-market .market-evidence-drawer .market-loop-header {
  padding-left: 0;
  padding-right: 0;
}

#view-market .market-evidence-drawer .market-loop-header h3 {

}

#view-market .market-evidence-drawer .market-loop-lanes {
  margin-top: 12px;
}

#view-market .market-evidence-drawer #market-command-center {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 16px;
}

@media (max-width: 1040px) {
  .market-folio-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .market-evidence-path {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .market-evidence-path ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .market-evidence-path li {
    padding: 11px 12px;
  }

  .market-evidence-path li + li {
    border-left: 1px solid var(--line);
  }

  .thesis-register-summary {
    grid-template-columns: minmax(240px, 1.2fr) minmax(110px, 0.35fr) minmax(180px, 0.8fr) minmax(85px, 0.25fr) 42px;
  }
}

@media (max-width: 760px) {
  body[data-view="market"] .sidebar {
    height: 58px;
    padding: 0 14px;
  }

  body[data-view="market"] .brand h1 {

  }

  body[data-view="market"] .mobile-nav-drawer > summary {
    min-height: 44px;
    min-width: 108px;
    padding: 6px 9px;
  }

  body[data-view="market"] main {
    min-height: calc(100vh - 58px);
    padding: 26px 18px 58px;
  }

  .market-folio-header {
    gap: 12px;
    padding: 0 0 20px;
  }

  .market-folio-header h3 {

    max-width: 18ch;
  }

  .market-folio-header .market-canvas-eyebrow {

    margin-bottom: 12px;
  }

  .market-folio-header p {

  }

  .market-focus-copy {
    display: flex;
    flex-direction: column;
    padding: 0;
  }

  .market-focus-state {
    margin-bottom: 13px;
  }

  .market-focus-reason p {

  }

  .market-focus-reason {
    order: 2;
    padding: 13px 0;
  }

  .market-focus-state {
    order: 1;
  }

  .market-focus-challenge {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 0;
    order: 3;
  }

  .market-focus-challenge section {
    padding: 12px 0;
  }

  .market-focus-challenge section + section {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
  }

  .market-focus-challenge p {

  }

  .market-focus-action {
    align-items: stretch;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr);
    order: 5;
    padding-top: 13px;
  }

  .market-focus-next {
    order: 4;
    padding: 13px 0;
  }

  .market-focus-next > strong {

  }

  .market-focus-action button {
    width: 100%;
  }

  .market-evidence-path {
    padding: 0;
  }

  .market-evidence-path-head {
    align-items: start;
    min-height: 54px;
  }

  .market-evidence-path-head > span:last-child {
    max-width: 16ch;
    text-align: right;
  }

  .market-evidence-path ol {
    grid-template-columns: minmax(0, 1fr);
  }

  .market-evidence-path li {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 9px 0;
  }

  .market-evidence-path li + li {
    border-left: 0;
    padding-left: 0;
  }

  .market-evidence-path li > strong {

    text-align: right;
  }

  #view-market .market-register > .thesis-review-rule {
    grid-template-columns: minmax(0, 1fr);
  }

  #view-market .market-register > .thesis-review-rule strong {
    grid-row: auto;
  }

  #view-market .market-register > .thesis-portfolio-controls {
    align-items: stretch;
    display: grid;
    gap: 10px;
  }

  .thesis-register-summary {
    gap: 8px 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 0;
    padding: 13px 12px;
  }

  .thesis-register-title {
    grid-column: 1;
  }

  .thesis-register-status {
    grid-column: 2;
    text-align: right;
  }

  .thesis-register-test {
    border-top: 1px solid var(--line);
    grid-column: 1 / -1;
    padding-top: 9px;
  }

  .thesis-register-handoff {
    grid-column: 1;
  }

  .thesis-register-summary::after {
    align-self: end;
    grid-column: 2;
  }

  .thesis-register-body {
    padding: 13px 12px;
  }

  .thesis-register-body .thesis-argument-grid > div,
  .thesis-register-body .thesis-argument-grid > div:nth-child(even) {
    border-left: 0;
    padding: 11px 0;
  }

  .thesis-register-body .thesis-argument-grid > div + div {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 460px) {
  .market-folio-header {
    align-items: start;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .market-folio-header h3 {

  }

  .market-folio-header p {

  }

  .market-focus-state > * + *::before {
    margin: 0 7px;
  }

  .market-focus-action p {

  }

}

/* 2026-08-17 unified Decision Thread shell and quiet utility routes. */
body[data-shell="decision-thread"] .sidebar {
  height: 64px;
}

body[data-shell="decision-thread"] main {
  min-height: calc(100vh - 64px);
  padding: 36px 42px 76px;
}

body[data-view="firm"] :is(#action-status, #primary-decision-banner, #metrics),
body[data-view="evals"] :is(#primary-decision-banner, #metrics),
body[data-view="evals"] #action-status.is-default {
  display: none;
}

body[data-view="evals"] #action-status:not(.is-default) {
  margin: 0 auto 18px;
  max-width: 1080px;
}

#view-firm,
#view-evals {
  margin: 0 auto;
  max-width: 1080px;
}

.firm-decision-thread,
.control-decision-thread {
  color: #101512;
  display: grid;
  gap: 0;
}

.firm-thread-header,
.control-thread-header {
  align-items: start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 0 0 24px;
}

.firm-thread-header h3,
.control-thread-header h3 {
  color: #101512;

  margin: 0;
  max-width: 22ch;
}

.firm-thread-header p,
.control-thread-header p {
  color: #66706c;

  margin: 10px 0 0;
  max-width: 66ch;
}

.firm-thread-state,
.control-thread-state {
  border-bottom: 1px solid currentColor;
  color: #52615b;
  flex: 0 0 auto;

  max-width: 29ch;
  padding: 5px 0 4px;
  text-align: right;
}

.firm-thread-body {
  border-bottom: 1px solid #cbd1cc;
  border-top: 1px solid #cbd1cc;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

.firm-thread-body > section {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 24px 2px;
}

.firm-thread-body > section:nth-child(2) {
  background: #f3f0e8;
  margin: 12px 0 12px 22px;
  padding: 16px 18px;
}

.firm-thread-body > section > span,
.firm-thread-guardrails span,
.release-gate span,
.release-gate dt {
  color: #5f6b66;

}

.firm-thread-answer > strong {

  max-width: 34ch;
}

.firm-thread-answer p,
.firm-thread-unknown strong,
.firm-thread-next small,
.firm-thread-guardrails p,
.release-gate p,
.release-gate dd,
.control-detail-boundary {
  color: #5f6965;

  margin: 0;
}

.firm-thread-unknown strong {
  color: #202724;

}

.firm-thread-next {
  align-items: center;
  border-top: 1px solid #cbd1cc;
  gap: 18px 24px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
}

.firm-thread-next > div {
  display: grid;
  gap: 7px;
}

.firm-thread-next > div > strong {

}

.firm-thread-next dl {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 22px;
  margin: 0;
}

.firm-thread-next dl div {
  display: flex;
  gap: 7px;
}

.firm-thread-next dt,
.firm-thread-next dd {
  color: #65706b;

  margin: 0;
}

.firm-thread-next dd {
  color: #202724;

}

.firm-priority-route,
#eval-primary-action {
  align-items: center;
  background: #0d5144;
  border: 1px solid #0d5144;
  border-radius: 5px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;

  justify-content: center;
  min-height: 48px;
  padding: 10px 16px;
  text-decoration: none;
}

.release-gate-buttons {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.eval-secondary-action {
  background: transparent;
  border: 1px solid #aeb8b1;
  border-radius: 5px;
  color: #2d3a35;
  cursor: pointer;

  min-height: 44px;
  padding: 9px 14px;
}

.firm-thread-next > small {
  grid-column: 1 / -1;
  max-width: 82ch;
}

.firm-context-drawer,
.control-support-drawer {
  border: 0;
  border-bottom: 1px solid #d6dcd7;
  margin: 0;
}

.firm-context-drawer > summary,
.control-support-drawer > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  min-height: 62px;
  padding: 12px 2px;
}

.firm-context-drawer > summary span,
.control-support-drawer > summary span {
  color: #174f43;

}

.firm-context-drawer > summary strong,
.control-support-drawer > summary strong {
  color: #68716d;

}

.firm-thread-guardrails {
  border-top: 1px solid #d6dcd7;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.firm-thread-guardrails section {
  display: grid;
  gap: 6px;
  padding: 18px 18px 18px 2px;
}

.firm-thread-guardrails section:nth-child(even) {
  border-left: 1px solid #d6dcd7;
  padding-left: 18px;
}

.firm-thread-guardrails strong {

}

.firm-detail-stack {
  display: grid;
  gap: 0;
  padding-bottom: 18px;
}

.firm-detail-stack .firm-ledger {
  border: 0;
  border-top: 1px solid #d6dcd7;
  border-radius: 0;
  margin: 0;
}

.control-thread-header {
  padding-bottom: 22px;
}

.eval-release-gate {
  border-bottom: 1px solid #cbd1cc;
  border-top: 1px solid #cbd1cc;
}

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

.release-gate-verdict {
  display: grid;
  gap: 9px;
  padding: 24px 24px 24px 2px;
}

.release-gate-verdict > strong {

}

.release-gate.bad .release-gate-verdict > strong,
.release-gate.warn .release-gate-verdict > strong {
  color: #7c432c;
}

.release-gate-facts {
  border-left: 1px solid #cbd1cc;
  display: grid;
  margin: 0;
}

.release-gate-facts div {
  border-top: 1px solid #d6dcd7;
  display: grid;
  gap: 4px;
  padding: 12px 16px;
}

.release-gate-facts div:first-child {
  border-top: 0;
}

.release-gate-facts dd {
  color: #202724;

}

.release-gate-action {
  align-items: center;
  border-top: 1px solid #cbd1cc;
  display: flex;
  gap: 20px;
  grid-column: 1 / -1;
  justify-content: space-between;
  padding: 18px 2px;
}

.release-gate-action > div {
  display: grid;
  gap: 5px;
}

.release-gate-action strong {

}

.control-thread-boundary {
  color: #5f6965;

  padding: 14px 2px 8px;
}

.control-support-drawer > .control-verdict-band {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 0 14px;
}

.control-support-drawer > .control-verdict-band .decision-brief-card,
.control-support-drawer > .control-verdict-band .decision-brief-card:first-child,
.control-support-drawer > .control-verdict-band .decision-brief-card:last-child {
  border-radius: 5px;
  border-width: 1px;
}

.control-support-drawer .tier-summary-grid,
.control-support-drawer .eval-grid {
  padding: 0 0 16px;
}

@media (max-width: 720px) {
  body[data-shell="decision-thread"] .sidebar {
    height: 58px;
  }

  body[data-shell="decision-thread"] main {
    min-height: calc(100vh - 58px);
    padding: 20px 18px 52px;
  }

  .firm-thread-header,
  .control-thread-header {
    display: grid;
    gap: 10px;
    padding-bottom: 18px;
  }

  .firm-thread-header h3,
  .control-thread-header h3 {

    max-width: 18ch;
  }

  .firm-thread-state,
  .control-thread-state {
    justify-self: start;
    max-width: 100%;
    text-align: left;
  }

  .firm-thread-body,
  .release-gate {
    grid-template-columns: minmax(0, 1fr);
  }

  .firm-thread-body > section {
    padding: 18px 0;
  }

  .firm-thread-body > section:nth-child(2) {
    margin: 0 0 14px;
    padding: 15px 16px;
  }

  .firm-thread-answer > strong,
  .release-gate-verdict > strong {

  }

  .firm-thread-next {
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr);
  }

  .firm-priority-route,
  #eval-primary-action {
    width: 100%;
  }

  .firm-thread-guardrails {
    grid-template-columns: minmax(0, 1fr);
  }

  .firm-thread-guardrails section,
  .firm-thread-guardrails section:nth-child(even) {
    border-left: 0;
    border-top: 1px solid #d6dcd7;
    padding: 15px 0;
  }

  .release-gate-verdict {
    padding: 18px 0;
  }

  .release-gate-facts {
    border-left: 0;
    border-top: 1px solid #cbd1cc;
  }

  .release-gate-facts div {
    padding-left: 0;
    padding-right: 0;
  }

  .release-gate-action {
    align-items: stretch;
    display: grid;
  }

  .release-gate-buttons {
    align-items: stretch;
    display: grid;
    justify-content: stretch;
  }

  .control-support-drawer > .control-verdict-band {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Primary-route shell: the decision surface owns the viewport. Navigation is
   a compact route switcher, never a permanent enterprise dashboard rail. */
body[data-shell="decision-thread"] .app-shell {
  display: block;
  min-height: 100vh;
}

body[data-shell="decision-thread"] .sidebar {
  align-items: center;
  background: #fbfaf7;
  border-bottom: 1px solid #d9ddd9;
  border-right: 0;
  color: #111815;
  display: flex;
  flex-direction: row;
  height: 74px;
  justify-content: space-between;
  padding: 0 30px;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 40;
}

body[data-shell="decision-thread"] .brand {
  align-items: center;
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
}

body[data-shell="decision-thread"] :is(.brand-mark, .brand p, .nav-section-label, .nav-primary, .nav-drawer, .sidebar-footer) {
  display: none;
}

body[data-shell="decision-thread"] .brand h1 {
  color: #0c493e;
  display: block;

  margin: 0;
}

body[data-shell="decision-thread"] .sidebar nav {
  display: block;
  height: auto;
  margin: 0;
  overflow: visible;
  width: auto;
}

body[data-shell="decision-thread"] .mobile-nav-drawer {
  display: block;
  position: relative;
}

body[data-shell="decision-thread"] .mobile-nav-drawer > summary {
  align-items: center;
  background: transparent;
  border: 1px solid #cdd3ce;
  border-radius: 6px;
  color: #111815;
  cursor: pointer;
  display: grid;
  gap: 1px;
  list-style: none;
  min-height: 44px;
  min-width: 118px;
  padding: 7px 11px;
}

body[data-shell="decision-thread"] .mobile-nav-drawer > summary::-webkit-details-marker {
  display: none;
}

body[data-shell="decision-thread"] .mobile-nav-drawer > summary span {

}

body[data-shell="decision-thread"] .mobile-nav-drawer > summary small {
  color: #66706c;

}

body[data-shell="decision-thread"] .mobile-nav-list {
  background: #ffffff;
  border: 1px solid #cdd3ce;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(17, 24, 21, 0.14);
  display: grid;
  max-height: min(70vh, 540px);
  min-width: min(88vw, 330px);
  overflow-y: auto;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
}

body[data-shell="decision-thread"] .mobile-nav-list .nav-item {
  background: transparent;
  border: 0;
  border-radius: 5px;
  color: #4f5a55;
  min-height: 44px;
  padding: 10px;
  text-align: left;
}

body[data-shell="decision-thread"] .mobile-nav-list .nav-item:hover,
body[data-shell="decision-thread"] .mobile-nav-list .nav-item.active {
  background: #edf2ee;
  color: #0d1412;
}

body[data-shell="decision-thread"] .mobile-nav-list .mobile-nav-logout {
  background: transparent;
  border: 0;
  border-top: 1px solid #d9ddd9;
  border-radius: 0;
  color: #714032;
  cursor: pointer;

  margin-top: 4px;
  min-height: 44px;
  padding: 10px;
  padding-top: 12px;
  text-align: left;
}

body[data-shell="decision-thread"] main {
  background: #fbfaf7;
  min-height: calc(100vh - 74px);
  padding: 40px 42px 80px;
}

body[data-shell="decision-thread"] .topbar {
  display: none;
}

body[data-shell="decision-thread"].source-writes-enabled .topbar {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  margin: 0 auto 18px;
  max-width: 1080px;
  min-height: 44px;
}

body[data-shell="decision-thread"].source-writes-enabled .topbar .page-heading,
body[data-shell="decision-thread"].source-writes-enabled .topbar #run-evals,
body[data-shell="decision-thread"].source-writes-enabled .topbar #logout {
  display: none;
}

body[data-view="transformability"] :is(#action-status, #primary-decision-banner, #metrics),
body[data-view="transformability"] .ops-drawer {
  display: none;
}

body[data-view="transformability"] .transform-layout {
  display: grid;
  gap: 0;
  margin: 0 auto;
  max-width: 1080px;
}

body[data-view="transformability"] .transform-layout .packet-intro-row {
  align-items: start;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
  padding: 0 0 24px;
}

body[data-view="transformability"] .packet-intro-head {
  align-items: start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

body[data-view="transformability"] .packet-intro-head h3 {
  color: #101512;

  max-width: 25ch;
}

body[data-view="transformability"] .packet-intro-head .mini-note,
body[data-view="transformability"] .packet-intro-row .brief-headline {
  color: #66706c;

  white-space: normal;
}

body[data-view="transformability"] .packet-intro-head .mini-note {
  border-bottom: 1px solid currentColor;
  color: var(--accent);
  flex: 0 0 auto;

  padding: 4px 0 3px;
}

body[data-view="transformability"] .packet-intro-row .brief-headline {
  max-width: 72ch;
}

.transform-entry-gate {
  align-items: stretch;
  border-bottom: 1px solid #cbd1cc;
  border-top: 1px solid #cbd1cc;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
}

.transform-entry-gate > section {
  display: grid;
  gap: 7px;
  padding: 20px 2px;
}

.transform-entry-gate > section + section {
  border-left: 1px solid var(--line);
  padding-left: 22px;
}

.transform-entry-gate h4 {
  color: var(--muted);

  margin: 0;

}

.transform-entry-gate strong {
  color: #101512;

}

.transform-entry-gate p,
.transform-entry-gate small {
  color: #66706c;

  margin: 0;
}

.transform-entry-gate .transform-thread-next {
  align-items: center;
  border-left: 0;
  border-top: 1px solid var(--line);
  gap: 12px 20px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-left: 2px;
}

.transform-thread-next > div {
  display: grid;
  gap: 7px;
}

.transform-thread-next small {
  grid-column: 1 / -1;
  max-width: 90ch;
}

.transform-entry-gate .inline-route-button {
  background: #0d5144;
  border-color: #0d5144;
  color: #ffffff;
  min-height: 48px;
}

body[data-view="transformability"] .transform-layout > .transform-disclosure {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #d9ddd9;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}

body[data-view="transformability"] .transform-disclosure-summary {
  background: transparent;
  min-height: 62px;
  padding: 12px 2px;
}

/* Transformation is a case-readiness note. The retained legacy DOM is inert
   while release migration tests still exercise its scoped helper functions. */
body[data-view="transformability"] .transform-legacy-route {
  display: none !important;
}

body[data-view="transformability"] .transformation-note-layout {
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 900px;
}

.transformation-case-thread {
  border-bottom: 1px solid #cbd1cc;
  border-top: 1px solid #cbd1cc;
  padding: 26px 0 24px;
}

.transformation-ventures-loop {
  background: #102d3e;
  color: #f7f5ef;
  display: grid;
  gap: 22px;
  padding: 28px 30px;
}

.transformation-ventures-head {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 156px;
}

.transformation-ventures-head > div:first-child {
  display: grid;
  gap: 8px;
}

.transformation-ventures-head .section-label {
  color: #9bc3ca;
}

.transformation-ventures-head h3 {

  margin: 0;
  max-width: 24ch;
}

.transformation-ventures-head p,
.transformation-ventures-boundary {
  color: #c5d0ce;

  margin: 0;
  max-width: 72ch;
}

.transformation-ventures-snapshot {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  gap: 3px;
  padding-left: 18px;
}

.transformation-ventures-snapshot strong {
  color: #f09a3e;

}

.transformation-ventures-snapshot span,
.transformation-ventures-snapshot small {
  color: #dce5e2;

}

.transformation-ventures-snapshot small {
  color: #9fb2ae;
}

.transformation-ventures-flow {
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.transformation-ventures-flow > div {
  display: grid;
  gap: 5px;
  padding: 16px 15px 17px;
}

.transformation-ventures-flow > div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.17);
}

.transformation-ventures-flow span {
  color: #f09a3e;

}

.transformation-ventures-flow strong {

}

.transformation-ventures-flow p {
  color: #adbfbb;

  margin: 0;
}

.transformation-ventures-bench {
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
}

.transformation-ventures-bench > summary {
  align-items: center;
  cursor: pointer;
  display: flex;

  justify-content: space-between;
  min-height: 44px;
}

.transformation-ventures-bench > summary strong {
  color: #9bc3ca;
}

.transformation-ventures-row {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 11px 0;
}

.transformation-ventures-row > div {
  display: grid;
  gap: 3px;
}

.transformation-ventures-row strong {

}

.transformation-ventures-row span,
.transformation-ventures-row a {
  color: #b9c7c4;

}

.transformation-ventures-row a {
  color: #9bc3ca;
}

.ventures-correction {
  grid-column: 1 / -1;
  max-width: 72ch;
}

.ventures-correction summary,
.transformation-ventures-directory-row summary {
  cursor: pointer;
  min-height: 44px;
  padding-block: 12px;
}

.ventures-correction form,
.ventures-correction label {
  display: grid;
  gap: 8px;
}

.ventures-correction form {
  gap: 16px;
  padding-block: 12px;
}

.ventures-correction textarea,
.ventures-correction select {

  min-height: 44px;
  max-width: 100%;
  width: 100%;
}

.transformation-ventures-directory-row {
  overflow-wrap: anywhere;
}

.transformation-thread-state {
  display: grid;
  gap: 18px;
  max-width: 72ch;
}

.transformation-thread-heading,
.transformation-thread-action {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.transformation-thread-heading h3 {
  color: #101512;

  margin: 0;
  text-wrap: balance;
}

.transformation-thread-heading p,
.transformation-thread-answer,
.transformation-thread-unknown,
.transformation-thread-boundary,
.transformation-thread-action p {
  color: #59645f;

  margin: 0;
}

.transformation-thread-answer {
  color: #1a2821;

}

.transformation-thread-unknown {
  max-width: 67ch;
}

.transformation-unlock-list,
.transformation-method-list {
  border-top: 1px solid var(--line);
  counter-reset: transformation-unlock;
  display: grid;
  list-style: none;
  margin: 0;
  padding: 0;
}

.transformation-unlock-list li,
.transformation-method-list li {
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px 14px;
  grid-template-columns: 22px minmax(160px, 0.42fr) minmax(0, 1fr);
  padding: 12px 0;
}

.transformation-unlock-list li::before,
.transformation-method-list li::before {
  color: #75817b;
  content: counter(transformation-unlock, decimal-leading-zero);
  counter-increment: transformation-unlock;

}

.transformation-unlock-list strong,
.transformation-method-list strong {
  color: #13211a;

}

.transformation-unlock-list span,
.transformation-method-list span {
  color: #627069;

}

.transformation-thread-action {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.transformation-thread-action > div {
  display: grid;
  gap: 5px;
}

.transformation-thread-action strong {
  color: #14221b;

}

.transformation-thread-action .inline-route-button,
.transformation-thread-action .transform-records-route {
  background: #0d5144;
  border-color: #0d5144;
  color: #ffffff;
  flex: 0 0 auto;
  min-height: 48px;
}

.transformation-thread-boundary {
  border-top: 1px solid var(--line);

  padding-top: 14px;
}

.transformation-case-facts,
.transformation-evidence-facts {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  margin: 0;
}

.transformation-case-facts > div,
.transformation-evidence-facts > div {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(126px, 0.25fr) minmax(0, 1fr);
  padding: 11px 0;
}

.transformation-case-facts > div + div,
.transformation-evidence-facts > div + div {
  border-top: 1px solid var(--line);
}

.transformation-case-facts dt,
.transformation-evidence-facts dt {
  color: #65716a;

}

.transformation-case-facts dd,
.transformation-evidence-facts dd {
  color: #17241d;

  margin: 0;
}

.transformation-case-evidence {
  border-bottom: 1px solid #d9ddd9;
  border-top: 1px solid #d9ddd9;
}

.transformation-case-evidence > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  list-style: none;
  min-height: 64px;
  padding: 10px 0;
}

.transformation-case-evidence > summary::-webkit-details-marker {
  display: none;
}

.transformation-case-evidence > summary > span:first-child {
  display: grid;
  gap: 4px;
}

.transformation-case-evidence strong {
  color: #16231c;

}

.transformation-case-evidence small,
.transformation-evidence-detail p {
  color: #65716a;

}

.transformation-evidence-detail {
  display: grid;
  gap: 14px;
  padding: 4px 0 18px;
}

.transformation-evidence-detail p {
  margin: 0;
}

.transformation-lineage {
  display: grid;
  gap: 5px;
}

.transformation-lineage strong {

}

.transformation-lineage span {
  color: #59645f;

  overflow-wrap: anywhere;
}

.transformation-detail-boundary {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

@media (max-width: 720px) {
  body[data-shell="decision-thread"] .sidebar {
    height: 58px;
    padding: 0 14px;
  }

  body[data-shell="decision-thread"] .brand h1 {

  }

  body[data-shell="decision-thread"] .mobile-nav-drawer > summary {
    min-width: 108px;
    padding: 6px 9px;
  }

  body[data-shell="decision-thread"] main {
    min-height: calc(100vh - 58px);
    padding: 20px 10px 54px;
  }

  body[data-view="transformability"] .transform-layout .packet-intro-row {
    gap: 14px;
    padding: 0 8px 20px;
  }

  body[data-view="transformability"] .packet-intro-head h3 {

    max-width: 18ch;
  }

  body[data-view="transformability"] .packet-intro-head .mini-note,
  body[data-view="transformability"] .packet-intro-row .brief-headline {

  }

  .transform-entry-gate {
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
  }

  .transform-entry-gate > section,
  .transform-entry-gate > section + section,
  .transform-entry-gate .transform-thread-next {
    border-left: 0;
    border-top: 1px solid var(--line);
    grid-column: 1;
    grid-template-columns: minmax(0, 1fr);
    padding: 13px 0;
  }

  .transform-entry-gate > section:first-child {
    border-top: 0;
  }

  .transform-entry-gate .inline-route-button,
  .transform-entry-gate small {
    grid-column: 1;
    width: 100%;
  }

  body[data-view="transformability"] .transform-disclosure-summary {
    padding-left: 8px;
    padding-right: 8px;
  }

  body[data-view="transformability"] .transformation-note-layout {
    gap: 14px;
    padding: 0 8px;
  }

  .transformation-case-thread {
    padding: 18px 0;
  }

  .transformation-ventures-loop {
    gap: 18px;
    padding: 22px 18px;
  }

  .transformation-ventures-head,
  .transformation-ventures-flow,
  .transformation-ventures-row {
    grid-template-columns: 1fr;
  }

  .transformation-ventures-snapshot {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 0;
    padding-top: 14px;
  }

  .transformation-ventures-flow > div + div {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.17);
  }

  .private-transformation-head,
  .private-ventures-row {
    grid-template-columns: 1fr;
  }

  .private-transformation-actions {
    justify-items: start;
  }

  .transformation-thread-state {
    gap: 14px;
  }

  .transformation-thread-heading,
  .transformation-thread-action {
    display: grid;
    gap: 12px;
  }

  .transformation-thread-heading h3 {

  }

  .transformation-unlock-list li,
  .transformation-method-list li {
    grid-template-columns: 20px minmax(0, 1fr);
  }

  .transformation-unlock-list span,
  .transformation-method-list span {
    grid-column: 2;
  }

  .transformation-thread-action .inline-route-button,
  .transformation-thread-action .transform-records-route {
    width: 100%;
  }

  .transformation-case-facts > div,
  .transformation-evidence-facts > div {
    gap: 5px;
    grid-template-columns: 1fr;
  }
}

/* Records Needed: one editorial proof brief. The intake library and data-room
   scaffolding remain available to the API, but do not compete with the current
   human decision. */
body[data-view="ingestion"] #primary-decision-banner,
body[data-view="ingestion"] #metrics,
body[data-view="ingestion"] .ops-drawer {
  display: none;
}

body[data-view="ingestion"] .action-status {
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  margin: 0 0 10px;
  min-height: 0;
  padding: 9px 12px;
}

body[data-view="ingestion"] .action-status.is-default {
  display: none;
}

body[data-view="ingestion"] .topbar {
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
  padding-bottom: 20px;
}

body[data-view="ingestion"] .topbar h2 {

}

body[data-view="ingestion"] .records-request-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 14px;
  overflow: hidden;
}

body[data-view="ingestion"] .ingestion-detail-stack {
  padding: 0;
}

body[data-view="ingestion"] .records-zero-state-row {
  background: var(--panel);
  border: 0;
  border-radius: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 152px;
  padding: 28px;
}

body[data-view="ingestion"] .records-zero-state-row strong {

}

body[data-view="ingestion"] .records-zero-state-row small {
  border-radius: 4px;
  color: var(--muted);
}

.proof-request-brief {
  background: var(--panel);
  display: block;
}

.proof-request-brief-header {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 22px 28px 15px;
}

.proof-request-brief-header > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.proof-request-brief-header h3 {
  color: var(--ink);

  margin: 0;
}

.proof-request-brief-header p {
  color: var(--muted);

  margin: 0;
}

.proof-request-status {
  flex: 0 0 auto;
  margin-top: 4px;
}

.proof-request-context-strip {
  align-items: center;
  background: #f8faf8;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;

  gap: 5px 0;

  padding: 9px 28px;
}

.proof-request-context-strip > * {
  align-items: center;
  display: inline-flex;
}

.proof-request-context-strip > * + *::before {
  background: var(--line-strong);
  content: "";
  height: 12px;
  margin: 0 10px;
  width: 1px;
}

.proof-request-context-strip strong {
  color: #765817;

}

.proof-request-brief-body {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(245px, .45fr);
}

.proof-request-reading {
  min-width: 0;
  padding: 20px 28px 22px;
}

.proof-request-question {
  display: grid;
  gap: 6px;
  max-width: 75ch;
}

.proof-request-question strong,
.proof-request-facts dt,
.proof-request-brief-rail > strong,
.proof-request-owner label > span,
.proof-request-owner > div > strong {
  color: var(--muted);

}

.proof-request-question p {
  color: var(--ink);

  margin: 0;
}

.proof-request-facts {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0 0;
}

.proof-request-facts > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 13px 16px 14px 0;
}

.proof-request-facts > div + div {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.proof-request-facts dd {
  color: var(--ink);

  margin: 0;
  overflow-wrap: anywhere;
}

.proof-request-facts small,
.proof-request-brief-rail p,
.proof-request-primary-action p,
.proof-request-owner p {
  color: var(--muted);

  margin: 0;
}

.proof-request-lock {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin: 15px 0 0;
}

.proof-request-lock strong {
  color: #765817;

}

.proof-request-lock span {
  color: var(--muted);

}

.proof-request-primary-action {
  align-items: center;
  display: grid;
  gap: 13px;
  grid-template-columns: max-content minmax(0, 1fr);
  padding-top: 17px;
}

.proof-request-primary-action .record-request-action.primary {
  background: #163d34;
  border-color: #163d34;
  border-radius: 6px;

  min-height: 44px;
  padding: 9px 15px;
}

.proof-request-primary-action .record-request-action.primary:hover,
.proof-request-primary-action .record-request-action.primary:focus-visible {
  background: #205547;
  border-color: #205547;
}

.proof-request-brief-rail {
  background: #f3f7f4;
  border-left: 1px solid var(--line);
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
  padding: 22px 22px;
}

.proof-request-brief-rail p + p {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.proof-request-owner {
  align-items: end;
  border-top: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(220px, .62fr) minmax(0, 1fr);
  padding: 14px 0 0;
}

.proof-request-owner label,
.proof-request-owner > div {
  display: grid;
  gap: 5px;
}

.proof-request-owner select {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);

  min-height: 44px;
  padding: 8px 10px;
}

.proof-request-alternatives,
.proof-request-editor {
  border-top: 1px solid var(--line);
  border-radius: 0;
  margin: 0;
}

.proof-request-alternatives > summary,
.proof-request-editor > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  min-height: 52px;
  padding: 11px 28px;
}

.proof-request-alternatives > summary span,
.proof-request-editor > summary span {
  color: var(--ink);

}

.proof-request-alternatives > summary strong,
.proof-request-editor > summary strong {
  color: var(--muted);

}

.proof-request-alternatives[open] > summary,
.proof-request-editor[open] > summary {
  background: #f8faf8;
  border-bottom: 1px solid var(--line);
}

.proof-request-alternatives .record-request-options,
.proof-request-editor-body {
  padding: 14px 28px 20px;
}

.proof-request-editor-body {
  display: grid;
  gap: 12px;
}

.proof-request-editor-body .record-request-actions {
  border-top: 1px solid var(--line);
  margin-top: 2px;
  padding-top: 12px;
}

@media (max-width: 760px) {
  body[data-view="ingestion"] .topbar { padding-bottom: 13px; }
  body[data-view="ingestion"] .action-status:not(.is-default) { display: flex; }
  body[data-view="ingestion"] .topbar h2 { font-size: 26px; overflow: visible; text-overflow: clip; white-space: normal; }
  body[data-view="ingestion"] .records-request-panel { margin-top: 10px; }
  body[data-view="ingestion"] .records-zero-state-row { min-height: 132px; padding: 18px 16px; }
  .proof-request-brief-header { gap: 10px; padding: 16px 16px 11px; }
  .proof-request-brief-header h3 { font-size: 23px; }
  .proof-request-brief-body { grid-template-columns: minmax(0, 1fr); }
  .proof-request-context-strip { font-size: 9.5px; padding: 7px 16px; }
  .proof-request-context-strip > * + *::before { margin: 0 7px; }
  .proof-request-reading { padding: 13px 16px 14px; }
  .proof-request-question p { font-size: 14px; line-height: 1.34; }
  .proof-request-facts { gap: 0; grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
  .proof-request-facts > div { padding: 8px 0; }
  .proof-request-facts > div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .proof-request-facts > div:nth-child(3) { display: none; }
  .proof-request-lock { margin-top: 10px; }
  .proof-request-lock span { display: none; }
  .proof-request-primary-action { gap: 7px; grid-template-columns: minmax(0, 1fr); padding-top: 11px; }
  .proof-request-primary-action .record-request-action.primary { width: 100%; }
  .proof-request-primary-action p { font-size: 10px; }
  .proof-request-brief-rail { display: none; }
  .proof-request-owner { align-items: start; gap: 8px; grid-template-columns: minmax(0, 1fr); padding: 10px 0 0; }
  .proof-request-owner > div { display: none; }
  .proof-request-alternatives > summary, .proof-request-editor > summary { min-height: 48px; padding: 10px 16px; }
  .proof-request-alternatives .record-request-options, .proof-request-editor-body { padding: 12px 16px 16px; }
}

/* Companies & Relationships: one controlled-company dossier first, then the
   governed register. Public discovery stays a separate, closed market map. */
body[data-view="overview"] #action-status,
body[data-view="overview"] #primary-decision-banner,
body[data-view="overview"] #metrics,
body[data-view="overview"] .ops-drawer {
  display: none;
}

body[data-view="overview"] .topbar {
  display: none;
}

.company-access-dossier {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.company-dossier-header {
  align-items: start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 0 0 28px;
}

.company-dossier-header > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.company-dossier-stage {
  color: var(--muted);

}

.company-dossier-header h3 {
  color: var(--ink);

  margin: 0;
  max-width: 30ch;
  text-wrap: balance;
}

.company-dossier-header p {
  color: var(--muted);

  margin: 0;
}

.company-dossier-status {
  color: var(--accent);
  flex: 0 0 auto;

  padding: 4px 0 3px;
}

.company-dossier-status.warn {
  color: #7a5b18;
}

.company-dossier-status.bad {
  color: var(--danger);
}

.company-review-thread {
  border-top: 1px solid #cbd1cc;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1120px;
}

.company-review-thread > section {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 21px 24px 22px 0;
}

.company-review-thread > section + section {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.company-review-thread h4 {
  color: var(--muted);

  margin: 0;

}

.company-review-thread p,
.company-review-thread small {
  color: var(--muted);

  margin: 0;
  max-width: 68ch;
}

.company-thread-answer > strong {
  color: var(--ink);

}

.company-thread-unknown > strong,
.company-thread-next strong {
  color: var(--ink);

}

.company-thread-next {
  align-content: start;
  grid-template-columns: minmax(0, 1fr);
}

.company-thread-next > div {
  display: grid;
  gap: 6px;
}

.company-thread-governance {
  color: var(--muted);
  display: grid;

  gap: 3px;

  margin-top: 3px;
}

.company-thread-governance strong {
  color: var(--ink);

}

.company-thread-next small {
  grid-column: auto;
}

.company-thread-next button {
  align-items: center;
  background: #163d34;
  border: 1px solid #163d34;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;

  justify-content: center;
  min-height: 44px;
  padding: 9px 15px;
}

.company-thread-next button:hover,
.company-thread-next button:focus-visible {
  background: #205547;
  border-color: #205547;
}

.company-thread-next button:disabled {
  background: var(--panel-soft);
  border-color: var(--line);
  color: var(--muted);
  cursor: not-allowed;
}

#view-overview .overview-shell.target-cockpit {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 28px;
}

#view-overview .target-workbench.panel {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  display: grid;
  overflow: hidden;
}

#view-overview .target-workbench > .panel-header,
#view-overview .target-workbench-jump,
#view-overview .overview-rail {
  display: none;
}

#view-overview #target-workbench-drawer,
#view-overview .stage-handoff-gates,
#view-overview .target-discovery-ledger {
  background: var(--panel);
  border: 0;
  border-radius: 0;
  margin: 0;
  max-width: none;
  overflow: hidden;
  width: 100%;
}

#view-overview #target-workbench-drawer {
  order: 1;
}

#view-overview .stage-handoff-gates {
  border-top: 1px solid var(--line);
  order: 2;
}

#view-overview .target-discovery-ledger {
  border-top: 1px solid var(--line);
  order: 3;
}

#view-overview #target-workbench-drawer > summary,
#view-overview .stage-handoff-gates > summary,
#view-overview .target-discovery-ledger > summary,
#view-overview .target-full-list > summary {
  align-items: center;
  background: var(--panel);
  border: 0;
  cursor: pointer;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  min-height: 52px;
  padding: 11px 16px;
}

#view-overview #target-workbench-drawer[open] > summary,
#view-overview .stage-handoff-gates[open] > summary,
#view-overview .target-discovery-ledger[open] > summary,
#view-overview .target-full-list[open] > summary {
  background: #f8faf8;
  border-bottom: 1px solid var(--line);
}

#view-overview #target-workbench-drawer > summary > span,
#view-overview .stage-handoff-gates > summary > span,
#view-overview .target-discovery-ledger > summary > span,
#view-overview .target-full-list > summary > span {
  color: var(--ink);

}

#view-overview #target-workbench-drawer > summary > strong,
#view-overview .stage-handoff-gates > summary > strong,
#view-overview .target-discovery-ledger > summary > strong,
#view-overview .target-full-list > summary > strong {
  color: var(--muted);

  text-align: right;
}

#view-overview .target-workbench-body {
  border-top: 0;
  gap: 0;
  padding: 0;
}

#view-overview .target-tools {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  gap: 10px;
  grid-template-columns: minmax(230px, 1fr) minmax(190px, 240px);
  padding: 12px 16px;
}

#view-overview .target-tools input,
#view-overview .target-tools select {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: none;
  min-height: 44px;
}

#view-overview .target-workbench-body > .target-queue-shell {
  border: 0;
  border-radius: 0;
  max-height: none;
  min-height: 0;
  overflow: visible;
  padding: 0;
}

#view-overview .target-focus-head,
#view-overview .target-focus-queue .target-row-compact {
  gap: 14px;
  grid-template-columns: minmax(250px, 0.9fr) minmax(210px, 0.75fr) minmax(340px, 1.35fr);
}

#view-overview .target-focus-head {
  background: #f8faf8;
  border-bottom: 1px solid var(--line);
  color: var(--muted);

  padding: 9px 16px;

}

#view-overview .target-focus-queue {
  gap: 0;
}

#view-overview .target-focus-queue .target-row-compact {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  min-height: 92px;
  padding: 13px 16px;
}

#view-overview .target-focus-queue .target-row-compact:hover,
#view-overview .target-focus-queue .target-row-compact:focus-visible {
  background: #f8faf8;
  box-shadow: none;
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

#view-overview .target-focus-queue .target-row-main {
  gap: 4px;
}

#view-overview .target-focus-queue .target-row-identity {
  align-items: baseline;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

#view-overview .target-focus-queue .target-row-main .target-name {

}

#view-overview .target-focus-queue .target-inspect-affordance {
  color: var(--accent);
  flex: 0 0 auto;

}

#view-overview .target-focus-queue .queue-governed-source {
  color: var(--muted);
  display: block;

}

#view-overview .target-focus-queue .target-row-main .lane-pill {
  background: transparent;
  border: 0;
  color: var(--muted);

  justify-self: start;
  max-width: 100%;
  padding: 0;

}

#view-overview .target-focus-queue .ownership-inline {
  display: -webkit-box;

  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#view-overview .target-focus-queue .queue-cell {
  align-content: start;
  gap: 4px;
}

#view-overview .target-focus-queue .queue-label {
  color: var(--muted);
  display: block;

}

#view-overview .target-focus-queue .queue-subtle {
  color: var(--muted);
  display: block;

}

#view-overview .target-focus-queue .next-cell strong {

}

#view-overview .target-full-list {
  border: 0;
  border-radius: 0;
  margin: 0;
}

#view-overview .target-discovery-list {
  border: 0;
  margin: 0;
  padding: 18px 16px 20px;
}

#view-overview .stage-handoff-gates-grid,
#view-overview .stage-handoff-gates .boundary-note {
  margin-left: 16px;
  margin-right: 16px;
}

@media (max-width: 1040px) {
  #view-overview .target-focus-head,
  #view-overview .target-focus-queue .target-row-compact {
    grid-template-columns: minmax(220px, 0.9fr) minmax(180px, 0.75fr) minmax(280px, 1.35fr);
  }
}

@media (max-width: 760px) {
  body[data-view="overview"] .topbar {
    display: none;
  }

  .company-dossier-header {
    gap: 12px;
    padding: 0 8px 18px;
  }

  .company-dossier-header h3 {

    max-width: 21ch;
  }

  .company-dossier-header p {

  }

  .company-review-thread {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin: 0 8px;
  }

  .company-review-thread > section {
    padding: 14px 0;
  }

  .company-review-thread > section + section {
    border-left: 0;
    padding-left: 0;
  }

  .company-thread-next {
    align-items: stretch;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr);
    order: -1;
  }

  .company-thread-next button {
    width: 100%;
  }

  .company-thread-next small {
    grid-column: auto;
  }

  #view-overview .overview-shell.target-cockpit {
    margin-top: 10px;
  }

  #view-overview #target-workbench-drawer > summary,
  #view-overview .stage-handoff-gates > summary,
  #view-overview .target-discovery-ledger > summary,
  #view-overview .target-full-list > summary {
    min-height: 52px;
    padding: 10px 12px;
  }

  #view-overview .target-tools {
    grid-template-columns: minmax(0, 1fr);
    padding: 10px 12px;
  }

  #view-overview .target-focus-head {
    display: none;
  }

  #view-overview .target-focus-queue .target-row-compact {
    gap: 9px;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 12px;
  }

  #view-overview .target-focus-queue .queue-cell {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 10px;
    grid-template-columns: 84px minmax(0, 1fr);
    padding-top: 8px;
  }

  #view-overview .target-focus-queue .target-row-main .lane-pill {
    grid-column: 1;
  }

  #view-overview .target-focus-queue .target-row-identity {
    align-items: center;
  }

  #view-overview .target-focus-queue .next-cell strong {
    display: block;
    overflow: visible;
    overflow-wrap: anywhere;
    -webkit-box-orient: initial;
    -webkit-line-clamp: unset;
  }

  #view-overview .target-discovery-list {
    padding: 14px 12px 18px;
  }
}

@media (max-width: 460px) {
  .company-dossier-header {
    align-items: start;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .company-dossier-header h3 {

  }

}

/* Source mutations are exceptional, but explicitly enabled actions must remain reachable. */
body[data-shell="decision-thread"].source-writes-enabled .topbar {
  display: flex;
}

body[data-shell="decision-thread"].source-writes-enabled .topbar .ops-drawer {
  display: block;
}

html.stakeholder-presentation body[data-shell="decision-thread"] .topbar {
  display: flex;
}

html.stakeholder-presentation body[data-shell="decision-thread"] .topbar .page-heading {
  display: block;
}

body[data-shell="decision-thread"].source-writes-enabled #action-status:not(.is-default) {
  display: block;
  margin: 0 auto 18px;
  max-width: 1080px;
}

/* Protected private-case discovery and exact-company review. */
.private-request-entry { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; }
.private-request-entry span { color: var(--muted); }
.private-request-draft { border-bottom: 1px solid var(--line); padding: 0 0 24px; margin: 0 0 24px; }
.private-request-draft h5 { font-size: 1.3rem; margin: 0 0 10px; }
.private-request-draft > p { max-width: 72ch; line-height: 1.6; }
.private-request-draft fieldset { border: 0; padding: 0; margin: 20px 0; min-width: 0; display: grid; gap: 18px; }
.private-request-draft legend { padding: 0 0 14px; color: var(--muted); }
.private-request-draft label { display: grid; gap: 7px; min-width: 0; }
.private-request-draft label > span { font-weight: 600; }
.private-request-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
.private-request-draft input, .private-request-draft select, .private-request-draft textarea { width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; font: inherit; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel); color: var(--text); }
.private-request-draft textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.private-request-draft button { width: fit-content; min-height: 44px; white-space: normal; text-align: left; }
.private-request-draft button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.private-request-draft :disabled { cursor: not-allowed; }
.private-request-recovery { display: flex; flex-wrap: wrap; align-items: start; gap: 10px; }
.private-request-recovery details { flex-basis: 100%; }
.private-request-recovery dl { display: grid; gap: 12px; }
.private-request-recovery dd { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.private-request-draft :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 700px) { .private-request-fields { grid-template-columns: minmax(0, 1fr); } }
#view-overview .private-case-register {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
  background: linear-gradient(180deg, var(--panel) 0%, var(--accent-soft) 180%);
}

.private-case-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.private-case-card {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(120px, 0.7fr)) auto;
  padding: 15px 16px;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.private-case-card:hover,
.private-case-card:focus-visible,
.private-case-card.selected {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(18, 24, 23, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.private-case-card-main,
.private-case-card > div {
  display: grid;
  gap: 4px;
}

.private-case-card-main > strong {
  color: var(--ink);

}

.private-case-card span,
.private-case-card > div > span {
  color: var(--muted);

}

.private-case-card > div > strong {
  color: var(--ink);

}

.private-case-card .private-case-open {
  color: var(--accent);

  white-space: nowrap;
}

.private-case-detail {
  background: var(--panel-soft);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.private-case-detail-head {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.private-case-detail-head h4,
.private-stage-record h5 {
  margin: 3px 0 6px;
}

.private-case-detail-head p,
.private-stage-record p,
.private-payload-body p {
  color: var(--muted);

  margin: 0;
}

.private-case-detail-counts {
  display: flex;
  gap: 8px;
}

.private-case-detail-counts span,
.private-stage-record-meta span {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);

  padding: 6px 9px;
  white-space: nowrap;
}

.private-stage-stack {
  display: grid;
  gap: 9px;
}

.private-stage-record,
.private-case-sources,
.private-payload-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.private-stage-record > summary,
.private-case-sources > summary,
.private-payload-section > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 14px;
}

.private-stage-record > summary strong,
.private-case-sources > summary strong,
.private-payload-section > summary strong {
  color: var(--accent);

  white-space: nowrap;
}

.private-stage-record-body {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.private-stage-record-head {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.private-stage-record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: end;
}

.private-payload-section > summary {
  padding: 10px 12px;
}

.private-payload-body {
  border-top: 1px solid var(--line);
  max-height: 560px;
  overflow: auto;
  padding: 12px;
}

.private-structured-list,
.private-case-sources ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.private-structured-list > li,
.private-case-sources li {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
}

.private-structured-map {
  display: grid;
  gap: 8px;
  margin: 0;
}

.private-structured-map > div {
  display: grid;
  gap: 4px;
  grid-template-columns: minmax(110px, 0.32fr) minmax(0, 1fr);
}

.private-structured-map dt {
  color: var(--ink);

}

.private-structured-map dd {
  margin: 0;
  min-width: 0;
}

.private-case-sources > ul {
  border-top: 1px solid var(--line);
  padding: 12px;
}

.private-case-sources li div {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.private-case-sources li small,
.private-case-unknown {
  color: var(--muted);

}

@media (max-width: 900px) {
  .private-case-card {
    grid-template-columns: minmax(0, 1fr) minmax(120px, 0.45fr);
  }

  .private-case-card .private-case-open {
    justify-self: end;
  }
}

@media (max-width: 620px) {
  .private-case-card,
  .private-case-detail-head,
  .private-stage-record-head,
  .private-structured-map > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .private-case-detail-counts,
  .private-stage-record-meta {
    flex-wrap: wrap;
    justify-content: start;
  }

  .private-case-card .private-case-open {
    justify-self: start;
  }
}

/* Final private-workbench cascade lock. The legacy private record renderer is
   retained above for compatibility, but it must not reintroduce its narrow
   two-column document-dump geometry into the operating workbench. */
.target-modal.private-case-open .private-case-detail-sheet {
  display: block;
  grid-template-columns: minmax(0, 1fr);
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.target-modal.private-case-open .private-case-detail-sheet .target-detail-workspace {
  background: #f5f7f6;
  height: 100%;
  overflow: auto;
  padding: 0;
  min-width: 0;
  width: 100%;
}

.target-modal.private-case-open .private-case-detail {
  background: transparent;
  border: 0;
  border-radius: 0;
  gap: 0;
  max-width: 1380px;
  min-width: 0;
  padding: 0;
  width: 100%;
}

.target-modal.private-case-open .private-case-detail > *,
.target-modal.private-case-open .private-stage-workbench,
.target-modal.private-case-open .private-stage-panel,
.target-modal.private-case-open .private-transformation-sheet,
.target-modal.private-case-open .private-stage-sheet {
  max-width: 100%;
  min-width: 0;
}

.target-modal.private-case-open .private-stage-workbench,
.target-modal.private-case-open .private-stage-panel,
.target-modal.private-case-open .private-transformation-sheet,
.target-modal.private-case-open .private-stage-sheet {
  width: 100%;
}

.target-modal.private-case-open .private-transformation-sheet,
.target-modal.private-case-open .private-stage-sheet {
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
}

.target-modal.private-case-open .private-stage-nav {
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.target-modal.private-case-open .private-case-detail-head {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 18px 22px;
}

.target-modal.private-case-open .private-case-detail-head h4 {

  margin: 2px 0 5px;
}

.target-modal.private-case-open .private-case-detail-head p {
  color: var(--muted);

  margin: 0;
  max-width: 78ch;
}

.target-modal.private-case-open .private-case-sources {
  border: 1px solid var(--line-strong);
  border-radius: 0;
  margin: 0 22px 28px;
}

@media (max-width: 700px) {
  .target-modal.private-case-open .private-case-detail-head {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px 15px;
  }

  .target-modal.private-case-open .private-case-detail-head > div,
  .target-modal.private-case-open .private-case-detail-head p,
  .target-modal.private-case-open .private-case-detail-counts {
    max-width: 100%;
    min-width: 0;
  }

  .target-modal.private-case-open .private-case-sources {
    margin: 0 15px 22px;
  }
}
/* ========================================================================== */
/* HEADWATER CURRENT · v96 replacement visual world                           */
/* ========================================================================== */

body.headwater-current {
  --hw-paper: #f2f0e8;
  --hw-paper-bright: #fbfaf6;
  --hw-ink: #111b27;
  --hw-atlantic: #102d3e;
  --hw-atlantic-deep: #0a2332;
  --hw-current: #17607b;
  --hw-current-soft: #dce7e7;
  --hw-mist: #cfd8d5;
  --hw-stone: #66716f;
  --hw-rule: rgba(17, 27, 39, 0.17);
  --hw-rule-dark: rgba(239, 241, 235, 0.2);
  --hw-copper: #f09a3e;
  --hw-copper-soft: #f6dfc4;
  --hw-risk: #a34337;
  --hw-success: #206648;
  --hw-display: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --hw-editorial: Georgia, "Times New Roman", serif;
  --hw-body: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  color: var(--hw-ink);
  background: var(--hw-paper);

}

body.headwater-current [hidden] {
  display: none !important;
}

body.headwater-current * {
  box-sizing: border-box;
}

body.headwater-current ::selection {
  color: var(--hw-paper-bright);
  background: var(--hw-current);
}

body.headwater-current .app-shell {
  display: block;
  min-height: 100vh;
  background: var(--hw-paper);
}

body.headwater-current .sidebar {
  position: sticky;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  width: 100%;
  height: 78px;
  min-height: 78px;
  padding: 0 clamp(28px, 5vw, 84px);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  color: var(--hw-ink);
  background: rgba(242, 240, 232, 0.96);
  border: 0;
  border-bottom: 1px solid var(--hw-rule);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

body.headwater-current .brand {
  display: flex;
  min-width: max-content;
  align-items: center;
  gap: 12px;
  padding: 0;
}

body.headwater-current .brand-mark {
  display: grid !important;
  width: 25px;
  height: 25px;
  place-items: center;
  color: var(--hw-current);
  background: transparent;
  border: 0;
  border-radius: 0;
}

body.headwater-current .brand-mark svg {
  display: block;
  width: 25px;
  height: 25px;
  overflow: visible;
}

body.headwater-current .brand-mark circle,
body.headwater-current .brand-mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.headwater-current .brand h1 {
  margin: 0;
  color: var(--hw-ink);

}

body.headwater-current .brand h1 span {

}

body.headwater-current .brand p {
  display: none;
}

body.headwater-current .sidebar nav {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
}

body.headwater-current .nav-section-label,
body.headwater-current .nav-group-label,
body.headwater-current .sidebar-footer {
  display: none;
}

body.headwater-current .nav-primary {
  display: flex !important;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.6vw, 42px);
}

body.headwater-current .nav-item {
  position: relative;
  width: auto;
  min-height: 44px;
  padding: 2px 0;
  color: #304250;
  background: transparent;
  border: 0;
  border-radius: 0;

  text-align: left;
  white-space: nowrap;
}

body.headwater-current .nav-item::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--hw-copper);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.headwater-current .nav-item:hover,
body.headwater-current .nav-item.active {
  color: var(--hw-ink);
  background: transparent;
}

body.headwater-current .nav-item:hover::after,
body.headwater-current .nav-item.active::after {
  transform: scaleX(1);
  transform-origin: left center;
}

body.headwater-current .nav-drawer {
  display: block !important;
  position: relative;
  margin-left: 26px;
}

body.headwater-current .nav-drawer > summary {
  min-height: 44px;
  padding: 0;
  color: #304250;
  background: transparent;
  border: 0;
  border-radius: 0;

}

body.headwater-current .nav-drawer[open] > .nav-secondary {
  position: absolute;
  top: 48px;
  right: 0;
  display: grid;
  width: 220px;
  padding: 12px 18px;
  background: var(--hw-paper-bright);
  border: 0;
  box-shadow: 0 18px 44px rgba(10, 35, 50, 0.16);
}

body.headwater-current .mobile-nav-drawer {
  display: none;
}

body.headwater-current main {
  position: relative;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0 0 100px;
  overflow: clip;
  background: var(--hw-paper);
}

body.headwater-current .topbar {
  position: relative;
  display: grid;
  min-height: 230px;
  margin: 0;
  padding: 38px clamp(28px, 7vw, 112px) 52px;
  overflow: hidden;
  color: #f5f3ec;
  background: var(--hw-atlantic);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.headwater-current[data-view="overview"] .topbar {
  display: none;
}

body.headwater-current .headwater-current-landscape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

body.headwater-current .current-rings {
  stroke: rgba(210, 224, 221, 0.11);
  stroke-width: 1;
}

body.headwater-current .current-line {
  fill: none;
  stroke-width: 42;
  vector-effect: non-scaling-stroke;
}

body.headwater-current .current-line-one {
  stroke: rgba(205, 216, 213, 0.16);
}

body.headwater-current .current-line-two {
  stroke: rgba(117, 155, 164, 0.18);
}

body.headwater-current .page-heading {
  position: relative;
  z-index: 2;
  align-self: end;
  width: min(880px, 74vw);
}

body.headwater-current #page-kicker,
body.headwater-current .role-mode-strip {
  display: none;
}

body.headwater-current .topbar h2 {
  max-width: 12ch;
  margin: 0;
  color: #f7f5ef;

  text-wrap: balance;
}

body.headwater-current .page-subtitle {
  max-width: 62ch;
  margin: 22px 0 0;
  color: #cbd8d8;

}

body.headwater-current .ops-drawer {
  position: absolute;
  z-index: 4;
  top: 44px;
  right: clamp(28px, 7vw, 112px);
  width: auto;
}

body.headwater-current .ops-drawer > summary {
  min-height: 44px;
  padding: 10px 14px;
  color: #f4f1e9;
  background: rgba(6, 25, 36, 0.35);
  border: 1px solid rgba(239, 241, 235, 0.26);
  border-radius: 999px;

}

body.headwater-current .ops-drawer > summary small {
  color: #b9c8c8;
}

body.headwater-current .ops-drawer[open] .topbar-actions {
  position: absolute;
  top: 52px;
  right: 0;
  display: grid;
  width: min(330px, calc(100vw - 56px));
  padding: 16px;
  background: var(--hw-paper-bright);
  box-shadow: 0 20px 48px rgba(5, 23, 34, 0.24);
}

body.headwater-current .ops-drawer[open] .topbar-actions button {
  color: var(--hw-ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hw-rule);
  border-radius: 0;
  text-align: left;
}

body.headwater-current #stakeholder-presentation-boundary,
body.headwater-current #action-status,
body.headwater-current #primary-decision-banner,
body.headwater-current #metrics,
body.headwater-current .view {
  width: min(1320px, calc(100% - clamp(56px, 10vw, 168px)));
  margin-right: auto;
  margin-left: auto;
}

body.headwater-current #action-status {
  display: flex;
  min-height: 48px;
  margin-top: 0;
  padding: 13px 0;
  align-items: center;
  gap: 18px;
  color: #31424b;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hw-rule);
  border-radius: 0;
}

body.headwater-current #action-status strong {
  color: var(--hw-current);

}

body.headwater-current .release-gate-facts dt {

}

body.headwater-current #action-status span {

}

body.headwater-current #primary-decision-banner {
  display: none !important;
  min-height: 0;
  margin-top: 38px;
  padding: 0 0 34px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 56px;
  color: var(--hw-ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hw-rule);
  border-radius: 0;
  box-shadow: none;
}

body.headwater-current .primary-decision-copy {
  max-width: 800px;
}

body.headwater-current .primary-decision-copy .section-label {
  display: none;
}

body.headwater-current #primary-decision-title {
  display: block;
  max-width: 24ch;
  color: var(--hw-ink);

  text-wrap: balance;
}

body.headwater-current #primary-decision-summary {
  max-width: 72ch;
  margin-top: 14px;
  color: #596664;
}

body.headwater-current .primary-decision-freshness {
  margin-top: 10px;
  color: var(--hw-current);

}

body.headwater-current .primary-decision-meta {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

body.headwater-current button,
body.headwater-current .button,
body.headwater-current [role="button"] {

}

body.headwater-current button:focus-visible,
body.headwater-current summary:focus-visible,
body.headwater-current a:focus-visible,
body.headwater-current input:focus-visible,
body.headwater-current select:focus-visible,
body.headwater-current textarea:focus-visible {
  outline: 2px solid var(--hw-copper);
  outline-offset: 4px;
}

body.headwater-current .primary-decision-route,
body.headwater-current .today-primary-route,
body.headwater-current .inline-route-button,
body.headwater-current .primary-action,
body.headwater-current .button-primary {
  min-height: 44px;
  padding: 11px 18px;
  color: #102435;
  background: var(--hw-copper);
  border: 1px solid var(--hw-copper);
  border-radius: 0;
  box-shadow: none;

  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

body.headwater-current .primary-decision-route:hover,
body.headwater-current .today-primary-route:hover,
body.headwater-current .inline-route-button:hover,
body.headwater-current .primary-action:hover,
body.headwater-current .button-primary:hover {
  color: #f8f5ed;
  background: var(--hw-atlantic);
  border-color: var(--hw-atlantic);
}

body.headwater-current .pill {
  min-height: 28px;
  padding: 5px 9px;
  color: #3f4b4a;
  background: transparent;
  border: 1px solid var(--hw-rule);
  border-radius: 999px;

}

body.headwater-current .pill.warn {
  color: #754b1e;
  background: var(--hw-copper-soft);
  border-color: transparent;
}

body.headwater-current #metrics {
  display: none !important;
  margin-top: 0;
  padding: 22px 0;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--hw-rule);
}

body.headwater-current #metrics > * {
  min-height: 70px;
  padding: 2px 24px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--hw-rule);
  border-radius: 0;
  box-shadow: none;
}

body.headwater-current #metrics > *:first-child {
  padding-left: 0;
}

body.headwater-current #metrics > *:last-child {
  border-right: 0;
}

body.headwater-current .view {
  margin-top: 34px;
}

body.headwater-current .view.active {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  body.headwater-current .view.active {
    animation: none;
  }
  body.headwater-current .nav-item::after {
    transition: none;
  }
}

body.headwater-current .panel,
body.headwater-current .hero-panel,
body.headwater-current .command-card,
body.headwater-current .decision-brief-card,
body.headwater-current .list-item,
body.headwater-current .source-access-card,
body.headwater-current .source-request-card,
body.headwater-current .target-card,
body.headwater-current .thesis-card {
  color: var(--hw-ink);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--hw-rule);
  border-radius: 0;
  box-shadow: none;
}

body.headwater-current .panel {
  padding: 28px 0 34px;
}

body.headwater-current .panel-header {
  margin-bottom: 22px;
  padding: 0;
  align-items: baseline;
  border: 0;
}

body.headwater-current .panel-header h3,
body.headwater-current .panel h3,
body.headwater-current .panel h4 {
  color: var(--hw-ink);

}

body.headwater-current .panel-header h3,
body.headwater-current .panel > h3 {

}

body.headwater-current .section-label,
body.headwater-current .panel-label,
body.headwater-current dt,
body.headwater-current th {
  color: var(--hw-current);

}

body.headwater-current table {
  width: 100%;
  background: transparent;
  border-collapse: collapse;
}

body.headwater-current th {
  padding: 11px 14px;
  color: #657270;
  background: transparent;
  border-bottom: 1px solid var(--hw-rule);
  text-align: left;
}

body.headwater-current td {
  padding: 17px 14px;
  background: transparent;
  border-bottom: 1px solid rgba(17, 27, 39, 0.11);
  vertical-align: top;
}

body.headwater-current tr:hover td {
  background: rgba(220, 231, 231, 0.42);
}

body.headwater-current details:not(.nav-drawer):not(.mobile-nav-drawer):not(.ops-drawer) {
  color: var(--hw-ink);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--hw-rule);
  border-radius: 0;
}

body.headwater-current details:not(.nav-drawer):not(.mobile-nav-drawer):not(.ops-drawer) > summary {
  min-height: 54px;
  padding: 14px 0;
  color: var(--hw-ink);
  background: transparent;
  border: 0;
  border-radius: 0;

}

body.headwater-current a {
  color: var(--hw-current);
  text-decoration-color: rgba(23, 96, 123, 0.45);
  text-underline-offset: 3px;
}

/* Today becomes a Headwater perspective page, not a dashboard. */
body.headwater-current .today-home {
  display: block;
  max-width: none;
}

body.headwater-current .today-canvas-header {
  display: grid;
  width: 100%;
  max-width: none !important;
  padding: 0 0 30px;
  grid-template-columns: minmax(0, 0.82fr) minmax(220px, 0.42fr) minmax(260px, 0.48fr);
  column-gap: clamp(28px, 4vw, 64px);
  row-gap: 12px;
  border-bottom: 1px solid var(--hw-rule);
}

body.headwater-current .today-canvas-meta {
  display: none;
}

body.headwater-current #today-home-title {
  max-width: 12ch;
  margin: 0;
  color: var(--hw-ink);

}

body.headwater-current .today-case-boundary {
  align-self: end;
  padding: 18px 0 4px;
  border-top: 1px solid var(--hw-copper);
}

body.headwater-current .today-case-boundary strong {
  display: block;
  color: var(--hw-current);

}

body.headwater-current .today-case-boundary span,
body.headwater-current #today-mode-summary {
  color: #677270;

}

body.headwater-current #today-mode-summary {
  max-width: 70ch;
  margin: 8px 0 0;
  grid-column: 1 / 3;
}

body.headwater-current .today-workbench,
body.headwater-current .today-focus-column {
  display: block;
  width: 100%;
  max-width: none !important;
}

body.headwater-current .today-primary-action {
  margin: 0;
  padding: 40px 0 0;
  color: var(--hw-ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.headwater-current .today-data-freshness {
  display: grid;
  margin: 24px 0 0;
  padding: 16px 0;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: 24px;
  color: var(--hw-risk);
  border-top: 1px solid var(--hw-risk);
  border-bottom: 1px solid rgba(163, 67, 55, 0.32);
}

body.headwater-current .today-data-freshness[hidden] {
  display: none;
}

body.headwater-current .today-data-freshness strong,
body.headwater-current .today-data-freshness p {
  margin: 0;
}

body.headwater-current .today-data-freshness p {
  color: #5f4d49;

}

body.headwater-current .today-primary-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: start;
}

body.headwater-current .today-primary-heading > div:first-child > span {
  display: none;
}

body.headwater-current #today-primary-title {
  max-width: 21ch;
  margin: 0;
  color: var(--hw-ink);

  text-wrap: balance;
}

body.headwater-current .today-primary-state {
  display: flex;
  padding-top: 8px;
  align-items: center;
  gap: 8px;
  color: #5d6b69;
}

body.headwater-current .today-thread-answer {
  display: grid;
  margin-top: 46px;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 0;
  border-top: 1px solid var(--hw-rule);
  border-bottom: 1px solid var(--hw-rule);
}

body.headwater-current .today-current-answer,
body.headwater-current .today-decision-needed {
  min-height: 210px;
  padding: 26px clamp(24px, 3vw, 48px) 32px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

body.headwater-current .today-decision-needed {
  padding-right: 0;
  padding-left: clamp(24px, 3vw, 48px);
  border-left: 1px solid var(--hw-rule);
}

body.headwater-current .today-current-answer h5,
body.headwater-current .today-decision-needed h5,
body.headwater-current .today-next-copy h5 {
  margin: 0 0 18px;
  color: var(--hw-current);

}

body.headwater-current .today-current-answer strong,
body.headwater-current .today-decision-needed strong {
  color: var(--hw-ink);

}

body.headwater-current .today-decision-needed strong {

}

body.headwater-current .today-primary-next {
  display: grid;
  margin: 0;
  padding: 30px 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 42px;
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hw-rule);
  border-radius: 0;
}

body.headwater-current .today-next-copy strong {
  color: var(--hw-ink);

}

body.headwater-current .today-stop-condition {
  grid-column: 1 / -1;
  padding: 0;
  color: #687371;
  background: transparent;
  border: 0;

}

body.headwater-current .today-canvas-header > .today-primary-next {
  align-self: stretch;
  margin: 0;
  padding: 4px 0 0 28px;
  grid-column: 3;
  grid-row: 1 / span 2;
  grid-template-columns: 1fr;
  gap: 14px;
  border-bottom: 0;
  border-left: 1px solid var(--hw-copper);
}

body.headwater-current .today-canvas-header > .today-primary-next .today-next-copy h5 {
  margin-bottom: 10px;
}

body.headwater-current .today-canvas-header > .today-primary-next .today-primary-route {
  justify-self: start;
}

body.headwater-current .today-canvas-header > .today-primary-next .today-stop-condition {
  grid-column: 1;
}

body.headwater-current .today-attention-rail {
  margin-top: 28px;
}

body.headwater-current .today-related-learnings {
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--hw-rule);
}

body.headwater-current .today-related-learnings > header {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(280px, 0.45fr);
  gap: 28px;
  align-items: baseline;
}

body.headwater-current .today-related-learnings h5 {
  margin: 0;
  color: var(--hw-ink);

}

body.headwater-current .today-related-learnings > header p {
  max-width: 58ch;
  margin: 0;
  color: #5d6967;

}

body.headwater-current .today-related-learning-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hw-rule);
}

body.headwater-current .today-related-learning-list > li {
  display: grid;
  padding: 22px 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  border-bottom: 1px solid var(--hw-rule);
}

body.headwater-current .today-related-copy strong {
  display: block;
  max-width: 64ch;
  color: var(--hw-ink);

}

body.headwater-current .today-related-copy p {
  max-width: 72ch;
  margin: 7px 0 0;
  color: #43514f;

}

body.headwater-current .today-related-copy small {
  display: block;
  max-width: 74ch;
  margin-top: 8px;
  color: #697472;

}

body.headwater-current .today-related-meta {
  display: flex;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--hw-current);

}

body.headwater-current .today-related-source {
  align-self: center;
  white-space: nowrap;

}

body.headwater-current .today-late-breaking-news {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--hw-ink);
}

body.headwater-current .today-late-breaking-news > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.4fr);
  gap: 32px;
  align-items: end;
}

body.headwater-current .today-late-breaking-news h5 {
  margin: 0;
  color: var(--hw-ink);

}

body.headwater-current .today-late-breaking-news > header p {
  max-width: 68ch;
  margin: 10px 0 0;
  color: #53605e;

}

body.headwater-current .today-late-breaking-status {
  justify-self: end;
  text-align: right;
}

body.headwater-current .today-late-breaking-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hw-rule);
}

body.headwater-current .today-late-breaking-list > li {
  display: grid;
  padding: 24px 0;
  grid-template-columns: minmax(150px, 0.22fr) minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  border-bottom: 1px solid var(--hw-rule);
}

body.headwater-current .today-late-breaking-meta {
  display: grid;
  gap: 5px;
  color: var(--hw-current);

}

body.headwater-current .today-late-breaking-copy strong {
  display: block;
  max-width: 64ch;
  color: var(--hw-ink);

}

body.headwater-current .today-late-breaking-copy p {
  max-width: 76ch;
  margin: 8px 0 0;
  color: #43514f;

}

body.headwater-current .today-late-breaking-copy small {
  display: block;
  max-width: 78ch;
  margin-top: 9px;
  color: #697472;

}

body.headwater-current .today-late-breaking-source {
  align-self: center;
  white-space: nowrap;

}

body.headwater-current .today-late-breaking-source a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

body.headwater-current .today-late-breaking-boundary {
  max-width: 92ch;
  margin: 18px 0 0;
  color: #697472;

}

/* The partnership newswire is internal awareness context. Stakeholder
   presentation mode keeps company names and enforcement subjects off-screen. */
html.stakeholder-presentation #today-late-breaking-news,
body.stakeholder-presentation #today-late-breaking-news {
  display: none !important;
}

body.headwater-current .today-secondary-column,
body.headwater-current .today-support-grid {
  margin-top: 64px;
}

/* Route inventories read as editorial indexes and working ledgers. */
body.headwater-current .brief-layout,
body.headwater-current .firm-grid,
body.headwater-current .market-layout,
body.headwater-current .overview-shell,
body.headwater-current .ingestion-layout,
body.headwater-current .transformation-layout,
body.headwater-current .eval-layout {
  gap: 46px;
}

body.headwater-current .decision-board,
body.headwater-current .decision-brief-grid,
body.headwater-current .command-card-grid,
body.headwater-current .source-request-card-grid {
  display: grid;
  gap: 0;
  background: transparent;
  border-top: 1px solid var(--hw-rule);
}

body.headwater-current .decision-board > *,
body.headwater-current .decision-brief-grid > *,
body.headwater-current .command-card-grid > *,
body.headwater-current .source-request-card-grid > * {
  min-height: 0;
  padding: 24px 0;
  border: 0;
  border-bottom: 1px solid var(--hw-rule);
  border-radius: 0;
}

body.headwater-current input,
body.headwater-current select,
body.headwater-current textarea {
  min-height: 44px;
  color: var(--hw-ink);
  background: var(--hw-paper-bright);
  border: 1px solid rgba(17, 27, 39, 0.25);
  border-radius: 0;
}

body.headwater-current .empty-state,
body.headwater-current .error-state,
body.headwater-current .loading-state {
  padding: 28px 0;
  color: #566361;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--hw-rule);
  border-bottom: 1px solid var(--hw-rule);
  border-radius: 0;
}

body.headwater-current .error-state {
  color: var(--hw-risk);
}

@media (max-width: 1080px) {
  body.headwater-current .sidebar {
    gap: 24px;
  }
  body.headwater-current .nav-primary {
    gap: 18px;
  }
  body.headwater-current .nav-item {

  }
  body.headwater-current .topbar {
    min-height: 250px;
  }
}

@media (max-width: 820px) {
  body.headwater-current .sidebar {
    position: sticky;
    display: grid;
    height: 70px;
    min-height: 70px;
    padding: 0 22px;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  body.headwater-current .sidebar nav {
    display: block;
  }
  body.headwater-current .nav-primary,
  body.headwater-current .nav-drawer {
    display: none !important;
  }
  body.headwater-current .mobile-nav-drawer {
    display: block !important;
    position: relative;
  }
  body.headwater-current .mobile-nav-drawer > summary {
    display: flex;
    min-height: 44px;
    padding: 6px 12px;
    align-items: center;
    gap: 8px;
    color: var(--hw-ink);
    background: transparent;
    border: 1px solid var(--hw-rule);
    border-radius: 0;
  }
  body.headwater-current .mobile-nav-drawer > summary small {
    display: none;
  }
  body.headwater-current .mobile-nav-drawer[open] .mobile-nav-list {
    position: absolute;
    top: 52px;
    right: 0;
    display: grid;
    width: min(310px, calc(100vw - 44px));
    padding: 12px 18px;
    background: var(--hw-paper-bright);
    box-shadow: 0 20px 48px rgba(10, 35, 50, 0.2);
  }
  body.headwater-current .mobile-nav-list .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--hw-rule);
  }
  body.headwater-current .topbar {
    min-height: 250px;
    padding: 44px 24px 62px;
  }
  body.headwater-current .page-heading {
    width: 100%;
  }
  body.headwater-current .topbar h2 {
    max-width: 9ch;

  }
  body.headwater-current .page-subtitle {
    max-width: 30ch;
    margin-top: 16px;
  }
  body.headwater-current .ops-drawer {
    top: 18px;
    right: 22px;
  }
  body.headwater-current #stakeholder-presentation-boundary,
  body.headwater-current #action-status,
  body.headwater-current #primary-decision-banner,
  body.headwater-current #metrics,
  body.headwater-current .view {
    width: calc(100% - 44px);
  }
  body.headwater-current #primary-decision-banner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  body.headwater-current .primary-decision-meta {
    justify-content: flex-start;
  }
  body.headwater-current #metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  body.headwater-current #metrics > * {
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--hw-rule);
  }
  body.headwater-current #metrics > *:nth-child(odd) {
    padding-left: 0;
    border-right: 1px solid var(--hw-rule);
  }
  body.headwater-current .view {
    margin-top: 44px;
  }
  body.headwater-current .today-canvas-header,
  body.headwater-current .today-primary-heading,
  body.headwater-current .today-thread-answer,
  body.headwater-current .today-primary-next {
    grid-template-columns: 1fr;
  }
  body.headwater-current .today-canvas-header {
    gap: 24px;
  }
  body.headwater-current .today-canvas-header > .today-primary-next {
    padding: 22px 0 0;
    grid-column: 1;
    grid-row: auto;
    border-top: 1px solid var(--hw-copper);
    border-left: 0;
  }
  body.headwater-current #today-mode-summary {
    grid-column: 1;
  }
  body.headwater-current .today-primary-state {
    padding-top: 0;
  }
  body.headwater-current .today-current-answer,
  body.headwater-current .today-decision-needed {
    min-height: 0;
    padding: 24px 0 28px;
  }
  body.headwater-current .today-decision-needed {
    border-top: 1px solid var(--hw-rule);
    border-left: 0;
  }
  body.headwater-current .today-primary-next {
    gap: 22px;
  }
  body.headwater-current .today-related-learnings > header,
  body.headwater-current .today-related-learning-list > li,
  body.headwater-current .today-late-breaking-news > header,
  body.headwater-current .today-late-breaking-list > li,
  body.headwater-current .today-data-freshness {
    grid-template-columns: 1fr;
  }
  body.headwater-current .today-related-learning-list > li {
    gap: 12px;
  }
  body.headwater-current .today-related-source {
    justify-self: start;
  }
  body.headwater-current .today-late-breaking-news {
    margin-top: 48px;
    padding-top: 24px;
  }
  body.headwater-current .today-late-breaking-news > header,
  body.headwater-current .today-late-breaking-list > li {
    gap: 14px;
  }
  body.headwater-current .today-late-breaking-status {
    justify-self: start;
    text-align: left;
  }
  body.headwater-current .today-late-breaking-source {
    justify-self: stretch;
  }
  body.headwater-current .today-late-breaking-source a {
    width: 100%;
  }
  body.headwater-current .today-stop-condition {
    grid-column: 1;
  }
  body.headwater-current .transformation-thread-heading { order: 0; }
  body.headwater-current .transformation-thread-action { order: 1; }
  body.headwater-current .transformation-thread-answer { order: 2; }
  body.headwater-current .transformation-thread-unknown { order: 3; }
  body.headwater-current .transformation-unlock-list { order: 4; }
  body.headwater-current .transformation-thread-boundary { order: 5; }
}

@media (max-width: 520px) {
  body.headwater-current .brand h1 {

  }
  body.headwater-current .brand-mark,
  body.headwater-current .brand-mark svg {
    width: 22px;
    height: 22px;
  }
  body.headwater-current .topbar {
    min-height: 236px;
  }
  body.headwater-current .current-rings {
    transform: translateX(180px);
  }
  body.headwater-current #action-status {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  body.headwater-current #metrics {
    display: block;
  }
  body.headwater-current #metrics > *,
  body.headwater-current #metrics > *:nth-child(odd) {
    padding: 14px 0;
    border-right: 0;
  }
  body.headwater-current #today-home-title {

  }
  body.headwater-current #today-primary-title {

  }
}

/* Today partner brief: depth comes from the argument, not repeated status copy. */
body.headwater-current[data-view="brief"] .topbar {
  display: none;
}

body.headwater-current[data-view="brief"] main {
  padding-top: 34px;
}

body.headwater-current[data-view="brief"] .today-canvas-header {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.46fr);
}

body.headwater-current[data-view="brief"] .today-case-boundary {
  display: none;
}

body.headwater-current[data-view="brief"] #today-mode-summary {
  grid-column: 1;
}

body.headwater-current[data-view="brief"] .today-canvas-header > .today-primary-next {
  grid-column: 2;
}

body.headwater-current .today-meaning {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--hw-rule);
}

body.headwater-current .today-meaning h5,
body.headwater-current .today-decision-map h5 {
  margin: 0 0 12px;
  color: var(--hw-current);

}

body.headwater-current .today-meaning p,
body.headwater-current .today-decision-map p,
body.headwater-current .today-decision-map li {
  color: #44514f;

}

body.headwater-current .today-meaning p,
body.headwater-current .today-decision-map p {
  margin: 0;
}

body.headwater-current .today-decision-needed > p {
  margin: 26px 0 0;
  padding-top: 22px;
  color: #4e5b58;
  border-top: 1px solid rgba(17, 27, 39, 0.16);

}

body.headwater-current .today-decision-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--hw-rule);
}

body.headwater-current .today-decision-map > section {
  min-width: 0;
  padding: 28px clamp(20px, 2.5vw, 38px) 30px 0;
}

body.headwater-current .today-decision-map > section + section {
  padding-right: clamp(20px, 2.5vw, 38px);
  padding-left: clamp(20px, 2.5vw, 38px);
  border-left: 1px solid var(--hw-rule);
}

body.headwater-current .today-decision-map > section:last-child {
  padding-right: 0;
}

body.headwater-current .today-decision-map ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 17px;
}

@media (max-width: 900px) {
  body.headwater-current[data-view="brief"] .today-canvas-header {
    grid-template-columns: 1fr;
  }

  body.headwater-current[data-view="brief"] .today-canvas-header > .today-primary-next {
    grid-column: 1;
  }

  body.headwater-current .today-decision-map {
    grid-template-columns: 1fr;
  }

  body.headwater-current .today-decision-map > section,
  body.headwater-current .today-decision-map > section + section,
  body.headwater-current .today-decision-map > section:last-child {
    padding: 24px 0;
    border-left: 0;
  }

  body.headwater-current .today-decision-map > section + section {
    border-top: 1px solid var(--hw-rule);
  }
}

/* Partner work: exact records and recoverable drafting in the Current system. */
body.headwater-current #today-home-title {

  max-width: 22ch;

}
body.headwater-current .today-next-facts {
  display: grid;
  gap: 10px;
  margin-block: 16px 0;
}
body.headwater-current .today-next-facts > div {
  display: grid;
  gap: 3px;
}
body.headwater-current .today-next-facts dt,
body.headwater-current .today-next-facts dd {

}
body.headwater-current #today-work-queues {
  display: block;
  padding: 0;
  list-style: none;
}
body.headwater-current #today-secondary-work > button,
body.headwater-current .record-draft-save-bar button,
body.headwater-current .record-draft-recovery button,
body.headwater-current .partner-work-resume {
  min-height: 44px;
  padding: 10px 14px;

  white-space: normal;
}
body.headwater-current .today-work-item-heading a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--hw-current);
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.headwater-current .today-work-detail,
body.headwater-current .record-draft-recovery {
  padding-block: 24px;
  border-block: 1px solid var(--hw-rule);
  overflow-wrap: anywhere;
}
body.headwater-current .today-work-detail h5 {

  margin-block: 0 16px;
}
body.headwater-current .partner-work-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
body.headwater-current .partner-work-facts dt,
body.headwater-current .record-draft-recovery dt {

}
body.headwater-current .partner-work-facts dd,
body.headwater-current .record-draft-recovery dd {
  margin: 6px 0 16px;
  white-space: pre-wrap;
}
body.headwater-current .record-draft-save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 18px;
  border-bottom: 1px solid var(--hw-rule);
}
body.headwater-current #record-draft-status,
body.headwater-current #today-work-status,
body.headwater-current .record-draft-recovery {

  color: var(--hw-ink);
}
body.headwater-current #record-draft-status:focus-visible,
body.headwater-current #today-work-status:focus-visible,
body.headwater-current .today-work-detail h5:focus-visible {
  outline: 2px solid var(--hw-current);
  outline-offset: 4px;
}
body.headwater-current .record-request-form input,
body.headwater-current .record-request-form textarea,
body.headwater-current .record-request-form select {

}
@media (max-width: 760px) {
  body.headwater-current .partner-work-facts { grid-template-columns: 1fr; gap: 10px; }
  body.headwater-current .record-draft-save-bar { align-items: stretch; flex-direction: column; gap: 8px; }
  body.headwater-current .record-draft-recovery button { display: block; width: 100%; margin-block: 8px; }
}

/* Company research background stays separate from ratified Stage 3 files. */
#view-overview .company-research-background .market-method-body {
  display: grid;
  gap: 14px;
  padding: 14px;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
#view-overview .company-research-background input { width: 100%; min-width: 0; }
#view-overview .company-research-background .list-item { min-width: 0; }

/* Stage 3 uses a shared comparison ledger; history never creates duplicate companies. */
#stage3-research .stage3-research-body { padding: 16px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
#stage3-research .stage3-research-body > p { max-width: 75ch; margin-top: 0; }
#stage3-research .stage3-research-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-block: 18px; }
#stage3-research label { display: grid; gap: 6px; }
#stage3-research select { max-width: 100%; font: inherit; padding: 8px; }
#stage3-research h4 { margin-block: 24px 10px; }
#stage3-research .stage3-search-record { padding-block: 12px; border-top: 1px solid var(--line); }
#stage3-research .stage3-search-record p { margin-block: 6px; max-width: 75ch; }
#stage3-research .stage3-company-options { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 0; border: 0; margin-block: 12px; }
#stage3-research .stage3-company-options legend { margin-bottom: 10px; }
#stage3-research .stage3-company-options label { display: flex; align-items: baseline; gap: 7px; }
#stage3-research .stage3-comparison-scroll { max-width: 100%; overflow: auto; border-block: 1px solid var(--line); }
#stage3-research table { border-collapse: collapse; width: 100%; table-layout: fixed; }
#stage3-research table:has(th:nth-child(4)) { min-width: 780px; }
#stage3-research table:has(th:nth-child(3)) { min-width: 600px; }
#stage3-research th, #stage3-research td { font-size: 14px; line-height: 1.5; padding: 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
#stage3-research th { font-weight: 650; }
#stage3-research th:first-child { width: 150px; }
#stage3-research td p { margin-block: 0 8px; }
#stage3-research td small, #stage3-research th small { display: block; font-size: 12px; font-weight: 400; margin-block: 4px 6px; }
#stage3-research details > summary { display: list-item; padding: 8px 0; font: inherit; cursor: pointer; }
#stage3-research details p { max-width: 75ch; }
#stage3-research .stage3-judgment-history { padding-left: 20px; }
#stage3-research :focus-visible { outline: 2px solid var(--current, #17607b); outline-offset: 3px; }
@media (max-width: 600px) {
  #stage3-research .stage3-research-body { padding: 12px; }
  #stage3-research .stage3-research-controls { display: grid; }
  #stage3-research select { width: 100%; min-width: 0; }
  #stage3-research th:first-child { width: 120px; }
}

}
/* Edge workspace. Shared UI rules sit above the legacy component geometry. */
:root, body.headwater-current {
  --ui-font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #ffffff; --panel: #ffffff; --panel-soft: #f7f8fa;
  --ink: #20242c; --muted: #5d6470; --line: #e3e6eb; --line-strong: #c9ced7;
  --accent: #254c72; --accent-soft: #edf2f7; --accent-alt: #254c72;
  --danger: #a32b35; --warning: #805716; --ok: #226347;
  --shadow: none; --radius: 6px; --mono: var(--ui-font);
  --hw-paper: #ffffff; --hw-paper-bright: #ffffff; --hw-ink: #20242c;
  --hw-atlantic: #f7f8fa; --hw-atlantic-deep: #20242c;
  --hw-current: #254c72; --hw-current-soft: #edf2f7; --hw-mist: #e3e6eb;
  --hw-stone: #5d6470; --hw-rule: #e3e6eb; --hw-rule-dark: #e3e6eb;
  --hw-copper: #254c72; --hw-copper-soft: #edf2f7; --hw-risk: #a32b35; --hw-success: #226347;
  --hw-display: var(--ui-font); --hw-editorial: var(--ui-font); --hw-body: var(--ui-font);
  color: var(--ink); background: var(--bg); font: 400 14px/1.5 var(--ui-font);
}
*, *::before, *::after { box-sizing: border-box; }
body, button, input, select, textarea { font-family: var(--ui-font); }
body * { font-family: inherit; font-size: inherit; font-style: normal; line-height: inherit; letter-spacing: normal; text-transform: none; }
h1, h2, h3, h4, h5, h6, strong, b, dt, summary, button { font-weight: 600; }
p, li, dd, input, select, textarea { font-weight: 400; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 8px; line-height: 1.35; color: var(--ink); max-width: none; }
h1, h2 { font-size: 22px; }
h3, h4 { font-size: 18px; }
h5, h6 { font-size: 14px; }
p { margin: 8px 0; max-width: 76ch; }
small, .mini-note, .list-meta, .queue-subtle, .queue-governed-source, .pill, .lane-pill,
.today-primary-state, .market-brief-state, .market-folio-status, .today-primary-why { font-size: 12px; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, .inline-route-button, .firm-priority-route, input, select, textarea {
  min-height: 36px; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 6px;
  background: white; color: var(--ink); font-size: 14px; line-height: 1.4; box-shadow: none;
  text-decoration: none; max-width: 100%;
}
button { cursor: pointer; }
button:hover, summary:hover { background: var(--panel-soft); }
button:disabled { cursor: not-allowed; color: var(--muted); background: var(--panel-soft); opacity: .7; }
input, select, textarea { min-width: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
summary { min-height: 40px; padding: 10px 0; gap: 12px; color: var(--ink); cursor: pointer; }
details { border-radius: 0; box-shadow: none; }
details > summary::after { font-size: 14px; }
.section-label { font-size: 12px; color: var(--muted); letter-spacing: 0; text-transform: none; }
.panel-header > div > .section-label, .role-card-head .section-label,
.private-case-register .section-label, .target-discovery-header .section-label { display: none; }
body .app-shell { display: grid; grid-template-columns: 224px minmax(0,1fr); min-height: 100vh; background: white; }
body .sidebar {
  position: sticky; top: 0; bottom: auto; width: 224px; height: 100vh; min-height: 0;
  padding: 24px 12px; display: flex; flex-direction: column; align-items: stretch; gap: 28px;
  background: #f7f8fa; color: var(--ink); border: 0; border-right: 1px solid var(--line);
  box-shadow: none; backdrop-filter: none; overflow: visible;
}
body .brand { gap: 8px; min-width: 0; padding: 0 10px; }
body .brand h1 { font-size: 14px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
body .brand h1 span { font-weight: 600; }
body .brand-mark, body .brand-mark svg { width: 22px; height: 22px; }
body .sidebar nav { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; flex: 1; }
body .nav-primary { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px; }
body .nav-item { width: 100%; min-height: 38px; padding: 9px 10px; font-size: 14px; color: var(--muted); border: 0; border-radius: 6px; white-space: normal; line-height: 1.4; text-align: left; }
body .nav-item.active { color: var(--ink); background: #e8ebf0; font-weight: 600; }
body .nav-item:hover { color: var(--ink); background: #edf0f4; }
body .nav-item::after { display: none; }
body .nav-drawer { margin: 20px 0 0; width: 100%; border-top: 1px solid var(--line); }
body .nav-drawer > summary { padding: 10px; min-height: 38px; color: var(--muted); font-size: 14px; }
body .nav-drawer[open] > .nav-secondary { position: static; width: 100%; padding: 4px 0; display: grid; background: transparent; box-shadow: none; }
body main { width: 100%; min-width: 0; max-width: none; padding: 0 32px 48px; margin: 0; overflow: visible; background: white; }
body .topbar { display: flex; align-items: center; justify-content: space-between; min-height: 80px; padding: 20px 0; margin: 0 0 24px; background: white; color: var(--ink); border: 0; border-bottom: 1px solid var(--line); overflow: visible; box-shadow: none; }
body[data-view="brief"] .topbar, body[data-view="overview"] .topbar { display: flex; }
body .page-heading { width: auto; max-width: none; align-self: auto; }
body #page-title { font-size: 22px; color: var(--ink); margin: 0; max-width: none; }
body #page-subtitle { display: none; }
body .topbar .ops-drawer { position: relative; top: auto; right: auto; margin-left: auto; color: var(--muted); }
body .ops-drawer > summary { color: var(--muted); font-size: 12px; min-height: 36px; }
body .ops-drawer .topbar-actions { right: 0; background: white; border: 1px solid var(--line); }
body .view { width: 100%; max-width: none; padding: 0; margin: 0; animation: none; }
body .view.active { animation: none; }
body .action-status { margin: 0 0 16px; width: 100%; padding: 10px 12px; font-size: 12px; border: 1px solid var(--line); border-radius: 6px; }
body .action-status.is-default { display: none; }
body .primary-decision-banner { margin: 0 0 16px; }
body .today-home { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0; }
body .today-canvas-header { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 12px; padding: 0; margin: 0 0 16px; min-height: 0; border: 0; }
body #today-home-title { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
body .today-canvas-meta, body .today-case-boundary { display: none; }
body .today-primary-next { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; width: 100%; padding: 0; margin: 0; border: 0; background: white; }
body .today-next-copy { order: 2; }
body .today-next-copy > strong, body .today-next-facts { max-width: 68ch; margin: 8px 0; }
body #today-next-label { display: none; }
body .today-stop-condition { order: 3; max-width: 76ch; padding: 0; margin: 0; }
body .today-stop-condition strong { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
body .today-primary-route, body .market-focus-proof-button { background: var(--accent); color: white; border: 1px solid var(--accent); border-radius: 6px; min-height: 36px; padding: 8px 12px; }
body .today-primary-route:hover, body .market-focus-proof-button:hover { background: #193957; color: white; }
body .today-workbench, body .today-focus-column { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; }
body .today-primary-action { background: white; color: var(--ink); border: 0; padding: 0; margin: 0; box-shadow: none; }
body .today-primary-heading { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); margin: 0; }
body #today-primary-title { font-size: 22px; line-height: 1.35; max-width: 68ch; margin: 0; font-weight: 600; }
body .today-primary-state { justify-content: flex-start; justify-self: start; gap: 10px; color: var(--muted); }
body .today-thread-answer { display: block; margin: 0; padding: 0; border: 0; }
body .today-current-answer { padding: 0 0 16px; border: 0; max-width: 76ch; }
body #today-known-label { display: none; }
body #today-primary-changed { font-weight: 400; font-size: 14px; }
body #today-primary-why { font-size: 12px; color: var(--muted); margin: 12px 0 4px; }
body .today-learning-source { margin: 0; }
body .today-meaning, body .today-decision-needed, body .today-decision-map { padding: 0; margin: 0; border: 0; border-top: 1px solid var(--line); background: white; color: var(--ink); }
body .today-meaning > p, body .today-decision-needed > p, body .today-decision-needed > strong { display: block; font-size: 14px; font-weight: 400; margin: 8px 0 16px; }
body .today-decision-map { display: block; }
.workspace-analysis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 8px 0 16px; }
.workspace-analysis-grid > section:last-child { grid-column: 1 / -1; }
.workspace-analysis-grid p { font-size: 14px; margin: 8px 0; }
body .today-attention-rail { margin: 0; padding: 0; border: 0; border-top: 1px solid var(--line); }
body .today-related-learnings, body .today-late-breaking-news { margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); }
body .today-related-learnings header, body .today-late-breaking-news header { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
body .today-related-learnings h5, body .today-late-breaking-news h5 { font-size: 18px; }
body .today-related-learning-list, body .today-late-breaking-list { display: block; padding: 0; margin: 0; list-style: none; }
body .today-related-learning-list > li, body .today-late-breaking-list > li { padding: 16px 0; margin: 0; border: 0; border-bottom: 1px solid var(--line); background: white; }
body .today-late-breaking-list strong, body .today-related-learning-list strong { font-size: 14px; }
body .today-source-body { padding: 12px 0 20px; }
body .today-data-freshness { margin: 0 0 16px; padding: 12px; }
body .company-access-dossier { width: 100%; padding: 0; margin: 0 0 20px; border: 0; background: white; color: var(--ink); }
body .company-dossier-header { padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
body .company-dossier-header h3 { font-size: 18px; max-width: none; }
body .company-dossier-header p { display: none; }
body .company-dossier-status { font-size: 12px; color: var(--muted); }
body .company-review-thread { margin: 0; padding: 8px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
body .company-review-thread > section { padding: 0; border: 0; }
body .company-review-thread strong { font-size: 14px; }
body .company-thread-next { grid-column: 1 / -1; }
body .overview-shell.target-cockpit { margin: 0; gap: 20px; }
body .panel, body .target-workbench, body .market-thesis-brief { box-shadow: none; border-radius: 0; background: white; color: var(--ink); }
body .target-workbench { padding: 0; border: 0; }
body .target-workbench > .panel-header { display: none; }
body .stage-handoff-gates { margin: 0; padding: 0; }
body #target-workbench-drawer { margin: 12px 0 0; border: 1px solid var(--line); border-radius: 6px; }
body #target-workbench-drawer > summary, body .target-discovery-ledger > summary, body .target-full-list > summary { min-height: 44px; padding: 12px 16px; }
body .target-tools { padding: 12px 16px; gap: 12px; }
body #view-overview .target-focus-queue .target-row-compact { min-height: 0; padding: 14px 16px; gap: 20px; }
body #view-overview .target-focus-queue .target-row-main .target-name { font-size: 14px; }
body #view-overview .target-focus-queue .queue-label { font-size: 12px; text-transform: none; letter-spacing: 0; }
body #view-overview .target-focus-queue .queue-subtle { font-size: 12px; }
body .private-case-register { padding: 16px; border: 1px solid var(--line); border-radius: 6px; margin: 0 0 20px; }
body .private-case-register h3 { font-size: 18px; }
body #private-case-boundary { font-size: 12px; }
body .private-case-entry, body .private-case-card { background: white; box-shadow: none; border-radius: 6px; }
body #view-market .market-thesis-thread-layout { width: 100%; max-width: none; gap: 20px; margin: 0; }
body #view-market .market-thesis-brief { padding: 0; border: 0; gap: 20px; }
body #view-market .market-brief-header { padding: 0 0 16px; gap: 20px; }
body #view-market .market-brief-header h3 { font-size: 22px; line-height: 1.35; max-width: 60ch; }
body #view-market .market-brief-state { min-width: 0; max-width: 280px; font-size: 12px; }
body #view-market .market-brief-state strong { font-size: 12px; }
body #view-market .market-current-view, body #view-market .market-evidence-thread { max-width: none; }
body #view-market .market-current-view p { max-width: 76ch; }
body #view-market .market-brief-judgment { gap: 24px; padding: 16px 0; margin: 0; }
body #view-market .market-brief-judgment > section { padding: 0; border: 0; }
body #view-market .market-brief-judgment p { font-size: 14px; }
body #view-market .market-focus-next { margin: 0; padding: 16px 0; background: white; color: var(--ink); border: 0; border-top: 1px solid var(--line); }
body #view-market .market-focus-next strong { font-size: 14px; }
body #view-market .market-lineage { padding: 0; margin: 0; }
body #view-market .market-thesis-field, body #view-market .market-method-freshness { padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 6px; background: white; }
body #view-market .market-thesis-field > summary, body #view-market .market-method-freshness > summary { padding: 12px 16px; min-height: 44px; }
body .thesis-portfolio-card, body .thesis-field-row { padding: 16px; border-radius: 0; box-shadow: none; }
body .ventures-scouting-coverage { display: block; padding: 16px; margin: 12px 0; border: 1px solid var(--line); border-radius: 6px; background: #f7f8fa; }
body .ventures-scouting-coverage-head { display: block; }
body .ventures-scouting-coverage-head h4 { font-size: 14px; }
body .ventures-scouting-coverage-head p { font-size: 12px; }
body .ventures-scouting-coverage-ledger { display: flex; flex-wrap: wrap; gap: 20px; padding: 12px 0; border: 0; }
body .ventures-scouting-coverage-ledger > div { flex: 1 1 140px; min-width: 0; border: 0; padding: 0; }
body .ventures-scouting-coverage-ledger dt { font-size: 12px; }
body .ventures-scouting-coverage-ledger dd { font-size: 14px; margin: 4px 0 0; }
body .transformation-thread-state, body .firm-decision-thread, body .control-decision-thread { background: white; color: var(--ink); padding: 0; margin: 0; border: 0; width: 100%; max-width: none; }
body .transformation-thread-heading h3, body .firm-thread-header h3, body .control-thread-header h3 { font-size: 18px; line-height: 1.35; max-width: none; }
body .transformation-thread-heading, body .firm-thread-header, body .control-thread-header { padding: 0 0 16px; margin: 0; gap: 20px; }
body .transformation-thread-answer, body .transformation-thread-unknown, body .transformation-thread-action { margin: 12px 0; padding: 0; font-size: 14px; border: 0; }
body .transformation-unlock-list { margin: 0; padding: 12px 0; gap: 24px; }
body .transformation-unlock-list li { padding: 0; }
body .transformation-thread-boundary, body .transformation-detail-boundary { font-size: 12px; color: var(--muted); margin: 12px 0; }
body .ventures-learning-loop { padding: 20px 0; margin: 24px 0 0; background: white; border-top: 1px solid var(--line); }
body .ventures-learning-loop h3 { font-size: 18px; }
body .firm-thread-body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 0; }
body .firm-thread-body > section { padding: 0; border: 0; }
body .firm-thread-body strong, body .eval-release-gate strong { font-size: 14px; }
body .firm-thread-unknown { display: none; }
body .firm-thread-next { grid-column: auto; }
body .firm-thread-next small { font-size: 12px; }
body .control-thread-boundary { font-size: 12px; padding: 16px 0; margin: 0; }
body .eval-release-gate { padding: 16px; margin: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-soft); }
body .record-request-workflow-shell, body .record-request-empty { padding: 16px 0; margin: 0; background: white; color: var(--ink); border: 0; }
body .target-modal-panel { border-radius: 8px; background: white; color: var(--ink); }
body .target-modal-header h3 { font-size: 22px; }
body .target-detail-disclosure > summary { padding: 12px 0; }
body .target-detail-disclosure h4, body .private-stage-workbench h4 { font-size: 18px; }
body .private-transformation-tabs { gap: 8px; }
body .login-shell { width: min(400px, 100%); padding: 24px; }
body.login-page { display: grid; min-height: 100vh; place-items: center; background: var(--panel-soft); }
body .login-panel { background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: none; padding: 28px; }
body .login-brand { padding: 0; margin-bottom: 24px; }
body .login-form { display: grid; gap: 12px; }
body .login-note { font-size: 12px; }
@media (max-width: 1100px) {
  body .app-shell { grid-template-columns: 196px minmax(0,1fr); }
  body .sidebar { width: 196px; }
  body main { padding: 0 24px 40px; }
  body #view-market .market-brief-header { grid-template-columns: minmax(0,1fr); }
  body #view-market .market-brief-state { justify-items: start; max-width: none; }
  body #view-overview .target-focus-head, body #view-overview .target-focus-queue .target-row-compact { grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1.2fr); }
}
@media (max-width: 760px) {
  body .app-shell { display: block; }
  body .sidebar { position: sticky; top: 0; width: 100%; height: 64px; min-height: 64px; flex-direction: row; align-items: center; padding: 10px 16px; gap: 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  body .brand { padding: 0; }
  body .brand h1 { font-size: 14px; }
  body .sidebar nav { align-items: flex-end; }
  body.headwater-current .nav-primary, body.headwater-current .nav-drawer { display: none !important; }
  body .mobile-nav-drawer { display: block; width: auto; }
  body .mobile-nav-drawer > summary { padding: 8px; min-height: 44px; font-size: 14px; }
  body .mobile-nav-list { position: absolute; right: 12px; left: 12px; top: 60px; width: auto; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: white; box-shadow: 0 8px 24px #20242c18; }
  body .mobile-nav-list .nav-item { min-height: 44px; }
  body main { padding: 0 16px 32px; }
  body .topbar { min-height: 72px; padding: 16px 0; margin-bottom: 16px; }
  body #page-title, body #today-primary-title { font-size: 22px; }
  body .today-primary-next { gap: 8px 16px; }
  body .today-primary-heading { padding: 16px 0; }
  body .today-primary-state { flex-wrap: wrap; }
  body .today-next-copy, body .today-stop-condition { flex-basis: 100%; }
  body .workspace-analysis-grid, body .company-review-thread, body .firm-thread-body, body #view-market .market-brief-judgment { grid-template-columns: minmax(0,1fr); gap: 16px; }
  body #view-overview .target-focus-head { display: none; }
  body #view-overview .target-focus-queue .target-row-compact { grid-template-columns: minmax(0,1fr); gap: 12px; }
  body .company-dossier-header { display: block; }
  body .target-tools { grid-template-columns: minmax(0,1fr); }
  body .ventures-scouting-coverage-ledger { gap: 16px; }
  body .ventures-scouting-coverage-ledger > div { flex-basis: 110px; }
  body .transformation-unlock-list { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
  button, input, select, summary, .inline-route-button { min-height: 44px; }
  body .today-primary-route, body .market-focus-proof-button { min-height: 44px; }
  body .today-late-breaking-list > li, body .today-related-learning-list > li { padding: 16px 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Cross-route spacing and source disclosure fixes from desktop/mobile review. */
body .sidebar { align-self: start; }
body .nav-item { background: transparent; }
body .today-primary-action, body .today-current-answer, body .today-thread-answer { display: block; gap: 0; min-height: 0; height: auto; }
body .today-decision-needed, body .today-decision-map, body .today-meaning { min-height: 0; height: auto; }
body .today-primary-next { min-height: 0; }
body .today-primary-heading { border-bottom: 0; }
body .today-primary-state { margin: 0; }
body .today-current-answer > strong { display: block; margin: 0; padding: 0; }
body .today-current-answer > p { padding: 0; }
body #today-primary-why { margin: 8px 0 4px; }
body .today-learning-source { padding: 0; }
body .today-primary-action .today-current-answer { max-width: 76ch; }
body .today-next-copy[open], body .today-stop-condition[open] { flex-basis: 100%; }
body .today-related-learnings header > p:empty, body .today-late-breaking-news header p:empty { display: none; }
body .workspace-source-limit { border: 0; padding: 0; margin: 0; }
body .workspace-source-limit > summary { min-height: 30px; padding: 4px 0; color: var(--muted); font-size: 12px; font-weight: 400; }
body .workspace-source-limit > p { font-size: 12px; color: var(--muted); }
body .today-late-breaking-boundary { font-size: 12px; color: var(--muted); max-width: 76ch; }
body .today-late-breaking-meta { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
body .today-related-meta { color: var(--muted); font-size: 12px; }
body .target-workbench { display: flex; flex-direction: column; }
body .target-workbench > * { order: 0; }
body .target-workbench > #target-workbench-drawer { order: -2; }
body .target-workbench > .stage-handoff-gates { order: 2; }
body .target-workbench > #target-discovery-drawer { order: 1; }
body #target-focus-note, body #private-case-boundary { background: transparent; border: 0; border-radius: 0; padding: 8px 0; color: var(--muted); font-size: 12px; }
body #target-focus-note { padding: 8px 16px; }
body .company-focus-counts { display: none; }
body .transformation-workspace, body #view-transformability > .transformability-layout, body #transform-case-readiness, body #transform-ventures-loop { width: 100%; max-width: none; margin-left: 0; margin-right: 0; }
body .transformation-thread-state { display: block; min-height: 0; }
body .transformation-thread-heading { padding-bottom: 0; }
body .transformation-thread-answer { margin: 12px 0; padding: 0; }
body .transformation-thread-action { min-height: 0; padding: 0; margin: 16px 0; }
body #transform-ventures-loop { padding: 20px 0; margin-top: 24px; color: var(--ink); background: white; border-top: 1px solid var(--line); }
body .transformation-ventures-head { display: flex; align-items: start; gap: 24px; padding: 0; margin: 0 0 16px; }
body .transformation-ventures-head p { color: var(--muted); font-size: 14px; }
body .transformation-ventures-snapshot { border: 0; color: var(--muted); font-size: 12px; padding: 0; }
body .transformation-ventures-snapshot strong { font-size: 18px; color: var(--ink); }
body .transformation-ventures-snapshot small { color: var(--muted); }
body .transformation-ventures-bench { margin: 0; background: white; color: var(--ink); border-color: var(--line); }
body .transformation-ventures-bench > summary { color: var(--ink); padding: 12px 0; }
body .transformation-ventures-bench > summary strong { color: var(--muted); }
body #transform-ventures-loop .ventures-scouting-coverage p { color: var(--muted); }
body #transform-ventures-loop .ventures-scouting-coverage dd { color: var(--ink); }
body .transformation-ventures-boundary { color: var(--muted); padding: 8px 0; font-size: 12px; }
body .ventures-scouting-coverage > .ventures-scouting-coverage-head { margin: 0; }
body .ventures-scouting-coverage > .ventures-scouting-coverage-status { margin: 4px 0; }
body .workspace-source-coverage > summary { padding: 8px 0; font-size: 12px; color: var(--muted); }
body .records-zero-state-row { padding: 16px 0; margin: 0; min-height: 0; }
body .records-zero-state-row p { white-space: normal; -webkit-line-clamp: unset; overflow: visible; max-width: 76ch; }
body .records-no-scope-empty { margin: 16px 0; padding: 0; }
body .records-no-scope-empty p { margin: 0 0 16px; }
body .topbar .ops-drawer > summary { background: white; border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; }
body .firm-thread-body > section { display: block; }
body .firm-thread-next dl { margin: 12px 0; }
body .firm-thread-next small { display: block; margin-top: 12px; }
body .control-thread-boundary { max-width: 76ch; }
body .market-brief-header h3[tabindex="-1"]:focus, body h3[tabindex="-1"]:focus { outline-offset: 4px; }
@media(max-width:760px) {
 body .topbar { text-align: left; justify-content: space-between; }
 body .page-heading { text-align: left; }
 body .transformation-ventures-head { display: block; }
 body .transformation-ventures-snapshot { margin-top: 12px; }
 body .today-late-breaking-meta { display: flex; }
 body .today-related-learning-list > li { display: block; }
 body .today-related-source { margin-top: 8px; }
 body .records-zero-state-row { display: flex; align-items: start; gap: 16px; }
 body .records-zero-state-row > div { min-width: 0; }
 body .workspace-source-limit > summary { min-height: 44px; }
}

/* Independent finish review: compact responsive status, metadata and empty states. */
body .transformation-ventures-snapshot span { color: var(--muted); }
body .records-zero-state-row { border: 0; padding-bottom: 0; }
body .records-no-scope-empty { border: 0; margin-top: 12px; }
body .records-request-panel.is-empty-records-request { gap: 0; }
@media(max-width:760px) {
  body #view-market .market-brief-state { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
  body #view-market .market-brief-state > * { width: auto; min-width: 0; align-self: flex-start; }
  body .mobile-nav-drawer > summary { display: flex; align-items: center; gap: 10px; }
  body .mobile-nav-drawer > summary small { display: inline; color: var(--muted); font-size: 12px; }
}

body .firm-thread-next { background: transparent; }
body .records-no-scope-route, body #today-primary-route { min-height: 44px; }

/* Presentations hide navigation and must keep the full workspace width. */
body.stakeholder-presentation .app-shell { display: block; }

@media(max-width:760px) {
 body .topbar .ops-drawer > summary, body .firm-priority-route { min-height: 44px; }
}

/* Canonical three-case model has four declared columns. */
.private-operating-scenarios .private-scenario-row { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }

/* Article-first Today: one headline, summary, attribution and action. */
body .today-primary-heading { border-top: 0; padding: 0 0 12px; }
body #today-primary-changed { margin: 0 0 16px; line-height: 1.65; }
body .today-learning-source { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 0 0 16px; color: var(--muted); font-size: 12px; }
body .today-current-answer > .today-primary-route { display: inline-flex; width: auto; }
body .today-learning-source a { margin: 0; padding: 0; min-width: 44px; }
