:root {
  color-scheme: light;
  --ink: #102d30;
  --ink-soft: #3f5657;
  --muted: #687b7b;
  --forest: #073f41;
  --forest-deep: #062e32;
  --teal: #087c75;
  --teal-bright: #30ad96;
  --mint: #e9f4ef;
  --champagne: #d9b36b;
  --champagne-soft: #f6eddc;
  --line: rgba(16, 62, 62, .14);
  --paper: #fffefb;
  --canvas: #f1f7f3;
  --danger: #a33d36;
  --shadow-lg: 0 30px 80px rgba(8, 49, 50, .14);
  --shadow-md: 0 18px 44px rgba(8, 49, 50, .09);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #eff6f2 0%, #f7f8f4 72%, #f1f5f1 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: .32;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(11, 72, 70, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 72, 70, .035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000, transparent 65%);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(48, 173, 150, .34);
  outline-offset: 3px;
}

.portal-shell {
  width: min(1440px, calc(100% - 40px));
  margin: 20px auto 72px;
}

.portal-hero {
  position: relative;
  min-height: 292px;
  padding: 24px 38px 22px;
  color: #fff;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(120deg, #006f6c 0%, #008f8b 58%, #1aa795 100%);
  box-shadow: var(--shadow-lg);
}

.portal-hero::before {
  display: none;
}

.portal-hero::after {
  position: absolute;
  width: 530px;
  height: 530px;
  top: -270px;
  right: -120px;
  content: "";
  border: 82px solid rgba(255, 255, 255, .045);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255, 255, 255, .022);
  pointer-events: none;
}

.portal-home {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 26px;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  color: rgba(255, 255, 255, .88);
  background: rgba(255, 255, 255, .07);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  transition: color .2s ease, background .2s ease;
}

.portal-home:hover {
  color: #fff;
  background: rgba(255, 255, 255, .13);
}

.portal-hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: clamp(30px, 4vw, 62px);
  align-items: center;
  padding: 18px 16px 0;
}

.portal-brandline {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 24px;
  color: rgba(226, 245, 239, .72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.portal-brand-mark {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 9px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  letter-spacing: 0;
}

.portal-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--champagne);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .2em;
}

.portal-hero h1 {
  max-width: none;
  margin: 0;
  font-family: "Songti SC", "STSong", "PingFang SC", serif;
  font-size: clamp(43px, 4.5vw, 64px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.055em;
  white-space: nowrap;
}

.portal-hero-copy > p {
  max-width: 710px;
  margin: 14px 0 0;
  color: rgba(235, 247, 243, .79);
  font-size: clamp(14px, 1.35vw, 17px);
  line-height: 1.65;
}

.portal-hero-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 650px;
  min-height: 42px;
  margin-top: 15px;
  padding: 11px 0 5px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.portal-hero-features span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(238, 248, 245, .76);
  font-size: 13px;
  line-height: 1.2;
}

.portal-hero-features span:nth-child(2) {
  justify-content: center;
  text-align: center;
}

.portal-hero-features span:nth-child(3) {
  justify-content: flex-end;
  text-align: right;
}

.portal-hero-features b {
  margin-right: 0;
  color: var(--champagne);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 400;
}

.portal-hero-panel {
  position: relative;
  width: min(100%, 300px);
  min-height: 198px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  padding: 22px 20px 20px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .115), rgba(255, 255, 255, .045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  text-align: center;
  transform: translateX(-165px);
  backdrop-filter: blur(16px);
}

.portal-hero-panel > span {
  color: rgba(217, 179, 107, .9);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .2em;
}

.portal-hero-panel > strong {
  display: block;
  margin-top: 11px;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(22px, 2vw, 29px);
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.portal-hero-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  margin-top: 15px;
}

.portal-hero-status span {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: rgba(236, 249, 245, .9);
  font-size: 11px;
  text-align: center;
}

.portal-hero-status i {
  width: 18px;
  height: 3px;
  border-radius: 99px;
  background: var(--teal-bright);
  box-shadow: 0 0 16px rgba(48, 173, 150, .5);
}

.portal-hero-status b {
  font-size: 11px;
  font-weight: 700;
}

.portal-hero-status small {
  position: static;
  display: block;
  margin: 0;
  padding: 0;
  color: rgba(230, 244, 239, .62);
  font-size: 8px;
  line-height: 1.2;
  letter-spacing: .1em;
}

