@font-face {
  font-family: "Ripley Georgia";
  src: url("./assets/Georgia.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ripley Georgia";
  src: url("./assets/Georgia-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --green-900: #263024;
  --green-800: #323d2f;
  --green-700: #424f3e;
  --green-100: #e5ebe1;
  --sand-300: #f1d19e;
  --sand-100: #fbf4e8;
  --paper: #fbfaf4;
  --surface: #ffffff;
  --ink: #151713;
  --muted: #687064;
  --line: rgba(66, 79, 62, 0.16);
  --line-strong: #c8d0c1;
  --critical: #a33c32;
  --critical-soft: #f7e7e5;
  --high: #c87626;
  --high-soft: #fbeddc;
  --open: #b89a2d;
  --open-soft: #faf3d3;
  --closed: #64715d;
  --closed-soft: #e8ede4;
  --shadow: 0 20px 54px rgba(38, 48, 36, 0.11);
  --radius: 8px;
  --font-ui: "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Ripley Georgia", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font-ui);
  background:
    linear-gradient(90deg, rgba(251, 250, 244, 0.98), rgba(251, 250, 244, 0.9)),
    radial-gradient(circle at 88% 8%, rgba(241, 209, 158, 0.18), transparent 28%),
    var(--paper);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button {
  color: inherit;
}

body:not(.cover-dismissed) {
  overflow: hidden;
}

.cover-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: clamp(22px, 4vw, 70px);
  overflow: auto;
  color: var(--green-800);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.88), rgba(255, 253, 248, 0.97)),
    url("./assets/cover.jpg") center 46% / cover no-repeat,
    var(--paper);
  transition:
    opacity 240ms ease,
    visibility 240ms ease;
}

.cover-screen::before {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.98) 0 44%, rgba(255, 253, 248, 0.86) 66%, rgba(255, 253, 248, 0.62) 100%);
}

.cover-dismissed .cover-screen {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.cover-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(300px, 0.58fr);
  gap: clamp(42px, 7vw, 120px);
  width: min(1240px, 100%);
  align-items: end;
}

.cover-note-panel {
  max-width: 760px;
}

.cover-logo {
  display: block;
  width: min(310px, 70vw);
  height: auto;
  margin-bottom: clamp(58px, 10vh, 116px);
}

.cover-kicker {
  margin: 0 0 16px;
  color: var(--green-700);
  font-family: var(--font-display);
  font-size: clamp(25px, 2.1vw, 34px);
  font-style: italic;
  line-height: 1.12;
}

.cover-note-panel h1 {
  max-width: 780px;
  margin: 0;
  color: var(--green-800);
  font-family: var(--font-display);
  font-size: clamp(48px, 5.4vw, 82px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
}

.cover-letter {
  display: grid;
  gap: 13px;
  max-width: 650px;
  margin-top: 30px;
  color: #30382d;
  font-size: clamp(16px, 1.02vw, 17.5px);
  line-height: 1.68;
  text-wrap: pretty;
}

.cover-hierarchy {
  display: grid;
  gap: 4px;
  padding: 8px 0 8px 18px;
  color: var(--green-800);
  font-family: var(--font-display);
  font-size: clamp(19px, 1.35vw, 25px);
  font-style: italic;
  line-height: 1.2;
  border-left: 1px solid rgba(66, 79, 62, 0.32);
}

.cover-letter p,
.cover-signoff small,
.cover-entry-label {
  margin: 0;
}

.cover-signoff {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid rgba(66, 79, 62, 0.24);
}

.cover-signoff img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-bottom: 1px solid rgba(66, 79, 62, 0.42);
}

.cover-signoff span {
  display: block;
  color: var(--green-800);
  font-family: var(--font-display);
  font-size: 31px;
  font-style: italic;
  line-height: 1;
}

.cover-signoff small {
  display: block;
  margin-top: 4px;
  color: rgba(66, 79, 62, 0.62);
  font-size: 12px;
  text-transform: uppercase;
}

.cover-control-panel {
  align-self: center;
  display: grid;
  gap: 18px;
  justify-items: center;
}

.cover-arch {
  width: min(330px, 100%);
  aspect-ratio: 0.72;
  margin: 0;
  overflow: hidden;
  border-top-left-radius: 999px;
  border-top-right-radius: 999px;
  box-shadow: 0 28px 70px rgba(66, 79, 62, 0.16);
}

.cover-arch img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cover-entry-label {
  margin: 0;
  color: var(--green-800);
  font-family: var(--font-display);
  font-size: clamp(26px, 2.5vw, 34px);
  font-style: italic;
  line-height: 1.02;
}

.cover-auth-panel {
  display: grid;
  gap: 16px;
  width: min(360px, 100%);
}

.cover-auth {
  display: grid;
  gap: 16px;
  width: 100%;
}

.cover-auth label {
  display: grid;
  gap: 5px;
}

.cover-auth label span {
  color: rgba(66, 79, 62, 0.78);
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: none;
}

.cover-auth input {
  width: 100%;
  min-height: 40px;
  padding: 4px 0 8px;
  color: var(--green-800);
  font-size: 18px;
  line-height: 1.25;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(66, 79, 62, 0.34);
  border-radius: 0;
  outline: none;
}

.cover-auth input:focus {
  border-color: var(--green-800);
  box-shadow: 0 1px 0 0 var(--green-800);
}

