/* Sign in + provider application. Light, photo on the left, form on the right, portal switch at the bottom. */
.auth-page { background: var(--c-bg); }
.auth { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); }
.auth__art { display: none; }
.auth__pane { position: relative; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 28px; min-height: 100svh; padding: 16px var(--gutter) 24px; }
.auth__bar { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth__mlogo .logo { height: 27px; }
.auth__back { justify-self: start; }
.auth__top .auth__back { display: inline-flex; }
.auth__card { width: min(100%, 460px); align-self: center; display: grid; gap: 20px; animation: rise 900ms var(--ease-liquid) both; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); filter: blur(6px); } }
.stepk { font-size: var(--fs-13); color: var(--c-brand-ink); }
.auth__card h2 { font-size: clamp(2rem, 1rem + 1.6vw, 2.75rem); font-weight: var(--w-thin); letter-spacing: -0.045em; line-height: 1.05; }
.auth__card .sub { color: var(--c-ink-2); font-size: var(--fs-15); margin-top: 6px; }

.seg { position: relative; display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); padding: 4px; border-radius: var(--r-pill); background: var(--c-surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--c-line); }
.seg button { position: relative; z-index: 1; min-height: 42px; padding: 0 16px; border-radius: var(--r-pill); font-size: var(--fs-14); font-weight: var(--w-med); color: var(--c-ink-2); transition: color 300ms; white-space: nowrap; }
.seg button[aria-selected="true"] { color: var(--c-white); }
.seg__pill { box-shadow: 0 8px 18px -10px var(--c-brand-30); }
.seg__pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n, 2)); border-radius: var(--r-pill); background: var(--c-ink); transform: translateX(calc(var(--k, 0) * 100%)); transition: transform 600ms var(--ease-liquid), opacity 300ms; }

/* Role switch on top; other portals tucked small at the bottom */
.seg--role { padding: 5px; }
.seg--role button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; font-size: var(--fs-15); font-weight: var(--w-reg); }
.seg--role button svg { width: 16px; height: 16px; transition: transform 500ms var(--ease-liquid); }
.seg--role button:hover svg { transform: scale(1.15); }
.auth__head { display: grid; gap: 2px; }
.auth__head [data-title], .auth__head [data-sub] { text-align: center; }
/* Sign-in and apply pages: centre the heading, the alt link block (Apply as… / Already have an account?) */
.auth__card:has(.alt, .apply-signin) .auth__head > h2, .auth__card:has(.alt, .apply-signin) .auth__head > .sub { text-align: center; }
/* Sign-in page only: centre the button label, the other-portals row and the HIPAA line */
.auth__card:has([data-title]) .btn--block .btn__l { flex: 1; justify-items: center; padding-left: 36px; }
.auth__card .alt { justify-items: center; text-align: center; }
.auth__card .alt a { width: 100%; justify-content: center; gap: 8px; }
.portal:has([data-others]) { flex-direction: column; justify-content: center; text-align: center; }
.portal:has([data-others]) .others .select__list { left: 50%; margin-left: -120px; }
.portal:has([data-others]) .secure { justify-content: center; }
.tabs3 { position: relative; display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); border-bottom: 1px solid var(--c-line); }
.tabs3[hidden] { display: none; }
.tabs3 button { position: relative; z-index: 1; padding: 12px 4px; font-size: var(--fs-14); color: var(--c-ink-3); transition: color 300ms; }
.tabs3 button:hover { color: var(--c-ink); }
.tabs3 button[aria-selected="true"] { color: var(--c-ink); }
.tabs3 .seg__pill { top: auto; bottom: -1px; left: 0; height: 2px; width: calc(100% / var(--n, 3)); border-radius: 2px; background: var(--c-brand); transform: translateX(calc(var(--k, 0) * 100%)); }
.portal { width: min(100%, 460px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-top: 16px; border-top: 1px solid var(--c-line); }
.portal--reg { display: grid; grid-template-columns: 1fr auto; }
/* Register and set-password: the trust line (and any link) stacked and centred under the form */
.portal--center { flex-direction: column; justify-content: center; text-align: center; }
.portal--center .secure { justify-content: center; }
.portal__k { font-size: var(--fs-13); color: var(--c-ink-3); }
.others { position: relative; }
.others__btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; font-size: var(--fs-13); color: var(--c-ink); transition: color 250ms; }
.others__btn:hover, .others__btn.is-set { color: var(--c-brand-ink); }
.others__btn svg { width: 14px; height: 14px; transition: transform 300ms; }
.others__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.others .select__list { left: 0; right: auto; width: 240px; }

