/* public/css/signin.css — the sign-in pages (Tactile redesign, 2026-11). Two looks over one tl- structure:
 * .tl--portal  /login, /admin/login, /forgot-password, /reset-password, /lost-phone, /help, /status: a smoked-glass card on a
 *              dark field. /login and /admin/login are the door: the form, the help pane and a sliding shutter.
 * .tl--sheet   the emailed links (/trial/confirm, /accept-invite): the Hub's Tactile sheet, light or dark with the OS.
 * Built only on the styles.css tokens; every class is tl-. Phones get one column and the step bar (public/js/hub/auth/*). */

.tl { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.tl-main { display: flex; flex: 1; justify-content: center; align-items: center; padding: 0 clamp(12px, 4vw, 40px) 32px; outline: none; }
.tl-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: min(1040px, 100%); }
.tl-card[data-tl-solo] { grid-template-columns: minmax(0, 1fr); width: min(620px, 100%); }
.tl-card[data-tl-solo] :is(.tl-side, .tl-bar) { display: none; }
.tl-doc { grid-template-columns: minmax(0, 1fr); width: min(760px, 100%); }
.tl-form { display: flex; flex-direction: column; justify-content: safe center; min-width: 0; padding: clamp(26px, 4vw, 44px) clamp(22px, 4vw, 48px); }

/* ── type ── */
.tl-kick { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink-2); font-size: var(--t-small); font-weight: 500; }
:is(.tl-form, .tl-pane, .tl-sh) .tl-kick:first-child::before {
    content: '';
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--go-2);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--go-2) 18%, transparent);
}
.tl-bar .tl-kick:first-child::before { content: none; }
.tl-kick b { color: var(--bone); font-weight: 500; }
.tl-h1 {
    margin: 12px 0 0;
    font-family: var(--font-display);
    font-size: var(--t-display);
    font-weight: 700;
    font-stretch: 75%;
    letter-spacing: -0.015em;
    line-height: 0.98;
    text-transform: none;
    text-wrap: balance;
    outline: none;
}
.hv-app .tl-h1:focus-visible { outline: none; }
.tl-lede { max-width: 44ch; margin: 14px 0 0; color: var(--ink-2); font-size: var(--t-body); line-height: 1.55; text-wrap: pretty; }
.tl-lede b { color: var(--bone); font-weight: 600; }
.tl-h2 { margin: 28px 0 0; font-size: var(--t-title); font-weight: 600; }

/* ── the plan offer, terms, rows ── */
.tl-offer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 16px;
    margin-top: 22px;
    padding: 16px 18px;
    border-radius: 18px;
    background: var(--well);
    box-shadow: var(--sunk);
}
.tl-offer__k { grid-column: 1 / -1; color: var(--ink-2); font-size: var(--t-label); }
.tl-offer__n { font-family: var(--font-display); font-size: var(--t-title); font-weight: 700; font-stretch: 85%; }
.tl-offer__d { color: var(--ink-2); font-size: var(--t-small); }
.tl-offer__p { grid-column: 2; grid-row: 2 / 4; align-self: center; font-family: var(--font-display); font-size: var(--t-section); font-weight: 700; font-stretch: 85%; text-align: right; }
.tl-offer__p small { display: block; color: var(--ink-2); font-family: var(--font-body); font-size: var(--t-small); font-weight: 400; }
.tl-terms { margin: 20px 0 0; padding: 14px 18px; border-radius: 18px; background: var(--well); box-shadow: var(--sunk); font-size: var(--t-body); line-height: 1.6; }
.tl-rows { margin: 20px 0 0; padding: 4px 18px; border-radius: 18px; background: var(--well); box-shadow: var(--sunk); list-style: none; }
.tl-r { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--t-body); }
.tl-r:last-child { border-bottom: 0; }
.tl-r > span { color: var(--ink-2); }
.tl-r b { font-weight: 600; text-align: right; }

