:root {
  color-scheme: light;
  --navy: #10233f;
  --navy-2: #1c3557;
  --purple: #352b82;
  --purple-soft: #eeeaf8;
  --red: #d31f2b;
  --red-deep: #b52b32;
  --gold: #b58a43;
  --paper: #f7f4ef;
  --paper-2: #eeeae4;
  --white: #ffffff;
  --text: #172033;
  --muted: #5e6878;
  --border: #d9d4cc;
  --border-soft: #ebe7e0;
  --success: #167a5b;
  --success-soft: #e7f4ef;
  --warning: #a45d05;
  --warning-soft: #fff3dc;
  --risk: #b52b32;
  --risk-soft: #fae7e8;
  --info: #255f95;
  --info-soft: #e8f0f7;
  --shadow-sm: 0 3px 14px rgba(16, 35, 63, 0.06);
  --shadow-md: 0 18px 45px rgba(16, 35, 63, 0.12);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 78px;
  --banner-h: 36px;
  --sidebar-w: 268px;
  --content-max: 1500px;
  font-family: Inter, Aptos, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { max-width: 100%; overflow-x: clip; scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; min-width: 320px; max-width: 100%; overflow-x: clip; background: var(--paper); color: var(--text); line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 999; top: 8px; left: 8px; transform: translateY(-150%); padding: 10px 14px; background: var(--navy); color: white; border-radius: 8px; }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px #255f95 !important; }

.pilot-banner {
  position: sticky;
  top: 0;
  z-index: 90;
  min-height: var(--banner-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 7px 22px;
  background: var(--navy);
  color: #edf4fb;
  font-size: 12px;
  letter-spacing: .01em;
  text-align: center;
}
.pilot-banner strong { font-size: 11px; letter-spacing: .12em; }
.pilot-dot { width: 7px; height: 7px; border-radius: 50%; background: #f5b35a; box-shadow: 0 0 0 4px rgba(245,179,90,.12); flex: 0 0 auto; }
.text-button { appearance: none; min-height: 24px; display: inline-flex; align-items: center; border: 0; background: none; padding: 0; color: var(--info); text-decoration: underline; text-underline-offset: 3px; }
.pilot-info { color: white; margin-left: 4px; }

.site-header {
  position: sticky;
  top: var(--banner-h);
  z-index: 80;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 26px;
  border-bottom: 1px solid var(--border);
  background: rgba(247, 244, 239, .94);
  backdrop-filter: blur(18px);
}
.brand-lockup, .header-actions, .university-brand { display: flex; align-items: center; }
.brand-lockup { min-width: 0; gap: 12px; }
.university-brand { text-decoration: none; gap: 12px; min-width: 0; }
.university-brand img { width: 52px; height: 52px; object-fit: contain; flex: 0 0 auto; }
.university-brand span { display: grid; min-width: 0; }
.university-brand small { color: var(--muted); font-size: 11px; line-height: 1.3; }
.university-brand strong { color: var(--navy); font-size: 15px; line-height: 1.25; white-space: nowrap; }
.brand-divider { width: 1px; height: 33px; background: var(--border); }
.go-signature { width: 42px; height: 34px; object-fit: contain; }
.header-actions { gap: 12px; }
.icon-button { position: relative; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--white); color: var(--navy); }
.icon-button:hover { border-color: #b7b0a6; box-shadow: var(--shadow-sm); }
.icon-button svg { width: 19px; height: 19px; }
.notification-count { position: absolute; top: -4px; right: -2px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--paper); border-radius: 20px; background: var(--red); color: white; font-size: 10px; font-weight: 800; }
.data-mode { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; border: 1px solid var(--border); border-radius: 22px; background: var(--white); color: var(--muted); font-size: 12px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warning); }
.status-dot--ok { background: var(--success); }
.role-switcher { display: grid; gap: 2px; min-width: 220px; }
.role-switcher label { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.role-switcher select { width: 100%; border: 0; border-bottom: 1px solid var(--border); background: transparent; color: var(--navy); font-size: 13px; font-weight: 650; padding: 3px 22px 5px 0; }
.mobile-menu { display: none; }

.app-shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-width: 0; max-width: 100%; min-height: calc(100vh - var(--header-h) - var(--banner-h)); }
.sidebar { position: sticky; top: calc(var(--header-h) + var(--banner-h)); height: calc(100vh - var(--header-h) - var(--banner-h)); overflow-y: auto; padding: 18px 14px; border-right: 1px solid var(--border); background: #f1eee9; }
.persona-card { padding: 13px; margin-bottom: 15px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,.62); }
.persona-top { display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--purple); color: white; font-size: 13px; font-weight: 800; }
.persona-card strong { display: block; color: var(--navy); font-size: 13px; line-height: 1.3; }
.persona-card small { display: block; margin-top: 3px; color: var(--muted); font-size: 10.5px; line-height: 1.35; }
.persona-badge { display: inline-flex; margin-top: 10px; padding: 4px 8px; border-radius: 20px; background: var(--purple-soft); color: var(--purple); font-size: 10px; font-weight: 750; }
.side-nav { display: grid; gap: 4px; }
.nav-link { width: 100%; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: #495365; text-align: left; font-size: 12.5px; font-weight: 620; }
.nav-link svg { width: 17px; height: 17px; flex: 0 0 auto; }
.nav-link:hover { background: rgba(255,255,255,.7); color: var(--navy); }
.nav-link.active { background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); }
.nav-link.active::before { content: ""; width: 3px; height: 18px; margin-left: -12px; border-radius: 0 4px 4px 0; background: var(--red); }
.sidebar-note { display: flex; gap: 10px; margin-top: 24px; padding: 13px; border-top: 1px solid var(--border); color: var(--muted); }
.sidebar-note svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--success); }
.sidebar-note strong { display: block; color: var(--navy); font-size: 11px; }
.sidebar-note span { display: block; margin-top: 4px; font-size: 10px; line-height: 1.45; }
.nav-backdrop { display: none; }