.portal-access {
  position: relative;
  z-index: 4;
  margin: -24px 28px 38px;
}

.portal-login,
.portal-session {
  border: 1px solid rgba(10, 68, 66, .12);
  border-radius: 20px;
  background: rgba(255, 254, 251, .95);
  box-shadow: 0 18px 46px rgba(6, 46, 48, .13);
  backdrop-filter: blur(18px);
}

.portal-login {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 16px;
  align-items: end;
  padding: 25px 28px;
}

.portal-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.portal-field input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(20, 74, 72, .22);
  border-radius: 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, .92);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.portal-field input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(8, 124, 117, .1);
}

.portal-login button,
.portal-session button {
  height: 50px;
  padding: 0 23px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: var(--forest);
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}

.portal-login button:hover,
.portal-session button:hover {
  transform: translateY(-1px);
  background: var(--teal);
}

.portal-login button:disabled {
  cursor: wait;
  opacity: .6;
}

.portal-login-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.portal-login-note:empty {
  display: none;
}

.portal-error {
  color: var(--danger);
  font-weight: 700;
}

.portal-session {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
}

.portal-session-badge {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: var(--teal);
  font-size: 18px;
  font-weight: 900;
  box-shadow: none;
}

.portal-session-copy {
  min-width: 0;
  flex: 1;
}

.portal-session-copy small {
  display: block;
  margin-bottom: 5px;
  color: var(--teal);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
}

.portal-session-copy strong {
  display: block;
  font-size: 17px;
}

