:root {
  --brand-navy: #132961;
  --brand-green: #2e8b68;
  --brand-soft-green: #a8cfa3;
  --brand-amber: #e9b44c;
  --brand-pale: #f8fbf7;
  --navy: #416c91;
  --green: #337f6d;
  --soft-green: #c3ddd4;
  --amber: #e3b765;
  --pale: #f5f9fa;
  --ink: #263b4d;
  --muted: #5d7284;
  --line: #dde8ea;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.86);
  --shadow: 0 14px 38px rgba(65, 108, 145, 0.09);
  --font: "Times New Roman", Georgia, serif;
  --font-display: "Times New Roman", Georgia, serif;
}

* {
  box-sizing: border-box;
  -webkit-user-drag: none;
}

html {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--pale);
  overscroll-behavior-x: none;
  -webkit-text-size-adjust: 100%;
  touch-action: pan-y;
}

body {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--pale);
  font-family: var(--font);
  letter-spacing: 0;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

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

input,
select,
textarea {
  -webkit-touch-callout: default;
  -webkit-user-select: text;
  user-select: text;
}

button {
  border: 0;
}

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

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1,
h2,
h3,
.module-title,
.brand-menu button strong,
.contract-review-dropzone strong,
.glossary-term-select strong,
.progress-module-row strong {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.012em;
}

.module-title {
  font-size: 18px;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--brand-pale);
  transition:
    opacity 1250ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 1250ms step-end;
}

.splash-grid {
  display: none;
}