/* ── fields and buttons (hub.css draws .hv-field and .hv-btn; these are the sign-in sizes) ── */
.tl-fields { display: grid; gap: 14px; margin-top: 24px; }
.tl-f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.tl-in { height: 46px; padding: 0 14px; font-size: var(--t-body); }
.tl-in[readonly] { color: var(--ink-2); }
.tl-lrow { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tl-lrow__link { font-size: var(--t-small); }
.tl-btn--go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.tl-btn--go svg { width: 16px; height: 16px; }
.tl-help { margin: 7px 0 0; color: var(--ink-2); font-size: var(--t-small); line-height: 1.5; }
.tl-help .hv-link { display: inline; }
.tl-pw { position: relative; }
.tl-pw .tl-in { padding-right: 52px; }
.tl-peek { position: absolute; top: 1px; right: 1px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--ink-2); }
.tl-peek:hover { color: var(--bone); }
.tl-peek svg { width: 17px; height: 17px; }
.tl-msg { margin: 0; color: var(--danger); font-size: var(--t-small); outline: none; }
.tl-msg:empty { display: none; }
.tl-btn { width: 100%; min-height: 46px; margin-top: 22px; font-size: var(--t-body); }
.tl-fields .tl-btn { margin-top: 6px; }
.tl-btn--alt { display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; }
.tl-btn--alt svg { width: 18px; height: 18px; }
.tl-check { display: flex; gap: 11px; align-items: flex-start; color: var(--ink-2); font-size: var(--t-body); cursor: pointer; }
.tl-check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--go-2); }
.tl-check b { color: var(--bone); font-weight: 600; }
.tl-links { margin: 18px 0 0; font-size: var(--t-small); }
.tl-links button { min-height: 44px; color: var(--bone); text-decoration: underline 1px var(--line-2); text-underline-offset: 5px; }
.tl-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; color: var(--ink-2); font-size: var(--t-small); }
.tl-or::before, .tl-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.tl-note { margin: 18px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--well); color: var(--ink-2); font-size: var(--t-small); line-height: 1.5; }
.tl-note b { color: var(--bone); font-weight: 600; }

/* ── the side: progress, a numbered rail ── */
.tl-side { display: flex; flex-direction: column; justify-content: safe center; min-width: 0; padding: clamp(24px, 3.4vw, 40px) clamp(20px, 3vw, 44px); }
.tl-side__k { display: flex; justify-content: space-between; }
.tl-steps { margin: 22px 0 0; padding: 0; list-style: none; }
.tl-steps li { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding-bottom: 20px; }
.tl-steps li:not(:last-child)::before { content: ''; position: absolute; top: 34px; bottom: 4px; left: 14.5px; width: 1px; background: var(--line-2); }
.tl-tile { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--ink-2); font-family: var(--font-mono); font-size: var(--t-label); }
.tl-t { margin: 0; padding-top: 5px; color: var(--ink-2); font-size: var(--t-body); font-weight: 600; }
.tl-s { margin: 3px 0 0; color: var(--ink-2); font-size: var(--t-small); }
.tl-steps li:is(.is-now, .is-done) .tl-t { color: var(--bone); }
.tl-steps li.is-now .tl-tile { border-color: var(--go-2); color: var(--bone); box-shadow: 0 0 0 3px color-mix(in srgb, var(--go-2) 18%, transparent); }
.tl-steps li.is-done .tl-tile { border-color: var(--go-2); background: var(--go-2); color: var(--on-go); }
.tl-foot { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: var(--t-small); line-height: 1.55; }
.tl-foot b { color: var(--bone); font-weight: 600; }

/* The phone's step bar */
.tl-bar { display: none; }
.tl-segs { display: flex; gap: 4px; margin-top: 10px; }
.tl-segs i { flex: 1; height: 4px; border-radius: 4px; background: var(--line-2); }
.tl-segs i.is-done { background: var(--go-2); }
.tl-segs i.is-now { background: color-mix(in srgb, var(--go-2) 45%, transparent); }

