:root {
  --navy-950: #06142c;
  --navy-900: #071b3a;
  --navy-800: #0b2c59;
  --blue-600: #1c62b9;
  --blue-100: #e8f1fb;
  --gold-500: #e3a12e;
  --gold-100: #fff5d8;
  --teal-600: #137c78;
  --teal-100: #e2f3f1;
  --ink: #12233f;
  --muted: #607089;
  --line: #dbe4ef;
  --paper: #f6f8fb;
  --white: #ffffff;
  --danger: #b33a45;
  --success: #237a56;
  --shadow: 0 20px 55px rgba(7, 27, 58, .12);
  --small-shadow: 0 7px 22px rgba(7, 27, 58, .08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--blue-600); }
a:hover { color: var(--navy-900); }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(219,228,239,.92);
  backdrop-filter: blur(16px);
}
.header-inner {
  width: min(1220px, calc(100% - 40px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: block; flex: 0 0 auto; }
.brand img { display: block; width: 218px; height: auto; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 5px; flex: 1; }
.main-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 9px 11px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { background: var(--blue-100); color: var(--navy-900); }
.header-cta, .button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: .92rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.header-cta, .button-primary { background: var(--gold-500); color: var(--navy-950); box-shadow: 0 8px 18px rgba(227,161,46,.22); }
.header-cta:hover, .button-primary:hover { color: var(--navy-950); transform: translateY(-1px); box-shadow: 0 11px 24px rgba(227,161,46,.32); }
.button-secondary { background: var(--navy-900); color: var(--white); }
.button-secondary:hover { color: var(--white); background: var(--navy-800); transform: translateY(-1px); }
.button-ghost { background: transparent; color: var(--navy-900); border: 1px solid var(--line); }
.button-ghost:hover { background: var(--blue-100); }
.button-small { padding: 8px 12px; font-size: .83rem; }
.button-danger { background: #fff0f1; color: var(--danger); border: 1px solid #f5c9cd; }
.menu-toggle { display: none; border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 8px 13px; font-weight: 800; color: var(--navy-900); }

#app { flex: 1; }
.container { width: min(1220px, calc(100% - 40px)); margin: 0 auto; }
.page-wrap { padding: 54px 0 70px; }
.eyebrow {
  color: var(--teal-600);
  font-size: .79rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.page-title { margin: 7px 0 14px; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.06; letter-spacing: -.045em; color: var(--navy-950); }
.page-lead { max-width: 720px; margin: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.65; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin: 46px 0 18px; }
.section-heading h2 { margin: 0; color: var(--navy-950); font-size: clamp(1.45rem, 2.5vw, 2rem); letter-spacing: -.03em; }
.section-heading p { margin: 0; max-width: 520px; color: var(--muted); }
.kicker { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .82rem; font-weight: 800; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500); }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 24%, rgba(227,161,46,.24), transparent 24%),
    linear-gradient(132deg, var(--navy-950), var(--navy-800) 64%, #174d85);
  color: var(--white);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.hero::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  right: -180px;
  bottom: -250px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255,255,255,.03), 0 0 0 68px rgba(255,255,255,.025);
}
.hero-inner { width: min(1220px, calc(100% - 40px)); margin: 0 auto; padding: 74px 0 78px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; position: relative; z-index: 1; }
.hero h1 { max-width: 720px; margin: 12px 0 18px; font-size: clamp(2.7rem, 6vw, 5rem); line-height: .99; letter-spacing: -.065em; }
.hero p { max-width: 630px; margin: 0; color: #d7e4f5; font-size: 1.12rem; line-height: 1.65; }
.hero .eyebrow { color: #f6cd72; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }
.hero-actions .button-ghost { color: var(--white); border-color: rgba(255,255,255,.4); }
.hero-actions .button-ghost:hover { color: var(--navy-900); background: var(--white); }
.hero-note { margin-top: 22px; color: #a7bed9; font-size: .85rem; }
.hero-panel { border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08); border-radius: var(--radius-xl); padding: 24px; box-shadow: 0 22px 60px rgba(0,0,0,.18); }
.hero-panel h2 { margin: 0 0 15px; font-size: 1.03rem; }
.hero-panel .metric { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.13); }
.hero-panel .metric:first-of-type { border-top: 0; }
.metric-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.13); color: #f8ce75; font-weight: 900; }
.metric strong { display: block; color: var(--white); font-size: 1.01rem; }
.metric span { color: #c3d4e8; font-size: .84rem; }

.quick-grid, .card-grid, .course-grid, .book-grid { display: grid; gap: 16px; }
.quick-grid { grid-template-columns: repeat(4, 1fr); margin-top: 30px; }
.quick-card { padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--small-shadow); }
.quick-card .quick-icon { color: var(--teal-600); font-weight: 900; font-size: 1.4rem; }
.quick-card h3 { margin: 9px 0 4px; font-size: 1rem; }
.quick-card p { margin: 0; color: var(--muted); font-size: .88rem; }
.quick-card a { display: inline-block; margin-top: 12px; font-weight: 800; font-size: .85rem; text-decoration: none; }

.course-grid { grid-template-columns: repeat(3, 1fr); }
.course-card { position: relative; min-height: 286px; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--small-shadow); }
.course-card.featured { border-color: rgba(227,161,46,.75); box-shadow: 0 16px 36px rgba(227,161,46,.13); }
.course-card .course-tag { display: inline-flex; width: fit-content; padding: 5px 9px; border-radius: 999px; background: var(--blue-100); color: var(--blue-600); font-size: .73rem; font-weight: 900; }
.course-card.featured .course-tag { background: var(--gold-100); color: #93640b; }
.course-card h3 { margin: 15px 0 8px; font-size: 1.3rem; line-height: 1.2; }
.course-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.course-card .course-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.meta-chip { display: inline-flex; padding: 5px 8px; border-radius: 8px; background: #f2f5f9; color: var(--muted); font-size: .75rem; font-weight: 800; }
.course-card .card-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 22px; }
.course-card .card-footer a:not(.button) { font-size: .84rem; font-weight: 800; text-decoration: none; }

.feature-band { margin-top: 22px; padding: 28px; background: var(--teal-100); border-radius: var(--radius-xl); display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.feature-band h2 { margin: 0 0 8px; color: var(--navy-950); }
.feature-band p { margin: 0; color: #3d5b67; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin: 0; padding: 0; list-style: none; }
.feature-list li { padding: 11px 13px; background: rgba(255,255,255,.7); border-radius: 12px; color: #255159; font-size: .88rem; font-weight: 800; }

.content-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: start; }
.surface, .panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--small-shadow); }
.surface { padding: 25px; }
.panel { padding: 20px; }
.surface h2, .surface h3, .panel h2, .panel h3 { margin-top: 0; color: var(--navy-950); }
.surface p, .panel p { color: var(--muted); }
.info-strip { padding: 14px 16px; border-radius: 13px; background: var(--blue-100); color: var(--navy-800); font-size: .9rem; }
.info-strip.gold { background: var(--gold-100); color: #75520a; }
.info-strip.green { background: var(--teal-100); color: #25655f; }
.stack { display: grid; gap: 14px; }
.stack-sm { display: grid; gap: 9px; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { color: var(--navy-900); font-size: .86rem; font-weight: 900; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid #cbd8e7;
  border-radius: 11px;
  background: #fbfdff;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(28,98,185,.12); }
.field-help { color: var(--muted); font-size: .77rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.essay-meter { display: flex; justify-content: space-between; gap: 10px; font-size: .78rem; color: var(--muted); }
.essay-meter.invalid { color: var(--danger); font-weight: 900; }
.form-feedback { margin-top: 16px; min-height: 22px; font-size: .9rem; }
.form-feedback.success { color: var(--success); }
.form-feedback.error { color: var(--danger); }
.notice-list { margin: 0; padding-left: 19px; color: var(--muted); }
.notice-list li + li { margin-top: 8px; }

.portal-header { display: flex; justify-content: space-between; align-items: start; gap: 18px; margin-bottom: 22px; }
.portal-header h1 { margin: 5px 0 5px; font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -.04em; }
.portal-header p { margin: 0; color: var(--muted); }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; background: var(--teal-100); color: var(--success); font-size: .74rem; font-weight: 900; white-space: nowrap; }
.status-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dashboard-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 18px; align-items: start; }
.dashboard-menu { padding: 12px; position: sticky; top: 101px; }
.dashboard-menu h2 { padding: 4px 9px 10px; margin: 0; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.dashboard-menu button { width: 100%; border: 0; background: transparent; text-align: left; padding: 11px 10px; border-radius: 10px; color: var(--muted); cursor: pointer; font-weight: 800; font-size: .88rem; }
.dashboard-menu button:hover, .dashboard-menu button.active { background: var(--blue-100); color: var(--navy-900); }
.dashboard-content { min-width: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat-card { padding: 16px; border-radius: var(--radius-md); background: var(--white); border: 1px solid var(--line); }
.stat-card span { display: block; color: var(--muted); font-size: .77rem; font-weight: 800; }
.stat-card strong { display: block; margin-top: 5px; color: var(--navy-950); font-size: 1.45rem; letter-spacing: -.04em; }
.stat-card small { color: var(--muted); font-size: .75rem; }
.tab-title { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; }
.tab-title h2 { margin: 0; font-size: 1.25rem; }
.tab-title p { margin: 0; color: var(--muted); font-size: .86rem; }
.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.module-card { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: #fbfdff; }
.module-card h3 { margin: 0 0 5px; font-size: 1rem; }
.module-card p { margin: 0; color: var(--muted); font-size: .85rem; }
.module-card .card-row { margin-top: 13px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.module-state { color: var(--teal-600); font-size: .74rem; font-weight: 900; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.data-table th, .data-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
.data-table th { background: #f1f5fa; color: var(--navy-900); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td.wrap { white-space: normal; min-width: 210px; }
.select-compact { border: 1px solid #cbd8e7; border-radius: 8px; padding: 7px 8px; background: #fff; color: var(--ink); }
.course-select { display: flex; align-items: center; gap: 9px; margin-bottom: 15px; }
.course-select label { color: var(--muted); font-size: .84rem; font-weight: 800; }
.course-select select { border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; background: #fff; color: var(--ink); }
.chat-list { display: grid; gap: 11px; }
.chat-item { padding: 14px; border: 1px solid var(--line); border-radius: 13px; }
.chat-item header { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.chat-item header strong { font-size: .9rem; }
.chat-item header span { color: var(--muted); font-size: .75rem; }
.chat-item p { margin: 7px 0 0; color: var(--muted); font-size: .88rem; }
.progress-bar { height: 9px; overflow: hidden; background: #e8edf5; border-radius: 999px; }
.progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-500), var(--teal-600)); border-radius: inherit; }
.progress-label { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .75rem; font-weight: 800; margin-bottom: 7px; }

.lab-switcher { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.lab-switcher button { border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; background: #fff; color: var(--muted); cursor: pointer; font-weight: 900; font-size: .83rem; }
.lab-switcher button.active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.account-tree { display: grid; gap: 8px; }
.account-line { display: flex; justify-content: space-between; gap: 10px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdff; font-size: .83rem; }
.account-line strong { color: var(--navy-900); }
.account-line span { color: var(--muted); }
.lab-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-bottom: 15px; }
.lab-kpi { padding: 14px; background: #f1f5fa; border-radius: 12px; }
.lab-kpi span { display: block; color: var(--muted); font-size: .73rem; font-weight: 800; }
.lab-kpi strong { display: block; margin-top: 4px; color: var(--navy-950); font-size: 1.2rem; }
.lab-kpi strong.balance-ok { color: var(--success); }
.lab-kpi strong.balance-error { color: var(--danger); }

.book-grid { grid-template-columns: repeat(4, 1fr); }
.book-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--small-shadow); display: flex; flex-direction: column; }
.book-cover { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; background: linear-gradient(160deg, var(--navy-900), var(--blue-600)); }
.book-body { display: flex; flex-direction: column; flex: 1; padding: 14px; }
.book-body .book-no { color: var(--teal-600); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.book-body h3 { margin: 7px 0 6px; font-size: .96rem; line-height: 1.25; }
.book-body p { margin: 0; color: var(--muted); font-size: .78rem; }
.book-body a { display: inline-block; margin-top: auto; padding-top: 15px; font-size: .8rem; font-weight: 900; text-decoration: none; }

.timeline { display: grid; gap: 0; }
.timeline-item { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding-bottom: 22px; }
.timeline-item:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; border-left: 1px dashed #b6c7dc; }
.timeline-marker { position: relative; z-index: 1; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-100); color: var(--blue-600); font-weight: 900; }
.timeline-item.complete .timeline-marker { background: var(--teal-100); color: var(--success); }
.timeline-item.current .timeline-marker { background: var(--gold-100); color: #91630a; }
.timeline-item h3 { margin: 1px 0 4px; font-size: 1rem; }
.timeline-item p { margin: 0; color: var(--muted); font-size: .86rem; }
.check-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.check-list label { display: flex; gap: 9px; align-items: flex-start; padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdff; color: var(--muted); font-size: .86rem; }
.check-list input { margin-top: 4px; accent-color: var(--teal-600); }

.app-modal { width: min(620px, calc(100% - 30px)); border: 0; padding: 0; border-radius: var(--radius-lg); box-shadow: 0 30px 90px rgba(0,0,0,.25); color: var(--ink); }
.app-modal::backdrop { background: rgba(6,20,44,.62); backdrop-filter: blur(4px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 1.2rem; }
.icon-button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #eff3f8; color: var(--navy-900); cursor: pointer; font-size: 1.35rem; line-height: 1; }
#modalBody { padding: 20px 22px 24px; }
#modalBody p { color: var(--muted); }

.toast { position: fixed; right: 22px; bottom: 22px; z-index: 40; max-width: 350px; transform: translateY(18px); opacity: 0; pointer-events: none; padding: 13px 16px; border-radius: 12px; background: var(--navy-950); color: #fff; box-shadow: var(--shadow); font-size: .86rem; transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.empty-state { padding: 24px; border: 1px dashed #c4d0df; border-radius: 13px; color: var(--muted); text-align: center; }
.access-gate { max-width: 760px; margin: 0 auto; }
.access-gate h2 { margin-bottom: 8px; }
.access-gate .form-actions { align-items: center; }
.muted { color: var(--muted); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }

.site-footer { margin-top: auto; background: var(--navy-950); color: #cad7e7; }
.footer-inner { width: min(1220px, calc(100% - 40px)); margin: 0 auto; padding: 38px 0 34px; display: grid; grid-template-columns: 1.3fr .8fr .8fr; gap: 30px; }
.footer-logo { width: 200px; height: auto; display: block; margin-bottom: 12px; }
.footer-inner p { max-width: 280px; margin: 0; color: #a9bbd2; font-size: .86rem; }
.footer-inner h2 { margin: 0 0 11px; color: #fff; font-size: .83rem; letter-spacing: .07em; text-transform: uppercase; }
.footer-inner a { display: block; width: fit-content; margin: 8px 0; color: #b7c8dc; text-decoration: none; font-size: .85rem; }
.footer-inner a:hover { color: #f6cd72; }
.footer-bottom { width: min(1220px, calc(100% - 40px)); margin: 0 auto; padding: 14px 0 18px; border-top: 1px solid rgba(255,255,255,.12); color: #8da2bc; font-size: .76rem; }

@media (max-width: 1100px) {
  .main-nav a { padding-inline: 8px; font-size: .82rem; }
  .header-inner { gap: 13px; }
  .brand img { width: 195px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .book-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 850px) {
  .header-inner { min-height: 70px; }
  .brand img { width: 175px; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .main-nav { position: absolute; left: 20px; right: 20px; top: 68px; display: none; flex-direction: column; align-items: stretch; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 12px; }
  .header-cta { display: none; }
  .hero-inner, .content-grid, .feature-band { grid-template-columns: 1fr; }
  .hero-inner { padding-block: 54px 62px; gap: 30px; }
  .course-grid { grid-template-columns: 1fr; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-menu { position: static; display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; }
  .dashboard-menu h2 { width: 100%; }
  .dashboard-menu button { width: auto; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .book-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 580px) {
  .container, .header-inner, .hero-inner, .footer-inner, .footer-bottom { width: min(100% - 26px, 1220px); }
  .page-wrap { padding-top: 36px; }
  .page-title { font-size: 2.3rem; }
  .hero h1 { font-size: 2.75rem; }
  .quick-grid, .mini-grid, .form-grid, .feature-list { grid-template-columns: 1fr; }
  .quick-grid { margin-top: 20px; }
  .surface, .panel { padding: 18px; }
  .portal-header { flex-direction: column; }
  .stat-grid { gap: 8px; }
  .stat-card { padding: 12px; }
  .stat-card strong { font-size: 1.2rem; }
  .lab-kpis { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner > div:first-child { grid-column: auto; }
  .book-grid { gap: 10px; }
  .book-body { padding: 11px; }
}
