:root {
  color-scheme: light;
  --void: #f7f3eb;
  --panel: rgba(255, 255, 255, 0.72);
  --gold-ink: #8b6414;
  --gold-ink-dim: rgba(139, 100, 20, 0.08);
  --gold-ink-border: rgba(139, 100, 20, 0.2);
  --ink: rgba(0, 0, 0, 0.82);
  --muted: rgba(0, 0, 0, 0.42);
  --quiet: rgba(0, 0, 0, 0.16);
  --line: rgba(0, 0, 0, 0.07);
  --paper: var(--void);
  --surface: var(--panel);
  --accent: var(--gold-ink);
  --accent-2: #1e7a72;
  --risk: #9b2f37;
  --ok: #1e7a72;
  --sidebar-bg: rgba(247, 243, 235, 0.85);
  --sidebar-accent: rgba(139, 100, 20, 0.06);
  --ring: rgba(139, 100, 20, 0.3);
  --radius: 0.375rem;
  --font-sans: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
  font-weight: 400;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='860' height='430'%3E%3Cg stroke='%23888' stroke-width='0.7' fill='none'%3E%3Cellipse cx='430' cy='215' rx='410' ry='205'/%3E%3Cellipse cx='430' cy='215' rx='320' ry='160'/%3E%3Cellipse cx='430' cy='215' rx='230' ry='115'/%3E%3Cellipse cx='430' cy='215' rx='140' ry='70'/%3E%3Cellipse cx='430' cy='215' rx='55' ry='27'/%3E%3C/g%3E%3C/svg%3E");
  background-position: 50% 46%;
  background-repeat: no-repeat;
  background-size: 860px 430px;
}

body.homePage {
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.homeShell {
  display: block;
  min-height: 100vh;
  min-height: 100dvh;
}

.homeLanding {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  overflow: hidden;
}

.homeLanding::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 46%, rgba(139, 100, 20, 0.045) 0%, transparent 70%);
}

.homeInner {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.homeBadge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.homeDot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-ink);
  box-shadow: 0 0 6px rgba(139, 100, 20, 0.5);
  animation: sovereign-pulse 2.6s ease-in-out infinite;
}

@keyframes sovereign-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.35;
    transform: scale(0.65);
  }
}

.homeBadge span:last-child {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.homeName {
  margin: 0;
  color: var(--ink);
  font-size: clamp(40px, 8vw, 56px);
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
}

.homeTagline {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.12em;
}

.homeSub {
  margin: -12px 0 0;
  color: var(--quiet);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.homeTrialDisclosure {
  max-width: 620px;
  margin: 0 auto 14px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.homeForm {
  width: 100%;
}

.homeInputWrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--ring);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.75);
  transition: border-color 0.22s, box-shadow 0.22s;
}

.homeInputWrap:focus-within {
  border-color: rgba(139, 100, 20, 0.58);
  box-shadow: 0 0 0 3px rgba(139, 100, 20, 0.06);
}

.homeInputWrap input {
  flex: 1;
  min-width: 0;
  padding: 16px 20px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  caret-color: var(--gold-ink);
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: 0.02em;
}

.homeInputWrap input::placeholder {
  color: var(--quiet);
}

.homeInputWrap button {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: var(--gold-ink);
  color: #fff;
  cursor: pointer;
}

.homeInputWrap button svg {
  width: 13px;
  height: 13px;
  fill: none;
}

.homeInputWrap button path {
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.homeEnterArea {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: -12px;
}

.homePrimaryLink,
.homeStewardLink {
  color: rgba(0, 0, 0, 0.38);
  text-decoration: none;
  transition: color 0.2s;
}

.homePrimaryLink {
  display: flex;
  align-items: center;
  gap: 10px;
}

.homePrimaryLink:hover,
.homePrimaryLink:focus-visible,
.homeStewardLink:hover,
.homeStewardLink:focus-visible {
  color: var(--gold-ink);
  outline: none;
}

.homePrimaryLink span:first-child {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.homeArrow {
  opacity: 0.42;
  font-size: 14px;
}

.homeStewardLink {
  font-size: 9px;
  letter-spacing: 0.1em;
}

.homeScanLine {
  position: fixed;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.3;
  background: linear-gradient(90deg, transparent, rgba(139, 100, 20, 0.16), transparent);
  animation: sovereign-scan 10s linear infinite;
}

@keyframes sovereign-scan {
  0% {
    opacity: 0;
    transform: translateX(-110vw);
  }

  8%,
  92% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(110vw);
  }
}

.homeRhythm {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(640px, calc(100vw - 48px));
  border-top: 1px solid rgba(139, 100, 20, 0.16);
  border-bottom: 1px solid rgba(139, 100, 20, 0.16);
  transform: translateX(-50%);
}

.homeRhythm span {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(139, 100, 20, 0.12);
  color: rgba(0, 0, 0, 0.36);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.homeRhythm span:last-child {
  border-right: 0;
}

.shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  grid-template-rows: 48px minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  z-index: 1;
}

.ws-h {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--sidebar-bg);
}

.ws-h-brand {
  color: var(--gold-ink);
  cursor: default;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ws-h-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}

.routeLabel {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ws-h-actions button,
.ws-h-actions .ghost {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  padding: 4px 10px;
}

.ws-h-actions button:hover,
.ws-h-actions .ghost:hover,
.ws-h-actions .is-active {
  border-color: var(--ring);
  color: var(--gold-ink);
  opacity: 1;
}

.modeLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  position: relative;
}

.modeLink.is-active {
  background: rgba(139, 100, 20, 0.08);
  border-color: var(--gold-ink-border);
  color: var(--gold-ink);
}

.modeLink.is-active::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--gold-ink);
  margin-right: 6px;
}

.hidden {
  display: none !important;
}

.opsOnly,
body[data-surface-mode="principal"] .opsOnly {
  display: none !important;
}

body[data-surface-mode="principal"] .workspace {
  padding-top: 18px;
}

body[data-surface-mode="principal"] .principalCommandBar {
  order: 1;
}

body[data-surface-mode="principal"] .askbar {
  order: 2;
}

body[data-surface-mode="principal"] .deliveryDesk {
  order: 3;
}

body[data-surface-mode="principal"] .principalPacket {
  order: 4;
}