/* ── top and footer ── */
.tl-top { display: flex; align-items: center; gap: 12px; padding: 22px clamp(18px, 4vw, 28px); color-scheme: dark; color: var(--bone); }
.tl-top--nav { justify-content: space-between; }
.tl-top .hv-link { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--t-small); }
.tl-top__badge { display: inline-flex; align-items: center; gap: 8px; height: 32px; margin-left: auto; padding: 0 14px; border: 1px solid color-mix(in srgb, var(--bone) 12%, transparent); border-radius: 999px; color: var(--ink-2); font-size: var(--t-small); }
.tl-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 0 clamp(18px, 4vw, 40px) 24px; color: var(--ink-2); font-size: var(--t-small); }
.tl-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.tl-footer .hv-link { display: inline-flex; align-items: center; min-height: 44px; }

/* ── help: the ways back in ── */
.tl-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.tl-opt { display: grid; gap: 6px; height: 100%; padding: 18px; border: 1px solid var(--line-2); border-radius: 18px; color: var(--bone); text-decoration: none; }
.tl-opt:hover { border-color: var(--edge-hi); }
.tl-opt svg { width: 22px; height: 22px; color: var(--go-2); }
.tl-opt b { font-size: var(--t-body); font-weight: 600; }
.tl-opt span { color: var(--ink-2); font-size: var(--t-small); line-height: 1.5; }
.tl-opt em { margin-top: 4px; font-size: var(--t-small); font-style: normal; font-weight: 600; text-decoration: underline 1px var(--line-2); text-underline-offset: 5px; }


/* ══ The portal: smoked glass on the dark field. Its own tokens, the same in every OS theme. ══════════ */

.tl--portal {
    --bone: var(--portal-ink);
    --ink-2: var(--portal-soft);
    --text-mut: var(--portal-faint);
    --line: color-mix(in srgb, var(--portal-seam) 55%, transparent);
    --line-2: var(--portal-seam);
    --danger: var(--portal-bad);
    --edge-control: color-mix(in srgb, var(--portal-seam) 70%, transparent);
    --edge-hi: color-mix(in srgb, var(--portal-ink) 45%, transparent);
    --field: var(--portal-well);
    --well: var(--portal-well);
    --focus: var(--portal-good);
    background:
        radial-gradient(60% 55% at 50% 52%, color-mix(in srgb, var(--go-2) 10%, transparent), transparent 70%),
        var(--portal) url('/img/signin-portal.svg') center top / cover no-repeat;
    color: var(--portal-ink);
}
.tl--portal .tl-card {
    min-height: clamp(500px, 72vh, 620px);
    border-radius: 24px;
    background: var(--portal-glass);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    backdrop-filter: blur(20px) saturate(140%);
    box-shadow: inset 0 1px 1px color-mix(in srgb, var(--portal-head) 20%, transparent), 0 30px 60px -15px rgba(0, 0, 0, 0.85);
    isolation: isolate;
}
.tl--portal .tl-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 4;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, color-mix(in srgb, var(--portal-head) 35%, transparent), color-mix(in srgb, var(--portal-head) 6%, transparent) 50%, color-mix(in srgb, var(--portal-head) 18%, transparent));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    pointer-events: none;
}
.tl--portal .tl-card[data-tl-solo],
.tl--portal .tl-doc { min-height: 0; }
.tl--portal .tl-h1 { color: var(--portal-head); }
.tl--portal .tl-kick { color: var(--portal-faint); }
.tl--portal .tl-side {
    padding-left: clamp(28px, 4vw, 64px);
    border-radius: 72px 24px 24px 72px;
    background: var(--portal-shut);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    box-shadow: inset 1px 0 0 var(--portal-seam), -12px 0 40px -18px rgba(0, 0, 0, 0.6);
}
.tl--portal :is(.tl-in, .hv-otp .hv-field) { box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35); }
.tl--portal :is(.tl-in, .hv-otp .hv-field):focus { border-color: color-mix(in srgb, var(--portal-ink) 45%, transparent); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35), 0 0 0 3px color-mix(in srgb, var(--go-2) 16%, transparent); }
.tl--portal .hv-btn--secondary {
    border-color: color-mix(in srgb, var(--portal-head) 22%, transparent);
    background: linear-gradient(180deg, color-mix(in srgb, var(--portal-head) 12%, transparent), color-mix(in srgb, var(--portal-head) 4%, transparent));
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--portal-head) 12%, transparent);
    color: var(--portal-ink);
}
.tl--portal .hv-link { color: var(--portal-ink); border-bottom-color: color-mix(in srgb, var(--portal-ink) 35%, transparent); }
.tl--portal .hv-label { color: var(--portal-soft); }
.tl--portal .tl-opt { background: color-mix(in srgb, var(--portal) 40%, transparent); }
.tl--portal .tl-footer { color: var(--portal-faint); }

