:root {
  --navy-950: #061624;
  --navy-900: #0b2236;
  --navy-800: #15324d;
  --blue-700: #1f5ecf;
  --blue-600: #2e6fe5;
  --blue-100: #eaf1ff;
  --teal-700: #08705d;
  --teal-100: #e3f7f2;
  --amber-700: #8a5600;
  --amber-100: #fff3d8;
  --red-700: #a62e38;
  --red-100: #fdebed;
  --ink: #172636;
  --muted: #647487;
  --line: #dfe7ef;
  --surface: #ffffff;
  --surface-soft: #f4f7fa;
  --shadow: 0 18px 48px rgba(8, 32, 52, 0.1);
  --text-body: 15px;
  --text-support: 14px;
  --text-meta: 12px;
}

/* Required-only Level 1 proof path */
.proof-center {
  display: grid;
  gap: 20px;
}

.proof-hero {
  padding: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 5%, rgba(116, 201, 255, 0.24), transparent 34%),
    linear-gradient(135deg, var(--navy-900), #103a5d);
  box-shadow: var(--shadow);
}

.proof-hero span,
.proof-card header span,
.proof-results header span,
.proof-blockers span {
  font-size: var(--text-meta);
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.proof-hero h2 {
  margin: 6px 0 8px;
  max-width: 760px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.08;
}

.proof-hero p {
  max-width: 760px;
  margin: 0;
  color: #c9dceb;
}

.proof-hero-actions {
  min-width: 205px;
  display: grid;
  justify-items: end;
  gap: 14px;
}

.proof-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.proof-steps button {
  min-height: 64px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: var(--surface);
  text-align: left;
  font-size: var(--text-support);
  font-weight: 800;
}

.proof-steps button b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--blue-700);
  background: var(--blue-100);
}

.proof-steps button.complete {
  color: var(--teal-700);
  border-color: #b5e2d8;
  background: #f4fbf9;
}

.proof-steps button.complete b {
  color: #fff;
  background: var(--teal-700);
}

.proof-blockers {
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(160px, 0.55fr) minmax(260px, 1.45fr) auto;
  align-items: center;
  gap: 20px;
  border: 1px solid #f2c4c8;
  border-radius: 17px;
  background: var(--red-100);
}

.proof-blockers h3 {
  margin: 4px 0 0;
}

.proof-blockers ol {
  margin: 0;
  padding-left: 20px;
}

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

.proof-card {
  min-width: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(8, 32, 52, 0.06);
}

.proof-card header,
.outside-operation-list article header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.proof-card h3,
.outside-operation-list h3 {
  margin: 4px 0 0;
  font-size: 18px;
}

