@font-face { font-family: Syne; src: url('/assets/fonts/syne-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Syne; src: url('/assets/fonts/syne-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Syne; src: url('/assets/fonts/syne-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Bringbold; src: url('/assets/fonts/BringboldNineties.woff2') format('woff2'); font-weight: 400; font-display: swap; }
:root {
  --ink: #363738;
  --blue: #4c91ed;
  --action-blue: #246ac7;
  --lime: #e8fd88;
  --muted: #575b64;
  --glass: rgb(255 255 255 / 58%);
  --glass-pill: rgb(255 255 255 / 70%);
  --shadow: 0 24px 56px rgb(0 0 0 / 16%);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  font-family: Syne, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-variant-numeric: lining-nums;
  font-feature-settings: 'lnum' 1;
  color: var(--ink);
  background: #cfe3f5;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 280px; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; }
button, input, textarea, select {
  font: inherit;
  font-variant-numeric: lining-nums;
  font-feature-settings: 'lnum' 1;
  line-height: 1.5;
  color: inherit;
}
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #1752a2;
  outline-offset: 4px;
}
h1, h2, p { margin: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip { position: fixed; top: -100px; left: 20px; z-index: 10; padding: 10px 18px; border-radius: 20px; background: white; }
.skip:focus { top: 12px; }

/* Supplied Northern Exposure artwork stays behind every portal state. */
.portal-background {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: #cfe3f5 url('/assets/portal/backgrounds/northern-exposure-1920x1080-poster.jpg') center / cover no-repeat;
}
.portal-background video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; opacity: 0; transition: opacity .5s ease; }
.portal-background video.is-playing { opacity: 1; }
.portal-background video::-webkit-media-controls,
.portal-background video::-webkit-media-controls-start-playback-button { display: none !important; }
.portal-page { min-height: 100svh; }
.portal-shell { display: flex; flex-direction: column; min-height: 100svh; padding: 30px 30px 20px; gap: 20px; }
.portal-header, .portal-footer {
  position: relative; z-index: 2; width: 100%;
  background: var(--glass-pill); border-radius: 90px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.portal-header { min-height: 60px; padding: 10px 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.wordmark img { width: 193px; height: auto; }
.portal-header nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px 24px; }
.portal-header nav a { text-decoration: none; }
.portal-header nav a { display: inline-flex; align-items: center; min-height: 28px; }
.portal-header nav a, .portal-header .text-button { font-size: 14px; line-height: 20px; font-weight: 600; }
.header-title { font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.portal-stage {
  position: relative; z-index: 2; flex: 1; width: 100%; min-width: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 30px 0 40px;
}
.portal-card {
  width: 480px; max-width: 100%; min-width: 0; padding: 36px 44px;
  display: flex; flex-direction: column; align-items: stretch; gap: 20px;
  border-radius: 28px; background: var(--glass); box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.1); -webkit-backdrop-filter: blur(18px) saturate(1.1);
  text-align: center;
}
.portal-card--medium { width: 600px; }
.portal-card--wide { width: 750px; padding: 36px 50px; }
.portal-card--admin { width: 1080px; padding: 36px; }
.card-mascot { width: 83px; height: auto; align-self: center; }
.view-status .card-mascot { width: 97px; }
.auth-heading, .intro, .admin-heading { display: flex; flex-direction: column; gap: 16px; }
.auth-heading h1, .intro h1, .admin-heading h1, .welcome-view h1 {
  font-family: Bringbold, Syne, sans-serif; font-size: 46px; line-height: 1.08;
  font-weight: 400; text-wrap: balance; overflow-wrap: anywhere;
}
.welcome-view, .signin-view { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
.welcome-view[hidden], .signin-view[hidden] { display: none; }
.welcome-option { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 20px; border-radius: 22px; background: rgb(255 255 255 / 50%); }
.welcome-option p { font-weight: 700; font-size: 17px; line-height: 22px; }
.welcome-view h1:focus, .signin-view h1:focus { outline: none; }
.intro p, .auth-heading p, .admin-heading p { font-size: 17px; line-height: 26px; overflow-wrap: anywhere; }
.small, .intro .small { font-size: 13px; line-height: 20px; }
.panel, .auth-panel { width: 100%; min-width: 0; }
.auth-panel { display: flex; flex-direction: column; gap: 16px; }
.auth-panel form, .panel form { display: flex; flex-direction: column; gap: 14px; }
.panel form + form { margin-top: 18px; }
.auth-panel form + form { margin-top: 0; }
.auth-panel > form, .auth-panel > .provider-list { width: 100%; }
.provider-list { display: flex; flex-direction: column; gap: 12px; }
.provider-list form { width: 100%; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 22px; border: 1.5px solid transparent; border-radius: 999px;
  background: white; color: var(--ink); font-size: 16px; line-height: 21px; font-weight: 700;
  text-decoration: none; text-align: center; transition: background-color .2s ease, transform .2s var(--ease);
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: scale(.985); }
.primary { background: var(--action-blue); color: white; }
.primary:hover { background: #1c5daf; }
.view-login .primary { background: var(--blue); }
.view-login .primary:hover { background: #3f84e3; }
.lime { background: var(--lime); color: var(--ink); }
.lime:hover { background: #effea6; }
.quiet { background: rgb(255 255 255 / 70%); border-color: rgb(54 55 56 / 25%); }
.quiet:hover { background: white; }
.provider { background: white; border-color: rgb(54 55 56 / 20%); }
.provider:hover { background: #f7faff; border-color: rgb(54 55 56 / 45%); }
.provider-apple { background: var(--ink); color: white; border-color: var(--ink); }
.provider-apple:hover { background: #222324; border-color: #222324; }
.provider-icon { width: 20px; height: 20px; flex: 0 0 20px; }
.auth-panel .button, .panel form > .button { width: 100%; }
.button span { min-width: 0; }
button:disabled { cursor: wait; transform: none; }
button.is-loading { position: relative; color: transparent; }
button.is-loading > * { visibility: hidden; }
button.is-loading::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border: 2px solid var(--ink); border-right-color: transparent; border-radius: 50%;
  animation: button-spin .8s linear infinite;
}
button.is-loading.primary::after, button.is-loading.provider-apple::after { border-color: white; border-right-color: transparent; }
@keyframes button-spin { to { transform: rotate(360deg); } }
.text-button { border: 0; padding: 8px 0; background: none; text-decoration: underline; }
.cancel-action { align-self: center; color: #4b5058; font-size: 14px; line-height: 21px; }
.auth-divider { display: flex; align-items: center; gap: 12px; font-size: 13px; line-height: 19px; color: #555b64; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: rgb(54 55 56 / 20%); }
label { display: block; text-align: left; font-size: 14px; line-height: 21px; font-weight: 600; }
label > span:not(.visually-hidden) { font-weight: 400; font-size: 13px; line-height: 20px; }
input, textarea {
  display: block; width: 100%; min-height: 50px; margin-top: 7px; padding: 14px 20px;
  border: 1px solid transparent; border-radius: 999px; background: rgb(255 255 255 / 62%);
  font-size: 16px; line-height: 22px; font-weight: 400; transition: background-color .2s ease;
}
input::placeholder, textarea::placeholder { color: #5b6068; opacity: 1; }
input:hover, textarea:hover { background: rgb(255 255 255 / 78%); }
input:focus, textarea:focus { background: white; }
input:not(:placeholder-shown), textarea:not(:placeholder-shown) { background: rgb(255 255 255 / 88%); }
.auth-field input { margin-top: 0; }
input[type='hidden'], input[hidden] { display: none; }
textarea { border-radius: 18px; resize: vertical; min-height: 130px; }
.password-field { display: grid; gap: 8px; }
.password-hint { color: #4e5661; text-align: left; }
.auth-back, .forgot-link, .auth-switch a, .admin-heading > a { color: #1859ad; font-weight: 600; text-decoration: underline; }
.forgot-link { align-self: flex-end; font-size: 14px; line-height: 21px; }
.auth-back { font-size: 14px; line-height: 21px; align-self: center; }
.auth-switch { font-size: 14px; line-height: 22px; }
.auth-notice { padding: 12px 16px; border-radius: 14px; background: rgb(255 255 255 / 80%); text-align: left; font-size: 14px; line-height: 21px; }
/* Reference sign-in dimensions; the welcome screen keeps its own spacing. */
.view-login:has(.signin-view:not([hidden])) .portal-shell { gap: 16px; }
.view-login:has(.signin-view:not([hidden])) .portal-header { padding: 0 50px; }
.view-login:has(.signin-view:not([hidden])) .portal-stage { min-height: 0; padding: 0; }
.portal-card:has(.signin-view:not([hidden])) { padding: 44px; gap: 12px; }
.portal-card:has(.signin-view:not([hidden])) > .card-mascot { width: 93px; }
.signin-view, .signin-view .auth-panel, .signin-view form { gap: 12px; }
.signin-view h1 { font-size: 50px; line-height: 1.02; }
.signin-view .provider { min-height: 50px; padding: 0 28px; }
.signin-view .primary { min-height: 53px; padding: 0 28px; }
.signin-view input { min-height: 48px; height: 48px; padding: 0 22px; font-size: 15px; line-height: 20px; }
.signin-view .auth-divider { font-size: 13px; line-height: 16px; }
.signin-view .forgot-link, .signin-view .auth-switch { font-size: 14px; line-height: 18px; }
.view-login:has(.signin-view:not([hidden])) .portal-footer { padding: 7px 50px; font-size: 10px; line-height: 12px; }
.view-signup .portal-shell { gap: 16px; }
.view-signup .portal-stage { min-height: 0; padding: 0; }
.view-signup .portal-card { padding: 36px 44px; gap: 12px; }
.signup-heading { display: flex; align-items: center; align-self: center; gap: 20px; text-align: left; }
.signup-heading .card-mascot { width: 89px; flex: 0 0 auto; }
.signup-heading .auth-heading { min-width: 0; gap: 12px; }
.signup-heading h1 { font-size: 36px; line-height: 31px; text-wrap: initial; }
.signup-heading .auth-heading p { font-size: 15px; line-height: 20px; }
.view-signup .signup-panel { gap: 12px; }
.signup-details, .signup-email { display: flex; flex-direction: column; gap: 10px; }
.signup-details { margin-bottom: 10px; }
.signup-panel input { min-height: 38px; height: 38px; padding: 8px 22px; font-size: 15px; line-height: 20px; }
.signup-details textarea { margin-top: 0; min-height: 115px; height: 115px; padding: 10px 22px; border-radius: 15px; }
.signup-panel > form, .signup-panel .provider-list { gap: 10px; }
.signup-panel .provider, .signup-panel .primary { min-height: 40px; padding: 0 28px; }
.signup-panel .auth-divider { font-size: 14px; line-height: 21px; }
.signup-panel .password-hint { text-align: center; opacity: .6; }
.signup-panel .auth-back { margin-top: -2px; color: #1859ad; font-weight: 600; font-size: 14px; line-height: 20px; }
.feedback { color: #9b2424; font-size: 14px; line-height: 21px; text-align: left; overflow-wrap: anywhere; background: rgb(255 255 255 / 84%); padding: 12px 16px; border-radius: 14px; }
.feedback:empty { display: none; }
.view-submit-request .portal-stage { align-content: center; }
.view-submit-request .portal-header, .view-submit-request .portal-footer { animation: none; }
.request-progress { display: flex; flex-direction: column; align-items: center; gap: 16px; width: min(100%, 460px); text-align: center; }
.request-progress form:has([hidden]), .request-progress [hidden] { display: none; }
.request-spinner {
  display: block; width: 44px; height: 44px; border: 4px solid rgb(255 255 255 / 80%);
  border-top-color: var(--action-blue); border-radius: 50%;
  filter: drop-shadow(0 2px 6px rgb(0 0 0 / 15%)); animation: request-spin .8s linear infinite;
}
@keyframes request-spin { to { transform: rotate(360deg); } }
.status { display: inline-flex; align-items: center; align-self: center; width: fit-content; border-radius: 999px; padding: 6px 12px; background: var(--lime); font-size: 12px; line-height: 18px; font-weight: 600; text-transform: capitalize; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.intro .actions { margin-top: 8px; }
.intro > .button { align-self: center; }
.view-status .portal-card { padding-block: 44px; }
.view-status .intro p { max-width: 54ch; margin-inline: auto; }
.admin-layout { padding-block: 20px; }
.admin-heading { align-items: center; }
.admin-heading h1 { font-size: 42px; line-height: 48px; }
.admin-heading > a { font-size: 14px; line-height: 21px; }
.request-list { display: grid; gap: 16px; }
.request-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; text-align: left; padding: 24px; border-radius: 20px; background: rgb(255 255 255 / 72%); }
.request-person, .request-note { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.request-row h2 { font-size: 22px; line-height: 29px; font-weight: 600; }
.request-row a, .request-row p { overflow-wrap: anywhere; font-size: 15px; line-height: 23px; }
.request-row .small { font-size: 12px; line-height: 18px; }
.request-note .status { align-self: flex-start; }
.request-note > p { white-space: pre-wrap; }
.request-row .actions { justify-content: flex-start; margin-top: 4px; }
.request-row .button { min-height: 44px; padding: 10px 18px; font-size: 14px; line-height: 20px; }
.empty { padding: 28px 20px; border-radius: 20px; background: rgb(255 255 255 / 62%); }
.empty h2 { font-size: 24px; line-height: 31px; margin-bottom: 10px; }
.empty p { font-size: 15px; line-height: 23px; }
.portal-footer { display: flex; align-items: center; justify-content: space-between; padding: 10px 38px; gap: 16px; font-size: 11px; line-height: 15px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; }
.footer-links a { color: #1859ad; font-weight: 700; }

/* Match the reference's entrance sequence: chrome, card, then its contents. */
.portal-header { animation: reveal-down .85s var(--ease) .05s both; }
.portal-footer { animation: reveal-up .85s var(--ease) .5s both; }
.portal-card { animation: reveal-pop .7s cubic-bezier(.2, 1.2, .3, 1) .1s both; }
.card-mascot { animation: reveal-pop .75s var(--ease-pop) .25s both; }
.auth-heading,
.intro > h1,
.admin-heading > h1,
.welcome-view > h1 { animation: reveal-up .85s var(--ease) .33s both; }
.intro > p,
.admin-heading > p { animation: reveal-up .85s var(--ease) .4s both; }
.intro > p + p { animation-delay: .46s; }
.provider-list { animation: reveal-up .85s var(--ease) .42s both; }
.signup-details { animation: reveal-up .85s var(--ease) .46s both; }
.signup-panel .provider-list { animation-delay: .52s; }
.signup-email { animation: reveal-up .85s var(--ease) .6s both; }
.auth-divider { animation: reveal-fade .6s ease-out .5s both; }
.auth-panel > form { animation: reveal-up .85s var(--ease) .55s both; }
.panel:not(.auth-panel) > form { animation: reveal-up .85s var(--ease) .46s both; }
.panel:not(.auth-panel) > form + form { animation-delay: .55s; }
.auth-switch,
.auth-back,
.admin-heading > a,
.intro > .actions,
.intro > .button { animation: reveal-fade .6s ease-out .62s both; }
.welcome-view > h1 { animation-delay: .38s; }
.welcome-option { animation: reveal-up .85s var(--ease) .48s both; }
.welcome-option + .welcome-option { animation-delay: .56s; }
.request-row, .empty { animation: reveal-up .85s var(--ease) .46s both; }
.request-row:nth-child(2) { animation-delay: .54s; }
.request-row:nth-child(3) { animation-delay: .62s; }
.request-row:nth-child(n+4), .request-list > .button { animation: reveal-up .85s var(--ease) .7s both; }
.view-status .card-mascot[src$='mascot-reviewing.svg'] {
  animation: reveal-pop .75s var(--ease-pop) .3s both, mascot-wiggle 1.2s ease-in-out 1s;
}
.portal-card.is-switching-out { animation: view-out .22s ease-in both; pointer-events: none; }
.portal-card.is-resetting, .portal-card.is-resetting * { animation: none !important; }
[data-motion='still'] .portal-shell * { animation: none !important; }
@keyframes reveal-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes reveal-down { from { opacity: 0; transform: translateY(-26px); } to { opacity: 1; transform: none; } }
@keyframes reveal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes reveal-pop { from { opacity: 0; transform: scale(.6); } 70% { opacity: 1; } to { opacity: 1; transform: scale(1); } }
@keyframes view-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes mascot-wiggle {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(7deg); }
  60% { transform: rotate(-4deg); }
  80% { transform: rotate(3deg); }
}
@media (min-width: 721px) {
  .view-signup .portal-footer { padding-block: 7px; }
}
@media (max-width: 720px) {
  .portal-shell { padding: max(15px, env(safe-area-inset-top)) 15px max(15px, env(safe-area-inset-bottom)); gap: 20px; }
  .portal-header { min-height: 52px; padding: 10px 18px; gap: 12px; border-radius: 28px; }
  .wordmark img { width: 116px; }
  .portal-header nav { gap: 4px 12px; }
  .portal-header nav a, .portal-header .text-button { font-size: 11px; line-height: 16px; }
  .header-title { font-size: 10px; line-height: 16px; letter-spacing: 1px; }
  .portal-stage { flex: 1 0 auto; padding: 0; align-content: start; }
  .portal-card, .portal-card--wide, .portal-card--admin { padding: 28px 20px; gap: 18px; border-radius: 26px; }
  .view-signup .portal-shell { gap: 20px; }
  .view-signup .portal-card { padding: 28px 20px 24px; gap: 12px; }
  .signup-heading { flex-direction: column; gap: 12px; text-align: center; }
  .signup-heading .card-mascot { width: 68px; }
  .signup-heading .auth-heading { align-items: center; }
  .signup-heading .auth-heading h1 { font-size: 36px; line-height: 1.02; text-wrap: balance; }
  .signup-panel input { font-size: 16px; line-height: 20px; }
  .signup-panel .provider, .signup-panel .primary { padding-inline: 16px; }
  .card-mascot, .view-status .card-mascot { width: 68px; }
  .auth-heading h1, .intro h1, .admin-heading h1, .welcome-view h1 { font-size: 36px; line-height: 39px; }
  .intro p, .auth-heading p, .admin-heading p { font-size: 15px; line-height: 23px; }
  .intro .small, .small { font-size: 13px; line-height: 20px; }
  .view-status .portal-card { padding: 36px 24px; }
  .auth-panel { gap: 14px; }
  .button { padding-inline: 16px; font-size: 15px; line-height: 21px; }
  .view-login:has(.signin-view:not([hidden])) .portal-shell { gap: 20px; }
  .view-login:has(.signin-view:not([hidden])) .portal-header { padding: 0 8px 0 18px; }
  .portal-card:has(.signin-view:not([hidden])) { padding: 28px 20px 24px; }
  .portal-card:has(.signin-view:not([hidden])) > .card-mascot { width: 68px; }
  .signin-view h1 { font-size: 36px; line-height: 1.02; }
  .signin-view input { font-size: 16px; line-height: 20px; }
  .signin-view .provider, .signin-view .primary { padding-inline: 16px; }
  .view-login:has(.signin-view:not([hidden])) .portal-footer { padding: 10px; gap: 4px; }
  .actions { flex-direction: column; }
  .request-row { grid-template-columns: minmax(0, 1fr); padding: 20px 16px; gap: 16px; }
  .request-row .actions { flex-direction: row; }
  .request-row .button { flex: 1 1 auto; }
  .request-row h2 { font-size: 20px; line-height: 27px; }
  .portal-footer { padding: 12px 14px; border-radius: 28px; flex-direction: column; text-align: center; gap: 6px; font-size: 10px; line-height: 14px; }
  .footer-links { gap: 8px 20px; }
}
@media (max-width: 360px) {
  .portal-shell { padding-inline: 10px; }
  .portal-header { padding-inline: 14px; }
  .wordmark img { width: 102px; }
  .portal-header nav { max-width: 140px; }
  .portal-card { padding-inline: 18px; }
  .header-title { font-size: 9px; line-height: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .portal-background video { display: none; }
}