.pw { position: relative; }
.pw .input { padding-right: 52px; }
.pw__eye { position: absolute; right: 6px; top: 6px; width: 40px; height: 40px; border-radius: var(--r-12); display: grid; place-items: center; color: var(--c-ink-3); }
.pw__eye svg { width: 18px; height: 18px; }
.pw__eye[aria-pressed="true"] { color: var(--c-brand-ink); }
.pw__eye.flip svg { animation: eyeflip 380ms var(--ease-expo); }
@keyframes eyeflip { 0% { transform: scaleY(0.2); } 100% { transform: none; } }
.row-b > .tbtn:only-child { margin-left: auto; }
.row-b { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: var(--fs-13); }
.check { display: inline-flex; align-items: center; gap: 10px; color: var(--c-ink-2); }
.check input { appearance: none; flex: none; width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--c-line-2); display: grid; place-items: center; background: var(--c-surface); }
.check input:checked { background: var(--c-brand); box-shadow: none; }
.check input:checked::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--c-white); border-bottom: 2px solid var(--c-white); transform: rotate(-45deg) translate(1px, -1px); }
.tbtn { color: var(--c-ink); font-weight: var(--w-med); border-bottom: 1px solid var(--c-line-2); }
.tbtn:hover { border-color: currentColor; color: var(--c-brand-ink); }
.form { display: grid; gap: 16px; }
.input--locked { background: var(--c-cloud); color: var(--c-ink); cursor: default; }
.input--locked:hover, .input--locked:focus, .input--locked:focus-visible { border-color: var(--c-line-2); box-shadow: none; }
.form[hidden] { display: none; }
.form.enter { animation: rise 700ms var(--ease-liquid); }
.note { display: none; grid-template-columns: 20px 1fr; gap: 10px; padding: 12px 14px; border-radius: var(--r-16); font-size: var(--fs-13); background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line); }
.note.on { display: grid; }
.note.bad { background: color-mix(in oklab, var(--c-err) 7%, var(--c-white)); color: var(--c-err); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--c-err) 24%, transparent); }
.note.ok { background: color-mix(in oklab, var(--c-ok) 9%, var(--c-white)); color: var(--c-ok); box-shadow: none; }
.note svg { width: 18px; height: 18px; margin-top: 1px; }
.demo { border-radius: var(--r-20); box-shadow: inset 0 0 0 1px var(--c-line); background: var(--c-surface); }
.demo summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; font-size: var(--fs-13); font-weight: var(--w-med); cursor: pointer; }
.demo summary::-webkit-details-marker { display: none; }
.demo summary svg { width: 14px; height: 14px; transition: transform 300ms; }
.demo[open] summary svg { transform: rotate(180deg); }
.demo__g { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 12px 12px; }
.demo__g button { display: grid; gap: 2px; padding: 12px; border-radius: var(--r-16); background: var(--c-bg); text-align: left; font-size: var(--fs-12); transition: box-shadow 300ms; word-break: break-all; }
.demo__g button:hover { box-shadow: inset 0 0 0 1px var(--c-brand); }
.demo__g b { font-size: var(--fs-13); font-weight: var(--w-med); word-break: normal; }
.demo__g code { font-size: var(--fs-11); color: var(--c-ink-3); }
.alt { display: grid; gap: 10px; font-size: var(--fs-13); color: var(--c-ink-2); }
.alt[hidden] { display: none; }
/* "Already have an account? Sign in" under an application form: one centred brand link */
.apply-signin { justify-self: center; font-size: var(--fs-14); }