body[data-surface-mode="principal"] .principalCommandBar,
body[data-surface-mode="principal"] .askbar,
body[data-surface-mode="principal"] .deliveryDesk,
body[data-surface-mode="principal"] .principalPacket,
body[data-surface-mode="principal"] .fiduciaryBrief {
  min-width: 0;
  max-width: 100%;
}

body[data-surface-mode="principal"] .principalPacket {
  grid-template-columns: minmax(280px, 1.15fr) repeat(2, minmax(220px, 1fr));
}

body[data-surface-mode="principal"] .readinessReport {
  order: 5;
}

body[data-surface-mode="principal"] .mandateBar {
  order: 6;
}

body[data-surface-mode="principal"] .activationDiagnostic {
  order: 7;
}

body[data-surface-mode="principal"] .serviceFactory {
  order: 8;
}

body[data-surface-mode="principal"] .serviceFactoryOffers,
body[data-surface-mode="principal"] .serviceFactoryRhythm {
  display: none !important;
}

body[data-surface-mode="principal"] .executiveMetrics {
  order: 9;
}

body[data-surface-mode="principal"] .fiduciaryBrief {
  order: 10;
}

body[data-surface-mode="principal"] .standardDetails {
  order: 12;
}

body[data-surface-mode="ops"] .opsCommandBar {
  order: 1;
}

body[data-surface-mode="ops"] .principalCommandBar {
  display: none;
}

body[data-surface-mode="ops"] .deliveryDesk {
  order: 2;
}

body[data-surface-mode="ops"] .mandateBar {
  order: 3;
}

body[data-surface-mode="ops"] .activationDiagnostic {
  order: 4;
}

body[data-surface-mode="principal"] .principalPacket .packetActionGroup[aria-label="呈现插件"],
body[data-surface-mode="principal"] #principalVideoBriefStatus {
  display: none !important;
}

body[data-surface-mode="principal"] .metricPanel {
  display: none !important;
}

body[data-surface-mode="ops"] details.opsOnly,
body[data-surface-mode="ops"] section.opsOnly,
body[data-surface-mode="ops"] article.opsOnly,
body[data-surface-mode="ops"] .commandCenter.opsOnly,
body[data-surface-mode="ops"] .formalPackageBox.opsOnly {
  display: block !important;
}

body[data-surface-mode="ops"] button.opsOnly,
body[data-surface-mode="ops"] .ws-h-actions .modeLink,
body[data-surface-mode="ops"] .deliveryFilters button.opsOnly {
  display: inline-flex !important;
}

body[data-surface-mode="ops"] select.opsOnly,
body[data-surface-mode="ops"] input.opsOnly,
body[data-surface-mode="ops"] textarea.opsOnly {
  display: block !important;
}

body[data-surface-mode="ops"] .packetActionGroup.opsOnly {
  display: flex !important;
}

body[data-surface-mode="ops"] .exerciseDetails,
body[data-surface-mode="ops"] .advancedMetrics,
body[data-surface-mode="ops"] .auditDetails {
  display: block !important;
}

body[data-surface-mode="ops"] .topbar {
  border-bottom-color: var(--gold-ink-border);
}

.rail {
  grid-column: 1;
  grid-row: 2;
  border-right: 1px solid var(--line);
  background: var(--sidebar-bg);
  padding: 4px 8px;
  overflow-y: auto;
  min-height: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 10px;
  margin-bottom: 8px;
}

.mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--gold-ink-border);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--gold-ink);
  font-weight: 800;
  font-size: 13px;
}

.brand strong,
.brand small,
.panelHead h2,
.topbar h1 {
  display: block;
}

.brand small,
.muted,
.topbar p,
.panel small {
  color: var(--muted);
}

.brand strong {
  color: var(--gold-ink);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.brand small {
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.login {
  margin: 4px 2px 10px;
  padding: 10px 8px 12px;
  border-bottom: 1px solid var(--line);
}

.login summary {
  margin-bottom: 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  list-style-position: inside;
}

.login[open] summary {
  margin-bottom: 10px;
}

.trialDisclosure {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.row,
.actions,
.askActions,
.panelHead {
  display: flex;
  align-items: center;
  gap: 10px;
}

.row input,
.projectLine input,
.projectLine select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 10px 12px;
  font: inherit;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  outline: none;
}

.row input:focus,
.projectLine input:focus,
.projectLine select:focus,
textarea:focus {
  border-color: rgba(139, 100, 20, 0.45);
  box-shadow: 0 0 0 1px rgba(139, 100, 20, 0.36), 0 0 0 3px rgba(139, 100, 20, 0.08);
}

textarea {
  resize: vertical;
  min-height: 86px;
}

button,
.ghost {
  border: 1px solid var(--gold-ink-border);
  border-radius: 3px;
  padding: 9px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--gold-ink);
  color: #fefcf6;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s, background 0.15s, opacity 0.15s;
}

button:hover,
.ghost:hover {
  opacity: 0.86;
}

button:disabled,
.ghost:disabled {
  cursor: default;
  opacity: 0.42;
}

.ghost {
  background: transparent;
  color: var(--muted);
}

.navlist {
  display: grid;
  gap: 2px;
  margin-top: 8px;
}

.navitem {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  text-align: left;
  white-space: normal;
  transition: background 0.12s, border-color 0.12s;
}

.navitem:hover {
  border-color: var(--line);
  background: var(--sidebar-accent);
}

.navitem strong {
  display: block;
  color: rgba(0, 0, 0, 0.62);
  font-size: 12px;
  font-weight: 600;
}

.navitem span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.workspace {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  padding: 16px 24px 24px;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--void);
}