.cover-auth-error {
  min-height: 18px;
  margin: 0;
  color: var(--critical);
  font-size: 12px;
  line-height: 1.35;
}

.cover-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 12px 26px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 23px;
  font-style: italic;
  text-decoration: none;
  background: var(--green-800);
  border: 1px solid var(--green-800);
  border-radius: 0;
}

.cover-enter:hover,
.cover-enter:focus-visible {
  color: var(--green-800);
  background: transparent;
  outline: 2px solid rgba(66, 79, 62, 0.28);
  outline-offset: 3px;
}

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

.mobile-shell-bar,
.drawer-head,
.nav-scrim {
  display: none;
}

.sidebar {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 30px;
  height: 100vh;
  padding: 28px 22px;
  color: var(--green-800);
  background:
    linear-gradient(90deg, rgba(66, 79, 62, 0.055), transparent 34px),
    rgba(251, 250, 244, 0.86);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.sidebar::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  content: "";
  background: linear-gradient(var(--green-800), rgba(66, 79, 62, 0.2));
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 166px;
  height: auto;
}

.brand span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.primary-nav {
  display: grid;
  gap: 8px;
  align-content: start;
}

.nav-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  color: var(--muted);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(66, 79, 62, 0.08);
  border-radius: 0;
}

.nav-item:hover,
.nav-item:focus-visible,
.nav-item.is-active {
  color: var(--ink);
  background: rgba(229, 235, 225, 0.72);
  border: 1px solid var(--line);
  outline: none;
}

.nav-glyph {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--green-800);
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
  font-weight: 400;
  border: 1px solid rgba(66, 79, 62, 0.24);
  border-radius: 50%;
}

.nav-item.is-active .nav-glyph {
  color: var(--paper);
  background: var(--green-800);
  border-color: var(--green-800);
}

.sidebar-panel,
.source-box {
  padding: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.sidebar-panel {
  align-self: end;
  padding-top: 18px;
}

.panel-kicker,
.context-line {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sidebar .panel-kicker {
  color: var(--muted);
}

.standard-line {
  margin: 0;
  color: var(--green-800);
  font-family: var(--font-display);
  font-size: 25px;
  font-style: italic;
  line-height: 1.12;
}

.source-box {
  display: grid;
  gap: 4px;
  padding-top: 16px;
  font-size: 13px;
}

.source-box strong {
  color: var(--green-800);
}

.source-box span,
.source-box small {
  color: var(--muted);
}

.mobile-menu-button,
.drawer-close {
  appearance: none;
  border: 1px solid rgba(66, 79, 62, 0.28);
  background: transparent;
}

.mobile-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 48px;
  height: 48px;
  padding: 0 13px;
  color: var(--green-800);
  border-radius: 50%;
}

.mobile-menu-button:focus-visible,
.drawer-close:focus-visible {
  outline: 2px solid rgba(66, 79, 62, 0.36);
  outline-offset: 3px;
}

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

.menu-icon {
  display: grid;
  gap: 4px;
}

.menu-icon span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--green-800);
  border-radius: 999px;
}

.drawer-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--green-800);
  font-weight: 800;
  border-radius: 50%;
}

.main-panel {
  padding: 30px 32px;
  background:
    linear-gradient(rgba(251, 250, 244, 0.95), rgba(251, 250, 244, 0.97)),
    url("./assets/strip-landscape.jpg") center top / cover fixed;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: var(--green-800);
  font-family: var(--font-display);
  font-size: clamp(44px, 4.8vw, 72px);
  font-weight: 400;
  line-height: 0.92;
}

h2 {
  margin: 0;
  color: var(--green-800);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.08;
}

.topbar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(430px, 100%);
}

.search-field {
  display: grid;
  gap: 5px;
  min-width: 320px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(38, 48, 36, 0.06);
}

.search-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.search-field input {
  width: 100%;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.date-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  min-width: 118px;
  min-height: 56px;
  padding: 9px 11px;
  color: var(--green-800);
  background: rgba(241, 209, 158, 0.72);
  border: 1px solid rgba(66, 79, 62, 0.12);
}