.auth__card:has(.apply-address) { width: min(100%, 640px); }
.apply-address {
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-12);
  padding: clamp(16px, 3vw, 30px);
  gap: 16px;
}
.apply-address .input,
.apply-state-menu .input { min-height: 44px; padding: 10px 14px; border-radius: var(--r-12); }
.apply-address #country,
.apply-state-trigger [data-placeholder],
.apply-state-trigger svg,
.apply-state-option span { color: var(--c-ink-3); }
.apply-address-actions { display: grid; gap: 6px; }
.apply-address-actions .nav2 { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: 12px; margin: 0; }
.apply-address-actions .nav2 .btn { min-height: 42px; justify-self: stretch; justify-content: center; }
.apply-address-actions .btn__i,
.apply-address-actions .nav2 .btn--block::after { display: none; }
.apply-state-trigger { display: flex; align-items: center; justify-content: space-between; gap: 6px; text-align: left; }
.apply-state-trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apply-state-trigger svg { flex: none; }
.apply-state-menu {
  width: var(--radix-popover-trigger-width);
  max-height: var(--radix-popover-content-available-height);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-12);
  background: var(--c-surface);
  box-shadow: var(--sh-3);
  z-index: 10;
}
.apply-state-options { max-height: 216px; overflow-y: auto; overscroll-behavior: contain; }
.apply-state-option { display: block; width: 100%; padding: 12px; border-radius: var(--r-12); text-align: left; }
.apply-state-option:hover,
.apply-state-option:focus-visible,
.apply-state-option[aria-pressed="true"] { background: var(--c-bg-2); }
@media (min-width: 560px) {
  .apply-address.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Text link on auth forms ("Sign in", "Change NPI"): brand colour; underlined and darker on hover and keyboard focus */
.auth-link { font-weight: var(--w-med); color: var(--c-brand-ink); text-underline-offset: 2px; transition: color 200ms; }
.auth-link:hover, .auth-link:focus-visible { color: var(--c-brand-2); text-decoration: underline; }
.alt a { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: var(--r-16); background: var(--c-surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--c-line); color: var(--c-ink); font-weight: var(--w-med); transition: box-shadow 300ms, transform 600ms var(--ease-liquid); }
.alt a:hover { box-shadow: var(--sh-2), inset 0 0 0 1px var(--c-brand-30); transform: translateY(-2px); }
.alt a svg { width: 14px; height: 14px; color: var(--c-brand); }
.secure { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: var(--fs-12); color: var(--c-ink-3); }
.secure svg { width: 14px; height: 14px; }
.g2 { display: grid; gap: 14px; }
@media (min-width: 560px) { .g2 { grid-template-columns: 1fr 1fr; } .g2 .wide { grid-column: 1 / -1; } }

/* Art panel (desktop): daylight photo, logo, glass caption */
.auth__copy { display: grid; gap: 14px; }
.auth__copy h1 { font-size: clamp(2.2rem, 1rem + 2.6vw, 3.8rem); font-weight: var(--w-thin); letter-spacing: -0.05em; line-height: 0.98; }
.auth__copy h1 b { font-weight: var(--w-reg); }
.auth__copy p { color: var(--c-ink-2); max-width: 40ch; font-weight: var(--w-light); }
.auth__copy.swap > * { animation: rise 800ms var(--ease-liquid) both; }
.auth__copy.swap > :nth-child(2) { animation-delay: 60ms; } .auth__copy.swap > :nth-child(3) { animation-delay: 120ms; }
.auth__trust { display: flex; flex-wrap: wrap; gap: 8px; }
/* HIPAA badge in the "Protected with HIPAA safeguards" line: the client artwork at the portals' size (22 px) */
.secure .hipaa__b { display: block; flex: none; height: 22px; width: auto; }
/* "Made in USA" with the flag (reference `U.usa()`); the flag keeps its own 20 x 11 shape, not the 14 px line icon size */
.secure .usa { display: inline-flex; align-items: center; gap: 6px; }
.secure .usa .flag { width: 20px; height: 11px; }
/* Application stepper: numbered circles joined by a line, label under each; the line into a reached step is filled */
.steps-r { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 16px 0 8px; }
.steps-r li { position: relative; display: grid; justify-items: center; gap: 8px; min-width: 0; color: var(--c-ink-3); font-size: var(--fs-13); transition: color 300ms; }
.steps-r li + li::before { content: ""; position: absolute; top: 15px; left: calc(-50% + 22px); right: calc(50% + 22px); height: 2px; border-radius: 2px; background: var(--c-line-2); transition: background 300ms; }
.steps-r li:is(.now, .done)::before { background: var(--c-ink); }
.steps-r__n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: var(--fs-12); background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line-2); transition: background 300ms, color 300ms, box-shadow 300ms; }
.steps-r__name { white-space: nowrap; }
@media (max-width: 399px) { .steps-r li { font-size: var(--fs-12); } }
.steps-r li.now { color: var(--c-ink); font-weight: var(--w-med); }
.steps-r li.now .steps-r__n { background: var(--c-ink); color: var(--c-white); box-shadow: 0 0 0 4px var(--c-brand-14); }
.steps-r li.done .steps-r__n { background: var(--c-ink); color: var(--c-white); box-shadow: none; }
.yn { display: flex; gap: 8px; }
.yn label { position: relative; }
.yn input { position: absolute; opacity: 0; inset: 0; }
.yn span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: var(--r-pill); background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line-2); font-size: var(--fs-14); transition: background 250ms, color 250ms; }
.yn input:checked + span { background: var(--c-ink); color: var(--c-white); box-shadow: none; }
.yn input:focus-visible + span { box-shadow: var(--focus-ring); }
.file { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 16px; border-radius: var(--r-16); border: 1px dashed var(--c-line-2); background: var(--c-surface); font-size: var(--fs-13); color: var(--c-ink-2); }
.file span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file label { padding: 8px 14px; border-radius: var(--r-pill); background: var(--c-bg-2); font-weight: var(--w-med); cursor: pointer; }
.nav2 { display: flex; gap: 8px; margin-top: 6px; }
.nav2 .btn--plain { flex: none; }
.nav2 .btn--block { width: auto; flex: 1; min-width: 0; }
/* Centre the label in the whole button: a spacer matches the arrow on the right and shrinks first when room is short */
.nav2 .btn--block::after, .btn--mid::after { content: ""; order: -1; flex: 0 1000 36px; min-width: 0; margin-right: -12px; }
.nav2 .btn--block .btn__l, .btn--mid .btn__l { flex: 1 1 auto; justify-items: center; }
/* The arrow points right at rest and tilts up-right on hover; the circle does not turn (as the reference). */
.btn__i svg { transform: rotate(45deg); transition: transform 420ms var(--ease-expo, cubic-bezier(.16,1,.3,1)); }
.btn:hover .btn__i, .btn:focus-visible .btn__i, .btn:hover .btn__i svg, .btn:focus-visible .btn__i svg { transform: none; }
/* Application received: everything centred under the completion mark */
.receipt { display: grid; gap: 20px; justify-items: center; text-align: center; }
.receipt .btn { justify-content: center; padding-inline: 22px; }
/* Completion mark, as on the patient order-placed screen: the circle pops in, a ring radiates out, then the check draws itself */
.receipt__ok { --s: 96px; position: relative; display: grid; place-items: center; width: var(--s); height: var(--s); margin-bottom: 8px; border-radius: 50%; background: var(--c-brand); animation: okIn 620ms var(--ease-liquid) both; }
.receipt__ok::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; background: color-mix(in oklab, var(--c-brand) 16%, transparent); animation: okRing 1400ms var(--ease-out) 200ms both; }
.receipt__ok svg { position: relative; width: 62%; height: 62%; }
.receipt__ok circle { fill: none; stroke: color-mix(in srgb, var(--c-white) 45%, transparent); stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; animation: okDraw 700ms var(--ease-out) 120ms forwards; }
.receipt__ok path { fill: none; stroke: var(--c-white); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: okDraw 420ms var(--ease-out) 560ms forwards; }
@keyframes okIn { from { transform: scale(.4); opacity: 0; } }
@keyframes okRing { from { transform: scale(.7); opacity: 0; } 50% { opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
@keyframes okDraw { to { stroke-dashoffset: 0; } }

@media (min-width: 1024px) {
  .auth { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .auth__art { position: sticky; top: 0; display: grid; align-content: space-between; height: 100svh; padding: 14px; isolation: isolate; }
  .auth__imgs { position: absolute; inset: 14px; z-index: -1; border-radius: var(--r-32); overflow: hidden; background: var(--g-skeleton); }
  .auth__imgs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 900ms var(--ease-out), transform 1600ms var(--ease-expo); }
  .auth__imgs img.on { opacity: 1; transform: none; }
  .auth__brand { justify-self: start; margin: 18px; padding: 12px 18px; border-radius: var(--r-pill); background: color-mix(in oklab, var(--c-white) 78%, transparent); box-shadow: var(--sh-glass); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); }
  .auth__brand .logo { height: 28px; }
  .auth__copy { margin: 18px; padding: clamp(22px, 2.4vw, 34px); border-radius: var(--r-28); background: color-mix(in oklab, var(--c-white) 76%, transparent); box-shadow: var(--sh-glass); backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6); }
  .auth__pane { padding: 22px clamp(24px, 4vw, 64px) 28px; }
  .auth__mlogo { visibility: hidden; }
}
.auth-page .nav { top: 14px; }
.auth__pane { padding-top: 96px; }
@media (min-width: 1024px) { .auth__pane { padding-top: 104px; } .auth__art { padding-top: 14px; } .auth__copy { align-self: end; } .auth__art { align-content: end; } }
/* set-password and provider apply: the logo pill sits at the top of the picture (like the sign-in logo), the text card at the bottom */
@media (min-width: 1024px) { .auth__art:has(> .auth__brand) { align-content: space-between; } }
.secure svg { color: var(--c-brand); }
.auth__pane { grid-template-rows: auto 1fr auto; }
.auth__back { width: auto; }
@media (min-width: 1024px) { .auth__pane { padding-top: 108px; } .auth__back { margin-bottom: 4px; } }
.auth__pane--join { grid-template-rows: auto; align-content: start; }
.auth__pane--join .auth__head { text-align: center; }
@media (min-width: 1024px) {
  .auth__pane--join { padding-top: 28px; align-content: safe center; }
}
/* Apply and set-password pages have no top nav (their logo is in the picture or the pane's own top row),
   so they drop the padding that clears the sign-in nav. Desktop also drops the hidden mobile logo's 27px. */