/* ── The door (the mockup's portal): the form, the help pane and the shutter between them. The shutter's curved seam faces
   the middle; on success it covers the card and the seal plays. Transform, opacity and filter only. ── */
.tl-door { --door-ease: cubic-bezier(0.65, 0, 0.35, 1); --door-out: cubic-bezier(0.23, 1, 0.32, 1); height: clamp(500px, 76vh, 620px); min-height: 0; }
.tl-pane { position: relative; display: flex; flex-direction: column; justify-content: safe center; min-width: 0; padding: 40px 48px; overflow: auto; scrollbar-width: none; transition: opacity 320ms ease, filter 320ms ease, display 320ms allow-discrete; }
.tl-pane--right { grid-column: 2; }
.tl-pane[aria-hidden="true"] { opacity: 0; filter: blur(4px); pointer-events: none; }
/* Out of the layout when the shutter has docked over it, but never while it covers the card: WebKit repaints a pane that is
   mid display-transition at full opacity, so on success the form would flash back between the shutter and the seal. */
.tl-door:not([data-phase="auth"]) .tl-pane[aria-hidden="true"] { display: none; }
@starting-style { .tl-pane:not([aria-hidden="true"]) { opacity: 0; filter: blur(4px); } }
.tl-shutter {
    position: absolute;
    z-index: 3;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    width: 48%;
    border-radius: 24px 72px 72px 24px;
    background: var(--portal-shut);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    box-shadow: inset -1px 0 0 var(--portal-seam), 12px 0 40px -18px rgba(0, 0, 0, 0.6);
    transition: transform 600ms var(--door-ease), border-radius 600ms var(--door-ease), width 600ms var(--door-ease), box-shadow 600ms var(--door-ease);
}
.tl-door[data-dock="right"] .tl-shutter { transform: translateX(108.333%); border-radius: 72px 24px 24px 72px; box-shadow: inset 1px 0 0 var(--portal-seam), -12px 0 40px -18px rgba(0, 0, 0, 0.6); }
.tl-door[data-phase="auth"] .tl-shutter { transform: none; width: 100%; border-radius: 24px; box-shadow: none; }
.tl-sh { display: flex; flex: 1; flex-direction: column; justify-content: safe center; min-width: 0; padding: 40px 48px; overflow: auto; scrollbar-width: none; }
.tl-door[data-dock="left"] .tl-sh { padding-right: 64px; }
.tl-door[data-dock="right"] .tl-sh { padding-left: 64px; }
.tl-door[data-phase="code"] .tl-pane--left { opacity: 0.38; filter: blur(1px); pointer-events: none; }
.tl-door[data-phase="auth"] .tl-pane { opacity: 0 !important; filter: blur(8px); }
.tl-sh > [hidden] { display: none; }
.tl-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 10px; align-self: flex-start; min-height: 44px; margin-top: 22px; padding: 0 20px; }
.tl-ghost svg { width: 16px; height: 16px; }
.tl-swap-out { opacity: 0 !important; filter: blur(4px); transition: opacity 180ms ease, filter 180ms ease; }
.tl-swap-in { animation: tl-in 320ms var(--door-out) both; }
@keyframes tl-in { from { opacity: 0; transform: translateY(6px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* the help pane's rows */
.tl-hrows { display: grid; gap: 10px; margin: 16px 0 0; }
.tl-hrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--portal) 45%, transparent); color: var(--bone); text-decoration: none; transition: border-color 160ms ease; }
.tl-hrow:hover { border-color: var(--line-2); }
.tl-hrow__ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--portal-well); color: var(--portal-good); }
.tl-hrow__ic svg { width: 17px; height: 17px; }
.tl-hrow__tx b { display: block; font-size: var(--t-body); font-weight: 600; }
.tl-hrow__tx em { display: block; margin-top: 2px; color: var(--ink-2); font-size: var(--t-small); font-style: normal; line-height: 1.4; }
.tl-hrow__go { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-small); font-weight: 600; white-space: nowrap; }
.tl-hrow__go svg { width: 14px; height: 14px; }