.portal-session-copy > span {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-session button {
  color: var(--forest);
  background: var(--mint);
}

.portal-session-warning {
  margin: 10px 20px 0;
  padding: 12px 15px;
  border-left: 3px solid #c35851;
  border-radius: 8px;
  color: #8c3732;
  background: #fff1ef;
  font-weight: 800;
}

.portal-public-content[hidden],
.portal-private-content[hidden] {
  display: none !important;
}

.portal-private-content {
  display: block;
}

.portal-preparation,
.portal-overview,
.portal-public-content {
  margin-right: 28px;
  margin-left: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fffefb;
  box-shadow: 0 10px 28px rgba(8, 49, 50, .06);
}

.portal-preparation {
  position: relative;
  margin-bottom: 28px;
  padding: 28px;
  overflow: hidden;
  border: 2px solid #d8ae60;
  background: #fffefb;
  box-shadow: 0 10px 28px rgba(8, 49, 50, .06);
}

.portal-preparation::before {
  display: none;
}

.portal-preparation.is-complete::before {
  display: none;
}

.portal-prep-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.portal-prep-kicker {
  color: #a17635;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .2em;
}

.is-complete .portal-prep-kicker {
  color: var(--teal);
}

.portal-prep-head h2 {
  margin: 9px 0 8px;
  font-family: "Songti SC", "STSong", "PingFang SC", serif;
  font-size: clamp(24px, 2.5vw, 31px);
  line-height: 1.3;
}

.portal-prep-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.portal-prep-status {
  flex: none;
  padding: 10px 14px;
  border: 1px solid rgba(174, 125, 46, .16);
  border-radius: 999px;
  color: #805d23;
  background: var(--champagne-soft);
  font-size: 12px;
  font-weight: 900;
}

.is-complete .portal-prep-status {
  border-color: rgba(8, 124, 117, .12);
  color: #08685f;
  background: var(--mint);
}

.portal-prep-body {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(390px, 1.08fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 18px;
}

.portal-prep-body.is-simple-layout {
  grid-template-columns: 1fr;
}

.portal-prep-stack {
  display: grid;
  align-content: stretch;
  gap: 14px;
  background: transparent;
}

.portal-prep-body article {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f9faf6;
}

.portal-prep-stack > article {
  border: 1px solid var(--line);
  border-radius: 16px;
}

.portal-prep-stack > article + article {
  border-top: 1px solid var(--line);
}

.portal-prep-document {
  background: #fbfaf6 !important;
}

.portal-prep-body h3,
.portal-alerts h3 {
  margin: 0 0 9px;
  font-size: 17px;
}

.portal-prep-body p {
  margin: 0 0 17px;
  color: var(--muted);
  line-height: 1.65;
}

.portal-prep-open,
.portal-prep-missing {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 900;
}

.portal-prep-open {
  color: #fff;
  background: var(--forest);
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.portal-prep-open:hover {
  transform: translateY(-1px);
  background: var(--teal);
}

.portal-prep-missing {
  color: #795825;
  background: var(--champagne-soft);
}

.portal-prep-progress > div {
  display: grid;
  gap: 8px;
}

.portal-prep-progress span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 11px;
  border: 1px solid rgba(170, 121, 43, .08);
  border-radius: 10px;
  color: #725526;
  background: #f8f0df;
}

.portal-prep-progress span.is-met {
  border-color: rgba(8, 124, 117, .08);
  color: #086c62;
  background: var(--mint);
}

.portal-prep-progress b {
  font-size: 13px;
}

.portal-prep-progress strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.portal-alerts {
  height: 100%;
  margin-top: 0;
  padding: 16px;
  border: 1px solid rgba(8, 124, 117, .13);
  border-radius: 13px;
  background: rgba(237, 247, 242, .82);
}

.portal-alerts.has-alerts {
  border-color: rgba(163, 61, 54, .16);
  background: #fff8f5;
}

.portal-alerts.has-pending {
  border-color: rgba(174, 125, 46, .18);
  background: #fffaf0;
}

.portal-alerts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.portal-alerts-head h3 {
  margin: 0;
  color: var(--ink);
}

.portal-alerts-head > span {
  color: #0b665e;
  font-size: 12px;
  font-weight: 800;
}

.portal-alerts.has-alerts .portal-alerts-head > span {
  color: #933a35;
}

.portal-alerts.has-pending .portal-alerts-head > span {
  color: #835f27;
}

.portal-alert-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
  margin-top: 13px;
}

.portal-prep-body.has-alerts-layout .portal-alerts article {
  display: grid;
  align-content: center;
  min-height: 82px;
}

.portal-alerts article,
.portal-alerts article + article {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(8, 124, 117, .12);
  border-radius: 11px;
  background: rgba(255, 255, 255, .76);
}

.portal-alerts article.is-clear {
  border-color: rgba(8, 124, 117, .1);
  background: var(--mint);
}

.portal-alerts article.has-alert {
  border-color: rgba(163, 61, 54, .18);
  background: #fff2ef;
}

.portal-alerts article.is-incomplete {
  border-color: rgba(174, 125, 46, .2);
  background: #fff9eb;
}

.portal-alert-label {
  display: block;
  margin-bottom: 7px;
  color: var(--teal);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.portal-alerts article strong {
  display: block;
  color: #0b665e;
  font-size: 14px;
}

.portal-alerts article.has-alert strong {
  color: #933a35;
}

.portal-alerts article.is-incomplete .portal-alert-label,
.portal-alerts article.is-incomplete strong {
  color: #835f27;
}

.portal-alerts article p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.portal-alerts article.has-alert p {
  color: #76524e;
}

.portal-alerts article.is-incomplete p {
  color: #75664e;
}

.portal-overview {
  margin-top: 24px;
  padding: 27px;
}

.portal-section-heading {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.portal-section-heading > span {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(8, 124, 117, .12);
  border-radius: 15px;
  color: var(--teal);
  background: var(--mint);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
}

.portal-section-heading p {
  margin: 0 0 4px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
}

.portal-section-heading h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", "PingFang SC", serif;
  font-size: 24px;
  line-height: 1.25;
}

.portal-section-heading small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.portal-grid-gre {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 266px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: inherit;
  background: #fbfcf9;
  text-decoration: none;
  flex-direction: column;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, background .28s ease;
}

.portal-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: var(--teal);
  opacity: .74;
  transform-origin: left center;
  transition: height .28s ease, opacity .28s ease, transform .28s ease;
}

.portal-card::after {
  display: none;
}

.portal-card[data-exam="gre"]::before {
  background: #a87538;
}

.portal-card.is-open:hover {
  transform: translateY(-4px);
  border-color: rgba(8, 124, 117, .42);
  background: #f8fbf9;
  box-shadow: 0 10px 22px rgba(7, 64, 64, .08);
}

.portal-card.is-open:hover::before {
  height: 5px;
  opacity: 1;
  transform: scaleX(1.04);
}

.portal-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.portal-card-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(8, 124, 117, .13);
  border-radius: 14px;
  color: #fff;
  background: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 700;
  box-shadow: none;
  transition: transform .28s ease, box-shadow .28s ease, background .28s ease;
}

.portal-card.is-open:hover .portal-card-icon {
  background: var(--teal);
  box-shadow: none;
  transform: translateY(-2px) rotate(-4deg) scale(1.08);
}