.auth:has(> .auth__art > .auth__brand) > .auth__pane { padding-top: 16px; }
@media (min-width: 1024px) {
  .auth:has(> .auth__art > .auth__brand) > .auth__pane { padding-top: 28px; }
  .auth--provider-apply > .auth__pane { padding-top: 28px; }
  .auth:has(> .auth__art > .auth__brand) .auth__mlogo { display: none; }
}
/* Desktop: the logo pill sits inside the photo, clear of its rounded edge */
@media (min-width: 1024px) {
  .auth-page .nav { top: 32px; }
}

/* Other portals: when a team or partner portal is picked, the role switch becomes two clear ways back */
.goto { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.goto[hidden] { display: none; }
.goto button { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 14px; background: color-mix(in oklab, var(--c-white) 74%, transparent); box-shadow: var(--sh-glass); font-size: var(--fs-14); font-weight: var(--w-med); color: var(--c-ink); text-align: left; transition: background 250ms; }
.goto button svg { width: 12px; height: 12px; color: var(--c-brand); transition: transform 500ms var(--ease-expo); }
.goto button:hover { background: var(--c-white); }
.goto button:hover svg { transform: translate(2px, -2px); }
/* NPI check: button beside the field, result under it */
/* NPI check failed: one centred message above the field */
.npi__err { padding: 12px 14px; border-radius: var(--r-16); background: color-mix(in oklab, var(--c-err) 7%, var(--c-white)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--c-err) 18%, transparent); color: var(--c-err); font-size: var(--fs-14); text-align: center; animation: rise 600ms var(--ease-liquid); }
.opt-tag { font-weight: var(--w-reg); color: var(--c-ink-3); }