/* the seal: ring, mark, tick, words, bar (the mockup's .au-seal timings) */
.tl-ok:not([hidden]) { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.tl-seal { position: relative; width: 132px; height: 132px; margin-bottom: 18px; }
.tl-seal__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.tl-seal__ring circle { fill: none; stroke-width: 3; }
.tl-seal__tr { stroke: color-mix(in srgb, var(--portal-seam) 67%, transparent); }
.tl-seal__pg { stroke: var(--signal); stroke-linecap: round; stroke-dasharray: 390; stroke-dashoffset: 390; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--signal) 60%, transparent)); animation: tl-ring 900ms var(--door-out) 120ms forwards; }
@keyframes tl-ring { to { stroke-dashoffset: 0; } }
.tl-seal__lg { position: absolute; inset: 30px; animation: tl-lg 700ms var(--door-out) both; }
.tl-seal__lg svg { width: 100%; height: 100%; }
@keyframes tl-lg { from { opacity: 0; transform: scale(0.82); } to { opacity: 1; transform: none; } }
.tl-seal__tick { position: absolute; right: 4px; bottom: 6px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px var(--portal-shut), 0 6px 16px color-mix(in srgb, var(--signal) 50%, transparent); animation: tl-pop 420ms cubic-bezier(0.34, 1.4, 0.64, 1) 900ms both; }
.tl-seal__tick::after { content: ''; width: 12px; height: 7px; border: 2.5px solid var(--on-go); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -2px); }
@keyframes tl-pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
.tl-ok .tl-kick { justify-content: center; animation: tl-in 420ms var(--door-out) 300ms both; }
.tl-ok .tl-kick::before { content: none; }
.tl-ok .tl-h1 { animation: tl-in 420ms var(--door-out) 380ms both; }
.tl-ok .tl-lede { margin: 14px auto 18px; animation: tl-in 420ms var(--door-out) 460ms both; }
.tl-seal__bar { width: 220px; height: 3px; overflow: hidden; border-radius: 3px; background: color-mix(in srgb, var(--portal-seam) 67%, transparent); }
.tl-seal__bar i { display: block; width: 100%; height: 100%; background: var(--signal); transform: scaleX(0); transform-origin: left; animation: tl-fill 1300ms cubic-bezier(0.4, 0, 0.2, 1) 500ms forwards; }
@keyframes tl-fill { to { transform: scaleX(1); } }

/* leaving for the Hub; a refused answer; a request in flight */
.tl.tl-leave { animation: tl-leave 700ms cubic-bezier(0.4, 0, 0.2, 1) forwards; pointer-events: none; }
@keyframes tl-leave { to { opacity: 0; transform: scale(1.06); filter: blur(12px); } }
.tl-shake { animation: tl-shake 360ms ease; }
@keyframes tl-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.tl-btn[aria-busy="true"] { gap: 10px; }
.tl-btn[aria-busy="true"]::before { content: ''; flex: none; width: 18px; height: 18px; border: 2px solid var(--line-2); border-top-color: var(--signal); border-radius: 50%; animation: tl-spin 700ms linear infinite; }
@keyframes tl-spin { to { transform: rotate(360deg); } }


/* ══ The emailed links: the Hub's Tactile sheet ═════════════════════════════════════════════════════ */