.date-chip small {
  color: rgba(66, 79, 62, 0.72);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.date-chip span {
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.date-chip strong {
  font-size: 12px;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  margin-bottom: 18px;
}

body[data-view="dashboard"] .hero-grid,
body[data-view="northstar"] .hero-grid {
  display: none;
}

body[data-view="dashboard"] .score-strip,
body[data-view="northstar"] .score-strip {
  display: none;
}

.sally-panel,
.score-strip,
.table-shell,
.rail-section,
.timeline-section {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.sally-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 24px;
  min-height: 238px;
  padding: 28px;
  overflow: hidden;
}

.sally-panel::after {
  content: "";
  position: absolute;
  inset: auto -90px -150px auto;
  width: 320px;
  height: 320px;
  background:
    repeating-radial-gradient(circle, rgba(66, 79, 62, 0.18) 0 1px, transparent 1px 18px);
  opacity: 0.8;
  pointer-events: none;
}

.sally-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.sally-copy h2 {
  max-width: 670px;
  font-size: clamp(34px, 4vw, 54px);
}

.sally-copy p:last-child {
  max-width: 680px;
  margin: 18px 0 0;
  color: #41473e;
  font-size: 17px;
  line-height: 1.55;
}

.sally-meter {
  position: relative;
  z-index: 1;
  align-self: end;
  display: grid;
  gap: 10px;
  padding: 18px;
  background: var(--green-800);
  border-radius: var(--radius);
  color: #fff;
}

.sally-meter span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  text-transform: uppercase;
}

.sally-meter strong {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
}

.meter-track {
  height: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.meter-track span {
  display: block;
  height: 100%;
  background: var(--sand-300);
}

.score-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.metric-card {
  appearance: none;
  display: block;
  min-width: 0;
  min-height: 110px;
  padding: 20px;
  text-align: left;
  background: rgba(255, 255, 255, 0.94);
  border: 0;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.metric-card:hover,
.metric-card:focus-visible,
.metric-card.is-active {
  background: var(--sand-100);
  box-shadow: inset 0 0 0 2px rgba(66, 79, 62, 0.18);
  outline: none;
}

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

.score-strip p {
  margin: 12px 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.score-strip strong {
  display: block;
  color: var(--green-800);
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 400;
}

.metric-card small {
  display: block;
  max-width: 170px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.32;
}

.status-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.critical {
  background: var(--critical);
}

.high {
  background: var(--high);
}

.evidence {
  background: var(--open);
}

.closed {
  background: var(--closed);
}

.open {
  background: var(--open);
}

.monitor {
  background: var(--closed);
}

.dynamic-surface {
  display: grid;
  gap: 18px;
}

.north-star-signal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  padding: 25px 28px;
  color: #fffdf8;
  background:
    linear-gradient(90deg, rgba(50, 61, 47, 0.98), rgba(50, 61, 47, 0.88)),
    linear-gradient(135deg, rgba(241, 209, 158, 0.14), transparent 44%),
    var(--green-800);
  border: 1px solid rgba(241, 209, 158, 0.28);
  box-shadow: var(--shadow);
}

.north-star-signal .context-line {
  color: rgba(241, 209, 158, 0.78);
}

.north-star-signal h2 {
  max-width: 960px;
  color: #fffdf8;
  font-size: clamp(27px, 2.4vw, 40px);
  line-height: 1.04;
}

.north-star-signal p:not(.context-line) {
  max-width: 780px;
  margin: 12px 0 0;
  color: rgba(248, 243, 232, 0.76);
  font-size: 15px;
  line-height: 1.5;
}

.signal-action {
  appearance: none;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  color: var(--green-900);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  background: var(--sand-300);
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 0;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.signal-action:hover,
.signal-action:focus-visible {
  background: #f7ddb3;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
  outline: none;
}

.signal-action:active {
  transform: translateY(1px);
}

.northern-star {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  color: #f8f3e8;
  background:
    linear-gradient(135deg, rgba(241, 209, 158, 0.15), transparent 28%),
    var(--green-900);
  border: 1px solid rgba(241, 209, 158, 0.28);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.star-primer {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  min-height: 0;
  padding: clamp(24px, 3vw, 36px);
  background:
    radial-gradient(circle at 8% 12%, rgba(241, 209, 158, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(38, 48, 36, 0.08), rgba(38, 48, 36, 0.72)),
    repeating-linear-gradient(132deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 34px);
}

.star-primer-main {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  min-width: 0;
}

.star-primer .context-line {
  color: rgba(241, 209, 158, 0.78);
}

.star-primer h2 {
  max-width: 720px;
  color: #fffdf8;
  font-size: clamp(38px, 4vw, 62px);
}

.star-primer p:not(.context-line) {
  max-width: 780px;
  margin: 14px 0 0;
  color: rgba(248, 243, 232, 0.82);
  font-size: 15px;
  line-height: 1.55;
}

.star-philosophy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.star-philosophy span {
  padding: 7px 10px;
  color: rgba(255, 253, 248, 0.9);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(255, 253, 248, 0.08);
  border: 1px solid rgba(241, 209, 158, 0.24);
  border-radius: 999px;
}

.star-primer-side {
  display: grid;
  flex: 0 1 330px;
  gap: 8px;
  padding: 18px;
  color: #fffdf8;
  background: rgba(255, 253, 248, 0.07);
  border: 1px solid rgba(241, 209, 158, 0.2);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 253, 248, 0.08);
}

.star-primer-side strong {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.08;
}

.star-primer-side > span {
  color: rgba(248, 243, 232, 0.76);
  font-size: 13px;
  line-height: 1.4;
}

.star-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.star-tags span {
  padding: 6px 9px;
  color: var(--sand-300);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  background: rgba(241, 209, 158, 0.08);
  border: 1px solid rgba(241, 209, 158, 0.18);
  border-radius: 999px;
}

.compass-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  color: var(--sand-300);
  border: 1px solid rgba(241, 209, 158, 0.55);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 10px rgba(241, 209, 158, 0.05),
    0 18px 40px rgba(0, 0, 0, 0.18);
}

.compass-mark span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  border: 1px solid rgba(241, 209, 158, 0.22);
  border-radius: 50%;
}

.star-lanes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(241, 209, 158, 0.22);
  border-top: 1px solid rgba(241, 209, 158, 0.24);
}

.star-lane {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 232px;
  padding: clamp(22px, 2.2vw, 30px);
  color: var(--ink);
  background: rgba(255, 253, 248, 0.96);
}

.star-overview {
  position: relative;
  min-height: 218px;
  isolation: isolate;
}

.star-overview::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 72px;
  height: 72px;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(241, 209, 158, 0.24) 0 2px, transparent 3px),
    linear-gradient(135deg, transparent 47%, rgba(38, 48, 36, 0.13) 48% 52%, transparent 53%);
  background-size: 18px 18px, 100% 100%;
  opacity: 0.52;
  border-radius: 50%;
  z-index: -1;
}

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

