:root {
  --portal-forest: #102118;
  --portal-forest-2: #173523;
  --portal-leaf: #479c73;
  --portal-mint: #dcebe3;
  --portal-paper: #f6f5f3;
  --portal-white: #ffffff;
  --portal-ink: #142019;
  --portal-muted: #617068;
  --portal-line: #d7ddd9;
  --portal-sun: #f0c845;
  --portal-orange: #d4622c;
  --portal-sky: #b8d9ea;
  --portal-aqua: #b9ded2;
  --portal-purple: #9967ca;
  --portal-danger: #a63f32;
  --portal-sidebar: 264px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--portal-paper); }
body[data-page='portal'] { margin: 0; min-height: 100vh; background: var(--portal-paper); color: var(--portal-ink); font-family: Inter, 'Helvetica Neue', Arial, sans-serif; }
body[data-page='portal'] :where(button,input,textarea,select) { font: inherit; }
body[data-page='portal'] :where(button,a,select) { -webkit-tap-highlight-color: transparent; }
body[data-page='portal'] :where(a) { color: inherit; }
body[data-page='portal'] :where(button):not(:disabled) { cursor: pointer; }
body[data-page='portal'] :focus-visible { outline: 3px solid var(--portal-orange); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.portal-skip-link { position: fixed; z-index: 10000; top: 8px; left: 8px; transform: translateY(-150%); padding: 12px 16px; background: #fff; color: #000; }
.portal-skip-link:focus { transform: none; }

.portal-app { display: grid; grid-template-columns: var(--portal-sidebar) minmax(0,1fr); min-height: 100vh; }
.portal-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; display: flex; flex-direction: column; width: var(--portal-sidebar); padding: 24px 18px; background: var(--portal-forest); color: #f7f7f5; border-right: 1px solid rgba(255,255,255,.08); }
.portal-brand { display: flex; align-items: center; gap: 11px; min-height: 48px; padding: 0 10px; font-weight: 750; letter-spacing: -.02em; }
.portal-brand__mark { display: grid; place-items: center; width: 30px; height: 30px; color: var(--portal-forest); background: var(--portal-paper); clip-path: polygon(15% 0,75% 0,75% 22%,100% 38%,100% 74%,56% 100%,15% 77%); font-size: 13px; }
.portal-workspace-picker { margin: 28px 0 22px; }
.portal-workspace-picker label { display: block; margin: 0 10px 8px; color: #a9b9b0; font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.portal-workspace-picker select { width: 100%; min-height: 44px; padding: 0 34px 0 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: #1c3928; color: #fff; }
.portal-nav { display: grid; gap: 3px; overflow-y: auto; padding-right: 2px; }
.portal-nav a { display: flex; align-items: center; gap: 11px; min-height: 43px; padding: 0 11px; border-radius: 7px; color: #bdcbc3; text-decoration: none; font-size: 14px; font-weight: 590; }
.portal-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.portal-nav a.is-active { background: var(--portal-paper); color: var(--portal-forest); }
.portal-nav__dot { width: 6px; height: 6px; border: 1px solid currentColor; border-radius: 50%; }
.portal-nav a.is-active .portal-nav__dot { background: var(--portal-leaf); border-color: var(--portal-leaf); }
.portal-sidebar__footer { display: grid; gap: 4px; margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.portal-sidebar__footer :where(a,button) { min-height: 40px; padding: 0 11px; border: 0; border-radius: 6px; background: transparent; color: #bdcbc3; text-align: left; text-decoration: none; line-height: 40px; }
.portal-sidebar__footer :where(a,button):hover { color: #fff; background: rgba(255,255,255,.06); }

.portal-main-frame { grid-column: 2; min-width: 0; }
.portal-topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; min-height: 72px; padding: 0 34px; border-bottom: 1px solid var(--portal-line); background: rgba(246,245,243,.92); backdrop-filter: blur(18px); }
.portal-menu-button { display: none; }
.portal-search-button { display: flex; align-items: center; gap: 10px; width: min(420px,42vw); min-height: 42px; padding: 0 13px; border: 1px solid var(--portal-line); border-radius: 8px; background: #fff; color: var(--portal-muted); text-align: left; }
.portal-search-button kbd { margin-left: auto; padding: 3px 6px; border: 1px solid var(--portal-line); border-radius: 4px; background: var(--portal-paper); font-size: 10px; }
.portal-topbar__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.portal-notification-button { display: grid; place-items: center; width: 40px; height: 40px; color: var(--portal-orange); text-decoration: none; }
.portal-user-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--portal-mint); color: var(--portal-forest); font-size: 12px; font-weight: 800; }
.portal-user-copy { display: grid; gap: 1px; min-width: 120px; }
.portal-user-copy strong { font-size: 13px; }
.portal-user-copy small { color: var(--portal-muted); font-size: 11px; text-transform: capitalize; }
.portal-content { width: min(1520px,100%); min-height: calc(100vh - 72px); margin: 0 auto; padding: 44px 40px 80px; }

.portal-eyebrow { margin: 0 0 10px; color: #2f7654; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.portal-page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.portal-page-header > div { max-width: 780px; }
.portal-page-header h1 { margin: 0; font-size: clamp(36px,4vw,62px); font-weight: 650; letter-spacing: -.055em; line-height: .95; }
.portal-page-header > div > p:last-child { max-width: 680px; margin: 16px 0 0; color: var(--portal-muted); font-size: 17px; line-height: 1.55; }
.portal-page-header--dashboard h1 { max-width: 800px; }
.portal-primary-action { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 19px; border: 1px solid var(--portal-forest); border-radius: 7px; background: var(--portal-forest); color: #fff; text-decoration: none; font-size: 13px; font-weight: 750; white-space: nowrap; }
.portal-primary-action:hover { background: #254b35; }
.portal-primary-action:disabled { opacity: .45; cursor: not-allowed; }

.portal-stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.portal-stat-grid a { display: grid; min-height: 168px; padding: 20px; border: 1px solid var(--portal-line); border-radius: 10px; background: var(--portal-white); text-decoration: none; }
.portal-stat-grid a:nth-child(2) { background: #edf5f0; }
.portal-stat-grid a:nth-child(3) { background: #fff9df; }
.portal-stat-grid a:nth-child(4) { background: #eef5f8; }
.portal-stat-grid span { color: var(--portal-muted); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.portal-stat-grid strong { align-self: center; font-size: 48px; font-weight: 620; letter-spacing: -.05em; }
.portal-stat-grid small { color: var(--portal-muted); }
.portal-dashboard-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(320px,.75fr); gap: 20px; margin-bottom: 20px; }
.portal-panel-card { overflow: hidden; border: 1px solid var(--portal-line); border-radius: 10px; background: var(--portal-white); }
.portal-panel-card__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 24px; border-bottom: 1px solid var(--portal-line); }
.portal-panel-card__head h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.portal-panel-card__head a { color: #2f7654; font-size: 13px; font-weight: 750; }
.portal-list-toolbar { display: flex; gap: 8px; padding: 15px; border-bottom: 1px solid var(--portal-line); }
.portal-list-toolbar label { flex: 1; }
.portal-list-toolbar input { width: 100%; min-height: 42px; padding: 0 13px; border: 1px solid var(--portal-line); border-radius: 7px; background: #fff; }
.portal-list-toolbar > input { flex: 1; min-height: 42px; padding: 0 13px; border: 1px solid var(--portal-line); border-radius: 7px; }
.portal-list-toolbar button { min-height: 42px; padding: 0 13px; border: 1px solid var(--portal-line); border-radius: 7px; background: var(--portal-paper); color: var(--portal-ink); }
.portal-empty-state { display: grid; place-items: center; min-height: 390px; padding: 50px 24px; text-align: center; }
.portal-empty-state__mark { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 17px; border: 1px solid #a7b6ad; border-radius: 50%; color: #2f7654; font-size: 26px; }
.portal-empty-state h2,.portal-empty-state h3 { max-width: 560px; margin: 0; font-size: 25px; letter-spacing: -.025em; }
.portal-empty-state p { max-width: 560px; margin: 10px 0 0; color: var(--portal-muted); line-height: 1.55; }
.portal-empty-state a { margin-top: 18px; color: #2f7654; font-weight: 750; }
.portal-empty-state--compact { min-height: 245px; }
.portal-health-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.portal-health-list li { display: flex; justify-content: space-between; gap: 20px; padding: 18px 24px; border-bottom: 1px solid var(--portal-line); }
.portal-health-list li:last-child { border: 0; }
.portal-health-list strong { color: var(--portal-muted); font-size: 13px; }

.portal-jhene-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 24px; border: 1px solid #a9d0bb; border-radius: 10px; background: var(--portal-mint); }
.portal-jhene-card__portrait { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--portal-forest); color: #fff; font-size: 24px; font-weight: 800; }
.portal-jhene-card h2 { margin: 0; font-size: 25px; }
.portal-jhene-card p:not(.portal-eyebrow) { margin: 6px 0 0; color: #455b4e; line-height: 1.5; }
.portal-jhene-card > button { min-height: 43px; padding: 0 15px; border: 1px solid var(--portal-forest); border-radius: 7px; background: transparent; font-weight: 750; }
.portal-jhene-card__composer { grid-column: 2 / -1; display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid #a9d0bb; }
.portal-jhene-card__composer > div { display: flex; flex-wrap: wrap; gap: 7px; }
.portal-jhene-card__composer button { min-height: 38px; padding: 0 12px; border: 1px solid #87b69b; border-radius: 999px; background: rgba(255,255,255,.45); }
.portal-jhene-card__composer textarea { width: 100%; min-height: 94px; padding: 13px; border: 1px solid #87b69b; border-radius: 7px; resize: vertical; }
.portal-helper { font-size: 12px; }

.portal-view-switcher { display: flex; gap: 4px; margin: -12px 0 22px; }
.portal-view-switcher button { min-height: 38px; padding: 0 14px; border: 1px solid var(--portal-line); background: #fff; text-transform: capitalize; }
.portal-view-switcher button:first-child { border-radius: 7px 0 0 7px; }
.portal-view-switcher button:last-child { border-radius: 0 7px 7px 0; }
.portal-view-switcher button.is-active { background: var(--portal-forest); color: #fff; border-color: var(--portal-forest); }
.portal-kanban { display: grid; grid-template-columns: repeat(6,minmax(220px,1fr)); gap: 12px; overflow-x: auto; padding-bottom: 16px; }
.portal-kanban section { min-height: 430px; border: 1px solid var(--portal-line); border-radius: 9px; background: #eef1ef; }
.portal-kanban header { display: flex; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--portal-line); }
.portal-kanban h2 { margin: 0; font-size: 14px; }
.portal-kanban__empty { display: grid; place-items: center; min-height: 150px; color: var(--portal-muted); font-size: 13px; }

.portal-subnav { display: flex; gap: 3px; margin: -8px 0 20px; overflow-x: auto; border-bottom: 1px solid var(--portal-line); }
.portal-subnav a { padding: 12px 14px; border-bottom: 2px solid transparent; color: var(--portal-muted); text-decoration: none; font-size: 13px; white-space: nowrap; }
.portal-subnav a.is-active { border-color: var(--portal-leaf); color: var(--portal-ink); font-weight: 750; }

.portal-wizard { display: grid; grid-template-columns: minmax(280px,.62fr) minmax(0,1.38fr); min-height: calc(100vh - 196px); overflow: hidden; border: 1px solid var(--portal-line); border-radius: 12px; background: #fff; }
.portal-wizard > aside { padding: 42px 34px; background: var(--portal-forest); color: #fff; }
.portal-wizard > aside .portal-eyebrow { color: #7ac79e; }
.portal-wizard > aside h1 { margin: 0; font-size: clamp(35px,4vw,58px); letter-spacing: -.055em; line-height: .95; }
.portal-wizard > aside > p:not(.portal-eyebrow) { color: #bdcbc3; line-height: 1.55; }
.portal-wizard__progress { height: 4px; margin: 32px 0 20px; background: rgba(255,255,255,.14); }
.portal-wizard__progress span { display: block; height: 100%; background: var(--portal-leaf); transition: width .2s ease; }
.portal-wizard ol { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; color: #8fa096; font-size: 13px; }
.portal-wizard li.is-current { color: #fff; font-weight: 750; }
.portal-wizard li.is-done { color: #7ac79e; }
.portal-wizard__form { padding: clamp(32px,6vw,76px); }
.portal-wizard__form h2 { margin: 0 0 28px; font-size: clamp(32px,4vw,54px); letter-spacing: -.05em; }
.portal-wizard fieldset { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.portal-choice { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 16px; border: 1px solid var(--portal-line); border-radius: 8px; }
.portal-choice:has(input:checked) { border-color: var(--portal-leaf); background: #edf5f0; }
.portal-choice span { display: grid; gap: 4px; text-transform: capitalize; }
.portal-choice small { color: var(--portal-muted); }
.portal-field { display: grid; gap: 8px; font-size: 13px; font-weight: 750; }
.portal-field :where(input,textarea) { width: 100%; padding: 13px; border: 1px solid var(--portal-line); border-radius: 7px; background: #fff; font-weight: 400; }
.portal-field input { min-height: 48px; }
.portal-upload-zone { display: grid; place-items: center; min-height: 260px; padding: 30px; border: 1px dashed #8ba396; border-radius: 9px; background: #f7faf8; text-align: center; }
.portal-upload-zone p { color: var(--portal-muted); }
.portal-upload-zone button { min-height: 42px; padding: 0 14px; border: 1px solid var(--portal-forest); border-radius: 7px; background: #fff; }
.portal-review-card { border: 1px solid var(--portal-line); border-radius: 8px; }
.portal-review-card p { display: flex; justify-content: space-between; gap: 20px; margin: 0; padding: 17px; border-bottom: 1px solid var(--portal-line); text-transform: capitalize; }
.portal-review-card p:last-child { border: 0; }
.portal-review-card span { color: var(--portal-muted); }
.portal-wizard__actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 34px; }
.portal-wizard__actions > button:not(.portal-primary-action) { min-height: 44px; padding: 0 16px; border: 1px solid var(--portal-line); border-radius: 7px; background: #fff; }

.portal-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; padding: 28px; }
.portal-form-grid label { display: grid; gap: 8px; font-size: 13px; font-weight: 750; }
.portal-form-grid :where(input,select,textarea) { width: 100%; min-height: 46px; padding: 12px; border: 1px solid var(--portal-line); border-radius: 7px; background: #fff; }
.portal-form-grid textarea { resize: vertical; }
.portal-form-grid .is-wide,.portal-form-actions { grid-column: 1/-1; }
.portal-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding-top: 8px; }

.portal-auth-shell { display: grid; grid-template-columns: minmax(380px,.92fr) minmax(500px,1.08fr); min-height: 100vh; background: var(--portal-forest); }
.portal-auth-story { display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: clamp(38px,6vw,90px); color: #fff; background: radial-gradient(circle at 18% 76%,rgba(71,156,115,.23),transparent 34%), var(--portal-forest); }
.portal-auth-brand { width: max-content; color: #fff; font-size: 18px; font-weight: 800; text-decoration: none; }
.portal-auth-story > div { max-width: 610px; }
.portal-auth-story .portal-eyebrow { color: #7ac79e; }
.portal-auth-story h1 { margin: 0; max-width: 650px; font-size: clamp(54px,6.2vw,98px); line-height: .88; letter-spacing: -.065em; }
.portal-auth-story p:not(.portal-eyebrow) { max-width: 570px; color: #b9c7bf; font-size: 18px; line-height: 1.55; }
.portal-auth-story small { color: #8fa096; }
.portal-auth-panel { display: grid; place-items: center; min-height: 100vh; padding: clamp(28px,5vw,80px); background: #f3f3f0; }
.portal-auth-card { width: min(100%,500px); padding: clamp(26px,4vw,48px); border: 1px solid var(--portal-line); border-radius: 12px; background: #fff; box-shadow: 0 22px 70px rgba(16,33,24,.1); }
.portal-auth-card h2 { margin: 0 0 26px; font-size: 42px; letter-spacing: -.05em; }
.portal-auth-social { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; }
.portal-auth-social button { min-height: 46px; border: 1px solid var(--portal-line); border-radius: 7px; background: #fff; font-weight: 700; }
.portal-auth-divider { display: flex; align-items: center; gap: 12px; margin: 21px 0; color: var(--portal-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.portal-auth-divider::before,.portal-auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--portal-line); }
.portal-auth-card form { display: grid; gap: 15px; }
.portal-auth-card form label { display: grid; gap: 7px; color: #34463c; font-size: 13px; font-weight: 750; }
.portal-auth-card form input { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid #bdc8c1; border-radius: 7px; background: #fff; }
.portal-auth-card form .portal-primary-action { width: 100%; margin-top: 5px; }
.portal-auth-links { display: flex; justify-content: space-between; gap: 18px; margin-top: 18px; font-size: 13px; }
.portal-auth-links a { color: #2f7654; }
.portal-legal { margin: 30px 0 0; color: var(--portal-muted); font-size: 11px; line-height: 1.55; }
.portal-form-error,.portal-form-success { margin: 0; padding: 11px 12px; border-radius: 6px; font-size: 13px; line-height: 1.45; }
.portal-form-error { background: #f8e5e1; color: #7e2f26; }
.portal-form-success { background: #e2f2e9; color: #24573c; }

.portal-security-page { display: grid; place-items: center; min-height: 100vh; padding: 28px; background: var(--portal-forest); }
.portal-security-page > section { width: min(100%,560px); padding: clamp(30px,6vw,60px); border-radius: 12px; background: #fff; }
.portal-security-page h1 { margin: 0; font-size: clamp(42px,7vw,68px); line-height: .94; letter-spacing: -.06em; }
.portal-security-page p:not(.portal-eyebrow) { color: var(--portal-muted); line-height: 1.6; }
.portal-security-page img { display: block; width: min(240px,100%); margin: 22px auto; }
.portal-security-page form { display: grid; gap: 14px; }
.portal-security-page label { display: grid; gap: 8px; font-size: 13px; font-weight: 750; }
.portal-security-page input { min-height: 50px; padding: 0 14px; border: 1px solid var(--portal-line); border-radius: 7px; font-size: 24px; letter-spacing: .25em; }
.portal-inline-actions { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.portal-secondary-action { min-height: 44px; padding: 0 16px; border: 1px solid var(--portal-line); border-radius: 7px; background: #fff; color: var(--portal-ink); font-weight: 750; }
.portal-application-page { padding-block: 48px; }
.portal-application-page > section { width: min(100%,860px); }
.portal-application-page h1 { max-width: 760px; font-size: clamp(42px,6vw,74px); }
.portal-application-form { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 28px; }
.portal-application-form label { min-width: 0; }
.portal-application-page .portal-application-form input,.portal-application-page .portal-application-form select,.portal-application-page .portal-application-form textarea,.portal-access-review-card .portal-application-form input,.portal-access-review-card .portal-application-form select,.portal-access-review-card .portal-application-form textarea { width: 100%; min-height: 50px; padding: 11px 14px; border: 1px solid var(--portal-line); border-radius: 7px; background: #fff; color: var(--portal-ink); font: inherit; letter-spacing: normal; }
.portal-application-page .portal-application-form textarea,.portal-access-review-card .portal-application-form textarea { resize: vertical; line-height: 1.5; }
.portal-application-page .portal-application-form input[readonly] { background: #f2f3f0; color: var(--portal-muted); }
.portal-field--wide { grid-column: 1/-1; }
.portal-application-consent { grid-column: 1/-1; grid-template-columns: auto 1fr !important; align-items: start; font-weight: 500 !important; line-height: 1.5; }
.portal-application-consent input { width: 18px !important; min-height: 18px !important; margin-top: 2px; }
.portal-application-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; margin: 28px 0; padding: 1px; background: var(--portal-line); }
.portal-application-summary > div { min-width: 0; padding: 16px; background: #fff; }
.portal-application-summary dt { margin-bottom: 5px; color: var(--portal-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.portal-application-summary dd { margin: 0; overflow-wrap: anywhere; line-height: 1.45; }
.portal-decision-reason,.portal-authenticity-note { padding: 18px; border-left: 4px solid var(--portal-gold); background: #fbf6df; }
.portal-authenticity-note { margin: 26px 0; border-color: var(--portal-forest); background: #edf4ef; }
.portal-authenticity-note h2 { margin: 0 0 8px; font-size: 22px; }
.portal-authenticity-note p { margin: 0; }
.portal-appeal-form { padding-top: 4px; }
.portal-review-queue { display: grid; gap: 22px; margin-bottom: 22px; }
.portal-access-review-card { padding-bottom: 24px; }
.portal-access-review-card > .portal-application-summary,.portal-access-review-card > .portal-application-form { margin-inline: 24px; }
.portal-access-review-card .portal-application-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.portal-access-review-card .portal-application-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 750; }
.portal-access-review-card .portal-application-form small { color: var(--portal-muted); font-weight: 500; }
.portal-appeal-list { display: grid; gap: 1px; background: var(--portal-line); }
.portal-appeal-list article { padding: 20px 24px; background: #fff; }
.portal-appeal-list p { margin: 0 0 8px; line-height: 1.5; }
.portal-appeal-list small { color: var(--portal-muted); }

.portal-command { position: fixed; inset: 0; z-index: 100; display: grid; place-items: start center; padding: 11vh 20px 20px; background: rgba(5,16,10,.58); backdrop-filter: blur(5px); }
.portal-command__panel { width: min(680px,100%); padding: 18px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; background: #fff; box-shadow: 0 28px 90px rgba(0,0,0,.28); }
.portal-command__head { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.portal-command h2 { margin: 0; font-size: 22px; }
.portal-command__head button { border: 0; background: transparent; color: var(--portal-muted); }
.portal-command input { width: 100%; min-height: 52px; margin-top: 15px; padding: 0 14px; border: 1px solid var(--portal-line); border-radius: 7px; }
.portal-command p { margin: 15px 0 0; color: var(--portal-muted); font-size: 13px; line-height: 1.5; }
.portal-backdrop { display: none; }

@media (max-width: 1100px) {
  .portal-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .portal-auth-shell { grid-template-columns: minmax(320px,.8fr) minmax(440px,1.2fr); }
  .portal-user-copy { display: none; }
  .portal-wizard { grid-template-columns: 320px minmax(0,1fr); }
}

@media (max-width: 820px) {
  .portal-app { display: block; }
  .portal-sidebar { width: min(310px,86vw); transform: translateX(-105%); transition: transform .2s ease; box-shadow: 18px 0 60px rgba(0,0,0,.22); }
  .portal-sidebar.is-open { transform: none; }
  .portal-main-frame { min-width: 0; }
  .portal-topbar { min-height: 64px; padding: 0 18px; }
  .portal-menu-button { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border: 1px solid var(--portal-line); border-radius: 7px; background: #fff; }
  .portal-search-button { width: auto; margin-left: 8px; }
  .portal-search-button kbd,.portal-search-button span { display: none; }
  .portal-user-avatar { display: none; }
  .portal-content { min-height: calc(100vh - 64px); padding: 30px 20px 64px; }
  .portal-backdrop { position: fixed; inset: 0; z-index: 45; display: block; border: 0; background: rgba(0,0,0,.42); }
  .portal-page-header { align-items: flex-start; flex-direction: column; }
  .portal-dashboard-grid { grid-template-columns: 1fr; }
  .portal-auth-shell { grid-template-columns: 1fr; }
  .portal-application-form,.portal-access-review-card .portal-application-form,.portal-application-summary { grid-template-columns: 1fr; }
  .portal-field--wide { grid-column: auto; }
  .portal-application-page { padding: 0; background: #fff; }
  .portal-application-page > section { min-height: 100vh; border-radius: 0; }
  .portal-auth-story { min-height: auto; padding: 32px 24px 38px; }
  .portal-auth-story > div { margin-top: 90px; }
  .portal-auth-story h1 { font-size: clamp(50px,14vw,78px); }
  .portal-auth-story small { display: none; }
  .portal-auth-panel { min-height: auto; padding: 24px 18px 56px; }
  .portal-wizard { grid-template-columns: 1fr; }
  .portal-wizard > aside { padding: 30px 24px; }
  .portal-wizard ol { display: none; }
  .portal-wizard__form { padding: 30px 24px; }
  .portal-jhene-card { grid-template-columns: auto minmax(0,1fr); }
  .portal-jhene-card > button { grid-column: 1/-1; }
  .portal-jhene-card__composer { grid-column: 1/-1; }
}

@media (max-width: 560px) {
  .portal-content { padding-inline: 14px; }
  .portal-topbar { padding-inline: 12px; }
  .portal-search-button { flex: 1; justify-content: flex-start; }
  .portal-notification-button { width: 34px; }
  .portal-page-header h1 { font-size: 40px; }
  .portal-page-header .portal-primary-action { width: 100%; }
  .portal-stat-grid { grid-template-columns: 1fr; }
  .portal-stat-grid a { min-height: 132px; }
  .portal-stat-grid strong { font-size: 40px; }
  .portal-list-toolbar { display: grid; grid-template-columns: repeat(2,1fr); }
  .portal-list-toolbar label,.portal-list-toolbar > input { grid-column: 1/-1; }
  .portal-form-grid { grid-template-columns: 1fr; padding: 20px 16px; }
  .portal-form-grid label,.portal-form-actions { grid-column: 1; }
  .portal-form-actions { align-items: stretch; flex-direction: column-reverse; }
  .portal-form-actions .portal-primary-action { width: 100%; }
  .portal-auth-social { grid-template-columns: 1fr; }
  .portal-auth-card { padding: 25px 20px; }
  .portal-auth-links { flex-direction: column; }
  .portal-inline-actions { align-items: stretch; flex-direction: column; }
}

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