:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #132238;
  background: #f5f8fd;
  --navy: #0b2d5c;
  --blue: #0b57d0;
  --blue-2: #3278ee;
  --cyan: #0aa5dd;
  --ink: #132238;
  --muted: #687a91;
  --line: #dbe5f4;
  --surface: #ffffff;
  --soft: #eef5ff;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; background: #f5f8fd; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; z-index: 999; left: 12px; top: -60px; padding: 10px 14px; border-radius: 10px; color: #fff; background: var(--navy); }
.skip-link:focus { top: 12px; }
.preview-strip { display: flex; min-height: 29px; align-items: center; justify-content: center; padding: 5px 16px; color: #234d80; background: #e8f2ff; font-size: 11px; font-weight: 750; letter-spacing: .06em; }

.portal-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  width: 100%;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px max(24px, calc((100vw - 1200px) / 2));
  border-bottom: 1px solid rgba(211, 224, 242, .88);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 25px rgba(35, 67, 111, .05);
  backdrop-filter: blur(18px);
}

.portal-brand { display: flex; min-width: 0; align-items: center; gap: 12px; }
.portal-brand > span:last-child { display: grid; gap: 2px; min-width: 0; }
.portal-brand small { color: #5e7592; font-size: 10px; font-weight: 750; letter-spacing: .12em; }
.portal-brand strong { overflow: hidden; color: var(--ink); font-size: 20px; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.portal-mark { display: grid; flex: 0 0 48px; width: 48px; height: 48px; place-items: center; border-radius: 15px; color: #fff; background: linear-gradient(145deg, #079fe5, #1769f5 52%, #554be9); box-shadow: 0 10px 24px rgba(34, 91, 215, .22); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.portal-mark.small { flex-basis: 38px; width: 38px; height: 38px; border-radius: 12px; font-size: 9px; }
.main-nav { display: flex; align-items: center; gap: 5px; }
.main-nav a { display: inline-flex; min-height: 42px; align-items: center; padding: 9px 13px; border-radius: 12px; color: #51657e; font-size: 14px; font-weight: 720; }
.main-nav a:hover, .main-nav a.active { color: var(--blue); background: #edf4ff; }
.main-nav .nav-login { margin-left: 5px; color: #fff; background: linear-gradient(125deg, #078fd4, #1764f2 55%, #514de8); box-shadow: 0 8px 20px rgba(25, 94, 213, .18); }
.main-nav .nav-login:hover { color: #fff; background: linear-gradient(125deg, #078fd4, #1764f2 55%, #514de8); }
.menu-button { display: none; min-width: 48px; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; color: #38536f; background: #fff; font-size: 13px; font-weight: 750; }

.portal-hero { position: relative; display: grid; min-height: min(680px, calc(100vh - 107px)); align-items: end; overflow: hidden; color: #fff; background: var(--navy); }
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: 55% center; filter: saturate(.86) contrast(1.05); }
.hero-shade { background: linear-gradient(90deg, rgba(5, 29, 65, .94) 0%, rgba(5, 32, 75, .72) 46%, rgba(5, 27, 62, .18) 75%), linear-gradient(0deg, rgba(4, 22, 52, .72), transparent 52%); }
.hero-content { position: relative; z-index: 1; width: min(1200px, calc(100% - 48px)); margin: 0 auto; padding: clamp(70px, 9vw, 120px) 0 clamp(65px, 7vw, 92px); }
.hero-kicker, .eyebrow { margin: 0 0 10px; color: #1b67d7; font-size: 11px; font-weight: 850; letter-spacing: .16em; }
.hero-kicker { color: #9fd8ff; }
.hero-content h1 { max-width: 800px; margin: 0; font-size: clamp(46px, 6.7vw, 82px); line-height: 1.05; letter-spacing: -.065em; }
.hero-content h1 em { color: #81d8ff; font-style: normal; }
.hero-lead { max-width: 690px; margin: 24px 0 0; color: rgba(238, 247, 255, .86); font-size: clamp(16px, 2vw, 19px); line-height: 1.85; }
.hero-actions, .banner-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 18px; border: 0; border-radius: 13px; cursor: pointer; font-weight: 800; }
.button.primary { color: #fff; background: linear-gradient(125deg, #078fd4, #1764f2 55%, #514de8); box-shadow: 0 12px 30px rgba(12, 63, 159, .28); }
.button.secondary { border: 1px solid rgba(255, 255, 255, .38); color: #fff; background: rgba(255, 255, 255, .12); backdrop-filter: blur(10px); }
.source-note { max-width: 720px; margin: 22px 0 0; color: rgba(220, 235, 250, .72); font-size: 11px; line-height: 1.65; }

.quick-section, .content-section, .inner-page, .portal-footer { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.quick-section { position: relative; z-index: 2; margin-top: -26px; padding: 28px; border: 1px solid rgba(220, 230, 245, .88); border-radius: 28px; background: rgba(255, 255, 255, .96); box-shadow: 0 28px 70px rgba(31, 66, 118, .14); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h2, .inner-hero h1, .pending-panel h2, .verified-records h2 { margin: 0; color: var(--ink); font-size: clamp(27px, 3.6vw, 42px); letter-spacing: -.04em; }
.section-heading > a { color: var(--blue); font-size: 13px; font-weight: 780; }
.quick-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.quick-card { display: grid; min-width: 0; min-height: 176px; grid-template-rows: auto auto 1fr auto; gap: 9px; padding: 17px; border: 1px solid #e1e9f4; border-radius: 18px; background: #f9fbff; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.quick-card:hover { transform: translateY(-3px); border-color: #9bbcf0; box-shadow: 0 16px 34px rgba(45, 83, 140, .1); }
.quick-card.available { background: linear-gradient(145deg, #edf7ff, #f5f2ff); }
.quick-icon { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #178fd2, #4f5ae5); font-size: 15px; font-weight: 900; }
.quick-card strong { font-size: 16px; }
.quick-card small { color: var(--muted); font-size: 12px; line-height: 1.55; }
.quick-card b { width: max-content; padding: 4px 7px; border-radius: 999px; color: #6d7d91; background: #edf1f6; font-size: 10px; }
.quick-card.available b { color: #0d6c4b; background: #e1f5ec; }

.content-section { padding: 92px 0; }
.college-section { width: 100%; margin-top: 82px; padding-inline: max(24px, calc((100vw - 1200px) / 2)); color: #fff; background: linear-gradient(145deg, #082d5f, #0a3c79 50%, #1649a2); }
.section-heading.light h2, .college-section .eyebrow { color: #fff; }
.pending-chip { padding: 7px 10px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 999px; color: rgba(255, 255, 255, .76); font-size: 11px; font-weight: 750; }
.college-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 56px; align-items: center; }
.college-intro { max-width: 680px; }
.placeholder-label { color: #8fd8ff; font-size: 12px; font-weight: 850; letter-spacing: .08em; }
.college-intro h3 { margin: 12px 0 17px; font-size: clamp(28px, 4vw, 44px); line-height: 1.25; letter-spacing: -.045em; }
.college-intro > p:last-child { color: rgba(229, 240, 253, .76); line-height: 1.8; }
.college-topics { display: grid; gap: 10px; }
.college-topics div { display: grid; grid-template-columns: 42px 1fr; gap: 4px 12px; padding: 18px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 17px; background: rgba(255, 255, 255, .08); }
.college-topics span { grid-row: 1 / 3; color: #6fd1ff; font-size: 12px; font-weight: 900; }
.college-topics strong { font-size: 17px; }
.college-topics small { color: rgba(225, 238, 252, .65); }
.placeholder-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 52px; }
.placeholder-grid article { padding: 19px; border: 1px dashed rgba(255, 255, 255, .26); border-radius: 17px; background: rgba(255, 255, 255, .06); }
.placeholder-grid p { margin: 0 0 12px; color: #94d8ff; font-size: 12px; font-weight: 750; }
.placeholder-grid strong { font-size: 14px; line-height: 1.5; }

.section-intro { max-width: 740px; margin: -6px 0 24px; color: var(--muted); line-height: 1.75; }
.record-list { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 14px; }
.record-feature { min-height: 310px; padding: 34px; border-radius: 24px; color: #fff; background: radial-gradient(circle at 90% 15%, rgba(39, 198, 236, .42), transparent 27%), linear-gradient(135deg, #0b386f, #2355bd); box-shadow: 0 20px 48px rgba(34, 76, 146, .18); }
.record-feature > div { display: flex; align-items: center; gap: 9px; }
.record-feature span, .record-feature b { padding: 6px 9px; border-radius: 999px; background: rgba(255, 255, 255, .13); font-size: 11px; }
.record-feature h3 { max-width: 620px; margin: 55px 0 16px; font-size: clamp(28px, 4vw, 42px); line-height: 1.2; letter-spacing: -.045em; }
.record-feature p { max-width: 650px; color: rgba(233, 244, 255, .78); line-height: 1.7; }
.record-stack { display: grid; gap: 12px; }
.record-stack article { display: flex; min-height: 95px; align-items: center; justify-content: space-between; gap: 16px; padding: 21px; border: 1px solid var(--line); border-radius: 19px; background: #fff; box-shadow: 0 12px 30px rgba(42, 75, 121, .06); }
.record-stack time { color: var(--blue); font-size: 12px; font-weight: 800; }
.record-stack strong { font-size: 17px; text-align: right; }

.service-banner { display: flex; width: min(1200px, calc(100% - 48px)); align-items: center; justify-content: space-between; gap: 34px; margin: 16px auto 80px; padding: 38px; border-radius: 27px; color: #fff; background: linear-gradient(120deg, #071f45, #0c3d82 58%, #254cbb); box-shadow: 0 24px 58px rgba(23, 63, 127, .2); }
.service-banner h2 { margin: 0; font-size: clamp(28px, 4vw, 43px); letter-spacing: -.045em; }
.service-banner p:not(.eyebrow) { max-width: 720px; margin: 12px 0 0; color: rgba(229, 240, 253, .76); line-height: 1.75; }
.service-banner .eyebrow { color: #86d6ff; }
.banner-actions { flex: 0 0 auto; margin: 0; }
.light-button { border: 1px solid rgba(255, 255, 255, .3); color: #fff; background: rgba(255, 255, 255, .1); }

.portal-footer { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 28px 0 38px; border-top: 1px solid var(--line); }
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand > span:last-child { display: grid; gap: 4px; }
.footer-brand strong { font-size: 13px; }
.footer-brand small { color: var(--muted); font-size: 11px; }
.portal-footer nav { display: flex; gap: 18px; color: #566b84; font-size: 12px; font-weight: 720; }
.mobile-nav { display: none; }

.inner-page { padding-bottom: 90px; }
.inner-hero { padding: 74px 0 44px; }
.inner-hero > p:not(.eyebrow) { max-width: 750px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.inner-hero .button { margin-top: 12px; }
.service-list { display: grid; gap: 13px; }
.service-item { display: grid; grid-template-columns: 55px minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 24px; border: 1px solid var(--line); border-radius: 21px; background: #fff; box-shadow: 0 14px 36px rgba(36, 71, 120, .06); }
.service-index { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #178fd2, #4f5ae5); font-size: 12px; font-weight: 900; }
.service-item.pending .service-index { color: #6b7d93; background: #edf1f6; }
.service-state { margin: 0 0 5px; color: #0d8058; font-size: 10px; font-weight: 850; letter-spacing: .1em; }
.service-item.pending .service-state { color: #8a6a36; }
.service-item h2 { margin: 0; font-size: 21px; }
.service-item div:nth-child(2) > p:last-child { margin: 8px 0 0; color: var(--muted); line-height: 1.65; }
.button.disabled { cursor: not-allowed; color: #8491a3; background: #eef1f5; }
.pending-panel, .verified-records { margin-top: 60px; padding: 31px; border: 1px solid var(--line); border-radius: 23px; background: #edf4ff; }
.pending-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 23px; }
.pending-grid span { padding: 12px; border: 1px dashed #a8bee1; border-radius: 12px; color: #45617f; background: rgba(255, 255, 255, .58); font-size: 12px; }
.form-library { margin-top: 60px; padding: 31px; border: 1px solid var(--line); border-radius: 25px; background: #fff; box-shadow: 0 18px 48px rgba(36, 71, 120, .07); }
.form-library .section-heading > p { max-width: 520px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.form-download-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.form-download-grid a { display: grid; min-height: 142px; grid-template-rows: auto 1fr auto; gap: 9px; padding: 18px; border: 1px solid #dce7f5; border-radius: 17px; background: linear-gradient(145deg, #f7fbff, #f2f6ff); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.form-download-grid a:hover { transform: translateY(-2px); border-color: #8bb3f2; box-shadow: 0 14px 30px rgba(45, 83, 140, .1); }
.form-download-grid span { width: max-content; padding: 4px 7px; border-radius: 999px; color: #1765bb; background: #e2efff; font-size: 9px; font-weight: 850; letter-spacing: .06em; }
.form-download-grid strong { font-size: 15px; line-height: 1.5; }
.form-download-grid small { color: var(--blue); font-size: 11px; font-weight: 800; }
.form-library > .source-note { max-width: none; color: var(--muted); background: #f4f7fb; }

.public-activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.public-activity-card { display: flex; min-height: 270px; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 21px; background: #fff; box-shadow: 0 14px 36px rgba(36, 71, 120, .06); }
.activity-date { margin: 0; color: var(--blue); font-size: 11px; font-weight: 850; }
.public-activity-card h2 { margin: 14px 0 9px; font-size: 21px; }
.public-activity-card > p:not(.activity-date) { color: var(--muted); line-height: 1.65; }
.public-activity-meta { display: grid; gap: 5px; margin: auto 0 16px; color: #50657e; font-size: 12px; }
.text-link { color: var(--blue); font-size: 13px; font-weight: 820; }
.portal-empty { grid-column: 1 / -1; padding: 44px 24px; border: 1px dashed #b9c9df; border-radius: 20px; color: var(--muted); background: #fff; text-align: center; }
.verified-records { background: #fff; }
.verified-records > p:not(.eyebrow) { color: var(--muted); }
.verified-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 20px; }
.verified-list span { padding: 14px; border-radius: 12px; color: #45617f; background: #f3f7fc; font-size: 12px; }

.auth-page { background: radial-gradient(circle at 90% 10%, #dfecff, transparent 32%), #f4f7fc; }
.compact-header { position: relative; }
.back-link { display: inline-flex; min-height: 44px; align-items: center; padding: 9px 13px; border: 1px solid var(--line); border-radius: 12px; color: #50657e; background: #fff; font-size: 13px; font-weight: 750; }
.auth-shell { display: grid; width: min(1120px, calc(100% - 48px)); min-height: calc(100vh - 155px); grid-template-columns: minmax(0, 1fr) minmax(380px, .75fr); align-items: stretch; gap: 22px; margin: 28px auto 48px; }
.auth-visual { position: relative; min-height: 610px; overflow: hidden; border-radius: 28px; color: #fff; background: var(--navy); box-shadow: 0 26px 70px rgba(15, 46, 91, .24); }
.auth-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 27, 60, .04), rgba(5, 24, 55, .88)); }
.auth-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 57% center; }
.auth-visual-copy { position: absolute; z-index: 1; inset: auto 34px 34px; }
.auth-visual-copy p { color: #99d7ff; font-size: 11px; font-weight: 850; letter-spacing: .16em; }
.auth-visual-copy h1 { margin: 10px 0 16px; font-size: clamp(38px, 5vw, 58px); line-height: 1.08; letter-spacing: -.055em; }
.auth-visual-copy span { color: rgba(233, 244, 255, .8); line-height: 1.7; }
.auth-card { align-self: center; padding: 35px; border: 1px solid rgba(218, 229, 243, .9); border-radius: 27px; background: rgba(255, 255, 255, .96); box-shadow: 0 24px 64px rgba(36, 71, 120, .12); }
.auth-card h2 { margin: 0; font-size: clamp(30px, 4vw, 42px); letter-spacing: -.045em; }
.auth-lead { color: var(--muted); line-height: 1.75; }
.auth-form { display: grid; gap: 15px; margin-top: 25px; }
.auth-form label { display: grid; gap: 7px; color: #2b3d57; font-size: 14px; font-weight: 750; }
.auth-form input { width: 100%; min-height: 49px; padding: 11px 13px; border: 1px solid #cdd9e9; border-radius: 13px; outline: 0; background: #fbfdff; }
.auth-form input:focus { border-color: #5187ef; box-shadow: 0 0 0 4px rgba(45, 108, 235, .1); }
.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 62px; }
.password-wrap button { position: absolute; right: 6px; top: 6px; min-width: 48px; min-height: 37px; border: 0; border-radius: 9px; color: var(--blue); background: #edf4ff; font-size: 12px; font-weight: 800; }
.auth-submit { width: 100%; min-height: 52px; margin-top: 2px; }
.auth-message { min-height: 22px; margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.auth-message.error { color: #a54035; }
.auth-message.success { color: #0c7652; }
.auth-pending { margin-top: 18px; padding: 15px; border: 1px dashed #b3c7e3; border-radius: 14px; background: #f4f8fd; }
.auth-pending strong { color: #46617e; font-size: 12px; }
.auth-pending ul { display: grid; gap: 4px; margin: 9px 0 0; padding-left: 18px; color: var(--muted); font-size: 11px; }
.legacy-link { display: block; margin-top: 15px; color: #6a7d93; font-size: 11px; line-height: 1.6; text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.account-help { margin-top: 20px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.auth-form input { font-size: 16px; }

@media (max-width: 980px) {
  .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .placeholder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .public-activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-shell { grid-template-columns: minmax(0, 1fr) minmax(350px, .9fr); }
  .form-download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .preview-strip { min-height: 26px; font-size: 9px; }
  .portal-header { min-height: 66px; padding: 10px 14px; }
  .portal-mark { flex-basis: 42px; width: 42px; height: 42px; border-radius: 13px; }
  .portal-brand { gap: 9px; }
  .portal-brand small { font-size: 8px; }
  .portal-brand strong { max-width: calc(100vw - 135px); font-size: 16px; }
  .menu-button { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav { position: absolute; top: calc(100% + 7px); right: 12px; left: 12px; display: none; align-items: stretch; flex-direction: column; padding: 9px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .98); box-shadow: 0 18px 46px rgba(21, 52, 94, .18); }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; min-height: 47px; }
  .main-nav .nav-login { margin-left: 0; }
  .portal-hero { min-height: 620px; align-items: end; }
  .hero-shade { background: linear-gradient(0deg, rgba(4, 22, 52, .96) 0%, rgba(5, 28, 66, .68) 57%, rgba(5, 25, 56, .16) 100%); }
  .hero-image { object-position: 60% center; }
  .hero-content { width: calc(100% - 28px); padding-bottom: 58px; }
  .hero-content h1 { font-size: clamp(42px, 12vw, 58px); }
  .hero-lead { font-size: 15px; line-height: 1.75; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .button { min-height: 50px; }
  .source-note { font-size: 10px; }
  .quick-section, .content-section, .inner-page, .portal-footer, .service-banner { width: calc(100% - 28px); }
  .quick-section { margin-top: -18px; padding: 20px 16px; border-radius: 23px; }
  .section-heading { align-items: flex-start; }
  .section-heading > a { padding-top: 9px; white-space: nowrap; }
  .quick-grid { display: flex; gap: 10px; margin-right: -16px; padding-right: 16px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .quick-card { flex: 0 0 175px; min-height: 164px; scroll-snap-align: start; }
  .content-section { padding: 66px 0; }
  .college-section { width: 100%; margin-top: 64px; padding-inline: 14px; }
  .college-layout { grid-template-columns: 1fr; gap: 30px; }
  .college-intro h3 { font-size: 30px; }
  .placeholder-grid { grid-template-columns: 1fr 1fr; margin-top: 35px; }
  .placeholder-grid article { padding: 15px; }
  .record-list { grid-template-columns: 1fr; }
  .record-feature { min-height: 330px; padding: 24px; }
  .record-feature h3 { margin-top: 62px; font-size: 31px; }
  .record-stack { grid-template-columns: 1fr; }
  .service-banner { align-items: stretch; flex-direction: column; margin-bottom: 30px; padding: 28px 22px; }
  .banner-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .portal-footer { align-items: flex-start; flex-direction: column; margin-bottom: 12px; }
  .portal-footer nav { display: none; }
  .mobile-nav { position: fixed; z-index: 80; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, 1fr); padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(209, 222, 239, .9); background: rgba(255, 255, 255, .96); box-shadow: 0 -9px 28px rgba(31, 61, 104, .09); backdrop-filter: blur(15px); }
  .mobile-nav a { display: grid; min-height: 48px; place-items: center; border-radius: 12px; color: #718197; font-size: 11px; font-weight: 750; }
  .mobile-nav a.active { color: var(--blue); background: #edf4ff; }
  .inner-hero { padding: 48px 0 30px; }
  .service-item { grid-template-columns: 45px minmax(0, 1fr); gap: 14px; padding: 18px 16px; }
  .service-index { width: 42px; height: 42px; }
  .service-item .button { grid-column: 1 / -1; width: 100%; }
  .pending-panel, .verified-records { margin-top: 38px; padding: 22px 17px; }
  .pending-grid { grid-template-columns: 1fr 1fr; }
  .form-library { margin-top: 38px; padding: 20px 16px; border-radius: 21px; }
  .form-library .section-heading { align-items: flex-start; flex-direction: column; }
  .form-download-grid { display: flex; gap: 10px; margin-right: -16px; padding-right: 16px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .form-download-grid a { flex: 0 0 min(78vw, 280px); min-height: 138px; scroll-snap-align: start; }
  .public-activity-grid { grid-template-columns: 1fr; }
  .public-activity-card { min-height: 235px; }
  .verified-list { grid-template-columns: 1fr; }
  .compact-header .back-link { padding: 7px 9px; font-size: 11px; }
  .auth-shell { display: block; width: calc(100% - 24px); min-height: auto; margin: 12px auto 24px; }
  .auth-visual { min-height: 230px; border-radius: 22px 22px 0 0; box-shadow: none; }
  .auth-visual-copy { inset: auto 20px 22px; }
  .auth-visual-copy p { margin-bottom: 7px; font-size: 9px; }
  .auth-visual-copy h1 { margin: 0 0 8px; font-size: 31px; }
  .auth-visual-copy span { font-size: 12px; }
  .auth-card { margin-top: -1px; padding: 25px 18px calc(24px + env(safe-area-inset-bottom)); border-radius: 0 0 22px 22px; box-shadow: 0 20px 50px rgba(36, 71, 120, .11); }
  .auth-card h2 { font-size: 31px; }
  .auth-form input, .auth-submit { min-height: 52px; }
}

@media (max-width: 420px) {
  .hero-actions, .banner-actions { grid-template-columns: 1fr; }
  .placeholder-grid, .pending-grid { grid-template-columns: 1fr; }
  .section-heading > a { font-size: 11px; }
  .record-feature > div { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Material-led identity and responsive refinements */
.portal-emblem {
  display: block;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: left center;
  filter: drop-shadow(0 8px 15px rgba(21, 69, 142, .16));
}
.portal-emblem.small { flex-basis: 42px; width: 42px; height: 42px; }
.portal-brand em { color: #8797aa; font-size: 8px; font-style: normal; font-weight: 750; letter-spacing: .06em; }

.portal-hero { min-height: min(760px, calc(100vh - 107px)); }
.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 345px);
  align-items: end;
  gap: 32px 48px;
}
.hero-copy { min-width: 0; }
.hero-symbol {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .21);
  border-radius: 24px;
  background: rgba(3, 28, 66, .42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 24px 60px rgba(2, 15, 39, .24);
  backdrop-filter: blur(18px);
}
.hero-symbol > img { width: 108px; height: 108px; border-radius: 50%; object-fit: cover; object-position: left center; filter: drop-shadow(0 13px 23px rgba(0, 13, 42, .32)); }
.hero-symbol div { display: grid; gap: 6px; min-width: 0; }
.hero-symbol span { color: #8fd8ff; font-size: 8px; font-weight: 850; letter-spacing: .12em; }
.hero-symbol strong { font-size: 17px; line-height: 1.45; }
.hero-symbol small { color: rgba(226, 239, 252, .68); font-size: 10px; line-height: 1.5; }
.hero-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .17);
}
.hero-facts span { display: flex; align-items: center; gap: 9px; color: rgba(239, 247, 255, .84); font-size: 12px; font-weight: 760; }
.hero-facts b { color: #82d8ff; font-size: 9px; letter-spacing: .08em; }

.material-story {
  display: grid;
  width: min(1200px, calc(100% - 48px));
  grid-template-columns: minmax(0, 1.15fr) minmax(350px, .85fr);
  align-items: center;
  gap: 0;
  margin: 72px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(32, 69, 121, .1);
}
.material-photo { position: relative; min-height: 360px; margin: 0; overflow: hidden; background: #dce9f4; }
.material-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 54%, rgba(6, 38, 80, .23)); }
.material-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.material-photo figcaption { position: absolute; z-index: 1; right: 18px; bottom: 16px; padding: 7px 10px; border-radius: 999px; color: rgba(255, 255, 255, .84); background: rgba(5, 30, 65, .54); font-size: 9px; backdrop-filter: blur(12px); }
.material-copy { padding: clamp(28px, 4vw, 52px); }
.material-copy h2 { margin: 0; color: var(--ink); font-size: clamp(30px, 3.5vw, 44px); line-height: 1.2; letter-spacing: -.05em; }
.material-copy > p:not(.eyebrow) { margin: 18px 0 0; color: var(--muted); line-height: 1.78; }
.growth-path, .service-route { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; }
.growth-path span, .service-route span { padding: 8px 10px; border-radius: 999px; color: #245b98; background: #eaf3ff; font-size: 11px; font-weight: 800; }
.growth-path i, .service-route i { color: #8fa5bf; font-size: 11px; font-style: normal; }

.college-pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.college-pill-row span { padding: 8px 11px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; color: #dcf2ff; background: rgba(255, 255, 255, .08); font-size: 11px; font-weight: 750; }
.emblem-story { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 20px; margin: 0; padding: 24px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 24px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.emblem-story > img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; object-position: left center; filter: drop-shadow(0 16px 28px rgba(0, 18, 48, .34)); }
.emblem-story figcaption { display: grid; gap: 8px; }
.emblem-story strong { font-size: 17px; }
.emblem-story span { color: rgba(230, 241, 254, .78); font-size: 12px; line-height: 1.72; }
.emblem-story small { color: #90d9ff; font-size: 9px; line-height: 1.55; }
.college-topics { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 40px; }

.reading-stages { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px !important; margin-top: 24px; }
.reading-stages span { display: grid; gap: 3px; padding: 9px !important; border: 1px solid rgba(255, 255, 255, .13); border-radius: 12px !important; color: rgba(235, 245, 255, .74); background: rgba(255, 255, 255, .08) !important; font-size: 9px !important; }
.reading-stages b { padding: 0 !important; color: #fff; background: none !important; font-size: 10px !important; }
.record-timeline, .verified-timeline { display: grid; gap: 8px; }
.record-timeline article, .verified-timeline article { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: stretch; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 8px 22px rgba(42, 75, 121, .05); }
.record-timeline time, .verified-timeline time { display: grid; place-items: center; padding: 12px 8px; color: #1766c3; background: #eef5ff; font-size: 10px; font-weight: 850; }
.record-timeline article > span, .verified-timeline article > span { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 8px; padding: 11px 13px; }
.record-timeline article b, .verified-timeline article b { color: #8798ac; font-size: 9px; letter-spacing: .08em; }
.record-timeline article strong, .verified-timeline article strong { font-size: 12px; line-height: 1.45; }

.inner-hero-art { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .88fr); align-items: center; gap: 54px; }
.inner-hero-copy > p:not(.eyebrow) { max-width: 720px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.source-note.dark { display: block; margin-top: 13px; color: #8495a9; }
.inner-hero-media { position: relative; min-height: 270px; margin: 0; overflow: hidden; border-radius: 25px; background: #dce9f4; box-shadow: 0 22px 50px rgba(28, 64, 117, .16); }
.inner-hero-media > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.inner-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 28, 67, .04), rgba(3, 25, 59, .68)); }
.inner-hero-media figcaption { position: absolute; z-index: 1; right: 18px; bottom: 18px; left: 18px; display: flex; align-items: center; gap: 12px; color: #fff; }
.inner-hero-media figcaption > img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: left center; filter: drop-shadow(0 8px 18px rgba(0, 12, 35, .34)); }
.inner-hero-media figcaption span { display: grid; gap: 4px; }
.inner-hero-media figcaption strong { font-size: 13px; }
.inner-hero-media figcaption small { color: rgba(230, 240, 251, .72); font-size: 9px; line-height: 1.45; }
.compact-media { min-height: 235px; }
.service-route { margin-top: 22px; }
.service-route span { color: #fff; background: linear-gradient(135deg, #1578d2, #4d58df); }
.service-route i { color: #6e87a5; }
.service-item { position: relative; overflow: hidden; }
.service-item::after { content: ""; position: absolute; top: -45px; right: -45px; width: 100px; height: 100px; border: 1px solid rgba(38, 105, 203, .08); border-radius: 50%; }
.service-item > * { position: relative; z-index: 1; }

.verified-records { overflow: hidden; }
.verified-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 22px; }
.reading-record { display: grid; grid-template-columns: minmax(240px, .55fr) minmax(0, 1.45fr); align-items: center; gap: 22px; margin-top: 26px; padding: 25px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, #082f65, #194da2); }
.reading-record h3 { margin: 0 0 8px; font-size: 21px; }
.reading-record small { color: #9edbff; }
.reading-record .eyebrow { color: #8bd9ff; }

.auth-emblem { position: absolute; z-index: 2; top: 25px; left: 25px; display: flex; align-items: center; gap: 8px; padding: 7px 10px 7px 7px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; color: rgba(255, 255, 255, .8); background: rgba(4, 28, 65, .4); font-size: 9px; font-weight: 750; backdrop-filter: blur(14px); }
.auth-emblem img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: left center; }
.role-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-top: 18px; padding: 10px; border: 1px solid #dce7f5; border-radius: 15px; background: #f6f9fd; }
.role-route div { display: grid; gap: 4px; padding: 9px; border-radius: 10px; background: #fff; }
.role-route b { color: #245b98; font-size: 11px; }
.role-route span, .role-route i { color: #73859a; font-size: 9px; font-style: normal; }
.role-route i { text-align: center; }

.activity-gallery { width: min(1200px, calc(100% - 48px)); margin: 82px auto 0; }
.gallery-grid { display: grid; min-height: 490px; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .8fr); grid-template-rows: 1fr 1fr; gap: 13px; }
.gallery-item { position: relative; min-height: 0; overflow: hidden; border-radius: 22px; color: #fff; background: #0b2d5c; box-shadow: 0 18px 46px rgba(30, 67, 120, .13); isolation: isolate; }
.gallery-item::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 38%, rgba(3, 20, 47, .88)); }
.gallery-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-item:hover img { transform: scale(1.025); }
.gallery-primary { grid-row: 1 / 3; }
.gallery-item > span { position: absolute; z-index: 2; right: 20px; bottom: 19px; left: 20px; display: grid; gap: 5px; }
.gallery-item time { color: #96ddff; font-size: 9px; font-weight: 850; letter-spacing: .1em; }
.gallery-item strong { font-size: 16px; line-height: 1.45; }
.gallery-primary strong { font-size: clamp(23px, 3vw, 34px); }
.gallery-item small { color: rgba(231, 241, 252, .7); font-size: 9px; }

@media (max-width: 980px) {
  .hero-content { grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; }
  .hero-symbol { grid-template-columns: 84px minmax(0, 1fr); }
  .hero-symbol > img { width: 84px; height: 84px; }
  .material-story { grid-template-columns: 1fr 1fr; }
  .college-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inner-hero-art { gap: 30px; }
  .verified-timeline { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: minmax(0, 1.35fr) minmax(280px, .8fr); }
}

@media (max-width: 760px) {
  .portal-emblem { flex-basis: 45px; width: 45px; height: 45px; }
  .portal-brand em { font-size: 7px; }
  .portal-hero { min-height: 700px; }
  .hero-content { display: grid; grid-template-columns: 1fr; gap: 20px; padding-top: 130px; padding-bottom: 36px; }
  .hero-copy { align-self: end; }
  .hero-symbol { grid-template-columns: 58px minmax(0, 1fr); gap: 11px; padding: 11px 13px; border-radius: 17px; }
  .hero-symbol > img { width: 58px; height: 58px; }
  .hero-symbol strong { font-size: 13px; }
  .hero-symbol small { font-size: 8px; }
  .hero-facts { grid-column: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 13px; }
  .hero-facts span { font-size: 10px; }
  .material-story { width: calc(100% - 28px); grid-template-columns: 1fr; margin-top: 46px; border-radius: 23px; }
  .material-photo { min-height: 210px; }
  .material-photo::after { background: linear-gradient(0deg, rgba(6, 38, 80, .28), transparent 60%); }
  .material-photo figcaption { right: 10px; bottom: 10px; }
  .material-copy { padding: 24px 18px 27px; }
  .material-copy h2 { font-size: 30px; }
  .growth-path { gap: 5px; margin-top: 19px; }
  .growth-path span { padding: 7px 8px; font-size: 9px; }
  .college-layout { gap: 24px; }
  .emblem-story { grid-template-columns: 88px minmax(0, 1fr); gap: 13px; padding: 16px; }
  .emblem-story > img { width: 88px; height: 88px; }
  .emblem-story strong { font-size: 14px; }
  .emblem-story span { font-size: 10px; }
  .college-topics { grid-template-columns: 1fr 1fr; margin-top: 28px; }
  .college-topics div { grid-template-columns: 32px 1fr; padding: 14px 12px; }
  .college-topics small { font-size: 9px; line-height: 1.5; }
  .reading-stages { grid-template-columns: repeat(5, 86px); margin-right: -24px; padding-right: 24px; overflow-x: auto; }
  .record-feature h3 { margin-top: 36px; }
  .record-timeline article { grid-template-columns: 82px minmax(0, 1fr); }
  .inner-hero-art { grid-template-columns: 1fr; gap: 25px; }
  .inner-hero-copy h1 { font-size: 38px; line-height: 1.12; }
  .inner-hero-media, .compact-media { min-height: 205px; }
  .service-route { gap: 5px; }
  .service-route span { padding: 7px 8px; font-size: 9px; }
  .service-item h2 { font-size: 18px; }
  .service-item div:nth-child(2) > p:last-child { font-size: 12px; }
  .verified-timeline article { grid-template-columns: 78px minmax(0, 1fr); }
  .reading-record { grid-template-columns: 1fr; gap: 15px; padding: 20px 17px; }
  .reading-record .reading-stages { margin-right: -17px; padding-right: 17px; }
  .auth-emblem { top: 14px; left: 14px; }
  .role-route { grid-template-columns: 1fr 1fr; }
  .role-route > i { grid-column: 1 / -1; grid-row: 1; }
  .role-route div { grid-row: 2; }
  .activity-gallery { width: calc(100% - 28px); margin-top: 58px; }
  .gallery-grid { display: flex; min-height: 0; gap: 10px; margin-right: -14px; padding-right: 14px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .gallery-item, .gallery-primary { flex: 0 0 min(82vw, 340px); height: 270px; grid-row: auto; scroll-snap-align: start; border-radius: 19px; }
  .gallery-item > span { right: 16px; bottom: 15px; left: 16px; }
  .gallery-item strong, .gallery-primary strong { font-size: 17px; }
}

@media (max-width: 420px) {
  .portal-brand em { display: none; }
  .hero-content h1 { font-size: 41px; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .college-topics { grid-template-columns: 1fr; }
  .emblem-story { grid-template-columns: 72px minmax(0, 1fr); }
  .emblem-story > img { width: 72px; height: 72px; }
  .service-route i { display: none; }
  .service-route span { flex: 1 1 40%; text-align: center; }
}