.star-lane-head span,
.star-proof-grid span,
.star-proof span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.star-lane-head strong {
  flex: 0 0 auto;
  padding: 6px 9px;
  color: var(--green-800);
  font-size: 11px;
  font-weight: 900;
  background: var(--sand-100);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.star-critical .star-lane-head strong {
  color: var(--critical);
  background: var(--critical-soft);
  border-color: rgba(163, 60, 50, 0.22);
}

.star-high .star-lane-head strong {
  color: #9a561d;
  background: var(--high-soft);
  border-color: rgba(200, 118, 38, 0.24);
}

.star-open .star-lane-head strong {
  color: #816816;
  background: var(--open-soft);
  border-color: rgba(184, 154, 45, 0.24);
}

.star-lane h3 {
  margin: 0;
  color: var(--green-800);
  font-family: var(--font-display);
  font-size: clamp(27px, 2.05vw, 36px);
  font-weight: 400;
  line-height: 1.04;
}

.star-lane p {
  margin: 0;
  color: #343b31;
  font-size: 14px;
  line-height: 1.52;
}

.star-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 2px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.star-proof-grid div,
.star-proof {
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 106px;
  padding: 13px 14px;
  background: rgba(248, 247, 241, 0.72);
}

.star-proof {
  min-height: 0;
  margin-top: -18px;
  padding: 14px 0 0;
  background: transparent;
  border-top: 1px solid var(--line);
}

.star-proof-grid strong,
.star-proof strong {
  margin: 0;
  color: #30372e;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.42;
}

.star-detail-stack {
  display: grid;
  gap: 18px;
}

.star-detail-heading {
  padding: 10px 4px 0;
}

.star-detail-heading h2 {
  color: var(--green-800);
  font-size: clamp(34px, 3.8vw, 58px);
}

.star-detail-heading > p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.star-detail-card {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 2.4vw, 30px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.star-detail-card header h2 {
  max-width: 880px;
  color: var(--green-800);
  font-size: clamp(31px, 3vw, 46px);
}

.star-detail-card header > strong {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: var(--green-800);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  background: var(--sand-100);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.star-detail-body {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 1.15fr);
  gap: 18px;
}

.star-context,
.star-now {
  padding: 18px;
  background: #f8f7f1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.star-context span,
.star-now span,
.milestone-item span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.star-context p {
  margin: 10px 0 0;
  color: #343b31;
  font-size: 15px;
  line-height: 1.55;
}

.star-now {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  overflow: hidden;
  background: var(--line);
}

.star-now div {
  min-height: 118px;
  padding: 16px;
  background: rgba(255, 253, 248, 0.92);
}

.star-now strong {
  display: block;
  margin-top: 9px;
  color: #30372e;
  font-size: 13px;
  line-height: 1.42;
}

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

.milestone-item {
  min-height: 142px;
  padding: 15px;
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.milestone-item span {
  width: max-content;
  max-width: 100%;
  margin-bottom: 10px;
  padding: 5px 8px;
  border-radius: 999px;
}

.milestone-item strong {
  display: block;
  color: var(--green-800);
  font-size: 15px;
  line-height: 1.22;
}

.milestone-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.milestone-banked span {
  color: var(--closed);
  background: var(--closed-soft);
}

.milestone-chasing span {
  color: var(--critical);
  background: var(--critical-soft);
}

.milestone-next span {
  color: #9a561d;
  background: var(--high-soft);
}

.milestone-watch span {
  color: #816816;
  background: var(--open-soft);
}

.milestone-verify span {
  color: var(--green-800);
  background: var(--green-100);
}

.command-brief {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(360px, 0.6fr);
  gap: 16px;
}

.command-read,
.command-status {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.command-read {
  position: relative;
  min-height: 386px;
  padding: clamp(28px, 2.8vw, 40px);
  overflow: hidden;
}

.command-read::after {
  position: absolute;
  right: -96px;
  bottom: -138px;
  width: 310px;
  height: 310px;
  content: "";
  border: 1px solid rgba(66, 79, 62, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 18px rgba(66, 79, 62, 0.025),
    0 0 0 40px rgba(66, 79, 62, 0.018),
    0 0 0 64px rgba(66, 79, 62, 0.012);
}

.command-read h2 {
  position: relative;
  z-index: 1;
  max-width: 880px;
  color: var(--green-800);
  font-size: clamp(40px, 3.8vw, 58px);
  line-height: 1;
}

.command-read > p:not(.context-line) {
  position: relative;
  z-index: 1;
  max-width: 850px;
  margin: 18px 0 0;
  color: #343b31;
  font-size: 17px;
  line-height: 1.55;
}

.command-rules {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
}

.command-rules span {
  display: flex;
  align-items: end;
  min-height: 74px;
  padding: 14px;
  color: var(--green-800);
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  line-height: 1.12;
  background: rgba(248, 247, 241, 0.86);
}

.command-status {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(241, 209, 158, 0.26), rgba(255, 255, 255, 0.72)),
    rgba(255, 255, 255, 0.78);
}

.command-status h3 {
  color: var(--green-800);
  font-family: var(--font-display);
  font-size: clamp(28px, 2.1vw, 36px);
  font-weight: 400;
  line-height: 1.05;
}

.command-metrics {
  display: grid;
  gap: 8px;
  overflow: visible;
  background: transparent;
  border: 0;
}

.command-metrics div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 0;
  padding: 12px 0;
  background: transparent;
  border-top: 1px solid var(--line);
}

.command-metrics strong {
  color: var(--green-800);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
}

.command-metrics span,
.command-status > p:not(.context-line) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.command-pressure .section-heading {
  align-items: flex-start;
}

.command-pressure .section-heading > p {
  max-width: 540px;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.48;
}

.cockpit-grid,
.sally-diagnosis {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
  gap: 18px;
}

.diagnosis-card,
.insight-card,
.person-card,
.lane-card,
.action-card,
.empty-state,
.control-stack {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.diagnosis-card {
  padding: 24px;
}

.diagnosis-card.span-2 {
  grid-row: span 2;
}

.diagnosis-card.warning {
  background: linear-gradient(180deg, rgba(247, 231, 229, 0.94), rgba(255, 255, 255, 0.9));
}

.diagnosis-card h2,
.insight-card h2 {
  max-width: 780px;
  font-size: clamp(30px, 3vw, 44px);
}

.diagnosis-card p:not(.context-line),
.insight-card p:not(.context-line) {
  max-width: 820px;
  margin: 14px 0 0;
  color: #3b4138;
  font-size: 16px;
  line-height: 1.55;
}

.control-stack {
  display: grid;
  align-content: center;
  min-height: 150px;
  padding: 20px;
}

.control-stack strong {
  color: var(--green-800);
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  line-height: 1;
}

.control-stack span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.section-block,
.timeline-section {
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

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

.insight-card {
  padding: 22px 24px;
}

.team-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.team-strip article {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.92);
}

.team-strip img {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  object-fit: cover;
  object-position: center;
  background: var(--sand-100);
  border: 1px solid rgba(66, 79, 62, 0.15);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(38, 48, 36, 0.1);
}

.team-strip div {
  min-width: 0;
}

.team-strip strong,
.pattern-list strong,
.person-head strong {
  display: block;
  color: var(--green-800);
  font-size: 15px;
}

.team-strip small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.team-strip span,
.pattern-list span,
.pattern-list em {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.42;
}

.pattern-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.pattern-list article {
  padding: 13px 14px;
  background: #f8f7f1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.pattern-list article.is-hot {
  background: linear-gradient(135deg, rgba(247, 231, 229, 0.98), rgba(255, 253, 248, 0.96));
  border-color: rgba(163, 60, 50, 0.28);
  box-shadow: inset 4px 0 0 var(--critical);
}

.pattern-list em {
  color: var(--green-800);
  font-weight: 700;
}

.briefing-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.briefing-strip article {
  min-height: 180px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.92);
}

.briefing-strip span {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.briefing-strip strong {
  display: block;
  color: var(--green-800);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.08;
}

.briefing-strip p {
  margin: 14px 0 0;
  color: #3d433a;
  font-size: 14px;
  line-height: 1.45;
}

.number-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 20px;
  color: #353b32;
  line-height: 1.45;
}

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

.person-card {
  padding: 20px 22px;
}

.person-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.person-identity {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.person-identity img {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  object-fit: cover;
  object-position: center;
  background: var(--sand-100);
  border: 1px solid rgba(66, 79, 62, 0.16);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(38, 48, 36, 0.12);
}

.person-identity div {
  min-width: 0;
}

.person-head span,
.person-head em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  font-style: normal;
  text-transform: uppercase;
}

.person-head em {
  flex: 0 0 auto;
  padding: 6px 9px;
  color: var(--green-800);
  background: var(--sand-100);
  border: 1px solid rgba(66, 79, 62, 0.12);
  border-radius: 999px;
}

.person-card.needs-attention {
  background: linear-gradient(145deg, rgba(247, 231, 229, 0.98), rgba(255, 255, 255, 0.92) 58%);
  border-color: rgba(163, 60, 50, 0.28);
  box-shadow: var(--shadow), inset 5px 0 0 var(--critical);
}

.person-card.needs-attention .person-head em {
  color: #fff;
  background: var(--critical);
  border-color: transparent;
}

.diagnostic-dl,
.mini-dl {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.diagnostic-dl div,
.mini-dl div {
  display: grid;
  gap: 4px;
  padding: 0;
  border: 0;
}

.diagnostic-dl dt,
.mini-dl dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.diagnostic-dl dd,
.mini-dl dd {
  margin: 0;
  color: #323830;
  font-size: 13px;
  line-height: 1.42;
}

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

.action-queue.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.action-card {
  appearance: none;
  position: relative;
  display: grid;
  gap: 9px;
  min-height: 238px;
  padding: 18px 18px 17px;
  text-align: left;
  border-left: 4px solid var(--line-strong);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.action-card:hover,
.action-card:focus-visible {
  transform: translateY(-2px);
  background: var(--sand-100);
  outline: none;
}

.action-card.status-critical {
  border-left-color: var(--critical);
}

.action-card.status-high {
  border-left-color: var(--high);
}

.action-card.status-open {
  border-left-color: var(--open);
}

.action-meta {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.action-card > strong {
  color: var(--green-800);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.06;
}

.action-card p {
  margin: 0;
  color: #373d34;
  font-size: 14px;
  line-height: 1.45;
}

.action-card .status-label {
  width: max-content;
  align-self: end;
}

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

.lane-card {
  display: grid;
  gap: 15px;
  min-height: 306px;
  padding: 20px 22px;
}

.lane-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.lane-head .status-dot {
  flex: 0 0 auto;
  margin-top: 7px;
}

.lane-head h2 {
  font-size: 30px;
}

.lane-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: end;
}

.lane-actions button {
  padding: 7px 9px;
  color: var(--green-800);
  font-size: 12px;
  font-weight: 800;
  background: var(--sand-100);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.lane-actions button:hover,
.lane-actions button:focus-visible {
  background: var(--sand-300);
  outline: none;
}

.evidence-shell {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.evidence-shell table {
  table-layout: auto;
}

.evidence-shell th:nth-child(1),
.evidence-shell td:nth-child(1) {
  width: 32%;
}

.evidence-shell th:nth-child(2),
.evidence-shell td:nth-child(2) {
  width: 16%;
}

.evidence-shell th:nth-child(3),
.evidence-shell td:nth-child(3) {
  width: 13%;
}

.evidence-shell th:nth-child(4),
.evidence-shell td:nth-child(4) {
  width: 27%;
}

.evidence-shell th:nth-child(5),
.evidence-shell td:nth-child(5) {
  width: 12%;
}

.meeting-cycle {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.meeting-cycle article {
  min-height: 246px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.92);
}

.meeting-cycle time {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--critical);
  font-size: 12px;
  font-weight: 900;
}

.meeting-cycle strong {
  display: block;
  color: var(--green-800);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.05;
}

.meeting-cycle span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.meeting-cycle p,
.meeting-cycle em {
  display: block;
  margin: 14px 0 0;
  color: #343a31;
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.meeting-cycle em {
  color: var(--critical);
  font-weight: 700;
}

.empty-state {
  padding: 22px;
}

.empty-state strong,
.empty-state span {
  display: block;
}

.empty-state span {
  margin-top: 6px;
  color: var(--muted);
}

.content-grid {
  display: grid;
  gap: 18px;
}

.view-summary {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 1.4fr;
  gap: 1px;
  margin: 0 0 16px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(38, 48, 36, 0.06);
}

.view-summary article {
  padding: 14px 16px 15px;
  background: rgba(255, 253, 248, 0.9);
}

.view-summary span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.view-summary strong {
  color: var(--green-800);
  font-size: 14px;
  line-height: 1.35;
}

.work-area {
  min-width: 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 12px;
}

.section-heading.compact {
  align-items: flex-start;
}

.section-intro {
  max-width: 880px;
  margin: -2px 0 16px;
  color: #3e463a;
  font-size: 15.5px;
  line-height: 1.58;
}

.filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter {
  min-height: 34px;
  padding: 7px 12px;
  color: var(--green-800);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.filter:hover,
.filter:focus-visible,
.filter.is-active {
  color: #fff;
  background: var(--green-700);
  outline: none;
}

.table-shell {
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

th:nth-child(1),
td:nth-child(1) {
  width: 28%;
}

th:nth-child(2),
td:nth-child(2) {
  width: 12%;
}

th:nth-child(3),
td:nth-child(3) {
  width: 11%;
}

th:nth-child(4),
td:nth-child(4) {
  width: 17%;
}

th:nth-child(5),
td:nth-child(5) {
  width: 23%;
}

th:nth-child(6),
td:nth-child(6) {
  width: 9%;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  background: #f8f7f1;
}

td {
  font-size: 13px;
  line-height: 1.42;
}

tbody tr {
  transition: background 160ms ease, transform 160ms ease;
}

tbody tr:hover {
  background: var(--sand-100);
}

tbody tr:focus-visible {
  outline: 2px solid var(--sand-300);
  outline-offset: -2px;
}

.workstream-name {
  display: grid;
  gap: 6px;
  min-width: 190px;
}

.workstream-name strong {
  color: var(--green-800);
  font-size: 15px;
}

.workstream-name span {
  color: var(--muted);
  font-size: 12px;
}

.status-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
}

.status-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-critical {
  color: var(--critical);
  background: var(--critical-soft);
}

.status-critical::before {
  background: var(--critical);
}

.status-high {
  color: var(--high);
  background: var(--high-soft);
}

.status-high::before {
  background: var(--high);
}

.status-open {
  color: #755f11;
  background: var(--open-soft);
}

.status-open::before {
  background: var(--open);
}

.status-monitor {
  color: var(--closed);
  background: var(--closed-soft);
}

.status-monitor::before {
  background: var(--closed);
}

.right-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  gap: 18px;
  align-content: start;
}

.rail-section {
  padding: 20px;
}

.test-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tests;
}

.test-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  color: #333830;
}

.test-list li::before {
  counter-increment: tests;
  content: counter(tests);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--green-800);
  font-weight: 800;
  background: var(--sand-300);
  border-radius: 50%;
}

.test-list strong,
.evidence-list strong {
  display: block;
  color: var(--green-800);
  font-size: 14px;
}

.test-list span,
.evidence-list span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
}

.evidence-list {
  display: grid;
  gap: 12px;
}

.evidence-list article {
  padding: 12px;
  background: #f8f7f1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.timeline-section {
  margin-top: 18px;
  padding: 22px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.timeline article {
  min-height: 156px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.timeline time {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--critical);
  font-size: 12px;
  font-weight: 900;
}

.timeline strong {
  display: block;
  color: var(--green-800);
  font-size: 16px;
}

.timeline p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

dialog {
  width: min(620px, calc(100vw - 32px));
  padding: 26px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(20, 26, 18, 0.58);
  backdrop-filter: blur(4px);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  color: var(--green-800);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
}

dl {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
}

dl div {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 6px 0 0;
  color: #31362f;
  line-height: 1.45;
}

@media (max-width: 1380px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .northern-star,
  .star-lanes {
    grid-template-columns: 1fr;
  }

  .star-lane {
    min-height: 0;
  }

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

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

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

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 236px minmax(0, 1fr);
  }

  .sidebar {
    padding: 24px 18px;
  }

  .brand {
    align-items: flex-start;
  }

  .nav-item {
    grid-template-columns: 28px 1fr;
    justify-items: start;
    padding: 8px;
  }

}

@media (max-width: 980px) {
  .cover-screen {
    place-items: start center;
    padding-bottom: 34px;
  }

  .cover-shell {
    grid-template-columns: 1fr;
    gap: 34px;
    align-items: stretch;
  }

  .cover-logo {
    margin-bottom: 42px;
  }

  .cover-note-panel h1 {
    max-width: 720px;
    font-size: clamp(46px, 11vw, 80px);
  }

  .cover-control-panel {
    position: static;
    display: block;
    width: 100%;
    max-width: none;
    padding: clamp(18px, 3.2vw, 28px);
    background: rgba(255, 253, 248, 0.68);
    border: 1px solid rgba(66, 79, 62, 0.16);
  }

  .cover-auth-panel {
    display: grid;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
  }

  .cover-entry-label {
    display: block;
  }

  .cover-auth {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px 24px;
    align-items: end;
  }

  .cover-auth-error {
    grid-column: 1 / -1;
    order: 4;
  }

  .cover-arch {
    display: none;
  }

  .cover-enter {
    grid-column: 1 / -1;
    width: 100%;
  }

  body {
    padding-top: 72px;
  }

  .mobile-shell-bar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 12px 18px;
    color: var(--green-800);
    background: rgba(251, 250, 244, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
  }

  .mobile-shell-bar img {
    display: block;
    width: 152px;
    height: auto;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 26px;
    width: min(330px, calc(100vw - 46px));
    height: 100vh;
    padding: 18px;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform 220ms ease;
    box-shadow: 28px 0 60px rgba(47, 54, 43, 0.18);
  }

  body.nav-open .sidebar {
    transform: translateX(0);
  }

  .drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .nav-scrim:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: block;
    background: rgba(40, 61, 44, 0.34);
    backdrop-filter: blur(3px);
  }

  .brand {
    align-items: flex-start;
  }

  .brand img {
    display: block;
    width: 182px;
  }

  .brand span,
  .nav-item span:last-child,
  .sidebar-panel {
    display: block;
  }

  .source-box {
    display: grid;
  }

  .primary-nav {
    display: grid;
    gap: 8px;
    overflow: visible;
    margin-top: 4px;
    padding-bottom: 0;
  }

  .nav-item {
    grid-template-columns: 28px 1fr;
    justify-items: start;
    width: 100%;
    padding: 8px 10px;
  }

  .topbar {
    display: grid;
    gap: 16px;
  }

  .topbar-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-width: 0;
  }

  .search-field {
    min-width: 0;
  }

  .date-chip {
    justify-self: start;
    min-width: 136px;
    min-height: 0;
    padding: 8px 11px;
    background: rgba(241, 209, 158, 0.62);
    box-shadow: 0 10px 28px rgba(38, 48, 36, 0.05);
  }

  .date-chip small,
  .date-chip span,
  .date-chip strong {
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
  }

  .command-brief {
    grid-template-columns: 1fr;
  }

  .command-read {
    min-height: 0;
  }

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

  .command-status {
    grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
    align-items: start;
  }

  .command-status .context-line,
  .command-status h3,
  .command-status > p:not(.context-line) {
    grid-column: 1;
  }

  .command-metrics {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .star-primer {
    align-items: stretch;
    flex-direction: column;
  }

  .star-primer-side {
    flex-basis: auto;
  }

  .right-rail,
  .view-summary {
    grid-template-columns: 1fr;
  }

  .north-star-signal {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .signal-action {
    justify-self: start;
  }

  .star-detail-body,
  .star-now,
  .milestone-list {
    grid-template-columns: 1fr;
  }

  .star-now div,
  .milestone-item {
    min-height: 0;
  }

  .cockpit-grid,
  .sally-diagnosis,
  .two-column,
  .star-lanes,
  .briefing-strip,
  .team-grid,
  .team-strip,
  .action-queue,
  .action-queue.compact,
  .lane-grid,
  .meeting-cycle {
    grid-template-columns: 1fr;
  }

  table {
    min-width: 880px;
  }

  .table-shell {
    overflow-x: auto;
  }
}

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

  .cover-enter {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  body {
    padding-top: 72px;
  }

  .cover-screen {
    padding: 24px 18px;
  }

  .cover-logo {
    margin-bottom: 38px;
    font-size: 27px;
  }

  .cover-note-panel h1 {
    font-size: clamp(42px, 15vw, 64px);
    line-height: 1.08;
  }

  .cover-letter {
    margin-top: 26px;
    font-size: 15.5px;
    line-height: 1.68;
  }

  .cover-control-panel {
    right: 18px;
    left: 18px;
    bottom: 18px;
  }

  .cover-entry-label {
    white-space: nowrap;
  }

  .cover-enter {
    flex: none;
  }

  .mobile-shell-bar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 12px 16px;
    color: var(--green-800);
    background: rgba(251, 250, 244, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
  }

  .mobile-shell-bar img {
    display: block;
    width: 152px;
    height: auto;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 26px;
    width: min(330px, calc(100vw - 46px));
    height: 100vh;
    padding: 18px;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform 220ms ease;
    box-shadow: 28px 0 60px rgba(47, 54, 43, 0.18);
  }

  body.nav-open .sidebar {
    transform: translateX(0);
  }

  .drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .nav-scrim:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: block;
    background: rgba(40, 61, 44, 0.34);
    backdrop-filter: blur(3px);
  }

  .brand {
    align-items: flex-start;
  }

  .brand::before {
    display: none;
  }

  .brand img {
    display: block;
    width: 182px;
  }

  .brand span,
  .nav-item span:last-child,
  .sidebar-panel {
    display: block;
  }

  .source-box {
    display: grid;
  }

  .primary-nav {
    display: grid;
    gap: 8px;
    overflow: visible;
    margin-top: 4px;
    padding-bottom: 0;
  }

  .nav-item {
    grid-template-columns: 28px 1fr;
    justify-items: start;
    width: 100%;
    padding: 8px 10px;
  }

  .main-panel {
    padding: 17px;
  }

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

  .topbar-controls {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .search-field {
    min-width: 0;
    width: 100%;
  }

  .date-chip {
    width: max-content;
    min-height: 0;
    gap: 2px;
  }

  .sally-panel {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 22px;
  }

  .sally-meter {
    align-self: stretch;
  }

  .command-brief {
    grid-template-columns: 1fr;
  }

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

  .command-status {
    grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
    align-items: start;
  }

  .command-status .context-line,
  .command-status h3,
  .command-status > p:not(.context-line) {
    grid-column: 1;
  }

  .command-metrics {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  @media (max-width: 520px) {
    .command-status {
      grid-template-columns: 1fr;
    }

    .command-status .context-line,
    .command-status h3,
    .command-status > p:not(.context-line),
    .command-metrics {
      grid-column: auto;
      grid-row: auto;
    }
  }

  @media (max-width: 360px) {
    .command-rules {
      grid-template-columns: 1fr;
    }
  }

  .right-rail,
  .timeline,
  .view-summary {
    grid-template-columns: 1fr;
  }

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

  .metric-card {
    min-height: 104px;
    padding: 16px;
  }

  .diagnosis-card,
  .insight-card,
  .person-card,
  .lane-card,
  .action-card,
  .star-lane,
  .star-primer {
    padding: 18px;
  }

  .star-primer-main {
    gap: 16px;
  }

  .compass-mark {
    width: 60px;
    height: 60px;
  }

  .compass-mark span {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .person-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .person-identity img {
    width: 52px;
    height: 52px;
  }

  .person-head em {
    margin-left: 65px;
  }

  .diagnosis-card.span-2 {
    grid-row: auto;
  }

  .diagnosis-card h2,
  .insight-card h2 {
    font-size: 30px;
  }

  .action-card {
    min-height: 0;
  }

  .meeting-cycle article,
  .lane-card {
    min-height: 0;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  h1 {
    font-size: 44px;
    line-height: 0.96;
  }

  .sally-copy h2 {
    font-size: 34px;
  }

  .star-primer h2,
  .star-lane h3 {
    font-size: 30px;
  }

  .star-proof-grid {
    grid-template-columns: 1fr;
  }

  .star-proof-grid div {
    min-height: 0;
  }

  table {
    min-width: 860px;
  }
}

@media (max-width: 430px) {
  .cover-screen {
    padding: 20px 14px 260px;
  }

  .cover-logo {
    margin-bottom: 30px;
  }

  .cover-note-panel h1 {
    font-size: 42px;
  }

  .cover-control-panel {
    padding: 18px;
  }

  .cover-entry-label {
    display: block;
    font-size: 24px;
  }

  .cover-auth-panel {
    display: grid;
  }

  .cover-auth {
    grid-template-columns: 1fr;
  }

  .cover-enter {
    width: 100%;
    min-height: 50px;
  }

  .mobile-shell-bar {
    padding-inline: 14px;
  }

  .mobile-shell-bar img {
    width: min(148px, 56vw);
  }

  .star-primer-main {
    display: grid;
  }

  .star-detail-card header {
    display: grid;
  }

  .star-primer-side strong {
    font-size: 23px;
  }

  .mobile-menu-button {
    min-width: 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
  }

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

  .date-chip {
    gap: 2px;
    max-width: 100%;
    padding: 7px 9px;
  }

  .date-chip small,
  .date-chip span,
  .date-chip strong {
    font-size: 11px;
  }

  .person-head em {
    margin-left: 0;
  }
}