#main-content { min-width: 0; max-width: 100%; overflow-x: clip; contain: inline-size; padding: 28px clamp(18px, 3.2vw, 54px) 64px; }
.page-container { width: min(100%, var(--content-max)); min-width: 0; max-width: 100%; overflow-x: clip; contain: inline-size; margin: 0 auto; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.page-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--red); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.page-kicker::before { content: ""; width: 24px; height: 2px; background: var(--red); }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: 6px; color: var(--navy); font-size: clamp(27px, 3vw, 40px); line-height: 1.12; letter-spacing: -.035em; }
h2 { color: var(--navy); font-size: clamp(20px, 2vw, 28px); line-height: 1.2; letter-spacing: -.025em; }
h3 { color: var(--navy); font-size: 16px; line-height: 1.3; }
.page-subtitle { max-width: 760px; margin: 0; color: var(--muted); font-size: 14px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 15px; border: 1px solid transparent; border-radius: 9px; background: var(--navy); color: white; text-decoration: none; font-size: 12.5px; font-weight: 720; }
.button svg { width: 16px; height: 16px; }
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.button--secondary { border-color: var(--border); background: var(--white); color: var(--navy); }
.button--ghost { border-color: transparent; background: transparent; color: var(--navy); }
.button--danger { background: var(--risk); }
.button--success { background: var(--success); }
.button--sm { min-height: 34px; padding: 7px 11px; font-size: 11.5px; }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.hero { position: relative; display: grid; grid-template-columns: minmax(330px, .78fr) minmax(480px, 1.22fr); align-items: center; min-height: 500px; margin: -28px clamp(-54px, -3.2vw, -18px) 0; padding: 44px clamp(24px, 5vw, 76px); overflow: hidden; border-bottom: 1px solid var(--border); background: #faf7f2; }
.hero-copy { position: relative; z-index: 2; padding: 28px 0; }
.hero-logo-row { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.hero-logo-row img:first-child { width: 72px; height: 72px; object-fit: contain; }
.hero-logo-row img:last-child { width: 46px; height: 38px; object-fit: contain; }
.hero-logo-row .line { width: 1px; height: 46px; background: var(--border); }
.hero .eyebrow { margin-bottom: 14px; color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.hero h1 { max-width: 680px; font-size: clamp(34px, 4.5vw, 64px); line-height: 1.03; }
.hero h1 span { color: var(--red); }
.hero p { max-width: 610px; margin: 18px 0 26px; color: var(--muted); font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-art { position: absolute; inset: 0 0 0 28%; display: flex; align-items: center; justify-content: flex-end; pointer-events: none; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #faf7f2 0%, rgba(250,247,242,.28) 27%, transparent 55%); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.source-strip { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: 25px; color: var(--muted); font-size: 11px; }
.source-strip span { display: inline-flex; align-items: center; gap: 6px; }
.source-strip svg { width: 14px; height: 14px; color: var(--success); }

.section { padding: 48px 0 0; }
.editorial-figure { position: relative; margin: 24px 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #f8f4ee; box-shadow: var(--shadow-sm); }
.editorial-figure img { width: 100%; max-height: 430px; object-fit: cover; object-position: center; }
.editorial-figure--compact { max-width: 760px; margin-left: auto; margin-right: auto; }
.editorial-figure--compact img { max-height: 350px; }
.editorial-figure figcaption { position: absolute; left: 14px; right: 14px; bottom: 12px; width: fit-content; max-width: calc(100% - 28px); padding: 8px 11px; border: 1px solid rgba(255,255,255,.65); border-radius: 8px; background: rgba(16,35,63,.88); color: white; font-size: 10.5px; backdrop-filter: blur(8px); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 20px; }
.section-heading p { max-width: 680px; margin: 0; color: var(--muted); font-size: 13px; }
.lifecycle-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.life-card { position: relative; min-height: 168px; padding: 18px 15px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.life-card::after { content: ""; position: absolute; top: 28px; right: -11px; width: 11px; border-top: 1px dashed #b7b0a6; }
.life-card:last-child::after { display: none; }
.life-no { width: 28px; height: 28px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 50%; background: var(--navy); color: white; font-size: 11px; font-weight: 800; }
.life-card:nth-child(2) .life-no, .life-card:nth-child(5) .life-no { background: var(--purple); }
.life-card:nth-child(4) .life-no, .life-card:nth-child(6) .life-no { background: var(--red); }
.life-card h3 { margin-bottom: 7px; font-size: 13px; }
.life-card p { margin: 0; color: var(--muted); font-size: 10.8px; }

.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 17px 18px 0; }
.card-header h2, .card-header h3 { margin-bottom: 4px; }
.card-header p { margin: 0; color: var(--muted); font-size: 11.5px; }
.card-body { padding: 17px 18px 18px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-top: 1px solid var(--border-soft); }
.kpi-card { position: relative; min-height: 132px; padding: 17px; overflow: hidden; }
.kpi-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; font-weight: 650; }
.kpi-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--purple-soft); color: var(--purple); }
.kpi-icon svg { width: 16px; height: 16px; }
.kpi-value { margin: 15px 0 3px; color: var(--navy); font-size: 28px; font-weight: 780; letter-spacing: -.04em; line-height: 1; }
.kpi-note { color: var(--muted); font-size: 10.5px; }
.kpi-card::after { content: ""; position: absolute; right: -18px; bottom: -22px; width: 76px; height: 76px; border: 12px solid rgba(53,43,130,.05); border-radius: 50%; }

.notice { display: flex; gap: 11px; padding: 14px; border: 1px solid #cddbea; border-radius: var(--radius); background: var(--info-soft); color: #244c71; font-size: 12px; }
.notice svg { width: 19px; height: 19px; flex: 0 0 auto; }
.notice strong { display: block; margin-bottom: 3px; color: #173e63; }
.notice--warning { border-color: #ecd1a6; background: var(--warning-soft); color: #74440b; }
.notice--success { border-color: #b9dfd1; background: var(--success-soft); color: #175c48; }
.notice--risk { border-color: #edc0c3; background: var(--risk-soft); color: #7b242b; }

.status { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 4px 8px; border-radius: 18px; background: var(--info-soft); color: var(--info); font-size: 10px; font-weight: 750; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--success { background: var(--success-soft); color: var(--success); }
.status--warning { background: var(--warning-soft); color: var(--warning); }
.status--risk { background: var(--risk-soft); color: var(--risk); }
.status--neutral { background: #eeece8; color: #5c6470; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.toolbar-group { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.search { position: relative; min-width: min(100%, 290px); }
.search svg { position: absolute; top: 11px; left: 11px; width: 16px; height: 16px; color: var(--muted); }
.search input { width: 100%; height: 39px; padding: 0 12px 0 36px; border: 1px solid var(--border); border-radius: 9px; background: var(--white); color: var(--text); }
.select { height: 39px; padding: 0 32px 0 11px; border: 1px solid var(--border); border-radius: 9px; background: var(--white); color: var(--text); font-size: 12px; }
.table-wrap { display: block; width: 100%; min-width: 0; max-width: 100%; min-inline-size: 0; max-inline-size: 100%; overflow-x: auto; overflow-y: hidden; contain: inline-size layout paint; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; min-width: 790px; }
th { padding: 11px 14px; border-bottom: 1px solid var(--border); background: #f3f0eb; color: var(--muted); font-size: 10px; text-align: left; text-transform: uppercase; letter-spacing: .06em; }
td { padding: 13px 14px; border-bottom: 1px solid var(--border-soft); color: #354052; font-size: 11.5px; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfaf8; }
.table-title { display: block; color: var(--navy); font-size: 12.5px; font-weight: 700; }
.table-subtitle { display: block; margin-top: 3px; color: var(--muted); font-size: 10.5px; }

.program-card { display: flex; flex-direction: column; min-height: 100%; overflow: hidden; }
.program-accent { height: 5px; background: var(--purple); }
.program-card:nth-child(2n) .program-accent { background: var(--red); }
.program-card:nth-child(3n) .program-accent { background: var(--gold); }
.program-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.meta-pill { display: inline-flex; align-items: center; padding: 4px 7px; border: 1px solid var(--border); border-radius: 20px; color: var(--muted); font-size: 9.5px; }
.program-card h3 { margin-bottom: 8px; font-size: 17px; }
.program-card p { flex: 1; color: var(--muted); font-size: 11.5px; }

.progress { height: 7px; overflow: hidden; border-radius: 99px; background: #e7e3dc; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--purple); }
.progress--warning span { background: var(--warning); }
.progress--risk span { background: var(--risk); }
.progress-labels { display: flex; justify-content: space-between; gap: 10px; margin-top: 7px; color: var(--muted); font-size: 9.5px; }

.form-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; }
.steps { position: sticky; top: calc(var(--header-h) + 18px); align-self: start; padding: 10px; }
.step { display: flex; gap: 10px; padding: 10px; border-radius: 10px; color: var(--muted); font-size: 11.5px; }
.step span:first-child { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--border); border-radius: 50%; font-size: 10px; font-weight: 800; }
.step.active { background: var(--purple-soft); color: var(--purple); font-weight: 750; }
.step.active span:first-child { border-color: var(--purple); background: var(--purple); color: white; }
.form-card { padding: 22px; }
.form-section { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--border-soft); }
.form-section:last-child { border-bottom: 0; margin-bottom: 0; }
.form-section h3 { margin-bottom: 4px; }
.form-section > p { margin-bottom: 16px; color: var(--muted); font-size: 11.5px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; }
.field label, .field legend { color: var(--navy); font-size: 11px; font-weight: 700; }
.required::after { content: " *"; color: var(--red); }
.field input, .field select, .field textarea { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); }
.field textarea { min-height: 92px; resize: vertical; }
.field small { color: var(--muted); font-size: 9.5px; }
.field input:invalid:not(:placeholder-shown), .field textarea:invalid:not(:placeholder-shown) { border-color: var(--risk); }
.form-actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 9px; padding: 15px 0 0; background: linear-gradient(transparent, var(--paper) 26%); }
.dropzone { width: 100%; display: grid; place-items: center; min-height: 120px; padding: 18px; border: 1px dashed #aaa296; border-radius: 10px; background: #faf9f7; color: var(--muted); text-align: center; font-size: 11px; cursor: pointer; }
.dropzone:hover, .dropzone:focus-visible { border-color: var(--purple); background: var(--purple-soft); }
.dropzone svg { width: 24px; height: 24px; margin-bottom: 8px; color: var(--purple); }

.decision-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); gap: 17px; }
.tabs { display: flex; gap: 3px; overflow-x: auto; padding: 4px; border: 1px solid var(--border); border-radius: 10px; background: #f2efea; }
.tab { min-height: 34px; padding: 6px 11px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.tab.active { background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); }
.analysis-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.band { padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: #faf9f7; }
.band strong { display: block; color: var(--navy); font-size: 18px; }
.band span { color: var(--muted); font-size: 9.5px; }
.band.is-active { border-color: #e0bd84; background: var(--warning-soft); }
.matrix { display: grid; gap: 9px; }
.matrix-row { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(150px, 1fr) 70px; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-soft); font-size: 11px; }
.matrix-row:last-child { border-bottom: 0; }
.sticky-card { position: sticky; top: calc(var(--header-h) + 18px); align-self: start; }
.decision-buttons { display: grid; gap: 8px; }

.timeline { display: grid; }
.timeline-item { display: grid; grid-template-columns: 28px 1fr; gap: 11px; }
.timeline-marker { position: relative; display: flex; justify-content: center; }
.timeline-marker::before { content: ""; width: 9px; height: 9px; margin-top: 5px; border: 2px solid var(--white); border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 1px var(--purple); z-index: 1; }
.timeline-marker::after { content: ""; position: absolute; top: 16px; bottom: -3px; width: 1px; background: var(--border); }
.timeline-item:last-child .timeline-marker::after { display: none; }
.timeline-content { padding-bottom: 17px; }
.timeline-content strong { display: block; color: var(--navy); font-size: 11.5px; }
.timeline-content span { display: block; margin-top: 2px; color: var(--muted); font-size: 9.8px; }

.scenario-card .card-body { display: grid; gap: 16px; }
.scenario-steps { display: grid; gap: 7px; padding: 0; margin: 0; list-style: none; }
.scenario-steps li { display: grid; grid-template-columns: 25px 1fr; align-items: start; gap: 9px; padding: 7px 9px; border: 1px solid transparent; border-radius: 9px; color: var(--muted); }
.scenario-steps li > span { width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; font-size: 9px; font-weight: 800; }
.scenario-steps li strong { display: block; color: inherit; font-size: 11px; }
.scenario-steps li small { display: block; margin-top: 2px; font-size: 9.5px; }
.scenario-steps li.current { border-color: #d9d0f1; background: var(--purple-soft); color: var(--purple); }
.scenario-steps li.current > span { border-color: var(--purple); background: var(--purple); color: white; }
.scenario-steps li.done { color: var(--success); }
.scenario-steps li.done > span { border-color: var(--success); background: var(--success-soft); }
.scenario-next { width: 100%; }

.credential { position: relative; overflow: hidden; padding: 22px; border: 1px solid #cfc7b9; border-radius: var(--radius); background: linear-gradient(145deg, #fff 0%, #f4f0ea 100%); }
.credential::before, .credential::after { content: ""; position: absolute; border-radius: 50%; border: 18px solid rgba(53,43,130,.05); }
.credential::before { width: 150px; height: 150px; right: -72px; top: -80px; }
.credential::after { width: 90px; height: 90px; left: -55px; bottom: -45px; border-color: rgba(211,31,43,.05); }
.credential-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.credential-top img { width: 52px; height: 52px; object-fit: contain; }
.credential h3 { margin: 28px 0 8px; font-size: 22px; }
.credential-code { color: var(--purple); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 700; }
.credential-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.credential-field { padding: 9px; border-top: 1px solid var(--border); }
.credential-field span { display: block; color: var(--muted); font-size: 8.5px; text-transform: uppercase; letter-spacing: .08em; }
.credential-field strong { display: block; margin-top: 3px; color: var(--navy); font-size: 11px; }
.qr { width: 112px; aspect-ratio: 1; display: grid; grid-template-columns: repeat(9, 1fr); padding: 8px; border: 1px solid var(--border); background: white; }
.qr i { background: transparent; }
.qr i.on { background: var(--navy); }

.integration-card, .external-gate-card { min-height: 330px; }
.integration-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.integration-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 12px; background: #f5f2ed; color: var(--navy); font-size: 11px; font-weight: 800; }
.integration-card h3, .external-gate-card h3 { margin: 12px 0 4px; }
.integration-card dl, .external-gate-card dl { display: grid; grid-template-columns: minmax(72px, .42fr) minmax(0, 1fr); gap: 8px 12px; margin: 16px 0 0; font-size: 10.5px; }
.integration-card dt, .external-gate-card dt { color: var(--muted); }
.integration-card dd, .external-gate-card dd { margin: 0; color: var(--navy); text-align: left; overflow-wrap: anywhere; }
.integration-tags, .integration-detail-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
.integration-tags span, .integration-detail-meta span { padding: 4px 7px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-muted); color: var(--muted); font-size: 8.5px; font-weight: 700; }
.integration-governance { display: inline-flex; margin-top: 8px; color: var(--purple); font-size: 9px; font-weight: 800; }
.integration-purpose { min-height: 48px; }
.integration-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.integration-source, .integration-public { display: inline-flex; }
.integration-toolbar .toolbar-group { flex: 1; justify-content: flex-end; }
.integration-toolbar input[type="search"] { width: min(290px, 100%); }
.integration-payload { overflow: auto; margin: 10px 0 0; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: #f7f8fa; color: #3a4658; font-size: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.integration-detail-list { display: grid; grid-template-columns: minmax(90px, .42fr) minmax(0, 1fr); gap: 8px 12px; margin: 12px 0 18px; font-size: 10.5px; }
.integration-detail-list dt { color: var(--muted); }
.integration-detail-list dd { margin: 0; color: var(--navy); overflow-wrap: anywhere; }
.master-data-card .permission-note { margin: 0; }
.tier-legend-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tier-legend-grid > div { display: grid; gap: 4px; min-height: 78px; padding: 13px; border: 1px solid var(--border); border-radius: 10px; background: var(--paper); }
.tier-legend-grid strong { color: var(--navy); font-size: 12px; }
.tier-legend-grid span { color: var(--muted); font-size: 10.5px; line-height: 1.45; }
.integration-explainer { border-top: 3px solid var(--purple); }
.integration-explainer:nth-child(2) { border-top-color: var(--gold); }
.scope-list { display: grid; gap: 7px; padding-left: 18px; margin: 15px 0 0; color: var(--muted); font-size: 11px; }
.scope-list strong { color: var(--risk); }

.role-overview { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, .8fr) auto; align-items: center; gap: 20px; margin-bottom: 18px; padding: 19px 21px; border: 1px solid #d9d0f1; border-left: 5px solid var(--purple); border-radius: var(--radius); background: linear-gradient(100deg, var(--purple-soft), #fff 70%); box-shadow: var(--shadow-sm); }
.role-overview h2 { margin: 3px 0 5px; font-size: 19px; }
.role-overview p { margin: 0; color: var(--muted); font-size: 11.5px; }
.role-overview__eyebrow { color: var(--purple); font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.role-overview__boundary { display: grid; gap: 4px; padding: 10px 13px; border-left: 1px solid #d9d0f1; color: var(--muted); font-size: 10.5px; }
.role-overview__boundary strong { color: var(--navy); }

.payment-flow { padding-top: 24px; }
.payment-flow ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 0; list-style: none; }
.payment-flow li { position: relative; display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 9px; min-height: 72px; padding: 11px; border: 1px solid var(--border); border-radius: 11px; background: #fff; color: var(--muted); }
.payment-flow li > span { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; font-size: 10px; font-weight: 800; }
.payment-flow li > span svg { width: 15px; height: 15px; }
.payment-flow li strong, .payment-flow li small { display: block; }
.payment-flow li strong { color: var(--navy); font-size: 11px; }
.payment-flow li small { margin-top: 3px; font-size: 9px; }
.payment-flow li.current { border-color: #d9d0f1; background: var(--purple-soft); color: var(--purple); }
.payment-flow li.current > span { border-color: var(--purple); background: var(--purple); color: #fff; }
.payment-flow li.done { border-color: #b9dfd1; background: var(--success-soft); color: var(--success); }
.payment-flow li.done > span { border-color: var(--success); color: var(--success); }
.payment-form { overflow: hidden; }
.payment-form .card-footer > span { display: grid; gap: 2px; }
.consent-row { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 10.5px; line-height: 1.45; }
.consent-row input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; accent-color: var(--purple); }
.table-actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 180px; }

.chart-wrap { min-height: 260px; }
.donut-row { display: flex; align-items: center; gap: 24px; }
.donut { --value: 67; --color: var(--purple); width: 142px; aspect-ratio: 1; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: conic-gradient(var(--color) calc(var(--value) * 1%), #e6e1da 0); }
.donut::before { content: ""; width: 92px; aspect-ratio: 1; border-radius: 50%; background: var(--white); }
.donut strong { position: absolute; color: var(--navy); font-size: 24px; }
.chart-legend { display: grid; gap: 9px; flex: 1; }
.legend-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.legend-item i { width: 8px; height: 8px; display: inline-block; margin-right: 7px; border-radius: 2px; background: var(--purple); }
.bar-chart { height: 210px; display: flex; align-items: flex-end; gap: 12px; padding: 20px 5px 0; border-bottom: 1px solid var(--border); }
.bar { flex: 1; min-width: 24px; position: relative; height: var(--h); border-radius: 6px 6px 0 0; background: var(--purple); }
.bar:nth-child(2n) { background: var(--red); }
.bar span { position: absolute; bottom: -28px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 9px; white-space: nowrap; }
.bar strong { position: absolute; top: -21px; left: 50%; transform: translateX(-50%); color: var(--navy); font-size: 10px; }

.empty-state { display: grid; place-items: center; min-height: 260px; padding: 32px; color: var(--muted); text-align: center; }
.empty-icon { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 15px; border-radius: 50%; background: var(--purple-soft); color: var(--purple); }
.empty-icon svg { width: 28px; height: 28px; }
.empty-state h3 { margin-bottom: 7px; }
.empty-state p { max-width: 420px; font-size: 12px; }
.empty-inline { display: grid; gap: 5px; min-height: 150px; place-content: center; color: var(--muted); text-align: center; }
.empty-inline strong { color: var(--navy); }
.empty-inline span { font-size: 12px; }
.empty-table-row td { padding: 42px 20px; color: var(--muted); text-align: center; }
.empty-table-row strong, .empty-table-row span { display: block; }
.empty-table-row strong { margin-bottom: 6px; color: var(--navy); }
.empty-table-row span { font-size: 12px; }
.permission-note { display: grid; gap: 4px; margin-top: 16px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--paper); color: var(--muted); font-size: 11px; line-height: 1.45; }
.permission-note strong { color: var(--navy); font-size: 12px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(10, 23, 41, .58); backdrop-filter: blur(4px); }
.modal-backdrop[hidden] { display: none; }
.modal { width: min(100%, 650px); max-height: calc(100vh - 40px); overflow: auto; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-md); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 20px 22px; border-bottom: 1px solid var(--border-soft); }
.modal-header h2 { margin: 0; font-size: 20px; }
.modal-body { padding: 20px 22px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 9px; padding: 15px 22px; border-top: 1px solid var(--border-soft); background: #faf9f7; }
.toast-region { position: fixed; z-index: 300; right: 18px; bottom: 18px; display: grid; gap: 9px; width: min(360px, calc(100vw - 36px)); pointer-events: none; }
.toast { display: flex; gap: 11px; padding: 14px 15px; border: 1px solid #b9dfd1; border-radius: 11px; background: var(--white); box-shadow: var(--shadow-md); color: var(--text); font-size: 11.5px; animation: toast-in .24s ease-out; }
.toast svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--success); }
.toast--error { border-color: #edc0c3; background: var(--risk-soft); color: var(--risk); }
.toast--error svg { color: var(--risk); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

.framework-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 22px 0 14px; }
.framework-tabs .tab { min-height: 62px; display: flex; align-items: flex-start; justify-content: center; flex-direction: column; text-align: left; }
.framework-tabs .tab small { display: block; margin-top: 3px; color: var(--muted); font-weight: 500; }
.framework-source-card .card-body { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.matrix-intro { margin-top: 18px; }
.instruction-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; margin: 20px 0 0; padding-left: 22px; color: var(--muted); }
.matrix-editor { display: grid; gap: 16px; margin-top: 16px; }
.matrix-editor-row { min-width: 0; margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.matrix-editor-row > legend { margin-left: 18px; padding: 0 8px; color: var(--navy); font-size: 15px; font-weight: 800; }
.matrix-reference { padding: 18px 22px; border-bottom: 1px solid var(--border); background: var(--paper); }
.matrix-reference > span { display: inline-flex; margin-bottom: 8px; color: var(--purple); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.matrix-reference p { margin: 0; color: var(--muted); font-size: 12.5px; white-space: pre-line; }
.matrix-reference small { display: block; margin-top: 10px; color: var(--warning); font-size: 10.5px; }
.matrix-reference details { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.matrix-reference summary { color: var(--info); font-size: 11px; font-weight: 700; cursor: pointer; }
.matrix-reference details p { margin-top: 8px; }
.matrix-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 22px; }
.matrix-fields textarea { min-height: 92px; }

.smart-qualification-shell { padding: 20px; border: 1px solid #cec8ea; border-radius: var(--radius-lg); background: linear-gradient(180deg, #fbfaff 0%, var(--white) 210px); }
.smart-alignment-header, .smart-review-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.smart-alignment-header h3, .smart-review-head h3 { margin: 2px 0 4px; }
.smart-alignment-header p, .smart-review-head p { color: var(--muted); font-size: 11.5px; }
.smart-suggestion-results { display: grid; gap: 22px; margin-top: 18px; }
.smart-suggestion-results[aria-busy="true"] { opacity: .68; }
.smart-empty { min-height: 180px; display: grid; place-items: center; align-content: center; gap: 6px; padding: 24px; border: 1px dashed #cfc9e5; border-radius: var(--radius); color: var(--muted); text-align: center; }
.smart-empty .empty-icon { width: 50px; height: 50px; margin: 0 0 4px; }
.smart-empty strong { color: var(--navy); }
.smart-empty span { max-width: 520px; font-size: 11.5px; }
.smart-program-summary { display: grid; grid-template-columns: .7fr .7fr 1.6fr; gap: 10px; }
.smart-program-summary > div { display: grid; gap: 4px; min-width: 0; padding: 13px 14px; border: 1px solid #d8d3ed; border-radius: 10px; background: var(--white); }
.smart-program-summary span { color: var(--muted); font-size: 9.5px; font-weight: 750; letter-spacing: .035em; text-transform: uppercase; }
.smart-program-summary strong { overflow-wrap: anywhere; color: var(--navy); font-size: 12px; line-height: 1.45; }
.smart-outcome { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--border-soft); }
.smart-outcome__title { display: flex; align-items: flex-start; gap: 10px; }
.smart-outcome__title > span { width: 38px; min-width: 38px; height: 24px; display: grid; place-items: center; border-radius: 14px; background: var(--purple); color: var(--white); font-size: 9px; font-weight: 800; }
.smart-outcome__title h4 { margin: 1px 0 0; color: var(--navy); font-size: 14px; line-height: 1.45; }
.smart-suggestion-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.smart-suggestion { min-width: 0; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.smart-suggestion.is-applied { border-color: #75bda5; box-shadow: inset 4px 0 var(--success), var(--shadow-sm); }
.smart-suggestion__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.smart-suggestion__head h4 { margin: 2px 0 0; color: var(--navy); font-size: 17px; }
.smart-confidence { display: block; margin-top: 4px; color: var(--muted); font-size: 9.5px; }
.smart-score { width: 52px; height: 52px; display: grid; place-items: center; flex: 0 0 auto; border: 7px solid var(--purple-soft); border-radius: 50%; color: var(--purple); font-size: 12px; font-weight: 850; }
.smart-suggestion__details { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 8px 12px; margin: 15px 0; }
.smart-suggestion__details dt { color: var(--muted); font-size: 9.5px; font-weight: 750; }
.smart-suggestion__details dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: var(--text); font-size: 10.5px; line-height: 1.5; white-space: pre-line; }
.smart-signals { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.smart-signals span { padding: 4px 7px; border-radius: 16px; background: var(--info-soft); color: var(--info); font-size: 9px; font-weight: 700; }
.smart-source-link { display: inline-flex; align-items: center; gap: 5px; margin: 2px 0 12px; }
.smart-source-link svg { width: 13px; height: 13px; }
.smart-cycle { display: grid; gap: 3px; padding: 11px; border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; background: #fbf7ef; color: var(--muted); font-size: 10px; line-height: 1.45; }
.smart-cycle strong { color: #664b1f; font-size: 10.5px; }
.smart-cycle small { color: var(--warning); }
.smart-levels, .smart-override details, .smart-review-card details { margin-top: 12px; border-top: 1px solid var(--border-soft); padding-top: 10px; }
.smart-levels summary, .smart-override summary, .smart-review-card summary { color: var(--info); font-size: 10.5px; font-weight: 750; cursor: pointer; }
.smart-levels summary:focus-visible, .smart-override summary:focus-visible, .smart-review-card summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.smart-level-list { display: grid; grid-template-columns: repeat(8, minmax(38px, 1fr)); gap: 5px; margin-top: 10px; }
.smart-level-list span { display: grid; place-items: center; gap: 1px; min-height: 44px; border: 1px solid var(--border); border-radius: 7px; color: var(--muted); }
.smart-level-list span.has-score { border-color: #c9c2e8; background: var(--purple-soft); color: var(--purple); }
.smart-level-list strong { font-size: 11px; }
.smart-level-list small { font-size: 8.5px; }
.smart-suggestion__actions { display: flex; margin-top: 12px; }
.smart-override__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.smart-override__fields .full { grid-column: 1 / -1; }
.smart-override-descriptor { margin: 4px 0 0; padding: 9px; border: 1px solid var(--border-soft); border-radius: 7px; background: var(--paper); color: var(--text); font-size: 10px; line-height: 1.45; white-space: pre-line; }
.smart-coverage-section { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--border-soft); }
.smart-coverage table { min-width: 890px; }
.smart-coverage caption { padding: 10px 14px; color: var(--muted); font-size: 10px; text-align: left; }
.smart-coverage th[scope="row"] { width: 280px; padding: 11px 14px; text-align: left; }
.smart-coverage td { text-align: center; }
.smart-coverage td strong { color: var(--purple); }
.coverage-empty { color: #a2a7ae; }
.smart-applied-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border-soft); }
.smart-applied-fields .full { grid-column: auto; }
.smart-applied-fields textarea { min-height: 132px; }
.smart-readonly-review { display: grid; gap: 16px; }
.smart-review-card { overflow: hidden; }
.smart-review-card .smart-program-summary { margin: 14px 0; }
.smart-review-details { display: grid; gap: 20px; margin-top: 16px; }
.smart-review-card [data-smart-suggestion] { box-shadow: none; }
.smart-review-card .permission-note { margin-bottom: 0; }

.governance-scope { border-top: 4px solid var(--purple); }
.governance-definition { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.governance-definition > div { min-width: 0; padding: 12px; border: 1px solid var(--border-soft); border-radius: 9px; background: var(--paper); }
.governance-definition dt { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.governance-definition dd { margin: 5px 0 0; overflow-wrap: anywhere; color: var(--navy); font-size: 11px; line-height: 1.5; }
.governance-policy-list { display: grid; gap: 10px; }
.governance-policy-list article { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; padding: 12px; border: 1px solid var(--border-soft); border-radius: 9px; }
.governance-policy-list article > div:first-child { min-width: 0; }
.governance-policy-list strong, .governance-policy-list span, .governance-policy-list small { display: block; }
.governance-policy-list strong { overflow-wrap: anywhere; color: var(--navy); font-size: 11px; line-height: 1.45; }
.governance-policy-list span, .governance-policy-list small { color: var(--muted); font-size: 9.5px; }
.governance-policy-list small { grid-column: 1 / -1; }
.band-list { display: grid; gap: 7px; }
.band-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--border-soft); border-radius: 8px; }
.band-list strong { color: var(--navy); font-size: 11px; }
.band-list span { color: var(--purple); font-size: 11px; font-weight: 750; }
.governance-rule-table table { min-width: 900px; }
.recognition-decision-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.recognition-decision-grid article, .governance-operation-grid article { display: grid; align-content: start; gap: 6px; min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--paper); }
.recognition-decision-grid span, .governance-operation-grid span { color: var(--muted); font-size: 9.5px; font-weight: 750; text-transform: uppercase; }
.recognition-decision-grid strong, .governance-operation-grid strong { overflow-wrap: anywhere; color: var(--navy); font-size: 12px; }
.recognition-decision-grid small, .governance-operation-grid small { color: var(--muted); font-size: 9.5px; line-height: 1.45; }
.recognition-decision-grid .button { margin-top: 6px; width: 100%; }
.split-outcome { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; padding-top: 0; border: 1px solid var(--border); border-radius: 10px; background: var(--border); }
.split-outcome > div { display: grid; gap: 4px; padding: 13px; background: var(--white); }
.split-outcome span { color: var(--muted); font-size: 9.5px; }
.split-outcome strong { color: var(--purple); font-size: 12px; }
.governance-operation-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.governance-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }

@media (max-width: 900px) {
  .recognition-decision-grid, .governance-operation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1180px) {
  :root { --sidebar-w: 224px; }
  .data-mode { display: none; }
  .hero { grid-template-columns: .9fr 1.1fr; }
  .lifecycle-grid { grid-template-columns: repeat(3, 1fr); }
  .life-card::after { display: none; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 900px) {
  :root { --banner-h: 46px; }
  .pilot-banner { height: var(--banner-h); padding: 6px 12px; gap: 5px 8px; font-size: 10px; line-height: 1.2; }
  .pilot-banner strong { font-size: 9px; }
  .pilot-info { display: none; }
  .site-header { padding: 0 16px; }
  .mobile-menu { display: grid; }
  .brand-divider, .go-signature, .university-brand small { display: none; }
  .university-brand strong { font-size: 12px; }
  .university-brand img { width: 43px; height: 43px; }
  .role-switcher { min-width: 185px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 120; top: calc(var(--header-h) + var(--banner-h)); left: 0; width: min(318px, 88vw); height: calc(100vh - var(--header-h) - var(--banner-h)); transform: translateX(-105%); visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s; box-shadow: var(--shadow-md); }
  body.nav-open .sidebar { transform: none; visibility: visible; transition-delay: 0s; }
  .nav-backdrop { position: fixed; z-index: 110; inset: calc(var(--header-h) + var(--banner-h)) 0 0; border: 0; background: rgba(10,23,41,.35); }
  body.nav-open .nav-backdrop { display: block; }
  .hero { min-height: 620px; grid-template-columns: 1fr; align-items: flex-end; padding-top: 210px; }
  .hero-art { inset: 0; height: 340px; }
  .hero-art::after { background: linear-gradient(0deg, #faf7f2 0%, rgba(250,247,242,.2) 50%, transparent 100%); }
  .form-shell, .decision-layout { grid-template-columns: 1fr; }
  .steps, .sticky-card { position: static; }
  .steps { display: flex; overflow-x: auto; }
  .step { min-width: 170px; }
  .role-overview { grid-template-columns: 1fr; }
  .role-overview__boundary { border-left: 0; border-top: 1px solid #d9d0f1; padding-left: 0; }
  .role-overview .button { width: fit-content; }
  .payment-flow ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .integration-toolbar { align-items: stretch; flex-direction: column; }
  .integration-toolbar .toolbar-group { justify-content: flex-start; }
  .tier-legend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .table-wrap { inline-size: min(100%, calc(100vw - 36px)); }
  .smart-suggestion-grid, .smart-applied-fields { grid-template-columns: 1fr; }
  .smart-program-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .smart-program-summary > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --header-h: 66px; --banner-h: 56px; }
  .pilot-banner { height: var(--banner-h); align-content: center; }
  .site-header { gap: 8px; }
  .university-brand span { display: none; }
  .header-actions { margin-left: auto; gap: 6px; }
  .role-switcher { min-width: 0; width: 138px; }
  .role-switcher label { display: none; }
  .role-switcher select { font-size: 11px; }
  #main-content { padding: 20px 14px 54px; }
  .page-header { display: grid; gap: 14px; }
  .page-actions { width: 100%; }
  .page-actions .button { flex: 1; }
  .hero { min-height: 640px; margin: -20px -14px 0; padding: 230px 18px 34px; }
  .hero-art { height: 320px; inset: 0 -80px 0 -70px; }
  .hero-logo-row { margin-bottom: 18px; }
  .hero-logo-row img:first-child { width: 58px; height: 58px; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 13px; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .source-strip { gap: 8px; }
  .section { padding-top: 36px; }
  .section-heading { display: block; }
  .grid-2, .grid-3, .grid-4, .lifecycle-grid { grid-template-columns: 1fr; }
  .kpi-card { min-height: 116px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .form-card { padding: 16px; }
  .form-actions { display: grid; }
  .analysis-band { grid-template-columns: 1fr; }
  .matrix-row { grid-template-columns: 1fr; }
  .matrix-row > strong { color: var(--purple); }
  .credential-grid { grid-template-columns: 1fr 1fr; }
  .credential-top { align-items: flex-start; }
  .donut-row { display: grid; justify-items: center; }
  .modal-backdrop { padding: 0; align-items: end; }
  .modal { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; }
  .modal-footer { display: grid; }
  .payment-flow ol { grid-template-columns: 1fr; }
  .payment-form .card-footer { display: grid; align-items: stretch; }
  .payment-form .card-footer .button, .role-overview .button { width: 100%; }
  .framework-tabs, .instruction-list, .matrix-fields { grid-template-columns: 1fr; }
  .framework-source-card .card-body { align-items: flex-start; flex-direction: column; }
  .integration-toolbar .toolbar-group { display: grid; width: 100%; }
  .integration-toolbar input[type="search"], .integration-toolbar select, .integration-toolbar .button { width: 100%; }
  .integration-detail-list, .integration-card dl, .external-gate-card dl { grid-template-columns: 1fr; }
  .tier-legend-grid { grid-template-columns: 1fr; }
  .table-wrap { inline-size: min(100%, calc(100vw - 28px)); }
  .smart-qualification-shell { padding: 14px; }
  .smart-alignment-header, .smart-review-head { align-items: stretch; flex-direction: column; }
  .smart-alignment-header .button, .smart-review-head .button { width: 100%; }
  .smart-program-summary, .smart-override__fields { grid-template-columns: 1fr; }
  .smart-program-summary > div:last-child, .smart-override__fields .full { grid-column: auto; }
  .smart-suggestion { padding: 13px; }
  .smart-suggestion__details { grid-template-columns: 1fr; gap: 3px; }
  .smart-suggestion__details dd { margin-bottom: 6px; }
  .smart-level-list { grid-template-columns: repeat(4, minmax(38px, 1fr)); }
  .smart-suggestion__actions .button { width: 100%; }
  .governance-definition, .recognition-decision-grid, .governance-operation-grid, .split-outcome { grid-template-columns: 1fr; }
  .governance-policy-list article { grid-template-columns: 1fr; }
  .governance-policy-list small { grid-column: auto; }
  .governance-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
