:root {
  --portal-navy: #0b2c43;
  --portal-navy-deep: #061d2c;
  --portal-blue: #1f5577;
  --portal-gold: #b68a3e;
  --portal-gold-soft: #f5ecdc;
  --portal-paper: #f4f3f0;
  --portal-surface: #ffffff;
  --portal-ink: #17232c;
  --portal-muted: #67737c;
  --portal-line: #dfe3e5;
  --portal-success: #26744b;
  --portal-success-soft: #e9f5ed;
  --portal-warning: #996414;
  --portal-warning-soft: #fff4dd;
  --portal-danger: #ae3a3a;
  --portal-radius: 0.75rem;
  --portal-shadow: 0 10px 30px rgb(10 36 52 / 0.07);
}

* { box-sizing: border-box; }
html { color-scheme: light; }

body {
  margin: 0;
  color: var(--portal-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea { font: inherit; }
a { color: inherit; }
.hidden { display: none !important; }

:focus-visible {
  outline: 3px solid rgb(182 138 62 / 0.38);
  outline-offset: 2px;
}

.portal-icon { display: inline-flex; width: 18px; height: 18px; flex: 0 0 18px; }
.portal-icon svg { width: 100%; height: 100%; }

/* Access and registration */
.subscriber-auth-page { min-height: 100vh; background: var(--portal-surface); }
.subscriber-auth-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(420px, 0.88fr) minmax(560px, 1.12fr); }

.subscriber-auth-brand {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.5rem);
  background:
    radial-gradient(circle at 12% 6%, rgb(104 164 199 / 0.25), transparent 30%),
    linear-gradient(148deg, #0d344f 0%, var(--portal-navy-deep) 76%);
  color: white;
}

.subscriber-auth-brand::after {
  position: absolute;
  right: -150px;
  bottom: -150px;
  width: 470px;
  height: 470px;
  border: 1px solid rgb(255 255 255 / 0.07);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgb(255 255 255 / 0.024), 0 0 0 140px rgb(255 255 255 / 0.016);
  content: "";
}

.subscriber-auth-logo { position: relative; z-index: 1; display: inline-flex; width: fit-content; }
.subscriber-auth-logo img { display: block; width: clamp(155px, 18vw, 220px); height: auto; filter: brightness(0) invert(1); }
.subscriber-auth-message { position: relative; z-index: 1; max-width: 560px; margin: clamp(4rem, 12vh, 8rem) 0 2rem; }

.subscriber-kicker,
.portal-kicker { margin: 0 0 0.8rem; color: var(--portal-gold); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }

.subscriber-auth-message h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5.3vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.subscriber-auth-message > p:not(.subscriber-kicker) { max-width: 480px; margin: 1.35rem 0 0; color: #bed0db; font-size: 0.96rem; }
.subscriber-benefits { display: grid; gap: 0.8rem; margin: 2rem 0 0; padding: 0; color: #dce8ee; font-size: 0.82rem; list-style: none; }
.subscriber-benefits li { display: flex; align-items: center; gap: 0.65rem; }
.subscriber-benefits .portal-icon { width: 17px; height: 17px; color: #d7ad62; }
.subscriber-auth-foot { position: relative; z-index: 1; margin: 2.5rem 0 0; color: #829dab; font-size: 0.65rem; font-weight: 750; letter-spacing: 0.13em; text-transform: uppercase; }

.subscriber-auth-form-panel { display: grid; min-height: 100vh; place-items: center; padding: clamp(2rem, 6vw, 6rem); background: #fbfcfc; }
.subscriber-auth-form-wrap { width: 100%; max-width: 470px; }
.auth-back-link { display: inline-flex; align-items: center; gap: 0.45rem; margin-bottom: 2.5rem; color: var(--portal-muted); font-size: 0.76rem; font-weight: 650; text-decoration: none; }
.auth-back-link:hover { color: var(--portal-blue); }
.auth-heading .subscriber-kicker { margin-bottom: 0.65rem; }

.auth-heading h2 {
  margin: 0;
  color: var(--portal-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.auth-heading > p:not(.subscriber-kicker) { margin: 0.8rem 0 2rem; color: var(--portal-muted); font-size: 0.9rem; }
.auth-form { margin-top: 2rem; }
.auth-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.auth-field { margin-bottom: 1.15rem; }
.auth-form-grid .auth-field { margin-bottom: 0; }
.auth-span-full { grid-column: 1 / -1; }
.auth-field label { display: block; margin-bottom: 0.45rem; color: #293741; font-size: 0.77rem; font-weight: 720; }
.auth-field-note { color: #89949b; font-size: 0.68rem; font-weight: 500; }

.auth-field input,
.portal-field input {
  width: 100%;
  min-height: 49px;
  padding: 0.72rem 0.88rem;
  border: 1px solid #cbd4d9;
  border-radius: 0.5rem;
  background: white;
  color: var(--portal-ink);
  font-size: 0.88rem;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.auth-field input:hover,
.portal-field input:hover { border-color: #aeb9c0; }

.auth-field input:focus,
.portal-field input:focus { border-color: var(--portal-blue); outline: 0; box-shadow: 0 0 0 3px rgb(31 85 119 / 0.12); }
.auth-field input::placeholder,
.portal-field input::placeholder { color: #9ba4aa; }

.auth-submit,
.portal-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.68rem 1rem;
  border: 1px solid var(--portal-blue);
  border-radius: 0.5rem;
  background: var(--portal-blue);
  color: white;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.auth-submit { width: 100%; justify-content: space-between; margin-top: 0.65rem; padding-inline: 1.1rem; }
.auth-submit:hover,
.portal-button:hover { border-color: var(--portal-navy); background: var(--portal-navy); box-shadow: 0 8px 20px rgb(11 44 67 / 0.14); }
.auth-submit:disabled,
.portal-button:disabled { cursor: not-allowed; opacity: 0.62; box-shadow: none; }
.portal-button-secondary { border-color: var(--portal-line); background: white; color: var(--portal-ink); }
.portal-button-secondary:hover { border-color: #bac5cb; background: #f7f9f9; color: var(--portal-navy); box-shadow: none; }
.portal-button-danger { border-color: #edcccc; background: #fff7f7; color: var(--portal-danger); }
.portal-button-danger:hover { border-color: #dfb4b4; background: #fceaea; color: #952e2e; box-shadow: none; }
.portal-button .portal-icon,
.auth-submit .portal-icon { width: 17px; height: 17px; }

.auth-spinner { display: none; width: 17px; height: 17px; border: 2px solid rgb(255 255 255 / 0.35); border-top-color: white; border-radius: 50%; animation: portal-spin 0.75s linear infinite; }
.auth-submit.loading .auth-spinner { display: block; }
.auth-submit.loading .portal-icon { display: none; }
.auth-footer { margin: 1.55rem 0 0; color: var(--portal-muted); font-size: 0.78rem; text-align: center; }
.auth-footer a { color: var(--portal-blue); font-weight: 750; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.portal-error { margin: 0 0 1.25rem; padding: 0.85rem 1rem; border: 1px solid #edc8c8; border-left: 3px solid var(--portal-danger); border-radius: 0.5rem; background: #fff5f5; color: #902f2f; font-size: 0.8rem; font-weight: 620; }

/* Authenticated subscriber portal */
.subscriber-portal-page { min-height: 100vh; background: var(--portal-paper); }
.portal-skip-link { position: fixed; top: 0.75rem; left: 0.75rem; z-index: 1000; transform: translateY(-180%); padding: 0.65rem 1rem; border-radius: 0.5rem; background: white; color: var(--portal-navy); font-weight: 700; box-shadow: var(--portal-shadow); }
.portal-skip-link:focus { transform: translateY(0); }
.portal-nav-toggle { position: fixed; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.subscriber-header { position: sticky; top: 0; z-index: 70; min-height: 74px; border-bottom: 1px solid var(--portal-line); background: rgb(255 255 255 / 0.95); backdrop-filter: blur(12px); }
.subscriber-header-inner { display: flex; width: min(1240px, calc(100% - 2rem)); min-height: 74px; align-items: center; justify-content: space-between; gap: 1.5rem; margin: 0 auto; }
.subscriber-header-leading { display: flex; min-width: 0; align-items: center; gap: 0.9rem; }
.subscriber-logo { display: inline-flex; }
.subscriber-logo img { display: block; width: 136px; height: auto; }
.subscriber-area-label { padding-left: 0.9rem; border-left: 1px solid var(--portal-line); color: var(--portal-muted); font-size: 0.67rem; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; white-space: nowrap; }
.subscriber-read-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--portal-blue); font-size: 0.76rem; font-weight: 720; text-decoration: none; }
.subscriber-read-link:hover { color: var(--portal-navy); }
.subscriber-read-link .portal-icon { width: 15px; height: 15px; }
.portal-menu-trigger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--portal-line); border-radius: 0.5rem; background: white; color: var(--portal-navy); cursor: pointer; }
.portal-menu-trigger svg,
.portal-menu-close svg { width: 19px; height: 19px; }

.subscriber-layout { display: grid; width: min(1240px, calc(100% - 2rem)); min-height: calc(100vh - 74px); grid-template-columns: 238px minmax(0, 1fr); gap: clamp(2rem, 4vw, 4.5rem); margin: 0 auto; }
.subscriber-sidebar { position: sticky; top: 74px; display: flex; height: calc(100vh - 74px); flex-direction: column; padding: 2.1rem 0 1.5rem; }
.subscriber-sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 0 0.75rem 1rem; }
.subscriber-sidebar-head p { margin: 0; color: var(--portal-muted); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.portal-menu-close { display: none; width: 38px; height: 38px; align-items: center; justify-content: center; color: white; cursor: pointer; }
.subscriber-nav { display: grid; gap: 0.35rem; }

.subscriber-nav a { display: flex; min-height: 62px; align-items: center; gap: 0.8rem; padding: 0.65rem 0.75rem; border: 1px solid transparent; border-radius: 0.65rem; color: #52616b; text-decoration: none; transition: background 150ms ease, border-color 150ms ease, color 150ms ease; }
.subscriber-nav a:hover { border-color: #dce2e5; background: rgb(255 255 255 / 0.62); color: var(--portal-navy); }
.subscriber-nav a.active { border-color: #d5dee3; background: white; color: var(--portal-navy); box-shadow: 0 4px 16px rgb(10 36 52 / 0.045); }
.subscriber-nav a > .portal-icon { width: 19px; height: 19px; }
.subscriber-nav a span:last-child { display: flex; min-width: 0; flex-direction: column; }
.subscriber-nav strong { font-size: 0.78rem; font-weight: 750; }
.subscriber-nav small { margin-top: 0.05rem; color: #8b969d; font-size: 0.65rem; }
.subscriber-sidebar-support { display: flex; align-items: flex-start; gap: 0.75rem; margin-top: auto; padding: 1rem 0.75rem; border-top: 1px solid var(--portal-line); color: var(--portal-muted); }
.subscriber-sidebar-support > .portal-icon { color: var(--portal-success); }
.subscriber-sidebar-support strong { display: block; color: #42515b; font-size: 0.7rem; }
.subscriber-sidebar-support p { margin: 0.15rem 0 0; font-size: 0.64rem; }
.portal-overlay { display: none; }

.subscriber-main { min-width: 0; padding: clamp(2.5rem, 5vw, 4.5rem) 0 5rem; }
.portal-page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.portal-title { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.15rem); font-weight: 700; letter-spacing: -0.055em; line-height: 1.02; }
.portal-description { max-width: 660px; margin: 0.65rem 0 0; color: var(--portal-muted); font-size: 0.9rem; }

.portal-loading { display: grid; min-height: 300px; place-items: center; color: var(--portal-muted); text-align: center; }
.portal-loading-spinner { width: 32px; height: 32px; margin: 0 auto 1rem; border: 3px solid #d9e0e3; border-top-color: var(--portal-blue); border-radius: 50%; animation: portal-spin 0.75s linear infinite; }
@keyframes portal-spin { to { transform: rotate(360deg); } }

.portal-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr); gap: 1.25rem; align-items: start; }
.portal-stack { display: grid; gap: 1.25rem; }
.portal-card { padding: 1.4rem; border: 1px solid var(--portal-line); border-radius: var(--portal-radius); background: white; box-shadow: 0 1px 2px rgb(10 36 52 / 0.03); }
.portal-card-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.portal-card-title { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; letter-spacing: -0.025em; }
.portal-card-description { margin: 0.25rem 0 0; color: var(--portal-muted); font-size: 0.76rem; }

.subscription-hero { position: relative; min-height: 245px; overflow: hidden; padding: clamp(1.5rem, 3vw, 2.1rem); border: 0; background: linear-gradient(140deg, #0e3a58 0%, var(--portal-navy-deep) 86%); color: white; box-shadow: 0 18px 38px rgb(6 29 44 / 0.13); }
.subscription-hero::after { position: absolute; right: -90px; bottom: -150px; width: 330px; height: 330px; border: 1px solid rgb(255 255 255 / 0.08); border-radius: 50%; box-shadow: 0 0 0 50px rgb(255 255 255 / 0.025); content: ""; }
.subscription-hero .portal-card-header { position: relative; z-index: 1; }
.subscription-hero .portal-card-title { color: #c1d3de; font-family: Inter, sans-serif; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.subscription-plan { position: relative; z-index: 1; margin: 2rem 0 0.45rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.045em; line-height: 1; }
.subscription-validity { position: relative; z-index: 1; margin: 0; color: #aec4d1; font-size: 0.78rem; }
.subscription-access { position: absolute; right: 2rem; bottom: 1.75rem; z-index: 1; display: inline-flex; max-width: 260px; align-items: center; gap: 0.5rem; color: #dbe9ef; font-size: 0.74rem; }
.subscription-access .portal-icon { color: #d7ad62; }

.status-pill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.28rem 0.62rem; border-radius: 999px; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.status-pill::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.status-active { background: rgb(223 244 231 / 0.13); color: #92d9ad; }
.status-past_due { background: rgb(255 230 179 / 0.14); color: #f0c575; }
.status-canceled,
.status-none { background: rgb(255 255 255 / 0.1); color: #c5d2d9; }

.portal-notice { padding: 1.2rem; border: 1px solid #ead5ad; border-left: 3px solid var(--portal-warning); border-radius: var(--portal-radius); background: var(--portal-warning-soft); color: #785016; }
.portal-notice-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.45rem; }
.portal-notice h3 { margin: 0; font-size: 0.82rem; }
.portal-notice p { margin: 0 0 1rem; font-size: 0.75rem; }
.portal-notice .portal-button { width: 100%; border-color: var(--portal-warning); background: var(--portal-warning); }
.portal-notice .portal-button:hover { background: #7f520f; }

.portal-table-wrap { max-width: 100%; overflow-x: auto; }
.portal-table { width: 100%; border-collapse: collapse; }
.portal-table th { padding: 0.72rem 0.75rem; border-bottom: 1px solid var(--portal-line); background: #f6f8f8; color: #68747c; font-size: 0.63rem; font-weight: 800; letter-spacing: 0.07em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.portal-table td { padding: 0.85rem 0.75rem; border-bottom: 1px solid #e8ecee; color: #34434d; font-size: 0.76rem; }
.portal-table tr:last-child td { border-bottom: 0; }
.invoice-status { font-size: 0.68rem; font-weight: 750; }
.invoice-status.paid { color: var(--portal-success); }
.invoice-status.pending { color: var(--portal-warning); }
.invoice-action { color: var(--portal-blue); font-size: 0.7rem; font-weight: 750; text-decoration: none; }
.invoice-action:hover { text-decoration: underline; text-underline-offset: 3px; }
.portal-empty-cell { padding: 2.5rem 1rem !important; color: #8b969d !important; text-align: center; }

.manage-copy { margin: 0 0 1rem; color: var(--portal-muted); font-size: 0.78rem; }
.plan-selector { display: grid; gap: 0.65rem; }
.plan-option { width: 100%; padding: 1rem; border: 1px solid var(--portal-line); border-radius: 0.6rem; background: white; color: var(--portal-ink); cursor: pointer; text-align: left; transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease; }
.plan-option:hover { border-color: #a9bac4; background: #fbfcfc; box-shadow: 0 6px 18px rgb(10 36 52 / 0.06); }
.plan-option-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.plan-option-name { color: var(--portal-blue); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.plan-option-note { color: #859098; font-size: 0.65rem; }
.plan-option-saving { padding: 0.2rem 0.45rem; border-radius: 999px; background: var(--portal-success-soft); color: var(--portal-success); font-size: 0.58rem; font-weight: 800; text-transform: uppercase; }
.plan-option-price { margin-top: 0.55rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.03em; }
.plan-option-price small { color: var(--portal-muted); font-family: Inter, sans-serif; font-size: 0.68rem; font-weight: 500; }

/* Account */
.portal-account-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(270px, 0.65fr); gap: 1.25rem; align-items: start; }
.portal-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.portal-field { margin-bottom: 1.15rem; }
.portal-form-grid .portal-field { margin-bottom: 0; }
.portal-field-full { grid-column: 1 / -1; }
.portal-field label { display: block; margin-bottom: 0.45rem; color: #2b3942; font-size: 0.76rem; font-weight: 720; }
.portal-field input:disabled { border-color: #dde2e5; background: #f3f5f6; color: #7f8b93; cursor: not-allowed; }
.portal-field-help { margin: 0.4rem 0 0; color: #8b969d; font-size: 0.65rem; }
.portal-form-actions { display: flex; justify-content: flex-end; margin-top: 1.4rem; }
.portal-form-actions .portal-button { min-width: 170px; }
.portal-success { display: none; align-items: center; gap: 0.55rem; margin-top: 1rem; padding: 0.75rem 0.9rem; border: 1px solid #cce5d5; border-radius: 0.5rem; background: var(--portal-success-soft); color: #21633f; font-size: 0.75rem; font-weight: 650; }
.portal-success .portal-icon { width: 16px; height: 16px; }
.security-card { background: #f9faf9; }
.security-seal { display: grid; width: 42px; height: 42px; margin-bottom: 1rem; place-items: center; border-radius: 50%; background: var(--portal-success-soft); color: var(--portal-success); }
.security-seal .portal-icon { width: 20px; height: 20px; }
.security-card h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; letter-spacing: -0.02em; }
.security-card p { margin: 0.55rem 0 1.25rem; color: var(--portal-muted); font-size: 0.75rem; }
.security-card .portal-button { width: 100%; }

@media (max-width: 980px) {
  .subscriber-auth-shell { grid-template-columns: minmax(340px, 0.75fr) minmax(480px, 1.25fr); }
  .subscriber-layout { gap: 2rem; grid-template-columns: 210px minmax(0, 1fr); }
  .portal-dashboard-grid,
  .portal-account-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .subscriber-auth-shell { grid-template-columns: 1fr; }
  .subscriber-auth-brand { min-height: 300px; padding: 2rem; }
  .subscriber-auth-logo img { width: 145px; }
  .subscriber-auth-message { margin: 4rem 0 0; }
  .subscriber-auth-message h1 { max-width: 500px; font-size: clamp(2.25rem, 9vw, 3.5rem); }
  .subscriber-auth-message > p:not(.subscriber-kicker),
  .subscriber-benefits,
  .subscriber-auth-foot { display: none; }
  .subscriber-auth-form-panel { min-height: auto; padding: 3.5rem 1.5rem; }

  .subscriber-header-inner,
  .subscriber-layout { width: min(100% - 1.5rem, 1240px); }
  .portal-menu-trigger { display: inline-flex; }
  .subscriber-area-label { display: none; }
  .subscriber-read-link { font-size: 0; }
  .subscriber-read-link .portal-icon { width: 19px; height: 19px; }
  .subscriber-layout { display: block; }
  .subscriber-sidebar { position: fixed; top: 0; left: 0; z-index: 90; width: min(290px, 86vw); height: 100vh; padding: 1.25rem 1rem; transform: translateX(-105%); background: var(--portal-navy-deep); color: white; box-shadow: 22px 0 60px rgb(4 18 28 / 0.25); transition: transform 220ms ease; }
  .portal-nav-toggle:checked ~ .subscriber-layout .subscriber-sidebar { transform: translateX(0); }
  .subscriber-sidebar-head { padding: 0.25rem 0.5rem 1rem; border-bottom: 1px solid rgb(255 255 255 / 0.1); }
  .subscriber-sidebar-head p { color: #9db2bf; }
  .portal-menu-close { display: inline-flex; }
  .subscriber-nav { margin-top: 0.75rem; }
  .subscriber-nav a { color: #bdcdd6; }
  .subscriber-nav a:hover,
  .subscriber-nav a.active { border-color: rgb(255 255 255 / 0.1); background: rgb(255 255 255 / 0.08); color: white; box-shadow: none; }
  .subscriber-nav small { color: #829ba9; }
  .subscriber-sidebar-support { border-color: rgb(255 255 255 / 0.1); color: #8fa5b2; }
  .subscriber-sidebar-support strong { color: #c4d2da; }
  .portal-overlay { position: fixed; inset: 0; z-index: 80; display: block; visibility: hidden; background: rgb(4 18 28 / 0.48); cursor: pointer; opacity: 0; transition: opacity 200ms ease, visibility 200ms ease; }
  .portal-nav-toggle:checked ~ .portal-overlay { visibility: visible; opacity: 1; }
  .subscriber-main { padding: 2.2rem 0 4rem; }
}

@media (max-width: 560px) {
  .subscriber-auth-brand { min-height: 245px; padding: 1.5rem; }
  .subscriber-auth-logo img { width: 120px; }
  .subscriber-auth-message { margin-top: 3rem; }
  .subscriber-auth-message h1 { font-size: 2.1rem; }
  .subscriber-auth-form-panel { padding: 2.75rem 1.15rem; }
  .auth-back-link { margin-bottom: 2rem; }
  .auth-form-grid,
  .portal-form-grid { grid-template-columns: 1fr; }
  .auth-span-full,
  .portal-field-full { grid-column: auto; }

  .subscriber-header,
  .subscriber-header-inner { min-height: 66px; }
  .subscriber-logo img { width: 112px; }
  .portal-page-intro { align-items: stretch; flex-direction: column; }
  .portal-title { font-size: 2.15rem; }
  .subscription-hero { min-height: 285px; }
  .subscription-access { right: 1.5rem; bottom: 1.5rem; left: 1.5rem; }
  .portal-card { padding: 1.1rem; }
  .portal-form-actions .portal-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