.splash-lockup {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 20px;
  width: min(420px, calc(100vw - 48px));
  padding: 36px 28px;
  filter: blur(0);
  transform: translateY(-40px);
  will-change: opacity, filter, transform;
  transition:
    opacity 980ms cubic-bezier(0.4, 0, 0.2, 1),
    filter 1100ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.splash-mark {
  width: 184px;
  height: 132px;
  overflow: visible;
}

.mark-path {
  fill: none;
  stroke: var(--brand-navy);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 190;
  stroke-dashoffset: 190;
  animation: drawPath 1450ms cubic-bezier(0.45, 0, 0.2, 1) 240ms forwards;
}

.mark-dot {
  fill: var(--brand-amber);
  opacity: 0;
  transform: scale(0.72);
  transform-origin: 166px 17px;
  animation: dotIn 620ms ease 1580ms forwards;
}

.mark-halo {
  fill: none;
  stroke: var(--brand-amber);
  stroke-width: 1.4;
  opacity: 0;
  transform: scale(0.75);
  transform-origin: 166px 17px;
}

.splash-name {
  margin: 0;
  color: var(--brand-navy);
  font-family: "Times New Roman", Georgia, serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.025em;
  opacity: 0;
  transform: translateY(6px);
  animation: splashNameIn 700ms ease 1120ms forwards;
}

.splash-exit {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-exit .splash-grid,
.splash-exit .splash-lockup {
  opacity: 0;
}

.splash-exit .splash-lockup {
  filter: blur(9px);
  transform: translateY(-54px) scale(0.98);
}

.app-shell {
  width: min(520px, 100%);
  max-width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 18px calc(112px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  opacity: 0;
  transform: translateY(10px);
  touch-action: pan-y;
  transition:
    opacity 720ms ease,
    transform 720ms ease;
}

.app-ready .app-shell {
  opacity: 1;
  transform: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  --logo-spread: 8px;
  display: grid;
  grid-template-columns: minmax(126px, 1fr) 46px minmax(126px, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 62px;
  margin: 0 -18px 14px;
  padding: 10px 18px;
  background: rgba(245, 249, 250, 0.86);
  backdrop-filter: blur(18px);
}

.brand-menu-shell {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: 132px;
  min-height: 42px;
  transform: translateX(calc(var(--logo-spread) * -1));
}

.brand-lockup {
  display: grid;
  place-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  min-height: 42px;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: center;
}

.brand-name {
  display: block;
  color: var(--brand-navy);
  font-family: "Times New Roman", Georgia, serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.025em;
  text-align: center;
}

.brand-space {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  justify-content: center;
  color: var(--brand-green);
  font-size: 8.5px;
  font-weight: 820;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-space-chevron {
  display: inline-block;
  color: var(--muted);
  font-size: 11px;
  line-height: 0.7;
  transform: translateY(-1px);
  transition: transform 140ms ease;
}

.brand-lockup[aria-expanded="true"] .brand-space-chevron {
  transform: translateY(1px) rotate(180deg);
}

.brand-lockup:focus-visible {
  border-radius: 8px;
  outline: 2px solid rgba(51, 127, 109, 0.42);
  outline-offset: 2px;
}

.brand-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 12;
  display: grid;
  gap: 4px;
  width: min(286px, calc(100vw - 28px));
  padding: 8px;
  border: 1px solid rgba(65, 108, 145, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(65, 108, 145, 0.16);
  backdrop-filter: blur(18px);
}

.brand-menu[hidden] {
  display: none;
}

.brand-menu-title {
  margin: 1px 8px 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 820;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.brand-menu button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  color: var(--navy);
  background: transparent;
  text-align: left;
}

.brand-menu button:hover,
.brand-menu button:focus-visible {
  background: rgba(51, 127, 109, 0.08);
  outline: none;
}

.brand-menu button > span:first-child {
  display: grid;
  gap: 3px;
}

.brand-menu button strong {
  font-size: 13px;
  font-weight: 400;
}

.brand-menu button small {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 620;
  line-height: 1.25;
}

.brand-menu-check {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(65, 108, 145, 0.18);
  border-radius: 50%;
}

.brand-menu-option-active .brand-menu-check {
  border-color: var(--green);
  background:
    radial-gradient(circle, var(--green) 0 3px, transparent 3.5px);
}

.brand-menu-option-active {
  background: rgba(51, 127, 109, 0.06) !important;
}

.brand-menu-divider {
  height: 1px;
  margin: 4px 8px 2px;
  background: rgba(65, 108, 145, 0.09);
}

.brand-menu-tool-title {
  margin-top: 2px;
}

.brand-menu-tool {
  background: rgba(65, 108, 145, 0.035) !important;
}

[data-private-questionnaire-tool][hidden] {
  display: none !important;
}

.brand-menu-tool:hover,
.brand-menu-tool:focus-visible {
  background: rgba(51, 127, 109, 0.1) !important;
}

.brand-menu-arrow {
  justify-self: center;
  color: var(--green);
  font-size: 16px;
  font-weight: 720;
}

.progress-orb {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(51, 127, 109, 0.24);
  border-radius: 50%;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 12px 28px rgba(65, 108, 145, 0.08);
}

.progress-orb span {
  font-size: 12px;
  font-weight: 700;
}

.compass-orb {
  position: relative;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

body[data-space="learning"] .compass-orb {
  visibility: hidden;
  pointer-events: none;
}

.compass-orb-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
}

.compass-orb-mark svg {
  display: block;
  width: 34px;
  height: 34px;
  overflow: visible;
}

.compass-path,
.compass-arrow {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.compass-path {
  opacity: 0.96;
}

.compass-arrow {
  stroke-width: 1.8;
}

.compass-dot {
  fill: var(--amber);
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 1.1;
}

.compass-open .compass-orb,
.compass-orb:focus-visible {
  border-color: rgba(51, 127, 109, 0.46);
  box-shadow: 0 16px 34px rgba(65, 108, 145, 0.12);
}

.compass-orb:active {
  transform: scale(0.98);
}

.compass-panel {
  position: fixed;
  left: 50%;
  top: calc(72px + env(safe-area-inset-top));
  z-index: 18;
  width: min(476px, calc(100vw - 28px));
  transform: translateX(-50%);
  pointer-events: none;
  touch-action: pan-y;
}

.compass-panel[hidden] {
  display: none;
}

.compass-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(65, 108, 145, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 52px rgba(65, 108, 145, 0.16);
  backdrop-filter: blur(18px);
  pointer-events: auto;
  touch-action: pan-y;
}

.compass-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: start;
}

.compass-head h2 {
  max-width: none;
  margin: 2px 0 0;
  font-size: 20px;
  line-height: 1.08;
}

.compass-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(65, 108, 145, 0.08);
  border-radius: 50%;
  color: var(--navy);
  background: rgba(245, 249, 250, 0.74);
  font-size: 22px;
  line-height: 1;
}

.compass-search-label {
  display: grid;
  gap: 6px;
}

.compass-search-label span {
  color: var(--green);
  font-size: 10.5px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compass-search-label input {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(65, 108, 145, 0.1);
  border-radius: 12px;
  color: var(--navy);
  background: rgba(245, 249, 250, 0.72);
  font: inherit;
  font-size: 14px;
  outline: 0;
}

.compass-search-label input:focus {
  border-color: rgba(51, 127, 109, 0.42);
  box-shadow: 0 0 0 3px rgba(51, 127, 109, 0.08);
}

.compass-hint {
  margin: -1px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
}

.compass-results .scenario-result-meta {
  margin-top: 2px;
}

.compass-results .scenario-result-list {
  max-height: min(52vh, 420px);
  overflow-y: auto;
  padding-right: 2px;
  -webkit-overflow-scrolling: touch;
}

.compass-results .scenario-result-card {
  min-height: auto;
  padding: 12px;
  border-radius: 13px;
}

.compass-results .scenario-result-card h3 {
  font-size: 15px;
}

.compass-results .scenario-result-card p {
  font-size: 12.5px;
}

.compass-empty {
  padding: 10px 0 0;
}

.partner-lockup {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 132px;
  min-height: 42px;
  padding: 0;
  background: transparent;
  text-decoration: none;
  transform: translate(var(--logo-spread), -7px);
  transition: opacity 160ms ease;
}

.partner-lockup:hover,
.partner-lockup:focus-visible {
  opacity: 0.72;
}

.partner-name {
  display: block;
  color: var(--brand-navy);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.018em;
  text-align: center;
}

.screen {
  display: grid;
  gap: 14px;
  transform-origin: center top;
  transition:
    opacity 95ms cubic-bezier(0.33, 1, 0.68, 1),
    transform 105ms cubic-bezier(0.33, 1, 0.68, 1);
  will-change: opacity, transform;
}

.route-is-changing .screen {
  pointer-events: none;
}

.screen-transition-out {
  opacity: 0.62;
  transform: translateY(3px) scale(0.998);
}

.screen-transition-in {
  animation: screenEnter 190ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-band,
.continue-panel,
.module-card,
.video-panel,
.content-section,
.lesson-row,
.criteria-panel,
.question-block,
.result-panel,
.source-foundation,
.source-group,
.registration-panel,
.profile-panel,
.scenario-search-panel,
.scenario-results-panel,
.law-search-panel,
.law-article-shell,
.law-empty,
.editor-form,
.analytics-row {
  border: 1px solid rgba(65, 108, 145, 0.08);
  border-radius: 8px;
  background: var(--surface-soft);
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  min-height: 158px;
  padding: 20px;
  align-items: center;
  box-shadow: var(--shadow);
}

.hero-content {
  min-width: 0;
}

.hero-band-compact {
  grid-template-columns: 1fr;
  min-height: 176px;
}

.hero-label {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow,
.section-kicker,
.module-index {
  margin: 0;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 14ch;
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 29px;
  font-weight: 400;
  line-height: 1.08;
}

.hero-title {
  max-width: none;
  margin-bottom: 10px;
  font-size: 15.75px;
  line-height: 1.1;
  white-space: nowrap;
}

h2 {
  margin: 7px 0 0;
  color: var(--navy);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.16;
}

h3 {
  margin: 6px 0 0;
  color: var(--navy);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.16;
}

.hero-copy {
  max-width: 31ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.hero-band:not(.hero-band-compact) .hero-copy {
  max-width: 36ch;
}

.hero-path-line {
  position: relative;
  width: min(220px, 100%);
  height: 4px;
  margin-top: 13px;
}

.hero-path-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  border-radius: 999px;
  height: 4px;
  background:
    radial-gradient(circle at calc(100% - 2px) 50%, var(--amber) 0 2px, transparent 2.2px),
    linear-gradient(rgba(51, 127, 109, 0.66) 0 0) 0 50% / calc(100% - 9px) 1px no-repeat;
}

.hero-path-line span {
  display: none;
}

.scenario-search-panel {
  display: grid;
  gap: 7px;
  padding: 11px 12px;
  box-shadow: 0 8px 18px rgba(65, 108, 145, 0.045);
}

.space-intro-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  box-shadow: 0 8px 18px rgba(65, 108, 145, 0.045);
}

.space-intro-card h1 {
  max-width: none;
  margin: 2px 0 3px;
  font-size: 18px;
  line-height: 1.05;
}

.space-intro-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.25;
}

.space-intro-card .eyebrow {
  font-size: 8px;
}

.space-intro-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(51, 127, 109, 0.18);
  border-radius: 999px;
  color: var(--green);
  background: rgba(245, 249, 250, 0.82);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.scenario-search-label {
  display: grid;
  gap: 6px;
}

.scenario-search-label span {
  color: var(--green);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scenario-search-label input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(65, 108, 145, 0.12);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.3;
  outline: none;
}

.scenario-search-label input:focus {
  border-color: rgba(51, 127, 109, 0.42);
  box-shadow: 0 0 0 3px rgba(51, 127, 109, 0.1);
}

.scenario-empty {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.scenario-empty p {
  margin: 0;
}

.scenario-hint {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 620;
  line-height: 1.25;
}

.scenario-examples {
  display: grid;
  gap: 7px;
}

.scenario-examples button {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid rgba(51, 127, 109, 0.12);
  border-radius: 8px;
  color: var(--navy);
  background: rgba(245, 249, 250, 0.74);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.24;
  text-align: left;
}

.scenario-result-meta {
  display: flex;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.scenario-result-meta small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 720;
  text-align: right;
}

.scenario-result-list {
  display: grid;
  gap: 8px;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding-right: 2px;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.scenario-result-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(65, 108, 145, 0.08);
  border-radius: 8px;
  color: inherit;
  background:
    linear-gradient(90deg, rgba(51, 127, 109, 0.045), transparent 68%),
    rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.scenario-result-card h3 {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.14;
}

.scenario-result-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.scenario-result-card .article-action {
  opacity: 0.72;
  white-space: nowrap;
}

.scenario-results-panel {
  display: none;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  padding: 10px;
  box-shadow: 0 10px 24px rgba(65, 108, 145, 0.06);
}

.scenario-results-panel > div {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
}

.hero-metric {
  display: grid;
  align-content: center;
  justify-items: center;
  width: 66px;
  height: 66px;
  border: 1px solid rgba(51, 127, 109, 0.25);
  border-radius: 50%;
  background: #fbfdf9;
}

.hero-metric span {
  color: var(--navy);
  font-size: 28px;
  font-weight: 650;
  line-height: 1;
}

.hero-metric small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.hero-summary {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.hero-note {
  max-width: none;
  text-align: center;
}

.hero-note span {
  display: block;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
}

.continue-panel,
.criteria-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
}

.continue-panel p,
.criteria-panel p {
  max-width: 31ch;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.primary-action,
.secondary-action,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.primary-action {
  min-width: 92px;
  padding: 0 17px;
  color: #ffffff;
  background: var(--navy);
  box-shadow: 0 12px 26px rgba(65, 108, 145, 0.18);
}

.primary-action-wide {
  width: 100%;
}

.secondary-action {
  min-width: 82px;
  padding: 0 14px;
  border: 1px solid rgba(65, 108, 145, 0.1);
  color: var(--navy);
  background: rgba(255, 255, 255, 0.72);
}

.secondary-action:disabled {
  color: rgba(93, 114, 132, 0.48);
  background: rgba(255, 255, 255, 0.46);
}

.profile-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.profile-panel h2 {
  margin-bottom: 0;
}

.registration-form {
  display: grid;
  gap: 12px;
}

.registration-form label {
  display: grid;
  gap: 7px;
}

.registration-form label span {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.registration-form input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(65, 108, 145, 0.12);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(245, 249, 250, 0.78);
  font-size: 15px;
}

.registration-error {
  margin: -2px 0 0;
  padding: 11px 12px;
  border: 1px solid rgba(176, 54, 54, 0.2);
  border-radius: 8px;
  color: #8a2d2d;
  background: rgba(176, 54, 54, 0.07);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.profile-summary,
.profile-photo-field {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border: 1px solid rgba(51, 127, 109, 0.22);
  border-radius: 50%;
  color: var(--navy);
  background: rgba(245, 249, 250, 0.94);
  font-size: 18px;
  font-weight: 850;
}

.profile-avatar-large {
  width: 72px;
  height: 72px;
  font-size: 22px;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo-control {
  min-width: 0;
}

.profile-photo-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.profile-photo-control strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(65, 108, 145, 0.1);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 800;
}

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

.profile-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid rgba(65, 108, 145, 0.08);
  border-radius: 8px;
  color: var(--navy);
  background: rgba(245, 249, 250, 0.82);
  text-align: left;
}

.profile-row strong {
  display: block;
  font-size: 15px;
  font-weight: 750;
}

.profile-row span,
.profile-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-registry-panel {
  gap: 16px;
}

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

.registry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.sync-state {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(65, 108, 145, 0.08);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(245, 249, 250, 0.78);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.sync-state-ok {
  border-color: rgba(51, 127, 109, 0.18);
  color: var(--green);
  background: rgba(195, 221, 212, 0.16);
}

.sync-state-error {
  border-color: rgba(176, 54, 54, 0.18);
  color: #8a2d2d;
  background: rgba(176, 54, 54, 0.06);
}

.participant-table {
  overflow-x: auto;
  border: 1px solid rgba(65, 108, 145, 0.08);
  border-radius: 8px;
  background: #ffffff;
}

.participant-row {
  display: grid;
  grid-template-columns: minmax(178px, 1.45fr) 72px repeat(6, 74px) 86px;
  min-width: 820px;
  border-top: 1px solid rgba(65, 108, 145, 0.07);
}

.participant-row:first-child {
  border-top: 0;
}

.participant-row span {
  display: grid;
  align-content: center;
  min-height: 52px;
  padding: 9px 10px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.participant-row-head span {
  min-height: 38px;
  color: var(--green);
  background: rgba(245, 249, 250, 0.82);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.participant-row strong,
.participant-row small {
  display: block;
}

.participant-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.participant-total {
  color: var(--green) !important;
  font-size: 15px !important;
}

.registry-empty {
  padding: 14px;
  border: 1px dashed rgba(65, 108, 145, 0.16);
  border-radius: 8px;
  background: rgba(245, 249, 250, 0.68);
}

.registry-empty strong {
  color: var(--navy);
  font-size: 15px;
}

.profile-delete {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(65, 108, 145, 0.08);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 750;
}

.ghost-button {
  width: 42px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(65, 108, 145, 0.1);
}

.module-grid,
.lesson-list,
.source-groups,
.analytics-grid {
  display: grid;
  gap: 12px;
}

.module-grid {
  grid-template-columns: 1fr;
  width: 100%;
  gap: 10px;
}

.module-card {
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(65, 108, 145, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(65, 108, 145, 0.08);
  transform-origin: center;
  transition:
    transform 160ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.module-card::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 1px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 100% 50%, var(--amber) 0 2px, transparent 2.4px),
    linear-gradient(90deg, rgba(51, 127, 109, 0.08), rgba(51, 127, 109, 0.72) 76%, transparent 76%);
  opacity: 0;
  transform: scaleX(0.42);
  transform-origin: left center;
  transition:
    opacity 150ms ease,
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.module-card-button {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 78px;
  padding: 12px 14px;
  border: 0;
  border-radius: 0;
  color: var(--navy);
  background: transparent;
  box-shadow: none;
  text-align: left;
  transition:
    background 120ms ease,
    transform 140ms cubic-bezier(0.22, 1, 0.36, 1);
}

.module-card:has(.module-card-button:active),
.module-card-opening {
  border-color: rgba(51, 127, 109, 0.2);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 30px rgba(65, 108, 145, 0.1);
  transform: translateY(-1px) scale(0.998);
}

.module-card:has(.module-card-button:active)::after,
.module-card-opening::after {
  opacity: 1;
  transform: scaleX(1);
}

.module-card:has(.module-card-button:active) .module-icon,
.module-card-opening .module-icon {
  opacity: 0.62;
  transform: scale(1.02);
}

.module-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  opacity: 0.48;
  border: 1px solid rgba(51, 127, 109, 0.16);
  border-radius: 50%;
  background:
    radial-gradient(circle at 70% 24%, rgba(227, 183, 101, 0.16), transparent 26%),
    rgba(245, 249, 250, 0.76);
  color: currentColor;
  transition:
    opacity 140ms ease,
    transform 150ms cubic-bezier(0.22, 1, 0.36, 1);
}

.module-icon svg {
  width: 88%;
  height: 88%;
  fill: none;
  stroke-width: 2.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.module-seal {
  stroke: rgba(51, 127, 109, 0.28);
  stroke-width: 1.45;
}

.module-main {
  stroke: var(--navy);
}

.module-path {
  stroke: var(--green);
}

.module-dot {
  fill: var(--amber);
  stroke: none;
}

.module-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.module-title {
  color: var(--navy);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.1;
}

.module-focus {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-row-end {
  display: grid;
  gap: 5px;
  justify-items: end;
  opacity: 0.48;
}

.module-meta {
  color: var(--green);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.1;
  text-align: right;
  white-space: nowrap;
}

.module-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(65, 108, 145, 0.08);
  border-radius: 50%;
  color: var(--navy);
  background: rgba(245, 249, 250, 0.88);
  font-size: 15px;
  font-weight: 750;
}

body[data-route="progress"] {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

body[data-route="progress"] .app-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  min-height: 100svh;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

body[data-route="progress"] button,
body[data-route="progress"] a {
  touch-action: manipulation;
}

body[data-route="progress"] .screen {
  display: grid;
  min-height: 0;
  overflow: hidden;
}

.progress-card {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 12px;
  border: 1px solid rgba(65, 108, 145, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.progress-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 82px;
}

.progress-hero h1 {
  max-width: none;
  margin: 2px 0 4px;
  font-size: 31px;
  line-height: 0.98;
}

.progress-hero p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.progress-profile-compact,
.progress-profile-edit-card {
  min-height: 58px;
  padding: 8px;
  border: 1px solid rgba(65, 108, 145, 0.08);
  border-radius: 8px;
  background: rgba(245, 249, 250, 0.84);
}

.progress-profile-compact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
}

.progress-profile-compact .profile-avatar,
.progress-profile-edit-head .profile-avatar {
  width: 40px;
  height: 40px;
  font-size: 14px;
}

.progress-profile-compact h2 {
  margin: 1px 0 0;
  overflow: hidden;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-profile-compact p:not(.eyebrow) {
  margin: 1px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-profile-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
}

.progress-profile-edit {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(65, 108, 145, 0.08);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.74);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.progress-profile-edit-card {
  display: grid;
  gap: 8px;
}

.progress-profile-edit-head,
.progress-edit-fields {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}

.progress-edit-fields {
  grid-template-columns: 1fr 1fr;
}

.progress-profile-edit-card label {
  gap: 4px;
}

.progress-profile-edit-card input {
  height: 34px;
  font-size: 13px;
}

.progress-photo-control strong {
  min-height: 30px;
  padding: 0 10px;
  font-size: 11px;
}

.progress-module-list {
  display: grid;
  grid-template-rows: repeat(6, minmax(0, 1fr));
  gap: 6px;
  min-height: 0;
}

.progress-module-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 0;
  padding: 7px 9px;
  border: 1px solid rgba(65, 108, 145, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.progress-module-copy {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.progress-module-index {
  color: var(--green);
  font-size: 10px;
  font-weight: 850;
}

.progress-module-row h3 {
  margin: 0;
  overflow: hidden;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-module-row p {
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-module-row strong {
  color: var(--green);
  font-size: 13px;
  font-weight: 400;
}

body[data-route="home"] {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

body[data-route="home"] .app-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  min-height: 100svh;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

body[data-route="home"] button,
body[data-route="home"] a {
  touch-action: manipulation;
}

body[data-route="home"] .screen {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}

body[data-route="home"] .hero-band {
  min-height: 104px;
  padding: 12px 14px;
  gap: 10px;
}

body[data-route="home"] .hero-label {
  margin-bottom: 5px;
  font-size: 8.5px;
}

body[data-route="home"] .hero-title {
  margin-bottom: 5px;
  font-size: 15px;
}

body[data-route="home"] .hero-copy {
  max-width: 30ch;
  font-size: 12px;
  line-height: 1.28;
}

body[data-route="home"] .hero-path-line {
  width: min(170px, 100%);
  height: 3px;
  margin-top: 7px;
}

body[data-route="home"] .hero-metric {
  width: 52px;
  height: 52px;
}

body[data-route="home"] .hero-metric span {
  font-size: 22px;
}

body[data-route="home"] .hero-metric small {
  margin-top: 4px;
  font-size: 8.5px;
}

body[data-route="home"] .hero-note span {
  font-size: 8.5px;
}

body[data-route="home"] .scenario-search-panel {
  gap: 5px;
  padding: 8px 10px;
  box-shadow: 0 6px 14px rgba(65, 108, 145, 0.04);
}

body[data-route="home"] .scenario-search-label {
  gap: 4px;
}

body[data-route="home"] .scenario-search-label span {
  font-size: 8px;
}

body[data-route="home"] .scenario-search-label input {
  height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

body[data-route="home"] .scenario-hint {
  font-size: 9.5px;
  line-height: 1.18;
}

body[data-route="home"] .scenario-empty {
  gap: 7px;
  font-size: 10.5px;
  line-height: 1.25;
}

body[data-route="home"] .scenario-examples {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 1px;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
}

body[data-route="home"] .scenario-examples button {
  flex: 0 0 148px;
  display: -webkit-box;
  overflow: hidden;
  min-height: 32px;
  padding: 6px 7px;
  font-size: 9px;
  line-height: 1.14;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-route="home"] .scenario-result-list {
  max-height: 100%;
}

body[data-route="home"] .scenario-result-card {
  min-height: 58px;
  padding: 8px 10px;
}

body[data-route="home"] .scenario-result-card h3 {
  font-size: 12.5px;
}

body[data-route="home"] .scenario-result-card p {
  font-size: 10px;
}

body[data-route="home"] .compass-panel .scenario-result-list,
.compass-panel .scenario-result-list {
  max-height: min(44vh, 340px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

body[data-route="home"] .compass-panel .scenario-result-card,
.compass-panel .scenario-result-card {
  min-height: auto;
  padding: 12px;
}

body[data-route="home"] .compass-panel .scenario-result-card h3,
.compass-panel .scenario-result-card h3 {
  font-size: 15px;
}

body[data-route="home"] .compass-panel .scenario-result-card p,
.compass-panel .scenario-result-card p {
  font-size: 12.5px;
}

body[data-route="home"].scenario-search-active .scenario-results-panel {
  display: grid;
  grid-template-rows: auto;
  min-height: 0;
  overflow: visible;
  touch-action: pan-y;
}

body[data-route="home"].scenario-search-active {
  position: relative;
  inset: auto;
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
}

body[data-route="home"].scenario-search-active .app-shell {
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: visible;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
  overscroll-behavior-y: contain;
  touch-action: pan-y;
}

body[data-route="home"].scenario-search-active .screen {
  grid-template-rows: auto auto auto;
  align-content: start;
  overflow: visible;
}

body[data-route="home"].scenario-search-active .scenario-results-panel > div {
  grid-template-rows: auto auto;
}

body[data-route="home"].scenario-search-active .scenario-result-list {
  min-height: 0;
  overflow: visible;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

body[data-route="home"].scenario-search-active .compass-panel .scenario-result-list {
  max-height: min(44vh, 340px);
  overflow-y: auto;
}

body[data-route="home"].scenario-search-active .module-grid {
  display: none;
}

body[data-route="contract-review"] .app-shell {
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
}

body[data-route="home"] .module-grid {
  --home-module-row-height: clamp(48px, calc((80dvh - 222.4px) / 6), 62px);
  grid-template-rows: repeat(6, var(--home-module-row-height));
  align-content: start;
  gap: 6px;
  min-height: 0;
  overflow: hidden;
}

body[data-space="learning"][data-route="home"] .screen {
  grid-template-rows: auto minmax(0, 1fr);
}

body[data-route="home"] .module-card {
  min-height: 0;
  box-shadow: 0 6px 16px rgba(65, 108, 145, 0.07);
}

body[data-route="home"] .module-card-button {
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 8px;
  height: 100%;
  min-height: 0;
  padding: 6px 10px;
}

body[data-route="home"] .module-icon {
  width: 36px;
  height: 36px;
}

body[data-route="home"] .module-icon svg {
  width: 86%;
  height: 86%;
  stroke-width: 2.55;
}

body[data-route="home"] .module-copy {
  align-content: center;
  gap: 2px;
}

body[data-route="home"] .module-title {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

body[data-route="home"] .module-focus {
  display: none;
}

body[data-route="home"] .module-row-end {
  gap: 2px;
}

body[data-route="home"] .module-meta {
  font-size: 9.5px;
}

body[data-route="home"] .module-arrow {
  width: 22px;
  height: 22px;
  font-size: 12px;
}

.module-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.module-context-head {
  grid-template-columns: minmax(0, 1fr) 34px 34px;
  grid-template-areas: "copy icon back";
  align-items: center;
  gap: 7px;
  min-height: 62px;
  padding: 8px 10px;
  overflow: hidden;
}

.module-context-head .module-back-button {
  grid-area: back;
  align-self: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  opacity: 0.78;
}

.module-context-copy {
  grid-area: copy;
  min-width: 0;
}

.module-head h1 {
  margin-top: 4px;
}

.module-head .hero-copy {
  max-width: 38ch;
}

.module-context-head h1 {
  display: -webkit-box;
  overflow: hidden;
  max-width: none;
  margin: 1px 0 2px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.12;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.module-context-head .hero-copy {
  display: -webkit-box;
  overflow: hidden;
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.module-context-head .eyebrow {
  font-size: 8px;
  line-height: 1.1;
}

.module-head-icon {
  grid-area: icon;
  justify-self: center;
  width: 32px;
  height: 32px;
  opacity: 0.38;
  pointer-events: none;
}

.module-head-icon svg {
  width: 86%;
  height: 86%;
  stroke-width: 2.45;
}

.video-panel {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.video-panel-button {
  width: 100%;
  color: inherit;
  text-align: left;
}

.video-panel-button:active {
  transform: translateY(1px);
}

.play-mark {
  position: relative;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(51, 127, 109, 0.28);
  border-radius: 50%;
  background: #fbfdf9;
}

.play-mark::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 25px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid var(--navy);
}

.video-launch {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-top: 14px;
  padding: 6px 11px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--navy);
  font-size: 12px;
  font-weight: 750;
}

.presentation-stage {
  display: grid;
  gap: 12px;
}

.presentation-progress {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(195, 221, 212, 0.34);
}

.presentation-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.presentation-frame,
.speaker-notes,
.presentation-video-meta,
.presentation-controls {
  border: 1px solid rgba(65, 108, 145, 0.08);
  border-radius: 8px;
  background: var(--surface-soft);
}

.presentation-frame {
  min-height: 360px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(65, 108, 145, 0.04), transparent 46%),
    #ffffff;
  box-shadow: var(--shadow);
}

.presentation-frame h2 {
  max-width: 12ch;
  margin-top: 10px;
  font-size: 32px;
  line-height: 1.06;
}

.presentation-frame > p:not(.section-kicker) {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
}

.presentation-points {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.presentation-points span {
  display: block;
  padding: 10px 12px;
  border-left: 3px solid var(--green);
  border-radius: 6px;
  color: var(--navy);
  background: rgba(245, 249, 250, 0.82);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.speaker-notes {
  padding: 16px;
}

.speaker-notes p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.48;
}

.presentation-stage-video {
  gap: 14px;
}

.presentation-video-frame {
  overflow: hidden;
  border: 1px solid rgba(65, 108, 145, 0.12);
  border-radius: 8px;
  background: #071327;
  box-shadow: var(--shadow);
}

.presentation-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #071327;
}

.presentation-video-meta {
  padding: 18px;
}

.presentation-video-meta h2 {
  margin: 8px 0 0;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.12;
}

.presentation-controls {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.82);
}

.chapter-row,
.check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chapter-row span,
.check-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(51, 127, 109, 0.2);
  border-radius: 999px;
  color: var(--green);
  background: rgba(245, 249, 250, 0.76);
  font-size: 12px;
  font-weight: 650;
}

.content-section {
  padding: 18px;
}

.section-heading {
  margin-bottom: 14px;
}

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

.briefing-list p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.52;
}

.lesson-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 16px;
}

.lesson-row > span {
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
}

.glossary-row {
  grid-template-columns: 86px 1fr;
}

.glossary-row > span {
  max-width: 78px;
  line-height: 1.12;
}

.lesson-row p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.article-panel {
  overflow: hidden;
  border: 1px solid rgba(65, 108, 145, 0.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.article-panel summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 0 18px;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  background:
    radial-gradient(circle at 96% 18%, rgba(227, 183, 101, 0.16), transparent 14%),
    rgba(245, 249, 250, 0.92);
}

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

.article-panel summary span {
  font-size: 16px;
  font-weight: 750;
}

.article-panel summary small {
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
  text-align: right;
}

.article-panel-direct {
  overflow: hidden;
}

.article-panel-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 0;
  color: var(--navy);
  cursor: pointer;
  background:
    radial-gradient(circle at 96% 18%, rgba(227, 183, 101, 0.16), transparent 14%),
    rgba(245, 249, 250, 0.92);
  font-family: inherit;
  text-align: left;
}

.article-panel-link span {
  font-size: 16px;
  font-weight: 750;
}

.article-panel-link small {
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
  text-align: right;
}

.module-section-menu {
  display: grid;
  gap: 7px;
}

.module-section-row {
  overflow: hidden;
  min-height: 50px;
  border: 1px solid rgba(65, 108, 145, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 7px 18px rgba(65, 108, 145, 0.07);
  transition:
    transform 140ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease;
}

.module-section-row.article-panel-link {
  grid-template-columns: minmax(0, 1fr) minmax(70px, 118px);
  min-height: 50px;
  padding: 0 10px;
  background:
    radial-gradient(circle at 96% 18%, rgba(227, 183, 101, 0.11), transparent 13%),
    rgba(255, 255, 255, 0.92);
}

.module-section-row.article-panel-link span {
  color: var(--navy);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.12;
}

.module-section-row.article-panel-link small {
  color: var(--green);
  font-size: 9.5px;
  font-weight: 750;
  line-height: 1.15;
  opacity: 0.86;
  text-align: right;
}

.module-section-row:active {
  border-color: rgba(51, 127, 109, 0.2);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 24px rgba(65, 108, 145, 0.09);
  transform: translateY(1px);
}

.module-section-content {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.article-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.module-section-content > .article-list {
  padding: 0;
}

.article-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(65, 108, 145, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(65, 108, 145, 0.07);
}

.article-card-text {
  grid-template-columns: 1fr;
}

.work-checklist-card {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
}

.work-checklist-index {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(51, 127, 109, 0.18);
  border-radius: 50%;
  color: var(--green);
  background: rgba(245, 249, 250, 0.92);
  font-size: 10px;
  font-weight: 820;
}

.article-card-action {
  align-items: center;
}

.module-video-card {
  gap: 12px;
}

.module-video-player {
  width: 100%;
  max-height: 380px;
  border: 1px solid rgba(65, 108, 145, 0.1);
  border-radius: 8px;
  background: #000000;
  box-shadow: 0 14px 32px rgba(65, 108, 145, 0.08);
}

.module-video-card .article-action {
  justify-self: start;
}

.article-topic {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.18;
}

.article-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.task-card {
  align-items: start;
}

.task-card h3 {
  max-width: 28rem;
}

.task-question {
  color: var(--navy) !important;
  font-weight: 750;
}

.task-response-field {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.task-response-field span {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.task-response-field textarea {
  width: 100%;
  min-height: 132px;
  padding: 12px;
  border: 1px solid rgba(65, 108, 145, 0.12);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.42;
  resize: vertical;
}

.task-check-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 12px;
  padding: 0 18px;
  border: 1px solid rgba(51, 127, 109, 0.2);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(195, 221, 212, 0.18);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
}

.task-feedback-panel {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 13px;
  border: 1px solid rgba(51, 127, 109, 0.16);
  border-radius: 8px;
  background: rgba(245, 249, 250, 0.94);
}

.task-feedback-score {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.task-feedback-score strong {
  color: var(--green);
  font-size: 24px;
  font-weight: 800;
}

.task-feedback-score span {
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

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

.task-feedback-columns > div {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.task-feedback-columns span {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
}

.task-feedback-note {
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: 12px !important;
}

.task-answer-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 14px;
  padding: 0 18px;
  border: 1px solid rgba(65, 108, 145, 0.12);
  border-radius: 999px;
  color: #ffffff;
  background: var(--navy);
  box-shadow: 0 12px 26px rgba(65, 108, 145, 0.14);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.task-answer-toggle[aria-expanded="true"] {
  color: var(--navy);
  background: rgba(51, 127, 109, 0.1);
  border-color: rgba(51, 127, 109, 0.22);
  box-shadow: none;
}

.task-answer-panel {
  margin-top: 12px;
}

.task-lines {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 11px 13px;
  border-left: 3px solid rgba(51, 127, 109, 0.68);
  border-radius: 8px;
  color: var(--navy);
  background: rgba(245, 249, 250, 0.94);
  font-size: 12.5px;
  line-height: 1.4;
}

.task-lines span {
  display: block;
}

.task-answer {
  margin-top: 12px !important;
  padding: 10px 12px;
  border: 1px solid rgba(51, 127, 109, 0.16);
  border-radius: 8px;
  color: var(--navy) !important;
  background: rgba(51, 127, 109, 0.07);
}

.task-takeaway {
  color: var(--navy) !important;
}

.article-card .chapter-row {
  margin-top: 10px;
}

.article-card a,
.article-action {
  display: grid;
  place-items: center;
  min-width: 64px;
  height: 34px;
  border: 1px solid rgba(65, 108, 145, 0.08);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(245, 249, 250, 0.88);
  font-family: inherit;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.article-action {
  cursor: pointer;
}

.contract-review-workspace {
  display: grid;
  gap: 12px;
}

.contract-review-head,
.contract-review-files-panel,
.contract-review-rules,
.contract-review-result {
  border: 1px solid rgba(65, 108, 145, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(65, 108, 145, 0.08);
}

.contract-review-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
}

.contract-review-head h1 {
  max-width: none;
  margin: 1px 0 5px;
  font-size: 24px;
  line-height: 1.05;
}

.bank-accreditation-workspace {
  display: grid;
  gap: 12px;
  width: min(1280px, 100%);
  margin: 0 auto;
}

.bank-accreditation-head {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(234, 243, 242, 0.88));
}

.bank-accreditation-controls,
.bank-accreditation-table-shell,
.bank-accreditation-evidence {
  border: 1px solid rgba(65, 108, 145, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(65, 108, 145, 0.07);
}

.bank-accreditation-controls {
  display: grid;
  grid-template-columns: minmax(210px, 0.85fr) minmax(360px, 1.4fr) auto;
  gap: 12px;
  align-items: end;
  padding: 12px;
}

.bank-accreditation-controls label {
  display: grid;
  gap: 5px;
}

.bank-accreditation-controls label > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bank-accreditation-controls input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(65, 108, 145, 0.18);
  border-radius: 7px;
  color: var(--ink);
  background: rgba(248, 251, 250, 0.94);
  font: inherit;
  outline: none;
}

.bank-accreditation-controls input:focus {
  border-color: rgba(51, 127, 109, 0.56);
  box-shadow: 0 0 0 3px rgba(51, 127, 109, 0.1);
}

.bank-accreditation-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.bank-accreditation-legend span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  white-space: nowrap;
}

.bank-accreditation-legend b {
  display: inline-grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
}

.bank-accreditation-count {
  min-width: 66px;
  margin: 0 2px 11px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.bank-accreditation-table-shell {
  max-width: 100%;
  overflow: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.bank-accreditation-table {
  width: max(100%, 1140px);
  border-collapse: separate;
  border-spacing: 0;
  color: var(--ink);
  font-size: 11px;
}

.bank-accreditation-table th,
.bank-accreditation-table td {
  min-width: 94px;
  height: 56px;
  padding: 7px;
  border-right: 1px solid rgba(65, 108, 145, 0.08);
  border-bottom: 1px solid rgba(65, 108, 145, 0.08);
  text-align: center;
}

.bank-accreditation-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 54px;
  color: #1d3d67;
  background: #edf4f3;
  font-size: 10.5px;
  line-height: 1.15;
}

.bank-accreditation-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 190px;
  min-width: 190px;
  max-width: 190px;
  padding-left: 12px;
  text-align: left;
  background: rgba(250, 252, 251, 0.98);
  box-shadow: 8px 0 14px rgba(19, 41, 97, 0.035);
}

.bank-accreditation-table thead th:first-child {
  z-index: 4;
  background: #e6efee;
}

.bank-accreditation-table tbody tr:last-child > * {
  border-bottom: 0;
}

.bank-accreditation-table tr > *:last-child {
  border-right: 0;
}

.bank-accreditation-table tbody th strong {
  display: block;
}

.bank-accreditation-table tbody th strong {
  font-size: 12px;
  line-height: 1.2;
}

.bank-accreditation-table tbody tr:hover > * {
  background-color: rgba(236, 244, 242, 0.76);
}

.bank-accreditation-cell {
  display: grid;
  width: 44px;
  height: 42px;
  margin: 0 auto;
  padding: 2px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.bank-accreditation-cell:hover,
.bank-accreditation-cell:focus-visible {
  transform: translateY(-1px);
  outline: none;
  box-shadow: 0 6px 16px rgba(19, 41, 97, 0.12);
}

.bank-accreditation-cell span {
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.bank-accreditation-official {
  color: #206c59;
  background: rgba(115, 190, 161, 0.12);
}

.bank-accreditation-working {
  color: #2f6497;
  background: rgba(102, 157, 204, 0.12);
}

.bank-accreditation-conditional {
  color: #8b671d;
  background: rgba(219, 178, 85, 0.15);
}

.bank-accreditation-empty {
  color: rgba(91, 108, 124, 0.34);
  font-size: 14px;
}

.bank-accreditation-evidence {
  display: grid;
  grid-template-columns: minmax(170px, 0.7fr) auto minmax(320px, 1.5fr);
  gap: 12px 18px;
  align-items: center;
  padding: 14px;
}

.bank-accreditation-evidence[hidden] {
  display: none;
}

.bank-accreditation-evidence > strong,
.bank-accreditation-evidence > div > strong {
  color: var(--ink);
  font-size: 14px;
}

.bank-accreditation-evidence > span {
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  text-align: center;
}

.bank-accreditation-evidence p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.bank-accreditation-evidence dl {
  display: grid;
  gap: 5px;
  margin: 0;
}

.bank-accreditation-evidence dl div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px;
}

.bank-accreditation-evidence dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.bank-accreditation-evidence dd {
  margin: 0;
  color: var(--ink);
  font-size: 10.5px;
  line-height: 1.35;
}

.bank-accreditation-source-link {
  grid-column: 1 / -1;
  justify-self: start;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bank-accreditation-source-link:hover,
.bank-accreditation-source-link:focus-visible {
  color: var(--ink);
}

.bank-accreditation-no-results,
.bank-accreditation-caution {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
}

.bank-accreditation-no-results {
  padding: 18px;
  border: 1px dashed rgba(65, 108, 145, 0.18);
  border-radius: 8px;
  text-align: center;
}

@media (max-width: 760px) {
  .bank-accreditation-workspace {
    gap: 8px;
  }

  .bank-accreditation-controls {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 10px;
  }

  .bank-accreditation-controls label {
    grid-column: 1 / -1;
  }

  .bank-accreditation-legend {
    gap: 5px 9px;
    font-size: 9.5px;
  }

  .bank-accreditation-count {
    margin-bottom: 8px;
  }

  .bank-accreditation-table {
    width: 1120px;
  }

  .bank-accreditation-table th:first-child {
    width: 148px;
    min-width: 148px;
    max-width: 148px;
    padding-left: 9px;
  }

  .bank-accreditation-table th,
  .bank-accreditation-table td {
    min-width: 90px;
    height: 52px;
    padding: 5px;
  }

  .bank-accreditation-evidence {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 11px;
  }

  .bank-accreditation-evidence > span {
    justify-self: start;
  }

  .bank-accreditation-evidence p {
    grid-column: auto;
  }
}

.contract-review-dropzone {
  position: relative;
  display: grid;
  min-height: 148px;
  border: 1px dashed rgba(51, 127, 109, 0.38);
  border-radius: 8px;
  background: rgba(245, 249, 250, 0.82);
  transition:
    border-color 140ms ease,
    background 140ms ease;
  -webkit-user-drag: auto;
}

.contract-review-dropzone-active {
  border-color: rgba(51, 127, 109, 0.82);
  background: rgba(195, 221, 212, 0.18);
}

.contract-review-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.contract-review-dropzone label {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 22px;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
  -webkit-user-drag: auto;
}

.contract-review-dropzone span {
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contract-review-dropzone strong {
  color: var(--navy);
  font-size: 18px;
  line-height: 1.05;
}

.contract-review-dropzone small {
  max-width: 48ch;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.contract-review-browse-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 999px;
  color: #fff;
  background: var(--navy);
  box-shadow: 0 10px 22px rgba(65, 108, 145, 0.16);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.contract-review-files-panel,
.contract-review-rules,
.contract-review-result {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.contract-review-panel-head,
.contract-review-result-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.contract-review-panel-head p {
  margin: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.contract-review-panel-head button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(65, 108, 145, 0.1);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
}

.contract-review-files {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contract-review-file {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid rgba(65, 108, 145, 0.07);
  border-radius: 8px;
  background: rgba(245, 249, 250, 0.82);
}

.contract-review-file-ready {
  border-color: rgba(51, 127, 109, 0.22);
  background: rgba(245, 249, 250, 0.92);
}

.contract-review-file-blocked {
  border-color: rgba(227, 183, 101, 0.28);
  background: rgba(255, 250, 238, 0.8);
}

.contract-review-file strong,
.contract-review-file small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contract-review-file strong {
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.contract-review-file small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
}

.contract-review-file-assignments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.contract-review-file-assignments label {
  display: grid;
  gap: 3px;
}

.contract-review-file-assignments label > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contract-review-file-assignments select {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0 24px 0 8px;
  border: 1px solid rgba(65, 108, 145, 0.12);
  border-radius: 7px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.94);
  font-size: 10.5px;
  font-weight: 800;
}

.contract-review-file button {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(65, 108, 145, 0.08);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1;
}

.contract-review-empty,
.contract-review-note,
.contract-review-supporting,
.contract-review-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.contract-review-status {
  color: var(--green);
  font-weight: 900;
}

.contract-review-readiness {
  margin: 0;
  color: var(--green);
  font-size: 11.5px;
  font-weight: 900;
  line-height: 1.35;
}

.contract-review-readiness-warning {
  color: #9a6a16;
}

.contract-review-diagnostic-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contract-review-diagnostic-list li {
  padding: 9px 10px;
  border: 1px solid rgba(65, 108, 145, 0.08);
  border-radius: 8px;
  color: var(--navy);
  background: rgba(245, 249, 250, 0.72);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.contract-review-rules div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.contract-review-rules span {
  padding: 6px 9px;
  border: 1px solid rgba(51, 127, 109, 0.16);
  border-radius: 999px;
  color: var(--green);
  background: rgba(245, 249, 250, 0.82);
  font-size: 11px;
  font-weight: 900;
}

.contract-review-result-head h2 {
  margin: 1px 0 0;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.08;
}

.contract-review-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.contract-review-pair article {
  display: grid;
  gap: 4px;
  min-height: 66px;
  padding: 10px;
  border: 1px solid rgba(65, 108, 145, 0.08);
  border-radius: 8px;
  background: rgba(245, 249, 250, 0.82);
}

.contract-review-pair span {
  color: var(--green);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contract-review-pair strong {
  overflow: hidden;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contract-review-pair small {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
}

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

.contract-review-quality-summary article {
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid rgba(51, 127, 109, 0.14);
  border-radius: 8px;
  background: rgba(195, 221, 212, 0.12);
}

.contract-review-quality-summary strong {
  color: var(--green);
  font-size: 20px;
  font-weight: 900;
}

.contract-review-quality-summary span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}

.contract-review-quality-summary .contract-review-quality-warning {
  border-color: rgba(154, 106, 22, 0.2);
  background: rgba(255, 250, 238, 0.82);
}

.contract-review-quality-summary .contract-review-quality-warning strong {
  color: #9a6a16;
}

.contract-review-package-alerts {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(154, 106, 22, 0.18);
  border-radius: 8px;
  background: rgba(255, 250, 238, 0.76);
}

.contract-review-package-alerts h3,
.contract-review-package-alerts p {
  margin: 0;
}

.contract-review-package-alerts h3 {
  color: #7d5713;
  font-size: 14px;
}

.contract-review-package-alerts p {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.contract-review-package-alerts ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contract-review-package-alerts li {
  display: grid;
  gap: 3px;
  padding: 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
}

.contract-review-package-alerts li strong,
.contract-review-package-alerts li span,
.contract-review-package-alerts li small {
  overflow-wrap: anywhere;
}

.contract-review-package-alerts li strong {
  color: var(--navy);
  font-size: 11px;
}

.contract-review-package-alerts li span {
  color: var(--ink);
  font-size: 11px;
}

.contract-review-package-alerts li small {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.35;
}

.contract-review-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  border: 1px solid rgba(65, 108, 145, 0.08);
  border-radius: 8px;
  background: white;
}

.contract-review-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  color: var(--navy);
  font-size: 12px;
}

.contract-review-table th,
.contract-review-table td {
  min-height: 34px;
  padding: 9px 10px;
  border: 1px solid rgba(65, 108, 145, 0.08);
  text-align: left;
  vertical-align: top;
}

.contract-review-table thead th {
  color: white;
  background: var(--navy);
  font-size: 11px;
  font-weight: 900;
}

.contract-review-table tbody th {
  width: 180px;
  color: var(--navy);
  background: rgba(195, 221, 212, 0.14);
  font-weight: 900;
}

.contract-review-table td {
  min-width: 170px;
  background: rgba(255, 255, 255, 0.96);
}

.contract-review-table .contract-review-row-attention td,
.contract-review-table .contract-review-row-attention th {
  background: rgba(255, 250, 238, 0.7);
}

.contract-review-value {
  display: grid;
  gap: 5px;
}

.contract-review-value > strong {
  color: var(--navy);
  font-size: 11.5px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.contract-review-confidence {
  width: max-content;
  max-width: 100%;
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 900;
}

.contract-review-confidence-high {
  color: #256956;
  background: rgba(195, 221, 212, 0.34);
}

.contract-review-confidence-medium {
  color: #456782;
  background: rgba(194, 217, 234, 0.34);
}

.contract-review-confidence-review {
  color: #8a5f15;
  background: rgba(227, 183, 101, 0.24);
}

.contract-review-evidence-missing,
.contract-review-missing {
  color: #8a5f15;
  font-size: 10px;
  font-weight: 800;
}

.contract-review-table td:last-child {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.questionnaire-generator-workspace {
  display: grid;
  gap: 12px;
}

.questionnaire-generator-head,
.questionnaire-generator-form-card,
.questionnaire-generator-result,
.questionnaire-generator-empty {
  border: 1px solid rgba(65, 108, 145, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(65, 108, 145, 0.08);
}

.questionnaire-generator-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 18px;
  background:
    radial-gradient(circle at 94% 10%, rgba(227, 183, 101, 0.14), transparent 22%),
    rgba(255, 255, 255, 0.9);
}

.questionnaire-generator-head h1 {
  max-width: none;
  margin: 2px 0 7px;
  color: var(--navy);
  font-size: 28px;
  line-height: 1.05;
}

.questionnaire-generator-head .hero-copy {
  max-width: 66ch;
}

.questionnaire-generator-form-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.questionnaire-generator-form {
  display: grid;
  gap: 12px;
}

.questionnaire-generator-form label {
  display: grid;
  gap: 8px;
}

.questionnaire-generator-form label > span {
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.questionnaire-generator-form textarea {
  width: 100%;
  min-height: 106px;
  padding: 14px 15px;
  resize: vertical;
  border: 1px solid rgba(51, 127, 109, 0.24);
  border-radius: 10px;
  outline: none;
  color: var(--navy);
  background: rgba(248, 251, 250, 0.94);
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.questionnaire-generator-form textarea::placeholder {
  color: rgba(65, 108, 145, 0.58);
  font-weight: 600;
}

.questionnaire-generator-form textarea:focus {
  border-color: rgba(51, 127, 109, 0.62);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(51, 127, 109, 0.1);
}

.questionnaire-generator-privacy,
.questionnaire-generator-note,
.questionnaire-generator-status,
.questionnaire-generator-error {
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.45;
}

.questionnaire-generator-privacy,
.questionnaire-generator-note {
  color: var(--muted);
}

.questionnaire-generator-error {
  color: #9a4b35;
}

.questionnaire-generator-status {
  color: var(--green);
  font-weight: 900;
}

.questionnaire-generator-result {
  display: grid;
  gap: 13px;
  padding: 18px;
}

.questionnaire-generator-result-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.questionnaire-generator-result-head h2 {
  max-width: 30ch;
  margin: 2px 0 0;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.08;
}

.questionnaire-generator-count {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(51, 127, 109, 0.18);
  border-radius: 999px;
  color: var(--green);
  background: rgba(195, 221, 212, 0.18);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.questionnaire-generator-profile {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border-left: 3px solid var(--green);
  border-radius: 7px;
  background: rgba(245, 249, 250, 0.92);
}

.questionnaire-generator-profile span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.questionnaire-generator-profile strong {
  color: var(--navy);
  font-size: 14px;
}

.questionnaire-generator-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.questionnaire-generator-sections li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(65, 108, 145, 0.08);
  border-radius: 8px;
  color: var(--navy);
  background: rgba(248, 251, 250, 0.82);
  font-size: 11.5px;
  font-weight: 750;
  line-height: 1.25;
}

.questionnaire-generator-sections li strong {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  color: var(--green);
  background: rgba(195, 221, 212, 0.24);
  font-size: 10px;
}

.questionnaire-generator-download {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(51, 127, 109, 0.18);
  border-radius: 10px;
  background:
    radial-gradient(circle at 98% 0%, rgba(227, 183, 101, 0.14), transparent 28%),
    rgba(243, 248, 246, 0.92);
}

.questionnaire-generator-download > div {
  display: grid;
  gap: 4px;
}

.questionnaire-generator-download strong {
  color: var(--navy);
  font-size: 14px;
}

.questionnaire-generator-download span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.35;
}

.questionnaire-generator-empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 112px;
  padding: 20px;
}

.questionnaire-generator-empty img {
  display: block;
  width: 160px;
  height: auto;
}

.questionnaire-generator-empty div {
  display: grid;
  gap: 6px;
}

.questionnaire-generator-empty strong {
  color: var(--navy);
  font-size: 16px;
}

.questionnaire-generator-empty p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.criteria-panel {
  background: #ffffff;
}

.quiz-source-strip {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: #ffffff;
}

.quiz-source-strip p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.quiz-source-strip a {
  width: max-content;
  max-width: 100%;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.quiz-form {
  display: grid;
  gap: 12px;
}

.question-block {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 17px;
}

.question-block legend {
  padding: 0;
  color: var(--navy);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.28;
}

.answer-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(65, 108, 145, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.answer-row input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--green);
}

.answer-row span {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.question-report-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 18px;
  margin-top: -2px;
}

.trust-report-button,
.ghost-text-button {
  width: max-content;
  max-width: 100%;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
  text-align: left;
}

.trust-report-button {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(93, 114, 132, 0.26);
  text-underline-offset: 3px;
}

.trust-report-button:hover,
.trust-report-button:focus-visible {
  color: var(--navy);
  text-decoration-color: rgba(51, 127, 109, 0.38);
}

.accuracy-report-form {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(65, 108, 145, 0.08);
  border-radius: 8px;
  background: #ffffff;
}

.accuracy-report-form label {
  display: grid;
  gap: 7px;
}

.accuracy-report-form label span {
  color: var(--green);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.accuracy-report-form textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  padding: 11px 12px;
  border: 1px solid rgba(65, 108, 145, 0.12);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(245, 249, 250, 0.68);
  font-size: 14px;
  line-height: 1.4;
}

.accuracy-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.accuracy-report-saved,
.accuracy-report-error {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.accuracy-report-saved {
  color: var(--green);
}

.question-report-line .accuracy-report-saved {
  color: rgba(51, 127, 109, 0.66);
  font-size: 11px;
  font-weight: 650;
}

.accuracy-report-error {
  color: #8b4a18;
}

.result-panel {
  padding: 18px;
}

.result-panel h2 {
  font-size: 34px;
}

.result-panel p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.result-pass {
  border-color: rgba(51, 127, 109, 0.26);
  background: #ffffff;
}

.result-review {
  border-color: rgba(227, 183, 101, 0.34);
  background: #fffdf8;
}

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

.answer-feedback-row {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: #ffffff;
}

.answer-feedback-row > span {
  width: max-content;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.answer-feedback-row h3 {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.35;
}

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

.answer-feedback-row strong {
  color: var(--ink);
}

.feedback-correct > span {
  color: #13563f;
  background: rgba(51, 127, 109, 0.14);
}

.feedback-missed > span {
  color: #73531a;
  background: rgba(227, 183, 101, 0.22);
}

.source-foundation {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.source-foundation p,
.source-group p,
.source-group li,
.editor-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.source-group {
  padding: 16px;
}

.source-group-head {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.source-group-head span {
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
}

.source-group-head strong {
  color: var(--navy);
  font-size: 18px;
  line-height: 1.15;
}

.source-group-head small {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.source-group p {
  margin-top: 10px;
}

.source-group ul {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding-left: 18px;
}

.law-search-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.regulatory-base-search-panel {
  padding: 0;
}

.law-search-label {
  display: grid;
  gap: 8px;
}

.law-search-label span {
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.law-search-label input,
.law-toolbar select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(65, 108, 145, 0.12);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.35;
}

.law-search-label input {
  height: 46px;
  padding: 0 13px;
}

.law-toolbar {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.regulatory-base-toolbar {
  grid-template-columns: 1fr;
}

.regulatory-source-card {
  width: 100%;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.regulatory-source-card .article-action {
  justify-self: end;
}

.regulatory-document-back {
  width: fit-content;
  margin-bottom: 16px;
}

.regulatory-document-lead {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.regulatory-document-section {
  margin-top: 20px;
}

.regulatory-document-section h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.2;
}

.regulatory-document-section ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--ink);
}

.regulatory-document-section li {
  font-size: 15px;
  line-height: 1.5;
}

.regulatory-source-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  word-break: break-word;
}

.state-program-document {
  display: grid;
  gap: 12px;
}

.state-program-choices {
  display: grid;
  gap: 12px;
}

.state-program-choice {
  min-height: 68px;
}

.state-program-choice span {
  font-size: 17px;
}

.state-program-cover,
.state-program-section {
  border: 1px solid rgba(65, 108, 145, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.state-program-cover {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.state-program-cover h2 {
  margin: 0;
  color: var(--navy);
  font-size: 28px;
  line-height: 1.08;
}

.state-program-cover p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.state-program-section {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.state-program-section h3 {
  margin: 0;
  color: var(--navy);
  font-size: 19px;
  line-height: 1.2;
}

.state-program-section p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.52;
}

.state-compensation-calculator {
  border-color: rgba(51, 127, 109, 0.22);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 249, 250, 0.92));
}

.state-calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(96px, 0.6fr);
  gap: 10px;
}

.state-calculator-grid label {
  display: grid;
  gap: 6px;
}

.state-calculator-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.state-calculator-grid input {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 1px solid rgba(65, 108, 145, 0.12);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 16px;
  font-weight: 750;
}

.state-calculator-grid input:focus {
  border-color: rgba(51, 127, 109, 0.54);
  outline: none;
  box-shadow: 0 0 0 3px rgba(51, 127, 109, 0.1);
}

.state-calculator-result {
  display: grid;
  gap: 5px;
  margin-top: 2px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(65, 108, 145, 0.96);
}

.state-calculator-result span {
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.state-calculator-result strong {
  color: #fff;
  font-size: 26px;
  line-height: 1.05;
}

.state-calculator-result small {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  line-height: 1.4;
}

.state-program-points {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
}

.state-program-points li {
  padding-left: 2px;
  font-size: 15px;
  line-height: 1.5;
}

.state-program-links {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.state-program-links a {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid rgba(51, 127, 109, 0.2);
  border-radius: 8px;
  color: var(--navy);
  background: rgba(245, 249, 250, 0.9);
  text-decoration: none;
}

.state-program-links span {
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.state-program-links small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.law-toolbar p {
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 750;
}

.law-toolbar select {
  height: 42px;
  padding: 0 10px;
}

.law-match-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.law-match {
  flex: 0 0 auto;
  max-width: 220px;
  padding: 9px 11px;
  border: 1px solid rgba(51, 127, 109, 0.16);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.law-match-active {
  color: #ffffff;
  background: var(--green);
}

.munich-result-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.munich-result-summary strong {
  color: var(--green);
  font-size: 13px;
  font-weight: 750;
}

.munich-result-summary > span {
  padding: 5px 9px;
  border: 1px solid rgba(51, 127, 109, 0.16);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 750;
}

.munich-match-list {
  display: grid;
  gap: 8px;
  overflow: visible;
  padding-bottom: 0;
}

.munich-match {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  max-width: none;
  border-radius: 8px;
  text-align: left;
  touch-action: manipulation;
  white-space: normal;
  text-overflow: clip;
}

.munich-match strong {
  display: grid;
  place-items: center;
  align-self: start;
  min-height: 32px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(51, 127, 109, 0.08);
  font-size: 12px;
  line-height: 1;
}

.munich-match span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--navy);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.munich-match.law-match-active strong,
.munich-match.law-match-active span {
  color: #ffffff;
}

.munich-match.law-match-active strong {
  background: rgba(255, 255, 255, 0.16);
}

.munich-clause-select {
  width: 100%;
  min-height: 236px;
  padding: 8px;
  border: 1px solid rgba(51, 127, 109, 0.18);
  border-radius: 8px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.9);
  font-family: inherit;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.32;
}

.munich-clause-select option {
  padding: 10px 8px;
  white-space: normal;
}

.munich-more {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

body[data-route="munich"] .munich-search-panel {
  gap: 12px;
  padding: 14px;
}

body[data-route="munich"] .law-search-label input {
  height: 44px;
  font-size: 14px;
}

body[data-route="munich"] .law-article {
  padding: 18px;
}

body[data-route="munich"] .law-article h2 {
  margin-bottom: 14px;
  font-size: 22px;
  line-height: 1.16;
}

body[data-route="munich"] .law-body p {
  font-size: 14.5px;
  line-height: 1.56;
}

body[data-route="glossary"] .hero-band-compact h1 {
  font-size: 34px;
  line-height: 1.04;
}

body[data-route="glossary"] .glossary-search-panel {
  gap: 12px;
  padding: 14px;
}

body[data-route="glossary"] .law-search-label input {
  height: 44px;
  font-size: 14px;
}

.glossary-result-summary > span {
  max-width: min(46vw, 220px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.glossary-term-select {
  min-height: 236px;
}

.glossary-article .law-body strong {
  color: var(--navy);
  font-weight: 850;
}

.glossary-related {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.glossary-related span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(51, 127, 109, 0.18);
  border-radius: 999px;
  color: var(--green);
  background: rgba(245, 249, 250, 0.9);
  font-size: 12px;
  font-weight: 750;
}

.law-empty {
  padding: 14px;
}

.law-empty strong {
  color: var(--navy);
}

.law-empty p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.law-article-shell {
  overflow: hidden;
}

.law-article {
  padding: 22px;
  -webkit-touch-callout: default;
  -webkit-user-select: text;
  user-select: text;
}

.law-article * {
  -webkit-user-select: text;
  user-select: text;
}

.law-article h2 {
  margin: 8px 0 18px;
  color: var(--navy);
  font-size: 26px;
  line-height: 1.14;
}

.law-body {
  display: grid;
  gap: 12px;
}

.law-body p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.58;
}

.law-body mark {
  padding: 0 2px;
  border-radius: 4px;
  color: var(--navy);
  background: rgba(227, 183, 101, 0.42);
}

body[data-route="law"],
body[data-route="glossary"] {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

body[data-route="law"] .app-shell,
body[data-route="glossary"] .app-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  min-height: 100svh;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
  overflow: hidden;
  overscroll-behavior: none;
}

body[data-route="law"] .screen,
body[data-route="glossary"] .screen {
  display: grid;
  min-height: 0;
  overflow: hidden;
}

.primary-tab-card {
  border: 1px solid rgba(65, 108, 145, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.primary-tab-card .eyebrow,
.scenario-search-label span,
.law-search-label span {
  color: var(--green);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reference-workspace {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.reference-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 102px;
  padding: 14px;
  border: 1px solid rgba(65, 108, 145, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.reference-hero h1 {
  max-width: none;
  margin: 2px 0 6px;
  font-size: 25px;
  line-height: 1.04;
}

.reference-hero p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.reference-card {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 9px;
  min-height: 0;
  height: 100%;
  padding: 12px;
  overflow: hidden;
}

.reference-card-law {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.reference-card-law.law-search-collapsed {
  grid-template-rows: auto minmax(0, 1fr);
}

.law-search-drawer {
  display: grid;
  gap: 8px;
  min-height: 0;
  padding: 0;
}

.law-search-grip {
  display: grid;
  place-items: center;
  width: 100%;
  height: 14px;
  margin: -4px 0 -3px;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: ns-resize;
  touch-action: none;
}

.law-search-grip span {
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: rgba(65, 108, 145, 0.18);
}

.law-search-grip:focus-visible {
  outline: 2px solid rgba(51, 127, 109, 0.34);
  outline-offset: 2px;
}

.law-search-collapsed-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(51, 127, 109, 0.16);
  border-radius: 8px;
  color: var(--navy);
  background: rgba(245, 249, 250, 0.86);
  text-align: left;
}

.law-search-collapsed-bar span {
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.law-search-collapsed-bar strong {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.law-search-collapsed .reference-article-shell {
  padding-top: 2px;
}

.law-search-mini-button {
  display: grid;
  min-width: 86px;
  max-width: 136px;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid rgba(51, 127, 109, 0.18);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(245, 249, 250, 0.88);
  text-align: left;
}

.law-search-mini-button span {
  color: var(--green);
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.law-search-mini-button strong {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reference-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 76px;
}

.reference-card-head h1 {
  max-width: none;
  margin: 2px 0 5px;
  font-size: 23px;
  line-height: 1.05;
}

.reference-card-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.3;
}

.reference-card-head-law {
  min-height: 45px;
  gap: 8px;
  align-items: start;
}

.reference-card-head-law h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.03;
}

.reference-card-head-law .eyebrow {
  margin-bottom: 2px;
  font-size: 9px;
}

.reference-card-head-law p:not(.eyebrow) {
  display: none;
}

.reference-workspace-law .law-search-drawer {
  gap: 6px;
}

.reference-workspace-law .reference-search-label {
  gap: 3px;
}

.reference-workspace-law .reference-search-label input {
  height: 34px;
  font-size: 12px;
}

.reference-workspace-law .reference-results .law-toolbar {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.reference-workspace-law .reference-results .law-toolbar p {
  font-size: 10px;
  white-space: nowrap;
}

.reference-workspace-law .reference-results .law-toolbar select {
  height: 34px;
  min-width: 0;
}

.progress-card.reference-card {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.reference-card-head.progress-hero {
  min-height: 76px;
}

.reference-card-head.progress-hero h1 {
  max-width: none;
  margin: 2px 0 5px;
  font-size: 23px;
  line-height: 1.05;
}

.reference-card-head.progress-hero p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.3;
}

.reference-workspace-glossary .reference-card-head,
.reference-workspace-progress .reference-card-head.progress-hero {
  min-height: 64px;
}

.reference-workspace-glossary .reference-card-head h1,
.reference-workspace-progress .reference-card-head.progress-hero h1 {
  margin: 1px 0 3px;
  font-size: 20px;
  line-height: 1.05;
}

.reference-workspace-glossary .reference-card-head p:not(.eyebrow),
.reference-workspace-progress .reference-card-head.progress-hero p:not(.eyebrow) {
  font-size: 10.5px;
  line-height: 1.22;
}

.reference-search-label {
  gap: 5px;
}

.reference-search-label span {
  font-size: 9px;
}

.reference-search-label input {
  height: 38px;
  padding: 0 11px;
  background: rgba(245, 249, 250, 0.88);
  font-size: 13px;
}

.reference-results {
  display: grid;
  gap: 8px;
  min-height: 0;
}

.reference-results .law-toolbar {
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
}

.reference-results .law-toolbar p {
  font-size: 11px;
}

.reference-results .law-toolbar select {
  height: 36px;
  font-size: 12px;
}

.reference-results .secondary-action {
  min-height: 32px;
  padding: 0 10px;
  font-size: 11px;
}

.reference-results .law-match-list {
  gap: 6px;
  margin-top: -2px;
  padding-bottom: 1px;
}

.reference-results .law-match {
  max-width: 190px;
  padding: 7px 9px;
  font-size: 11px;
}

.reference-results .munich-result-summary {
  gap: 8px;
}

.reference-results .munich-result-summary strong {
  font-size: 11px;
}

.reference-results .munich-result-summary > span {
  max-width: min(40vw, 170px);
  padding: 4px 8px;
  font-size: 10px;
}

.reference-results .glossary-term-select {
  min-height: 132px;
  max-height: 156px;
  font-size: 12px;
}

.reference-results .law-empty {
  border: 0;
  background: rgba(245, 249, 250, 0.86);
  box-shadow: none;
}

.reference-article-shell {
  min-height: 0;
  border: 0;
  background: transparent;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.reference-article-shell .law-article {
  padding: 2px 2px 10px;
  background: transparent;
}

.reference-article-shell .section-kicker {
  font-size: 9px;
}

.reference-article-shell .law-article h2 {
  margin: 5px 0 12px;
  font-size: 21px;
  line-height: 1.16;
}

.reference-article-shell .law-body {
  gap: 10px;
}

.reference-article-shell .law-body p {
  font-size: 13px;
  line-height: 1.48;
}

.reference-article-shell .glossary-related {
  gap: 6px;
}

.reference-article-shell .glossary-related span {
  min-height: 26px;
  padding: 5px 8px;
  font-size: 10px;
}

.editor-product-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.editor-chip {
  display: grid;
  place-items: center;
  height: 40px;
  border: 1px solid rgba(65, 108, 145, 0.1);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 750;
}

.editor-chip-active {
  color: #ffffff;
  background: var(--navy);
}

.editor-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.editor-form label {
  display: grid;
  gap: 7px;
}

.editor-form label span {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editor-form input,
.editor-form textarea {
  width: 100%;
  border: 1px solid rgba(65, 108, 145, 0.12);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 1.45;
}

.editor-form input {
  height: 44px;
  padding: 0 12px;
}

.editor-form textarea {
  min-height: 106px;
  padding: 12px;
  resize: vertical;
}

.editor-meta {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(195, 221, 212, 0.16);
}

.analytics-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 17px;
}

.analytics-row p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.analytics-value {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(51, 127, 109, 0.25);
  border-radius: 50%;
  color: var(--navy);
  background: #ffffff;
  font-size: 15px;
  font-weight: 750;
}

.bottom-nav {
  position: fixed;
  right: auto;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  width: min(660px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 6px;
  border: 1px solid rgba(65, 108, 145, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 48px rgba(65, 108, 145, 0.16);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

body[data-space="learning"] .bottom-nav {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(330px, calc(100vw - 48px));
}

.nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 38px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 10.5px;
  font-weight: 750;
  text-align: center;
}

.nav-item-active {
  color: #ffffff;
  background: var(--navy);
}

@media (max-width: 600px) {
  .questionnaire-generator-head {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    padding: 14px;
  }

  .questionnaire-generator-head h1 {
    font-size: 24px;
  }

  .questionnaire-generator-form-card,
  .questionnaire-generator-result {
    padding: 14px;
  }

  .questionnaire-generator-result-head,
  .questionnaire-generator-download {
    grid-template-columns: 1fr;
  }

  .questionnaire-generator-count {
    width: max-content;
  }

  .questionnaire-generator-sections {
    grid-template-columns: 1fr;
  }

  .questionnaire-generator-download .primary-action {
    width: 100%;
  }

  .questionnaire-generator-empty {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .questionnaire-generator-empty img {
    width: 148px;
  }

  .contract-review-head {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .contract-review-head h1,
  .contract-review-result-head h2 {
    font-size: 22px;
  }

  .contract-review-dropzone {
    min-height: 132px;
  }

  .contract-review-dropzone label {
    padding: 18px 14px;
  }

  .contract-review-browse-button {
    width: min(100%, 240px);
  }

  .contract-review-files-panel,
  .contract-review-rules,
  .contract-review-result {
    padding: 12px;
  }

  .contract-review-file-assignments,
  .contract-review-pair {
    grid-template-columns: 1fr;
  }

  .contract-review-result-head {
    grid-template-columns: 1fr;
  }

  .contract-review-result-head .primary-action {
    width: 100%;
  }

  .contract-review-quality-summary {
    grid-template-columns: repeat(3, minmax(88px, 1fr));
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .contract-review-table {
    min-width: 720px;
  }
}

@keyframes screenEnter {
  from {
    opacity: 0.82;
    transform: translateY(5px) scale(0.998);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes drawPath {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes dotIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes haloBreath {
  0% {
    opacity: 0;
    transform: scale(0.75);
  }

  34% {
    opacity: 0.3;
  }

  100% {
    opacity: 0;
    transform: scale(2.8);
  }
}

@keyframes splashNameIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 760px) {
  .splash-lockup {
    gap: 26px;
    width: min(520px, calc(100vw - 64px));
  }

  .splash-mark {
    width: 240px;
    height: 172px;
  }

  .splash-name {
    font-size: 50px;
    letter-spacing: 0.03em;
  }

  .mark-path {
    animation-duration: 1850ms;
    animation-delay: 320ms;
  }

  .splash-name {
    animation-duration: 850ms;
    animation-delay: 1450ms;
  }

  .mark-dot {
    animation-duration: 700ms;
    animation-delay: 2050ms;
  }

  .mark-halo {
    animation: haloBreath 1250ms cubic-bezier(0.22, 1, 0.36, 1) 2350ms forwards;
  }

  .app-shell {
    width: 760px;
    padding-top: 28px;
  }

  .topbar {
    margin-right: 0;
    margin-left: 0;
    border-radius: 999px;
  }

  .hero-band {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 178px;
    padding: 28px;
  }

  .hero-band-compact {
    grid-template-columns: 1fr;
    min-height: 190px;
  }

  h1 {
    max-width: 17ch;
    font-size: 34px;
  }

  .hero-copy {
    max-width: 36ch;
  }

  .hero-metric {
    width: 74px;
    height: 74px;
  }

  .hero-metric span {
    font-size: 31px;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

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

  .content-section,
  .video-panel,
  .criteria-panel,
  .editor-form {
    padding: 22px;
  }
}

@media (min-width: 1024px) {
  .app-shell {
    width: min(1480px, 100%);
    padding: 16px clamp(24px, 3vw, 48px) calc(80px + env(safe-area-inset-bottom));
  }

  .topbar {
    min-height: 56px;
    margin-bottom: 10px;
    padding: 7px 20px;
    border: 1px solid rgba(65, 108, 145, 0.08);
    border-radius: 16px;
  }

  .screen {
    gap: 12px;
  }

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

  body[data-route="home"] .module-grid {
    --home-module-row-height: clamp(58px, calc((100dvh - 286px) / 3), 82px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, var(--home-module-row-height));
  }

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

  body[data-route="bank-accreditation"] {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  body[data-route="bank-accreditation"] .app-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100vh;
    height: 100dvh;
    min-height: 100svh;
    overflow: hidden;
  }

  body[data-route="bank-accreditation"] .screen,
  body[data-route="bank-accreditation"] .bank-accreditation-workspace {
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }

  .bank-accreditation-workspace {
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    gap: 8px;
    width: 100%;
  }

  .bank-accreditation-head {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    padding: 8px 12px;
  }

  .bank-accreditation-head .module-back {
    width: 30px;
    height: 30px;
  }

  .bank-accreditation-head h1 {
    margin: 0 0 2px;
    font-size: 24px;
    line-height: 1.05;
  }

  .bank-accreditation-head .eyebrow {
    margin-bottom: 2px;
    font-size: 9px;
  }

  .bank-accreditation-head .hero-copy {
    max-width: none;
    font-size: 11px;
    line-height: 1.25;
  }

  .bank-accreditation-controls {
    grid-template-columns: minmax(280px, 0.8fr) minmax(460px, 1.5fr) auto;
    gap: 12px;
    padding: 7px 10px;
  }

  .bank-accreditation-controls label {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
  }

  .bank-accreditation-controls input {
    min-height: 34px;
  }

  .bank-accreditation-legend {
    min-height: 34px;
  }

  .bank-accreditation-count {
    margin-bottom: 9px;
  }

  .bank-accreditation-table-shell {
    min-height: 0;
    overflow: auto;
  }

  .bank-accreditation-table {
    width: 100%;
    min-width: 960px;
    table-layout: fixed;
  }

  .bank-accreditation-table th,
  .bank-accreditation-table td {
    min-width: 0;
    height: 34px;
    padding: 1px 5px;
  }

  .bank-accreditation-table thead th {
    height: 54px;
    font-size: 8px;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .bank-accreditation-table th:first-child {
    width: 270px;
    min-width: 270px;
    max-width: 270px;
    padding-left: 10px;
  }

  .bank-accreditation-table tbody th strong {
    font-size: 9px;
    line-height: 1.08;
  }

  .bank-accreditation-cell {
    width: 38px;
    height: 29px;
  }

  .bank-accreditation-cell span {
    font-size: 15px;
  }

  .bank-accreditation-evidence {
    max-height: 118px;
    overflow: auto;
    padding: 10px 12px;
  }

  .bottom-nav {
    width: min(760px, calc(100vw - 48px));
  }
}

@media (max-width: 380px) {
  .app-shell {
    padding-right: 14px;
    padding-left: 14px;
  }

  .topbar {
    margin-right: -14px;
    margin-left: -14px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .brand-name {
    font-size: 26px;
  }

  .brand-menu-shell,
  .partner-lockup {
    width: 116px;
    min-height: 38px;
  }

  .brand-lockup {
    min-height: 38px;
  }

  .brand-menu {
    width: min(270px, calc(100vw - 28px));
  }

  .topbar {
    grid-template-columns: minmax(116px, 1fr) 42px minmax(104px, 1fr);
    gap: 8px;
  }

  .progress-orb {
    width: 42px;
    height: 42px;
  }

  .progress-card {
    gap: 8px;
    padding: 10px;
  }

  .progress-hero {
    min-height: 76px;
  }

  .progress-hero h1 {
    font-size: 23px;
  }

  .progress-profile-compact {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .progress-profile-actions {
    grid-column: 1 / -1;
  }

  .progress-profile-edit {
    min-height: 24px;
    padding: 0 8px;
    font-size: 9px;
  }

  .progress-module-row {
    padding: 6px 8px;
  }

  .progress-module-row p {
    display: none;
  }

  .reference-workspace {
    gap: 8px;
  }

  .reference-hero {
    min-height: 88px;
    padding: 12px;
  }

  .reference-hero h1 {
    font-size: 21px;
  }

  .reference-card {
    gap: 8px;
    padding: 10px;
  }

  .reference-search-label input {
    height: 35px;
    font-size: 12px;
  }

  .reference-results .glossary-term-select {
    min-height: 108px;
  }

  .reference-article-shell .law-article h2 {
    font-size: 18px;
  }

  .reference-article-shell .law-body p {
    font-size: 12.5px;
    line-height: 1.44;
  }

  .registry-head {
    grid-template-columns: 1fr;
  }

  .registry-actions {
    justify-content: stretch;
  }

  .registry-actions .primary-action,
  .registry-actions .secondary-action {
    width: 100%;
  }

  .sync-state {
    display: grid;
  }

  .task-feedback-columns {
    grid-template-columns: 1fr;
  }

  .partner-name {
    font-size: 25px;
  }

  .hero-band {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 29px;
  }
}

.contract-review-result-actions,
.client-recommendation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.client-recommendation-workspace {
  display: grid;
  gap: 18px;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 18px 18px 42px;
}

.client-recommendation-source,
.client-recommendation-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.client-recommendation-source article,
.client-recommendation-metrics article,
.client-recommendation-empty,
.client-recommendation-form,
.client-recommendation-result {
  border: 1px solid rgba(51, 127, 109, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(19, 41, 97, 0.07);
}

.client-recommendation-source article {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
}

.client-recommendation-source span,
.client-recommendation-metrics span {
  color: #647486;
  font-size: 12px;
}

.client-recommendation-source strong {
  color: #132961;
  overflow-wrap: anywhere;
}

.client-recommendation-empty,
.client-recommendation-form,
.client-recommendation-result {
  padding: 22px;
}

.client-recommendation-empty {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.client-recommendation-form {
  display: grid;
  gap: 14px;
}

.client-recommendation-form label {
  display: grid;
  gap: 8px;
  color: #132961;
  font-weight: 700;
}

.client-recommendation-form textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid #cbd8df;
  border-radius: 13px;
  padding: 13px 14px;
  background: #fbfdfd;
  color: #243247;
  font: inherit;
  line-height: 1.5;
}

.client-recommendation-form > p {
  margin: 0;
  color: #647486;
  font-size: 12px;
}

.client-recommendation-result {
  display: grid;
  gap: 18px;
}

.client-recommendation-result > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.client-recommendation-result h2,
.client-recommendation-result h3 {
  margin: 0;
  color: #132961;
}

.client-recommendation-result > header > span {
  border-radius: 999px;
  padding: 7px 11px;
  background: #e8f3ef;
  color: #337f6d;
  font-size: 12px;
  font-weight: 700;
}

.client-recommendation-rationale {
  margin: 0;
  border-left: 3px solid #337f6d;
  padding: 3px 0 3px 14px;
  color: #3f4d5e;
  line-height: 1.55;
}

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

.client-recommendation-metrics article {
  display: grid;
  gap: 4px;
  padding: 14px;
  box-shadow: none;
}

.client-recommendation-metrics strong {
  color: #337f6d;
  font-size: 26px;
}

.client-recommendation-metrics .client-recommendation-warning strong {
  color: #a65c23;
}

.client-recommendation-questions,
.client-recommendation-email {
  display: grid;
  gap: 10px;
  border-radius: 14px;
  padding: 17px;
  background: #f5f9fc;
}

.client-recommendation-questions ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
  color: #3f4d5e;
}

.client-recommendation-email pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #3f4d5e;
  font: inherit;
  line-height: 1.55;
}

@media (max-width: 700px) {
  .client-recommendation-workspace {
    padding: 10px 10px 30px;
  }

  .client-recommendation-source,
  .client-recommendation-metrics {
    grid-template-columns: 1fr;
  }

  .client-recommendation-empty,
  .client-recommendation-form,
  .client-recommendation-result {
    padding: 16px;
  }

  .client-recommendation-result > header {
    display: grid;
  }

  .contract-review-result-actions,
  .client-recommendation-actions {
    justify-content: stretch;
  }

  .contract-review-result-actions button,
  .client-recommendation-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
  }
}
