:root {
  color: #000000;
  background: #ededed;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-feature-settings: "salt" on, "ss01" on, "ss02" on, "ss03" on, "ss04" on, "ss05" on, "ss08" on, "ss07" on, "ss06" on, "case" on, "cpsp" on, "calt" off;
  font-synthesis: none;
  --blue: #176de6;
  --blue-hover: #1257ba;
  --blue-dark: #0c3773;
  --ink: #000000;
  --paper: #ffffff;
  --surface: #ffffff;
  --canvas: #ededed;
  --line: #e5e7eb;
  --line-dark: #cccccc;
  --muted: #6b7280;
  --success: #19723a;
  --warning: #9a5b08;
  --danger: #a72d3e;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--canvas); }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
}

button,
input,
select,
textarea { font: inherit; }

button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.62; }
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

h1,
h2,
h3,
p { margin-top: 0; }

h1 { letter-spacing: -0.035em; }
h2 { letter-spacing: -0.025em; }

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

.agent-setup-guide { background: var(--paper); border: 1px solid var(--line); padding: 28px; }
.agent-setup-guide__intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.agent-setup-guide__intro h2 { margin-bottom: 10px; font-size: 28px; }
.agent-setup-guide__intro p:not(.eyebrow) { max-width: 650px; color: var(--muted); line-height: 1.6; }
.agent-setup-machines { display: grid; gap: 1px; margin: 20px 0 24px; background: var(--line); border: 1px solid var(--line); }
.agent-setup-machine { width: 100%; display: grid; grid-template-columns: minmax(180px, .7fr) minmax(260px, 1.3fr); align-items: center; gap: 24px; border: 0; border-left: 3px solid transparent; border-radius: 0; padding: 17px 20px; background: var(--paper); color: var(--blue-dark); text-align: left; cursor: pointer; }
.agent-setup-machine:hover { background: #f8f8f8; }
.agent-setup-machine.is-selected { border-left-color: var(--blue); background: #edf4ff; }
.agent-setup-machine:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--blue); outline-offset: 2px; }
.agent-setup-machine__identity strong, .agent-setup-machine__identity small, .agent-setup-machine__evidence strong, .agent-setup-machine__evidence small { display: block; }
.agent-setup-machine__identity small, .agent-setup-machine__evidence small { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.agent-setup-machine__evidence strong { margin-top: 5px; font-size: 12px; line-height: 1.45; }
.agent-setup-guide__selected { padding: 0 0 18px; }
.agent-setup-guide__selected h3 { margin: 6px 0; font-size: 20px; }
.agent-setup-guide__selected p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.agent-setup-guide__empty { margin: 20px 0 24px; padding: 22px; border: 1px solid var(--line); background: #f8f8f8; }
.agent-setup-guide__empty p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.agent-setup-guide__selection { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 12px 0 24px; }
.agent-setup-guide__selection select { width: 100%; min-width: 0; }
.agent-setup-guide__next { padding: 22px 24px; background: #edf4ff; border-left: 4px solid var(--blue); margin-bottom: 24px; }
.agent-setup-guide__next h3 { font-size: 21px; margin-bottom: 10px; }
.agent-setup-guide__next p { line-height: 1.6; max-width: 800px; }
.agent-setup-owner { font-size: 12px; font-weight: 700; color: var(--blue-dark); }
.agent-setup-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.agent-setup-step { border-bottom: 1px solid var(--line); }
.agent-setup-step summary { display: flex; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; }
.agent-setup-step summary::after { content: "+"; font-size: 20px; color: var(--muted); }
.agent-setup-step[open] summary::after { content: "−"; }
.agent-setup-number { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid var(--line-dark); font-size: 13px; font-weight: 700; }
.agent-setup-step__title { flex: 1; }
.agent-setup-step__title strong { display: block; font-size: 15px; }
.agent-setup-step__title small { display: block; color: var(--muted); margin-top: 5px; }
.agent-setup-step__body { padding: 0 50px 16px; color: var(--muted); line-height: 1.65; font-size: 14px; }
.agent-setup-step__body p:last-child { margin-bottom: 0; }
.agent-setup-guide__handoff { padding-top: 24px; }
.agent-setup-guide__handoff p { color: var(--muted); line-height: 1.6; margin: 8px 0 0; }
.setup-instructions { padding-left: 22px; line-height: 1.7; font-size: 14px; }
.desktop-setup-guide { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 24px; }
.desktop-setup-guide h3 { font-size: 20px; }
.desktop-setup-guide ol { padding-left: 20px; }
.desktop-setup-guide li { padding-left: 4px; margin-bottom: 18px; font-size: 14px; }
.desktop-setup-guide li p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 6px 0 0; }
@media (max-width: 680px) {
  .agent-setup-guide { padding: 18px; }
  .agent-setup-guide__intro { flex-direction: column; gap: 8px; }
  .agent-setup-guide__selection { grid-template-columns: 1fr; }
  .agent-setup-machine { grid-template-columns: 1fr; gap: 10px; }
  .agent-setup-guide__next { padding: 18px; }
  .agent-setup-step summary { flex-wrap: wrap; gap: 10px; }
  .agent-setup-step summary .status { margin-left: 44px; order: 3; }
  .agent-setup-step__title { flex-basis: calc(100% - 70px); }
  .agent-setup-step__body { padding: 0 0 18px 44px; }
}

.icon,
.banner-icon {
  display: block;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.banner-icon { width: 28px; height: 28px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 24px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.button--primary { border: 1px solid var(--blue); background: var(--blue); color: #ffffff; }
.button--primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.button--primary:disabled:hover { border-color: var(--blue); background: var(--blue); }
.button--secondary { border: 1px solid var(--blue); background: #ffffff; color: #000000; }
.button--light { border: 1px solid rgb(255 255 255 / 50%); background: #ffffff; color: var(--ink); }
.button--light .icon { width: 15px; height: 15px; }

.icon-button,
.close-button,
.text-action,
.back-button {
  border: 0;
  background: transparent;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 8px;
  color: #4b5563;
}

.icon-button:hover { background: #eef4ff; color: var(--blue); }

.close-button {
  padding: 8px 0;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.text-action,
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 0;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.text-action .icon,
.back-button .icon { width: 15px; height: 15px; }
.text-action--danger { color: var(--danger); }

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow--light { color: #9fc2f6; }
.entry .eyebrow--light { color: var(--blue); }

.entry {
  min-height: 100vh;
  padding: 24px clamp(24px, 5vw, 72px) 48px;
  background:
    linear-gradient(120deg, rgb(23 109 230 / 8%), transparent 42%),
    linear-gradient(90deg, transparent 49.9%, rgb(12 55 115 / 7%) 50%, transparent 50.1%),
    var(--canvas);
  color: var(--ink);
}

.entry-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.entry-brand a { display: inline-flex; }
.entry-brand img { width: 144px; height: auto; }

.entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.65fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: center;
  max-width: 1240px;
  min-height: calc(100vh - 150px);
  margin: 0 auto;
}

.entry-intro h1 {
  max-width: 680px;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 700;
  line-height: 1;
}

.entry-intro > p:last-child {
  max-width: 660px;
  margin-bottom: 0;
  color: #414c60;
  font-size: 18px;
  line-height: 1.6;
}

.sign-in-panel {
  border-top: 4px solid var(--blue);
  background: #ffffff;
  padding: 32px;
  color: var(--ink);
}

.sign-in-panel h2 { margin-bottom: 24px; font-size: 28px; }
.supporting { color: var(--muted); line-height: 1.55; }
.sign-in { display: grid; gap: 16px; }
.mission-local-form { display: grid; gap: 24px; max-width: 760px; }
.mission-local-recipient { display: grid; gap: 14px; border: 1px solid var(--line); padding: 24px; margin: 20px 0; }
.mission-local-recipient legend { padding: 0 8px; color: var(--blue-dark); font-weight: 700; }
.mission-local-recipient p { margin: 0; }
.mission-local-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0; }
.mission-local-notice, .mission-local-code { border-left: 4px solid var(--blue); padding: 20px; background: #eaf1fc; line-height: 1.6; }
.mission-local-code output { display: block; margin: 12px 0; overflow-wrap: anywhere; font-family: monospace; font-size: 15px; }
.initial-invitation-kind { margin: 20px 0; }
.initial-acceptance { margin: 20px 0; line-height: 1.5; }
.initial-acceptance form { display: grid; gap: 16px; }
.initial-acceptance form > p { margin: 0; }
.initial-acceptance .initial-recipients { display: grid; gap: 16px; margin: 0; padding: 16px; list-style: none; background: var(--canvas); overflow-wrap: anywhere; }
.initial-acceptance .initial-recipients p { margin: 4px 0 0; font-size: 13px; }
.initial-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.initial-consent input { flex: 0 0 auto; margin: 4px 0 0; accent-color: var(--blue); }
.invitation-accept { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.invitation-accept summary { cursor: pointer; color: var(--blue); font-size: 13px; font-weight: 800; }
.invitation-accept[open] summary { margin-bottom: 10px; }
.invitation-accept > p { margin: 0 0 16px; color: var(--muted); font-size: 12px; line-height: 1.5; }

.loading-screen {
  display: grid;
  place-content: center;
  gap: 24px;
  min-height: 100vh;
  text-align: center;
}

.loading-screen img { width: 160px; }

.app-shell {
  display: flex;
  min-height: 100vh;
  background: var(--canvas);
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex: 0 0 248px;
  flex-direction: column;
  width: 248px;
  height: 100vh;
  overflow: hidden;
  border-right: 1px solid #e3e5e9;
  background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 48%, #f8f8f8 100%);
  transition: width 180ms ease, flex-basis 180ms ease;
}

.sidebar--collapsed { flex-basis: 64px; width: 64px; }

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 20px 20px 12px 24px;
}

.sidebar-brand__home { display: inline-flex; }
.sidebar-brand__home img { width: 120px; height: auto; }
.sidebar-toggle { color: var(--muted); opacity: .65; }
.sidebar-toggle:hover, .sidebar-toggle:focus-visible { opacity: 1; }
.sidebar-toggle .icon { transition: transform 180ms ease; }
.sidebar--collapsed .sidebar-toggle .icon { transform: rotate(180deg); }
.sidebar--collapsed .sidebar-brand { justify-content: center; padding: 14px; }
.sidebar--collapsed .sidebar-brand__home { display: none; }

/* Botique-only local Mission Control planning preview. Its separate shell and
   origin are deliberate: customer users never receive a cross-tenant picker. */
.mission-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--canvas);
}

.mission-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  border-right: 1px solid rgb(255 255 255 / 14%);
  background: var(--action-900, #082651);
  color: #ffffff;
}

.mission-brand {
  display: grid;
  gap: 10px;
  padding: 26px 24px 22px;
  border-bottom: 1px solid rgb(255 255 255 / 14%);
  color: #ffffff;
  text-decoration: none;
}

.mission-brand img { width: 136px; filter: invert(1); }
.mission-brand span { color: #b8d2f5; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }

.mission-sidebar__label {
  margin: 24px 24px 10px;
  color: #8db8f0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mission-sidebar nav { display: grid; gap: 4px; padding: 0 10px; }
.mission-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  padding: 0 14px;
  color: #dce9fa;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
}
.mission-nav-item img { width: 18px; height: 18px; filter: invert(1); opacity: 0.82; }
.mission-nav-item:hover { background: rgb(255 255 255 / 8%); }
.mission-nav-item--active { border-left-color: #6da7f4; background: rgb(255 255 255 / 11%); color: #ffffff; }
.mission-sidebar__footer {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding: 22px 24px;
  border-top: 1px solid rgb(255 255 255 / 14%);
  font-size: 12px;
}
.mission-sidebar__footer span { color: #9db9dc; }

.mission-workspace {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 36px clamp(28px, 5vw, 64px) 24px;
}

.mission-page-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  max-width: 1240px;
  margin-bottom: 24px;
}
.mission-page-header h1 { margin-bottom: 10px; color: #000000; font-size: clamp(38px, 4vw, 56px); line-height: 1; }
.mission-page-header p:last-child { max-width: 720px; margin-bottom: 0; color: #4f596a; font-size: 16px; line-height: 1.55; }

.mission-boundary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1240px;
  margin-bottom: 24px;
  border-left: 4px solid var(--blue);
  background: #ffffff;
  padding: 18px 20px;
}
.mission-boundary strong { display: block; margin-bottom: 4px; }
.mission-boundary p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.mission-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 26px;
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  background: #ffffff;
  padding: 4px 10px;
  color: #4b5563;
  font-size: 11px;
  font-weight: 800;
}
.mission-status--warning { border-color: #e7c997; background: #fff8eb; color: #8b550e; }

.mission-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1240px;
  margin-bottom: 24px;
  border-top: 3px solid var(--blue);
  background: #ffffff;
}
.mission-summary article { display: grid; gap: 8px; min-height: 128px; padding: 22px; border-right: 1px solid var(--line); }
.mission-summary article:last-child { border-right: 0; }
.mission-summary span { color: var(--muted); font-size: 12px; font-weight: 700; }
.mission-summary strong { color: #000000; font-size: 40px; font-weight: 650; line-height: 1; }
.mission-summary small { color: var(--muted); font-size: 12px; }

.mission-panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1240px; }
.mission-work-panel { min-height: 230px; border-top: 4px solid var(--blue); background: #ffffff; padding: 28px; }
.mission-work-panel--muted { border-top-color: var(--line-dark); }
.mission-work-panel h2 { margin-bottom: 16px; color: #000000; font-size: 30px; }
.mission-work-panel > p:not(.eyebrow) { max-width: 580px; color: var(--muted); line-height: 1.6; }

.mission-table { max-width: 1240px; border-top: 3px solid var(--blue); background: #ffffff; }
.mission-table__row { display: grid; grid-template-columns: 1.25fr 1.25fr 1fr 0.9fr 0.9fr; gap: 18px; align-items: center; min-height: 76px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 13px; }
.mission-table__row--head { min-height: 46px; background: #f8f8f8; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.mission-table__row strong,
.mission-table__row small { display: block; }
.mission-table__row small { margin-top: 4px; color: var(--muted); }
.mission-table__row code { overflow-wrap: anywhere; }

.mission-empty { display: grid; justify-items: start; max-width: 1240px; min-height: 280px; align-content: center; border-top: 3px solid var(--blue); background: #ffffff; padding: 42px; }
.mission-empty h2 { font-size: 30px; }
.mission-empty p { color: var(--muted); }

.mission-form-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr); gap: 24px; max-width: 1120px; }
.mission-onboarding-form,
.mission-checklist { border-top: 4px solid var(--blue); background: #ffffff; padding: 32px; }
.mission-onboarding-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.mission-onboarding-form > .field:nth-of-type(3),
.mission-onboarding-form > .mission-field-note,
.mission-onboarding-form > .mission-review-stop,
.mission-onboarding-form > .mission-form-heading,
.mission-onboarding-form > .button { grid-column: 1 / -1; }
.mission-form-heading { display: flex; gap: 16px; align-items: center; margin-bottom: 4px; }
.mission-form-heading > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--blue); color: #ffffff; font-weight: 800; }
.mission-form-heading h2 { margin-bottom: 4px; font-size: 28px; }
.mission-form-heading p { margin: 0; color: var(--muted); }
.mission-field-note { margin: -12px 0 0; color: var(--muted); font-size: 12px; }
.mission-review-stop { border-left: 3px solid #d6972a; background: #fff8eb; padding: 16px; }
.mission-review-stop p { margin: 5px 0 0; color: #6f5426; font-size: 13px; line-height: 1.5; }
.mission-onboarding-form > .button { justify-self: start; }
.mission-checklist { align-self: start; border-top-color: #cccccc; }
.mission-checklist h2 { margin-bottom: 20px; font-size: 28px; }
.mission-checklist ul { display: grid; gap: 14px; margin: 0 0 26px; padding-left: 20px; color: #4b5563; line-height: 1.45; }

.mission-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1240px;
  margin-top: auto;
  padding-top: 44px;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 980px) {
  .mission-shell { grid-template-columns: 76px minmax(0, 1fr); }
  .mission-brand { padding: 24px 14px; }
  .mission-brand img { width: 48px; object-fit: cover; object-position: left; }
  .mission-brand span,
  .mission-sidebar__label,
  .mission-nav-item:not(.mission-nav-item--active)::after,
  .mission-sidebar__footer { display: none; }
  .mission-nav-item { justify-content: center; padding: 0; font-size: 0; }
  .mission-nav-item img { width: 20px; height: 20px; }
  .mission-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mission-summary article:nth-child(2) { border-right: 0; }
  .mission-summary article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .mission-table { overflow-x: auto; }
  .mission-table__row { min-width: 880px; }
  .mission-form-layout { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .mission-shell { display: block; }
  .mission-sidebar { position: static; width: 100%; height: auto; }
  .mission-brand { display: flex; align-items: center; justify-content: space-between; }
  .mission-brand img { width: 124px; object-fit: contain; }
  .mission-brand span { display: block; }
  .mission-sidebar nav { grid-template-columns: repeat(4, 1fr); padding: 8px; }
  .mission-nav-item { border-bottom: 3px solid transparent; border-left: 0; font-size: 12px; }
  .mission-nav-item--active { border-bottom-color: #6da7f4; }
  .mission-workspace { padding: 28px 18px 20px; }
  .mission-page-header { display: grid; }
  .mission-page-header h1 { font-size: 38px; }
  .mission-boundary { align-items: start; }
  .mission-summary,
  .mission-panel-grid,
  .mission-onboarding-form { grid-template-columns: 1fr; }
  .mission-summary article { border-right: 0; border-bottom: 1px solid var(--line); }
  .mission-onboarding-form > * { grid-column: 1 !important; }
  .mission-footer { display: grid; }
}

@media (max-width: 480px) {
  .mission-sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mission-nav-item { width: 100%; min-width: 0; justify-content: flex-start; padding-inline: 12px; }
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 16px 24px;
}

.nav-label {
  margin: 0 16px 4px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.nav-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 24px;
  background: transparent;
  padding: 11px 16px;
  color: #454b55;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -.01em;
  text-align: left;
  transition: background-color 160ms ease, color 160ms ease;
}

.nav-item .icon { width: 16px; height: 16px; opacity: .9; color: inherit; }
.nav-item:hover { background: #ededed; color: #111318; }
.nav-item--active { background: var(--blue); color: #ffffff; font-weight: 500; }
.nav-item--active:hover { background: var(--blue-dark); color: #ffffff; }
.nav-item--active .icon { opacity: 1; }
.nav-item--active .nav-badge { background: #ffffff; color: var(--blue-dark); }

.nav-badge {
  display: grid;
  min-width: 22px;
  min-height: 22px;
  padding: 2px 6px;
  place-content: center;
  border-radius: 24px;
  background: #e6e6e6;
  color: #454b55;
  font-size: 10px;
  white-space: nowrap;
}

.sidebar--collapsed .nav-label,
.sidebar--collapsed .nav-item span,
.sidebar--collapsed .nav-badge,
.sidebar--collapsed .account-copy,
.sidebar--collapsed .sidebar-account > .icon-button { display: none; }
.sidebar--collapsed .nav-item { grid-template-columns: 1fr; justify-items: center; padding-inline: 8px; }
.sidebar--collapsed .sidebar-nav { padding-inline: 8px; }

.sidebar-account {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 76px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
}

.sidebar-account__open {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 8px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.sidebar-account__open:hover,
.sidebar-account__open--active {
  background: #edf4ff;
}

.sidebar-account .avatar { background: #ffffff; border: 1px solid #d9dfe7; color: var(--blue-dark); font-size: 12px; font-weight: 500; }
.sidebar-account .account-copy strong { font-weight: 500; }

.sidebar--collapsed .sidebar-account { grid-template-columns: 1fr; justify-items: center; padding-inline: 8px; }
.sidebar--collapsed .sidebar-account__open { grid-template-columns: 1fr; justify-items: center; }

.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-content: center;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  font-weight: 800;
}

.account-copy { display: grid; min-width: 0; gap: 2px; }
.account-copy strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.account-copy small { color: var(--muted); font-size: 11px; text-transform: capitalize; }

.workspace { min-width: 0; flex: 1; }

.page-banner,
.automation-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 164px;
  padding: 38px clamp(24px, 4vw, 48px) 42px;
  background: linear-gradient(105deg, #030213 0%, #0c265f 55%, #173f99 100%);
  color: #ffffff;
}

.page-banner__copy h1,
.automation-banner__title h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: clamp(28px, 2.4vw, 32px);
  font-weight: 720;
}

.page-banner__copy p,
.automation-banner__title p { max-width: 720px; margin: 0; color: #d8e3f5; font-size: 14px; line-height: 1.45; }

.page-banner__actions { display: flex; align-items: center; gap: 14px; }

.banner-badge {
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 24px;
  padding: 6px 11px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.page-tabs {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 42px;
  margin-top: -22px;
  padding: 0 clamp(24px, 4vw, 48px);
  overflow-x: auto;
}

.page-tabs button {
  min-width: max-content;
  border: 0;
  border-bottom: 2px solid transparent;
  background: #ffffff;
  padding: 11px 18px 9px;
  color: #606774;
  font-size: 12px;
  font-weight: 700;
}

.page-tabs button[aria-pressed="true"] { border-bottom-color: var(--blue); color: #111318; }

.page-body { padding: 26px clamp(24px, 4vw, 48px) 36px; }
.page-body--stack { display: grid; gap: 24px; }

.evidence-limits {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 14px;
  border-left: 3px solid var(--blue);
  background: #f7faff;
  padding: 13px 16px;
}
.evidence-limits strong { color: var(--blue-dark); font-size: 12px; }
.evidence-limits p { margin: 0; color: #4f5661; font-size: 12px; line-height: 1.5; }

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

.mission-metrics article {
  display: grid;
  min-width: 0;
  gap: 6px;
  background: #ffffff;
  padding: 20px;
}

.mission-metrics span,
.mission-metrics small { color: var(--muted); font-size: 11px; }
.mission-metrics strong { color: var(--blue); font-size: 30px; line-height: 1; }

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

.mission-panel {
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  background: #ffffff;
  padding: 24px;
}

.mission-panel--wide { grid-column: 1 / -1; }
.mission-panel__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.mission-panel__heading h2 { margin: 0; font-size: 22px; }
.mission-panel__heading > span { color: var(--muted); font-size: 11px; }

.readiness-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.readiness-row:last-child { padding-bottom: 0; }
.readiness-row > div { display: grid; gap: 6px; }
.readiness-row strong { font-size: 14px; }
.readiness-row p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.issue-list { border-top: 1px solid var(--line); }
.issue-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid var(--warning);
  padding: 14px 16px;
}
.issue-row--danger { border-left-color: var(--danger); }
.issue-row > div { display: grid; gap: 5px; }
.issue-row strong { font-size: 13px; }
.issue-row p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.section-heading--compact { margin: 0; }

.notice {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 80;
  max-width: min(480px, calc(100vw - 36px));
  border-left: 4px solid var(--blue);
  background: #ffffff;
  box-shadow: 0 12px 40px rgb(3 2 19 / 20%);
  padding: 14px 18px;
  color: #111318;
  font-size: 13px;
}

.notice--error { border-left-color: var(--danger); }

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 12px;
}

.run-history-toolbar { margin-bottom: 0; }
.run-history-toolbar__result {
  justify-self: end;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.run-history-list { display: grid; gap: 14px; }
.run-history-card {
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(280px, 1.2fr);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  background: #ffffff;
}
.run-history-card--blocked { border-left-color: var(--danger); }
.run-history-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 12px;
}
.run-history-card__heading h2 { margin: 5px 0 4px; color: var(--blue); font-size: 19px; }
.run-history-card__heading small { color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.run-history-card__summary {
  grid-column: 1;
  margin: 0;
  padding: 0 24px 20px;
  color: #4f5661;
  font-size: 13px;
  line-height: 1.55;
}
.run-history-card__facts {
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: center;
  margin: 0;
  border-left: 1px solid var(--line);
  padding: 20px 24px;
}
.run-history-card__facts div { display: grid; align-content: start; gap: 6px; min-width: 0; padding: 2px 16px; border-right: 1px solid var(--line); }
.run-history-card__facts div:first-child { padding-left: 0; }
.run-history-card__facts div:last-child { border-right: 0; padding-right: 0; }
.run-history-card__facts dt { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.run-history-card__facts dd { margin: 0; font-size: 12px; font-weight: 700; line-height: 1.45; }
.run-history-card__next {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 16px;
  border-top: 1px solid var(--line);
  background: #f8faff;
  padding: 14px 24px;
}
.run-history-card--blocked .run-history-card__next { background: #fff7f7; }
.run-history-card__next strong { color: var(--blue-dark); font-size: 12px; }
.run-history-card__next p { margin: 0; color: #4f5661; font-size: 12px; line-height: 1.5; }
.run-history-card__actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 12px 24px;
}

.search-field { position: relative; display: block; }
.search-field .icon { position: absolute; top: 50%; left: 13px; width: 16px; height: 16px; transform: translateY(-50%); opacity: 0.55; }
.search-field input,
.select-compact select,
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d7d9de;
  border-radius: 0;
  background: #ffffff;
  padding: 9px 12px;
  color: #111318;
}

.search-field input { background: #f8f9fb; padding-left: 39px; }
.select-compact select { background: #f8f9fb; color: #414751; }
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus,
.search-field input:focus,
.select-compact select:focus { border-color: var(--blue); outline: 3px solid rgb(23 109 230 / 12%); }

.view-toggle { display: flex; justify-self: end; }
.view-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid transparent;
  background: transparent;
  padding: 8px 11px;
  color: #59606b;
  font-size: 12px;
}

.view-toggle button.is-active { border-color: var(--blue); border-radius: 24px; background: var(--blue); color: #ffffff; }
.view-toggle .icon { width: 15px; height: 15px; }

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.fleet-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  background: #ffffff;
}

.fleet-card__heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 14px;
}

.fleet-card__heading h3 { margin-bottom: 6px; color: var(--blue); font-size: 17px; }
.fleet-card__heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.fleet-card__chips { display: flex; gap: 8px; padding: 0 22px 18px; }

.status {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  border: 1px solid #c9cdd4;
  border-radius: 24px;
  padding: 4px 9px;
  color: #525965;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.15;
  text-transform: capitalize;
}

.status--active,
.status--available,
.status--ready,
.status--deployed,
.status--registered,
.status--succeeded { border-color: #a7d8b6; background: #f0fbf3; color: var(--success); }
.status--queued,
.status--observed,
.status--running,
.status--pending { border-color: #abc9f5; background: #eff5ff; color: var(--blue-dark); }
.status--failed,
.status--blocked,
.status--reconciliation_required { border-color: #e8b7be; background: #fff3f5; color: var(--danger); }
.status--not_deployed,
.status--denied,
.status--needs_action,
.status--unavailable,
.status--paused,
.status--suspended,
.status--revoked,
.status--expired { border-color: #d8c29e; background: #fff9ef; color: var(--warning); }

.fleet-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 0 22px 20px;
}

.fleet-facts div { display: grid; gap: 4px; padding: 13px 0; border-top: 1px solid #eceef1; }
.fleet-facts div:nth-child(even) { padding-left: 18px; }
.fleet-facts dt { color: var(--muted); font-size: 11px; }
.fleet-facts dd { margin: 0; overflow: hidden; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; text-transform: capitalize; }

.fleet-card__actions {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 12px 22px;
}

.my-automations-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.my-automations-intro h2 { margin-bottom: 7px; font-size: 25px; }
.my-automations-intro > div > p:last-child { margin: 0; color: var(--muted); font-size: 13px; }
.my-automations-intro .viewer-note { max-width: 430px; margin: 0; }

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

.my-automation-card {
  display: grid;
  gap: 16px;
  padding: 20px 24px 16px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.my-automation-card__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
}

.my-automation-card__heading h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.my-automation-card__outcomes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 0;
}

.my-automation-card__outcomes > div {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.my-automation-card__outcomes dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.my-automation-card__outcomes dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-width: 0;
}

.my-automation-card__outcomes strong {
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.my-automation-card__attention {
  max-width: 100%;
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.my-automation-card__attention .status {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-start-readiness {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  background: #f8faff;
  padding: 16px 24px;
}
.daily-start-readiness--blocked,
.daily-start-readiness--unavailable { border-left-color: var(--danger); background: #fff7f7; }
.daily-start-readiness--needs_action,
.daily-start-readiness--denied { border-left-color: var(--warning); background: #fff9ef; }
.daily-start-readiness > div:first-child { display: grid; gap: 5px; }
.daily-start-readiness > div:first-child > span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.daily-start-readiness > div:first-child > strong { color: var(--blue-dark); font-size: 14px; }
.daily-start-readiness p { margin: 0; color: #4f5661; font-size: 12px; line-height: 1.5; }
.daily-start-readiness__owner { display: grid; min-width: 180px; justify-items: end; gap: 5px; color: var(--muted); text-align: right; }

.journey-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  background: #ffffff;
  padding: 20px 24px;
}
.journey-context > div:first-child { display: grid; gap: 6px; }
.journey-context .eyebrow { margin-bottom: 0; }
.journey-context strong { color: var(--blue-dark); font-size: 18px; }
.journey-context p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.journey-context__actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.journey-context:focus { outline: 3px solid rgba(30, 94, 255, .24); outline-offset: 3px; }

.my-automation-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
}

.my-automation-card__actions .button--secondary { margin-right: auto; }

.data-table { border: 1px solid var(--line); background: #ffffff; overflow-x: auto; }
.data-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(155px, 1fr) minmax(90px, 0.65fr) minmax(130px, 0.8fr) minmax(90px, 0.5fr);
  align-items: center;
  gap: 16px;
  min-width: 850px;
  min-height: 62px;
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  font-size: 12px;
}

.data-row:last-child { border-bottom: 0; }
.data-row--head { min-height: 42px; background: #f8f9fb; color: #666d78; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.data-row > div:first-child { display: grid; min-width: 0; gap: 4px; }
.data-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-row small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.row-actions { display: flex !important; justify-content: flex-end; }

.empty {
  border: 1px dashed #c8ccd3;
  background: #ffffff;
  padding: 34px;
  color: var(--muted);
  text-align: center;
}

.empty strong { display: block; margin-bottom: 8px; color: #111318; font-size: 16px; }
.empty p { max-width: 520px; margin: 0 auto; line-height: 1.5; }
.operator-home .empty {
  padding: 24px;
  border: 1px solid var(--line);
  text-align: left;
}
.operator-home .empty p { margin: 0; max-width: 58ch; }

.action-list { display: grid; gap: 16px; }
.inbox-list { display: grid; gap: 12px; }
.inbox-item {
  display: grid;
  gap: 12px;
  padding: 20px 24px 16px;
  border: 1px solid var(--line);
  background: #ffffff;
}
.inbox-item__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.inbox-item__heading h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.3;
}
.inbox-item__labels { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; flex-shrink: 0; }
.inbox-item__next { margin: 0; color: #111318; font-size: 14px; line-height: 1.5; }
.inbox-item__inspect { color: var(--muted); font-size: 13px; }
.inbox-item__inspect summary {
  width: fit-content;
  color: var(--blue);
  font-weight: 500;
  cursor: pointer;
}
.inbox-item__inspect p,
.inbox-item__inspect small { display: block; margin: 8px 0 0; }
.inbox-coverage {
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 14px 24px 16px;
}
.inbox-coverage > summary {
  width: fit-content;
  color: var(--blue);
  font-weight: 500;
  cursor: pointer;
}
.inbox-coverage .alert-coverage-selector { margin: 16px 0 0; max-width: 420px; }
.alert-coverage {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 12px;
  padding: 12px 0 0;
  border: 0;
  background: transparent;
}
.alert-coverage--ready { border-left: 0; }
.alert-coverage h2 { margin: 0 0 7px; font-size: 16px; }
.alert-coverage p { margin-bottom: 0; color: var(--muted); line-height: 1.45; }
.alert-coverage__evidence { display: grid; min-width: 180px; gap: 6px; text-align: right; }
.alert-coverage__evidence small { color: var(--muted); }
.review-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) minmax(320px, 0.8fr);
  align-items: start;
  gap: 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--danger);
  background: #ffffff;
  padding: 24px;
}

.review-card__marker,
.agent-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-content: center;
  background: #eef4ff;
}

.review-card__copy h2 { margin-bottom: 10px; font-size: 19px; }
.review-card__copy small { color: var(--muted); }
.inbox-labels { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.review-card__next { margin: 0 0 12px; color: #313640; line-height: 1.5; }
.review-card__notice { display: block; margin-top: 7px; }
.resolve-form { display: grid; gap: 12px; }
.remediation-decisions { display: grid; gap: 10px; }
.remediation-decisions p { margin: 0 0 2px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.viewer-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.resolution-history { display: grid; gap: 15px; border-top: 1px solid var(--line); padding-top: 28px; }
.resolution-history__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.resolution-history__list article { border: 1px solid var(--line); background: #ffffff; padding: 18px; }
.resolution-history__list p { margin: 8px 0; color: #313640; text-transform: capitalize; }
.resolution-history__list small { color: var(--muted); }

.schedule-list { display: grid; gap: 16px; }
.schedule-card {
  display: grid;
  gap: 20px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  background: #ffffff;
  padding: 24px;
}
.schedule-card__heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.schedule-card__heading h2 { margin: 0; font-size: 22px; }
.schedule-card__heading .row-actions { flex-wrap: wrap; gap: 7px; }
.schedule-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.schedule-facts div { display: grid; gap: 6px; min-width: 0; padding: 16px 16px 0 0; }
.schedule-facts dt { color: var(--muted); font-size: 11px; }
.schedule-facts dd { margin: 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 700; }
.schedule-readiness { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.schedule-card__actions { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.schedule-card__actions span { max-width: 560px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.schedule-editor { border: 1px solid var(--line); background: #ffffff; padding: 26px; }
.schedule-editor > .supporting { margin-bottom: 20px; }
.schedule-automation-lock { align-content: start; }
.schedule-automation-lock strong { color: var(--blue-dark); font-size: 14px; }
.schedule-automation-lock small { color: var(--muted); line-height: 1.4; }
.weekday-field { margin: 0; border: 0; padding: 0; }
.weekday-field legend { margin-bottom: 8px; color: #303640; font-size: 12px; font-weight: 700; }
.weekday-field > div { display: flex; flex-wrap: wrap; gap: 8px; }
.weekday-field label { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-dark); padding: 9px 12px; font-size: 12px; font-weight: 700; }
.weekday-field input { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); }

.organization-summary {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  background: #ffffff;
  padding: 28px;
}
.organization-summary h2 { margin-bottom: 10px; font-size: 28px; }
.organization-summary .supporting { max-width: 520px; margin: 0; }
.organization-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-left: 1px solid var(--line);
}
.organization-facts div { display: grid; align-content: center; gap: 7px; min-height: 74px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.organization-facts div:nth-last-child(-n+2) { border-bottom: 0; }
.organization-facts dt { color: var(--muted); font-size: 11px; }
.organization-facts dd { margin: 0; font-size: 13px; font-weight: 700; }

.member-panel { border: 1px solid var(--line); background: #ffffff; padding: 26px; }
.member-list { border-top: 1px solid var(--line); }
.member-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.45fr) minmax(360px, 1.2fr);
  align-items: center;
  gap: 20px;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.member-row:last-child { border-bottom: 0; }
.member-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.member-identity > div { display: grid; min-width: 0; gap: 4px; }
.member-identity strong,
.member-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-identity small { color: var(--muted); font-size: 11px; }
.member-state { display: flex; flex-wrap: wrap; gap: 7px; }
.member-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 10px; }
.member-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }

.invitation-panel { display: grid; gap: 20px; border: 1px solid var(--line); border-top: 4px solid var(--blue); background: #ffffff; padding: 26px; }
.invitation-panel .section-heading { margin-bottom: 0; }
.invitation-form { max-width: 760px; }
.invitation-form .supporting { margin: 0; font-size: 12px; }
.invitation-form .button { justify-self: start; }
.invitation-kit { display: grid; gap: 12px; border-left: 4px solid var(--blue); background: #eff5ff; padding: 18px; }
.invitation-kit > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.invitation-kit code { overflow-wrap: anywhere; color: var(--blue-dark); font-size: 13px; font-weight: 800; }
.invitation-kit p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.invitation-list { border-top: 1px solid var(--line); }
.invitation-list article { display: grid; grid-template-columns: minmax(180px, 1fr) auto minmax(190px, auto); align-items: center; gap: 18px; border-bottom: 1px solid var(--line); padding: 14px 0; }
.invitation-list article > div { display: grid; gap: 4px; }
.invitation-list small { color: var(--muted); font-size: 11px; }

.identity-boundary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-left: 4px solid var(--warning);
  background: #fff9ef;
  padding: 18px 20px;
}
.identity-boundary strong { display: block; margin-bottom: 5px; font-size: 13px; }
.identity-boundary p { margin: 0; color: #6f5426; font-size: 12px; line-height: 1.5; }

.field { display: grid; gap: 7px; min-width: 0; color: #303640; font-size: 12px; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field--wide { grid-column: 1 / -1; }

.setup-section,
.detail-panel { border: 1px solid var(--line); background: #ffffff; padding: 26px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading h2 { margin-bottom: 0; font-size: 25px; }
.section-heading > span { color: var(--muted); font-size: 12px; }

.agent-list { border-top: 1px solid var(--line); }
.agent-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  min-height: 74px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.agent-row > div:nth-child(2) { display: grid; min-width: 0; gap: 5px; }
.agent-row small { color: var(--muted); }
.agent-recovery { grid-column: 2 / -1; padding: 16px; background: var(--surface-muted, #f8f8f8); border-left: 3px solid var(--blue); }
.agent-recovery-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.agent-recovery p { margin: 10px 0; font-size: 13px; line-height: 1.6; }
.agent-recovery small { display: block; font-size: 11px; line-height: 1.6; }

.setup-disclosure { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 20px; }
.setup-disclosure summary { cursor: pointer; color: var(--blue); font-size: 14px; font-weight: 800; }
.setup-disclosure[open] summary { margin-bottom: 20px; }

.enrollment-kit {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  border-top: 4px solid var(--blue);
  background: #f7faff;
  padding: 24px;
}
.enrollment-kit:focus { outline: 3px solid rgb(23 109 230 / 28%); outline-offset: 3px; }

.enrollment-kit__heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.enrollment-kit__heading h3 { margin: 0; font-size: 22px; }

.kit-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
}

.kit-facts > div { min-width: 0; background: #ffffff; padding: 14px; }
.kit-facts dt,
.secret-row span,
.kit-files span { color: var(--muted); font-size: 11px; font-weight: 700; }
.kit-facts dd { margin: 6px 0 0; color: var(--ink); font-size: 13px; font-weight: 700; }
.kit-facts code { overflow-wrap: anywhere; font-size: 11px; }

.secret-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #b8cef0;
  background: #ffffff;
  padding: 14px 16px;
}

.secret-row > div { display: grid; min-width: 0; gap: 6px; }
.secret-row code { overflow-wrap: anywhere; color: #0c3773; font-size: 15px; font-weight: 800; letter-spacing: 0.04em; }
.kit-warning { margin: -8px 0 0; color: var(--warning); font-size: 12px; line-height: 1.5; }

.kit-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.kit-path { display: grid; min-width: 0; align-content: start; gap: 12px; background: #ffffff; padding: 20px; }
.kit-path h4 { margin: 0; font-size: 17px; }
.kit-path > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.command-block { display: grid; min-width: 0; gap: 8px; border: 1px solid var(--line); background: #f4f5f7; padding: 12px; }
.command-block pre { max-width: 100%; overflow-x: auto; margin: 0; color: #18202b; font: 11px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.command-block .text-action { justify-self: start; }

.kit-files { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; align-items: baseline; }
.kit-files code { min-width: 0; overflow-wrap: anywhere; font-size: 11px; }

.setup-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.setup-card { display: grid; align-content: start; gap: 14px; background: #ffffff; padding: 24px; }
.setup-card h3 { margin: 0; font-size: 18px; }
.setup-card > p { min-height: 42px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.setup-card .button { justify-self: start; margin-top: 6px; }

.automation-banner { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; padding-top: 28px; }
.back-button { grid-column: 1 / -1; justify-self: start; color: #ffffff; }
.automation-banner__state { display: flex; align-items: center; gap: 8px; }
.automation-banner .status { border-color: rgb(255 255 255 / 40%); background: rgb(255 255 255 / 8%); color: #ffffff; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.detail-panel h2 { margin-bottom: 12px; font-size: 24px; text-transform: capitalize; }
.detail-panel > p:last-child { margin-bottom: 0; color: var(--muted); line-height: 1.55; }
.detail-panel--wide { grid-column: 1 / -1; }
.deployment-readiness { display: grid; gap: 18px; }
.deployment-readiness__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.deployment-readiness__heading h2 { margin-bottom: 0; }
.deployment-readiness__intro { margin: 0; color: var(--muted); line-height: 1.55; }
.deployment-readiness__list { border-top: 1px solid var(--line); }
.deployment-readiness__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.deployment-readiness__row > div:first-child { display: grid; gap: 5px; }
.deployment-readiness__row strong { font-size: 15px; }
.deployment-readiness__row p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.deployment-readiness__state { display: grid; justify-items: end; gap: 6px; min-width: 150px; }
.deployment-readiness__state small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.package-list { margin: 18px 0; border-top: 1px solid var(--line); }
.package-list article { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding: 14px 0; }
.package-list article > div { display: grid; gap: 4px; }
.package-list small { color: var(--muted); }
.inline-deploy { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 14px; margin-top: 22px; }

.dialog-backdrop,
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  background: rgb(3 2 19 / 55%);
}

.dialog-backdrop { place-content: center; padding: 20px; }
.dialog {
  width: min(680px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-top: 4px solid var(--blue);
  background: #ffffff;
  box-shadow: 0 24px 80px rgb(3 2 19 / 35%);
  padding: 28px;
}

.dialog-heading,
.drawer-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.dialog-heading h2,
.drawer-heading h2 { margin-bottom: 0; font-size: 26px; }
.dialog-copy { color: var(--muted); line-height: 1.55; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
.run-confirmation { border-left: 3px solid var(--blue); background: #f8faff; padding: 15px 17px; }
.run-confirmation--blocked,
.run-confirmation--unavailable { border-left-color: var(--danger); background: #fff7f7; }
.run-confirmation--needs_action,
.run-confirmation--denied { border-left-color: var(--warning); background: #fff9ef; }
.run-confirmation strong { color: var(--blue-dark); }
.run-confirmation p { margin: 6px 0; color: #4f5661; font-size: 13px; line-height: 1.5; }
.run-confirmation small { color: var(--muted); }
.run-start-form { display: grid; gap: 18px; margin-top: 20px; }
.run-start-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--line); gap: 1px; }
.run-start-summary div { display: grid; gap: 6px; background: #fff; padding: 14px 16px; }
.run-start-summary span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.run-start-summary strong { font-size: 13px; }
.run-settings { border-block: 1px solid var(--line); padding: 14px 0; }
.run-settings summary { cursor: pointer; color: var(--blue-dark); font-size: 13px; font-weight: 750; }
.run-settings > p { margin: 10px 0 16px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.run-start-limit { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.run-start-error { margin: 0; border-left: 3px solid var(--danger); background: #fff4f4; padding: 12px 14px; color: #7a2020; font-size: 12px; line-height: 1.5; }

.drawer-backdrop { justify-items: end; }
.execution-drawer {
  width: min(620px, 100vw);
  height: 100vh;
  overflow: auto;
  background: #ffffff;
  box-shadow: -18px 0 60px rgb(3 2 19 / 28%);
  padding: 30px;
}

.execution-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 20px 0 24px; border-block: 1px solid var(--line); padding: 14px 0; color: var(--muted); font-size: 12px; }
.drawer-heading__id { display: block; max-width: 440px; margin-top: 6px; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.execution-summary-copy { margin: -12px 0 24px; color: #4f5661; font-size: 13px; line-height: 1.55; }
.operational-result { display: grid; gap: 15px; margin-bottom: 24px; border: 1px solid var(--line); border-left: 4px solid var(--blue); background: #ffffff; padding: 20px; }
.operational-result--unavailable { border-left-color: var(--warning); }
.operational-result__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.operational-result__heading h3 { margin: 4px 0 0; font-size: 22px; }
.operational-result > p { margin: 0; color: #4f5661; font-size: 13px; line-height: 1.55; }
.operational-result dl { display: grid; grid-template-columns: minmax(150px, .7fr) minmax(0, 1.3fr); margin: 0; border-block: 1px solid var(--line); }
.operational-result dl div { padding: 14px 0; }
.operational-result dl div + div { border-left: 1px solid var(--line); padding-left: 18px; }
.operational-result dt { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.operational-result dd { margin: 6px 0 0; font-size: 13px; font-weight: 650; line-height: 1.45; }
.operational-result > .button { justify-self: start; }
.operational-result > small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.execution-review { margin-bottom: 28px; border-left: 3px solid var(--blue); background: var(--surface-muted, #f8f8f8); padding: 20px; }
.execution-review--blocked { border-left-color: var(--red, #b42318); }
.execution-review__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.execution-review__heading h3 { margin: 4px 0 0; font-size: 22px; }
.execution-review__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 18px 0; border-block: 1px solid var(--line); }
.execution-review__facts article { display: grid; align-content: start; gap: 7px; padding: 14px; border-right: 1px solid var(--line); }
.execution-review__facts article:last-child { border-right: 0; }
.execution-review__facts span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.execution-review__facts strong { font-size: 13px; line-height: 1.45; }
.execution-review__next { padding: 15px; background: var(--white, #fff); }
.execution-review__next p { margin: 7px 0 0; line-height: 1.55; }
.execution-review__issues { margin-top: 14px; padding: 14px; border: 1px solid var(--line); background: #fff; }
.execution-review__issues ul { margin: 8px 0 0; padding-left: 20px; color: var(--muted); }
.execution-review h4 { margin: 22px 0 14px; }
.review-timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.review-timeline li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding-bottom: 18px; }
.review-timeline__marker { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--blue); border-radius: 50%; color: var(--blue); font-size: 11px; font-weight: 800; }
.review-timeline__marker--blocked { border-color: var(--red, #b42318); color: var(--red, #b42318); }
.review-timeline__title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.review-timeline__title time { color: var(--muted); font-size: 11px; }
.review-timeline p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.execution-review__limit { display: block; border-top: 1px solid var(--line); padding-top: 14px; color: var(--muted); line-height: 1.5; }
.event-stream-title { margin: 0 0 18px; font-size: 18px; }
.event-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.event-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding-bottom: 24px; }
.event-marker { display: grid; width: 30px; height: 30px; place-content: center; border-radius: 50%; background: var(--blue); color: #ffffff; font-size: 11px; font-weight: 800; }
.event-copy { min-width: 0; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.event-copy > div { display: flex; justify-content: space-between; gap: 14px; }
.event-copy strong { text-transform: capitalize; }
.event-copy time { color: var(--muted); font-size: 11px; }
.event-copy p { margin: 10px 0 0; line-height: 1.5; }
.event-copy code { display: inline-block; margin-top: 10px; color: var(--danger); }
.event-copy pre { overflow: auto; margin: 12px 0 0; background: #f3f4f6; padding: 12px; white-space: pre-wrap; }

.workspace-footer { display: flex; justify-content: space-between; gap: 20px; padding: 0 clamp(24px, 4vw, 48px) 24px; color: #8a9099; font-size: 10px; }

.request-page .request-note { max-width: 760px; margin: 0; border-left: 3px solid var(--blue); background: #edf4ff; padding: 12px 16px; color: var(--ink); font-size: 14px; line-height: 1.5; }
.request-composer { display: grid; gap: 18px; max-width: 760px; border: 1px solid var(--line); background: var(--paper); padding: 8px 28px 28px; }
.request-progress { display: flex; gap: 0; margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.request-progress li { margin: 0; }
.request-progress button { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 10px 16px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; }
.request-progress button span { color: var(--blue); font-size: 11px; font-weight: 700; }
.request-progress button[aria-current="step"] { color: var(--ink); border-bottom-color: var(--blue); }
.request-progress button:disabled { color: #9aa3af; }
.request-progress button:disabled span { color: #9aa3af; }
.request-step h2 { margin: 0 0 8px; color: var(--blue-dark); font-size: clamp(26px, 3vw, 32px); line-height: 1.2; letter-spacing: -0.03em; }
.request-lead { max-width: 62ch; margin: 0 0 8px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.request-actions { display: flex; justify-content: space-between; gap: 12px; padding-top: 4px; }
.request-error { color: var(--danger); font-size: 13px; line-height: 1.45; }
.request-list { display: grid; gap: 12px; }
.request-card { border: 1px solid var(--line); background: var(--paper); padding: 22px 24px; }
.request-card__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.request-card__heading h2 { margin: 0; color: var(--ink); font-size: 22px; letter-spacing: -0.02em; }
.request-card__heading p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.request-card__next { max-width: 68ch; margin: 14px 0 0; color: var(--ink); line-height: 1.5; }
.request-card__detail { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.request-card__detail summary { cursor: pointer; color: var(--blue); font-size: 14px; font-weight: 700; }
.request-review { display: grid; gap: 14px; margin: 16px 0 0; }
.request-review div { min-width: 0; }
.request-review dt { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.request-review dd { margin: 4px 0 0; line-height: 1.5; white-space: pre-wrap; }
.request-boundary { max-width: 68ch; margin: 16px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.mc-requests .mc-portfolio__empty h3 { margin: 0 0 8px; color: var(--blue-dark); font-size: 18px; }
.mc-requests .mc-portfolio__empty p { max-width: 62ch; margin: 0; color: #566174; line-height: 1.5; }
.mc-requests .mc-portfolio__empty .button { margin-top: 16px; }
@media (max-width: 800px) {
  .request-progress { flex-wrap: wrap; }
  .request-actions, .request-card__heading { align-items: stretch; flex-direction: column; }
}
.opportunity-card { border: 1px solid var(--line); background: var(--surface); padding: 22px; }
.opportunity-card__heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.opportunity-card__heading strong,
.opportunity-card__heading small { display: block; }
.opportunity-card__heading small { color: var(--muted); margin-top: 5px; }

.assessment-create-form,
.assessment-task-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 1040px; min-width: 0; }
.assessment-demo-note { max-width: 68ch; margin: 0 0 18px; color: #414c60; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.assessment-team-error { grid-column: 1 / -1; margin: 0; color: #9b1c1c; font-size: 14px; line-height: 1.5; }
.participant-field { margin: 0; border: 1px solid var(--line); padding: 15px 16px; }
.participant-field legend { padding: 0 5px; color: var(--muted); font-size: 11px; font-weight: 700; }
.participant-field > div { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.participant-field label { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.assessment-list,
.assessment-task-list { display: grid; gap: 14px; }
.assessment-card { width: 100%; border: 1px solid var(--line); border-radius: 0; background: var(--surface); padding: 22px; color: inherit; text-align: left; }
.assessment-card:hover { border-color: var(--blue); }
.assessment-card > p { max-width: 760px; color: var(--muted); line-height: 1.5; }
.assessment-card__footer { display: flex; flex-wrap: wrap; gap: 8px 20px; border-top: 1px solid var(--line); padding-top: 14px; color: var(--muted); font-size: 12px; }
.assessment-overview { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(420px, .8fr); border: 1px solid var(--line); background: #ffffff; padding: 26px; }
.assessment-overview h2 { margin: 0 0 10px; font-size: 28px; }
.assessment-overview p { color: var(--muted); }
.assessment-metrics-block { min-width: 0; border-left: 1px solid var(--line); }
.assessment-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.assessment-metrics div { padding: 10px 18px; }
.assessment-metrics dt { color: var(--muted); font-size: 11px; }
.assessment-metrics dd { margin: 5px 0 0; font-size: 20px; font-weight: 800; }
.assessment-metrics__privacy { margin: 0; padding: 4px 18px 12px; color: #596273; font-size: 11px; line-height: 1.5; }
.assessment-controls,
.assessment-withdraw { display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid var(--line); background: #ffffff; padding: 22px 26px; }
.assessment-controls h2 { margin: 0; font-size: 22px; }
.assessment-task { border: 1px solid var(--line); background: #ffffff; padding: 22px; }
.assessment-content { margin: 18px 0; border-top: 1px solid var(--line); padding-top: 16px; }
.assessment-content > p { max-width: 820px; line-height: 1.55; }
.assessment-content .fleet-facts { padding-inline: 0; }
.assessment-task-form { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 20px; }
.assessment-decision-note { border-left: 3px solid var(--blue); background: #edf4ff; padding: 10px 14px; }
.assessment-review-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.assessment-decision { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.assessment-blocker-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; max-width: 800px; }
.assessment-blocker-list { display: grid; gap: 10px; margin-top: 18px; }
.assessment-blocker-list article { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.assessment-participant-list { display: grid; gap: 0; margin-bottom: 18px; border: 1px solid var(--line); }
.assessment-participant-list article { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px; }
.assessment-participant-list article + article { border-top: 1px solid var(--line); }
.coverage-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.coverage-list article { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #ffffff; padding: 16px; }
.coverage-list small,
.coverage-list strong { display: block; }
.coverage-list small { color: var(--muted); margin-bottom: 4px; }
.coverage-list > article > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.assessment-blocker-list strong,
.assessment-blocker-list small { display: block; }
.assessment-blocker-list small { margin-top: 5px; color: var(--muted); }
.assessment-withdraw p { margin-bottom: 0; color: var(--muted); }

@media (max-width: 1050px) {
  .mission-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-card { grid-template-columns: 42px minmax(0, 1fr); }
  .review-card .resolve-form,
  .review-card .viewer-note { grid-column: 2; }
  .alert-coverage { align-items: flex-start; flex-direction: column; }
  .alert-coverage__evidence { min-width: 0; text-align: left; }
  .setup-columns { grid-template-columns: 1fr; }
  .kit-paths { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .app-shell { display: block; width: 100%; max-width: 100vw; }
  .sidebar,
  .sidebar--collapsed {
    position: sticky;
    flex: none;
    width: 100%;
    max-width: 100vw;
    height: auto;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-brand { min-height: 62px; }
  .sidebar-brand__home,
  .sidebar--collapsed .sidebar-brand__home { display: inline-flex; }
  .sidebar-brand__home img,
  .sidebar--collapsed .sidebar-brand__home img { display: block; width: 126px; }
  .sidebar-toggle { display: none; }
  .sidebar-nav { display: flex; width: 100%; min-width: 0; max-width: 100vw; padding: 0 12px 10px; overflow-x: auto; }
  .nav-label { display: none; }
  .nav-item,
  .sidebar--collapsed .nav-item { display: flex; width: auto; min-width: max-content; min-height: 38px; justify-items: initial; border-left: 0; border-bottom: 2px solid transparent; padding: 8px 11px; }
  .nav-item--active { border-bottom-color: var(--blue); }
  .sidebar--collapsed .nav-item span,
  .sidebar--collapsed .nav-badge { display: inline; }
  .sidebar-account { width: 100%; min-height: 58px; padding: 8px 12px; }
  .workspace { width: 100%; max-width: 100vw; }
  .page-banner,
  .automation-banner { min-height: 150px; }
  .automation-banner { grid-template-columns: 1fr auto; }
  .automation-banner__title { grid-column: 1 / -1; }
  .toolbar { grid-template-columns: minmax(0, 1fr) 155px; }
  .view-toggle { grid-column: 1 / -1; justify-self: start; }
  .inline-deploy { grid-template-columns: 1fr 1fr; }
  .inline-deploy .button { grid-column: 1 / -1; justify-self: start; }
  .mission-grid { grid-template-columns: 1fr; }
  .mission-panel--wide { grid-column: auto; }
  .my-automation-card__outcomes { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 620px) {
  .entry { padding: 20px; }
  .entry-brand span { display: none; }
  .entry-layout { grid-template-columns: 1fr; gap: 36px; align-content: center; padding-top: 24px; }
  .entry-intro h1 { font-size: clamp(46px, 15vw, 68px); }
  .entry-intro > p:last-child { font-size: 16px; }
  .sign-in-panel { padding: 26px 22px; }
  .page-banner,
  .automation-banner { align-items: start; min-height: 0; padding: 28px 20px 42px; }
  .page-banner { flex-direction: column; }
  .page-banner__copy h1,
  .automation-banner__title h1 { font-size: 28px; }
  .page-banner__actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; gap: 12px; }
  .page-banner__actions .banner-badge { grid-column: 1 / -1; justify-self: start; }
  .page-banner__actions > .button { width: 100%; min-width: 0; padding-inline: 12px; }
  .page-tabs { padding-inline: 20px; }
  .page-body { padding: 22px 16px 30px; }
  .toolbar { grid-template-columns: 1fr; }
  .run-history-toolbar__result { justify-self: start; }
  .run-history-card { grid-template-columns: 1fr; }
  .run-history-card__heading { padding: 18px 18px 10px; }
  .run-history-card__summary { padding: 0 18px 18px; }
  .run-history-card__facts { grid-column: 1; grid-row: auto; grid-template-columns: 1fr; border-top: 1px solid var(--line); border-left: 0; padding: 8px 18px; }
  .run-history-card__facts div,
  .run-history-card__facts div:first-child,
  .run-history-card__facts div:last-child { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 0; }
  .run-history-card__facts div:last-child { border-bottom: 0; }
  .run-history-card__next { grid-template-columns: 1fr; gap: 6px; padding: 14px 18px; }
  .run-history-card__actions { align-items: stretch; flex-direction: column; gap: 10px; padding: 14px 18px; }
  .run-history-card__actions .text-action { justify-content: center; }
  .view-toggle { grid-column: auto; }
  .fleet-grid { grid-template-columns: 1fr; }
  .mission-metrics { grid-template-columns: 1fr; }
  .mission-panel { padding: 20px; }
  .evidence-limits { grid-template-columns: 1fr; gap: 5px; }
  .mission-panel__heading,
  .readiness-row,
  .issue-row { grid-template-columns: 1fr; }
  .fleet-card { min-height: 0; }
  .fleet-card__heading { padding: 18px 18px 12px; }
  .fleet-card__chips,
  .fleet-facts { padding-inline: 18px; }
  .fleet-card__actions { padding-inline: 18px; }
  .my-automations-intro { display: grid; align-items: start; }
  .my-automation-card { padding: 18px; }
  .daily-start-readiness,
  .journey-context { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .daily-start-readiness__owner { min-width: 0; justify-items: start; text-align: left; }
  .journey-context__actions { align-items: stretch; flex-direction: column; }
  .journey-context__actions .text-action { justify-content: center; }
  .my-automation-card__actions { flex-wrap: wrap; justify-content: flex-start; }
  .my-automation-card__actions .button--secondary { margin-right: 0; }
  .data-table { border: 0; background: transparent; overflow: visible; }
  .data-row { grid-template-columns: 1fr auto; min-width: 0; margin-bottom: 12px; border: 1px solid var(--line); background: #ffffff; padding: 14px; }
  .data-row--head { display: none; }
  .data-row > * { min-width: 0; }
  .data-row > :nth-child(2),
  .data-row > :nth-child(3) { color: var(--muted); font-size: 11px; }
  .inbox-item { padding: 18px; }
  .inbox-item__heading { flex-direction: column; align-items: flex-start; }
  .inbox-item__labels { justify-content: flex-start; }
  .review-card { grid-template-columns: 1fr; padding: 20px; }
  .review-card__marker { display: none; }
  .resolve-form,
  .viewer-note { grid-column: auto; }
  .resolution-history__list { grid-template-columns: 1fr; }
  .schedule-card__actions { align-items: stretch; flex-direction: column; }
  .form-grid,
  .detail-grid,
  .inline-deploy { grid-template-columns: 1fr; }
  .opportunity-form { grid-template-columns: 1fr; }
  .assessment-create-form,
  .assessment-task-form,
  .assessment-overview,
  .assessment-review-actions,
  .assessment-decision,
  .assessment-blocker-form,
  .assessment-blocker-list article { grid-template-columns: 1fr; }
  .assessment-metrics-block { border-left: 0; border-top: 1px solid var(--line); }
  .assessment-controls,
  .assessment-withdraw { align-items: stretch; flex-direction: column; }
  .field--wide,
  .detail-panel--wide,
  .inline-deploy .button { grid-column: auto; }
  .opportunity-submit,
  .opportunity-card__heading { align-items: stretch; flex-direction: column; }
  .agent-row { grid-template-columns: 38px minmax(0, 1fr) auto; }
  .agent-row > .text-action { grid-column: 2 / -1; justify-self: start; }
  .agent-recovery { grid-column: 1 / -1; }
  .setup-section,
  .detail-panel { padding: 20px; }
  .deployment-readiness__heading { align-items: stretch; flex-direction: column; }
  .deployment-readiness__row { grid-template-columns: 1fr; gap: 12px; }
  .deployment-readiness__state { justify-items: start; min-width: 0; }
  .organization-summary,
  .member-row { grid-template-columns: 1fr; }
  .invitation-list article { grid-template-columns: 1fr auto; }
  .invitation-list article > small { grid-column: 1 / -1; }
  .schedule-card__heading { align-items: start; flex-direction: column; }
  .schedule-facts { grid-template-columns: 1fr; }
  .schedule-editor { padding: 20px; }
  .organization-facts { grid-template-columns: 1fr; border-left: 0; border-top: 1px solid var(--line); }
  .organization-facts div,
  .organization-facts div:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); padding-inline: 0; }
  .organization-facts div:last-child { border-bottom: 0; }
  .member-form { grid-template-columns: 1fr 1fr; }
  .member-form .button { grid-column: 1 / -1; justify-self: start; }
  .identity-boundary { align-items: start; flex-direction: column; }
  .setup-card { padding: 20px 0; }
  .setup-columns { background: transparent; }
  .setup-card + .setup-card { border-top: 1px solid var(--line); }
  .enrollment-kit { margin-inline: -20px; padding: 20px; }
  .enrollment-kit__heading,
  .secret-row { align-items: start; flex-direction: column; }
  .kit-facts { grid-template-columns: 1fr; }
  .kit-files { grid-template-columns: 1fr; }
  .automation-banner { grid-template-columns: 1fr; }
  .automation-banner__state { flex-wrap: wrap; }
  .automation-banner .button { justify-self: start; }
  .dialog { width: calc(100vw - 24px); max-height: calc(100vh - 24px); padding: 22px; }
  .run-start-summary,
  .operational-result dl { grid-template-columns: 1fr; }
  .operational-result dl div + div { border-top: 1px solid var(--line); border-left: 0; padding-left: 0; }
  .operational-result__heading { align-items: stretch; flex-direction: column; }
  .execution-drawer { padding: 24px 20px; }
  .execution-review { padding: 16px; }
  .execution-review__heading { align-items: stretch; flex-direction: column; }
  .execution-review__facts { grid-template-columns: 1fr; }
  .execution-review__facts article { border-right: 0; border-bottom: 1px solid var(--line); }
  .execution-review__facts article:last-child { border-bottom: 0; }
  .event-copy > div { display: grid; gap: 5px; }
  .workspace-footer { display: grid; padding-inline: 16px; }
}

.assessment-welcome { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr); gap: 40px; padding: 32px; background: var(--blue-dark); color: #fff; }
.page-banner .row-actions .status { color: #fff; border-color: #ffffff80; background: #ffffff12; }
.assessment-welcome .eyebrow { color: #b9d5ff; }
.assessment-welcome h2 { max-width: 580px; margin: 10px 0 16px; font-size: clamp(26px, 3vw, 38px); line-height: 1.12; letter-spacing: -1px; }
.assessment-welcome p:last-child { max-width: 610px; color: #e1ebfa; line-height: 1.65; margin-bottom: 0; }
.assessment-welcome__steps { padding: 0; margin: 0; list-style: none; align-self: center; }
.assessment-welcome__steps li { display: flex; gap: 16px; align-items: center; padding: 15px 0; border-bottom: 1px solid #ffffff35; font-weight: 600; }
.assessment-welcome__steps span { color: #b9d5ff; font-size: 12px; }
.assessment-welcome--compact { grid-template-columns: minmax(0, 1.8fr) minmax(220px, .8fr); padding-block: 24px; }
.assessment-welcome--compact h2 { font-size: clamp(24px, 2.4vw, 32px); }
.assessment-cockpit { border: 1px solid var(--line); border-left: 3px solid var(--blue); background: #ffffff; padding: 24px; }
.assessment-cockpit__heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.assessment-cockpit__heading h2 { margin: 7px 0; font-size: 24px; }
.assessment-cockpit__heading p:last-child { max-width: 720px; margin: 0; color: #414c60; line-height: 1.55; }
.assessment-cockpit__heading .button { flex-shrink: 0; text-decoration: none; }
.assessment-cockpit__metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 22px 0 0; border: 1px solid var(--line); background: var(--line); gap: 1px; }
.assessment-cockpit__metrics div { background: #f8f8f8; padding: 14px 16px; }
.assessment-cockpit__metrics dt { color: #596273; font-size: 11px; font-weight: 700; }
.assessment-cockpit__metrics dd { margin: 6px 0 0; color: var(--blue-dark); font-size: 24px; font-weight: 800; }
.assessment-cockpit__scope { margin: 12px 0 0; color: #596273; font-size: 11px; }
.assessment-stage-guide { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); background: white; }
.assessment-stage-guide li { display: flex; gap: 12px; align-items: center; padding: 20px 16px; border-top: 3px solid transparent; }
.assessment-stage-guide li > span { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; background: var(--canvas); font-size: 12px; }
.assessment-stage-guide strong { display: block; font-size: 12px; }
.assessment-stage-guide small { display: block; margin-top: 5px; color: #596273; font-size: 11px; }
.assessment-stage-guide .is-current { border-top-color: var(--blue); background: #f1f6ff; }
.assessment-stage-guide .is-current > span { background: var(--blue); color: white; }
.assessment-stage-guide .is-done > span { color: var(--blue-dark); background: #e1ecfc; }
.assessment-next-step { padding: 24px; background: #f1f6ff; border-left: 3px solid var(--blue); }
.assessment-next-step h2 { font-size: 20px; letter-spacing: -.4px; margin: 8px 0; }
.assessment-next-step p:last-child { margin: 0; line-height: 1.6; color: #414c60; max-width: 850px; }
.assessment-owners { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 12px; line-height: 1.6; }
.assessment-card__schedule { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 11px; color: #596273; }
.assessment-card__schedule strong { color: var(--blue-dark); }
.assessment-filter-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 260px); gap: 12px 20px; padding: 18px 0; }
.assessment-filter-scope { grid-column: 1 / -1; margin: 0; color: #596273; font-size: 11px; }
.assessment-disclosure > summary, .assessment-optional > summary, .assessment-decision-disclosure > summary, .assessment-nomination > summary, .assessment-reasoned-action > summary { cursor: pointer; font-weight: 600; font-size: 13px; line-height: 1.5; }
.assessment-disclosure > summary { color: var(--blue-dark); font-size: 15px; }
.assessment-disclosure[open] > summary { margin-bottom: 24px; }
.assessment-optional { padding: 18px; border: 1px solid var(--line); background: #fafbfc; }
.assessment-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.form-step-heading { display: flex; gap: 14px; align-items: start; }
.form-step-heading > span { color: var(--blue); font-weight: 600; padding-top: 2px; }
.form-step-heading h3 { margin: 0 0 8px; font-size: 15px; }
.form-step-heading p { margin: 0; color: #596273; line-height: 1.6; font-size: 12px; }
.assessment-register .section-heading > span { font-size: 11px; color: #596273; }
.assessment-task__summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; gap: 16px; align-items: center; cursor: pointer; list-style: none; }
.assessment-task[hidden], .member-row[hidden] { display: none; }
.assessment-task__summary::-webkit-details-marker { display: none; }
.assessment-task__summary strong { display: block; font-size: 16px; overflow-wrap: anywhere; }
.assessment-task__summary small { display: block; color: #596273; font-size: 11px; margin-top: 7px; }
.assessment-task__cue { color: var(--blue); font-size: 24px; text-align: center; }
.assessment-task[open] > summary .assessment-task__cue { transform: rotate(45deg); }
.assessment-task[open] > summary { padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.assessment-content > p { line-height: 1.65; overflow-wrap: anywhere; white-space: pre-wrap; }
.assessment-task > .assessment-content { border-top: 0; padding-top: 0; }
.assessment-content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 20px 0; }
.assessment-content-grid > div { padding: 14px 0; border-top: 1px solid var(--line); min-width: 0; }
.assessment-content-grid dt { font-size: 10px; font-weight: 600; color: #596273; text-transform: uppercase; letter-spacing: .6px; }
.assessment-content-grid dd { margin: 8px 0 0; font-size: 13px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.assessment-decision-disclosure, .assessment-nomination { padding: 18px; border: 1px solid var(--line); background: #f7f9fc; }
.assessment-decision-context { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; border-left: 3px solid var(--blue); background: #edf4ff; padding: 12px 14px; }
.assessment-decision-context strong,
.assessment-decision-context span { display: block; }
.assessment-decision-context span { margin-top: 4px; color: #414c60; font-size: 11px; }
.assessment-decision-context > .status { flex-shrink: 0; margin-top: 0; }
.assessment-register:focus { outline: 3px solid color-mix(in srgb, var(--blue) 45%, transparent); outline-offset: 3px; }
.assessment-decision-disclosure .assessment-decision { display: grid; grid-template-columns: 1fr; }
.assessment-decision-disclosure .button { justify-self: start; }
.assessment-nomination { margin-top: 18px; }
.task-save-controls__steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); background: white; }
.task-save-controls__steps li { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-top: 3px solid transparent; color: #414c60; font-size: 13px; font-weight: 600; }
.task-save-controls__steps li > span { display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; background: var(--canvas); font-size: 12px; }
.task-save-controls__steps .is-current { border-top-color: var(--blue); background: #f1f6ff; color: var(--blue-dark); }
.task-save-controls__steps .is-current > span { background: var(--blue); color: white; }
.task-save-controls__steps .is-done > span { color: var(--blue-dark); background: #e1ecfc; }
.task-save-controls__fields { border: 0; min-width: 0; padding: 0; margin: 0; }
.task-save-controls__footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; padding: 18px; background: #f1f6ff; }
.task-save-controls__footer p { margin: 0; max-width: 530px; color: #414c60; line-height: 1.6; font-size: 12px; }
.task-save-controls__actions { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
.task-save-controls__footer .button { flex-shrink: 0; }
.assessment-reasoned-action { max-width: 540px; min-width: 0; }
.assessment-reasoned-action > summary { color: var(--blue-dark); padding: 12px 0; }
.assessment-reasoned-action form { display: grid; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--line); }
.assessment-reasoned-action form p { margin: 0; line-height: 1.6; font-size: 12px; }
.assessment-reasoned-action form .button { justify-self: start; }
.assessment-withdraw { align-items: start; }
.assessment-withdraw > div { max-width: 650px; }
.assessment-withdraw p { line-height: 1.6; }
.assessment-task summary:focus-visible, .assessment-disclosure summary:focus-visible, .assessment-reasoned-action summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
@media (max-width: 900px) {
  .assessment-overview { grid-template-columns: 1fr; }
  .assessment-metrics-block { border-left: 0; border-top: 1px solid var(--line); }
  .assessment-stage-guide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assessment-welcome { grid-template-columns: 1fr; gap: 20px; }
  .assessment-welcome__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .assessment-welcome__steps li { align-items: start; flex-direction: column; gap: 8px; font-size: 12px; }
  .assessment-cockpit__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .assessment-welcome { padding: 24px 20px; }
  .assessment-stage-guide li { padding: 14px 10px; gap: 8px; }
  .assessment-stage-guide strong { font-size: 11px; }
  .assessment-next-step { padding: 20px 16px; }
  .assessment-filter-bar, .assessment-form-grid, .assessment-content-grid { grid-template-columns: 1fr; }
  .assessment-task { padding: 16px; }
  .assessment-task__summary { grid-template-columns: minmax(0, 1fr) 20px; gap: 12px; }
  .assessment-task__summary .status { grid-row: 2; grid-column: 1; justify-self: start; }
  .assessment-task__cue { grid-row: 1; grid-column: 2; }
  .assessment-cockpit { padding: 20px 16px; }
  .assessment-cockpit__heading { align-items: stretch; flex-direction: column; }
  .assessment-cockpit__heading .button { align-self: start; }
  .assessment-cockpit__metrics { grid-template-columns: 1fr 1fr; }
  .assessment-decision-context { align-items: start; flex-direction: column; }
  .task-save-controls__steps { grid-template-columns: 1fr; }
  .task-save-controls__footer { align-items: stretch; flex-direction: column; }
  .task-save-controls__actions { justify-content: stretch; }
  .task-save-controls__actions .button { flex: 1 1 auto; }
  .assessment-register .section-heading { align-items: start; flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
/* Desktop uses platform fonts with standard letterforms; no bundled font licence. */
.desktop-status-page {
  font-family: system-ui, "Segoe UI", Arial, sans-serif;
  font-feature-settings: normal;
  font-variant: normal;
  font-size: 15px;
  line-height: 1.5;
  background: var(--canvas);
  color: #111318;
  min-height: 100vh;
  padding: 24px clamp(20px, 4vw, 48px) 32px;
}
.desktop-status-page > * { width: 100%; max-width: 1120px; margin-inline: auto; }
.desktop-status-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line-dark); color: var(--blue-dark); }
.desktop-status-header img { width: 124px; }
.desktop-status-header span { font-size: 14px; }
.desktop-status-hero { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 24px; margin-bottom: 20px; }
.desktop-status-hero h1 { color: #082651; font-size: clamp(26px, 2.5vw, 32px); line-height: 1.2; letter-spacing: -.02em; margin: 6px 0 8px; }
.desktop-status-page p { margin: 6px 0 0; }
.desktop-status-page .eyebrow { font-size: 12px; letter-spacing: .02em; text-transform: none; margin: 0; }
.desktop-status-hero button { flex-shrink: 0; }
.desktop-status-page .button { font-size: 14px; padding: 10px 18px; }
.desktop-status-boundary { border-left: 3px solid var(--blue); background: #eaf2ff; padding: 12px 16px; color: var(--blue-dark); font-size: 14px; }
.desktop-status-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); margin-top: 20px; margin-bottom: 20px; }
.desktop-status-summary article { background: var(--paper); padding: 16px; min-width: 0; }
.desktop-status-summary h2 { margin: 0 0 8px; font-size: 13px; font-weight: 500; color: #4f5661; }
.desktop-status-summary strong { font-size: 16px; color: #082651; }
.desktop-status-summary p { font-size: 13px; color: #4f5661; overflow-wrap: anywhere; }
.desktop-status-action { padding: 20px; background: var(--paper); border-left: 3px solid var(--blue); margin-bottom: 16px; }
.desktop-status-action h2 { color: #082651; font-size: 20px; margin: 4px 0 8px; }
.desktop-status-action .supporting { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 16px; font-size: 13px; color: #4f5661; }
.desktop-status-action form { display: flex; flex-wrap: wrap; align-items: start; gap: 12px; margin-top: 16px; }
.desktop-enrollment-field { flex: 1 1 360px; max-width: 560px; min-width: 0; }
.desktop-status-action label { display: block; margin-bottom: 6px; font-size: 14px; }
.desktop-status-action form > .button { margin-top: 27px; }
.desktop-status-action input { min-height: 44px; width: 100%; min-width: 0; border: 1px solid #6b7280; padding: 10px 12px; background: white; }
.desktop-status-action [role="status"], .desktop-status-action [role="alert"] { margin-top: 16px; padding: 12px 16px; background: #fff4dd; border-left: 3px solid #9a5b08; }
.desktop-status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; max-width: 100%; background: #f0f1f3; color: #4f5661; font-size: 13px; line-height: 1.4; }
.desktop-status-badge .icon { width: 16px; height: 16px; flex: 0 0 16px; }
.desktop-status-summary .desktop-status-badge strong { color: inherit; font-size: inherit; }
.desktop-status-badge--observed { background: #eaf2ff; color: #0c3773; }
.desktop-status-badge--stale, .desktop-status-badge--blocked, .desktop-status-badge--pending { background: #fff4dd; color: #744700; }
.desktop-status-badge--error { background: #fff0f0; color: #962337; }
.desktop-status-badge--disconnected { background: #f0f1f3; color: #39465a; border: 1px solid #6b7280; }
.desktop-enrollment-steps { background: var(--paper); border: 1px solid var(--line-dark); padding: 16px 20px; margin-bottom: 16px; }
.desktop-enrollment-steps h2 { margin: 0 0 12px; font-size: 16px; color: #082651; }
.desktop-enrollment-steps ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding-left: 20px; }
.desktop-enrollment-steps li { padding-left: 4px; }
.desktop-enrollment-steps li::marker { color: #4f5661; font-size: 13px; }
.desktop-enrollment-steps h3 { font-size: 14px; font-weight: 500; margin: 0 0 8px; }
.desktop-enrollment-steps > p { color: #4f5661; font-size: 13px; padding-top: 12px; }
.desktop-code-guidance { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: #4f5661; }
.desktop-code-guidance span { flex-shrink: 0; margin-top: 6px; }
.desktop-status-action input[aria-invalid="true"] { border: 2px solid #962337; }
.desktop-status-action .desktop-code-error { color: #962337; font-size: 13px; padding: 0; border: 0; background: transparent; margin-top: 8px; }
.desktop-status-details { border: 1px solid var(--line-dark); background: var(--paper); padding: 14px 20px; margin-bottom: 8px; }
.desktop-status-details summary { cursor: pointer; color: var(--blue-dark); font-weight: 600; min-height: 24px; }
.desktop-status-details summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.desktop-status-details[open] summary { margin-bottom: 16px; }
.desktop-status-details p { font-size: 14px; }
.desktop-status-facts { margin: 16px 0; }
.desktop-status-facts > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; border-top: 1px solid var(--line); padding: 12px 0; font-size: 14px; }
.desktop-status-facts dt { font-weight: 600; color: var(--blue-dark); }
.desktop-status-facts dd { margin: 0; }
.desktop-status-installation { overflow-wrap: anywhere; }
.desktop-status-details .desktop-setup-guide { margin: 0; border: 0; padding: 0; }
.desktop-status-details .desktop-setup-guide h3 { margin-top: 4px; font-size: 20px; }
.desktop-status-details .desktop-setup-guide li { margin-bottom: 16px; }
.desktop-rehearsal-controls { font-family: system-ui, "Segoe UI", Arial, sans-serif; font-feature-settings: normal; padding: 12px clamp(20px, 4vw, 48px); background: #082651; color: #fff; font-size: 13px; }
.desktop-rehearsal-controls p { margin: 4px 0 8px; }
.desktop-rehearsal-controls select { color: #000; padding: 8px; margin-top: 4px; max-width: 100%; }
@media (max-width: 900px) {
  .desktop-status-summary { grid-template-columns: 1fr; }
  .desktop-status-summary article { display: grid; grid-template-columns: 140px minmax(150px, .8fr) minmax(0, 1.2fr); gap: 12px; align-items: center; padding: 12px 16px; }
  .desktop-status-summary h2, .desktop-status-summary p { margin: 0; }
  .desktop-status-summary .desktop-status-badge { justify-self: start; }
}
@media (max-width: 620px) {
  .desktop-status-hero { flex-direction: column; align-items: flex-start; gap: 16px; }
  .desktop-status-header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .desktop-status-summary article { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .desktop-status-summary article > p { grid-column: 1 / -1; }
  .desktop-status-summary .desktop-status-badge { justify-self: end; }
  .desktop-enrollment-steps ol { grid-template-columns: 1fr; gap: 14px; }
  .desktop-enrollment-steps li { display: list-item; }
  .desktop-enrollment-steps h3 { display: inline; margin-right: 12px; }
  .desktop-status-action form > .button { margin-top: 0; }
  .desktop-code-guidance { flex-wrap: wrap; gap: 0 12px; }
  .desktop-status-facts > div { grid-template-columns: 1fr; gap: 4px; }
  .desktop-status-action { padding: 16px; }
  .desktop-status-details { padding: 14px 16px; }
}


.operator-workspace-nav__primary { display: grid; gap: 4px; min-width: 0; }
.operator-workspace-nav__tools { display: grid; gap: 4px; margin-top: auto; padding-top: 28px; min-width: 0; }
.operator-workspace-tools { min-width: 0; }
.operator-workspace-tools > summary { position: relative; list-style: none; cursor: pointer; font-size: 13px; }
.operator-workspace-tools > summary::-webkit-details-marker { display: none; }
.operator-workspace-tools > summary::after { content: "+"; font-size: 16px; }
.operator-workspace-tools[open] > summary::after { content: "−"; }
.operator-workspace-tools__items { display: grid; gap: 4px; margin-top: 4px; }
@media (prefers-reduced-motion: reduce) {
  .sidebar, .sidebar-toggle .icon, .nav-item { transition: none; }
}
.sidebar--collapsed .operator-workspace-tools > summary::after { position: absolute; right: 0; bottom: 1px; }
.operator-home__header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px clamp(24px, 4vw, 48px); background: var(--paper); border-bottom: 1px solid var(--line); }
.operator-home__header h1 { margin: 0 0 8px; font-size: clamp(28px, 2.4vw, 32px); color: var(--blue-dark); }
.operator-home__header .eyebrow { margin-bottom: 8px; }
.operator-home__header p:last-child { margin-bottom: 0; max-width: 620px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.operator-home__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.operator-home .my-automations-intro h2 { font-size: 21px; }
.operator-home__evidence { color: var(--muted); border-top: 1px solid var(--line-dark); padding-top: 16px; font-size: 12px; line-height: 1.6; }
.operator-home__evidence summary { width: fit-content; color: var(--blue-dark); font-weight: 700; cursor: pointer; }
.operator-home__evidence p { max-width: 800px; margin: 10px 0 0; }
@media (max-width: 1100px) {
  .operator-home__header { align-items: flex-start; flex-direction: column; gap: 18px; }
}
@media (max-width: 820px) {
  .sidebar-nav.operator-workspace-nav { display: grid; gap: 0; overflow: visible; padding: 0; }
  .operator-workspace-nav__primary { display: flex; max-width: 100vw; overflow-x: auto; padding: 0 12px 8px; }
  .operator-workspace-nav__tools { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 0; padding: 4px 12px; align-items: start; }
  .operator-workspace-nav__tools .nav-item { min-width: 0; width: 100%; }
  .operator-workspace-tools > summary { justify-content: space-between; }
  .operator-workspace-tools__items .nav-item { white-space: normal; }
  .sidebar--collapsed .operator-workspace-tools > summary::after { position: static; }
}
@media (max-width: 620px) {
  .operator-home__header { padding: 24px 20px; }
  .operator-home__actions { width: 100%; flex-wrap: wrap; }
  .operator-home__actions .button { min-width: 0; }
  .operator-workspace-nav__tools .nav-item { gap: 8px; padding-inline: 8px; font-size: 12px; }
}

.agent-acquisition { max-width: 1240px; margin-inline: auto; padding: 32px clamp(20px, 4vw, 48px); color: var(--blue-dark); }
.agent-acquisition h1 { font-size: clamp(28px, 3vw, 36px); margin: 8px 0 12px; letter-spacing: -.03em; }
.agent-acquisition h2 { font-size: 22px; margin: 12px 0; letter-spacing: -.02em; }
.agent-acquisition p, .agent-acquisition li { font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.agent-acquisition p { color: #414c60; }
.agent-acquisition__header { margin-bottom: 28px; max-width: 720px; }
.agent-acquisition__download { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--blue); }
.agent-acquisition__download > div:first-child { max-width: 620px; }
.agent-acquisition__download p { margin-bottom: 0; }
.agent-acquisition__download-action { flex-shrink: 0; display: grid; gap: 12px; }
.agent-acquisition__download-action small { color: var(--muted); text-align: center; font-size: 12px; }
.agent-acquisition__journey { padding-block: 24px; }
.agent-acquisition__journey h2 { font-size: 14px; color: var(--muted); font-weight: 500; }
.agent-acquisition__journey ol { padding: 0; margin: 20px 0 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.agent-acquisition .agent-acquisition__journey li + li { margin: 0; }
.agent-acquisition__journey li { border-top: 1px solid var(--line-dark); padding-top: 12px; }
.agent-acquisition__journey li > span { display: block; color: var(--blue); font-size: 12px; margin-bottom: 8px; }
.agent-acquisition__journey li > strong { font-size: 14px; }
.agent-acquisition__journey li > p { font-size: 12px; margin: 4px 0 0; }
.agent-acquisition__section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 16px 0; }
.agent-acquisition__section-heading h2 { margin: 0; }
.agent-acquisition__section-heading p { margin-bottom: 0; font-size: 12px; }
.agent-acquisition__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); gap: 1px; background: var(--line); }
.agent-acquisition__action { display: flex; flex-direction: column; padding: 24px; min-width: 0; background: var(--paper); }
.agent-acquisition__action h3 { font-size: 17px; line-height: 1.35; margin: 0; }
.agent-acquisition__action p { font-size: 13px; margin: 12px 0 20px; }
.agent-acquisition__action .text-action { align-self: start; margin-top: auto; text-align: left; line-height: 1.5; }
.agent-acquisition__help { margin-top: 24px; padding: 20px 24px; border-left: 3px solid var(--blue); background: #edf4ff; }
.agent-acquisition__help p { margin: 6px 0 0; font-size: 13px; }
.agent-acquisition__choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-bottom: 24px; background: var(--line); border: 1px solid var(--line); }
.agent-acquisition__choices--single { grid-template-columns: 1fr; }
.agent-acquisition__choice { display: block; min-width: 0; border: 0; border-top: 3px solid transparent; border-radius: 0; padding: 22px 24px; background: var(--paper); color: var(--blue-dark); text-align: left; cursor: pointer; }
.agent-acquisition__choice:hover { background: #f8f8f8; }
.agent-acquisition__choice.is-selected { border-top-color: var(--blue); background: #edf4ff; }
.agent-acquisition__choice:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--blue); outline-offset: 2px; }
.agent-acquisition__choice strong, .agent-acquisition__choice small { display: block; }
.agent-acquisition__choice strong { margin: 8px 0; font-size: 18px; }
.agent-acquisition__choice small { color: #414c60; font-size: 12px; line-height: 1.5; }
.agent-acquisition__availability { display: flex; align-items: center; justify-content: space-between; gap: 32px; background: var(--paper); border-left: 3px solid var(--blue); padding: 24px 28px; }
.agent-acquisition__availability > div { max-width: 690px; }
.agent-acquisition__availability p { margin-bottom: 0; }
.agent-acquisition__owner { flex-shrink: 0; font-size: 12px !important; }
.agent-acquisition__owner strong { display: block; color: var(--blue-dark); margin-top: 4px; font-size: 16px; }
.agent-acquisition__places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 24px 0; background: var(--paper); border: 1px solid var(--line); }
.agent-acquisition__places article { padding: 28px; min-width: 0; }
.agent-acquisition__places article + article { border-left: 1px solid var(--line); }
.agent-acquisition__places--single { grid-template-columns: 1fr; }
.agent-acquisition__places--single article { max-width: 850px; }
.agent-acquisition ul { padding-left: 20px; margin: 18px 0; }
.agent-acquisition li + li { margin-top: 10px; }
.agent-acquisition .supporting { font-size: 12px; line-height: 1.65; }
.agent-acquisition__handoff { display: flex; align-items: center; justify-content: space-between; gap: 28px; border-top: 1px solid var(--line-dark); padding: 12px 0; }
.agent-acquisition__handoff > div { max-width: 700px; }
.agent-acquisition__handoff .button { flex-shrink: 0; }
.agent-acquisition__requirements { border-top: 1px solid var(--line-dark); padding: 20px 0; margin-top: 10px; }
.agent-acquisition__requirements summary { cursor: pointer; font-size: 14px; font-weight: 600; line-height: 1.5; }
.agent-acquisition__requirements ol { max-width: 850px; padding-left: 22px; margin-top: 20px; }
.agent-acquisition__requirements summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
@media (max-width: 760px) {
  .agent-acquisition__choices { grid-template-columns: 1fr; }
  .agent-acquisition__download, .agent-acquisition__section-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .agent-acquisition__download-action { width: 100%; }
  .agent-acquisition__journey ol, .agent-acquisition__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agent-acquisition__availability, .agent-acquisition__handoff { align-items: flex-start; flex-direction: column; gap: 16px; }
  .agent-acquisition__places { grid-template-columns: 1fr; }
  .agent-acquisition__places article + article { border-left: 0; border-top: 1px solid var(--line); }
  .agent-acquisition__places article, .agent-acquisition__availability { padding: 20px; }
}
@media (max-width: 480px) {
  .agent-acquisition__actions { grid-template-columns: 1fr; }
  .agent-acquisition__download { padding: 20px; }
}

/* Guided Mission Control setup, scoped to the disconnected preview. */
.mission-company-list { display: grid; gap: 20px; max-width: 1240px; }
.mission-setup-actions { margin-top: 20px; }
.mission-journey { list-style: none; padding: 0; margin: 24px 0; max-width: 1240px; }
.mission-journey__step { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 24px; background: #fff; border-bottom: 1px solid var(--line); border-left: 4px solid transparent; }
.mission-journey__step--current { border-left-color: #176de6; background: #f5f9ff; }
.mission-step-number { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #9ca3af; border-radius: 50%; font-weight: 700; }
.mission-journey h3 { margin: 0 0 6px; font-size: 20px; }
.mission-journey p { margin: 4px 0; color: var(--muted); line-height: 1.5; }
.mission-work-panel { overflow-wrap: anywhere; }
.mission-onboarding-form > .field { grid-column: 1 / -1; }
.mission-onboarding-form small { font-size: 13px; color: var(--muted); line-height: 1.5; }
.mission-preferences { grid-column: 1 / -1; border-top: 1px solid var(--line); padding: 18px 0; }
.mission-preferences summary, .mission-work-panel summary { cursor: pointer; font-weight: 700; }
.mission-preferences .field { margin: 16px 0; }
.mission-checklist ol { padding-left: 22px; line-height: 1.6; }
.mission-checklist li { padding-bottom: 14px; }
.mission-checklist > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
@media (max-width: 680px) {
  .mission-journey__step { grid-template-columns: 32px minmax(0, 1fr); padding: 18px 14px; gap: 12px; }
  .mission-journey__step > .mission-status { grid-column: 2; justify-self: start; }
  .mission-form-heading > span { flex-shrink: 0; }
}

.mission-setup-owners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; padding: 24px; }
.mission-setup-owners h2 { grid-column: 1 / -1; margin: 0; font-size: 22px; }
.mission-setup-owners > p { margin: 0; }
.mission-setup-owners > p:last-child { grid-column: 1 / -1; font-size: 13px; }
@media (max-width: 680px) { .mission-setup-owners { grid-template-columns: 1fr; } }

details.mission-work-panel { min-height: auto; padding: 24px; }
.mission-setup-owners { min-height: auto; }
.mission-workspace > .notice { position: static; max-width: 1240px; margin-bottom: 16px; box-shadow: none; }

.access-state,
.my-access,
.department-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px;
}
.access-state--unavailable { border-left: 4px solid #a4482d; max-width: 760px; }
.access-state h1 { margin: 8px 0 12px; font-size: clamp(28px, 4vw, 42px); }
.grant-list { display: grid; gap: 8px; margin-top: 16px; }
.grant-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  background: #fff;
  padding: 12px 14px;
}
.grant-card strong, .grant-card small { display: block; }
.grant-card small { color: var(--muted); margin-top: 3px; }
.revision-chip, .grant-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid #b7cae8;
  background: #edf4ff;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 700;
}
.grant-pill--empty { border-color: var(--line-dark); background: #f8f8f8; color: var(--muted); }
.account-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 24px;
}
.account-identity {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}
.avatar--account {
  width: 56px;
  height: 56px;
  font-size: 20px;
  font-weight: 500;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--blue-dark);
}
.account-identity__copy h2 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
.account-identity__copy p { margin: 4px 0 0; color: var(--muted); }
.account-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 16px 0 0;
}
.account-facts div { min-width: 0; }
.account-facts dt { color: var(--muted); font-size: 12px; }
.account-facts dd { margin: 4px 0 0; }
.account-session-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.account-inspect {
  color: var(--muted);
  font-size: 13px;
}
.account-inspect summary {
  width: fit-content;
  color: var(--blue);
  font-weight: 500;
  cursor: pointer;
}
.account-inspect .account-facts { margin-top: 12px; }
.access-filters, .grant-composer__fields, .department-create, .department-form, .automation-binding {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 14px;
  margin: 18px 0;
}
.access-filters { grid-template-columns: minmax(220px, 2fr) minmax(180px, 1fr); }
.grant-composer { grid-column: 1 / -1; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; }
.grant-composer__fields { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; margin-top: 0; }
.member-row--roles-v1 { grid-template-columns: minmax(190px, 1fr) minmax(260px, 2fr) minmax(180px, 2fr); align-items: start; }
.member-grants { display: flex; flex-wrap: wrap; gap: 6px; }
.member-editor { grid-column: 1 / -1; width: 100%; border-top: 1px solid var(--line); padding-top: 18px; }
.access-review { border: 2px solid var(--blue); background: #f8fbff; padding: 20px; margin-top: 16px; }
.access-review h3, .access-review h4 { margin: 6px 0 10px; }
.access-review__grants { display: grid; gap: 8px; margin: 14px 0; }
.access-review__grant { background: #fff; border-left: 3px solid var(--blue); padding: 12px 14px; }
.access-review__grant p { margin: 6px 0; }
.access-review__grant small { color: var(--muted); line-height: 1.5; }
.access-warning { border-left: 3px solid #a4482d; background: #fff2ed; padding: 12px; }
.access-review__reason { border-top: 1px solid var(--line); padding-top: 12px; }
.department-list { display: grid; gap: 14px; margin-top: 20px; }
.department-card { border-top: 3px solid var(--blue); background: #f8f8f8; padding: 20px; }
.department-card__heading { display: flex; justify-content: space-between; gap: 16px; }
.department-card__heading strong, .department-card__heading small { display: block; }
.department-card__heading small { margin-top: 4px; color: var(--muted); }
.automation-binding-list, .unassigned-automations { display: grid; gap: 10px; margin-top: 18px; }
.automation-binding { grid-template-columns: minmax(160px, 1fr) minmax(180px, 1fr) minmax(180px, 1fr) auto; margin: 0; padding: 12px; background: #fff; border: 1px solid var(--line); }
.access-review--binding { margin: 0; }
.unassigned-automations { border-top: 1px solid var(--line-dark); padding-top: 20px; }

@media (max-width: 900px) {
  .member-row--roles-v1, .grant-composer__fields, .department-create, .department-form, .automation-binding { grid-template-columns: 1fr 1fr; }
  .member-editor, .grant-composer { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .access-state, .my-access, .department-panel, .account-panel { padding: 20px; }
  .account-identity { grid-template-columns: 48px minmax(0, 1fr); }
  .account-identity > .status { grid-column: 1 / -1; justify-self: start; }
  .access-filters, .grant-composer__fields, .department-create, .department-form, .automation-binding, .member-row--roles-v1 { grid-template-columns: 1fr; }
  .grant-card { align-items: flex-start; flex-direction: column; }
}
.beneficiary-shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; background: var(--canvas); }
.beneficiary-sidebar { display: flex; flex-direction: column; gap: 24px; padding: 36px 24px; background: #fff; border-right: 1px solid var(--line); }
.beneficiary-logo { width: 140px; height: auto; }
.beneficiary-workspace-name { margin: 0; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 700; overflow-wrap: anywhere; }
.beneficiary-sidebar nav { display: grid; gap: 8px; }
.beneficiary-sidebar nav button { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 12px; border: 0; border-left: 3px solid transparent; border-radius: 0; background: transparent; color: var(--ink); text-align: left; font: inherit; font-size: 14px; cursor: pointer; }
.beneficiary-nav-label { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.beneficiary-nav-label .icon { width: 16px; height: 16px; }
.beneficiary-sidebar nav button[aria-current="page"] { border-left-color: var(--blue); background: #edf4ff; color: var(--blue-dark); font-weight: 700; }
.beneficiary-count { padding: 2px 6px; background: var(--blue-dark); color: #fff; font-size: 12px; }
.beneficiary-scope { margin-top: auto; color: var(--muted); font-size: 12px; }
.beneficiary-main { min-width: 0; width: 100%; max-width: 1440px; padding: 48px clamp(24px, 4vw, 64px); }
.beneficiary-main .page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 40px; }
.beneficiary-main .page-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.beneficiary-main .workspace-footer { margin-top: 32px; padding: 20px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.beneficiary-main h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.12; }
.beneficiary-intro { color: var(--muted); max-width: 50ch; }
.beneficiary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.beneficiary-card, .beneficiary-empty, .beneficiary-detail { background: #fff; padding: 32px; border-top: 3px solid var(--blue); overflow-wrap: anywhere; }
.beneficiary-card h3, .beneficiary-row h3, .beneficiary-empty h3 { margin: 0 0 12px; font-size: 22px; line-height: 1.3; }
.beneficiary-card .button { margin-top: 20px; }
.beneficiary-hint, .beneficiary-empty p { color: var(--muted); max-width: 58ch; line-height: 1.6; }
.beneficiary-empty { min-height: 240px; display: flex; flex-direction: column; justify-content: center; }
.beneficiary-list { display: grid; gap: 12px; }
.beneficiary-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px; background: #fff; border: 1px solid var(--line); }
.beneficiary-row > div { min-width: 0; overflow-wrap: anywhere; }
.beneficiary-row .button { flex-shrink: 0; }
.beneficiary-row p { margin: 6px 0; }
.beneficiary-row small, .beneficiary-detail small { display: block; margin-top: 4px; color: var(--muted); }
.beneficiary-row time, .beneficiary-detail time { display: block; margin: 8px 0; font-size: 14px; }
.beneficiary-detail { margin-top: 28px; }
.beneficiary-detail details { margin-top: 24px; }
.beneficiary-detail summary { cursor: pointer; padding: 12px 0; font-weight: 700; }
.beneficiary-detail li { margin: 10px 0; }
.beneficiary-skip { position: absolute; left: 12px; top: -100px; padding: 12px; background: #fff; z-index: 10; }
.beneficiary-skip:focus { top: 12px; }
.first-document-setup { margin-bottom: 24px; border: 1px solid var(--line); border-top: 4px solid var(--blue); background: #fff; padding: 28px; }
.first-document-setup > h2 { margin: 6px 0 10px; color: var(--blue-dark); font-size: clamp(25px, 3vw, 34px); }
.first-document-setup > p:not(.eyebrow) { max-width: 72ch; color: var(--muted); line-height: 1.6; }
.first-document-setup > ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 24px 0 0; padding: 1px; background: var(--line); list-style: none; }
.first-document-step { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-content: start; gap: 12px; min-width: 0; background: #fff; padding: 18px; }
.first-document-step__number { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line-dark); color: var(--blue-dark); font-weight: 800; }
.first-document-step h3 { margin: 0 0 8px; font-size: 15px; line-height: 1.4; }
.first-document-step strong { color: var(--blue); font-size: 12px; }
.first-document-step p { margin: 8px 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.first-document-step small { color: var(--blue-dark); font-size: 11px; font-weight: 700; }
.first-document-step--locked { background: #fff9ef; }
.first-document-step--available { background: #f2f8ff; }
.first-document-card { border-left: 4px solid var(--blue); background: #fff; padding: 32px; }
.first-document-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.first-document-card h2 { margin: 5px 0 0; color: var(--blue-dark); font-size: clamp(25px, 3vw, 34px); }
.first-document-card__badge { padding: 6px 10px; border: 1px solid var(--blue); color: var(--blue-dark); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.first-document-card__intro { max-width: 70ch; color: var(--muted); line-height: 1.6; }
.first-document-card > footer { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.first-document-card > footer .beneficiary-hint { flex-basis: 100%; margin: 0; }
.first-document-empty, .first-document-state { margin-top: 22px; border: 1px solid var(--line); background: #f8f8f8; padding: 22px; }
.first-document-empty p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }
.first-document-state { border-left: 4px solid var(--blue); }
.first-document-state--error, .first-document-state--review { border-left-color: var(--danger); background: #fff7f7; }
.first-document-state--fresh { border-left-color: var(--warning); background: #fff9ef; }
.first-document-state--complete { background: #f3f9f6; }
.first-document-state h3 { margin: 5px 0 8px; color: var(--blue-dark); font-size: 24px; }
.first-document-state > p:not(.eyebrow) { color: #4f5661; line-height: 1.55; }
.first-document-next, .first-document-result { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 18px 0 0; border-block: 1px solid var(--line); }
.first-document-next div, .first-document-result div { min-width: 0; padding: 14px 16px 14px 0; }
.first-document-next div + div, .first-document-result div + div { border-left: 1px solid var(--line); padding-left: 16px; }
.first-document-next dt, .first-document-result dt { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.first-document-next dd, .first-document-result dd { margin: 6px 0 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 700; line-height: 1.45; }
.first-document-result { grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 0; }
.beneficiary-grid--following { margin-top: 20px; }
@media (max-width: 900px) {
  .beneficiary-shell { grid-template-columns: 1fr; }
  .beneficiary-sidebar { padding: 24px; gap: 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .beneficiary-sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .beneficiary-workspace-name { padding-top: 16px; }
  .beneficiary-scope { margin: 0; }
  .beneficiary-main { padding: 32px 24px; }
  .first-document-setup > ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .first-document-result { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .first-document-result div:nth-child(3) { border-left: 0; }
}
@media (max-width: 520px) {
  .beneficiary-sidebar nav { grid-template-columns: 1fr; }
  .beneficiary-main .page-header, .beneficiary-row { flex-direction: column; align-items: flex-start; }
  .beneficiary-main { padding: 28px 16px; }
  .beneficiary-card, .beneficiary-empty, .beneficiary-detail { padding: 24px; }
  .first-document-setup, .first-document-card { padding: 20px; }
  .first-document-setup > ol, .first-document-next, .first-document-result { grid-template-columns: 1fr; }
  .first-document-card > header, .first-document-card > footer { align-items: flex-start; flex-direction: column; }
  .first-document-next div + div, .first-document-result div + div,
  .first-document-result div:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; padding-left: 0; }
}

.sign-in-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--canvas); }
.sign-in-card { width: min(560px, 100%); background: #fff; border-top: 4px solid var(--blue); padding: 32px; }
.sign-in-card img { width: 140px; height: auto; }
.sign-in-card h1 { margin: 8px 0 12px; font-size: clamp(32px, 5vw, 40px); line-height: 1.1; color: #000; }
.sign-in-card p { max-width: 48ch; line-height: 1.55; }
.sign-in-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.evidence-list { display: grid; gap: 12px; margin: 20px 0 0; }
.evidence-list div { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.evidence-list dt { font-size: 12px; font-weight: 700; color: var(--blue-dark); }
.evidence-list dd { margin: 0; line-height: 1.5; }
.loading-screen { min-height: 100vh; display: grid; align-content: center; justify-items: start; gap: 16px; padding: 32px; background: var(--canvas); }
.loading-screen img { width: 140px; }
.beneficiary-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.beneficiary-stat { display: grid; gap: 6px; padding: 16px; border: 0; border-top: 3px solid var(--blue); background: #fff; color: #000; text-align: left; border-radius: 0; }
.beneficiary-stat span { font-size: 12px; font-weight: 700; color: var(--blue-dark); }
.beneficiary-stat strong { font-size: 32px; line-height: 1; }
.beneficiary-stat small { color: var(--muted); line-height: 1.4; }
.beneficiary-filters { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(180px, .6fr); gap: 12px; margin-bottom: 20px; }
.beneficiary-field { display: grid; gap: 6px; font-size: 12px; font-weight: 700; color: var(--blue-dark); }
.beneficiary-field input, .beneficiary-field select { min-height: 44px; border: 1px solid var(--line-dark); border-radius: 0; background: #fff; padding: 8px 12px; color: #000; }
.beneficiary-notice { margin-bottom: 20px; padding: 14px 16px; background: #fff; border-left: 4px solid var(--blue); }
.beneficiary-notice--error { border-left-color: var(--danger); }
.beneficiary-notice--success { border-left-color: var(--success); }
.beneficiary-callout { margin: 12px 0; padding: 12px 16px; background: #fff8eb; border-left: 3px solid var(--warning); }
.beneficiary-timeline { margin: 8px 0 0; padding-left: 20px; }
.beneficiary-timeline li { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 8px 0; }
.beneficiary-review { display: grid; gap: 12px; margin-top: 16px; padding: 20px; border: 1px solid var(--line); border-left: 4px solid var(--warning); background: #fff; }
.beneficiary-review h3 { margin: 0; overflow-wrap: anywhere; }
.beneficiary-review .page-actions { margin-top: 4px; }
.beneficiary-account h2 { margin: 28px 0 12px; font-size: 22px; }
.beneficiary-account ul { margin: 0; padding-left: 18px; }
.beneficiary-account li { margin: 8px 0; }
.beneficiary-dialog-backdrop { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgb(0 0 0 / 45%); }
.beneficiary-dialog { width: min(520px, 100%); background: #fff; border-top: 4px solid var(--blue); padding: 28px; }
.beneficiary-dialog h2 { margin-top: 0; font-size: 28px; }
.beneficiary-dialog:focus { outline: 3px solid var(--blue); outline-offset: 3px; }
.notice--success { border-left-color: var(--success); }
@media (max-width: 900px) {
  .beneficiary-summary { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .beneficiary-filters { grid-template-columns: 1fr; }
  .sign-in-card, .beneficiary-dialog { padding: 24px; }
}


/* Tenant name lives once in the sidebar. */
.sidebar-workspace {
  margin: 0 24px 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.sidebar--collapsed .sidebar-workspace { display: none; }
@media (max-width: 820px) {
  .sidebar-workspace { margin: 0 16px 8px; }
}

/* Local Mission Control: customer onboarding worklist. */
.mc-dashboard .mission-workspace { gap: 0; }
.mc-dashboard .mission-page-header { align-items: center; margin-bottom: 28px; }
.mc-dashboard .mission-page-header h1 { font-size: clamp(32px, 3vw, 44px); letter-spacing: -.04em; overflow-wrap: anywhere; }
.mc-dashboard .mission-page-header .eyebrow { margin-bottom: 14px; }
.mc-dashboard .mission-sidebar__footer { gap: 10px; }
.mc-dashboard .mission-sidebar__footer form { margin-top: 12px; }
.mc-dashboard .mission-nav-item > span { font-size: 20px; width: 22px; text-align: center; }
.mc-dashboard .mission-boundary { border-left: 0; border: 1px solid var(--line); background: transparent; padding: 12px 16px; }
.mc-dashboard .mission-boundary strong { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.mc-dashboard .mission-work-panel { min-height: 0; margin-top: 20px; }
.mc-dashboard .mission-work-panel h2 { font-size: 24px; }
.mc-header-actions { display: flex; gap: 10px; flex-shrink: 0; }
.mc-header-actions .button { white-space: nowrap; }
.mc-back { align-self: flex-start; border: 0; padding: 0 0 24px; background: transparent; color: var(--blue-dark); font-size: 13px; font-weight: 600; }
.mc-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 1240px; margin-bottom: 32px; }
.mc-summary-card { position: relative; display: grid; gap: 16px; border: 1px solid var(--line); border-top: 3px solid var(--blue); background: var(--paper); text-align: left; padding: 22px; min-width: 0; }
.mc-summary-card:hover:not(:disabled) { border-color: var(--blue); }
.mc-summary-card__label { color: var(--blue-dark); font-size: 12px; font-weight: 600; }
.mc-summary-card strong { font-size: 42px; line-height: 1; font-weight: 500; letter-spacing: -.05em; color: var(--blue-dark); }
.mc-summary-card__caption { font-size: 11px; color: var(--muted); line-height: 1.5; }
.mc-summary-card__arrow { position: absolute; right: 20px; top: 58px; color: var(--blue); font-size: 20px; }
.mc-worklist { max-width: 1240px; background: var(--paper); border: 1px solid var(--line); }
.mc-worklist__heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 24px 20px; }
.mc-worklist__heading h2 { font-size: 23px; letter-spacing: -.025em; margin: 0 0 8px; }
.mc-worklist__heading p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }
.mc-result-count { flex-shrink: 0; color: var(--muted); font-size: 12px; }
.mc-filters { display: flex; gap: 16px; padding: 0 24px 24px; }
.mc-filters .field { max-width: 380px; flex: 1; gap: 8px; font-size: 11px; }
.mc-filters .field:last-child { max-width: 220px; }
.mc-filters input, .mc-filters select { min-height: 44px; background: #f8f8f8; font-size: 13px; }
.mc-customer-table__head, .mc-customer-row { display: grid; grid-template-columns: minmax(160px, 1.3fr) minmax(130px, .85fr) minmax(175px, 1fr) minmax(135px, .8fr); align-items: center; gap: 20px; padding: 22px 24px; }
.mc-customer-table__head { padding-top: 12px; padding-bottom: 12px; border-top: 1px solid var(--line); background: #f8f8f8; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.mc-customer-row { min-height: 100px; border-top: 1px solid var(--line); }
.mc-customer-row:hover { background: #f8f8f8; }
.mc-customer-name { display: flex; gap: 14px; align-items: center; min-width: 0; }
.mc-monogram { display: grid; place-items: center; flex: 0 0 40px; height: 40px; background: #f2f7ff; border: 1px solid #c8dcf9; color: var(--blue); font-weight: 600; font-size: 15px; }
.mc-customer-name h3 { margin: 0; color: var(--blue-dark); font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.mc-customer-name p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.mc-preparer { color: #4f596a; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.mc-customer-status { display: grid; justify-items: start; gap: 8px; }
.mc-customer-status small { font-size: 10px; color: var(--muted); }
.mc-stage { display: inline-flex; gap: 7px; align-items: center; font-size: 11px; font-weight: 600; color: var(--blue-dark); line-height: 1.4; }
.mc-stage > span { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.mc-stage--completed > span { background: #25714a; }
.mc-stage--attention, .mc-stage--unavailable { color: #8b550e; }
.mc-stage--attention > span, .mc-stage--unavailable > span { background: #a36915; }
.mc-stage--cancelled { color: var(--muted); }
.mc-stage--cancelled > span { background: var(--muted); }
.mc-row-action { display: flex; align-items: center; gap: 10px; justify-content: space-between; width: fit-content; border: 0; background: transparent; padding: 10px 0; color: var(--blue); text-align: left; font-size: 12px; font-weight: 600; line-height: 1.5; }
.mc-row-action:hover { color: var(--blue-dark); text-decoration: underline; }
.mc-mobile-label { display: none; }
.mc-empty { padding: 44px 24px; display: grid; justify-items: center; text-align: center; gap: 12px; }
.mc-empty__mark { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); color: var(--blue); font-size: 24px; margin-bottom: 6px; }
.mc-empty h3 { margin: 0; font-size: 21px; }
.mc-empty p { max-width: 440px; margin: 0 0 8px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.mc-freshness { max-width: 1240px; color: var(--muted); font-size: 11px; line-height: 1.6; margin: 16px 0 0; }
.mc-attention-banner { max-width: 1240px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-left: 3px solid #a36915; padding: 16px 20px; background: #fff8eb; margin-bottom: 24px; }
.mc-attention-banner strong { font-size: 13px; }
.mc-attention-banner p { font-size: 12px; color: var(--muted); margin: 6px 0 0; line-height: 1.5; }
.mc-progress { max-width: 1240px; border: 1px solid var(--line); background: var(--paper); padding: 28px; }
.mc-progress__heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.mc-progress h2 { margin: 0; font-size: 21px; }
.mc-progress ol { list-style: none; display: flex; padding: 0; margin: 30px 0 20px; }
.mc-progress li { position: relative; flex: 1; display: flex; flex-direction: column; gap: 9px; color: var(--muted); padding-right: 12px; }
.mc-progress li::before { content: ""; position: absolute; height: 1px; top: 16px; left: 32px; right: 0; background: var(--line); }
.mc-progress li:last-child::before { display: none; }
.mc-progress__number { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); background: var(--paper); z-index: 1; font-size: 12px; }
.mc-progress .is-done, .mc-progress .is-current { color: var(--blue-dark); }
.mc-progress .is-done .mc-progress__number { background: #f2f7ff; border-color: #c8dcf9; color: var(--blue); }
.mc-progress .is-current .mc-progress__number { background: var(--blue); border-color: var(--blue); color: white; }
.mc-progress li strong { font-size: 12px; line-height: 1.5; }
.mc-progress li small { font-size: 10px; }
.mc-progress > p { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 0; }
@media (max-width: 1200px) {
  .mc-dashboard .mission-workspace { padding: 30px 28px; }
  .mc-header-actions { flex-wrap: wrap; justify-content: flex-end; flex-shrink: 1; }
  .mc-summary { gap: 10px; }
  .mc-summary-card { padding: 18px; }
  .mc-customer-table__head { display: none; }
  .mc-customer-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mc-preparer { text-align: right; }
  .mc-row-action { justify-self: end; }
}
@media (max-width: 980px) {
  .mc-dashboard { display: block; }
  .mc-dashboard .mission-brand img { width: 124px; object-fit: contain; }
  .mc-dashboard .mission-brand span { display: block; }
  .mc-dashboard .mission-nav-item { font-size: 12px; justify-content: flex-start; padding-inline: 12px; }
  .mc-dashboard .mission-sidebar { position: relative; height: auto; }
  .mc-dashboard .mission-workspace { padding: 28px 24px; }
  .mc-dashboard .mission-sidebar__footer { display: flex; align-items: center; flex-wrap: wrap; padding: 14px 24px; }
  .mc-dashboard .mission-sidebar__footer > span { display: none; }
  .mc-dashboard .mission-sidebar__footer form { margin: 0 0 0 auto; }
  .mc-dashboard .mission-sidebar__footer .button { min-height: 36px; padding: 8px 16px; }
  .mc-dashboard .mission-sidebar__label { display: none; }
  .mc-dashboard .mission-sidebar nav { display: flex; padding: 10px 14px; }
  .mc-dashboard .mission-brand { display: flex; align-items: center; gap: 20px; padding: 20px 24px; }
  .mc-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .mc-dashboard .mission-workspace { padding: 24px 16px; }
  .mc-dashboard .mission-page-header { align-items: start; gap: 20px; }
  .mc-header-actions { justify-content: start; }
  .mc-header-actions .button { font-size: 12px; min-height: 40px; padding: 10px 16px; }
  .mc-summary-card { padding: 16px; gap: 14px; }
  .mc-summary-card strong { font-size: 34px; }
  .mc-summary-card__arrow { right: 16px; top: 52px; }
  .mc-summary-card__label { font-size: 11px; }
  .mc-worklist__heading { padding: 22px 16px 18px; align-items: start; }
  .mc-worklist__heading h2 { font-size: 21px; }
  .mc-result-count { font-size: 10px; }
  .mc-filters { flex-direction: column; padding: 0 16px 20px; }
  .mc-filters .field, .mc-filters .field:last-child { max-width: none; }
  .mc-customer-row { padding: 20px 16px; gap: 16px; }
  .mc-customer-name { grid-column: 1 / -1; }
  .mc-preparer { grid-column: 1 / -1; text-align: left; display: flex; gap: 10px; }
  .mc-mobile-label { display: inline; color: var(--muted); }
  .mc-attention-banner { flex-direction: column; align-items: start; }
  .mc-progress { padding: 24px 20px; }
  .mc-progress__heading { align-items: start; flex-direction: column; gap: 12px; }
  .mc-progress ol { flex-direction: column; gap: 0; margin: 24px 0; }
  .mc-progress li { display: grid; grid-template-columns: 32px 1fr; align-items: center; min-height: 64px; gap: 4px 14px; padding-bottom: 18px; }
  .mc-progress li::before { top: 32px; bottom: 0; left: 16px; height: auto; width: 1px; }
  .mc-progress__number { grid-row: span 2; }
  .mc-progress li small { grid-column: 2; }
}

.mc-signin-note { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 8px 0 0; }
.mc-dashboard .mission-work-panel form > .button { margin-top: 16px; }

/* Actionable local onboarding: retain the Botique palette, compact the hierarchy. */
.mc-dashboard .mission-page-header { margin-bottom: 20px; }
.mc-dashboard .mission-boundary { padding: 8px 12px; margin-bottom: 20px; }
.mc-dashboard .mission-boundary strong { display: inline; margin-right: 8px; }
.mc-dashboard .mission-boundary p { display: inline; font-size: 12px; }
.mc-summary { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.mc-summary-card { padding: 14px 16px; gap: 10px; border-top-width: 2px; }
.mc-summary-card strong { font-size: 30px; }
.mc-summary-card__label { font-size: 12px; line-height: 1.4; }
.mc-summary-card--attention { border-top-color: #986015; }
.mc-worklist__heading { padding: 20px 24px 12px; }
.mc-worklist__heading h2 { margin: 0; font-size: 22px; }
.mc-filters { padding-bottom: 18px; }
.mc-customer-row { padding-top: 18px; padding-bottom: 18px; gap: 16px; }
.mc-customer-name p, .mc-customer-status small, .mc-preparer small { font-size: 12px; line-height: 1.5; color: #566174; }
.mc-preparer { display: grid; gap: 4px; font-size: 13px; overflow-wrap: anywhere; }
.mc-preparer small { font-weight: 600; }
.mc-customer-status p { margin: 0; font-size: 13px; line-height: 1.5; color: #39465a; }
.mc-row-actions { display: grid; justify-items: start; gap: 6px; }
.mc-row-actions .mc-row-action { min-height: 36px; font-size: 13px; }
.mc-stage { font-size: 12px; }
.mc-next-action { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 24px; background: #edf4ff; border-left: 3px solid var(--blue); max-width: 1240px; margin-bottom: 20px; }
.mc-next-action h2 { font-size: 18px; line-height: 1.5; margin: 0; }
.mc-next-action .eyebrow { margin: 0 0 6px; }
.mc-next-action .button { flex-shrink: 0; }
.mc-checklist { border: 1px solid var(--line); padding: 24px; background: var(--paper); max-width: 1240px; margin-bottom: 20px; }
.mc-checklist h2, .mc-context h2 { font-size: 21px; margin: 0; }
.mc-checklist ol { padding: 0; margin: 20px 0 0; list-style: none; }
.mc-checklist li { display: grid; grid-template-columns: 30px minmax(0, 1fr) minmax(140px, .4fr); gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); align-items: start; }
.mc-checklist__number { width: 28px; height: 28px; display: grid; place-items: center; background: #edf4ff; color: var(--blue-dark); font-size: 13px; }
.mc-checklist h3 { font-size: 15px; margin: 2px 0 5px; }
.mc-checklist p { font-size: 13px; margin: 0; line-height: 1.5; color: #566174; }
.mc-checklist__action { display: grid; gap: 6px; justify-items: end; text-align: right; font-size: 12px; }
.mc-checklist__verified { color: #22664c; }
.mc-checklist__action a { font-size: 12px; min-height: 30px; }
.mc-context-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1240px; margin-bottom: 20px; }
.mc-context { background: var(--paper); border: 1px solid var(--line); padding: 24px; min-width: 0; }
.mc-context dl { display: grid; grid-template-columns: minmax(100px, .8fr) minmax(0, 1fr); gap: 12px; font-size: 13px; margin: 20px 0; }
.mc-context dt { color: #566174; }
.mc-context dd { margin: 0; overflow-wrap: anywhere; }
.mc-context h3 { font-size: 14px; margin: 24px 0 12px; }
.mc-context p { color: #566174; font-size: 13px; line-height: 1.6; }
.mc-events { list-style: none; padding: 0; margin: 0; }
.mc-events li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.mc-events time { color: #566174; font-size: 12px; text-align: right; }
.mc-context .mc-environment-location { color: var(--blue-dark); font-weight: 600; }
.mc-health-limit { border-top: 1px solid var(--line); padding-top: 12px; }
@media (max-width: 1200px) {
  .mc-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mc-next-action { align-items: start; flex-direction: column; gap: 14px; }
}
@media (max-width: 760px) {
  .mc-context-grid { grid-template-columns: 1fr; }
  .mc-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc-summary-card:last-child { grid-column: 1 / -1; }
  .mc-checklist, .mc-context { padding: 20px 16px; }
  .mc-checklist li { grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
  .mc-checklist__action { grid-column: 2; justify-items: start; text-align: left; }
  .mc-row-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .mc-next-action { padding: 18px 16px; }
  .mc-next-action .button { white-space: normal; text-align: center; }
}

.mc-environment-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.mc-service-badge { padding: 6px 10px; background: #fff2dc; color: #744700; font-size: 12px; font-weight: 600; }
.mc-service-badge--online { background: #eaf2ff; color: var(--blue-dark); }
.mc-expert-details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; }
.mc-expert-details summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--blue-dark); }
.mc-expert-details summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.mc-expert-details dd { font-family: ui-monospace, monospace; font-size: 12px; }
.mc-context-grid { align-items: start; }

.mc-maintenance { max-width: 1240px; margin-bottom: 24px; }

/* Mission Control operational inventory and evidence-backed issue queue. */
.mc-issues, .mc-portfolio { max-width: 1240px; border: 1px solid var(--line); background: var(--paper); margin-bottom: 24px; }
.mc-issues__heading, .mc-portfolio__heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 24px; border-bottom: 1px solid var(--line); }
.mc-issues__heading h2, .mc-portfolio__heading h2 { margin: 4px 0 6px; font-size: 24px; letter-spacing: -.025em; }
.mc-issues__heading p, .mc-portfolio__heading p { margin: 0; max-width: 680px; color: #566174; font-size: 13px; line-height: 1.55; }
.mc-issues__heading > strong, .mc-portfolio__heading > strong { color: var(--blue-dark); font-size: 30px; font-weight: 500; line-height: 1; }
.mc-issue { display: grid; grid-template-columns: minmax(190px, .8fr) minmax(220px, 1fr) minmax(230px, 1fr) minmax(110px, .45fr); gap: 24px; align-items: start; padding: 22px 24px; border-top: 1px solid var(--line); }
.mc-issue:first-child { border-top: 0; }
.mc-issue h3, .mc-portfolio-row h3 { margin: 0; color: var(--blue-dark); font-size: 15px; line-height: 1.4; }
.mc-issue p, .mc-portfolio-row p { margin: 5px 0; color: #39465a; font-size: 12px; line-height: 1.55; }
.mc-issue small, .mc-issue time, .mc-portfolio-row small, .mc-portfolio-row time { color: #566174; font-size: 11px; line-height: 1.5; }
.mc-issue__identity { display: flex; gap: 12px; align-items: start; }
.mc-priority { display: inline-block; min-width: 52px; padding: 5px 8px; text-align: center; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.mc-priority--high { background: #fff1dc; color: #7d4a00; }
.mc-priority--medium { background: #edf4ff; color: var(--blue-dark); }
.mc-portfolio-table__head, .mc-portfolio-row { display: grid; grid-template-columns: minmax(230px, 1.25fr) minmax(140px, .65fr) minmax(180px, .8fr) minmax(140px, .6fr); gap: 22px; align-items: start; padding: 18px 24px; }
.mc-portfolio-table__head { background: #f8f8f8; color: #566174; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.mc-portfolio-row { border-top: 1px solid var(--line); }
.mc-portfolio-row:first-of-type { border-top: 0; }
.mc-delivery { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--blue-dark); }
.mc-delivery::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7a8799; }
.mc-delivery--ready::before { background: #25714a; }
.mc-delivery--attention { color: #7d4a00; }
.mc-delivery--attention::before { background: #a36915; }
.mc-portfolio__empty { padding: 32px 24px; }
.mc-portfolio__empty h3 { margin: 0 0 8px; font-size: 18px; }
.mc-portfolio__empty p, .mc-portfolio__freshness { margin: 0; color: #566174; font-size: 12px; line-height: 1.6; }
.mc-portfolio__freshness { padding: 14px 24px; border-top: 1px solid var(--line); }
@media (max-width: 1050px) {
  .mc-issue { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mc-issue .mc-row-action { justify-self: start; }
  .mc-portfolio-table__head { display: none; }
  .mc-portfolio-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .mc-issues__heading, .mc-portfolio__heading { align-items: start; padding: 20px 16px; }
  .mc-issue, .mc-portfolio-row { grid-template-columns: 1fr; gap: 14px; padding: 20px 16px; }
  .mc-portfolio__empty, .mc-portfolio__freshness { padding-left: 16px; padding-right: 16px; }
}
.mc-maintenance-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.mc-recovery-case { margin: 20px 0 24px; padding: 20px; border: 1px solid #e0b465; border-left: 4px solid #b66a00; background: #fff9ef; }
.mc-recovery-case--recovered { border-color: #94c9ad; border-left-color: #17834d; background: #f3fbf7; }
.mc-recovery-case--unresolved { border-color: #e2a4a4; border-left-color: #b42318; background: #fff6f5; }
.mc-recovery-case__heading, .mc-recovery-case__evidence { display: flex; justify-content: space-between; gap: 24px; }
.mc-recovery-case__heading h3 { margin: 3px 0 0; }
.mc-recovery-case__heading > span { align-self: flex-start; padding: 6px 10px; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 750; white-space: nowrap; }
.mc-recovery-case__evidence { margin: 16px 0; padding-top: 16px; border-top: 1px solid rgba(15,47,91,.13); }
.mc-recovery-case__evidence > div { flex: 1; min-width: 0; }
.mc-recovery-case__evidence small { color: #536078; font-weight: 700; }
.mc-recovery-case__evidence p { margin: 4px 0; }
.mc-recovery-case__evidence time, .mc-recovery-case__receipt { color: #687287; font-size: 13px; }
.mc-recovery-case__receipt { margin: 12px 0; }
.mc-maintenance-review { background: #eaf2ff; padding: 20px; margin: 20px 0; border-left: 3px solid var(--blue); }
.mc-backup-list article { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding: 16px 0; }
.mc-backup-list strong { font-size: 14px; }
.mc-maintenance-history { list-style: none; padding: 0; }
.mc-maintenance-history li { border-bottom: 1px solid var(--line); padding: 16px 0; font-size: 14px; }
@media (max-width: 1000px) { .mc-maintenance-grid { grid-template-columns: 1fr; gap: 4px; } }
@media (max-width: 500px) { .mc-backup-list article, .mc-recovery-case__heading, .mc-recovery-case__evidence { align-items: flex-start; flex-direction: column; } }

.daily-navigation { margin: 0 28px 8px; }
.my-automation-card__runs {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 0 12px;
  list-style: none;
}
.my-automation-card__runs li,
.my-automation-card__next { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.my-automation-card__next { margin: 0 0 14px; color: #111318; font-size: 14px; line-height: 1.5; }
.inbox-item__owner { margin: 0; color: #4f5661; font-size: 13px; line-height: 1.5; }
.run-history-toolbar input[type="date"] { min-height: 40px; border: 1px solid var(--line-dark); background: #fff; padding: 0 10px; }
.dialog:focus,
.execution-drawer:focus { outline: 3px solid var(--blue); outline-offset: 3px; }

@media (max-width: 720px) {
  .daily-navigation { margin: 12px 16px 8px; flex-wrap: wrap; overflow: visible; }
  .daily-navigation button { flex: 1 1 46%; min-width: 0; min-height: 44px; }
  .operator-home__header,
  .operator-home__actions,
  .my-automation-card__heading,
  .my-automation-card__actions,
  .schedule-card__heading,
  .schedule-card__actions,
  .inbox-item__heading,
  .run-history-card__heading,
  .run-history-card__actions,
  .dialog-actions { flex-direction: column; align-items: stretch; }
  .toolbar,
  .run-history-toolbar,
  .schedule-facts,
  .run-history-card__facts,
  .my-automation-card__outcomes { display: grid; grid-template-columns: 1fr; }
  .run-history-card__facts div,
  .schedule-facts div { border-right: 0; padding: 8px 0; }
  .dialog,
  .execution-drawer { width: min(100%, 560px); max-height: calc(100vh - 24px); }
  .button,
  .text-action,
  .close-button { min-height: 44px; }
}

/* Commercial examples reuse the workspace type, colour and action tokens. */
.commercial-workspace { display: grid; gap: 20px; min-width: 0; padding: 24px; }
.commercial-header, .commercial-card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.commercial-header h1 { font-size: clamp(28px, 3vw, 42px); margin: 4px 0 12px; }
.commercial-card { background: #fff; border: 1px solid #e6e6e6; padding: 24px; min-width: 0; }
.commercial-card h2, .commercial-card h3 { margin-top: 0; }
.commercial-card p { line-height: 1.6; }
.commercial-card input { width: 100%; max-width: 640px; box-sizing: border-box; }
.commercial-terms, .commercial-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 20px 0; }
.commercial-terms dt, .commercial-dates dt { color: #808080; font-size: 14px; margin-bottom: 6px; }
.commercial-terms dd, .commercial-dates dd { margin: 0; overflow-wrap: anywhere; line-height: 1.6; }
.commercial-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.commercial-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 24px; }
.commercial-tabs button { padding: 12px 20px; border: 1px solid #e6e6e6; background: #fff; cursor: pointer; }
.commercial-tabs button[aria-current="page"] { color: #176de6; border-color: #176de6; }
.commercial-confirmation h2:focus { outline: 2px solid #176de6; outline-offset: 4px; }
@media (max-width: 640px) {
  .commercial-workspace { padding: 12px 0; }
  .commercial-header, .commercial-card-heading { flex-direction: column; }
  .commercial-terms, .commercial-dates { grid-template-columns: minmax(0, 1fr); }
  .commercial-card { padding: 20px; }
  .commercial-actions .button, .commercial-header .button { max-width: 100%; white-space: normal; }
}

.commercial-notice { position: static; max-width: 100%; box-sizing: border-box; margin: 0; padding: 16px 20px; border-left: 4px solid var(--blue); background: #fff; overflow-wrap: anywhere; line-height: 1.6; }

.customer-signin-settings .studio-settings-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 24px 0; }
.customer-signin-settings .studio-settings-fields > div { min-width: 0; }
.customer-signin-settings .studio-settings-fields dt { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.customer-signin-settings .studio-settings-fields dd { margin: 0; overflow-wrap: anywhere; }
.customer-signin-settings .studio-signin-plan { min-width: 0; padding: 20px; border: 1px solid var(--line); background: #f8f8f8; margin-top: 24px; }
.customer-signin-settings .studio-settings-check { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 20px 0; }
.customer-signin-settings .studio-settings-check input { width: 20px; height: 20px; flex: 0 0 20px; }
.customer-signin-settings .button { max-width: 100%; white-space: normal; min-height: 44px; }
.customer-signin-settings .field input, .customer-signin-settings .field textarea { width: 100%; min-width: 0; box-sizing: border-box; min-height: 44px; font: inherit; }
@media (max-width: 700px) { .customer-signin-settings .studio-settings-fields { grid-template-columns: minmax(0, 1fr); } .customer-signin-settings .studio-signin-plan { padding: 16px; } }

/* Organization uses native buttons and lists; connectors are decorative only. */
.organization-sections { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.organization-sections button { padding: 10px 20px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); color: var(--ink); font: inherit; cursor: pointer; }
.organization-sections button[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.organization-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; margin-top: 24px; align-items: start; }
.organization-diagram { min-width: 0; background: #f8fbff; border: 1px solid var(--line); padding: 32px 24px; }
.organization-node { display: flex; flex-direction: column; gap: 6px; width: 100%; min-width: 0; min-height: 90px; border: 1px solid var(--line-dark); border-radius: 0; padding: 16px; color: var(--ink); background: #fff; text-align: left; font: inherit; cursor: pointer; overflow-wrap: anywhere; }
.organization-node small { font-size: 12px; color: var(--muted); }
.organization-node strong { font-size: 18px; line-height: 1.4; }
.organization-node__metrics { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.organization-node[aria-pressed="true"] { border: 2px solid var(--blue); padding: 15px; background: #edf4ff; }
.organization-node--company { width: min(100%, 280px); margin: 0 auto; border-top: 3px solid var(--blue); }
.organization-node--company[aria-pressed="true"] { border-top-width: 3px; padding-top: 16px; }
.organization-branches { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 24px 16px; margin: 0; padding: 48px 0 0; list-style: none; }
.organization-branches::before { content: ""; position: absolute; width: 1px; height: 24px; background: var(--line-dark); top: 0; left: 50%; }
.organization-branches li { position: relative; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.organization-branches li::before { content: ""; position: absolute; width: 1px; height: 24px; background: var(--line-dark); top: 0; left: 50%; }
.organization-branches::after { content: ""; position: absolute; left: 50%; top: 24px; height: 24px; width: 1px; background: var(--line-dark); }
.organization-context { min-width: 0; }
.organization-context h3 { overflow-wrap: anywhere; }
.organization-context .department-card__heading h3 { margin: 0; font-size: 18px; }
.organization-context .department-card > .row-actions { margin-block: 20px; }
.organization-automations { margin: 12px 0 0; padding-left: 20px; line-height: 1.6; overflow-wrap: anywhere; }
.organization-automations li + li { margin-top: 8px; }
.organization-context__access { padding: 20px; border: 1px solid var(--line); }
.organization-context__access p, .organization-context > p, .organization-empty { line-height: 1.6; color: var(--muted); }
.organization-create { padding: 20px; border: 1px solid var(--line); margin-top: 20px; }
.organization-retired { margin-top: 20px; }
.organization-retired button { display: block; margin-top: 12px; }
.organization-my-access summary { cursor: pointer; color: var(--blue); font-weight: 600; margin-bottom: 12px; }
.organization-node:focus-visible, .organization-sections button:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 4px; }
.organization-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.organization-toolbar .field { flex: 1; min-width: min(100%, 240px); margin: 0; }
.organization-toolbar input { width: 100%; min-width: 0; }
.organization-view-switch { display: flex; gap: 8px; }
.organization-view-switch button { border: 1px solid var(--line-dark); border-radius: 24px; padding: 10px 20px; background: var(--paper); color: var(--ink); font: inherit; cursor: pointer; }
.organization-view-switch button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.organization-view-switch button:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 4px; }
.organization-results { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.organization-results p { margin: 0; }
.organization-selection-note, .organization-invite-context { border-left: 3px solid var(--blue); background: #f8fbff; padding: 16px 20px; line-height: 1.6; overflow-wrap: anywhere; }
.organization-list-view { min-width: 0; padding: 24px; border: 1px solid var(--line); background: #f8fbff; }
.organization-list-view .organization-node--company { width: 100%; }
.organization-department-list { display: grid; gap: 12px; padding: 0; margin: 20px 0 0; list-style: none; }
.organization-department-list .organization-node { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: 16px; }
.organization-department-list .organization-node > small { grid-column: 1 / -1; }
.organization-department-list .organization-node strong { font-size: 16px; }
@media (max-width: 1100px) { .organization-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) {
  .organization-diagram, .organization-create { padding: 20px 16px; }
  .organization-list-view { padding: 20px 16px; }
  .organization-department-list .organization-node { display: flex; align-items: start; }
  .department-panel .section-heading { flex-wrap: wrap; }
  .organization-sections button { padding: 10px 16px; }
}
.organization-branches::before { height: 48px; }
.organization-branches::after { left: 0; top: 48px; height: 1px; width: 100%; }
.organization-branches li { border-top: 0; }
.organization-context .department-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.organization-context .department-form .field:last-of-type { grid-column: 1 / -1; }
.organization-context .automation-binding { grid-template-columns: minmax(0, 1fr); }
.organization-context .field, .organization-context input, .organization-context select { min-width: 0; width: 100%; }
@media (max-width: 620px) { .organization-context .department-form { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) {
  .organization-branches { grid-template-columns: minmax(0, 1fr); padding: 24px 0 0 20px; gap: 16px; }
  .organization-branches::before { left: 0; height: 100%; }
  .organization-branches::after { left: 0; top: 0; width: 50%; }
  .organization-branches li { padding-top: 0; }
  .organization-branches li::before { left: -20px; top: 50%; width: 20px; height: 1px; }
}

.request-destinations { display: flex; flex-wrap: wrap; gap: 12px; }
.request-destinations [aria-current="page"] { background: var(--blue); color: white; }
.request-evaluation { display: grid; gap: 20px; }
.request-evaluation-layout { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr); align-items: start; gap: 24px; }
.request-evaluation-list { display: grid; gap: 8px; list-style: none; margin: 0 0 16px; padding: 0; }
.request-evaluation-choice { width: 100%; display: grid; gap: 8px; padding: 16px; text-align: left; border: 1px solid var(--line); border-radius: 0; background: var(--paper); color: var(--ink); font: inherit; overflow-wrap: anywhere; }
.request-evaluation-choice[aria-current="true"] { border: 2px solid var(--blue); }
.request-evaluation-choice small, .request-evaluation-choice span { font-size: 13px; }
.request-evaluation-detail { min-width: 0; overflow-wrap: anywhere; }
.request-evaluation-section { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.request-evaluation-section textarea, .request-evaluation-section select { width: 100%; min-width: 0; }
.request-evaluation-detail .request-note { margin-top: 20px; }
.request-origin { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .request-evaluation-layout { grid-template-columns: minmax(0, 1fr); } }

/* Existing Botique brand tokens and installed fallback fonts; no new asset. */
.projects-workspace { display: grid; gap: 20px; min-width: 0; padding: 24px; }
.projects-header, .projects-card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.projects-header h1 { margin: 4px 0 12px; font-size: clamp(28px, 3vw, 42px); }
.projects-header p { line-height: 1.6; }
.projects-card { min-width: 0; border: 1px solid #e6e6e6; background: #fff; padding: 24px; }
.projects-card h2, .projects-card h3 { margin-top: 0; }
.projects-card p, .projects-detail p, .projects-card dd { overflow-wrap: anywhere; line-height: 1.6; }
.projects-toolbar, .projects-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 16px; }
.projects-toolbar .field { margin: 0; }
.projects-portfolio, .projects-detail, .projects-editor, .projects-snapshot { display: grid; gap: 20px; min-width: 0; }
.projects-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 20px 0; }
.projects-facts dt { color: #555; font-size: 14px; margin-bottom: 6px; }
.projects-facts dd { margin: 0; overflow-wrap: anywhere; }
.projects-baseline { padding: 12px 16px; background: #f8f8f8; border-left: 3px solid #176de6; }
.projects-prose { white-space: pre-wrap; }
.projects-actions, .projects-versions { display: flex; flex-wrap: wrap; gap: 12px; }
.projects-versions button { padding: 12px 16px; border: 1px solid #e6e6e6; background: #fff; cursor: pointer; text-align: left; overflow-wrap: anywhere; }
.projects-versions button[aria-current="page"] { color: #176de6; border-color: #176de6; }
.projects-bots { display: grid; gap: 12px; padding-left: 24px; }
.projects-bots h4 { margin: 0 0 4px; }
.projects-bots p { margin: 0; }
.projects-bot-editor { border: 1px solid #e6e6e6; padding: 16px; min-width: 0; display: grid; gap: 16px; }
.projects-bot-editor legend { padding: 0 8px; }
.projects-editor input, .projects-editor select, .projects-editor textarea, .projects-toolbar input, .projects-toolbar select { width: 100%; min-width: 0; box-sizing: border-box; }
.projects-editor textarea { resize: vertical; }
.projects-fingerprint { display: block; overflow-wrap: anywhere; white-space: normal; margin-top: 8px; }
.projects-notice { position: static; max-width: 100%; box-sizing: border-box; margin: 0; padding: 16px 20px; border-left: 4px solid #176de6; background: #fff; overflow-wrap: anywhere; line-height: 1.6; }
.projects-workspace :is(button,input,select,textarea,summary):focus-visible, #project-confirm-title:focus { outline: 2px solid #176de6; outline-offset: 4px; }
@media (max-width: 700px) {
  .projects-workspace { padding: 12px 0; }
  .projects-header, .projects-card-heading { flex-direction: column; }
  .projects-toolbar, .projects-field-grid, .projects-facts { grid-template-columns: minmax(0, 1fr); }
  .projects-card { padding: 16px; }
  .projects-workspace .button, .projects-versions button { max-width: 100%; white-space: normal; }
  .projects-header .button, .projects-actions .button { width: 100%; }
}

.bot-engineering-workspace code,
.bot-engineering-facts dd { overflow-wrap: anywhere; }
.bot-engineering-occurrence { min-width: 0; }
.bot-engineering-occurrence > p { max-width: 76ch; }
.bot-engineering-assignment { display: grid; gap: 16px; margin-block: 24px; max-width: 560px; }
.bot-engineering-workspace .projects-card + .projects-card { margin-top: 20px; }
.bot-engineering-workspace .status { display: inline-block; white-space: normal; }
