:root {
  color-scheme: light;
  font-family: Inter, Aptos, 'Segoe UI', Arial, sans-serif;
  color: #182b45;
  background: #f4f7fb;
  --navy: #071b39;
  --blue: #075ccb;
  --teal: #007f89;
  --cyan: #34e1d0;
  --muted: #586b83;
  --line: #dce5f0;
  --mint: #e9f8f7;
  --surface: #fff;
  --shadow: 0 4px 18px #102b4b09;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--blue); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
[hidden], .hidden { display: none !important; }
button:disabled { opacity: .5; cursor: not-allowed; }
a:focus-visible, button:focus-visible { outline: 3px solid #009d91; outline-offset: 3px; }
input, select, textarea { background: #fff; color: #182b45; width: 100%; border: 1px solid #cbd8e7; border-radius: 8px; padding: 11px 12px; min-height: 42px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #075ccb19; }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; accent-color: var(--blue); }
textarea { min-height: 100px; resize: vertical; }
label { font-size: .85rem; font-weight: 650; display: grid; gap: 7px; }
h1,h2,h3,p { margin-top: 0; }
h1,h2,h3 { color: var(--navy); letter-spacing: -.035em; line-height: 1.18; }
h1 { font-size: clamp(1.95rem,3.1vw,2.8rem); font-weight: 750; margin-bottom: 12px; }
h2 { font-size: clamp(1.25rem,2vw,1.75rem); margin-bottom: 12px; }
h3 { font-size: 1.07rem; margin-bottom: 9px; }
p { line-height: 1.62; }
.small { font-size: .9rem; }
.tiny { font-size: .77rem; color: var(--muted); }
.muted { color: var(--muted); }
.compact { margin: 0; }
.right { text-align: right; }
.wide { width: 100%; }
.break-text { overflow-wrap: anywhere; }
.error-text { color: #a42d40; }
.eyebrow { text-transform: uppercase; font-weight: 750; letter-spacing: .14em; font-size: .69rem; color: #007783; margin-bottom: 9px; }
.shell { max-width: 1480px; margin: auto; padding-inline: 32px; }
.skip-link { position: absolute; top: -100px; left: 12px; z-index: 100; background: white; padding: 12px; }
.skip-link:focus { top: 10px; }
/* Global navigation and workspace shell */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--navy); color: white; border-bottom: 3px solid #18c9bf; box-shadow: 0 3px 15px #0c21351c; }
.topinner { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { background: none; border: 0; padding: 0; display: flex; gap: 13px; align-items: center; text-align: left; color: #fff; flex-shrink: 0; }
.brand img { width: 132px; height: auto; }
.brand-divider { width: 1px; height: 31px; background: #ffffff38; }
.brand-label { font-size: .94rem; font-weight: 700; white-space: nowrap; }
.brand-label small { display: block; font-size: .65rem; font-weight: 500; color: #a9c1d9; margin-top: 3px; }
.nav, .header-actions { display: flex; gap: 7px; align-items: center; }
.nav { flex-wrap: wrap; }
.nav button, .signout-top, .account-chip { border: 0; background: transparent; color: #d3e0ee; font-weight: 650; font-size: .83rem; border-radius: 7px; padding: 9px 11px; white-space: nowrap; }
.nav button:hover, .nav button.active, .signout-top:hover, .account-chip:hover { background: #ffffff16; color: white; }
.nav button.active { box-shadow: inset 0 -2px #34e1d0; }
.header-actions { flex-shrink: 0; }
.account-chip { display: flex; align-items: center; gap: 8px; padding: 5px 7px; }
.mini-avatar { width: 29px; height: 29px; border-radius: 50%; background: #dff5fc; color: #073b73; font-weight: 800; font-size: .74rem; display: grid; place-items: center; }
.signout-top { font-size: .77rem; color: #b9cce0; }
.public-layout { max-width: 1320px; }
.main { padding: 31px 0 72px; min-width: 0; min-height: 70vh; }
.portal-layout { display: grid; grid-template-columns: 235px minmax(0,1fr); gap: 30px; align-items: start; }
.portal-sidebar { position: sticky; top: 105px; padding: 26px 0 24px; min-width: 0; }
.workspace-caption { font-size: .66rem; color: var(--muted); letter-spacing: .13em; font-weight: 750; padding: 0 12px 14px; }
.sidebar-profile { display: flex; gap: 11px; align-items: center; padding: 12px 8px 20px; border-bottom: 1px solid var(--line); }
.sidebar-profile > div:last-child { min-width: 0; }
.sidebar-profile strong { font-size: .85rem; display: block; overflow-wrap: anywhere; }
.sidebar-profile small { display: block; color: var(--muted); font-size: .72rem; margin-top: 3px; overflow-wrap: anywhere; }
.side-nav { display: grid; gap: 4px; padding: 17px 0; }
.side-nav button { text-align: left; border: 0; background: transparent; color: #40536d; padding: 12px 13px; border-radius: 8px; font-size: .86rem; font-weight: 630; }
.side-nav button:hover { background: #e9f1fa; color: var(--blue); }
.side-nav button.active { background: #e2efff; color: #0754b1; box-shadow: inset 3px 0 #0965db; }
.sidebar-help { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 11px; padding: 13px 9px; background: #fff; font-size: .82rem; }
.sidebar-help img { width: 50px; height: 63px; object-fit: contain; border-radius: 12px; }
.sidebar-help strong { display: block; }
.sidebar-help .text-button { font-size: .75rem; text-align: left; }
/* Shared content primitives */
.btn { border: 1px solid transparent; background: var(--blue); color: white; border-radius: 8px; padding: 11px 17px; min-height: 41px; font-weight: 670; font-size: .9rem; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; transition: background .15s; }
.btn:hover { background: #064caa; }
.btn.secondary { background: #edf4fd; color: #0758bd; border-color: #d6e5f8; }
.btn.secondary:hover { background: #e0edff; }
.btn.teal { background: #007c82; }
.btn.teal:hover { background: #00666b; }
.btn.ghost { background: transparent; border: 1px solid #cad8e8; color: #0756bb; }
.btn.ghost:hover { background: #eef5ff; }
.btn.danger { background: #ab3346; }
.btn.sm { min-height: 32px; padding: 6px 10px; font-size: .78rem; }
.header-cta { background: #0d67dd; font-size: .83rem; white-space: nowrap; }
.text-button { background: none; border: 0; color: #0759bd; font-weight: 650; padding: 5px 0; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { color: #00408d; }
.buttonrow, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.section { margin-top: 33px; }
.headingrow { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.headingrow h2 { margin-bottom: 6px; }
.grid { display: grid; gap: 17px; }
.grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.grid.four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.card { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 23px; box-shadow: var(--shadow); min-width: 0; }
.card p:last-child { margin-bottom: 0; }
.card.mint { background: var(--mint); border-color: #c3e8e3; }
.iconbubble { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; color: var(--blue); background: #e5f0ff; font-weight: 750; margin-bottom: 13px; }
.metric { font-weight: 800; font-size: clamp(1.7rem,3vw,2.25rem); letter-spacing: -.05em; color: var(--navy); margin-bottom: 3px; font-variant-numeric: tabular-nums; }
.metriclabel { color: var(--muted); font-size: .81rem; line-height: 1.45; }
.pill, .badge { display: inline-block; font-weight: 700; font-size: .73rem; padding: 5px 10px; border-radius: 20px; background: #e5f8f4; color: #006f6c; }
.badge.pending { background: #fff3d7; color: #855400; }
.badge.closed { background: #edf1f5; color: #5f7082; }
.bar { width: 100%; height: 9px; background: #e3eaf3; border-radius: 12px; overflow: hidden; }
.barfill { background: linear-gradient(90deg,#007c89,#075ccb); height: 100%; border-radius: 12px; }
.avatar { width: 77px; height: 77px; border-radius: 50%; background: #dceeff; color: #07499a; font-size: 1.5rem; font-weight: 800; flex-shrink: 0; display: grid; place-items: center; }
.small-avatar { width: 44px; height: 44px; font-size: .95rem; }
.instructor { display: flex; align-items: center; gap: 17px; }
.note { border-left: 3px solid #008e96; background: #edf9f8; padding: 14px 15px; border-radius: 7px; color: #245b63; line-height: 1.5; font-size: .9rem; }
.notice { padding: 13px 16px; border: 1px solid #b7d9e8; background: #e9f6ff; color: #0f4b76; border-radius: 9px; margin-bottom: 17px; font-size: .88rem; overflow-wrap: anywhere; }
.notice.error { background: #fff0f2; color: #9d273e; border-color: #efc0cb; }
.empty { padding: 26px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed #c8d8e8; border-radius: 12px; font-size: .88rem; line-height: 1.5; }
.actionbox { border: 1px solid var(--line); padding: 15px; border-radius: 10px; background: #f9fbfe; overflow-wrap: anywhere; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.stack, .list { display: grid; gap: 14px; min-width: 0; }
.formgrid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.formgrid .full { grid-column: 1/-1; }
.tablewrap { width: 100%; overflow: auto; }
table { border-collapse: collapse; width: 100%; }
td, th { padding: 12px 11px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: .82rem; overflow-wrap: anywhere; }
th { background: #f1f5fa; color: var(--navy); font-weight: 700; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tabs button { border: 1px solid var(--line); background: white; border-radius: 8px; padding: 8px 12px; font-weight: 650; color: #40536d; }
.tabs button.active { background: var(--blue); color: white; border-color: var(--blue); }
.codebox { background: var(--navy); color: #e0f8ff; font-family: ui-monospace,Consolas,monospace; white-space: pre-wrap; overflow: auto; font-size: .78rem; padding: 14px; border-radius: 10px; }
.screen-reader { position: absolute; left: -9999px; }
/* Public site */
.hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.06fr); align-items: center; min-height: 400px; border: 1px solid #dce7f3; border-radius: 20px; background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.herotext { padding: clamp(24px,4vw,56px); }
.hero h1 { font-size: clamp(2.45rem,4.1vw,4.1rem); letter-spacing: -.055em; line-height: 1.04; margin-bottom: 23px; }
.hero h1 span { color: #007f89; }
.hero p { color: var(--muted); font-size: 1.04rem; max-width: 480px; }
.kicker { font-size: .67rem; color: #006b73; letter-spacing: .12em; font-weight: 750; display: inline-flex; gap: 7px; align-items: center; background: #e6f7f5; padding: 8px 10px; border-radius: 5px; margin-bottom: 24px; }
.status-dot { background: #009a8a; width: 7px; height: 7px; border-radius: 50%; }
.hero-art { padding: 14px 14px 14px 0; min-width: 0; }
.hero-art img { width: 100%; height: auto; border-radius: 12px; }
.hero .hero-note { color: #74859a; font-size: .72rem; margin: 18px 0 0; font-weight: 600; letter-spacing: .015em; }
.metrics-band { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 12px; margin-top: 16px; background: #fff; padding: 21px 0; }
.metrics-band > div { text-align: center; border-right: 1px solid var(--line); padding: 0 9px; }
.metrics-band > div:last-child { border: 0; }
.metrics-band strong { display: block; color: var(--navy); font-size: clamp(1.7rem,3vw,2.35rem); font-weight: 800; letter-spacing: -.05em; }
.metrics-band span { display: block; color: var(--muted); font-size: .8rem; margin-top: 3px; }
.roadmap { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; }
.stage { position: relative; padding: 19px 14px; background: white; border: 1px solid var(--line); border-top: 3px solid #2180dd; border-radius: 9px; min-width: 0; }
.stage:nth-child(5) { background: #ebfaf7; border-top-color: #009d8f; }
.stage strong { display: block; color: var(--navy); font-size: .9rem; line-height: 1.35; margin-bottom: 6px; }
.stage small { color: var(--muted); font-size: .76rem; line-height: 1.5; }
.stage .arrow { float: right; color: #00948f; margin-left: 6px; }
.feature-card { padding: 18px 20px 23px; }
.feature-image { height: 122px; background: #f4f9ff; border-radius: 9px; padding: 12px; display: grid; place-items: center; margin-bottom: 19px; }
.feature-image img { max-height: 98px; object-fit: contain; }
.feature-card h3 { font-size: 1.09rem; }
.feature-card p { font-size: .88rem; }
.learning-banner { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; background: white; border: 1px solid var(--line); border-radius: 15px; padding: 25px; }
.learning-banner > div { padding: 14px 20px; }
.learning-banner img { border-radius: 10px; width: 100%; }
.learning-banner p { color: var(--muted); }
.sessionlist { max-height: 490px; overflow: auto; display: grid; gap: 7px; padding-right: 4px; }
.roadmap-sessions { max-height: none; grid-template-columns: repeat(2,minmax(0,1fr)); }
.sessionrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: white; border: 1px solid var(--line); border-radius: 9px; padding: 13px; overflow-wrap: anywhere; min-width: 0; }
.sessionrow strong { display: block; font-size: .88rem; color: var(--navy); }
.sessionrow small { display: block; color: var(--muted); font-size: .75rem; margin-top: 4px; }
.sessiontag { color: #0759bd; background: #edf4ff; border-radius: 6px; padding: 7px 10px; min-width: 55px; text-align: center; font-weight: 750; font-size: .76rem; }
.strip { background: var(--navy); color: white; padding: 26px; border-radius: 14px; }
.strip h2,.strip h3 { color: white; }
.strip p { color: #c5d8ea; }
.footer { padding: 30px 0; background: var(--navy); color: #c3d3e6; }
.footerinner { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.footerinner p { font-size: .73rem; margin: 5px 0 0; color: #a8bfd6; }
.footerinner strong { color: #fff; font-size: .91rem; }
.footer a,.footer .text-button { color: #65e3e0; }
/* Authentication and account settings */
.auth-layout { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); align-items: start; gap: 29px; max-width: 1070px; margin: 20px auto; }
.auth-intro { border-radius: 17px; background: var(--navy); color: #d7e8f8; padding: 28px; }
.auth-logo { width: 170px; margin-bottom: 20px; }
.auth-hero { border-radius: 12px; margin-bottom: 23px; }
.auth-intro h2 { color: white; font-size: 1.7rem; }
.auth-intro p { font-size: .91rem; color: #d0deef; }
.auth-steps { display: grid; gap: 8px; border-top: 1px solid #ffffff28; padding-top: 15px; font-size: .8rem; color: #a4eae4; font-weight: 600; }
.auth-forms { display: grid; gap: 17px; }
.auth-card { padding: 27px; }
.auth-card h1 { font-size: 2rem; }
.auth-card .text-button { margin-top: 13px; }
.auth-card .tiny { margin-top: 14px; }
.enrollment-panel { max-width: 870px; margin: 12px auto; padding: clamp(18px,3vw,33px); }
.enrollment-intro { display: flex; gap: 22px; align-items: center; margin-bottom: 18px; }
.enrollment-intro img { width: 112px; height: 126px; object-fit: contain; flex-shrink: 0; border-radius: 13px; background: #f2f7ff; }
.enrollment-intro h1 { font-size: clamp(1.65rem,2.7vw,2.4rem); margin-bottom: 8px; }
.enrollment-intro p { margin-bottom: 0; }
.enrollment-steps { list-style: none; margin: 18px 0 23px; padding: 16px 10px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; background: #f5f8fc; border: 1px solid var(--line); border-radius: 10px; }
.enrollment-steps li { display: flex; align-items: center; flex-direction: column; gap: 7px; text-align: center; color: #61748c; }
.enrollment-steps li span { display: grid; place-items: center; border: 1px solid #d1dce9; background: white; border-radius: 50%; width: 29px; height: 29px; font-size: .78rem; font-weight: 750; }
.enrollment-steps li strong { font-size: .71rem; line-height: 1.35; font-weight: 600; }
.enrollment-steps li.done span { background: #dff7ef; color: #08766b; border-color: #bdece2; }
.enrollment-steps li.current span { background: var(--blue); border-color: var(--blue); color: white; }
.enrollment-steps li.current strong { color: #0756b6; }
.enrollment-content { display: grid; gap: 17px; }
.account-email { display: grid; gap: 4px; padding: 14px 15px; background: #f6f9fd; border: 1px solid var(--line); border-radius: 9px; overflow-wrap: anywhere; margin: 0; }
.account-email span { font-size: .73rem; color: var(--muted); }
.account-email strong { font-size: .95rem; }
.enrollment-exit { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 15px; display: flex; justify-content: space-between; gap: 13px; }
.page-heading { margin-bottom: 23px; }
.page-heading p { margin-bottom: 0; }
.profile-layout { display: grid; grid-template-columns: minmax(200px,.8fr) minmax(0,1.75fr); gap: 19px; align-items: start; }
.profile-identity { overflow: hidden; padding: 0 20px 23px; position: relative; }
.profile-cover { height: 79px; margin: 0 -20px; background: linear-gradient(120deg,#071b39 0%,#0b4d93 65%,#009f9a 100%); }
.profile-avatar { margin-top: -32px; border: 4px solid white; width: 82px; height: 82px; box-shadow: 0 1px 8px #0b1d3e1a; position: relative; margin-bottom: 15px; }
.profile-identity h2 { font-size: 1.28rem; margin-bottom: 6px; overflow-wrap: anywhere; }
.profile-identity p { font-size: .8rem; margin-bottom: 12px; }
.profile-facts { display: grid; gap: 5px; margin: 0 0 22px; }
.profile-facts dt { font-size: .73rem; color: var(--muted); }
.profile-facts dd { font-size: .87rem; font-weight: 650; margin: 0 0 9px; overflow-wrap: anywhere; }
.settings-card { padding: 24px; }
.settings-title { border-bottom: 1px solid var(--line); padding-bottom: 13px; margin-bottom: 18px; }
.settings-title h2 { font-size: 1.25rem; margin-bottom: 6px; }
.settings-title p { margin-bottom: 0; font-size: .82rem; }
.status-line { display: flex; flex-wrap: wrap; gap: 11px; align-items: center; }
.verified-label { font-size: .76rem; color: #007267; font-weight: 650; }
.checkbox-label { display: flex; align-items: center; gap: 9px; font-weight: 550; line-height: 1.5; }
.security-row { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.security-row strong { font-size: .89rem; }
/* Learning workspace */
.dashboard-welcome { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 26px 29px; border-radius: 16px; background: linear-gradient(110deg,#071b39,#0c417c); color: white; }
.dashboard-welcome h1 { color: white; font-size: clamp(1.65rem,3vw,2.4rem); }
.dashboard-welcome .eyebrow { color: #7ce9e4; }
.dashboard-welcome p { color: #d4e5f5; font-size: .92rem; }
.dashboard-welcome img { width: 132px; max-height: 156px; object-fit: contain; border-radius: 12px; background: #ffffff; flex-shrink: 0; }
.quizquestion { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin-bottom: 14px; }
.quizchoice { display: flex; align-items: center; gap: 10px; font-weight: 500; margin-top: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.quizchoice:has(input:checked) { background: #eaf4ff; border-color: #1368d1; }
.quizmeta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px; }
.timer { font-weight: 750; color: #9b3048; background: #ffedf1; padding: 9px 12px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.quiz-result-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.quiz-result-head img { width: 150px; border-radius: 10px; }
/* NAAB loading state. No artificial wait; overlay disappears in finally. */
.startup { min-height: 100vh; display: grid; align-content: center; justify-items: center; padding: 25px; gap: 12px; text-align: center; }
.startup-logo { width: 210px; background: var(--navy); padding: 12px; border-radius: 12px; }
.startup-pet { width: 130px; border-radius: 16px; }
.startup h1 { font-size: 1.55rem; margin: 0; }
.startup p { margin: 0; color: var(--muted); }
.loading-overlay { position: fixed; z-index: 99; inset: 0; background: #071b3988; backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; }
.loading-dialog { width: min(360px,100%); padding: 24px; background: white; box-shadow: 0 20px 70px #071b3955; border-radius: 17px; display: grid; justify-items: center; text-align: center; gap: 10px; }
.loading-brand { width: 150px; border-radius: 9px; background: var(--navy); padding: 9px; }
.loading-pet { width: 110px; height: 130px; object-fit: contain; animation: mascot-bob 2s ease-in-out infinite; border-radius: 12px; }
.loading-dialog h2 { font-size: 1.12rem; margin: 3px 0 0; }
.loading-dialog p { margin: 0; font-size: .8rem; color: var(--muted); }
.loading-track { display: block; width: min(180px,100%); height: 4px; background: #e0edf7; border-radius: 5px; overflow: hidden; margin-top: 10px; }
.loading-track::after { content: ''; display: block; height: 100%; width: 45%; background: linear-gradient(90deg,#075ccb,#16c7b6); border-radius: inherit; animation: progress-slide 1.35s ease-in-out infinite; }
@keyframes progress-slide { from { transform: translateX(-100%); } to { transform: translateX(230%); } }
@keyframes mascot-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; } }
@media (max-width: 1120px) {
  .topinner { flex-wrap: wrap; gap: 8px 18px; padding-block: 11px; }
  .public-nav { order: 3; flex-basis: 100%; }
  .portal-sidebar { top: 128px; }
  .portal-layout { grid-template-columns: 195px minmax(0,1fr); gap: 21px; }
  .portal-layout .grid.four { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .profile-layout { grid-template-columns: minmax(170px,.8fr) minmax(0,1.7fr); }
}
@media (max-width: 820px) {
  .shell { padding-inline: 20px; }
  .portal-layout { display: block; }
  .portal-sidebar { position: static; padding: 15px 0 0; }
  .workspace-caption, .sidebar-profile, .sidebar-help { display: none; }
  .side-nav { display: flex; flex-wrap: nowrap; overflow-x: auto; padding: 0 0 10px; gap: 5px; }
  .side-nav button { white-space: nowrap; padding: 10px 12px; }
  .portal-layout .main { padding-top: 15px; }
  .hero { grid-template-columns: 1fr; }
  .herotext { padding: 30px 30px 17px; }
  .hero-art { padding: 0 20px 20px; }
  .hero-art img { max-height: 340px; object-fit: contain; }
  .grid.three { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .roadmap { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .auth-layout { grid-template-columns: 1fr; max-width: 600px; }
  .auth-intro { display: none; }
  .roadmap-sessions { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .shell { padding-inline: 13px; }
  .brand img { width: 100px; }
  .brand-label { display: none; }
  .brand-divider { display: none; }
  .topinner { gap: 6px 9px; padding-block: 8px; }
  .public-nav { gap: 1px; overflow-x: auto; flex-wrap: nowrap; }
  .nav button { font-size: .75rem; padding: 8px 8px; }
  .account-chip span:last-child { font-size: .75rem; }
  .signout-top { padding-inline: 7px; }
  .header-actions { gap: 2px; }
  .main { padding-top: 18px; }
  .hero { border-radius: 14px; }
  .herotext { padding: 24px 18px 12px; }
  .hero h1 { font-size: clamp(2.1rem,9vw,3rem); }
  .hero p { font-size: .92rem; }
  .hero-art { padding: 0 10px 12px; }
  .metrics-band { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 19px 0; padding: 18px 0; }
  .metrics-band > div:nth-child(2) { border-right: 0; }
  .grid.two,.grid.three,.formgrid,.learning-banner,.profile-layout { grid-template-columns: 1fr; }
  .grid.four { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .formgrid .full { grid-column: auto; }
  .card { padding: 18px; }
  .profile-identity { padding: 0 18px 18px; }
  .profile-cover { margin: 0 -18px; }
  .learning-banner { padding: 16px; }
  .learning-banner > div { padding: 3px; }
  .roadmap { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stage:last-child { grid-column: 1/-1; }
  .enrollment-intro { align-items: flex-start; gap: 12px; }
  .enrollment-intro img { width: 70px; height: 85px; }
  .enrollment-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-welcome { padding: 21px 16px; gap: 11px; }
  .dashboard-welcome img { width: 72px; }
  .dashboard-welcome h1 { font-size: 1.55rem; }
  .dashboard-welcome p { font-size: .8rem; }
  .dashboard-welcome .btn { font-size: .78rem; }
  .sessionrow { flex-wrap: wrap; }
  .quiz-result-head img { width: 100px; }
  .footerinner { display: grid; }
}