.portal-card[data-exam="gre"] .portal-card-icon {
  border-color: rgba(157, 106, 49, .14);
  background: #8e6030;
  box-shadow: none;
}

.portal-card-number {
  color: #a6b2af;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.portal-card-label {
  display: block;
  margin-top: 16px;
  color: var(--teal);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
}

.portal-card[data-exam="gre"] .portal-card-label {
  color: #8e6030;
}

.portal-card h3 {
  margin: 5px 0 0;
  font-family: "Songti SC", "STSong", "PingFang SC", serif;
  font-size: 20px;
  line-height: 1.3;
  transition: color .25s ease, transform .25s ease;
}

.portal-card.is-open:hover h3 {
  color: var(--teal);
  transform: translateX(3px);
}

.portal-card > p {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.58;
}

.portal-card-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: #607573;
  font-size: 11px;
  font-weight: 700;
}

.portal-card-status i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: none;
}

.portal-card.is-locked .portal-card-status i {
  background: #aab4b1;
  box-shadow: none;
}

.portal-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--forest);
  font-size: 13px;
  font-weight: 900;
}

.portal-card-action b {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--forest);
  font-size: 13px;
  transition: transform .28s ease, background .28s ease, box-shadow .28s ease;
}

.portal-card.is-open:hover .portal-card-action b {
  background: var(--teal);
  box-shadow: none;
  transform: translate(2px, -2px) rotate(8deg) scale(1.08);
}

.portal-card[data-exam="gre"] .portal-card-action {
  color: #80552b;
}

.portal-card[data-exam="gre"] .portal-card-action b {
  background: #8e6030;
}

.portal-card.is-locked {
  color: #667674;
  background: #f6f7f4;
}

.portal-card.is-locked::before {
  opacity: .24;
}

.portal-card.is-locked .portal-card-icon,
.portal-card.is-locked .portal-card-action b {
  filter: grayscale(1);
  opacity: .45;
}

.portal-future-content > article {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #f9faf6;
}

.portal-future-content .portal-card-icon {
  flex: 0 0 auto;
}

.portal-future-content h3 {
  margin: 0 0 7px;
  font-size: 20px;
}

.portal-future-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.portal-footnote {
  margin: 25px 28px 0;
  color: #71807f;
  text-align: center;
  font-size: 12px;
}

.portal-public-content {
  margin-top: 0;
  margin-bottom: 44px;
  padding: 34px;
}

.portal-public-heading {
  max-width: 760px;
}

.portal-public-heading > span {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .2em;
}

.portal-public-heading h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", "PingFang SC", serif;
  font-size: clamp(26px, 3vw, 38px);
}

.portal-public-heading p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.portal-public-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 27px;
}

.portal-public-card {
  position: relative;
  display: flex;
  min-height: 210px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--ink);
  background: #fafbf8;
  text-decoration: none;
  flex-direction: column;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.portal-public-card:hover {
  transform: translateY(-4px);
  border-color: rgba(8, 124, 117, .28);
  box-shadow: 0 16px 30px rgba(7, 64, 64, .09);
}

.portal-public-card > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(8, 124, 117, .12);
  border-radius: 12px;
  color: var(--teal);
  background: var(--mint);
  font-family: Georgia, "Times New Roman", serif;
}

.portal-public-card strong {
  margin-top: 21px;
  font-family: "Songti SC", "STSong", "PingFang SC", serif;
  font-size: 21px;
}