/* Alignment: the back link, the card and the portal row share one column; on desktop the nav logo sits inside the
   photo at the same inset as the caption card (32 px), at every screen width (no centred container on auth pages). */
.auth__top { width: min(100%, 460px); }
@media (min-width: 1024px) {
  .auth-page .nav__in { width: auto; margin: 0 32px; }
  .auth__copy { margin: 18px; }
  /* Compact caption card over the photo, as in the UI reference: tighter padding, one-line headline sized to the card. */
  .auth__copy { container-type: inline-size; gap: 10px; padding: clamp(16px, 1.6vw, 24px) clamp(20px, 2vw, 30px); }
  .auth__copy h1 { font-size: clamp(1.25rem, 4.4cqi, 2.25rem); line-height: 1.1; letter-spacing: -0.035em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .auth__copy p { font-size: var(--fs-14); max-width: none; }
  /* Sign-in: the card (role switch first) starts at the top of the pane instead of centring, so no gap above the switch. */
  .auth__pane > .auth__card:has(> [data-roles]) { align-self: start; }
  /* Sign-in: the nav is only the logo pill inside the photo here, so the pane drops the padding that clears it (as apply and set-password do). */
  .auth__pane:has(> .auth__card > [data-roles]) { padding-top: 28px; }
}
@media (min-width: 1800px) {
  .auth__top, .auth__card, .portal { width: min(100%, 520px); }
}

/* Design-review state lab (FW.preview only, removed in Next.js): a glass bar bottom left, a panel of chips */
.statelab { position: fixed; left: 16px; bottom: 16px; z-index: var(--z-banner); display: grid; gap: 8px; justify-items: start; max-width: calc(100vw - 32px); }
.statelab__bar { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 16px; background: color-mix(in oklab, var(--c-white) 84%, transparent); box-shadow: var(--sh-glass), var(--sh-2); backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5); }
.statelab__btn { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; max-width: 300px; padding: 0 12px; border-radius: 12px; font-size: var(--fs-13); color: var(--c-ink); transition: background 250ms; }
.statelab__btn:hover { background: var(--c-white); }
.statelab__btn .live { width: 6px; height: 6px; }
.statelab__k { font-size: var(--fs-11); font-weight: var(--w-med); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--c-ink-3); }
.statelab__v { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: var(--w-med); }
.statelab__btn svg { flex: none; width: 14px; height: 14px; color: var(--c-ink-3); transform: rotate(180deg); transition: transform 300ms var(--ease-expo); }
.statelab.is-open .statelab__btn svg { transform: none; }
.statelab__nav { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--c-ink-2); transition: background 250ms, color 250ms; }
.statelab__nav:hover { background: var(--c-white); color: var(--c-ink); }
.statelab__nav svg { width: 14px; height: 14px; }
.statelab__nav--next svg { transform: rotate(180deg); }
.statelab__panel { width: min(420px, calc(100vw - 32px)); max-height: min(62vh, 560px); overflow-y: auto; padding: 18px; border-radius: 22px; background: color-mix(in oklab, var(--c-white) 92%, transparent); box-shadow: var(--sh-3), inset 0 0 0 1px var(--c-line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transform-origin: 0 100%; animation: rise 500ms var(--ease-liquid); }
.statelab__panel[hidden] { display: none; }
.statelab__head { display: grid; gap: 2px; margin-bottom: 14px; }
.statelab__head b { font-size: var(--fs-16); font-weight: var(--w-med); letter-spacing: -0.01em; }
.statelab__head small { font-size: var(--fs-12); color: var(--c-ink-3); }
.statelab__g { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--c-line); }
.statelab__g > span { font-size: var(--fs-11); font-weight: var(--w-med); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--c-ink-3); }
.statelab__g > div { display: flex; flex-wrap: wrap; gap: 6px; }
.statelab__g button { min-height: 32px; padding: 0 12px; border-radius: var(--r-pill); background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line-2); font-size: var(--fs-12); color: var(--c-ink-2); transition: background 200ms, color 200ms, box-shadow 200ms; }
.statelab__g button:hover { box-shadow: inset 0 0 0 1px var(--c-ink-3); color: var(--c-ink); }
.statelab__g button.on { background: var(--c-ink); color: var(--c-white); box-shadow: none; }
@media (max-width: 599px) { .statelab { left: 8px; bottom: 8px; } .statelab__btn { max-width: 200px; } }
.btn--google { justify-content: center; gap: 10px; }
.gmark { width: 18px; height: 18px; flex: none; }
.auth-or { display: contents; }
.auth-or[hidden] { display: none; }
.textbtn { border: 0; padding: 0; background: none; color: var(--c-brand); font: inherit; cursor: pointer; text-decoration: underline; }
.textbtn:disabled { cursor: default; opacity: 0.6; }
.or { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--c-ink-3); font-size: var(--fs-13); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }

