:root {
  color-scheme: light;
  --portal-ink: #17243a;
  --portal-muted: #526277;
  --portal-border: #c9d2de;
  --portal-paper: #ffffff;
  --portal-canvas: #f1f4f8;
  --portal-blue: #245fc5;
  --portal-blue-dark: #174995;
  --portal-gold: #88620f;
  --portal-red: #bf233d;
  --portal-success: #17673c;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: var(--portal-ink);
  background: var(--portal-canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--portal-canvas); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--portal-canvas); color: var(--portal-ink); }
button, input, select, textarea { font: inherit; }
a { color: var(--portal-blue-dark); text-underline-offset: 3px; }
a:hover { color: var(--portal-blue); }
::selection { background: #dbe8fb; color: #14243d; }
:focus-visible { outline: 3px solid #397ee6; outline-offset: 3px; }

.portal-shell { min-height: 100vh; }
.portal-header { position: sticky; top: 0; z-index: 100; min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 max(24px, calc((100vw - 1160px) / 2)); color: #cfddf4; background: #0d1423; border-bottom: 1px solid #293650; }
.portal-brand { flex: 0 0 auto; display: inline-flex; align-items: center; width: 200px; height: 52px; color: inherit; text-decoration: none; }
.portal-brand .navigation-logo { display: block; width: 200px; height: 52px; background-position: center; background-repeat: no-repeat; background-size: contain; }
.portal-user { display: flex; align-items: center; gap: 18px; color: #cfddf4; font-size: 13px; }
.portal-user a { color: #cfddf4; }
.portal-user a:hover { color: #fff; }
.portal-menu { display: none; color: #cfddf4; background: transparent; border: 1px solid #62708a; border-radius: 4px; min-height: 40px; padding: 0 12px; cursor: pointer; }
.portal-layout { width: min(1160px, calc(100% - 48px)); margin: 20px auto 40px; display: grid; grid-template-columns: 176px minmax(0, 1fr); align-items: start; gap: 28px; }
.portal-nav { position: sticky; top: 16px; display: flex; flex-direction: column; padding: 4px 0; }
.portal-nav-primary, .portal-nav-secondary { display: grid; gap: 5px; }
.portal-nav-secondary { margin-top: 24px; padding-top: 16px; border-top: 1px solid #dce2ea; }
.portal-nav-profile { margin-top: 24px; padding-top: 16px; border-top: 1px solid #dce2ea; }
.portal-nav a { min-height: 48px; display: flex; align-items: center; padding: 10px 13px; color: #384960; border-radius: 4px; text-decoration: none; font-size: 14px; font-weight: 550; }
.portal-nav a:hover { background: #e4ebf4; color: #163c78; }
.portal-nav a[aria-current="page"] { color: #164b9e; background: #dce8f8; box-shadow: inset 3px 0 0 var(--portal-blue); }
.portal-mobile-primary, .portal-more { display: none; }
.portal-more-menu[hidden] { display: none; }
.portal-content { min-width: 0; padding: 4px 0 28px; }
.portal-content h1, .portal-auth h1 { margin: 0 0 18px; font-size: 25px; line-height: 1.25; font-weight: 680; font-family: "Space Grotesk", Inter, "Segoe UI", system-ui, sans-serif; }
.portal-content h2 { margin: 0 0 12px; font-size: 17px; line-height: 1.3; font-weight: 650; }
.portal-content h3 { font-size: 15px; }
.portal-status-chip { display: inline-block; margin: 0 0 10px; color: #1d5c39; font-size: 12px; font-weight: 700; }
.portal-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 26px; border: 1px solid var(--portal-border); border-radius: 4px; background: var(--portal-paper); }
.portal-metrics > div { min-width: 0; padding: 12px 14px; }
.portal-metrics > div + div { border-left: 1px solid #e3e8ee; }
.portal-metrics dt, .portal-balance dt, .portal-profile dt { margin-bottom: 5px; color: var(--portal-muted); font-size: 12px; }
.portal-metrics dd { margin: 0; font-size: 20px; font-variant-numeric: tabular-nums; font-weight: 650; overflow-wrap: anywhere; }
.portal-section { margin: 0 0 26px; padding-top: 2px; }
.portal-table-wrap { max-width: 100%; overflow-x: auto; border-top: 1px solid var(--portal-border); }
.portal-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.portal-table-note { margin: -4px 0 10px; color: #667085; font-size: 12px; }
.portal-table th, .portal-table td { padding: 9px 9px; border-bottom: 1px solid #dce2ea; text-align: left; vertical-align: top; }
.portal-table th { color: var(--portal-muted); font-size: 11px; text-transform: uppercase; font-weight: 650; }
.portal-table td { overflow-wrap: anywhere; }
.portal-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.portal-pagination a, .portal-pagination > span { min-width: 36px; min-height: 36px; display: inline-flex; justify-content: center; align-items: center; padding: 0 10px; color: #384960; background: var(--portal-paper); border: 1px solid var(--portal-border); border-radius: 4px; font-size: 13px; font-weight: 600; text-decoration: none; }
.portal-pagination a:hover { color: #163c78; background: #e7eef8; border-color: #92a7c2; }
.portal-pagination [aria-current="page"] { color: #164b9e; background: #dce8f8; border-color: #9db8df; }
.portal-pagination [aria-disabled="true"] { color: #8490a0; background: #f3f5f7; }
.portal-table code, .portal-code-row code, .portal-link-row code { font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; }
.portal-empty { margin: 10px 0; color: var(--portal-muted); font-size: 14px; }
.portal-code-row, .portal-link-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.portal-link-row { flex-wrap: wrap; }
.portal-code-row { max-width: 680px; padding: 12px 0; border-block: 1px solid #dce2ea; flex-wrap: wrap; }
.portal-code-row code, .portal-link-row code { min-width: 0; flex: 1 1 220px; }
.portal-code-row span { color: var(--portal-muted); font-size: 13px; }
.portal-button { min-height: 38px; display: inline-flex; justify-content: center; align-items: center; padding: 0 14px; color: #fff; background: var(--portal-blue); border: 1px solid var(--portal-blue); border-radius: 4px; text-decoration: none; font-size: 13px; font-weight: 650; cursor: pointer; }
.portal-button:hover { color: #fff; background: var(--portal-blue-dark); border-color: var(--portal-blue-dark); }
.portal-button:disabled { opacity: .58; cursor: wait; }
.portal-button-secondary { color: #214e8e; background: transparent; border-color: #92a7c2; }
.portal-button-secondary:hover { color: #163c78; background: #e7eef8; border-color: #6f8db4; }
.portal-form { display: flex; flex-wrap: wrap; align-items: end; gap: 11px; margin: 14px 0; }
.portal-form label { min-width: min(220px, 100%); display: grid; gap: 6px; color: #33455c; font-size: 13px; font-weight: 600; }
.portal-form input, .portal-form select, .portal-form textarea { width: 100%; min-height: 38px; padding: 7px 10px; color: var(--portal-ink); background: var(--portal-paper); border: 1px solid #aab6c6; border-radius: 4px; }
.portal-form textarea { min-height: 88px; resize: vertical; }
.portal-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.portal-form-grid label { min-width: 0; }
.portal-field-wide { grid-column: 1 / -1; }
.portal-check { display: flex !important; grid-template-columns: 20px 1fr; align-items: center; }
.portal-check input { width: 18px; min-height: 18px; }
.portal-balance, .portal-profile { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.portal-balance > div, .portal-profile > div { padding: 9px 0; border-bottom: 1px solid #dce2ea; }
.portal-balance dd, .portal-profile dd { margin: 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.portal-notice { margin: 0 0 22px; padding: 12px 14px; color: #174c31; background: #e7f3eb; border: 1px solid #9fc4ac; border-radius: 4px; }
.portal-state { max-width: 760px; padding-top: 16px; border-top: 1px solid var(--portal-border); }
.portal-copy-buffer { position: fixed; inset: 0 auto auto 0; width: 1px; height: 1px; opacity: .01; }
.portal-live-region { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.portal-earnings-board { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 0; margin: 0 0 20px; overflow: hidden; background: var(--portal-paper); border: 1px solid var(--portal-border); border-radius: 6px; }
.portal-earnings { min-width: 0; padding: 24px 28px; }
.portal-earnings h2, .portal-payout-milestone h2 { margin: 0; color: var(--portal-muted); font-size: 13px; font-weight: 650; }
.portal-earnings-value { margin: 10px 0 4px; color: var(--portal-ink); font-family: "Space Grotesk", Inter, "Segoe UI", system-ui, sans-serif; font-size: 46px; line-height: 1.05; font-weight: 650; font-variant-numeric: tabular-nums; }
.portal-earnings-caption { margin: 0; color: var(--portal-muted); font-size: 13px; }
.portal-payout-milestone { align-self: stretch; display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 22px 24px; background: #f5f7fa; border-left: 1px solid #e3e8ee; }
.portal-milestone-heading, .portal-milestone-amount { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.portal-milestone-heading > span { color: var(--portal-muted); font-size: 12px; font-weight: 600; }
.portal-milestone-value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.portal-milestone-value strong { color: var(--portal-ink); font-size: 24px; font-variant-numeric: tabular-nums; }
.portal-milestone-value > span { min-width: 0; flex: 1 1 150px; color: var(--portal-muted); font-size: 12px; overflow-wrap: anywhere; }
.portal-progress-track { height: 10px; margin: 19px 0 11px; overflow: hidden; background: #dce3eb; border-radius: 10px; }
.portal-payout-milestone .portal-progress-track { height: 12px; margin: 11px 0 7px; }
.portal-progress-track > span { display: block; height: 100%; min-width: 0; background: #c29225; border-radius: inherit; transition: width 220ms ease-out; }
.portal-milestone-amount { margin: 0; flex-wrap: wrap; color: var(--portal-ink); font-size: 13px; }
.portal-milestone-amount > span { color: var(--portal-muted); font-size: 12px; }
.portal-payout-request { max-width: 720px; margin-top: 18px; padding: 16px 18px; background: #f5f7fa; border: 1px solid #dce3eb; border-radius: 4px; }
.portal-payout-request-heading, .portal-payout-request-value, .portal-payout-request-footer { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.portal-payout-request-heading h3 { margin: 0; font-size: 15px; }
.portal-payout-request-heading > span, .portal-payout-request-value > span { color: var(--portal-muted); font-size: 12px; }
.portal-payout-request-value { justify-content: flex-start; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.portal-payout-request-value strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.portal-payout-request-value > span { min-width: 0; flex: 1 1 180px; overflow-wrap: anywhere; }
.portal-payout-request .portal-progress-track { height: 10px; margin: 12px 0 10px; }
.portal-payout-request-footer { align-items: center; flex-wrap: wrap; }
.portal-payout-request-footer p { margin: 0; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.portal-payout-request-footer form { margin: 0; }
.portal-button:disabled { color: #536174; background: #dce2e9; border-color: #c8d0da; opacity: 1; cursor: not-allowed; }
.portal-payout-request-note { margin: 10px 0 0; color: var(--portal-muted); font-size: 12px; }
.portal-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.portal-section-heading h2 { margin-bottom: 4px; }
.portal-section-heading p { margin: 0 0 12px; color: var(--portal-muted); font-size: 13px; }
.portal-promo-toolkit { padding: 16px 20px 12px; background: var(--portal-paper); border: 1px solid var(--portal-border); border-radius: 6px; }
.portal-promo-toolkit .portal-code-row { max-width: none; padding: 10px 0; border-top: 1px solid #e3e8ee; }
.portal-promo-toolkit .portal-code-row code { font-size: 16px; font-weight: 700; }
.portal-promo-toolkit .portal-link-row { padding: 11px 0; border-top: 1px solid #e3e8ee; }
.portal-link-channel { flex: 0 0 130px; color: var(--portal-muted); font-size: 12px; font-weight: 600; }
.portal-promo-toolkit > .portal-empty { margin: 12px 0 4px; }
.portal-promo-toolkit .portal-code-row, .portal-promo-toolkit .portal-link-row { min-height: 54px; }
.portal-auth { width: min(1040px, calc(100% - 48px)); margin: 0 auto 64px; }
.portal-auth:not(.portal-auth-register) { width: min(480px, calc(100% - 32px)); padding-top: 28px; }
.portal-auth-header { width: 100vw; min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-inline: calc((100% - 100vw) / 2); padding-inline: max(24px, calc((100vw - 1160px) / 2)); color: #cfddf4; background: #0d1423; border-bottom: 1px solid #293650; }
.portal-auth-header > a { color: #cfddf4; font-size: 14px; text-decoration: none; }
.portal-auth-header > a:hover, .portal-auth-header strong { color: #fff; }
.portal-auth-intro { max-width: 760px; margin: 38px auto 26px; text-align: center; }
.portal-auth-intro h1 { max-width: 100%; margin: 0 auto; font-size: 32px; line-height: 1.2; font-weight: 620; white-space: nowrap; }
.portal-auth-intro > p:last-child { margin: 8px 0 0; color: var(--portal-muted); font-size: 15px; line-height: 1.5; }
.portal-auth-panel { padding: 28px 32px; background: var(--portal-paper); border: 1px solid var(--portal-border); border-radius: 6px; }
.portal-auth-panel > :is(h1, h2) { margin-bottom: 20px; }
.portal-auth-panel > h2 { margin-top: 0; font-size: 22px; line-height: 1.25; font-weight: 650; font-family: "Space Grotesk", Inter, "Segoe UI", system-ui, sans-serif; }
.portal-auth .portal-form { display: grid; }
.portal-auth .portal-form label { min-width: 0; }
.portal-auth .portal-form input, .portal-auth .portal-form select { min-height: 46px; }
.portal-auth .portal-form textarea { min-height: 104px; }
.portal-auth .portal-button { min-height: 46px; width: 100%; }
.portal-auth-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 24px; }
.portal-auth-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.portal-auth-group + .portal-auth-group { margin-top: 26px; }
.portal-auth-group legend { width: 100%; margin-bottom: 15px; padding: 0 0 10px; border-bottom: 1px solid #e1e6ed; font-family: "Space Grotesk", Inter, sans-serif; font-size: 18px; font-weight: 650; }
.portal-auth-group > label { margin: 0 0 16px; }
.portal-auth-group > label:last-child { margin-bottom: 0; }
.portal-auth-group .portal-field-wide { grid-column: 1 / -1; }
.portal-field-hint { color: var(--portal-muted); font-size: 12px; font-weight: 450; }
.portal-auth .portal-check { grid-template-columns: 20px minmax(0,1fr); justify-content: start; gap: 10px; margin-top: 22px; }
.portal-auth .portal-check input { width: 18px; min-height: 18px; }
.portal-auth .portal-field-wide.portal-button { margin-top: 2px; }
.portal-auth-foot { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid #e1e6ed; color: var(--portal-muted); font-size: 14px; }
.portal-auth-panel > a { display: inline-block; margin: 8px 0; font-size: 14px; }
.portal-auth-panel .portal-notice { margin-bottom: 20px; }
.portal-auth .support-security { min-width: 0; margin: 0; padding-top: 0; border-top: 0; }
.portal-auth .support-image-security > label { display: block; margin-bottom: 8px; font-weight: 600; }
.portal-auth .support-captcha-row { display: grid; grid-template-columns: 148px 128px; align-items: center; gap: 12px; }
.portal-auth .support-image-security [data-security-refresh] { width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.portal-auth .support-image-security img { display: block; width: 148px; max-width: 100%; height: auto; border: 1px solid var(--portal-border); border-radius: 4px; }
.portal-auth .support-image-security input { width: 100%; min-height: 46px; margin: 0; text-transform: uppercase; letter-spacing: .08em; }
.portal-auth .support-image-security p { margin: 6px 0 0; color: var(--portal-muted); font-size: 12px; }

@media (max-width: 420px) {
  .portal-auth .support-captcha-row { grid-template-columns: minmax(0, 148px) minmax(0, 1fr); gap: 8px; }
  .portal-auth .support-image-security img { width: 100%; }
}

@media (min-width: 761px) {
  .portal-layout { width: min(1320px, calc(100% - 64px)); grid-template-columns: 220px minmax(0, 1fr); align-items: start; gap: 36px; margin-top: 28px; }
  .portal-nav { align-self: start; padding: 16px 14px; background: #f7f9fc; border: 1px solid #dce2ea; border-radius: 5px; }
  .portal-nav a { min-height: 48px; padding: 11px 14px; font-size: 15px; }
  .portal-content { padding-top: 8px; }
  .portal-content h1 { margin-bottom: 24px; font-size: 28px; }
  .portal-status-chip { margin-bottom: 8px; }
  .portal-section { margin-bottom: 34px; }
  .portal-section h2 { margin-bottom: 16px; font-size: 19px; }
  .portal-table th, .portal-table td { padding: 12px 12px; }
  .portal-code-row { max-width: 900px; padding: 17px 0; }
  .portal-section-heading h2 { margin-bottom: 4px; }
  .portal-form { gap: 14px; margin: 18px 0; }
}

@media (min-width: 1200px) {
  .portal-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 44px; }
  .portal-nav { padding: 18px 16px; }
  .portal-nav a { min-height: 52px; padding: 13px 16px; font-size: 15px; }
}

@media (max-width: 760px) {
  .portal-header { min-height: 80px; padding: 0 16px; gap: 12px; }
  .portal-user { margin-left: auto; gap: 10px; font-size: 12px; }
  .portal-user span { display: none; }
  .portal-user a { white-space: nowrap; }
  .portal-layout { width: auto; margin: 0; display: block; }
  .portal-nav { position: fixed; z-index: 100; inset: auto 0 0; display: block; padding: 0 12px calc(10px + env(safe-area-inset-bottom)); background: transparent; border: 0; box-shadow: none; pointer-events: none; }
  .portal-nav-primary, .portal-nav-secondary, .portal-nav-profile { display: none; }
  .portal-mobile-primary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; padding: 4px; background: rgb(255 255 255 / .98); border: 1px solid #d7dfe9; border-radius: 8px; box-shadow: 0 8px 24px rgb(24 43 70 / .12), 0 1px 3px rgb(24 43 70 / .05); pointer-events: auto; }
  .portal-nav a { position: relative; min-width: 0; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 4px 2px; color: #68778b; border-radius: 0; text-align: center; font-size: 10px; font-weight: 520; line-height: 1.15; }
  .portal-nav a:hover { color: #2158a8; background: transparent; }
  .portal-nav a[aria-current="page"] { color: #2158a8; background: transparent; box-shadow: none; font-weight: 650; }
  .portal-nav a[aria-current="page"]::after { content: ""; position: absolute; bottom: 1px; width: 15px; height: 2px; border-radius: 2px; background: var(--portal-blue); }
  .portal-nav-icon { width: 19px; height: 19px; display: grid; place-items: center; color: currentColor; font-size: 20px; font-weight: 500; line-height: 18px; }
  .portal-nav-icon svg { display: block; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .portal-nav-label { display: block; }
  .portal-more { position: relative; display: flex; justify-content: center; pointer-events: auto; }
  .portal-more-toggle { position: relative; width: 100%; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 4px 2px; color: #68778b; background: transparent; border: 0; border-radius: 0; font-size: 10px; font-weight: 520; line-height: 1.15; cursor: pointer; }
  .portal-more-toggle:hover, .portal-more-toggle[aria-expanded="true"], .portal-more-toggle[data-current="true"] { color: #2158a8; background: transparent; }
  .portal-more-toggle[aria-expanded="true"]::after, .portal-more-toggle[data-current="true"]::after { content: ""; position: absolute; bottom: 1px; width: 15px; height: 2px; border-radius: 2px; background: var(--portal-blue); }
  .portal-more-menu { position: absolute; right: 0; bottom: calc(100% + 9px); width: min(160px, calc(100vw - 24px)); display: grid; gap: 2px; padding: 4px; background: #fff; border: 1px solid var(--portal-border); border-radius: 5px; box-shadow: 0 8px 24px rgb(24 43 70 / .16); }
  .portal-more-menu a { min-height: 40px; display: flex; flex-direction: row; align-items: center; justify-content: flex-start; padding: 8px 12px; font-size: 14px; line-height: 1.25; }
  .portal-more-menu a[aria-current="page"] { color: #164b9e; background: #dce8f8; box-shadow: none; }
  .portal-content { padding: 16px 14px calc(36px + 72px + env(safe-area-inset-bottom)); }
  .portal-content h1 { margin-bottom: 16px; font-size: 22px; }
  .portal-earnings-board { grid-template-columns: minmax(0,1fr); }
  .portal-earnings { padding: 19px 18px 16px; }
  .portal-earnings-value { margin-top: 8px; font-size: 38px; }
  .portal-payout-milestone { padding: 17px; }
  .portal-payout-milestone .portal-progress-track { height: 10px; margin: 10px 0 6px; }
  .portal-payout-request { padding: 14px; }
  .portal-milestone-value > span, .portal-payout-request-value > span { flex-basis: 100%; }
  .portal-payout-request-footer { align-items: stretch; }
  .portal-payout-request-footer form, .portal-payout-request-footer .portal-button { width: 100%; }
  .portal-promo-toolkit { padding: 14px 14px 10px; }
  .portal-section-heading { align-items: flex-start; }
  .portal-section-heading > a { flex: 0 0 auto; font-size: 12px; }
  .portal-promo-toolkit .portal-link-row { flex-wrap: wrap; gap: 8px; }
  .portal-link-channel { flex-basis: calc(100% - 54px); }
  .portal-promo-toolkit .portal-link-row code { flex-basis: calc(100% - 54px); }
  .portal-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-metrics > div { padding: 10px 11px; }
  .portal-metrics > div + div { border-left: 0; }
  .portal-metrics > div:nth-child(even) { border-left: 1px solid #e3e8ee; }
  .portal-metrics > div:nth-child(n+3) { border-top: 1px solid #e3e8ee; }
  .portal-metrics > div:last-child:nth-child(odd) { grid-column: 1 / -1; border-left: 0; }
  .portal-metrics dd { font-size: 18px; }
  .portal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .portal-table, .portal-table tbody, .portal-table tr, .portal-table td { display: block; width: 100%; }
  .portal-table tr { padding: 9px 0; border-bottom: 1px solid #dce2ea; }
  .portal-table td { display: grid; grid-template-columns: minmax(86px, 30%) minmax(0, 1fr); gap: 10px; padding: 5px 0; border: 0; }
  .portal-table td::before { content: attr(data-label); color: var(--portal-muted); font-size: 12px; font-weight: 600; }
  .portal-link-row { align-items: flex-start; }
  .portal-form { align-items: stretch; }
  .portal-form label { flex: 1 1 100%; }
  .portal-form > .portal-button { width: 100%; }
  .portal-balance, .portal-profile { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
  .portal-profile + h3 + ul { min-width: 0; padding-inline-start: 20px; }
  .portal-profile + h3 + ul a { overflow-wrap: anywhere; word-break: break-word; }
  .portal-auth { width: min(100% - 32px, 680px); margin: 0 auto 40px; }
  .portal-auth:not(.portal-auth-register) { width: calc(100% - 32px); padding-top: 0; }
.portal-auth-header { min-height: 80px; }
  .portal-auth-intro { margin: 26px auto 20px; }
  .portal-auth-intro h1 { font-size: 28px; }
  .portal-auth-panel { padding: 21px 19px; }
  .portal-auth-fields { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .portal-auth-group .portal-field-wide { grid-column: auto; }
}

@media (max-width: 380px) {
  .portal-user { display: none; }
  .portal-content { padding-inline: 11px; }
  .portal-earnings-value { font-size: 34px; }
  .portal-milestone-value strong { font-size: 21px; }
  .portal-metrics dd { font-size: 18px; }
  .portal-table td { grid-template-columns: 74px minmax(0,1fr); gap: 7px; font-size: 12px; }
  .portal-form-grid { grid-template-columns: minmax(0,1fr); }
  .portal-field-wide { grid-column: auto; }
  .portal-auth { width: calc(100% - 24px); }
  .portal-auth-header { gap: 8px; }
  .portal-auth-header > a { font-size: 12px; }
  .portal-auth-intro h1 { font-size: 23px; }
  .portal-auth-panel { padding: 18px 14px; }
}

@media (max-width: 1100px) {
  .portal-brand, .portal-brand .navigation-logo { width: 170px; height: 48px; }
}

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