.portal-public-card p {
  margin: 9px 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

.portal-public-card b {
  margin-top: auto;
  color: var(--teal);
  font-size: 13px;
}

.portal-public-card-featured {
  background: linear-gradient(145deg, #f0f7f3, #fffefb);
}

.portal-public-guide {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 16px;
  padding: 21px 23px;
  border: 1px solid rgba(16, 62, 62, .07);
  border-radius: 16px;
  color: var(--ink-soft);
  background: #f5f7f3;
}

.portal-public-guide > span {
  color: var(--ink);
  font-weight: 900;
}

.portal-public-guide ol {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 18px;
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.6;
}

@media (min-width: 901px) {
  .portal-public-guide li {
    white-space: nowrap;
  }
}

@media (max-width: 1120px) {
  .portal-hero-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
  }

  .portal-hero-panel {
    width: 290px;
    transform: translateX(-118px);
  }

  .portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-card {
    min-height: 255px;
  }
}

@media (max-width: 900px) {
  .portal-hero {
    min-height: auto;
  }

  .portal-hero-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .portal-hero-panel {
    width: min(100%, 350px);
    display: flex;
    justify-self: center;
    transform: none;
  }

  .portal-prep-body {
    grid-template-columns: 1fr;
  }

  .portal-public-grid,
  .portal-public-guide ol {
    grid-template-columns: 1fr;
  }

  .portal-public-card {
    min-height: 0;
  }

  .portal-public-guide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .portal-shell {
    width: min(100% - 20px, 1440px);
    margin: 10px auto 42px;
  }

  .portal-hero {
    padding: 18px 16px 28px;
    border-radius: 24px;
  }

  .portal-hero::before {
    display: none;
  }

  .portal-home {
    top: 18px;
    right: 18px;
    min-height: 34px;
    padding: 0 12px;
    font-size: 11px;
    transform: none;
  }

  .portal-hero-layout {
    gap: 20px;
    padding: 12px 2px 0;
  }

  .portal-brandline {
    max-width: 170px;
    margin-bottom: 26px;
    font-size: 9px;
    line-height: 1.4;
  }

  .portal-brand-mark {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    border-radius: 8px;
    font-size: 16px;
  }

  .portal-kicker {
    margin-bottom: 10px;
    font-size: 9px;
  }

  .portal-hero h1 {
    font-size: clamp(26px, 8vw, 34px);
    line-height: 1.15;
  }

  .portal-hero-copy > p {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.65;
  }

  .portal-hero-features {
    margin-top: 16px;
    padding-top: 12px;
  }

  .portal-hero-features span {
    display: grid;
    gap: 4px;
    padding-right: 5px;
    font-size: 10px;
    line-height: 1.4;
  }

  .portal-hero-features span:nth-child(2) {
    justify-items: center;
  }

  .portal-hero-features span:nth-child(3) {
    justify-items: end;
  }

  .portal-hero-features b {
    margin: 0;
    font-size: 10px;
  }

  .portal-access {
    margin: -16px 8px 28px;
  }

  .portal-login {
    grid-template-columns: 1fr;
    padding: 21px;
  }

  .portal-login-note {
    grid-column: 1;
  }

  .portal-session {
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;
    padding: 17px;
  }

  .portal-session-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .portal-session-copy {
    width: calc(100% - 58px);
    flex: 1 1 calc(100% - 58px);
  }

  .portal-session-copy small {
    font-size: 8px;
  }

  .portal-session-copy strong {
    font-size: 15px;
  }

  .portal-session-copy > span {
    font-size: 11px;
  }

  .portal-session button {
    width: 100%;
    height: 44px;
  }

  .portal-preparation,
  .portal-overview,
  .portal-public-content {
    margin-right: 4px;
    margin-left: 4px;
    border-radius: 20px;
  }

  .portal-preparation {
    margin-bottom: 24px;
    padding: 20px 17px;
  }

  .portal-prep-head {
    flex-direction: column;
    gap: 14px;
    padding-bottom: 20px;
  }

  .portal-prep-head h2 {
    font-size: 23px;
  }

  .portal-prep-head p {
    font-size: 13px;
  }

  .portal-prep-status {
    align-self: flex-start;
  }

  .portal-prep-body article {
    padding: 17px;
  }

  .portal-prep-missing {
    line-height: 1.55;
  }

  .portal-alerts {
    padding: 14px;
  }

  .portal-alerts p {
    font-size: 13px;
  }

  .portal-alerts-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .portal-alert-grid {
    grid-template-columns: 1fr;
  }

  .portal-overview {
    margin-top: 24px;
    padding: 19px 16px;
  }

  .portal-section-heading {
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 18px;
    padding-bottom: 18px;
  }

  .portal-section-heading > span {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .portal-section-heading h2 {
    font-size: 22px;
  }

  .portal-section-heading small {
    font-size: 12px;
  }

  .portal-grid,
  .portal-grid-gre {
    grid-template-columns: 1fr;
  }

  .portal-card {
    min-height: 242px;
    padding: 17px;
  }

  .portal-public-content {
    margin-bottom: 30px;
    padding: 23px 18px;
  }

  .portal-public-guide {
    padding: 19px;
  }

  .portal-footnote {
    margin-right: 15px;
    margin-left: 15px;
    line-height: 1.65;
  }
}

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