.topbar {
  order: 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin: 0 0 12px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.topbar h1 {
  margin: 0 0 8px;
  color: var(--gold-ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.topbar p {
  margin: 0;
  max-width: 880px;
  font-size: 12px;
  line-height: 1.55;
}

.mandateBar,
.activationDiagnostic,
.opsCommandBar,
.principalCommandBar,
.serviceFactory,
.readinessReport,
.askbar,
.panel,
.metrics > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.mandateBar {
  order: 1;
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(260px, 1.6fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.mandateBar strong,
.mandateBar small {
  display: block;
}

.mandateBar strong {
  color: var(--ink);
  font-size: 13px;
}

.mandateBar small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.mandateControls {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(160px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.mandateControls > * {
  min-width: 0;
  max-width: 100%;
}

.activationDiagnostic {
  order: 2;
  display: grid;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.opsCommandBar {
  order: 3;
  display: grid;
  gap: 10px;
  padding: 12px;
  margin-bottom: 12px;
  border-color: var(--gold-ink-border);
  background: rgba(255, 255, 255, 0.82);
}

.principalCommandBar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px;
}

.homeSceneGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}

.homeSceneGrid a {
  min-width: 0;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.45);
}

.homeSceneGrid strong,
.homeSceneGrid span {
  display: block;
  overflow-wrap: anywhere;
}

.homeSceneGrid strong {
  font-size: 12px;
}

.homeSceneGrid span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.homeSceneGrid a:hover,
.homeSceneGrid a:focus-visible {
  border-color: var(--gold-ink-border);
  color: var(--gold-ink);
  outline: none;
}

.principalCommandBar article {
  min-width: 0;
  min-height: 116px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.7);
}

.principalCommandBar small,
.principalCommandBar strong,
.principalCommandBar span {
  display: block;
  overflow-wrap: anywhere;
}

.principalCommandBar small {
  color: var(--gold-ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

.principalCommandBar strong {
  margin-top: 8px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.principalCommandBar span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.opsCommandHead,
.opsPriorityGrid article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.opsCommandHead small,
.opsPriorityGrid small,
.opsPriorityGrid span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.opsCommandHead strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.opsPriorityGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.opsPriorityGrid article {
  min-height: 92px;
  align-items: flex-start;
  flex-direction: column;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 243, 235, 0.42);
}

.opsPriorityGrid strong {
  color: var(--gold-ink);
  font-size: 20px;
  line-height: 1;
}

.activationDiagnosticHead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.activationDiagnosticHead strong,
.activationDiagnosticHead span {
  display: block;
}

.activationDiagnosticHead strong {
  color: var(--ink);
  font-size: 13px;
}

.activationDiagnosticHead span {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.activationDiagnosticActions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.activationDiagnosticList {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.activationDiagnosticList.is-collapsed {
  display: none;
}

.activationDiagnostic.is-slim {
  padding: 10px 12px;
  margin-bottom: 8px;
}

.activationDiagnostic.is-slim .activationDiagnosticHead {
  align-items: center;
}

.diagnosticStep {
  min-width: 0;
  min-height: 86px;
  padding: 10px;
  display: grid;
  gap: 6px;
  align-content: start;
  text-align: left;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.diagnosticStep:hover {
  border-color: var(--gold-ink-border);
}

.diagnosticStep strong {
  min-width: 0;
  font-size: 12px;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.diagnosticStep small {
  min-width: 0;
  color: var(--muted);
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.diagnosticStep .badge {
  justify-self: start;
}

.readinessReport {
  order: 3;
  display: grid;
  gap: 12px;
  padding: 12px;
  margin-bottom: 12px;
}

.readinessReportHead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.readinessReportHead small,
.readinessReportMeta span,
.readinessReportBoundary {
  color: var(--muted);
}

.readinessReportHead small {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.readinessReportHead h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: 0;
}

.readinessReportStatus {
  display: grid;
  gap: 6px;
  justify-items: end;
  min-width: 120px;
}

.readinessReportStatus strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
}

.readinessReportMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12px;
  line-height: 1.45;
}

.readinessOwnerSummary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.readinessOwnerSummary > div {
  min-width: 0;
  min-height: 86px;
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.28);
}

.readinessOwnerSummary small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.readinessOwnerSummary strong,
.readinessOwnerSummary span {
  min-width: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.readinessOwnerSummary strong {
  color: var(--ink);
  font-size: 13px;
}

.readinessOwnerSummary span {
  color: var(--muted);
  font-size: 12px;
}

.readinessReportRows {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 8px;
}

.readinessReportItem {
  min-width: 0;
  min-height: 112px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 8px;
  align-content: start;
  padding: 10px;
  text-align: left;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.36);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.readinessReportItem:hover {
  border-color: var(--gold-ink-border);
}

.readinessReportItem strong {
  min-width: 0;
  font-size: 13px;
  line-height: 1.3;
}

.readinessReportItem em {
  align-self: start;
  color: var(--gold-ink);
  font-size: 11px;
  font-style: normal;
}

.readinessReportItem span,
.readinessReportItem small {
  grid-column: 1 / -1;
  min-width: 0;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.readinessReportItem small,
.readinessReportBoundary {
  font-size: 11px;
}

.readinessReportBoundary {
  margin: 0;
  line-height: 1.5;
}

.serviceFactory {
  order: 3;
  display: grid;
  gap: 12px;
  padding: 12px;
  margin-bottom: 12px;
}

.serviceFactoryHead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.serviceFactoryHead small,
.serviceFactoryFlow small,
.serviceFactoryRhythm small {
  color: var(--muted);
}

.serviceFactoryHead small {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.serviceFactoryHead h2 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.42;
  letter-spacing: 0;
}

.serviceFactoryStatus {
  display: grid;
  gap: 6px;
  justify-items: end;
  min-width: 140px;
}

.serviceFactoryStatus strong {
  color: var(--ink);
  font-size: 14px;
}

.serviceFactoryOffers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.serviceOffer {
  min-width: 0;
  min-height: 142px;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.42);
}

.serviceOffer.is-primary {
  border-color: var(--gold-ink-border);
  background: rgba(255, 255, 255, 0.68);
}

.serviceOfferHead {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.serviceOffer strong,
.serviceFactoryRhythm strong {
  color: var(--ink);
}

.serviceOffer strong {
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
}

.serviceOffer span,
.serviceOffer small,
.serviceFactoryRhythm small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.serviceOffer p {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

.serviceOfferAction {
  width: fit-content;
  min-width: 112px;
  padding: 7px 9px;
  font-size: 11px;
}

.serviceFactoryFlow {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(170px, 0.58fr) minmax(0, 1.42fr);
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.serviceFactoryFlow strong {
  color: var(--ink);
}

.serviceFactoryFlowHead {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
}

.serviceFactoryFlow small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.45;
}

.serviceFactoryFlowAction {
  width: fit-content;
  min-width: 104px;
  margin-top: 9px;
  padding: 7px 9px;
  font-size: 11px;
}

.serviceFactoryFlowList {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

body[data-surface-mode="principal"] .serviceFactoryFlowList {
  grid-template-columns: minmax(0, 1fr);
}

.serviceFlowStep {
  min-width: 0;
  min-height: 112px;
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 9px;
  text-align: left;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.36);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.serviceFlowStepSingle {
  min-height: 86px;
}

.serviceFlowStep:hover,
.serviceFlowStep.is-current {
  border-color: var(--gold-ink-border);
}

.serviceFlowStep.is-complete {
  background: rgba(255, 255, 255, 0.58);
}

.serviceFlowStep.is-disabled,
.serviceFlowStep:disabled {
  cursor: default;
  opacity: 0.72;
}

.serviceFlowStep.is-disabled:hover,
.serviceFlowStep:disabled:hover {
  border-color: var(--line);
}

.serviceFlowStep em {
  justify-self: start;
  color: var(--gold-ink);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.serviceFlowStep strong {
  min-width: 0;
  font-size: 12px;
  line-height: 1.35;
}

.serviceFlowStep span,
.serviceFlowStep small {
  min-width: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.serviceFlowGuardrail {
  padding-top: 5px;
  border-top: 1px solid rgba(32, 30, 25, 0.08);
}

.serviceFlowActionText {
  color: var(--gold-ink) !important;
  font-weight: 650;
}

.serviceFactoryRhythm {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(260px, 1.4fr);
  gap: 12px;
  align-items: start;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.askbar {
  order: 7;
  padding: 12px;
  margin-bottom: 12px;
}

.askIntro {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.askIntro small {
  color: var(--gold-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.askIntro strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

.projectLine {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 10px;
  margin-top: 10px;
}

.taskAdvanced {
  margin-top: 8px;
}

.taskAdvanced summary {
  cursor: pointer;
  list-style: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.taskAdvanced summary::-webkit-details-marker {
  display: none;
}

.taskAdvanced summary::after {
  content: " +";
}

.taskAdvanced[open] summary::after {
  content: " -";
}

.askActions {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 10px;
}

.exerciseDetails {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.exerciseDetails summary {
  cursor: pointer;
  list-style: none;
  padding: 9px 0 0;
  color: var(--gold-ink);
  font-size: 11px;
  font-weight: 700;
}

.exerciseDetails summary::-webkit-details-marker {
  display: none;
}

.taskAdvanced:not([open]) > :not(summary),
.exerciseDetails:not([open]) > :not(summary),
.standardDetails:not([open]) > :not(summary),
.advancedMetrics:not([open]) > :not(summary),
.auditDetails:not([open]) > :not(summary) {
  display: none;
}

.exerciseDetails summary::after {
  content: " +";
  color: var(--muted);
}

.exerciseDetails[open] summary::after {
  content: " -";
}

.internalRunDetails {
  margin-top: 10px;
  border-top: 1px dashed var(--line);
}

.internalRunDetails summary {
  cursor: pointer;
  list-style: none;
  padding: 9px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.internalRunDetails summary::-webkit-details-marker {
  display: none;
}

.internalRunDetails:not([open]) > :not(summary) {
  display: none;
}

.internalRunDetails summary::after {
  content: " +";
}

.internalRunDetails[open] summary::after {
  content: " -";
}

.askButtonGroup {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.firstUseActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

body[data-surface-mode="ops"] .firstUseActions {
  display: none;
}

body[data-surface-mode="principal"] .evidenceForm {
  grid-template-columns: minmax(180px, 1fr) auto;
}

.exerciseRunStatus,
.rehearsalRunSummary {
  margin-top: 10px;
  border: 1px solid var(--gold-ink-border);
  border-radius: var(--radius);
  background: rgba(139, 100, 20, 0.055);
  padding: 10px 12px;
  display: grid;
  gap: 5px;
  overflow-wrap: anywhere;
}

.exerciseRunStatus.hidden,
.rehearsalRunSummary.hidden {
  display: none;
}

.exerciseRunStatus strong,
.rehearsalRunSummary strong {
  color: var(--ink);
  font-size: 13px;
}

.exerciseRunStatus span,
.exerciseRunStatus small,
.rehearsalRunSummary span,
.rehearsalRunSummary small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.shadowPilotPanel {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px;
}

.shadowPilotHead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.shadowPilotHead div {
  display: grid;
  gap: 3px;
}

.shadowPilotHead strong,
.pilotModeGrid strong,
.shadowPilotChecklist strong {
  color: var(--ink);
}

.shadowPilotHead span,
.pilotModeGrid span,
.shadowPilotChecklist small {
  color: var(--muted);
}

.pilotModeGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.pilotModeGrid article,
.shadowPilotChecklist div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.54);
}

.pilotModeGrid article.is-current {
  border-color: var(--gold-ink-border);
  background: rgba(139, 100, 20, 0.06);
}

.pilotModeGrid small,
.shadowPilotChecklist small {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pilotModeGrid strong,
.shadowPilotChecklist strong {
  display: block;
  font-size: 13px;
}

.pilotModeGrid span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.45;
}

.shadowPilotChecklist {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.shadowPilotRunHead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.shadowPilotRunHead div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.shadowPilotRunHead strong,
.shadowPilotRunList strong {
  color: var(--ink);
  font-size: 13px;
}

.shadowPilotRunHead span,
.shadowPilotRunList span,
.shadowPilotRunList small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.shadowPilotRunList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.shadowPilotRunItem {
  min-width: 0;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.64);
}

.shadowPilotRunItem.is-passed {
  border-color: var(--gold-ink-border);
  background: rgba(139, 100, 20, 0.06);
}

.shadowPilotRunItem.is-blocked {
  border-color: rgba(143, 43, 43, 0.26);
  background: rgba(143, 43, 43, 0.05);
}

.acceptancePackPanel {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px;
}

.acceptancePackHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.acceptancePackHead div {
  display: grid;
  gap: 3px;
}

.acceptancePackHead strong {
  color: var(--ink);
  font-size: 13px;
}

.acceptancePackHead span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.acceptancePackList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.acceptancePackItem {
  min-width: 0;
  min-height: 118px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(255, 255, 255, 0.74);
}

.acceptancePackItem > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.acceptancePackItem strong {
  color: var(--ink);
  font-size: 13px;
}

.acceptancePackItem span,
.acceptancePackItem small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.acceptancePackItem.is-ready {
  border-color: var(--gold-ink-border);
  background: rgba(139, 100, 20, 0.055);
}

.acceptancePackItem.is-verified,
.productAcceptancePackItem.is-verified {
  border-color: rgba(31, 120, 86, 0.42);
}

.acceptancePackItem.is-failed,
.productAcceptancePackItem.is-failed {
  border-color: rgba(176, 69, 48, 0.48);
}

.acceptancePackItem.is-checking,
.productAcceptancePackItem.is-checking {
  border-style: dashed;
}

.acceptancePackMeta {
  flex: 0 0 88px;
  text-align: right;
  align-content: start;
}

.rehearsalStepRail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.rehearsalStep {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.035);
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 72px;
  cursor: pointer;
  text-align: left;
  letter-spacing: 0;
  white-space: normal;
}

.rehearsalStep strong,
.moduleCell strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.rehearsalStep span,
.moduleCell span {
  color: var(--gold-ink);
  font-size: 11px;
  font-weight: 700;
}

.rehearsalStep small,
.moduleCell small,
.navitem small {
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.step-done,
.module-done,
.nav-done {
  border-color: rgba(112, 146, 88, 0.55);
}

.step-review,
.module-review,
.nav-review {
  border-color: var(--gold-ink-border);
}

.step-watch,
.module-watch,
.nav-watch {
  border-color: rgba(184, 130, 40, 0.42);
}

.step-risk,
.module-risk,
.nav-risk {
  border-color: rgba(163, 79, 79, 0.62);
}

.step-missing,
.module-missing,
.nav-missing {
  opacity: 0.72;
}

.moduleClosurePanel {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.moduleClosureHead {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 8px;
}

.moduleClosureHead strong {
  color: var(--ink);
  font-size: 12px;
}

.moduleClosureHead span {
  color: var(--muted);
  font-size: 11px;
}

.moduleClosureMatrix {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.commandCenterList {
  display: grid;
  gap: 8px;
}

.commandCenterItem {
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.034);
}

.commandCenterItemHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.commandCenterItem strong {
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.commandCenterItem span {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.commandCenterItem button {
  justify-self: start;
  min-height: 28px;
  padding: 5px 9px;
  font-size: 11px;
}

.commandCenterItem.priority-p0 {
  border-color: rgba(163, 79, 79, 0.58);
}

.commandCenterItem.priority-p1 {
  border-color: var(--gold-ink-border);
}

.moduleCell {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 9px;
  background: rgba(255, 255, 255, 0.028);
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 78px;
  cursor: pointer;
  text-align: left;
  letter-spacing: 0;
  white-space: normal;
}

.moduleCell em {
  align-self: end;
  color: var(--accent);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.rehearsalStep:hover,
.moduleCell:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.sampleTools {
  margin-top: 10px;
  border: 1px solid var(--gold-ink-border);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(139, 100, 20, 0.045);
}

.sampleToolsHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sampleToolsHead strong,
.sampleToolsHead span {
  display: block;
}

.sampleToolsHead strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.sampleToolsHead span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.sampleToolsBody {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.sampleToolsBody p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.sampleToolActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.productAcceptanceActions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 8px;
}

.productAcceptanceActions .muted {
  font-size: 11px;
  line-height: 1.45;
}

.sampleReceipt {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--gold-ink-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
}

.sampleReceipt.hidden,
.deliveryReviewPanel.hidden {
  display: none;
}

.sampleReceiptHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.sampleReceiptHead small,
.sampleReceipt h3 {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.sampleReceiptHead strong {
  display: block;
  margin-top: 3px;
  font-size: 15px;
  line-height: 1.35;
  word-break: break-word;
}

.receiptGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.receiptGate {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.46);
}

.receiptGate strong,
.receiptGate span {
  display: block;
}

.receiptGate strong {
  font-size: 12px;
}

.receiptGate span {
  margin-top: 4px;
  color: var(--ok);
  font-size: 12px;
  font-weight: 700;
}

.receiptColumns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sampleReceipt h3 {
  margin: 0 0 8px;
}

.deliveryReviewPanel {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--gold-ink-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.56);
}

.deliveryPreflight {
  display: grid;
  gap: 8px;
  margin: 10px 0 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
}

.deliveryPreflight > strong {
  color: var(--ink);
  font-size: 12px;
}

.deliveryPreflight ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.deliveryPreflight li {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(76px, 0.22fr) minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding-left: 8px;
  border-left: 3px solid var(--line);
}

.deliveryPreflight li.preflight-ready {
  border-left-color: var(--ok);
}

.deliveryPreflight li.preflight-watch {
  border-left-color: var(--gold-ink);
}

.deliveryPreflight li.preflight-block {
  border-left-color: var(--risk);
}

.deliveryPreflight li strong {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.4;
}

.deliveryPreflight li span {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.deliveryFilters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 10px;
}

.deliveryFilters button {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.42);
  color: var(--muted);
  font-size: 11px;
  min-height: 30px;
  padding: 6px 10px;
}

.deliveryFilters button.is-active {
  border-color: var(--gold-ink-border);
  background: var(--gold-ink-dim);
  color: var(--gold-ink);
}

.deliveryRow {
  display: grid;
  gap: 7px;
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  padding: 9px 9px 9px 10px;
  background: rgba(255, 255, 255, 0.38);
}

.deliveryRowHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.deliveryRowHead strong {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.deliveryRowHead b {
  flex: 0 0 auto;
  border: 1px solid var(--gold-ink-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
  color: var(--gold-ink);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
}

.delivery-origin-summary {
  border-left-color: transparent;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}

.deliveryRow small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.deliveryRow .deliveryMandateLine {
  color: var(--ink);
  font-weight: 650;
}

.deliveryRow .deliveryCreditLine {
  color: var(--gold-ink);
  font-size: 11px;
}

.deliveryRow.delivery-pending_review {
  border-left-color: var(--gold-ink);
}

.deliveryRow.delivery-needs_revision,
.deliveryRow.delivery-needs_evidence,
.deliveryRow.delivery-rejected {
  border-left-color: var(--risk);
}

.deliveryRow.delivery-accepted {
  border-left-color: var(--ok);
}

.deliveryReviewFacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 12px;
}

.deliveryReviewFacts div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px;
  background: rgba(255, 255, 255, 0.5);
}

.deliveryReviewFacts dt,
.deliveryReviewFacts dd {
  margin: 0;
}

.deliveryReviewFacts dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.deliveryReviewFacts dd {
  margin-top: 5px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.deliveryReceiptDetails {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  color: var(--muted);
}

.deliveryReceiptDetails.hidden {
  display: none;
}

.deliveryReceiptDetails summary {
  cursor: pointer;
  list-style: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.deliveryReceiptDetails summary::-webkit-details-marker {
  display: none;
}

.deliveryReceiptFacts {
  margin-top: 8px;
}

.clientViewCard {
  display: grid;
  grid-template-columns: minmax(140px, 190px) minmax(0, 1fr);
  gap: 12px 18px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--gold-ink-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.56);
}

.clientViewCard.hidden {
  display: none;
}

.clientViewCard small,
.clientViewCard dt {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.clientViewCard strong {
  display: block;
  margin-top: 5px;
  font-size: 20px;
}

.clientViewCard p {
  margin: 0;
  line-height: 1.65;
}

.clientViewCard dl {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.clientViewCard div {
  min-width: 0;
}

.clientViewCard dd {
  margin: 5px 0 0;
  line-height: 1.5;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.executiveMetrics {
  order: 3;
}

.metrics > div {
  min-height: 78px;
  padding: 12px;
}

.metrics small {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.metrics strong {
  color: var(--ink);
  font-size: 21px;
  font-weight: 650;
  letter-spacing: 0;
}

.fiduciaryBrief {
  order: 4;
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) repeat(auto-fit, minmax(176px, 1fr));
  gap: 12px;
  margin: 0 0 12px;
}

.briefMain,
.briefSide {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.briefMain {
  padding: 16px;
}

.briefSide {
  padding: 14px;
}

.briefEyebrow {
  color: var(--gold-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.briefMain h2 {
  margin: 10px 0 14px;
  max-width: 760px;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: 0;
}

.componentGrid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.componentPill {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px;
  background: rgba(255, 255, 255, 0.5);
}

.componentPill strong,
.componentPill span {
  display: block;
}

.componentPill strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.componentPill span {
  margin-top: 6px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
}

.briefText {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.65;
}

.formalReadiness .panelHead {
  margin-bottom: 8px;
}

.readinessList {
  gap: 8px;
  margin-top: 10px;
}

.formalStateMachine {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-ink);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
}

.formalStateMachine.state-ready {
  border-left-color: var(--ok);
}

.formalStateMachine.state-building {
  border-left-color: var(--risk);
}

.formalStateMachine span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.formalStateMachine strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
}

.formalStateMachine small {
  color: rgba(0, 0, 0, 0.62);
  font-size: 11px;
  line-height: 1.45;
}

.readinessItem {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px;
  background: rgba(255, 255, 255, 0.46);
}

.readinessItem.status-ready {
  border-left: 3px solid var(--ok);
}

.readinessItem.status-partial {
  border-left: 3px solid var(--gold-ink);
}

.readinessItem.status-missing {
  border-left: 3px solid var(--risk);
}

.readinessItemHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.readinessItemHead strong {
  color: var(--ink);
  font-size: 12px;
}

.principalDecisionItem {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(255, 255, 255, 0.55);
}

.principalDecisionHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.principalDecisionHead strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

.principalDecisionItem span,
.principalDecisionItem small {
  display: block;
  line-height: 1.55;
}

.principalDecisionItem small {
  margin-top: 5px;
  color: var(--muted);
}

.readinessItemHead .badge {
  flex: 0 0 auto;
}

.readinessItem span,
.readinessItem small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.readinessItem small {
  margin-top: 4px;
  color: rgba(0, 0, 0, 0.58);
}

.standardDetails {
  order: 8;
  margin: 0 0 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.standardDetails summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 0;
  color: var(--gold-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.standardDetails summary::-webkit-details-marker {
  display: none;
}

.standardDetails summary::after {
  content: " +";
  color: var(--muted);
}

.standardDetails[open] summary::after {
  content: " -";
}

.fiduciaryStandardGrid {
  display: grid;
  grid-template-columns: minmax(240px, 1.05fr) repeat(4, minmax(180px, 1fr));
  gap: 12px;
  margin: 0 0 2px;
}

.twinOverview,
.twinPanel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.twinOverview,
.twinPanel {
  padding: 14px;
}

.twinOverview h2 {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.twinPanel .list {
  margin-top: 8px;
}

.principalPacket {
  order: 5;
  display: grid;
  grid-template-columns: minmax(260px, 1.15fr) repeat(3, minmax(190px, 1fr));
  gap: 12px;
  margin: 0 0 12px;
}

.deliveryDesk {
  order: 6;
  margin: 0 0 12px;
}

.deliveryDesk .packetPanel {
  border-color: var(--gold-ink-border);
  background: rgba(255, 255, 255, 0.62);
}

.packetHero,
.packetPanel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
}

.packetActions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.packetActionGroup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.packetActionGroup:first-child {
  padding-top: 0;
  border-top: 0;
}

.packetActionGroup > span {
  flex: 0 0 64px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.packVerificationBadge {
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  color: var(--muted);
  font-size: 11px;
}

.packVerificationBadge.is-verified {
  border-color: rgba(31, 120, 86, 0.34);
  color: #1f7856;
}

.packVerificationBadge.is-failed {
  border-color: rgba(176, 69, 48, 0.38);
  color: #9f3f2d;
}

.verificationLine {
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.packetHero h2 {
  margin: 10px 0 8px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
}

.advancedMetrics {
  order: 7;
  margin: -2px 0 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.advancedMetrics summary {
  cursor: pointer;
  list-style: none;
  padding: 8px 0 10px;
  color: var(--gold-ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.advancedMetrics summary::-webkit-details-marker {
  display: none;
}

.advancedMetrics summary::after {
  content: " +";
  color: var(--muted);
  letter-spacing: 0;
}

.advancedMetrics[open] summary::after {
  content: " -";
}

.technicalMetrics {
  margin-bottom: 12px;
}

.auditDetails {
  order: 8;
  margin: 0 0 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.auditDetails summary {
  cursor: pointer;
  list-style: none;
  padding: 11px 0;
  color: var(--gold-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.auditDetails summary::-webkit-details-marker {
  display: none;
}

.auditDetails summary::after {
  content: " +";
  color: var(--muted);
  letter-spacing: 0;
}

.auditDetails[open] summary::after {
  content: " -";
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.span2 {
  grid-column: 1 / -1;
}

.panel {
  padding: 14px;
  min-width: 0;
}

.strategyBox {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.strategyBox p {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
}

.bottleneckGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.metricPill {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px;
  background: rgba(255, 255, 255, 0.52);
  min-height: 108px;
}

.metricPill strong,
.metricPill small {
  display: block;
}

.metricPill span {
  display: block;
  margin: 7px 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: 0;
}

.metricPill small {
  color: var(--muted);
  line-height: 1.45;
}

.metric-good {
  border-color: rgba(30, 122, 114, 0.26);
  background: rgba(30, 122, 114, 0.055);
}

.metric-watch {
  border-color: rgba(139, 100, 20, 0.28);
  background: rgba(139, 100, 20, 0.06);
}

.metric-risk {
  border-color: rgba(155, 47, 55, 0.26);
  background: rgba(155, 47, 55, 0.045);
}

.metric-unknown {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.32);
}

.strategyBox code {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.48);
  color: var(--accent);
  white-space: normal;
  line-height: 1.5;
}

.tagRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tagRow b {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid var(--gold-ink-border);
  border-radius: var(--radius);
  background: var(--gold-ink-dim);
  color: var(--gold-ink);
  font-size: 12px;
  font-weight: 600;
}

.panelHead {
  justify-content: space-between;
  margin-bottom: 12px;
}

.panelHead h2 {
  margin: 0;
  color: rgba(0, 0, 0, 0.72);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.badge {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.44);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.panelGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mini {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px;
  background: rgba(255, 255, 255, 0.45);
}

.mini strong {
  display: block;
  margin-bottom: 6px;
}

.mini p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.topbar p,
.navitem span,
.clientViewCard p,
.clientViewCard dd,
.metricPill small,
.mini p,
.list span,
.timeline p,
.strategyBox code,
.eventMeta b {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.status-available {
  border-left: 3px solid var(--ok);
}

.status-partial {
  border-left: 3px solid var(--gold-ink);
}

.status-missing {
  border-left: 3px solid var(--risk);
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.list li {
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.list li.is-current-project {
  border: 1px solid var(--gold-ink-border);
  border-radius: var(--radius);
  padding: 9px 10px;
  background: rgba(139, 100, 20, 0.055);
}

.list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.list strong {
  display: block;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.list span,
.list small,
.timeline p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.compact li {
  min-height: 50px;
}

.projectActions {
  margin: 8px 0 10px;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline div {
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}

.timeline h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.timeline p {
  margin: 0;
}

.inlineActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}

.inlineActions button {
  min-height: 30px;
  padding: 7px 10px;
  font-size: 12px;
  letter-spacing: 0;
}

.inlineActions .secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.inlineActions .danger {
  background: var(--risk);
  border-color: rgba(155, 47, 55, 0.35);
}

.inlineActions button:disabled {
  cursor: default;
  opacity: 0.45;
}

.deliveryActionStack {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.deliveryDecisionDock {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.deliveryDecisionDock label {
  margin-top: 0;
}

.deliveryDecisionDock textarea,
.deliveryDecisionDock input {
  min-width: 0;
}

.deliveryActionStack .inlineActions {
  margin-top: 0;
}

.deliveryPrimaryActions {
  align-items: center;
}

.deliveryPrimaryActions #deliveryAcceptBtn {
  min-width: min(100%, 220px);
}

.deliveryPrimaryActions #deliveryReviewDownloadBtn {
  color: var(--muted);
}

.deliveryOtherActions {
  width: fit-content;
  max-width: 100%;
}

.deliveryOtherActions summary {
  cursor: pointer;
  width: fit-content;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  list-style: none;
}

.deliveryOtherActions summary::-webkit-details-marker {
  display: none;
}

.deliveryOtherActions summary::after {
  content: " +";
}

.deliveryOtherActions[open] summary::after {
  content: " -";
}

.deliveryOtherActions[open] .deliverySecondaryActions {
  margin-top: 8px;
}

.activationSignoff input[type="text"] {
  min-height: 30px;
  min-width: min(220px, 100%);
  flex: 1 1 220px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 7px 9px;
  font: inherit;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.activationSignoff input[type="text"]:focus {
  border-color: rgba(139, 100, 20, 0.45);
  box-shadow: 0 0 0 1px rgba(139, 100, 20, 0.36), 0 0 0 3px rgba(139, 100, 20, 0.08);
  outline: none;
}

.formalActivationCredential {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 6px 9px;
  color: var(--muted);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.56);
}

.formalActivationCredential input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--gold);
}

.permissionActions {
  margin: 8px 0 4px;
}

.permissionActions button {
  min-height: 32px;
}

.signoffNotice,
.formalConfirmBox {
  display: grid;
  gap: 5px;
  margin: 10px 0;
  padding: 9px 10px;
  border: 1px solid var(--gold-ink-border);
  border-radius: var(--radius);
  background: rgba(139, 100, 20, 0.04);
}

.signoffNotice strong,
.formalConfirmBox strong {
  color: var(--ink);
  font-size: 12px;
}

.signoffNotice span,
.formalConfirmBox span,
.formalConfirmBox small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.formalConfirmForm {
  grid-template-columns: minmax(120px, 1fr) minmax(100px, 0.9fr) minmax(100px, 0.9fr);
}

.inlineDisclosure {
  margin: 10px 0 8px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.inlineDisclosure summary {
  cursor: pointer;
  list-style: none;
  color: var(--gold-ink);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.inlineDisclosure summary::-webkit-details-marker {
  display: none;
}

.inlineDisclosure:not([open]) > :not(summary) {
  display: none;
}

.inlineDisclosure summary::after {
  content: " +";
}

.inlineDisclosure[open] summary::after {
  content: " -";
}

.compactForm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 10px 0 8px;
}

.compactForm.evidenceForm {
  grid-template-columns: minmax(0, 1fr) minmax(120px, 150px) auto;
}

.compactForm input,
.compactForm select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 9px 10px;
  font: inherit;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.compactForm input:focus,
.compactForm select:focus {
  border-color: rgba(139, 100, 20, 0.45);
  box-shadow: 0 0 0 1px rgba(139, 100, 20, 0.36), 0 0 0 3px rgba(139, 100, 20, 0.08);
  outline: none;
}

.compactForm button {
  min-height: 36px;
}

.formalPackageBox {
  margin: 10px 0;
  padding: 10px;
  border: 1px solid var(--gold-ink-border);
  border-radius: var(--radius);
  background: rgba(139, 100, 20, 0.045);
}

.formalPackageHead {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 8px;
}

.formalPackageHead strong {
  color: var(--ink);
  font-size: 12px;
}

.formalPackageHead span,
.formalPackageBox small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.formalPackageBox textarea {
  width: 100%;
  min-width: 0;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 9px 10px;
  font: inherit;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.formalPackageBox textarea:focus {
  border-color: rgba(139, 100, 20, 0.45);
  box-shadow: 0 0 0 1px rgba(139, 100, 20, 0.36), 0 0 0 3px rgba(139, 100, 20, 0.08);
  outline: none;
}

@media (max-width: 720px) {
  .compactForm,
  .formalConfirmForm,
  .compactForm.evidenceForm {
    grid-template-columns: minmax(0, 1fr);
  }

  .formalPackageHead {
    display: grid;
  }

  .compactForm button {
    width: 100%;
  }
}

.eventMeta {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.eventMeta b {
  border: 1px solid var(--gold-ink-border);
  border-radius: var(--radius);
  background: var(--gold-ink-dim);
  color: var(--accent);
  font-size: 11px;
  padding: 3px 7px;
}

@media (max-width: 920px) {
  body {
    overflow: auto;
  }

  body.homePage {
    overflow: hidden;
  }

  .homeLanding {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 32px 18px 92px;
  }

  .homeName {
    font-size: clamp(34px, 11vw, 48px);
    letter-spacing: 0.16em;
  }

  .homeBadge span:last-child,
  .homePrimaryLink span:first-child,
  .homeRhythm span {
    letter-spacing: 0.12em;
  }

  .homeInputWrap input {
    padding: 14px 14px;
    font-size: 14px;
  }

  .homeRhythm {
    bottom: 18px;
    width: calc(100vw - 36px);
  }

  .shell {
    grid-template-columns: 1fr;
    grid-template-rows: 48px auto minmax(0, 1fr);
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .rail {
    grid-column: 1;
    grid-row: 2;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    max-height: none;
    overflow: visible;
  }

  .rail .brand {
    min-height: 36px;
    margin-bottom: 2px;
  }

  .rail .login {
    margin: 0 2px 6px;
    padding: 6px 8px 8px;
  }

  .rail #productLines {
    display: none;
  }

  .workspace {
    grid-column: 1;
    grid-row: 3;
    overflow: visible;
  }

  .topbar,
  .activationDiagnosticHead,
  .activationDiagnosticActions,
  .opsCommandHead,
  .serviceFactoryHead,
  .serviceFactoryStatus,
  .serviceFactoryFlow,
  .serviceFactoryRhythm,
  .readinessReportHead,
  .readinessReportStatus,
  .mandateControls,
  .askActions,
  .askButtonGroup,
  .firstUseActions,
  .exerciseRunStatus,
  .rehearsalRunSummary,
  .projectLine,
  .sampleToolsHead,
  .sampleToolsBody,
  .sampleToolActions {
    align-items: stretch;
    flex-direction: column;
    display: flex;
  }

  .grid,
  .bottleneckGrid,
  .panelGrid,
  .rehearsalStepRail,
  .pilotModeGrid,
  .moduleClosureMatrix,
  .activationDiagnosticList,
  .serviceFactoryOffers,
  .serviceFactoryFlowList,
  .readinessOwnerSummary,
  .readinessReportRows,
  .mandateBar,
  .fiduciaryBrief,
  .standardDetails .fiduciaryStandardGrid,
  .fiduciaryStandardGrid,
  .principalPacket,
  .receiptColumns,
  .deliveryReviewFacts,
  .deliveryPreflight li,
  .deliveryDecisionDock,
  .clientViewCard,
  .clientViewCard dl {
    grid-template-columns: 1fr;
  }

  body[data-surface-mode="principal"] .principalPacket {
    grid-template-columns: 1fr;
  }

  .shadowPilotHead {
    grid-template-columns: 1fr;
  }

  .shadowPilotChecklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .opsPriorityGrid,
  .principalCommandBar,
  .homeSceneGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace {
    padding: 12px 12px max(24px, env(safe-area-inset-bottom));
  }

  .askButtonGroup button,
  .activationDiagnosticActions button,
  .serviceFlowStep,
  .serviceFactoryFlowAction,
  .readinessReportRows button,
  .firstUseActions button,
  .sampleToolActions button,
  .inlineActions button {
    width: 100%;
  }

  .span2 {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .opsPriorityGrid,
  .principalCommandBar,
  .homeSceneGrid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 641px) and (max-width: 920px) {
  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metrics > div {
    min-height: 70px;
    padding: 10px 12px;
  }

  .metrics strong {
    font-size: 18px;
  }

  .fiduciaryBrief {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .briefMain {
    grid-column: 1 / -1;
  }

  .componentGrid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .rehearsalStepRail {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .moduleClosureMatrix {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .deliveryFilters {
    display: flex;
  }

  .deliveryFilters button {
    width: auto;
  }
}

@media (max-width: 640px) {
  .homeShell {
    gap: 14px;
    padding: 24px 14px;
  }

  .homeHeader {
    display: grid;
    gap: 12px;
  }

  .homeHeader h1 {
    font-size: 44px;
  }

  .homeStatus {
    justify-self: start;
  }

  .homeEntryGrid,
  .homeSignalGrid,
  .homeNextStep {
    grid-template-columns: 1fr;
  }

  .homeEntry {
    min-height: 156px;
  }

  .homeEntry strong {
    font-size: 24px;
  }

  .metrics,
  .componentGrid,
  .rehearsalStepRail,
  .moduleClosureMatrix {
    grid-template-columns: 1fr;
  }

  .deliveryFilters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .deliveryFilters button {
    width: 100%;
  }

  .shell {
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .ws-h {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    padding: 8px 12px;
  }

  .ws-h-actions {
    flex-wrap: wrap;
  }

  .workspace {
    padding-bottom: max(32px, calc(env(safe-area-inset-bottom) + 24px));
  }
}

@media (min-width: 921px) and (max-width: 1180px) {
  .fiduciaryBrief,
  .standardDetails .fiduciaryStandardGrid,
  .fiduciaryStandardGrid,
  .principalPacket {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .briefMain,
  .twinOverview,
  .packetHero {
    grid-column: 1 / -1;
  }

  .componentGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .askActions,
  .sampleToolsBody {
    align-items: flex-start;
    flex-direction: column;
  }
}