.tl--sheet { background: var(--canvas) var(--canvas-bg); color: var(--bone); }
.tl--sheet .tl-top {
    width: min(1180px, calc(100% - 24px));
    min-height: 52px;
    margin: 22px auto 0;
    padding: 0 10px 0 18px;
    border-radius: 999px;
    background: var(--chrome-b) linear-gradient(180deg, var(--chrome-a), var(--chrome-b));
    box-shadow: var(--chrome-sh);
    color: var(--chrome-ink);
}
.tl--sheet .tl-main { align-items: flex-start; padding-top: 34px; }
.tl--sheet .tl-card { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 22px; width: min(1180px, 100%); align-items: start; }
.tl--sheet .tl-card[data-tl-solo] { grid-template-columns: minmax(0, 1fr); width: min(680px, 100%); }
.tl--sheet .tl-form { padding: 30px 32px; border: 1px solid var(--card-edge); border-radius: 28px; background: var(--card); box-shadow: var(--e1); }
.tl--sheet .tl-h1 { font-size: var(--t-hero); }
.tl--sheet .tl-side { padding: 30px 8px; }


/* Shared reports (/qbr, /audit): the sheet, wide enough for figures; the print button is the PDF. */
.tl--sheet .tl-card.tl-report { width: min(1100px, 100%); }
.tl-report__acts { display: flex; justify-content: flex-end; margin-top: 12px; }
.tl-report .hv-stat__v { margin-top: 8px; }
.tl-report .t-v { margin-top: 8px; font-family: var(--font-display); font-size: var(--t-figure); font-weight: 800; font-stretch: 112%; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; line-height: 1.05; }
@media print {
    .no-print { display: none !important; }
    .tl--sheet { background: none; }
    .tl--sheet .tl-form { border: 0; box-shadow: none; }
}

/* ══ Phones: one column, the step bar instead of the side ═══════════════════════════════════════════ */

@media (max-width: 760px) {
    .tl-top { padding: 16px; }
    .tl--sheet .tl-top { margin-top: 14px; padding: 0 8px 0 16px; }
    .tl-main { align-items: flex-start; padding: 4px 12px 20px; }
    .tl--sheet .tl-main { padding-top: 18px; }
    .tl-card,
    .tl--sheet .tl-card { grid-template-columns: minmax(0, 1fr); }
    .tl--portal .tl-card { min-height: 0; }
    .tl-form,
    .tl--sheet .tl-form { padding: 24px 20px; }
    .tl-side { display: none; }
    .tl-bar { display: block; margin-bottom: 20px; }
    .tl-f2 { grid-template-columns: 1fr; }
    .tl-offer { grid-template-columns: 1fr; }
    .tl-offer__p { grid-column: auto; grid-row: auto; margin-top: 6px; text-align: left; }
    .tl-opts { grid-template-columns: 1fr; }
    .tl-top__badge { display: none; }
    .tl-door { display: flex; flex-direction: column; height: auto; }
    .tl-shutter { position: relative; order: -1; width: auto; transform: none !important; border-radius: 24px 24px 0 0 !important; box-shadow: inset 0 -1px 0 var(--portal-seam) !important; }
    .tl-door[data-phase="auth"] .tl-shutter { min-height: 520px; border-radius: 24px !important; }
    .tl-sh { padding: 26px 22px !important; }
    .tl-pane { padding: 24px 22px; overflow: visible; }
    .tl-pane[aria-hidden="true"],
    .tl-door:is([data-phase="code"], [data-phase="auth"]) .tl-pane { display: none; }
    .tl-seal { width: 112px; height: 112px; }
}

@media (prefers-reduced-motion: reduce) {
    .tl *, .tl *::before, .tl *::after, .tl.tl-leave { animation: none !important; transition: none !important; }
    .tl-seal__pg { stroke-dashoffset: 0; }
    .tl-seal__bar i { transform: none; }
}

/* The page root holds the plain field, so the whole portal (pattern included) can fade out on leaving. */
html:has(> body.tl--portal) { background: var(--portal); }
/* Leaving for the Hub: the page fades onto the Hub's own canvas, so nothing dark flashes between the two. */
html:has(> body.tl-leave) { background: var(--canvas) var(--canvas-bg); }