.proof-card dl {
  margin: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.proof-card dl div {
  padding: 9px 0;
  display: grid;
  grid-template-columns: minmax(105px, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.proof-card dt {
  color: var(--muted);
  font-size: var(--text-meta);
  font-weight: 700;
}

.proof-card dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: var(--text-support);
  font-weight: 800;
}

.proof-card p,
.proof-card li {
  font-size: var(--text-support);
}

.proof-card ul {
  margin: 0;
  padding-left: 19px;
  display: grid;
  gap: 10px;
}

.proof-actions {
  margin-top: auto;
  display: grid;
  gap: 9px;
}

.proof-actions .button,
.proof-card > .button {
  width: 100%;
  justify-content: center;
  text-decoration: none;
}

.proof-source {
  margin-top: auto;
  color: var(--blue-700);
  font-size: var(--text-meta);
  font-weight: 800;
}

.snapshot-fingerprint {
  padding: 10px;
  border-radius: 9px;
  color: var(--muted);
  background: var(--surface-soft);
  overflow-wrap: anywhere;
}

.proof-results {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.proof-results > header {
  padding: 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.proof-results h2 {
  margin: 4px 0;
}

.proof-results p {
  margin: 0;
  color: var(--muted);
}

.proof-result-list {
  display: grid;
}

.proof-result-list > button {
  width: 100%;
  min-height: 66px;
  padding: 10px 18px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 13px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.proof-result-list > button:last-child {
  border-bottom: 0;
}

.proof-result-list > button:hover {
  background: var(--surface-soft);
}

.proof-result-list > button > span:first-child {
  color: var(--muted);
  font-size: var(--text-meta);
  font-weight: 900;
}

.proof-result-list strong,
.proof-result-list small {
  display: block;
}

.proof-result-list small {
  margin-top: 3px;
  color: var(--muted);
}

.proof-details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.proof-details > summary {
  padding: 17px 20px;
  cursor: pointer;
  font-weight: 850;
}

.proof-details > p,
.proof-details > ul,
.proof-details > a,
.proof-details > .proof-artifact-list,
.proof-details > .outside-operation-list,
.proof-details > .drawer-empty {
  margin: 0 20px 20px;
}

.proof-details > p {
  color: var(--muted);
}

.proof-artifact-list {
  display: grid;
  gap: 8px;
}

.proof-artifact-list article {
  padding: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
}

.proof-artifact-list strong,
.proof-artifact-list small {
  display: block;
}

.proof-artifact-list small {
  color: var(--muted);
}

.proof-artifact-list a,
.outside-operation-list a {
  flex: 0 0 auto;
  color: var(--blue-700);
  font-size: var(--text-meta);
  font-weight: 800;
}

.proof-objective-list {
  margin: 0 20px 20px;
  display: grid;
  gap: 12px;
}

.proof-objective-list > section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.proof-objective-list > section > header {
  padding: 11px 13px;
  background: var(--surface-soft);
}

.proof-objective-list article {
  padding: 11px 13px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  border-top: 1px solid var(--line);
}

.proof-objective-list article > div:first-child span,
.proof-objective-list article > div:first-child strong,
.proof-objective-list article > div:last-child small {
  display: block;
}

.proof-objective-list article > div:first-child span,
.proof-objective-list article > div:last-child small {
  color: var(--muted);
  font-size: var(--text-meta);
}

.proof-objective-list article p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--text-support);
}

.proof-objective-list article > div:last-child {
  min-width: 150px;
  display: grid;
  justify-items: end;
  gap: 5px;
  text-align: right;
}

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

.outside-operation-list article,
.outside-operation {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}

.outside-operation-list article p {
  margin: 9px 0;
  font-size: var(--text-support);
}

.outside-operation {
  display: grid;
  gap: 13px;
  border-left: 4px solid var(--amber-700);
}

.outside-operation > div > span {
  display: block;
  color: var(--muted);
  font-size: var(--text-meta);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.outside-operation p,
.outside-operation ul {
  margin: 4px 0 0;
}

.outside-operation a {
  color: var(--blue-700);
  font-size: var(--text-meta);
  font-weight: 800;
}

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

.proof-lock-summary span {
  padding: 12px 8px;
  border-radius: 10px;
  background: var(--surface-soft);
  text-align: center;
  font-size: var(--text-meta);
}

.proof-lock-summary b {
  display: block;
  font-size: 18px;
}

.checkbox-row {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-row input,
.evidence-objective-picker input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.evidence-objective-picker {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
}

.evidence-objective-picker summary {
  cursor: pointer;
  font-weight: 850;
}

.evidence-objective-picker > p {
  color: var(--muted);
  font-size: var(--text-support);
}

.evidence-objective-picker fieldset {
  margin: 10px 0 0;
  padding: 12px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.evidence-objective-picker legend {
  padding: 0 6px;
  font-size: var(--text-meta);
  font-weight: 850;
}

.evidence-objective-picker fieldset label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  font-size: var(--text-meta);
  font-weight: 600;
}

@media (max-width: 1100px) {
  .proof-card-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 700px) {
  .proof-hero,
  .proof-results > header,
  .proof-artifact-list article {
    flex-direction: column;
  }

  .proof-hero-actions {
    min-width: 0;
    justify-items: start;
  }

  .proof-official > header {
    flex-direction: column;
  }

  .proof-steps,
  .outside-operation-list,
  .proof-lock-summary {
    grid-template-columns: 1fr;
  }

  .proof-result-list > button {
    grid-template-columns: 30px minmax(0, 1fr) auto;
  }

  .proof-result-list > button > b:last-child {
    display: none;
  }

  .proof-objective-list article {
    grid-template-columns: 1fr;
  }

  .proof-objective-list article > div:last-child {
    min-width: 0;
    justify-items: start;
    text-align: left;
  }
}

@media print {
  .sidebar,
  .topbar,
  .persistent-preview,
  .proof-hero-actions,
  .proof-steps,
  .proof-blockers button,
  .proof-results button,
  .proof-actions,
  .proof-outside-summary,
  .proof-instructional,
  .toast {
    display: none !important;
  }

  .app-shell,
  .main {
    display: block;
  }

  .content {
    max-width: none;
    padding: 0;
  }

  .proof-center {
    color: #000;
  }

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

  .proof-hero {
    color: #000;
    border: 1px solid #999;
    background: #fff;
    box-shadow: none;
  }

  .proof-hero p {
    color: #333;
  }

  .proof-card,
  .proof-results,
  .proof-details {
    break-inside: avoid;
    box-shadow: none;
  }

  .proof-details:not(.proof-instructional) > :not(summary) {
    display: block !important;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--surface-soft);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 11px 15px;
  border: 2px solid #fff;
  border-radius: 9px;
  color: #fff;
  background: var(--navy-950);
  font-size: var(--text-support);
  font-weight: 850;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 140ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #f2a93b;
  outline-offset: 3px;
}

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

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: 252px;
  padding: 22px 16px 18px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: #fff;
  background:
    radial-gradient(circle at 18% 3%, rgba(76, 145, 250, 0.26), transparent 28%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  box-shadow: 10px 0 40px rgba(3, 18, 30, 0.09);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 7px 19px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #09223a;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(145deg, #89c8ff, #b8f1e1);
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 14px;
  letter-spacing: 0.01em;
}

.brand span {
  margin-top: 2px;
  color: #aec3d5;
  font-size: 10px;
}

.environment-chip {
  margin: 0 7px 18px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #c7d8e6;
  background: rgba(255, 255, 255, 0.055);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.environment-chip span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64d8ae;
  box-shadow: 0 0 0 3px rgba(100, 216, 174, 0.12);
}

.sidebar nav {
  display: grid;
  gap: 4px;
}

.nav-entry {
  min-width: 0;
}

.sidebar nav button {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 11px;
  color: #c7d6e4;
  background: transparent;
  text-align: left;
  font-size: 12px;
  font-weight: 650;
  transition: 150ms ease;
}

.sidebar nav button:hover,
.sidebar nav button.active {
  color: #fff;
  background: rgba(117, 171, 255, 0.14);
}

.sidebar nav button.active {
  box-shadow: inset 3px 0 0 #79b6ff;
}

.sidebar nav button.start-nav {
  min-height: 56px;
  border: 1px solid rgba(134, 197, 255, 0.28);
  color: #fff;
  background: rgba(76, 145, 250, 0.18);
}

.sidebar nav button.start-nav:hover,
.sidebar nav button.start-nav.active {
  background: rgba(76, 145, 250, 0.3);
}

.nav-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.nav-copy strong {
  min-width: 0;
  font-size: inherit;
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.nav-copy small {
  min-width: 0;
  color: #91aabd;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.start-nav .nav-copy small {
  color: #b9d8f0;
}

.nav-section-label {
  margin: 11px 9px 4px;
  display: block;
  color: #7f9ab0;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.more-nav {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.more-nav summary {
  min-height: 52px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  cursor: pointer;
  color: #9fb5c7;
  list-style: none;
}

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

.more-nav summary::before {
  content: "+";
  color: #79b6ff;
  font-size: 15px;
  font-weight: 800;
}

.more-nav summary > span,
.more-nav summary > small {
  grid-column: 2;
}

.more-nav summary > span {
  font-size: 10px;
  font-weight: 800;
}

.more-nav summary > small {
  color: #819db2;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.35;
}

.more-nav[open] summary {
  color: #fff;
}

.more-nav[open] summary::before {
  content: "−";
}

.more-nav button {
  min-height: 54px;
}

.nav-symbol {
  width: 27px;
  height: 25px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 7px;
  color: #9fc5ef;
  background: rgba(255, 255, 255, 0.065);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.boundary-card {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 13px;
  color: #bcd0df;
  background: rgba(255, 255, 255, 0.05);
}

.boundary-card strong {
  color: #fff;
  font-size: 11px;
}

.boundary-card p {
  margin: 7px 0 0;
  font-size: 10px;
  line-height: 1.55;
}

.main {
  grid-column: 2;
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 76px;
  padding: 12px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

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

.topbar h1 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.025em;
}

.topbar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.role-picker {
  min-width: 180px;
  padding: 6px 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.role-picker span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.role-picker select {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.lane-picker {
  min-width: 132px;
}

.user-chip {
  padding: 5px 9px 5px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.avatar {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--navy-800);
  font-size: 10px;
  font-weight: 900;
}

.user-chip strong,
.user-chip small {
  display: block;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip strong {
  font-size: 10px;
}

.user-chip small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.signout-form {
  margin: 0;
}

.signout-form button {
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  background: #fff;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.signout-form button:hover {
  color: var(--navy-900);
  border-color: #b7c9d6;
  background: #f7fbff;
}

.persistent-preview {
  position: sticky;
  top: 76px;
  z-index: 25;
  min-height: 44px;
  padding: 8px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #c7daf0;
  color: #274c70;
  background: #eef6ff;
  font-size: 12px;
  line-height: 1.4;
}

.persistent-preview .text-button {
  flex: 0 0 auto;
}

.content {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 24px 28px 50px;
}

.current-notice {
  margin-bottom: 16px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid #b9e1d5;
  border-radius: 12px;
  color: #165d4b;
  background: #edfaf6;
  font-size: 10px;
}

.current-notice span {
  padding: 4px 7px;
  border-radius: 6px;
  color: #fff;
  background: var(--teal-700);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.current-notice p {
  margin: 0;
  flex: 1;
  font-weight: 650;
}

.current-notice a,
.source-link {
  color: var(--blue-700);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.role-hero {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 30px;
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(380px, 1.2fr);
  gap: 28px;
  align-items: center;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 15% 20%, rgba(96, 172, 255, 0.2), transparent 34%),
    linear-gradient(130deg, var(--navy-900), var(--navy-950));
  box-shadow: var(--shadow);
}

.role-hero::after {
  content: "";
  position: absolute;
  inset: auto -60px -110px auto;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(255, 255, 255, 0.025), 0 0 0 90px rgba(255, 255, 255, 0.018);
}

.role-identity {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
}

.role-identity > span {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.27);
  border-radius: 20px;
  color: #071827;
  background: #8fc9ff;
  font-size: 27px;
  font-weight: 900;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.24);
}

.role-teal .role-identity > span {
  background: #69dbc0;
}

.role-amber .role-identity > span {
  background: #ffc96d;
}

.eyebrow,
.step-kicker {
  color: #9fc9ee;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.role-identity h2 {
  margin: 7px 0 8px;
  max-width: 400px;
  font-size: clamp(20px, 2.2vw, 30px);
  letter-spacing: -0.035em;
}

.role-identity p {
  margin: 0;
  max-width: 390px;
  color: #bcd0df;
  font-size: 12px;
  line-height: 1.6;
}

.next-action-card {
  position: relative;
  z-index: 2;
  min-height: 188px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.085);
  backdrop-filter: blur(8px);
}

.next-action-card h3 {
  margin: 8px 0 7px;
  font-size: 21px;
  letter-spacing: -0.025em;
}

.next-action-card p {
  margin: 0;
  max-width: 570px;
  color: #c8d8e5;
  font-size: 12px;
  line-height: 1.55;
}

.next-meta {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #aec3d5;
  font-size: 9px;
}

.next-buttons {
  display: grid;
  justify-items: stretch;
  gap: 8px;
}

.next-buttons .text-button {
  color: #d7e7f5;
}

.button {
  min-height: 39px;
  padding: 9px 14px;
  border: 0;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
  transition: transform 130ms ease, box-shadow 130ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.button-primary {
  color: #fff;
  background: var(--blue-600);
  box-shadow: 0 8px 20px rgba(46, 111, 229, 0.22);
}

.button-secondary {
  border: 1px solid #cfdae4;
  color: var(--ink);
  background: #fff;
}

.role-hero .button-secondary {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.text-button {
  padding: 5px 0;
  border: 0;
  color: var(--blue-700);
  background: transparent;
  font-size: 10px;
  font-weight: 800;
}

.quick-metrics {
  margin: 17px 0 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.quick-metrics article {
  min-height: 116px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.quick-metrics article > span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.quick-metrics strong {
  margin: 8px 0;
  display: block;
  color: var(--navy-900);
  font-size: 25px;
}

.quick-metrics strong small {
  color: var(--muted);
  font-size: 12px;
}

.quick-metrics article > small {
  color: var(--muted);
  font-size: 9px;
}

.quick-metrics .text-status {
  color: var(--red-700);
  font-size: 18px;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef4;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-600), #55caae);
}

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

.section-heading span,
.panel-heading span,
.source-header > span,
.drawer-section > span,
.drawer-section-title span {
  color: var(--blue-700);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-heading h2,
.panel-heading h2 {
  margin: 4px 0 0;
  font-size: 18px;
  letter-spacing: -0.025em;
}

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

.handoff article {
  position: relative;
  min-height: 154px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.handoff article:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 27px;
  right: -9px;
  z-index: 2;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue-700);
  background: var(--surface-soft);
  font-size: 9px;
  font-weight: 900;
}

.handoff article > span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--blue-700);
  background: var(--blue-100);
  font-size: 9px;
  font-weight: 900;
}

.handoff h3 {
  margin: 13px 0 6px;
  font-size: 13px;
}

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

.handoff small {
  position: absolute;
  bottom: 15px;
  left: 18px;
  color: var(--blue-700);
  font-size: 9px;
  font-weight: 800;
}

.truth-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.truth-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.truth-card > span {
  color: var(--teal-700);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.truth-card h3 {
  margin: 9px 0 7px;
  font-size: 14px;
}

.truth-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.truth-card a {
  color: var(--blue-700);
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
}

.truth-card.caution {
  border-color: #f0d39e;
  background: #fffaf0;
}

.truth-card.caution > span {
  color: var(--amber-700);
}

.plan-intro {
  margin-bottom: 15px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.plan-intro > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.plan-intro h2 {
  margin: 5px 0 0;
  font-size: 18px;
}

.plan-intro > p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.role-dot {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  color: #fff;
  background: var(--blue-600);
  font-size: 13px;
  font-weight: 900;
}

.role-dot.teal {
  background: var(--teal-700);
}

.role-dot.amber {
  color: #4a3200;
  background: #efb650;
}

.stage-list {
  display: grid;
  gap: 11px;
}

.stage-card {
  padding: 20px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1.35fr) minmax(240px, 0.65fr);
  gap: 20px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.stage-card > .decision-help {
  grid-column: 1 / -1;
}

.stage-number {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--blue-700);
  background: var(--blue-100);
  font-size: 14px;
  font-weight: 900;
}

.stage-main > span,
.stage-output > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stage-main h2 {
  margin: 6px 0 14px;
  font-size: 18px;
}

.role-prompt {
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  border-left: 3px solid var(--blue-600);
  border-radius: 0 10px 10px 0;
  background: #f6f9fc;
}

.role-prompt b {
  color: var(--blue-700);
  font-size: 10px;
}

.role-prompt p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}

.stage-output {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.stage-output p {
  margin: 7px 0 13px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
}

.stage-output a {
  color: var(--blue-700);
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
}

.plain-notice {
  margin-bottom: 15px;
  padding: 15px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid #cbdced;
  border-radius: 13px;
  background: #f1f7fd;
}

.plain-notice strong {
  font-size: 11px;
}

.plain-notice p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.plain-notice a {
  flex: 0 0 auto;
  color: var(--blue-700);
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
}

.sprs-finish-line-shortcut {
  align-items: flex-start;
  background: #f4fbf9;
  border-color: #b9ded5;
}

.sprs-finish-line-shortcut > div:first-child {
  max-width: 650px;
}

.sprs-finish-line-shortcut p {
  line-height: 1.55;
}

.sprs-finish-line-actions {
  min-width: 220px;
  display: grid;
  gap: 9px;
}

.sprs-finish-line-actions .button,
.sprs-finish-line-actions a {
  width: 100%;
  text-align: center;
}

.sprs-finish-line-actions a {
  white-space: nowrap;
}

.workflow-explanation {
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid #bfd3e5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(12, 45, 72, 0.07);
}

.workflow-explanation > header {
  padding: 17px 19px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #d7e4ee;
  background: linear-gradient(135deg, #eef6ff, #f7fbfe);
}

.workflow-explanation > header span {
  color: var(--blue-700);
  font-size: var(--text-meta);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.workflow-explanation > header h2 {
  margin: 5px 0 0;
  color: var(--navy-900);
  font-size: 20px;
  letter-spacing: -0.025em;
}

.workflow-explanation > header a {
  flex: 0 0 auto;
  color: var(--blue-700);
  font-size: var(--text-meta);
  font-weight: 850;
  line-height: 1.4;
  text-decoration: none;
}

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

.workflow-explanation-grid article {
  min-height: 126px;
  padding: 17px 19px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-content: start;
  gap: 11px;
  border-bottom: 1px solid #e1e9f0;
}

.workflow-explanation-grid article:nth-child(odd) {
  border-right: 1px solid #e1e9f0;
}

.workflow-explanation-grid article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.workflow-explanation-grid article > b,
.home-action-explanation article > b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--blue-700);
  font-size: var(--text-meta);
}

.workflow-explanation-grid article span,
.home-action-explanation article span {
  display: block;
  color: var(--navy-900);
  font-size: 13px;
  font-weight: 850;
}

.workflow-explanation-grid article p,
.home-action-explanation article p {
  margin: 6px 0 0;
  color: #4b6071;
  font-size: var(--text-support);
  line-height: 1.55;
}

.workflow-explanation-compact {
  margin: 12px 0 16px;
  border-radius: 13px;
  box-shadow: none;
}

.workflow-explanation-compact > header {
  padding: 13px 15px;
}

.workflow-explanation-compact > header h2 {
  font-size: 17px;
}

.workflow-explanation-compact .workflow-explanation-grid article {
  min-height: 0;
  padding: 13px 15px;
}

.workflow-explanation-compact .workflow-explanation-grid article p {
  font-size: 13px;
}

.page-orientation {
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid #bfd3e5;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(12, 45, 72, 0.06);
}

.page-orientation > header {
  padding: 15px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  background: linear-gradient(135deg, #eef6ff, #f8fbfe);
}

.page-orientation > header > div:first-child {
  min-width: 0;
}

.page-orientation > header > div:first-child > span {
  color: var(--blue-700);
  font-size: var(--text-meta);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-orientation > header h2 {
  margin: 4px 0 3px;
  color: var(--navy-900);
  font-size: 17px;
  letter-spacing: -0.02em;
}

.page-orientation > header strong {
  display: block;
  margin: 5px 0;
  color: #244e70;
  font-size: var(--text-support);
}

.page-orientation > header p {
  max-width: 880px;
  margin: 0;
  color: #4b6071;
  font-size: var(--text-support);
  line-height: 1.5;
}

.page-orientation-actions {
  min-width: 190px;
  display: grid;
  justify-items: stretch;
  gap: 8px;
  text-align: right;
}

.page-orientation-actions .button {
  white-space: nowrap;
}

.page-orientation-actions > a {
  color: var(--blue-700);
  font-size: var(--text-meta);
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
}

.page-orientation > details {
  border-top: 1px solid #d7e4ee;
}

.page-orientation > details > summary {
  min-height: 46px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  color: var(--blue-700);
  background: #fbfdff;
}

.page-orientation > details > summary > span {
  color: var(--muted);
  font-size: var(--text-meta);
}

.page-orientation > details > summary > strong {
  font-size: var(--text-support);
}

.page-orientation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #e1e9f0;
}

.page-orientation-grid article {
  min-width: 0;
  padding: 15px 18px;
  border-right: 1px solid #e1e9f0;
}

.page-orientation-grid article:last-child {
  border-right: 0;
}

.page-orientation-grid article span {
  display: block;
  color: var(--navy-900);
  font-size: var(--text-support);
  font-weight: 850;
}

.page-orientation-grid article p {
  margin: 6px 0 0;
  color: #4b6071;
  font-size: var(--text-support);
  line-height: 1.55;
}

.page-orientation > details > .decision-help {
  margin-top: 0;
}

.optional-page-orientation {
  border-color: #b9d5c8;
}

.optional-page-orientation > header {
  background: linear-gradient(135deg, #eef9f5, #f8fbfe);
}

.modal > .workflow-explanation {
  margin: 14px 20px 0;
}

.modal > .decision-help {
  margin: 14px 20px 0;
  border-width: 1px;
  border-radius: 14px;
}

.drawer-body > .workflow-explanation {
  margin: 0 0 15px;
}

.decision-help {
  margin: 16px 19px 19px;
  overflow: hidden;
  border: 1px solid #cddce7;
  border-radius: 14px;
  background: #fbfdff;
}

.decision-help > header {
  padding: 15px 17px;
  border-bottom: 1px solid #dce7ef;
  background: linear-gradient(135deg, #f7fbff, #eef7f4);
}

.decision-help > header span,
.decision-help-compact > summary span,
.decision-example > span,
.decision-help-reason > span,
.decision-help-details section > span,
.decision-help-footer span,
.objective-decision-help > header span,
.objective-decision-example-grid article > span {
  display: block;
  color: var(--blue-700);
  font-size: var(--text-meta);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.065em;
}

.decision-help > header h3 {
  margin: 5px 0 0;
  color: var(--navy-900);
  font-size: 17px;
}

.decision-help-body {
  display: grid;
  gap: 13px;
  padding: 15px 17px 17px;
}

.decision-help-disclaimer {
  margin: 0;
  padding: 9px 11px;
  border-radius: 9px;
  color: #536979;
  background: #edf2f6;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.decision-example-grid,
.objective-decision-example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.decision-example {
  padding: 14px;
  border: 1px solid;
  border-radius: 12px;
}

.decision-example-valid {
  border-color: #b8d9cf;
  background: #eff9f5;
}

.decision-example-insufficient {
  border-color: #edc5bc;
  background: #fff5f1;
}

.decision-example-valid > span {
  color: #15715f;
}

.decision-example-insufficient > span {
  color: #a3432d;
}

.decision-example > b {
  display: block;
  margin-top: 7px;
  color: var(--navy-900);
  font-size: 12px;
}

.decision-example > p {
  margin: 7px 0 0;
  color: #41586a;
  font-size: 12px;
  line-height: 1.55;
}

.decision-help-reason {
  padding: 13px 14px;
  border-left: 4px solid var(--blue-700);
  border-radius: 0 10px 10px 0;
  background: #eef6ff;
}

.decision-help-reason p,
.decision-help-meeting p,
.decision-help-footer p,
.objective-decision-reason p {
  margin: 5px 0 0;
  color: #41586a;
  font-size: 12px;
  line-height: 1.55;
}

.decision-help-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.decision-help-details > section {
  padding: 13px 14px;
  border: 1px solid #dce6ee;
  border-radius: 11px;
  background: #fff;
}

.decision-help-details ul,
.objective-decision-considerations ul {
  margin: 9px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.decision-help-details li,
.objective-decision-considerations li {
  color: #41586a;
  font-size: 11px;
  line-height: 1.5;
}

.decision-help-details dl {
  margin: 9px 0 0;
  display: grid;
  gap: 8px;
}

.decision-help-details dl div {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px;
}

.decision-help-details dt {
  color: var(--navy-900);
  font-size: 11px;
  font-weight: 850;
}

.decision-help-details dd {
  margin: 0;
  color: #41586a;
  font-size: 11px;
  line-height: 1.45;
}

.decision-help-meeting {
  padding: 12px 14px;
  border: 1px dashed #d7b971;
  border-radius: 10px;
  background: #fffaf0;
}

.decision-help-meeting b {
  color: #7e5a0b;
  font-size: 11px;
}

.decision-help-footer {
  padding-top: 13px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid #dce6ee;
}

.decision-help-footer > div {
  min-width: 0;
}

.decision-help-footer a {
  flex: 0 0 auto;
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
}

.decision-help-compact {
  margin: 0;
  border-width: 1px;
  border-radius: 12px;
  background: #f9fcfe;
}

.workflow-explanation > .decision-help-compact {
  border-width: 1px 0 0;
  border-radius: 0;
}

.decision-help-compact > summary {
  padding: 13px 15px;
  display: flex;
  align-items: baseline;
  gap: 11px;
  cursor: pointer;
  list-style: none;
}

.decision-help-compact > summary::-webkit-details-marker {
  display: none;
}

.decision-help-compact > summary::after {
  content: "Open";
  margin-left: auto;
  color: var(--blue-700);
  font-size: 10px;
  font-weight: 850;
}

.decision-help-compact[open] > summary::after {
  content: "Close";
}

.decision-help-compact > summary b {
  color: var(--navy-900);
  font-size: 12px;
}

.decision-help-compact .decision-help-body {
  padding: 0 15px 15px;
}

.objective-decision-help {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #cddce7;
  border-radius: 13px;
  background: #fbfdff;
}

.objective-decision-help > header {
  margin-bottom: 11px;
}

.objective-decision-help > header b {
  display: block;
  margin-top: 4px;
  color: var(--navy-900);
  font-size: 13px;
}

.objective-decision-reason,
.objective-decision-considerations {
  margin-top: 11px;
  padding: 12px 13px;
  border-radius: 10px;
  background: #eef6ff;
}

.objective-decision-reason > b,
.objective-decision-considerations > b {
  color: var(--navy-900);
  font-size: 11px;
}

.home-action-explanation {
  display: grid;
  gap: 9px;
}

.home-action-details {
  overflow: hidden;
  border: 1px solid #d1e0eb;
  border-radius: 11px;
  background: #f9fcfe;
}

.home-action-details > summary {
  min-height: 46px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--blue-700);
  font-size: var(--text-support);
  font-weight: 850;
}

.home-action-details[open] > summary {
  border-bottom: 1px solid #d9e4ed;
}

.home-action-details .home-action-explanation {
  padding: 10px;
}

.home-action-explanation article {
  padding: 14px 15px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-content: start;
  gap: 11px;
  border: 1px solid #d9e4ed;
  border-radius: 11px;
  background: #f9fcfe;
}

.helper-action-status {
  margin: 13px 0 0;
  display: flex;
  justify-content: flex-end;
}

.simple-role-path {
  margin: 16px 0;
  overflow: hidden;
  border: 1px solid #cbdce8;
  border-radius: 16px;
  background: #fff;
}

.simple-role-path > header {
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #dbe5ed;
  background: #f7fafc;
}

.simple-role-path > header > div {
  min-width: 0;
}

.simple-role-path > header span,
.simple-role-path-grid article > span {
  color: var(--blue-700);
  font-size: var(--text-meta);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.simple-role-path > header h2 {
  margin: 4px 0 2px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.simple-role-path > header p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-support);
}

.simple-role-path > header > b {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  color: #445d70;
  background: #e6edf3;
  font-size: var(--text-meta);
}

.simple-role-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.simple-role-path-grid article {
  min-width: 0;
  padding: 16px 18px;
  border-right: 1px solid #e0e8ee;
}

.simple-role-path-grid article:last-child {
  border-right: 0;
}

.simple-role-path-grid article.current {
  background: #eef6ff;
}

.simple-role-path-grid h3 {
  margin: 6px 0 5px;
  color: var(--navy-900);
  font-size: 14px;
  line-height: 1.35;
}

.simple-role-path-grid p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-support);
  line-height: 1.5;
}

.simple-role-path-grid article > div {
  margin-top: 10px;
  display: grid;
  justify-items: start;
  gap: 5px;
}

.simple-role-path-grid .text-button {
  text-align: left;
}

.form-save-readiness {
  margin: 12px 20px 0;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
  border: 1px solid #b9d2e8;
  border-radius: 10px;
  color: #40586b;
  background: #f0f7fd;
}

.form-save-readiness strong {
  color: var(--navy-900);
  font-size: var(--text-support);
}

.form-save-readiness span {
  font-size: var(--text-support);
  line-height: 1.5;
}

.modal-save-status {
  margin-right: auto;
  align-self: center;
  max-width: 48%;
  color: #526575;
  font-size: var(--text-meta);
  font-weight: 750;
  line-height: 1.4;
}

.assessment-dependency-flow {
  margin: 0 0 15px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid #cadbe8;
  border-radius: 14px;
  background: #fff;
}

.assessment-dependency-flow article {
  position: relative;
  min-height: 138px;
  padding: 15px;
  border-right: 1px solid #dce6ee;
}

.assessment-dependency-flow article:last-child {
  border-right: 0;
}

.assessment-dependency-flow article > b {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  margin-bottom: 9px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue-700);
  font-size: var(--text-meta);
}

.assessment-dependency-flow article > span {
  color: var(--navy-900);
  font-size: 13px;
  font-weight: 850;
}

.assessment-dependency-flow article > p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.toolbar {
  margin-bottom: 12px;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) 110px 145px auto;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.toolbar input,
.toolbar select,
.form-grid input,
.form-grid select,
.form-grid textarea,
.modal-form input,
.modal-form select {
  width: 100%;
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid #d5e0e9;
  border-radius: 9px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font-size: 10px;
}

.toolbar input:focus,
.toolbar select:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.modal-form input:focus,
.modal-form select:focus {
  border-color: #78a9ee;
  box-shadow: 0 0 0 3px rgba(70, 127, 223, 0.1);
}

.check-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.check-row {
  width: 100%;
  min-height: 76px;
  padding: 12px 15px;
  display: grid;
  grid-template-columns: 54px minmax(220px, 1fr) 58px 110px 18px;
  gap: 13px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  text-align: left;
}

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

.check-row:hover {
  background: #f8fbfe;
}

.check-id {
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 900;
}

.check-id small,
.check-copy small,
.check-proof small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.check-copy strong {
  font-size: 11px;
}

.check-copy small {
  max-width: 760px;
  line-height: 1.4;
}

.check-proof {
  text-align: center;
}

.check-proof strong {
  font-size: 14px;
}

.row-arrow {
  color: var(--blue-700);
  font-weight: 900;
}

.status {
  width: max-content;
  max-width: 110px;
  padding: 5px 7px;
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  color: #576879;
  background: #edf2f6;
  font-size: 8px;
  font-weight: 850;
  white-space: nowrap;
}

.status-in-progress,
.status-ready-for-review,
.status-ready-for-ann {
  color: #20599f;
  background: var(--blue-100);
}

.status-met,
.status-validated,
.status-done,
.status-na,
.status-passed,
.status-approved {
  color: #126146;
  background: var(--teal-100);
}

.status-blocked,
.status-rejected,
.status-needs-rudy {
  color: var(--red-700);
  background: var(--red-100);
}

.status-collected,
.status-under-review,
.status-open {
  color: var(--amber-700);
  background: var(--amber-100);
}

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

.evidence-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.evidence-top,
.evidence-actions,
.evidence-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.evidence-top > span {
  color: var(--blue-700);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.evidence-card h3 {
  margin: 13px 0 6px;
  font-size: 13px;
}

.evidence-card > p {
  min-height: 29px;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.evidence-meta {
  margin: 16px 0;
  color: var(--muted);
  font-size: 8px;
}

.evidence-actions {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.evidence-actions a,
.evidence-actions button {
  border: 0;
  color: var(--blue-700);
  background: transparent;
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
}

.empty-state {
  min-height: 340px;
  padding: 50px 20px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px dashed #c7d4df;
  border-radius: 18px;
  background: #fff;
  text-align: center;
}

.empty-state > div {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--blue-700);
  background: var(--blue-100);
  font-size: 20px;
  font-weight: 900;
}

.empty-state h2 {
  margin: 16px 0 7px;
  font-size: 18px;
}

.empty-state p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 10px;
}

.source-header {
  margin-bottom: 15px;
  padding: 25px;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-950));
}

.source-header > span {
  color: #8dc4f2;
}

.source-header h2 {
  margin: 7px 0;
  font-size: 23px;
}

.source-header p {
  margin: 0;
  max-width: 820px;
  color: #bdd0df;
  font-size: 11px;
  line-height: 1.55;
}

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

.resource-card {
  min-height: 210px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.resource-card > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--blue-700);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.resource-card > div b {
  padding: 4px 6px;
  border-radius: 5px;
  color: var(--teal-700);
  background: var(--teal-100);
  font-size: 7px;
}

.resource-card h2 {
  margin: 16px 0 8px;
  font-size: 14px;
}

.resource-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.resource-card a {
  margin-top: auto;
  color: var(--blue-700);
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
}

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

.panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.panel-heading {
  margin-bottom: 16px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 15px;
}

.admin-wide {
  grid-column: 1 / -1;
}

.people-list {
  display: grid;
  gap: 10px;
}

.people-list > div {
  padding: 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 11px;
  background: var(--surface-soft);
}

.people-list .role-dot {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 11px;
}

.people-list p {
  margin: 0;
}

.people-list strong,
.people-list small {
  display: block;
  font-size: 10px;
}

.people-list small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.panel-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.short-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  list-style: none;
}

.short-list li {
  position: relative;
  padding-left: 17px;
  color: #495b6c;
  font-size: 10px;
  line-height: 1.45;
}

.short-list li::before {
  content: "•";
  position: absolute;
  left: 3px;
  color: var(--blue-600);
  font-weight: 900;
}

.audit-row {
  padding: 11px 0;
  display: grid;
  grid-template-columns: 110px 180px 1fr;
  gap: 16px;
  border-top: 1px solid var(--line);
  font-size: 9px;
}

.audit-row span,
.audit-row small {
  color: var(--muted);
}

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

.record-summary article {
  min-height: 130px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.record-summary article > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.record-summary strong {
  margin: 10px 0;
  color: var(--navy-900);
  font-size: 28px;
}

.record-summary strong small {
  color: var(--muted);
  font-size: 12px;
}

.record-summary article > small {
  color: var(--muted);
  font-size: 9px;
}

.record-summary button {
  margin-top: auto;
  padding: 0;
  border: 0;
  color: var(--blue-700);
  background: transparent;
  font-size: 9px;
  font-weight: 800;
}

.record-section {
  margin-bottom: 15px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
}

.record-heading {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

details.record-section > .record-heading {
  margin-bottom: 0;
  cursor: pointer;
  list-style: none;
}

details.record-section > .record-heading::-webkit-details-marker {
  display: none;
}

details.record-section > .record-heading::after {
  content: "Open";
  margin-left: auto;
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 800;
}

details.record-section[open] > .record-heading {
  margin-bottom: 16px;
}

details.record-section[open] > .record-heading::after {
  content: "Hide";
}

.record-heading span,
.scope-record-grid span {
  color: var(--blue-700);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.record-heading h2 {
  margin: 5px 0;
  font-size: 19px;
}

.record-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

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

.scope-record-grid article {
  min-height: 95px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
}

.scope-record-grid article:last-child {
  grid-column: 1 / -1;
}

.scope-record-grid p {
  margin: 8px 0 0;
  color: #425465;
  font-size: 10px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.scope-record-grid article > small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
}

.scope-record-grid article > a {
  display: inline-block;
  margin-top: 10px;
  color: var(--blue-700);
  font-size: 8px;
  font-weight: 800;
  text-decoration: none;
}

.record-review-note {
  margin-top: 10px;
  padding: 13px 15px;
  border: 1px solid #efd39f;
  border-radius: 10px;
  background: #fff9ed;
}

.record-review-note strong {
  color: var(--amber-700);
  font-size: 9px;
}

.record-review-note p {
  margin: 5px 0 0;
  color: #66512c;
  font-size: 10px;
}

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

.work-answer-list article {
  min-height: 190px;
  padding: 17px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}

.work-answer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.work-answer-top > span {
  color: var(--blue-700);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.work-answer-list h3 {
  margin: 13px 0 7px;
  font-size: 13px;
}

.work-answer-list article > p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.work-answer-list article > small {
  margin-bottom: 10px;
  color: var(--amber-700);
  font-size: 9px;
}

.work-answer-list article > button {
  margin-top: auto;
  padding: 10px;
  border: 1px solid #cad8e5;
  border-radius: 9px;
  color: var(--blue-700);
  background: #fff;
  font-size: 9px;
  font-weight: 800;
}

.drawer-backdrop,
.modal-backdrop,
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  border: 0;
  background: rgba(3, 14, 24, 0.54);
  backdrop-filter: blur(2px);
}

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 70;
  width: min(680px, 92vw);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  background: var(--surface-soft);
  box-shadow: -25px 0 65px rgba(0, 0, 0, 0.2);
}

.drawer-header {
  grid-row: 1;
  padding: 20px 23px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-950));
}

.drawer-header span {
  color: #9fc9ee;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.drawer-header h2 {
  margin: 5px 0;
  font-size: 21px;
}

.drawer-header p {
  margin: 0;
  color: #bcd0df;
  font-size: 10px;
}

.drawer-header button,
.modal > header button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 19px;
}

.drawer-preview {
  grid-row: 2;
  padding: 9px 17px;
  border-bottom: 1px solid #c7daf0;
  color: #274c70;
  background: #eef6ff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.drawer-body {
  grid-row: 3;
  min-height: 0;
  overflow-y: auto;
  padding: 15px 17px 24px;
}

.drawer-section {
  margin-bottom: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.drawer-section h3 {
  margin: 5px 0 14px;
  font-size: 15px;
}

.safeguard-box {
  border-color: #bdd5f3;
  background: #f5f9ff;
}

.safeguard-box > p {
  margin: 7px 0 14px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.55;
}

.safeguard-box > div {
  display: flex;
  gap: 14px;
}

.safeguard-box a,
.drawer-section-title button {
  border: 0;
  color: var(--blue-700);
  background: transparent;
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
}

.drawer-section-title {
  margin-bottom: 10px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 15px;
}

.drawer-section-title h3 {
  margin-bottom: 0;
}

.linked-evidence {
  margin-top: 7px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--surface-soft);
  font-size: 9px;
  font-weight: 750;
  text-decoration: none;
}

.drawer-empty {
  padding: 13px;
  border: 1px dashed #cbd6df;
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 9px;
  text-align: center;
}

.guide-stepper {
  margin-bottom: 12px;
  padding: 5px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.guide-stepper button {
  min-width: 0;
  padding: 9px 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 9px;
  color: #607284;
  background: transparent;
  font-size: 9px;
  font-weight: 800;
}

.guide-stepper button b {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 1px solid #cbd7e2;
  border-radius: 50%;
  color: #52677a;
  background: #fff;
  font-size: 8px;
}

.guide-stepper .guide-step-active {
  color: var(--blue-700);
  background: #eaf3ff;
}

.guide-stepper .guide-step-active b {
  border-color: var(--blue-700);
  color: #fff;
  background: var(--blue-700);
}

.guide-panel {
  min-height: 380px;
}

.guide-panel > h3 {
  max-width: 54ch;
  margin-top: 8px;
  color: var(--navy-900);
  font-size: 18px;
  line-height: 1.45;
}

.guide-callout,
.guide-role-help,
.guide-done,
.objective-summary {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #dbe5ed;
  border-radius: 11px;
  background: var(--surface-soft);
}

.guide-callout b,
.guide-done b,
.objective-summary b {
  color: var(--navy-900);
  font-size: 10px;
}

.guide-callout p,
.guide-role-help p,
.guide-done p,
.objective-summary p {
  margin: 5px 0 0;
  color: #455c6f;
  font-size: 11px;
  line-height: 1.55;
}

.guide-example {
  border-color: #c9e5da;
  background: #f0faf6;
}

.guide-role-help {
  border-color: #bfd8f2;
  background: #eff6ff;
}

.guide-role-help span,
.final-review > span {
  color: var(--blue-700);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.guide-official,
.objective-official {
  margin-top: 13px;
  padding: 11px 13px;
  border: 1px solid #d8e1e9;
  border-radius: 10px;
  color: #40586c;
  background: #fff;
  font-size: 10px;
}

.guide-official summary,
.objective-official summary {
  color: var(--blue-700);
  font-weight: 800;
  cursor: pointer;
}

.guide-official p,
.objective-official p {
  margin: 9px 0 0;
  font-size: 10px;
  line-height: 1.55;
}

.guide-source-links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.guide-source-links a,
.objective-official a {
  color: var(--blue-700);
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
}

.guide-do-list {
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
  counter-reset: guide-do;
}

.guide-do-list li {
  position: relative;
  min-height: 42px;
  padding: 11px 12px 11px 49px;
  border: 1px solid #dbe4ec;
  border-radius: 11px;
  color: #344c60;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  counter-increment: guide-do;
}

.guide-do-list li::before {
  position: absolute;
  top: 10px;
  left: 11px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--blue-700);
  content: counter(guide-do);
  font-size: 9px;
  font-weight: 900;
}

.guide-evidence-examples {
  margin: 6px 0 16px;
  padding-left: 18px;
  color: #3e566b;
  font-size: 10px;
  line-height: 1.65;
}

.guide-methods span {
  min-height: 83px;
  font-size: 9px;
  line-height: 1.45;
}

.guide-proof-heading {
  margin: 16px 0 4px;
  display: flex;
  justify-content: space-between;
  color: #4b6073;
  font-size: 9px;
}

.guide-proof-heading b {
  color: var(--navy-900);
}

.objective-progress {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.objective-progress > div {
  display: grid;
  gap: 4px;
}

.objective-progress span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
}

.objective-progress b {
  color: var(--blue-700);
  font-size: 10px;
}

.objective-panel .progress-track {
  margin: 10px 0 17px;
}

.objective-panel > h3 {
  margin-bottom: 12px;
  font-size: 19px;
}

.objective-official {
  background: var(--surface-soft);
}

.objective-official a {
  display: inline-block;
  margin-top: 8px;
}

.objective-status-grid {
  margin: 14px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.objective-status-grid button {
  min-height: 46px;
  padding: 8px;
  border: 1px solid #cad7e2;
  border-radius: 9px;
  color: #455a6d;
  background: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.25;
}

.objective-status-grid .objective-supported {
  border-color: #228260;
  color: #0e6d4d;
  background: #eaf8f2;
}

.objective-status-grid .objective-not-supported {
  border-color: #b44c43;
  color: #9c3028;
  background: #fff0ee;
}

.objective-status-grid .objective-not-applicable {
  border-color: #78889a;
  color: #4f6072;
  background: #eef2f5;
}

.objective-note {
  display: grid;
  gap: 7px;
  color: #40566a;
  font-size: 10px;
  font-weight: 800;
}

.objective-note textarea {
  min-height: 92px;
  resize: vertical;
}

.objective-basis-panel {
  margin: 0 0 14px;
  padding: 13px;
  display: grid;
  gap: 12px;
  border: 1px solid #cfdde8;
  border-radius: 11px;
  background: #f8fbfd;
}

.objective-basis-rule,
.objective-basis-warning {
  padding: 10px 11px;
  border-radius: 8px;
  color: #40566a;
  background: #fff;
  font-size: var(--text-support);
  line-height: 1.5;
}

.objective-basis-rule {
  border: 1px solid #d8e4ed;
}

.objective-basis-warning {
  border: 1px solid #e5c3a5;
  color: #7b4a21;
  background: #fff8ef;
}

.objective-safety {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 8px;
}

.objective-nav {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.objective-nav button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.objective-summary {
  border-color: #bfe1d4;
  background: #effaf6;
}

.objective-summary-gap {
  border-color: #efc4bf;
  background: #fff4f2;
}

.final-review {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.final-review .form-grid {
  margin: 12px 0;
}

.final-review > button {
  width: 100%;
}

.method-row {
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.method-row span {
  padding: 9px;
  border-radius: 9px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 8px;
  line-height: 1.35;
}

.method-row b {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 9px;
}

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

.form-grid label,
.modal-form label {
  display: grid;
  gap: 6px;
  color: #46596b;
  font-size: 9px;
  font-weight: 750;
}

.form-grid textarea {
  min-height: 78px;
  resize: vertical;
}

.form-full {
  grid-column: 1 / -1;
}

.drawer-footer {
  grid-row: 4;
  padding: 13px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.drawer-footer > span {
  color: var(--muted);
  font-size: 8px;
}

.drawer-footer > div {
  display: flex;
  gap: 8px;
}

.modal-backdrop {
  z-index: 80;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 90;
  width: min(520px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
  transform: translate(-50%, -50%);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.28);
}

.modal > header {
  padding: 19px 20px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-950));
}

.modal > header span {
  color: #9fc9ee;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.modal > header h2 {
  margin: 5px 0 0;
  font-size: 18px;
}

.modal-warning {
  margin: 15px 20px 0;
  padding: 10px;
  border: 1px solid #efd29d;
  border-radius: 9px;
  color: var(--amber-700);
  background: var(--amber-100);
  font-size: 9px;
  font-weight: 700;
}

.modal-form {
  padding: 16px 20px 20px;
  display: grid;
  gap: 11px;
}

.modal footer {
  padding: 13px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.scope-modal {
  width: min(780px, 94vw);
}

.scope-modal-boundary {
  margin: 10px 20px 0;
  padding: 11px 13px;
  border: 1px solid #c9dced;
  border-radius: 9px;
  color: #405365;
  background: #f4f9fd;
  font-size: 9px;
  line-height: 1.55;
}

.scope-modal-boundary strong {
  color: var(--navy-900);
}

.scope-form,
.task-answer-body {
  padding: 16px 20px 20px;
  display: grid;
  gap: 11px;
}

.scope-form label,
.task-answer-body label {
  display: grid;
  gap: 7px;
}

.scope-form label > span,
.task-answer-body label > span {
  color: #405365;
  font-size: 10px;
  font-weight: 800;
}

.scope-form label > span {
  display: grid;
  grid-template-columns: 25px 1fr;
  align-items: center;
}

.scope-form label > span b {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--blue-700);
  background: var(--blue-100);
  font-size: 9px;
}

.scope-form label > span small {
  grid-column: 2;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
}

.scope-form label > span i {
  grid-column: 2;
  margin-top: 3px;
  color: var(--blue-700);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}

.scope-form label > span small a {
  color: var(--blue-700);
  font-weight: 800;
  text-decoration: none;
}

.scope-form label > span .scope-field-explanation {
  margin-top: 5px;
  padding: 7px 9px;
  border-left: 3px solid #bfd4e8;
  color: #526575;
  background: #f5f9fc;
  font-size: var(--text-meta);
  line-height: 1.45;
}

.scope-form label > span .scope-field-explanation strong {
  color: var(--navy-900);
}

.scope-form textarea,
.task-answer-body textarea {
  width: 100%;
  min-height: 72px;
  padding: 10px 11px;
  resize: vertical;
  border: 1px solid #d2dde7;
  border-radius: 9px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font-size: 10px;
  line-height: 1.5;
}

.scope-form textarea:focus,
.task-answer-body textarea:focus {
  border-color: #78a9ee;
  box-shadow: 0 0 0 3px rgba(70, 127, 223, 0.1);
}

.scope-form textarea[readonly],
.task-answer-body textarea[readonly] {
  color: #536575;
  background: var(--surface-soft);
}

.scope-review-field,
.scope-return-note {
  padding: 13px;
  border: 1px solid #efd39f;
  border-radius: 10px;
  background: #fff9ed;
}

.scope-return-note strong {
  color: var(--amber-700);
  font-size: 9px;
}

.scope-return-note p {
  margin: 5px 0 0;
  color: #66512c;
  font-size: 10px;
}

.task-answer-modal {
  width: min(650px, 94vw);
}

.task-question {
  padding: 14px;
  border: 1px solid #c9dbef;
  border-radius: 11px;
  background: #f3f8fe;
}

.task-question > span {
  color: var(--blue-700);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.task-question h3 {
  margin: 7px 0 5px;
  font-size: 14px;
}

.task-question p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.task-answer-body textarea {
  min-height: 120px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 22px;
  z-index: 100;
  max-width: 440px;
  padding: 12px 15px;
  border-radius: 11px;
  color: #fff;
  background: var(--navy-900);
  box-shadow: var(--shadow);
  font-size: 10px;
  font-weight: 700;
}

.mobile-menu,
.mobile-close,
.nav-backdrop {
  display: none;
}

.access-denied {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
  background: var(--navy-950);
}

.access-denied > div {
  max-width: 520px;
  padding: 35px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
}

.access-denied > div > span {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--navy-950);
  background: #8fc9ff;
  font-weight: 900;
}

.access-denied h1 {
  margin: 18px 0 8px;
}

.access-denied p {
  color: #bcd0df;
  font-size: 12px;
  line-height: 1.55;
}

.access-denied small {
  margin-top: 22px;
  display: block;
  color: #f3c6ca;
  font-size: 11px;
}

.auth-button {
  margin-top: 24px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--navy-950);
  background: #fff;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.auth-button:hover {
  background: #eaf5ff;
}

.owner-maintenance-link {
  display: inline-block;
  margin-top: 16px;
  color: #a9d7ff;
  font-size: 0.8rem;
  font-weight: 750;
  text-decoration: none;
}

.owner-maintenance-link:hover {
  text-decoration: underline;
}

.helper-page {
  width: min(900px, 100%);
  margin: 12px auto 0;
}

.helper-role {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.helper-role > div > span {
  color: var(--blue-700);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.helper-role h2 {
  margin: 4px 0 3px;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.helper-role p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.helper-stepper {
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
}

.helper-stepper li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #8795a4;
  text-align: center;
}

.helper-stepper li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 16px;
  left: calc(50% + 22px);
  right: calc(-50% + 22px);
  height: 2px;
  background: #dce4eb;
}

.helper-stepper li.complete:not(:last-child)::after {
  background: #63bea6;
}

.helper-stepper li > span {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid #d3dde6;
  border-radius: 50%;
  color: #718192;
  background: var(--surface-soft);
  font-size: 11px;
  font-weight: 900;
}

.helper-stepper li.current > span {
  border-color: var(--blue-600);
  color: #fff;
  background: var(--blue-600);
  box-shadow: 0 0 0 5px rgba(46, 111, 229, 0.1);
}

.helper-stepper li.complete > span {
  border-color: var(--teal-700);
  color: #fff;
  background: var(--teal-700);
}

.helper-stepper small {
  max-width: 125px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.3;
}

.helper-stepper li.current small {
  color: var(--ink);
}

.helper-card {
  overflow: hidden;
  border: 1px solid #cedbe7;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(8, 32, 52, 0.11);
}

.helper-card-copy {
  padding: 30px 34px 24px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 5%, rgba(94, 174, 255, 0.22), transparent 34%),
    linear-gradient(135deg, var(--navy-900), var(--navy-950));
}

.helper-card-copy > span {
  color: #91c5f2;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.helper-card-copy h2 {
  margin: 10px 0 8px;
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -0.04em;
}

.helper-card-copy p {
  max-width: 690px;
  margin: 0;
  color: #c3d5e3;
  font-size: 14px;
  line-height: 1.55;
}

.helper-focus {
  padding: 28px 34px;
}

.scope-boundary {
  border: 1px solid #cbdce9;
  border-radius: 15px;
  background: #f7fbfe;
}

.scope-boundary-heading {
  padding: 17px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.scope-boundary-heading > div > span {
  color: var(--blue-700);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.scope-boundary-heading h3 {
  margin: 5px 0 4px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.scope-boundary-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.scope-boundary-heading > a,
.scope-boundary-note a {
  color: var(--blue-700);
  font-size: 8px;
  font-weight: 800;
  text-decoration: none;
}

.scope-boundary-grid {
  padding: 0 17px 17px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.scope-boundary-grid article {
  padding: 13px;
  border: 1px solid #d9e4ec;
  border-radius: 10px;
  background: #fff;
}

.scope-boundary-grid article > span {
  color: var(--teal-700);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.scope-boundary-grid article.tracked > span {
  color: var(--blue-700);
}

.scope-boundary-grid article.excluded > span {
  color: var(--amber-700);
}

.scope-boundary-grid h4 {
  margin: 6px 0 5px;
  font-size: 12px;
}

.scope-boundary-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.scope-boundary-note {
  padding: 11px 17px;
  border-top: 1px solid #d9e4ec;
  color: #566979;
  font-size: 9px;
  line-height: 1.5;
}

.scope-boundary-note strong {
  color: var(--navy-900);
}

.requirement-layer-grid {
  margin: 12px 0 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.requirement-layer-grid article {
  padding: 14px;
  border: 1px solid #d4e0e9;
  border-radius: 11px;
  background: #fbfdff;
}

.requirement-layer-grid article > span {
  display: block;
  color: var(--blue-700);
  font-size: var(--text-meta);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.requirement-layer-grid article > strong {
  margin: 6px 0 5px;
  display: block;
  color: var(--navy-900);
  font-size: 12px;
}

.requirement-layer-grid article > p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-meta);
  line-height: 1.5;
}

.scope-boundary.compact {
  margin-bottom: 14px;
  background: #f4f9fd;
}

.scope-boundary.compact .scope-boundary-heading {
  padding-bottom: 10px;
}

.scope-boundary-lines {
  margin: 0;
  padding: 0 18px 15px 36px;
  color: #526575;
  font-size: 9px;
  line-height: 1.55;
}

.scope-boundary-lines b {
  color: var(--navy-900);
}

.scope-boundary.compact .scope-boundary-note {
  padding: 9px 18px;
}

.scope-catalog {
  overflow: hidden;
  border: 1px solid #cbdce9;
  border-radius: 15px;
  background: #f7fbfe;
}

.scope-catalog.empty {
  padding: 18px;
}

.scope-catalog-toolbar {
  padding: 14px 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #d9e4ec;
  background: #fff;
}

.scope-catalog-toolbar label {
  min-width: min(360px, 100%);
  display: grid;
  gap: 5px;
}

.scope-catalog-toolbar label > span,
.workforce-heading span {
  color: var(--blue-700);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.scope-catalog-toolbar select {
  min-height: 37px;
  padding: 7px 34px 7px 10px;
  border: 1px solid #cfdae4;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 10px;
  font-weight: 750;
}

.scope-catalog-toolbar > div {
  display: flex;
  gap: 7px;
}

.scope-catalog-toolbar .button {
  min-height: 37px;
  padding: 8px 12px;
  white-space: nowrap;
}

.scope-catalog-heading {
  padding: 17px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.scope-catalog-heading h3 {
  margin: 7px 0 5px;
  font-size: 18px;
}

.scope-catalog-heading p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.catalog-decision {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--blue-700);
  background: var(--blue-100);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.catalog-decision.decision-included {
  color: #17654f;
  background: #dff5ed;
}

.catalog-decision.decision-excluded {
  color: #7d5a12;
  background: #fff0ca;
}

.contract-facts {
  min-width: 240px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.contract-facts span {
  padding: 9px;
  display: grid;
  gap: 4px;
  border: 1px solid #d9e4ec;
  border-radius: 8px;
  color: #425465;
  background: #fff;
  font-size: 9px;
}

.contract-facts b {
  color: var(--muted);
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contract-systems {
  margin: 0 17px 13px;
  padding: 11px 13px;
  border: 1px solid #d9e4ec;
  border-radius: 9px;
  background: #fff;
}

.contract-systems strong {
  color: var(--blue-700);
  font-size: 8px;
  text-transform: uppercase;
}

.contract-systems p {
  margin: 5px 0 0;
  color: #4c6071;
  font-size: 9px;
  line-height: 1.5;
}

.contract-requirements {
  margin: 0 17px 17px;
  overflow: hidden;
  border: 1px solid #cbdce9;
  border-radius: 12px;
  background: #fff;
}

.contract-requirements > header {
  padding: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #d9e4ec;
  background: #f8fbfd;
}

.contract-requirements > header span,
.contract-requirement-result span,
.co-confirmation-card span,
.requirement-step-heading span {
  color: var(--blue-700);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.contract-requirements > header h4 {
  margin: 5px 0 3px;
  font-size: 13px;
}

.contract-requirements > header p {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.contract-requirements > header .button {
  min-height: 34px;
  padding: 7px 11px;
  white-space: nowrap;
}

.contract-requirement-result {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid #d9e4ec;
}

.contract-requirement-result > div {
  display: grid;
  gap: 4px;
}

.contract-requirement-result strong {
  color: var(--navy-900);
  font-size: 11px;
}

.contract-requirement-result p {
  margin: 0;
  color: #526777;
  font-size: 8px;
  line-height: 1.45;
}

.contract-requirement-result > b {
  flex: 0 0 auto;
  padding: 6px 8px;
  border-radius: 999px;
  color: #315871;
  background: #e8f2f8;
  font-size: 8px;
}

.contract-requirement-result.result-required {
  border-left: 4px solid #b94b43;
  background: #fff5f4;
}

.contract-requirement-result.result-review {
  border-left: 4px solid #c38a20;
  background: #fff9ed;
}

.contract-requirement-result.result-clear {
  border-left: 4px solid #278367;
  background: #f0faf6;
}

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

.contract-document-list article {
  min-width: 0;
  padding: 12px;
  border: 1px solid #d9e4ec;
  border-radius: 10px;
  background: #fff;
}

.contract-document-list article > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.contract-document-list article > header span {
  color: var(--blue-700);
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.contract-document-list h5 {
  margin: 4px 0 0;
  font-size: 11px;
}

.requirement-outcome {
  max-width: 145px;
  padding: 4px 6px;
  border-radius: 7px;
  color: #77510d;
  background: #fff0ca;
  font-size: 7px;
  line-height: 1.35;
  text-align: right;
}

.requirement-outcome.outcome-explicitly-required {
  color: #8d332e;
  background: #fde2df;
}

.requirement-outcome.outcome-no-express-requirement-found {
  color: #17654f;
  background: #dff5ed;
}

.contract-clause-chips {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.contract-clause-chips a {
  padding: 5px 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #d6e0e8;
  border-radius: 6px;
  color: #536777;
  background: #f8fafc;
  font-size: 7px;
  text-decoration: none;
}

.contract-clause-chips a b {
  color: var(--navy-900);
}

.contract-clause-chips .clause-present,
.contract-clause-chips .clause-carried-forward {
  border-color: #e1bd78;
  color: #72520f;
  background: #fff8e8;
}

.contract-clause-chips .clause-not-found,
.contract-clause-chips .clause-removed {
  border-color: #b9ddcf;
  color: #17654f;
  background: #eff9f5;
}

.contract-document-list article > p {
  margin: 10px 0;
  color: #455b6c;
  font-size: 8px;
  line-height: 1.55;
}

.contract-document-list dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.contract-document-list dl div {
  padding: 7px;
  border-radius: 7px;
  background: #f5f8fa;
}

.contract-document-list dt {
  color: var(--muted);
  font-size: 6px;
  font-weight: 850;
  text-transform: uppercase;
}

.contract-document-list dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 7px;
  font-weight: 750;
}

.contract-document-link,
.contract-document-list article > .text-button {
  margin-top: 9px;
  display: inline-block;
  color: var(--blue-700);
  font-size: 8px;
  font-weight: 800;
  text-decoration: none;
}

.contract-document-list article > .text-button {
  margin-left: 12px;
}

.metadata-warning {
  margin-top: 8px;
  padding: 7px 8px;
  display: block;
  border-radius: 7px;
  color: #765313;
  background: #fff6df;
  font-size: 7px;
  line-height: 1.45;
}

.contract-document-empty {
  grid-column: 1 / -1;
  padding: 16px;
  display: grid;
  gap: 4px;
  border: 1px dashed #c9d6e0;
  border-radius: 9px;
  color: var(--muted);
  font-size: 8px;
}

.contract-document-empty strong {
  color: var(--navy-900);
  font-size: 10px;
}

.co-confirmation-card {
  margin: 0 14px 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #ecd19c;
  border-radius: 10px;
  background: #fff9ed;
}

.co-confirmation-card > div {
  display: grid;
  gap: 5px;
}

.co-confirmation-card strong {
  color: #5f4618;
  font-size: 10px;
}

.co-confirmation-card p {
  margin: 0;
  color: #665737;
  font-size: 8px;
  line-height: 1.5;
}

.co-confirmation-card .button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 10px;
}

.contract-option-sources {
  margin: -3px 14px 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 8px;
}

.contract-option-sources span {
  font-weight: 750;
}

.contract-option-sources a {
  color: var(--blue-700);
  font-weight: 800;
  text-decoration: none;
}

.contract-option-sources a:hover {
  text-decoration: underline;
}

.contract-requirements.compact {
  margin-bottom: 12px;
}

.contract-requirements.compact > header {
  padding: 11px 13px;
}

.contract-requirement-examples {
  border-top: 1px solid #d9e4ec;
  background: #fff;
}

.contract-requirement-examples > summary {
  padding: 12px 17px;
  color: var(--blue-700);
  font-size: 9px;
  font-weight: 850;
  cursor: pointer;
}

.contract-example-grid {
  padding: 0 17px 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.contract-example-grid article {
  padding: 11px;
  border: 1px solid #cfe0ed;
  border-radius: 9px;
  background: #f5f9fc;
}

.contract-example-grid article > span {
  color: #1d745b;
  font-size: 7px;
  font-weight: 850;
  text-transform: uppercase;
}

.contract-example-grid .paused-example {
  border-color: #e7d5ad;
  background: #fffaf0;
}

.contract-example-grid .paused-example > span {
  color: #846019;
}

.contract-example-grid h4 {
  margin: 5px 0;
  font-size: 11px;
}

.contract-example-grid p,
.contract-example-grid small {
  margin: 0;
  display: block;
  color: #4b6072;
  font-size: 8px;
  line-height: 1.5;
}

.contract-example-grid small {
  margin-top: 7px;
  color: var(--muted);
}

.contract-requirement-examples footer {
  padding: 0 17px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contract-requirement-examples footer a {
  color: var(--blue-700);
  font-size: 8px;
  font-weight: 800;
  text-decoration: none;
}

.workforce-heading {
  padding: 12px 17px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #d9e4ec;
}

.workforce-heading > div {
  display: grid;
  gap: 3px;
}

.workforce-heading strong {
  font-size: 10px;
}

.workforce-cards {
  padding: 0 17px 17px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.workforce-cards article {
  min-width: 0;
  padding: 12px;
  border: 1px solid #d9e4ec;
  border-radius: 10px;
  background: #fff;
}

.workforce-cards article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.workforce-cards article > div > span {
  color: var(--blue-700);
  font-size: 8px;
  font-weight: 800;
}

.workforce-cards h4 {
  margin: 8px 0 5px;
  font-size: 12px;
}

.workforce-cards p,
.workforce-cards small {
  margin: 0;
  display: block;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.workforce-cards small {
  margin-top: 6px;
}

.workforce-cards article > button {
  margin-top: 8px;
  padding: 0;
  border: 0;
  color: var(--blue-700);
  background: transparent;
  font-size: 8px;
  font-weight: 800;
}

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

.empty-workforce {
  grid-column: 1 / -1;
  margin: 0;
  padding: 15px;
  border: 1px dashed #cbd8e3;
  border-radius: 9px;
  color: var(--muted);
  font-size: 9px;
}

.scope-catalog-note {
  padding: 10px 17px;
  border-top: 1px solid #d9e4ec;
  color: #566979;
  background: #fff;
  font-size: 9px;
  line-height: 1.5;
}

.scope-catalog-note strong {
  color: var(--navy-900);
}

.scope-catalog-note a {
  color: var(--blue-700);
  font-weight: 800;
  text-decoration: none;
}

.scope-catalog.compact {
  margin-bottom: 14px;
}

.scope-catalog.compact .scope-catalog-heading {
  padding-bottom: 12px;
}

.scope-catalog.compact .scope-catalog-heading p {
  max-width: 440px;
}

.scope-catalog.compact .workforce-cards article:nth-child(n + 3) {
  display: none;
}

.scope-catalog-modal {
  width: min(790px, 94vw);
}

.contract-requirement-modal {
  width: min(900px, 95vw);
}

.contract-requirement-steps {
  min-height: 0;
  overflow-y: auto;
  padding: 16px 20px 22px;
  display: grid;
  gap: 13px;
}

.contract-requirement-steps > section {
  overflow: hidden;
  border: 1px solid #d7e1e9;
  border-radius: 12px;
  background: #fff;
}

.requirement-step-heading {
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #dce5ec;
  background: #f6f9fb;
}

.requirement-step-heading > b {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: #fff;
  background: var(--blue-700);
  font-size: 9px;
}

.requirement-step-heading > div {
  display: grid;
  gap: 2px;
}

.requirement-step-heading strong {
  color: var(--navy-900);
  font-size: 11px;
}

.contract-requirement-steps .catalog-form-grid {
  padding-bottom: 14px;
}

.contract-requirement-steps .catalog-level-warning,
.contract-requirement-steps .catalog-source-note {
  margin-right: 20px;
  margin-left: 20px;
}

.contract-clause-checker {
  padding: 14px 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.contract-clause-checker label {
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 125px;
  align-items: center;
  gap: 7px 10px;
  border: 1px solid #d7e1e9;
  border-radius: 9px;
  background: #fbfcfd;
}

.contract-clause-checker label.primary-clause {
  border: 2px solid #6e9ddd;
  background: #f1f7ff;
}

.contract-clause-checker label > span {
  display: grid;
  gap: 2px;
}

.contract-clause-checker label > span b {
  color: var(--navy-900);
  font-size: 10px;
}

.contract-clause-checker label > span small {
  color: var(--muted);
  font-size: 7px;
}

.contract-clause-checker label > span em {
  color: var(--blue-700);
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
}

.contract-clause-checker select {
  min-height: 35px;
  padding: 7px;
  border: 1px solid #ccd9e3;
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  font-size: 8px;
}

.contract-clause-checker a {
  grid-column: 1 / -1;
  color: var(--blue-700);
  font-size: 7px;
  font-weight: 800;
  text-decoration: none;
}

.catalog-form-grid {
  padding: 16px 20px 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.catalog-form-grid label {
  display: grid;
  align-content: start;
  gap: 6px;
}

.catalog-form-grid label.wide {
  grid-column: 1 / -1;
}

.catalog-form-grid label > span {
  display: grid;
  gap: 2px;
  color: #405365;
  font-size: 9px;
  font-weight: 800;
}

.catalog-form-grid label > span small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
}

.catalog-form-grid input,
.catalog-form-grid select,
.catalog-form-grid textarea {
  width: 100%;
  min-height: 39px;
  padding: 9px 10px;
  border: 1px solid #d2dde7;
  border-radius: 8px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font-size: 10px;
}

.catalog-form-grid textarea {
  min-height: 76px;
  resize: vertical;
  line-height: 1.5;
}

.catalog-form-grid input:focus,
.catalog-form-grid select:focus,
.catalog-form-grid textarea:focus {
  border-color: #78a9ee;
  box-shadow: 0 0 0 3px rgba(70, 127, 223, 0.1);
}

.catalog-level-warning,
.catalog-source-note {
  margin: 0 20px 15px;
  padding: 10px 12px;
  border: 1px solid #efd39f;
  border-radius: 9px;
  color: #66512c;
  background: #fff9ed;
  font-size: 9px;
  line-height: 1.5;
}

.catalog-source-note {
  border-color: #c9dced;
  color: #405365;
  background: #f4f9fd;
}

.catalog-level-warning a,
.catalog-source-note a {
  color: var(--blue-700);
  font-weight: 800;
  text-decoration: none;
}

.helper-item {
  padding: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-soft);
}

.helper-item > div {
  min-width: 0;
  flex: 1;
}

.helper-item span,
.helper-result > span {
  color: var(--blue-700);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.helper-item h3,
.helper-result h3 {
  margin: 7px 0 6px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.helper-item p,
.helper-result p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.helper-rudy-action {
  background: #fffaf0;
  border-color: #efd49f;
}

.helper-checklist {
  margin: 15px 0;
  padding: 0;
  display: grid;
  gap: 9px;
  list-style: none;
}

.helper-checklist li {
  position: relative;
  padding: 10px 12px 10px 34px;
  border: 1px solid #eadfca;
  border-radius: 10px;
  color: #46596b;
  background: #fff;
  font-size: 11px;
  line-height: 1.45;
}

.helper-checklist li::before {
  content: "✓";
  position: absolute;
  top: 9px;
  left: 11px;
  color: var(--teal-700);
  font-weight: 900;
}

.helper-checklist b {
  color: var(--ink);
}

.helper-count .progress-track {
  width: min(500px, 100%);
  margin-top: 14px;
}

.helper-primary {
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  font-size: 12px;
}

.helper-actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.helper-actions .button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  text-decoration: none;
}

.helper-result {
  padding: 22px;
  border: 1px solid #efcf95;
  border-radius: 15px;
  background: #fff9ed;
}

.helper-result > span {
  color: var(--amber-700);
}

.helper-result.ready {
  border-color: #a8dccc;
  background: #effaf6;
}

.helper-result.ready > span {
  color: var(--teal-700);
}

.helper-footer {
  padding: 17px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.helper-footer strong {
  color: var(--ink);
}

.helper-footer a {
  margin-left: 10px;
  color: var(--blue-700);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.helper-footer .text-button {
  flex: 0 0 auto;
}

.helper-safety {
  margin-top: 14px;
  padding: 12px 15px;
  display: flex;
  justify-content: center;
  gap: 8px;
  border-radius: 11px;
  color: var(--muted);
  background: #eaf0f5;
  font-size: 10px;
  text-align: center;
}

.helper-safety strong {
  color: var(--red-700);
}

.helper-learning-link,
.helper-training-link,
.meeting-review-link {
  width: 100%;
  margin-top: 14px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 12px;
  border: 1px solid #bfd6e7;
  border-radius: 12px;
  color: var(--ink);
  background: #f4faff;
  text-align: left;
}

.helper-training-link {
  border-color: #c9d6ee;
  background: #f7f8ff;
}

.source-currentness {
  display: block;
  min-height: 44px;
}

.source-currentness summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.source-currentness p {
  margin: 12px 0 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.source-currentness a {
  color: var(--blue-700);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.meeting-review-link {
  border-color: #b9ddd3;
  background: #f0faf7;
}

.helper-learning-link span,
.helper-training-link span,
.meeting-review-link span {
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--blue-700);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.helper-training-link span {
  color: #5c4fb0;
}

.meeting-review-link span {
  color: var(--teal-700);
}

.helper-learning-link strong,
.helper-training-link strong,
.meeting-review-link strong {
  font-size: 12px;
}

.helper-learning-link small,
.helper-training-link small,
.meeting-review-link small {
  color: var(--muted);
  font-size: 8px;
}

.meeting-starter-preview h3 {
  line-height: 1.45;
}

.discovery-page {
  width: 100%;
  margin: 4px auto 0;
}

.discovery-intro {
  margin-bottom: 13px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.discovery-intro > div:first-child {
  display: flex;
  align-items: center;
  gap: 13px;
}

.discovery-intro > div:first-child > div > span,
.discovery-card > header span,
.discovery-source span,
.discovery-rudy-entry > span,
.discovery-review-prompt > span,
.discovery-resolution > span,
.discovery-editor label > span {
  color: var(--blue-700);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.discovery-intro h2 {
  margin: 5px 0 4px;
  font-size: 19px;
  letter-spacing: -0.025em;
}

.discovery-intro p {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.discovery-progress {
  width: 150px;
  flex: 0 0 auto;
  text-align: right;
}

.discovery-progress strong {
  display: block;
  color: var(--navy-900);
  font-size: 22px;
}

.discovery-progress strong small {
  color: var(--muted);
  font-size: 11px;
}

.discovery-progress > span {
  margin: 2px 0 8px;
  display: block;
  color: var(--muted);
  font-size: 8px;
}

.discovery-role-map {
  margin-bottom: 13px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.discovery-role-map article {
  padding: 14px 15px;
  border: 1px solid #d4e0e9;
  border-radius: 12px;
  background: #fff;
}

.discovery-role-map span {
  display: block;
  color: var(--blue-700);
  font-size: var(--text-meta);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.discovery-role-map strong {
  margin: 6px 0 5px;
  display: block;
  color: var(--navy-900);
  font-size: 12px;
}

.discovery-role-map p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-meta);
  line-height: 1.5;
}

.discovery-source-strip {
  margin-bottom: 13px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #cfe0ed;
  border-radius: 11px;
  background: #f4f8fb;
  color: var(--muted);
  font-size: 8px;
}

.discovery-source-strip > span {
  color: var(--blue-700);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.discovery-source-strip b {
  padding: 4px 7px;
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
}

.discovery-source-strip small {
  margin-left: auto;
  max-width: 300px;
  line-height: 1.4;
  text-align: right;
}

.meeting-source-audit,
.transcript-exclusion-ledger {
  margin-bottom: 13px;
  overflow: hidden;
  border: 1px solid #cfdde8;
  border-radius: 13px;
  background: #fff;
}

.meeting-source-audit > header,
.transcript-exclusion-ledger > summary {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #f8fbfd;
}

.meeting-source-audit > header span,
.transcript-exclusion-ledger > summary span,
.meeting-source-audit article > span,
.transcript-exclusion-ledger article > span {
  display: block;
  color: var(--blue-700);
  font-size: var(--text-meta);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.meeting-source-audit > header strong,
.transcript-exclusion-ledger > summary strong {
  margin-top: 3px;
  display: block;
  color: var(--navy-900);
  font-size: 13px;
}

.meeting-source-audit > header small,
.transcript-exclusion-ledger > summary small {
  color: var(--muted);
  font-size: var(--text-meta);
}

.meeting-source-audit > div {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  border-top: 1px solid var(--line);
}

.meeting-source-audit article,
.transcript-exclusion-ledger article {
  padding: 12px 13px;
  border: 1px solid #d9e4ec;
  border-radius: 10px;
  background: #fff;
}

.meeting-source-audit article strong,
.transcript-exclusion-ledger article strong {
  margin: 5px 0;
  display: block;
  color: var(--navy-900);
  font-size: 11px;
  line-height: 1.4;
}

.meeting-source-audit article p,
.transcript-exclusion-ledger article p,
.transcript-exclusion-ledger > p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-meta);
  line-height: 1.5;
}

.meeting-source-audit article small {
  margin-top: 6px;
  display: block;
  color: var(--muted);
  font-size: var(--text-meta);
}

.transcript-exclusion-ledger > summary {
  cursor: pointer;
  list-style: none;
}

.transcript-exclusion-ledger > summary::-webkit-details-marker {
  display: none;
}

.transcript-exclusion-ledger > p {
  padding: 11px 16px;
  border-top: 1px solid var(--line);
}

.transcript-exclusion-ledger > div {
  padding: 12px;
  display: grid;
  gap: 9px;
  border-top: 1px solid var(--line);
}

.discovery-inventory {
  margin-bottom: 13px;
  overflow: hidden;
  border: 1px solid #cfdde8;
  border-radius: 13px;
  background: #fff;
}

.discovery-inventory > summary {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  list-style: none;
  background: #f8fbfd;
}

.discovery-inventory > summary::-webkit-details-marker {
  display: none;
}

.discovery-inventory > summary span,
.discovery-inventory td span {
  display: block;
  color: var(--muted);
  font-size: var(--text-meta);
  line-height: 1.4;
}

.discovery-inventory > summary strong {
  margin-top: 3px;
  display: block;
  color: var(--navy-900);
  font-size: 13px;
}

.discovery-inventory > summary small {
  color: var(--blue-700);
  font-size: var(--text-meta);
  font-weight: 800;
}

.discovery-inventory-note {
  margin: 0;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-meta);
  line-height: 1.5;
}

.discovery-inventory-table-wrap {
  padding: 12px;
  overflow: visible;
  border-top: 1px solid var(--line);
  background: #f4f8fb;
}

.discovery-inventory table {
  display: block;
  width: 100%;
  min-width: 0;
  border-collapse: separate;
  font-size: var(--text-meta);
}

.discovery-inventory thead {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.discovery-inventory tbody {
  width: 100%;
  display: grid;
  gap: 10px;
}

.discovery-inventory tbody tr {
  width: 100%;
  display: grid;
  grid-template-columns:
    100px
    minmax(0, 1.25fr)
    minmax(0, 1fr)
    minmax(125px, 0.7fr)
    minmax(105px, 0.55fr);
  grid-template-areas:
    "item source use assignment status"
    "input input question question question";
  gap: 1px;
  overflow: hidden;
  border: 1px solid #d4e0e9;
  border-radius: 11px;
  background: var(--line);
  box-shadow: 0 5px 15px rgba(8, 32, 52, 0.04);
}

.discovery-inventory td {
  min-width: 0;
  padding: 11px 12px;
  border: 0;
  background: #fff;
  overflow-wrap: anywhere;
  text-align: left;
  vertical-align: top;
}

.discovery-inventory td::before {
  content: attr(data-label);
  margin-bottom: 5px;
  display: block;
  color: var(--blue-700);
  font-size: var(--text-meta);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.discovery-inventory .inventory-item-cell {
  grid-area: item;
}

.discovery-inventory .inventory-source-cell {
  grid-area: source;
}

.discovery-inventory .inventory-use-cell {
  grid-area: use;
}

.discovery-inventory .inventory-input-cell {
  grid-area: input;
}

.discovery-inventory .inventory-question-cell {
  grid-area: question;
}

.discovery-inventory .inventory-assignment-cell {
  grid-area: assignment;
}

.discovery-inventory .inventory-status-cell {
  grid-area: status;
}

.discovery-inventory .inventory-status-cell .status {
  max-width: 100%;
  white-space: normal;
}

@media (max-width: 700px) {
  .discovery-inventory tbody tr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "item status"
      "source source"
      "use assignment"
      "input input"
      "question question";
  }
}

@media (max-width: 480px) {
  .discovery-inventory-table-wrap {
    padding: 9px;
  }

  .discovery-inventory tbody tr {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "item"
      "status"
      "source"
      "use"
      "assignment"
      "input"
      "question";
  }
}

.discovery-card {
  overflow: hidden;
  border: 1px solid #cedbe7;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 52px rgba(8, 32, 52, 0.09);
}

.discovery-card > header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-950));
}

.discovery-card > header span {
  color: #91c5f2;
}

.discovery-card > header h2 {
  margin: 5px 0 0;
  font-size: 17px;
}

.discovery-source {
  padding: 11px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.discovery-source strong {
  font-size: 9px;
}

.discovery-source small {
  margin-left: auto;
  color: var(--muted);
  font-size: var(--text-meta);
  text-align: right;
}

.discovery-nonblocking {
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e6d8bb;
  color: #6d5124;
  background: #fff9ec;
  font-size: var(--text-meta);
  line-height: 1.45;
}

.discovery-nonblocking strong {
  flex: 0 0 auto;
}

.discovery-prior-answer {
  padding: 14px 24px;
  border-bottom: 1px solid #cfdde8;
  color: #40566a;
  background: #f7fbfe;
}

.discovery-prior-answer > span {
  color: var(--blue-700);
  font-size: var(--text-meta);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.discovery-prior-answer h3,
.discovery-prior-answer p {
  margin: 5px 0;
  color: var(--navy-900);
  font-size: var(--text-support);
  line-height: 1.5;
}

.discovery-prior-answer small {
  color: var(--muted);
  font-size: var(--text-meta);
}

.discovery-rudy-entry {
  padding: 24px 25px 20px;
}

.discovery-rudy-entry p {
  margin: 10px 0 0;
  color: var(--navy-900);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.48;
  letter-spacing: -0.02em;
}

.discovery-review-prompt {
  margin: 0 25px 23px;
  padding: 17px 18px;
  border: 1px solid #cbdced;
  border-radius: 13px;
  background: #f3f8fd;
}

.discovery-review-prompt h3 {
  margin: 7px 0 9px;
  font-size: 13px;
  line-height: 1.5;
}

.discovery-review-prompt p {
  margin: 0 0 11px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.discovery-review-prompt p strong {
  color: var(--red-700);
}

.discovery-review-prompt a {
  color: var(--blue-700);
  font-size: 9px;
  font-weight: 850;
  text-decoration: none;
}

.discovery-resolution {
  margin: 0 25px 23px;
  padding: 16px 17px;
  border-left: 4px solid var(--teal-700);
  border-radius: 0 11px 11px 0;
  background: #edf8f5;
}

.discovery-resolution > span {
  color: var(--teal-700);
}

.discovery-resolution h3 {
  margin: 7px 0 5px;
  font-size: 12px;
  line-height: 1.5;
}

.discovery-resolution p,
.discovery-resolution small {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.discovery-resolution small {
  margin-top: 8px;
  display: block;
}

.discovery-waiting {
  margin: 0 25px 23px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #eed39d;
  border-radius: 12px;
  background: #fff9ed;
}

.discovery-waiting strong {
  flex: 0 0 auto;
  color: var(--amber-700);
  font-size: 10px;
}

.discovery-waiting span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.discovery-actions {
  padding: 16px 25px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
}

.discovery-actions .text-button {
  margin-left: auto;
  color: var(--muted);
}

.discovery-editor {
  padding: 19px 25px;
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
}

.discovery-editor label {
  display: grid;
  gap: 6px;
}

.discovery-editor textarea {
  width: 100%;
  min-height: 88px;
  padding: 11px 12px;
  resize: vertical;
  border: 1px solid #d5e0e9;
  border-radius: 10px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font-size: 10px;
  line-height: 1.5;
}

.discovery-editor textarea:focus {
  border-color: #78a9ee;
  box-shadow: 0 0 0 3px rgba(70, 127, 223, 0.1);
}

.discovery-editor > div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.discovery-pagination {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 110px 1fr 110px;
  align-items: center;
  gap: 10px;
}

.discovery-pagination span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  text-align: center;
}

.status-confirmed,
.status-corrected {
  color: #126146;
  background: var(--teal-100);
}

.status-still-unknown,
.status-needs-review {
  color: var(--amber-700);
  background: var(--amber-100);
}

.training-page {
  width: min(980px, 100%);
  margin: 4px auto 0;
}

.training-intro {
  margin-bottom: 18px;
  padding: 19px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.training-intro > div:first-child {
  display: flex;
  align-items: center;
  gap: 13px;
}

.training-intro > div:first-child > div > span,
.training-card > header > span,
.training-body section > span,
.training-essentials > span {
  color: var(--blue-700);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.training-intro h2 {
  margin: 4px 0 3px;
  font-size: 19px;
  letter-spacing: -0.025em;
}

.training-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.training-progress {
  width: 185px;
  flex: 0 0 auto;
}

.training-progress > span {
  margin-bottom: 8px;
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  text-align: right;
}

.training-stepper {
  margin: 0 0 17px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  list-style: none;
}

.training-stepper li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
}

.training-stepper li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 16px;
  left: calc(50% + 21px);
  right: calc(-50% + 21px);
  height: 2px;
  background: #dce4eb;
}

.training-stepper button {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  border: 2px solid #d3dde6;
  border-radius: 50%;
  color: #718192;
  background: var(--surface-soft);
  font-size: 10px;
  font-weight: 900;
}

.training-stepper button.current {
  border-color: var(--blue-600);
  color: #fff;
  background: var(--blue-600);
  box-shadow: 0 0 0 5px rgba(46, 111, 229, 0.1);
}

.training-stepper button.complete {
  border-color: var(--teal-700);
  color: #fff;
  background: var(--teal-700);
}

.training-stepper small {
  max-width: 112px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  line-height: 1.3;
}

.training-card {
  overflow: hidden;
  border: 1px solid #cedbe7;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(8, 32, 52, 0.1);
}

.training-card > header {
  padding: 28px 32px 25px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 5%, rgba(94, 174, 255, 0.22), transparent 34%),
    linear-gradient(135deg, var(--navy-900), var(--navy-950));
}

.training-card > header > span {
  color: #91c5f2;
}

.training-card > header h2 {
  margin: 9px 0 7px;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.04em;
}

.training-card > header p {
  max-width: 780px;
  margin: 0;
  color: #c3d5e3;
  font-size: 13px;
  line-height: 1.55;
}

.training-role-prompt {
  margin: 24px 32px 0;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #cbdced;
  border-radius: 13px;
  background: #f3f8fd;
}

.training-role-prompt .role-dot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 11px;
}

.training-role-prompt small {
  color: var(--blue-700);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.training-role-prompt p {
  margin: 3px 0 0;
  font-size: 11px;
  line-height: 1.5;
}

.training-body {
  padding: 22px 32px 27px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 18px;
}

.training-body section {
  min-width: 0;
}

.training-body ol {
  margin: 13px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
  list-style: none;
  counter-reset: training-step;
}

.training-body ol li {
  position: relative;
  min-height: 29px;
  padding: 5px 0 0 39px;
  font-size: 11px;
  line-height: 1.5;
  counter-increment: training-step;
}

.training-body ol li::before {
  content: counter(training-step);
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--blue-700);
  background: var(--blue-100);
  font-size: 10px;
  font-weight: 900;
}

.training-example {
  padding: 17px;
  border: 1px solid #d7e2ea;
  border-radius: 14px;
  background: #f8fafc;
}

.training-example > p {
  margin: 11px 0 15px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.training-example > div {
  padding: 12px 13px;
  border-left: 3px solid var(--teal-700);
  border-radius: 0 9px 9px 0;
  background: #edf8f5;
}

.training-example > div b {
  color: var(--teal-700);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.training-example > div p {
  margin: 4px 0 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
}

.training-essentials {
  padding: 0 32px 27px;
}

.training-essentials > div {
  margin-top: 11px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.training-essentials article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.training-essentials b {
  color: var(--navy-900);
  font-size: 10px;
}

.training-essentials p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.training-card > footer {
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
}

.training-card > footer > a {
  color: var(--blue-700);
  font-size: 9px;
  font-weight: 850;
  text-decoration: none;
}

.training-card > footer > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.training-note {
  margin-top: 13px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 11px;
  color: var(--muted);
  background: #eaf0f5;
  font-size: 9px;
}

.training-note strong {
  flex: 0 0 auto;
  color: var(--ink);
}

.training-note .text-button {
  margin-left: auto;
  flex: 0 0 auto;
}

.endpoint-learning {
  display: grid;
  gap: 14px;
}

.endpoint-rule-hero {
  padding: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid #bfd8e9;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(135deg, #0e3150, #126783);
}

.endpoint-rule-hero span,
.endpoint-tracker header span {
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.endpoint-rule-hero h2 {
  max-width: 680px;
  margin: 7px 0;
  font-size: 24px;
}

.endpoint-rule-hero p {
  margin: 0;
  color: #d8ebf5;
  font-size: 10px;
}

.endpoint-rule-hero a {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 8px;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
}

.endpoint-teaching-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.endpoint-teaching-grid article {
  min-height: 150px;
  padding: 16px;
  border: 1px solid var(--line);
  border-top-width: 4px;
  border-radius: 13px;
  background: #fff;
}

.endpoint-teaching-grid .teach-assess {
  border-top-color: #2b8a69;
}

.endpoint-teaching-grid .teach-track {
  border-top-color: #2f7da6;
}

.endpoint-teaching-grid .teach-level2 {
  border-top-color: #b36b14;
}

.endpoint-teaching-grid .teach-exclude {
  border-top-color: #8293a1;
}

.endpoint-teaching-grid span {
  color: var(--blue-700);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.endpoint-teaching-grid h3 {
  margin: 10px 0 7px;
  font-size: 14px;
}

.endpoint-teaching-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.endpoint-whole-boundary {
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #d7e2ea;
  border-radius: 11px;
  color: var(--muted);
  background: #fff;
  font-size: 9px;
  line-height: 1.5;
}

.endpoint-whole-boundary strong {
  flex: 0 0 auto;
  color: var(--ink);
}

.endpoint-whole-boundary a {
  margin-left: auto;
  color: var(--blue-700);
  font-size: 8px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.endpoint-tracker {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
}

.endpoint-tracker > header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.endpoint-tracker header span {
  color: var(--blue-700);
}

.endpoint-tracker header h2 {
  margin: 5px 0;
  font-size: 18px;
}

.endpoint-tracker header p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.endpoint-contract-picker {
  padding: 14px 20px;
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  align-items: end;
  gap: 18px;
  background: #f7fafc;
}

.endpoint-contract-picker label {
  display: grid;
  gap: 5px;
}

.endpoint-contract-picker label span {
  color: var(--blue-700);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.endpoint-contract-picker select {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #cfdae4;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 10px;
  font-weight: 750;
}

.endpoint-contract-picker p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.endpoint-list {
  padding: 16px 20px 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.endpoint-list article {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.endpoint-list article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.endpoint-list article > div > span {
  color: var(--muted);
  font-size: 8px;
}

.endpoint-treatment {
  padding: 4px 7px;
  border-radius: 999px;
  color: #425567;
  background: #e9eef2;
  font-size: 7px;
  font-weight: 850;
  text-transform: uppercase;
}

.endpoint-assess-at-level-1 {
  color: #17654f;
  background: #dff5ed;
}

.endpoint-reference-only {
  color: #185f87;
  background: #dceffa;
}

.endpoint-level-2-review {
  color: #8a530e;
  background: #fff0ca;
}

.endpoint-exclude-from-cmmc {
  color: #5f6d78;
  background: #e9eef2;
}

.endpoint-needs-facts {
  color: #7a4b0d;
  background: #fff4d9;
}

.endpoint-list h3 {
  margin: 11px 0 6px;
  font-size: 13px;
}

.endpoint-list p,
.endpoint-list small {
  margin: 0;
  display: block;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.endpoint-list small {
  margin-top: 7px;
}

.endpoint-list article > button {
  margin-top: 10px;
  padding: 0;
  border: 0;
  color: var(--blue-700);
  background: transparent;
  font-size: 8px;
  font-weight: 800;
}

.endpoint-source-strip {
  padding: 14px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #d5e2eb;
  border-radius: 12px;
  background: #f7fafc;
}

.endpoint-source-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.endpoint-source-strip a {
  margin-left: 12px;
  color: var(--blue-700);
  font-size: 8px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.endpoint-record-link {
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 12px;
  border: 1px solid #c9dce9;
  border-radius: 10px;
  color: var(--ink);
  background: #f5faff;
  text-align: left;
}

.endpoint-record-link span {
  color: var(--blue-700);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.endpoint-record-link strong {
  font-size: 18px;
}

.endpoint-record-link small {
  color: var(--muted);
  font-size: 9px;
}

.endpoint-modal {
  width: min(760px, 94vw);
}

.endpoint-question-grid {
  padding: 17px 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.endpoint-question-grid label {
  display: grid;
  align-content: start;
  gap: 6px;
}

.endpoint-question-grid label.wide {
  grid-column: 1 / -1;
}

.endpoint-question-grid label > span {
  display: grid;
  gap: 2px;
  color: #405365;
  font-size: 9px;
  font-weight: 800;
}

.endpoint-question-grid label > span small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
}

.endpoint-question-grid input,
.endpoint-question-grid select,
.endpoint-question-grid textarea {
  width: 100%;
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid #cfd9e2;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.endpoint-question-grid textarea {
  min-height: 72px;
  resize: vertical;
}

.endpoint-result {
  margin: 0 20px 18px;
  padding: 14px;
  border: 1px solid #d7e1e8;
  border-radius: 10px;
  background: #f7fafc;
}

.endpoint-result > span {
  display: block;
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.endpoint-result strong {
  display: block;
  margin-top: 5px;
  font-size: 14px;
}

.endpoint-result p {
  margin: 6px 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.endpoint-result a {
  color: var(--blue-700);
  font-size: 8px;
  font-weight: 800;
  text-decoration: none;
}

/* Readability and keyboard-access layer. Keep compact metadata distinct, but
   never make instructions, evidence guidance, or form controls microscopic. */
.brand span,
.boundary-card p,
.user-chip small,
.quick-metrics article > small,
.handoff small,
.check-id small,
.check-proof small,
.evidence-top > span,
.evidence-meta,
.resource-card > div,
.resource-card > div b,
.people-list small,
.scope-record-grid article > small,
.scope-record-grid article > a,
.work-answer-top > span,
.work-answer-list article > small,
.drawer-header span,
.guide-stepper button b,
.guide-role-help span,
.final-review > span,
.objective-progress span,
.objective-progress b,
.objective-safety,
.drawer-footer > span,
.modal > header span,
.scope-form label > span b,
.scope-form label > span small,
.scope-form label > span i,
.helper-role > div > span,
.helper-stepper small,
.helper-card-copy > span,
.scope-boundary-heading > div > span,
.scope-boundary-heading > a,
.scope-boundary-note a,
.scope-boundary-grid article > span,
.scope-catalog-toolbar label > span,
.workforce-heading span,
.catalog-decision,
.contract-facts b,
.contract-systems strong,
.workforce-cards article > div > span,
.workforce-cards small,
.catalog-form-grid label > span small,
.helper-item span,
.helper-result > span,
.helper-learning-link span,
.helper-training-link span,
.meeting-review-link span,
.helper-learning-link small,
.helper-training-link small,
.meeting-review-link small,
.discovery-intro > div:first-child > div > span,
.discovery-card > header span,
.discovery-source span,
.discovery-rudy-entry > span,
.discovery-review-prompt > span,
.discovery-resolution > span,
.discovery-editor label > span,
.discovery-progress > span,
.discovery-source-strip,
.discovery-resolution small,
.training-intro > div:first-child > div > span,
.training-card > header > span,
.training-body section > span,
.training-essentials > span,
.training-progress > span,
.training-stepper small,
.training-role-prompt small,
.endpoint-rule-hero span,
.endpoint-tracker header span,
.endpoint-teaching-grid span,
.endpoint-contract-picker label span,
.endpoint-list article > div > span,
.endpoint-treatment,
.endpoint-list small,
.endpoint-record-link span,
.endpoint-question-grid label > span small,
.endpoint-result > span {
  font-size: var(--text-meta);
  line-height: 1.4;
}

.environment-chip,
.more-nav summary,
.nav-symbol,
.role-picker span,
.eyebrow,
.step-kicker,
.next-meta,
.quick-metrics article > span,
.section-heading span,
.panel-heading span,
.source-header > span,
.drawer-section > span,
.drawer-section-title span,
.handoff article > span,
.truth-card > span,
.stage-main > span,
.stage-output > span,
.status,
.record-summary article > span,
.record-heading span,
.scope-record-grid span,
.record-review-note strong,
.guide-callout b,
.guide-done b,
.objective-summary b,
.guide-proof-heading,
.method-row b,
.task-question > span,
.scope-boundary-note,
.scope-boundary-lines,
.contract-facts span,
.workforce-heading strong,
.empty-workforce,
.scope-catalog-note,
.catalog-form-grid label > span,
.discovery-source strong,
.discovery-pagination span,
.training-essentials b,
.endpoint-question-grid label > span {
  font-size: var(--text-meta);
  line-height: 1.45;
}

.topbar p,
.user-chip strong,
.current-notice,
.current-notice a,
.source-link,
.role-identity p,
.next-action-card p,
.button,
.text-button,
.handoff p,
.truth-card p,
.truth-card a,
.plan-intro > p,
.role-prompt b,
.stage-output p,
.stage-output a,
.plain-notice p,
.plain-notice a,
.toolbar input,
.toolbar select,
.form-grid input,
.form-grid select,
.form-grid textarea,
.modal-form input,
.modal-form select,
.check-copy small,
.evidence-card > p,
.evidence-actions a,
.evidence-actions button,
.empty-state p,
.resource-card p,
.resource-card a,
.people-list strong,
.panel-note,
.short-list li,
.audit-row,
.record-heading p,
.scope-record-grid p,
.record-review-note p,
.work-answer-list article > p,
.work-answer-list article > button,
.drawer-header p,
.safeguard-box a,
.drawer-section-title button,
.linked-evidence,
.drawer-empty,
.guide-stepper button,
.guide-callout p,
.guide-role-help p,
.guide-done p,
.objective-summary p,
.guide-official,
.objective-official,
.guide-official p,
.objective-official p,
.guide-source-links a,
.objective-official a,
.guide-evidence-examples,
.guide-methods span,
.objective-status-grid button,
.objective-note,
.method-row span,
.form-grid label,
.modal-form label,
.modal-warning,
.scope-modal-boundary,
.scope-form label > span,
.task-answer-body label > span,
.scope-form textarea,
.task-answer-body textarea,
.scope-return-note p,
.task-question p,
.toast,
.helper-role p,
.helper-card-copy p,
.scope-boundary-heading p,
.scope-boundary-grid p,
.scope-catalog-toolbar select,
.scope-catalog-heading p,
.contract-systems p,
.workforce-cards p,
.workforce-cards article > button,
.catalog-form-grid input,
.catalog-form-grid select,
.catalog-form-grid textarea,
.catalog-level-warning,
.catalog-source-note,
.helper-item p,
.helper-result p,
.helper-footer,
.helper-safety,
.discovery-intro p,
.discovery-review-prompt p,
.discovery-review-prompt a,
.discovery-resolution p,
.discovery-waiting strong,
.discovery-waiting span,
.discovery-editor textarea,
.training-intro p,
.training-stepper button,
.training-example > p,
.training-example > div b,
.training-example > div p,
.training-essentials p,
.training-card > footer > a,
.training-note,
.endpoint-rule-hero p,
.endpoint-rule-hero a,
.endpoint-teaching-grid p,
.endpoint-whole-boundary,
.endpoint-whole-boundary a,
.endpoint-tracker header p,
.endpoint-contract-picker select,
.endpoint-contract-picker p,
.endpoint-list p,
.endpoint-list article > button,
.endpoint-source-strip p,
.endpoint-source-strip a,
.endpoint-record-link small,
.endpoint-result p,
.endpoint-result a {
  font-size: var(--text-support);
  line-height: 1.55;
}

.helper-card-copy p,
.helper-item p,
.helper-result p,
.guide-callout p,
.guide-role-help p,
.guide-done p,
.objective-summary p,
.objective-note,
.scope-form label > span,
.task-answer-body label > span,
.training-example > p,
.endpoint-rule-hero p {
  font-size: var(--text-body);
}

.status {
  max-width: none;
  padding: 6px 10px;
}

.app-shell button:not(.drawer-backdrop):not(.modal-backdrop):not(.nav-backdrop),
.app-shell input:not([type="checkbox"]):not([type="radio"]),
.app-shell select {
  min-height: 44px;
}

.drawer-header button,
.modal > header button,
.mobile-menu,
.mobile-close {
  width: 44px;
  height: 44px;
}

.guide-official summary,
.objective-official summary {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.notification-button {
  position: relative;
  min-height: 43px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  font-size: 10px;
  font-weight: 800;
}

.notification-button > span {
  color: var(--blue-600);
  font-size: 8px;
}

.notification-button > b,
.review-tabs button > b {
  min-width: 20px;
  min-height: 20px;
  padding: 2px 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--red-700);
  font-size: 9px;
}

.home-review-inbox {
  margin: 14px 0;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #bed8ed;
  border-radius: 13px;
  background: #f3f9fe;
}

.home-review-inbox > div > span,
.people-roster-heading > div > span,
.review-hub-hero > div > div > span,
.review-section-heading span,
.review-summary-heading > div:first-child > span,
.section-review-card > header > div > span,
.section-breadcrumb > span,
.queue-fyi > span,
.role-responsibility-grid article > header > div > span,
.role-responsibility-grid article > div > span {
  color: var(--blue-700);
  font-size: var(--text-meta);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.home-review-inbox h3 {
  margin: 5px 0 3px;
  font-size: 14px;
}

.home-review-inbox p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-support);
}

.people-roster {
  margin: 0 17px 17px;
  overflow: hidden;
  border: 1px solid #cddce8;
  border-radius: 12px;
  background: #fff;
}

.people-roster-heading {
  padding: 15px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #d9e4ec;
  background: #f6fafe;
}

.people-roster-heading h3 {
  margin: 5px 0 4px;
  font-size: 15px;
}

.people-roster-heading p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-support);
  line-height: 1.5;
}

.people-roster-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.people-roster-list {
  overflow-x: auto;
}

.people-roster-columns,
.people-roster-row {
  min-width: 890px;
  display: grid;
  grid-template-columns:
    minmax(170px, 1.25fr)
    minmax(170px, 1.15fr)
    minmax(130px, 0.9fr)
    minmax(155px, 1fr)
    minmax(110px, 0.75fr)
    90px;
  gap: 12px;
  align-items: center;
}

.people-roster-columns {
  padding: 8px 14px;
  color: var(--muted);
  background: #fbfcfd;
  font-size: var(--text-meta);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.people-roster-row {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.people-roster-row > div {
  min-width: 0;
}

.people-roster-row strong,
.people-roster-row small {
  display: block;
  overflow-wrap: anywhere;
}

.people-roster-row strong {
  font-size: 11px;
}

.people-roster-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--text-meta);
  line-height: 1.4;
}

.people-roster-empty {
  margin: 14px;
  display: grid;
  gap: 5px;
}

.people-roster-empty span {
  color: var(--muted);
  line-height: 1.5;
}

.people-roster-source {
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
}

.people-roster-source p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-meta);
  line-height: 1.5;
}

.people-roster-source > div {
  display: grid;
  gap: 4px;
  text-align: right;
}

.people-roster-source a,
.person-source-note a {
  color: var(--blue-700);
  font-size: var(--text-meta);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 960px) {
  .people-roster-list {
    padding: 12px;
    display: grid;
    gap: 12px;
    overflow: visible;
    background: var(--surface-soft);
  }

  .people-roster-columns {
    position: absolute;
    width: 1px;
    height: 1px;
    min-width: 0;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
  }

  .people-roster-row {
    min-width: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    overflow: hidden;
    border: 1px solid #cddce8;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(8, 32, 52, 0.04);
  }

  .people-roster-row > div {
    padding: 11px 13px;
    border-top: 1px solid var(--line);
  }

  .people-roster-row > div:first-child {
    border-top: 0;
  }

  .people-roster-row > div::before {
    margin-bottom: 4px;
    display: block;
    color: var(--blue-700);
    font-size: var(--text-meta);
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .people-roster-row > div:nth-child(1)::before {
    content: "Person";
  }

  .people-roster-row > div:nth-child(2)::before {
    content: "Access";
  }

  .people-roster-row > div:nth-child(3)::before {
    content: "Device";
  }

  .people-roster-row > div:nth-child(4)::before {
    content: "Authorization";
  }

  .people-roster-row > div:nth-child(5)::before {
    content: "Boundary";
  }

  .people-roster-row > div:nth-child(6)::before {
    content: "Action";
  }

  .people-roster-row > div:last-child .text-button {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd9e5;
    border-radius: 9px;
    background: #fff;
    text-align: center;
  }
}

.review-hub {
  width: min(1120px, 100%);
  margin: 4px auto 0;
}

.review-hub-hero {
  padding: 19px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.review-hub-hero > div:first-child {
  display: flex;
  align-items: center;
  gap: 13px;
}

.review-hub-hero h2 {
  margin: 5px 0 4px;
  font-size: 20px;
}

.review-hub-hero p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-support);
  line-height: 1.5;
}

.review-hub-counts {
  flex: 0 0 auto;
  display: grid;
  gap: 6px;
}

.review-hub-counts span {
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: var(--text-meta);
}

.review-hub-counts b {
  margin-right: 4px;
  color: var(--navy-900);
  font-size: 13px;
}

.review-tabs {
  margin: 12px 0 16px;
  padding: 5px;
  display: flex;
  gap: 5px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.review-tabs button {
  min-height: 38px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 1 0 auto;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  font-weight: 800;
}

.review-tabs button.active {
  color: var(--blue-700);
  background: var(--blue-100);
}

.review-section-heading {
  margin-bottom: 12px;
}

.review-section-heading h2,
.review-summary-heading h2 {
  margin: 5px 0 4px;
  font-size: 19px;
}

.review-section-heading p,
.review-summary-heading p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-support);
}

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

.section-review-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.section-review-card.program-review-card {
  margin-bottom: 12px;
  border-color: #b8d3e9;
  box-shadow: 0 12px 28px rgba(8, 32, 52, 0.06);
}

.section-review-card > header {
  padding: 15px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.section-review-card > header h3 {
  margin: 4px 0;
  font-size: 15px;
}

.section-review-card > header p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-meta);
  line-height: 1.45;
}

.review-role-chain {
  padding: 12px 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.review-role-step {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.review-role-step .role-dot {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  font-size: 9px;
}

.review-role-step small,
.review-role-step strong,
.review-role-step div > span {
  display: block;
}

.review-role-step small,
.review-role-step div > span {
  color: var(--muted);
  font-size: 7px;
  line-height: 1.35;
}

.review-role-step strong {
  margin: 2px 0;
  font-size: 9px;
  line-height: 1.35;
}

.section-breadcrumb {
  margin: 12px 14px;
  padding: 11px 12px;
  border-left: 3px solid var(--teal-700);
  border-radius: 0 8px 8px 0;
  background: #f0f8f6;
}

.section-review-lock {
  margin: 12px 14px 0;
  padding: 10px 12px;
  display: grid;
  gap: 3px;
  border: 1px solid #dfd3b9;
  border-radius: 8px;
  color: #6a552b;
  background: #fff9ec;
}

.section-review-lock strong {
  font-size: var(--text-meta);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-review-lock span {
  font-size: var(--text-support);
  line-height: 1.45;
}

.section-breadcrumb p {
  margin: 5px 0 3px;
  color: #3f5661;
  font-size: var(--text-support);
  line-height: 1.45;
}

.section-breadcrumb small {
  color: var(--muted);
  font-size: var(--text-meta);
}

.section-review-card > footer {
  padding: 0 14px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.section-review-card > footer .button-primary {
  margin-left: auto;
}

.review-summary-heading {
  margin-bottom: 12px;
  padding: 17px 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.review-summary-heading > div:last-child {
  min-width: 125px;
  text-align: right;
}

.review-summary-heading > div:last-child strong,
.review-summary-heading > div:last-child span {
  display: block;
}

.review-summary-heading > div:last-child strong {
  color: var(--navy-900);
  font-size: 25px;
}

.review-summary-heading > div:last-child strong small,
.review-summary-heading > div:last-child span {
  color: var(--muted);
  font-size: var(--text-meta);
}

.queue-fyi {
  margin-top: 12px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid #cddcea;
  border-radius: 11px;
  background: #f7fafc;
}

.queue-fyi p {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: var(--text-support);
}

.compact-empty-state {
  min-height: 240px;
}

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

.change-row {
  padding: 13px 14px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.change-row.unread {
  border-color: #a9cce8;
  box-shadow: inset 3px 0 0 var(--blue-600);
}

.change-row .role-dot {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 10px;
}

.change-row > div > span {
  color: var(--blue-700);
  font-size: var(--text-meta);
  font-weight: 800;
  text-transform: uppercase;
}

.change-row h3 {
  margin: 4px 0 3px;
  font-size: 12px;
}

.change-row p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-meta);
}

.change-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.role-responsibility-grid > article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.role-responsibility-grid > article.current {
  border-color: #9bc4e5;
  background: #f1f8fe;
}

.role-responsibility-grid article > header {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.role-responsibility-grid article > header h3 {
  margin: 3px 0 0;
  font-size: 12px;
}

.role-responsibility-grid article > div {
  margin-top: 8px;
}

.role-responsibility-grid article > div p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: var(--text-meta);
  line-height: 1.45;
}

.person-access-modal {
  width: min(900px, 95vw);
}

.person-form-help {
  margin: 14px 20px 0;
  padding: 12px 14px;
  border: 1px solid #cbddec;
  border-radius: 10px;
  background: #f4f9fd;
}

.person-form-help strong {
  color: var(--blue-700);
  font-size: var(--text-meta);
}

.person-form-help p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--text-support);
}

.person-form-help small {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: var(--text-meta);
  font-weight: 750;
}

.person-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 2px;
  color: var(--ink);
  font-size: var(--text-support);
  font-weight: 800;
}

.person-step b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue-700);
  font-size: var(--text-meta);
}

.reviewer-change-note {
  padding: 12px;
  border: 1px solid #e8c883;
  border-radius: 10px;
  background: #fff9ed;
}

.person-source-note {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.person-source-note > span {
  flex: 1 1 380px;
}

.section-review-modal,
.section-note-modal {
  width: min(650px, 94vw);
}

.section-review-body {
  padding: 18px 20px 22px;
}

.section-review-body > p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: var(--text-support);
  line-height: 1.5;
}

.review-decision-options {
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.review-decision-options button {
  padding: 13px;
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.review-decision-options button.selected {
  border-color: #7db2db;
  background: #edf7ff;
  box-shadow: 0 0 0 2px rgba(70, 127, 223, 0.08);
}

.review-decision-options button.selected.request {
  border-color: #e2b961;
  background: #fff8e9;
}

.review-decision-options strong {
  font-size: 11px;
}

.review-decision-options span {
  color: var(--muted);
  font-size: var(--text-meta);
  line-height: 1.4;
}

.section-review-body label {
  display: grid;
  gap: 7px;
  color: #405365;
  font-size: var(--text-support);
  font-weight: 800;
}

.section-review-body label span small {
  margin-top: 3px;
  display: block;
  color: var(--muted);
  font-size: var(--text-meta);
  font-weight: 600;
}

.section-review-body textarea {
  min-height: 120px;
  padding: 11px;
  resize: vertical;
  border: 1px solid #d2dde7;
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  line-height: 1.5;
}

/* Review work needs to remain readable at a glance. These rules intentionally
   keep metadata compact without allowing the review trail to drop below 12px. */
.notification-button,
.review-tabs button {
  font-size: var(--text-support);
}

.people-roster-row strong,
.section-review-card > header p,
.review-role-step strong,
.change-row h3,
.role-responsibility-grid article > header h3,
.review-decision-options strong {
  font-size: var(--text-support);
  line-height: 1.45;
}

.review-role-step small,
.review-role-step div > span,
.change-row p,
.role-responsibility-grid article > div p {
  font-size: var(--text-meta);
  line-height: 1.45;
}

.section-review-card > footer .text-button {
  padding: 9px 7px;
}

/* Reusable workflow surfaces. Some are introduced progressively by the
   guided-review screens, so their default treatment is defined here. */
.workflow-refresh,
.scope-next-banner {
  margin: 0 0 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #b9d5ea;
  border-radius: 12px;
  background: #f1f8fe;
}

.workflow-refresh > div,
.scope-next-banner > div {
  min-width: 0;
  flex: 1;
}

.workflow-refresh strong,
.scope-next-banner strong,
.section-readiness strong,
.correction-card strong,
.review-snapshot strong {
  display: block;
  font-size: var(--text-support);
}

.workflow-refresh p,
.scope-next-banner p,
.section-readiness p,
.correction-card p,
.review-snapshot p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--text-support);
  line-height: 1.5;
}

.section-readiness,
.correction-card,
.review-snapshot {
  margin: 12px 14px;
  padding: 12px 14px;
  border: 1px solid #cbdde9;
  border-radius: 10px;
  background: #f7fafc;
}

.section-readiness.ready,
.section-readiness[data-ready="true"] {
  border-color: #b9e1d5;
  background: #edfaf6;
}

.section-readiness.locked,
.section-readiness[data-ready="false"],
.correction-card {
  border-color: #e7c987;
  background: #fff9ed;
}

.section-history {
  margin: 12px 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.section-history > summary,
.section-history > header {
  min-height: 44px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--navy-900);
  font-size: var(--text-support);
  font-weight: 800;
}

.section-history > summary {
  cursor: pointer;
}

.section-history > :not(summary):not(header) {
  border-top: 1px solid var(--line);
}

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

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

  .handoff,
  .truth-grid,
  .resource-grid,
  .evidence-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stage-card {
    grid-template-columns: 42px 1fr;
  }

  .stage-output {
    grid-column: 2;
  }

  .admin-grid {
    grid-template-columns: 1fr 1fr;
  }

  .record-summary,
  .work-answer-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 1050px) {
  .app-shell {
    display: block;
  }

  .drawer {
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
  }

  .drawer-body {
    overscroll-behavior: contain;
  }

  .drawer-footer {
    padding-bottom: max(13px, env(safe-area-inset-bottom));
  }

  .sidebar {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-105%);
    transition:
      transform 180ms ease,
      visibility 0s linear 180ms;
  }

  .sidebar.mobile-open {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition: transform 180ms ease;
  }

  .main {
    grid-column: auto;
  }

  .mobile-menu,
  .mobile-close {
    display: grid;
    place-items: center;
  }

  .mobile-menu {
    width: 35px;
    height: 35px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--ink);
    background: #fff;
  }

  .mobile-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
  }

  .nav-backdrop {
    z-index: 35;
    display: block;
  }

  .topbar {
    padding: 10px 15px;
  }

  .role-picker {
    min-width: 0;
  }

  .role-picker > span {
    display: none;
  }

  .user-chip strong,
  .user-chip small {
    max-width: 96px;
  }

  .persistent-preview {
    top: 76px;
    padding: 8px 15px;
    align-items: flex-start;
  }

  .content {
    padding: 18px 15px 40px;
  }

  .toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .toolbar input {
    grid-column: 1 / -1;
  }

  .check-row {
    grid-template-columns: 46px minmax(0, 1fr) 90px 15px;
  }

  .check-proof {
    display: none;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-wide {
    grid-column: auto;
  }

  .section-review-grid,
  .role-responsibility-grid {
    grid-template-columns: 1fr;
  }

  .review-hub-hero,
  .review-summary-heading,
  .people-roster-source {
    align-items: flex-start;
    flex-direction: column;
  }

  .review-hub-counts {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-summary-heading > div:last-child,
  .people-roster-source > div {
    text-align: left;
  }

  .endpoint-rule-hero,
  .endpoint-tracker > header,
  .endpoint-source-strip,
  .endpoint-whole-boundary {
    align-items: flex-start;
    flex-direction: column;
  }

  .endpoint-whole-boundary a {
    margin-left: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .endpoint-contract-picker,
  .endpoint-list {
    grid-template-columns: 1fr;
  }

  .endpoint-source-strip a {
    margin: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .endpoint-learning,
  .endpoint-learning > * {
    min-width: 0;
    max-width: 100%;
  }

  .endpoint-source-strip > div {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .training-body {
    grid-template-columns: 1fr;
  }

  .training-essentials > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .discovery-source-strip {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .discovery-source-strip small {
    width: 100%;
    margin-left: 0;
    max-width: none;
    text-align: left;
  }

  .requirement-layer-grid,
  .discovery-role-map,
  .meeting-source-audit > div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .scope-catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .scope-catalog-toolbar label {
    min-width: 0;
  }

  .scope-catalog-toolbar > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .topbar {
    min-height: 0;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 8px;
  }

  .topbar-heading,
  .top-actions {
    width: 100%;
    min-width: 0;
  }

  .topbar-heading > div,
  .user-chip > span {
    min-width: 0;
  }

  .topbar-heading h1 {
    overflow: hidden;
    font-size: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .top-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .top-actions .lane-picker {
    width: 100%;
    grid-column: 1 / -1;
  }

  .role-picker select {
    width: 100%;
  }

  .user-chip strong {
    max-width: 82px;
  }

  .user-chip small {
    display: none;
  }

  .persistent-preview {
    position: relative;
    top: auto;
  }

  .topbar p {
    display: none;
  }

  .current-notice {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .current-notice p {
    flex-basis: calc(100% - 120px);
  }

  .helper-role {
    align-items: flex-start;
  }

  .helper-role p {
    line-height: 1.45;
  }

  .helper-stepper small {
    font-size: 11px;
  }

  .helper-stepper li:not(:last-child)::after {
    left: calc(50% + 18px);
    right: calc(-50% + 18px);
  }

  .helper-card-copy,
  .helper-focus {
    padding: 22px 19px;
  }

  .helper-card-copy p {
    font-size: 12px;
  }

  .helper-item {
    padding: 16px;
    flex-direction: column;
  }

  .scope-boundary-heading {
    flex-direction: column;
    gap: 9px;
  }

  .scope-boundary-grid {
    grid-template-columns: 1fr;
  }

  .scope-catalog-toolbar,
  .scope-catalog-heading,
  .contract-requirements > header,
  .contract-requirement-result,
  .co-confirmation-card,
  .workforce-heading,
  .people-roster-heading,
  .home-review-inbox {
    align-items: stretch;
    flex-direction: column;
  }

  .scope-catalog-toolbar > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .contract-facts,
  .contract-document-list,
  .contract-example-grid,
  .contract-clause-checker,
  .workforce-cards,
  .workforce-cards.compact,
  .catalog-form-grid,
  .review-role-chain,
  .review-decision-options {
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .catalog-form-grid label.wide {
    grid-column: auto;
  }

  .contract-requirements {
    margin-right: 12px;
    margin-left: 12px;
  }

  .contract-requirement-result,
  .co-confirmation-card {
    align-items: flex-start;
  }

  .contract-requirement-result > b,
  .co-confirmation-card .button {
    align-self: stretch;
    text-align: center;
  }

  .contract-document-list dl,
  .contract-clause-checker label {
    grid-template-columns: 1fr;
  }

  .contract-clause-checker a {
    grid-column: auto;
  }

  .people-roster-actions {
    justify-content: space-between;
  }

  .people-roster {
    margin-right: 12px;
    margin-left: 12px;
  }

  .review-hub-hero > div:first-child,
  .change-row {
    align-items: flex-start;
  }

  .review-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .review-tabs button {
    min-width: 0;
    padding-right: 8px;
    padding-left: 8px;
  }

  .section-review-card > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .review-role-step {
    padding: 9px 10px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
  }

  .change-row {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .change-row-actions {
    grid-column: 2;
    flex-wrap: wrap;
  }

  .section-review-card > footer .button-primary {
    width: 100%;
    margin-left: 0;
  }

  .section-review-card > footer {
    align-items: stretch;
    flex-direction: column;
  }

  .section-review-card > footer .button,
  .section-review-card > footer .text-button {
    width: 100%;
    margin-left: 0;
  }

  .section-review-card > footer .text-button {
    border: 1px solid #cbd9e5;
    border-radius: 9px;
    background: #fff;
  }

  .queue-fyi,
  .workflow-refresh,
  .scope-next-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .queue-fyi .text-button,
  .workflow-refresh .button,
  .scope-next-banner .button {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd9e5;
    border-radius: 9px;
    background: #fff;
    text-align: center;
  }

  .section-history,
  .section-readiness,
  .correction-card,
  .review-snapshot {
    margin-right: 12px;
    margin-left: 12px;
  }

  .helper-actions {
    grid-template-columns: 1fr;
  }

  .helper-footer {
    padding: 15px 19px;
    align-items: flex-start;
    flex-direction: column;
  }

  .helper-footer a {
    display: block;
    margin: 5px 0 0;
  }

  .helper-safety {
    align-items: center;
    flex-direction: column;
  }

  .helper-learning-link,
  .helper-training-link,
  .meeting-review-link,
  .endpoint-teaching-grid,
  .endpoint-question-grid,
  .endpoint-record-link {
    grid-template-columns: 1fr;
  }

  .helper-learning-link span,
  .helper-training-link span,
  .meeting-review-link span {
    grid-row: auto;
  }

  .discovery-intro,
  .discovery-waiting,
  .discovery-source,
  .discovery-nonblocking {
    align-items: flex-start;
    flex-direction: column;
  }

  .discovery-progress {
    width: 100%;
    text-align: left;
  }

  .discovery-rudy-entry,
  .discovery-card > header,
  .discovery-source,
  .discovery-actions,
  .discovery-editor {
    padding-left: 19px;
    padding-right: 19px;
  }

  .discovery-source small {
    margin-left: 0;
    text-align: left;
  }

  .discovery-review-prompt,
  .discovery-resolution,
  .discovery-waiting {
    margin-left: 19px;
    margin-right: 19px;
  }

  .discovery-rudy-entry p {
    font-size: 16px;
  }

  .discovery-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .discovery-actions .text-button {
    margin-left: 0;
  }

  .discovery-editor > div {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .discovery-pagination span {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .training-intro,
  .training-card > footer,
  .training-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .training-progress {
    width: 100%;
  }

  .training-progress > span {
    text-align: left;
  }

  .training-stepper small {
    display: none;
  }

  .training-stepper li:not(:last-child)::after {
    left: calc(50% + 18px);
    right: calc(-50% + 18px);
  }

  .training-card > header {
    padding: 24px 20px 21px;
  }

  .training-role-prompt {
    margin: 19px 20px 0;
    align-items: flex-start;
  }

  .training-body,
  .training-essentials {
    padding: 19px 20px 23px;
  }

  .training-essentials > div {
    grid-template-columns: 1fr;
  }

  .training-card > footer {
    padding: 15px 20px;
  }

  .training-card > footer > div {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .training-card > footer > div .button-primary {
    grid-column: 1 / -1;
  }

  .training-note .text-button {
    margin-left: 0;
  }

  .endpoint-question-grid label.wide {
    grid-column: auto;
  }

  .record-summary,
  .scope-record-grid,
  .work-answer-list {
    grid-template-columns: 1fr;
  }

  .scope-record-grid article:last-child {
    grid-column: auto;
  }

  .record-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .record-heading .button {
    width: 100%;
  }

  .modal footer {
    flex-wrap: wrap;
  }

  .modal footer .button {
    flex: 1 1 140px;
  }

  .role-hero {
    padding: 21px;
  }

  .role-identity {
    align-items: flex-start;
  }

  .role-identity > span {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    font-size: 20px;
  }

  .next-action-card {
    grid-template-columns: 1fr;
  }

  .next-buttons {
    grid-template-columns: 1fr 1fr;
  }

  .next-buttons .text-button {
    grid-column: 1 / -1;
  }

  .quick-metrics,
  .handoff,
  .truth-grid,
  .resource-grid,
  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .handoff article:not(:last-child)::after {
    content: "↓";
    top: auto;
    right: 20px;
    bottom: -9px;
  }

  .plan-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .stage-card {
    grid-template-columns: 36px 1fr;
    gap: 12px;
    padding: 15px;
  }

  .stage-number {
    width: 34px;
    height: 34px;
  }

  .role-prompt {
    grid-template-columns: 1fr;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .toolbar input {
    grid-column: auto;
  }

  .check-row {
    grid-template-columns: 42px 1fr 15px;
  }

  .check-row .status {
    grid-column: 2;
    grid-row: 2;
  }

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

  .plain-notice {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-grid,
  .method-row {
    grid-template-columns: 1fr;
  }

  .drawer-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .drawer-footer > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .guide-stepper button {
    gap: 3px;
  }

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

  .guide-stepper button span {
    font-size: var(--text-meta);
  }

  .objective-status-grid,
  .guide-methods {
    grid-template-columns: 1fr;
  }

  .guide-methods span {
    min-height: 0;
  }

  .audit-row {
    grid-template-columns: 85px 1fr;
  }

  .audit-row small {
    grid-column: 1 / -1;
  }
}

/* FCI and CUI information-handling guide */
.handling-guide {
  min-width: 0;
  display: grid;
  gap: 22px;
}

.handling-guide-hero {
  min-width: 0;
  padding: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.34fr);
  align-items: end;
  gap: 28px;
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(58, 182, 155, 0.28), transparent 33%),
    linear-gradient(135deg, var(--navy-950), #123f5f);
  box-shadow: var(--shadow);
}

.handling-guide-hero > div,
.handling-section-heading > div,
.handling-device-card header > div,
.handling-stop-card > div {
  min-width: 0;
}

.handling-guide-hero span,
.handling-section-heading span,
.handling-device-card header span,
.handling-platform-card > header span,
.handling-example-group > header > span,
.handling-stop-card span {
  font-size: var(--text-meta);
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.handling-guide-hero > div > span {
  color: #83e3ce;
}

.handling-guide-hero h2 {
  max-width: 850px;
  margin: 7px 0 10px;
  font-size: clamp(27px, 3.3vw, 43px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.handling-guide-hero p {
  max-width: 880px;
  margin: 0;
  color: #d5e5ef;
  font-size: 15px;
  line-height: 1.65;
}

.handling-guide-actions {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.handling-guide-actions .button {
  width: 100%;
  white-space: normal;
}

.handling-meeting-caution,
.handling-laptop-warning {
  min-width: 0;
  padding: 17px 19px;
  border: 1px solid #e9cf91;
  border-left: 5px solid var(--amber-700);
  border-radius: 14px;
  color: #654611;
  background: #fff9e9;
}

.handling-meeting-caution strong,
.handling-laptop-warning strong {
  color: #65410a;
  font-size: 14px;
}

.handling-meeting-caution p,
.handling-laptop-warning p {
  margin: 5px 0 0;
  font-size: var(--text-support);
  line-height: 1.6;
}

.handling-jump-links {
  min-width: 0;
  padding: 9px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: 0 9px 24px rgba(8, 32, 52, 0.05);
}

.handling-jump-links a {
  min-width: 0;
  min-height: 43px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #31516b;
  background: #f5f8fb;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.handling-jump-links a:hover {
  color: var(--blue-700);
  background: var(--blue-100);
}

.handling-guide-section {
  min-width: 0;
  padding: 25px;
  scroll-margin-top: 105px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(8, 32, 52, 0.055);
}

.handling-section-heading {
  min-width: 0;
  margin-bottom: 19px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  align-items: end;
  gap: 28px;
}

.handling-section-heading span,
.handling-device-card header span,
.handling-platform-card > header span,
.handling-example-group > header > span {
  color: var(--teal-700);
}

.handling-section-heading h2 {
  margin: 5px 0 0;
  color: var(--navy-900);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.14;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.handling-section-heading > p {
  margin: 0;
  color: #52677a;
  font-size: var(--text-support);
  line-height: 1.58;
}

.handling-class-grid,
.handling-device-grid,
.handling-example-grid,
.handling-platform-grid,
.handling-source-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.handling-class-card,
.handling-device-card,
.handling-example-card,
.handling-platform-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.handling-class-card {
  padding: 20px;
  border-top-width: 4px;
}

.handling-class-card.handling-class-neither {
  border-top-color: #2c806c;
  background: linear-gradient(180deg, #f3fbf8, #fff 42%);
}

.handling-class-card.handling-class-company {
  border-top-color: #737c8d;
  background: linear-gradient(180deg, #f4f5f7, #fff 42%);
}

.handling-class-card.handling-class-fci {
  border-top-color: var(--blue-700);
  background: linear-gradient(180deg, #f1f6ff, #fff 42%);
}

.handling-class-card.handling-class-cui {
  border-top-color: var(--red-700);
  background: linear-gradient(180deg, #fff3f4, #fff 42%);
}

.handling-class-card.handling-class-review {
  border-top-color: var(--amber-700);
  background: linear-gradient(180deg, #fff9e9, #fff 42%);
}

.handling-classification {
  max-width: 100%;
  padding: 5px 8px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.handling-classification.handling-class-neither {
  color: #125846;
  border-color: #a8d9cc;
  background: #e6f7f1;
}

.handling-classification.handling-class-company {
  color: #4c5361;
  border-color: #cdd3dc;
  background: #f1f3f6;
}

.handling-classification.handling-class-fci {
  color: #184eaf;
  border-color: #b8cdf7;
  background: #eaf1ff;
}

.handling-classification.handling-class-cui {
  color: #8d2630;
  border-color: #eeb9be;
  background: #fdebed;
}

.handling-classification.handling-class-review {
  color: #764900;
  border-color: #e8cc8f;
  background: #fff3d8;
}

.handling-class-card h3 {
  margin: 12px 0 7px;
  color: var(--navy-900);
  font-size: 19px;
  letter-spacing: -0.02em;
}

.handling-class-card > p {
  margin: 0;
  color: #4d6274;
  font-size: var(--text-support);
  line-height: 1.55;
}

.handling-class-card > div {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.handling-class-card > div strong,
.handling-example-card > div strong {
  color: var(--navy-900);
  font-size: var(--text-meta);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.handling-class-card > div p,
.handling-example-card > div p {
  margin: 5px 0 0;
  color: #55697a;
  font-size: 13px;
  line-height: 1.55;
}

.handling-decision-line {
  min-width: 0;
  margin-top: 13px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: minmax(90px, 0.2fr) minmax(0, 1.8fr);
  gap: 18px;
  border-radius: 14px;
  color: #dceaf2;
  background: var(--navy-900);
}

.handling-decision-line > strong {
  color: #83e3ce;
  font-size: 14px;
}

.handling-decision-line ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 7px;
  font-size: 13px;
  line-height: 1.5;
}

.handling-device-card > header,
.handling-example-card > header {
  min-width: 0;
  padding: 17px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.handling-device-card h3,
.handling-platform-card h3 {
  margin: 4px 0 0;
  color: var(--navy-900);
  font-size: 17px;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.handling-device-card dl,
.handling-platform-card dl {
  margin: 0;
}

.handling-device-card dl > div,
.handling-platform-card dl > div {
  min-width: 0;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: minmax(125px, 0.43fr) minmax(0, 1.57fr);
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.handling-device-card dl > div:last-child,
.handling-platform-card dl > div:last-child {
  border-bottom: 0;
}

.handling-device-card dt,
.handling-platform-card dt {
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.4;
}

.handling-device-card dd,
.handling-platform-card dd {
  min-width: 0;
  margin: 0;
  color: #536879;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.handling-laptop-warning {
  margin-top: 13px;
}

.handling-example-groups {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.handling-example-group {
  min-width: 0;
  scroll-margin-top: 105px;
  overflow: hidden;
  border: 1px solid #d8e4ed;
  border-radius: 17px;
  background: #f7fafc;
}

.handling-example-group > header {
  min-width: 0;
  padding: 19px 20px 17px;
  border-bottom: 1px solid #d8e4ed;
  background: linear-gradient(135deg, #eef7f5, #f8fbfd);
}

.handling-example-group > header h3 {
  margin: 5px 0 6px;
  color: var(--navy-900);
  font-size: 20px;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.handling-example-group > header p {
  max-width: 970px;
  margin: 0;
  color: #526779;
  font-size: 13px;
  line-height: 1.55;
}

.handling-example-grid {
  padding: 13px;
}

.handling-example-card {
  display: flex;
  flex-direction: column;
}

.handling-example-card > header {
  min-height: 104px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.handling-example-card h4 {
  min-width: 0;
  margin: 0;
  color: var(--navy-900);
  font-size: 15px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.handling-example-card > div {
  min-width: 0;
  padding: 14px 18px;
}

.handling-example-impact {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: #f7fafc;
}

.handling-platform-card > header {
  min-width: 0;
  padding: 19px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #eef6ff, #f6fbff);
}

.handling-platform-card h3 {
  font-size: 21px;
}

.handling-platform-card dl > div {
  grid-template-columns: minmax(135px, 0.45fr) minmax(0, 1.55fr);
}

.handling-platform-warning {
  min-width: 0;
  margin-top: 13px;
  padding: 17px 19px;
  border: 1px solid #bcd2e5;
  border-left: 5px solid var(--blue-700);
  border-radius: 14px;
  color: #2b4f70;
  background: #eff6ff;
}

.handling-platform-warning strong {
  color: #174a82;
  font-size: 14px;
}

.handling-platform-warning p {
  margin: 5px 0 0;
  font-size: var(--text-support);
  line-height: 1.6;
}

.handling-recording-flow {
  min-width: 0;
  padding: 15px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid #c8d9e8;
  border-radius: 14px;
  background: #f1f7fc;
}

.handling-recording-flow span {
  min-width: 0;
  padding: 9px 11px;
  flex: 1 1 145px;
  border: 1px solid #d5e2ed;
  border-radius: 9px;
  color: #31516b;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
}

.handling-recording-flow b {
  color: var(--teal-700);
}

.handling-recording-rules {
  min-width: 0;
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.handling-recording-rules article {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.handling-recording-rules h3 {
  margin: 12px 0 7px;
  color: var(--navy-900);
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.handling-recording-rules p {
  margin: 0;
  color: #536879;
  font-size: 13px;
  line-height: 1.57;
}

.handling-stop-card {
  min-width: 0;
  padding: 24px 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  border: 1px solid #e3b6bb;
  border-radius: 19px;
  color: #fff;
  background:
    radial-gradient(circle at 95% 10%, rgba(255, 255, 255, 0.11), transparent 31%),
    linear-gradient(135deg, #77232c, #a62e38);
  box-shadow: 0 14px 34px rgba(126, 32, 43, 0.15);
}

.handling-stop-card span {
  color: #ffd2d6;
}

.handling-stop-card h2 {
  margin: 4px 0 6px;
  font-size: 24px;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.handling-stop-card p {
  max-width: 930px;
  margin: 0;
  color: #ffe6e8;
  font-size: var(--text-support);
  line-height: 1.58;
}

.handling-stop-card .button {
  min-width: 230px;
  white-space: normal;
}

.handling-source-section {
  background: #f8fafc;
}

.handling-source-grid a {
  min-width: 0;
  min-height: 58px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #d5e1eb;
  border-radius: 12px;
  color: #274e70;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
}

.handling-source-grid a span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.handling-source-grid a b {
  flex: 0 0 auto;
  color: var(--blue-700);
}

.handling-source-grid a:hover {
  border-color: #a9c3da;
  color: var(--blue-700);
  background: #f4f8ff;
}

@media (max-width: 1050px) {
  .handling-guide-hero {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.38fr);
  }

  .handling-section-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .handling-example-card > header {
    grid-template-columns: minmax(0, 1fr);
  }

  .handling-example-card > header .handling-classification {
    justify-self: start;
  }
}

@media (max-width: 900px) {
  .handling-guide-hero,
  .handling-stop-card {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

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

  .handling-jump-links,
  .handling-class-grid,
  .handling-device-grid,
  .handling-example-grid,
  .handling-platform-grid,
  .handling-source-grid,
  .handling-recording-rules {
    grid-template-columns: minmax(0, 1fr);
  }

  .handling-stop-card .button {
    min-width: 0;
    width: 100%;
  }

  .workflow-explanation-grid,
  .page-orientation-grid,
  .simple-role-path-grid,
  .assessment-dependency-flow,
  .decision-example-grid,
  .objective-decision-example-grid,
  .decision-help-details {
    grid-template-columns: 1fr;
  }

  .workflow-explanation-grid article,
  .workflow-explanation-grid article:nth-child(odd),
  .workflow-explanation-grid article:nth-last-child(-n + 2),
  .assessment-dependency-flow article {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid #e1e9f0;
  }

  .workflow-explanation-grid article:last-child,
  .assessment-dependency-flow article:last-child {
    border-bottom: 0;
  }

  .page-orientation-grid article,
  .simple-role-path-grid article {
    border-right: 0;
    border-bottom: 1px solid #e1e9f0;
  }

  .page-orientation-grid article:last-child,
  .simple-role-path-grid article:last-child {
    border-bottom: 0;
  }
}

/* First Assessment Focus Mode
   The full workbench remains available as a reference, while the default path
   shows one owner-bound decision at a time. */
.app-shell.first-assessment-mode {
  grid-template-columns: minmax(0, 1fr);
  background:
    radial-gradient(circle at 50% -8%, rgba(46, 111, 229, 0.1), transparent 34rem),
    var(--surface-soft);
}

.first-assessment-mode .main {
  grid-column: 1;
}

.first-assessment-mode .topbar {
  padding-inline: max(22px, calc((100vw - 1040px) / 2));
}

.first-assessment-mode .content {
  max-width: 1040px;
  padding-top: 36px;
}

.first-assessment-focus {
  display: grid;
  gap: 18px;
}

.focus-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.75fr);
  align-items: center;
  gap: 28px;
  padding: 4px 2px 14px;
}

.focus-brand {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.focus-brand > div > span,
.focus-question-top > div > span,
.quick-assumption > span,
.quick-review-question > span,
.rapid-scope-summary > span {
  color: var(--blue-700);
  font-size: var(--text-meta);
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.focus-brand h2 {
  max-width: 620px;
  margin: 5px 0 7px;
  color: var(--navy-950);
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.focus-brand p {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-support);
  line-height: 1.55;
}

.focus-phase-track {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  list-style: none;
}

.focus-phase-track li {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.focus-phase-track li b {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #c9d6e2;
  border-radius: 50%;
  color: #52677a;
  background: #fff;
}

.focus-phase-track li.complete {
  color: var(--teal-700);
}

.focus-phase-track li.complete b {
  border-color: var(--teal-700);
  color: #fff;
  background: var(--teal-700);
}

.focus-preview-note {
  padding: 12px 15px;
  display: flex;
  gap: 8px;
  border: 1px solid #bdd5f3;
  border-radius: 12px;
  color: #274c70;
  background: #eef6ff;
  font-size: var(--text-support);
  line-height: 1.5;
}

.focus-question-card {
  padding: clamp(24px, 5vw, 46px);
  display: grid;
  gap: 20px;
  border: 1px solid #d6e1eb;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 65px rgba(8, 32, 52, 0.11);
}

.focus-question-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.focus-question-top h2 {
  max-width: 760px;
  margin: 7px 0 0;
  color: var(--navy-950);
  font-size: clamp(25px, 3.4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.focus-role-boundary {
  max-width: 800px;
  margin: 0;
  color: #405365;
  font-size: 16px;
  line-height: 1.6;
}

.focus-assumption-note {
  padding: 13px 15px;
  display: grid;
  gap: 4px;
  border-left: 4px solid var(--amber-700);
  border-radius: 8px;
  color: #60420e;
  background: var(--amber-100);
  font-size: var(--text-support);
  line-height: 1.5;
}

.focus-primary-action {
  width: fit-content;
  min-width: min(360px, 100%);
  min-height: 54px;
  padding-inline: 24px;
  font-size: 15px;
}

.focus-help {
  border-top: 1px solid var(--line);
}

.focus-help > summary {
  padding: 16px 0 2px;
  cursor: pointer;
  color: var(--blue-700);
  font-size: var(--text-support);
  font-weight: 850;
}

.focus-help > div {
  padding-top: 13px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.focus-help article {
  padding: 14px;
  border-radius: 12px;
  background: var(--surface-soft);
}

.focus-help article span {
  font-size: var(--text-meta);
  font-weight: 850;
}

.focus-help article p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: var(--text-support);
  line-height: 1.5;
}

.focus-help a {
  grid-column: 1 / -1;
  color: var(--blue-700);
  font-size: var(--text-support);
  font-weight: 800;
  text-decoration: none;
}

.focus-footer {
  padding: 0 8px;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  color: var(--muted);
}

.focus-footer > div {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.focus-footer strong {
  color: var(--navy-900);
  font-size: 18px;
}

.focus-footer span,
.focus-footer p {
  font-size: var(--text-meta);
}

.focus-footer p {
  margin: 0;
  text-align: right;
}

.focus-workspace-button {
  white-space: nowrap;
}

/* One-fact handoff */
.quick-discovery-modal {
  width: min(650px, 94vw);
}

.quick-discovery-modal footer {
  flex-wrap: wrap;
}

.quick-discovery-body {
  padding: 18px 20px 22px;
  display: grid;
  gap: 14px;
}

.quick-assumption,
.quick-review-question,
.quick-saved-answer {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.quick-assumption {
  margin: 14px 20px 0;
  border-color: #e7c987;
  background: #fff9ed;
}

.quick-discovery-body .quick-assumption {
  margin: 0;
}

.quick-assumption p,
.quick-review-question h3,
.quick-saved-answer p,
.quick-role-rule {
  margin: 6px 0 0;
  line-height: 1.55;
}

.quick-review-question h3 {
  color: var(--navy-950);
  font-size: 19px;
}

.quick-role-rule {
  color: #405365;
  font-size: var(--text-support);
}

.quick-discovery-body .modal-warning {
  margin: 0;
}

.quick-discovery-body > label {
  display: grid;
  gap: 7px;
  color: #405365;
  font-size: var(--text-support);
  font-weight: 800;
}

.quick-discovery-body textarea,
.rapid-scope-modal textarea {
  min-height: 120px;
  padding: 12px;
  border: 1px solid #bdcbd8;
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}

.quick-saved-answer small {
  color: var(--muted);
}

/* One AO setup answer */
.rapid-scope-modal {
  width: min(690px, 94vw);
}

.rapid-scope-modal .scope-form {
  padding-top: 14px;
}

.rapid-scope-modal .scope-form label > span {
  grid-template-columns: 31px minmax(0, 1fr);
  font-size: 15px;
}

.rapid-scope-modal .scope-form label > span b {
  width: 26px;
  height: 26px;
}

.rapid-scope-modal .scope-form label > span i,
.rapid-scope-modal .scope-form label > span small {
  grid-column: 2;
}

.rapid-scope-modal .scope-form label > span small {
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--text-support);
  font-weight: 600;
  line-height: 1.5;
}

.rapid-scope-summary {
  display: grid;
  gap: 10px;
}

.rapid-scope-summary > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.rapid-scope-summary dl {
  margin: 0;
  display: grid;
  gap: 8px;
}

.rapid-scope-summary dl > div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.rapid-scope-summary dt {
  color: var(--muted);
  font-size: var(--text-meta);
  font-weight: 850;
}

.rapid-scope-summary dd {
  margin: 4px 0 0;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* One objective at a time for Ann */
.rapid-assessment-drawer {
  width: min(720px, 96vw);
}

.rapid-assessment-drawer .drawer-body {
  padding: 18px 20px 28px;
}

.rapid-assessment-drawer .objective-panel {
  margin: 0;
  padding: clamp(18px, 4vw, 28px);
}

.rapid-assessment-drawer .objective-panel > h3 {
  margin: 15px 0;
  color: var(--navy-950);
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.25;
}

.rapid-objective-help,
.rapid-evidence-panel,
.rapid-assessment-drawer .objective-basis-panel {
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
}

.rapid-objective-help > summary,
.rapid-only-summary,
.rapid-assessment-drawer .objective-basis-panel > summary {
  padding: 12px 14px;
  cursor: pointer;
  color: var(--blue-700);
  font-size: var(--text-support);
  font-weight: 850;
}

.rapid-objective-help > .objective-decision-help {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0 0 11px 11px;
}

.rapid-evidence-panel[open] {
  padding: 0 13px 13px;
}

.rapid-evidence-panel[open] > summary {
  margin-inline: -13px;
}

.drawer:not(.rapid-assessment-drawer) .rapid-only-summary {
  display: none;
}

.drawer:not(.rapid-assessment-drawer) .rapid-evidence-panel {
  margin: 0;
  border: 0;
  background: transparent;
}

.rapid-assessment-drawer .objective-basis-panel[open] {
  padding: 0 13px 13px;
}

.rapid-assessment-drawer .objective-status-grid {
  margin-top: 16px;
}

.rapid-assessment-drawer .objective-status-grid button {
  min-height: 52px;
  font-size: var(--text-support);
}

.rapid-assessment-drawer .objective-note {
  font-size: var(--text-support);
}

.rapid-assessment-drawer .objective-note textarea {
  min-height: 112px;
}

.rapid-assessment-drawer .objective-nav {
  position: sticky;
  bottom: -12px;
  padding: 12px 0 0;
  background: linear-gradient(transparent, #fff 18%);
}

.rapid-assessment-drawer .drawer-footer {
  justify-content: flex-end;
}

@media (max-width: 800px) {
  .first-assessment-mode .topbar {
    position: static;
    padding: 14px 18px;
    align-items: flex-start;
    flex-direction: column;
  }

  .first-assessment-mode .top-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .focus-workspace-button {
    order: 4;
    width: 100%;
    grid-column: 1 / -1;
  }

  .first-assessment-mode .content {
    padding: 22px 16px 38px;
  }

  .focus-intro {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .focus-question-top {
    flex-direction: column;
  }

  .focus-primary-action {
    width: 100%;
    min-width: 0;
  }

  .focus-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .focus-footer p {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 520px) {
  .focus-phase-track {
    gap: 3px;
  }

  .focus-phase-track li span {
    font-size: 9px;
  }

  .focus-question-card {
    padding: 21px 18px;
    border-radius: 18px;
  }

  .focus-help > div {
    grid-template-columns: 1fr;
  }

  .focus-help a {
    grid-column: auto;
  }

  .quick-discovery-modal,
  .rapid-scope-modal {
    top: 0;
    left: 0;
    width: 100vw;
    max-height: 100dvh;
    min-height: 100dvh;
    transform: none;
    border-radius: 0;
  }
}

@media (max-width: 600px) {
  .quick-discovery-modal footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .quick-discovery-modal footer .button,
  .quick-discovery-modal footer .text-button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .handling-guide {
    gap: 14px;
  }

  .handling-guide-hero,
  .handling-guide-section,
  .handling-stop-card {
    padding: 20px 17px;
    border-radius: 16px;
  }

  .handling-guide-hero h2 {
    font-size: 28px;
  }

  .handling-guide-actions,
  .handling-jump-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .handling-device-card > header {
    flex-direction: column;
  }

  .handling-device-card dl > div,
  .handling-platform-card dl > div,
  .handling-decision-line {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .handling-example-grid {
    padding: 9px;
  }

  .handling-recording-flow {
    align-items: stretch;
    flex-direction: column;
  }

  .handling-recording-flow span {
    flex-basis: auto;
  }

  .handling-recording-flow b {
    display: none;
  }

  .handling-meeting-caution,
  .handling-laptop-warning,
  .handling-platform-warning {
    padding: 15px;
  }

  .workflow-explanation > header {
    flex-direction: column;
  }

  .page-orientation > header {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }

  .page-orientation-actions {
    min-width: 0;
    justify-items: stretch;
    text-align: left;
  }

  .page-orientation-actions .button {
    width: 100%;
    white-space: normal;
  }

  .page-orientation > details > summary,
  .simple-role-path > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-orientation > details > summary {
    justify-content: center;
    gap: 2px;
  }

  .decision-help {
    margin-right: 14px;
    margin-left: 14px;
  }

  .decision-help-compact {
    margin-right: 0;
    margin-left: 0;
  }

  .decision-help-footer {
    flex-direction: column;
  }

  .decision-help-compact > summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .decision-help-compact > summary::after {
    flex: 0 0 auto;
  }

  .modal > .workflow-explanation {
    margin-right: 14px;
    margin-left: 14px;
  }

  .form-save-readiness {
    margin-right: 14px;
    margin-left: 14px;
  }

  .modal-save-status {
    max-width: none;
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.scope-boundary-inventory,
.scope-version-panel {
  margin: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 94%, var(--accent) 6%);
  overflow: hidden;
}

.scope-boundary-inventory > header,
.scope-version-panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.scope-boundary-inventory > header span,
.scope-version-panel > header span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scope-boundary-inventory h3,
.scope-version-panel h2,
.scope-version-panel h3 {
  margin: 0;
}

.scope-boundary-inventory p,
.scope-version-panel p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.scope-boundary-columns > article {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.scope-boundary-columns > article:last-child {
  border-right: 0;
}

.scope-boundary-column-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.scope-boundary-column-heading strong,
.scope-boundary-column-heading small {
  display: block;
}

.scope-boundary-column-heading small {
  margin-top: 3px;
  color: var(--muted);
}

.scope-boundary-column-heading button,
.scope-boundary-record {
  border: 1px solid var(--line);
  color: inherit;
  background: var(--surface);
}

.scope-boundary-column-heading button {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 9px;
  font-weight: 750;
}

.scope-boundary-record {
  display: grid;
  width: 100%;
  gap: 4px;
  margin-top: 8px;
  padding: 12px;
  border-radius: 12px;
  text-align: left;
}

.scope-boundary-record:not(:disabled):hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.scope-boundary-record:disabled {
  cursor: default;
  opacity: 1;
}

.scope-boundary-record span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.scope-boundary-record small {
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.scope-version-panel {
  padding-bottom: 18px;
}

.scope-version-current,
.scope-version-empty {
  margin: 18px 20px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.scope-version-current {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(280px, 1.3fr);
  gap: 18px;
}

.scope-version-current dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.scope-version-current dl > div {
  padding: 10px;
  border-radius: 10px;
  background: var(--surface-soft);
}

.scope-version-current dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.scope-version-current dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.scope-version-current code,
.scope-version-history code {
  grid-column: 1 / -1;
  display: block;
  padding: 10px;
  border-radius: 9px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 0.75rem;
  overflow-wrap: anywhere;
  white-space: normal;
}

.scope-version-stale {
  grid-column: 1 / -1;
  padding: 12px;
  border-left: 4px solid var(--amber-700);
  background: var(--amber-100);
}

.scope-version-panel > small {
  display: block;
  margin: 14px 20px 0;
  color: var(--muted);
}

.scope-version-history {
  margin: 14px 20px 0;
}

.scope-version-history summary {
  cursor: pointer;
  font-weight: 800;
}

.scope-version-history article {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.scope-lock-summary {
  margin: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.scope-lock-summary p {
  margin: 0 0 8px;
  line-height: 1.5;
}

.scope-boundary-detail {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px 20px 22px;
}

.scope-boundary-detail > div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.scope-boundary-detail dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.scope-boundary-detail dd {
  margin: 5px 0 0;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

@media (max-width: 900px) {
  .scope-boundary-columns,
  .scope-version-current {
    grid-template-columns: minmax(0, 1fr);
  }

  .scope-boundary-columns > article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .scope-boundary-columns > article:last-child {
    border-bottom: 0;
  }

  .scope-version-current dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .scope-version-history article {
    grid-template-columns: minmax(0, 1fr);
  }

  .scope-boundary-inventory > header,
  .scope-version-panel > header {
    flex-direction: column;
  }
}
