/* Local, responsive authentication surface; uses the existing semantic palette. */
.py-auth-main{width:100%;padding:24px 20px 40px;min-height:60vh}
.py-auth-layout{display:grid;grid-template-columns:minmax(260px,.85fr) minmax(0,1.15fr);max-width:1040px;margin:auto;background:var(--py-c-surface,#fff);border:1px solid var(--py-c-border,#dce3eb);border-radius:8px;overflow:hidden;box-shadow:0 12px 40px #102a560a}
.py-auth-story{padding:40px;background:var(--py-c-raised,#edf1f7);border-inline-end:1px solid var(--py-c-border,#dce3eb);display:flex;flex-direction:column;align-items:flex-start}
#page .py-auth-wordmark{display:block;width:176px;max-width:100%;text-decoration:none;direction:ltr}
.py-auth-wordmark .py-brand-art{display:block;width:100%}
.py-auth-wordmark img{width:100%;height:auto;object-fit:contain}
.py-auth-story .py-auth-tagline{font-size:11px;margin:3px 0 0;letter-spacing:.035em;color:var(--py-c-muted)}
.py-auth-orbit{position:relative;display:grid;place-items:center;align-self:center;width:210px;height:210px;margin:30px 0 34px;color:var(--py-c-link,#102a56)}
.py-auth-orbit svg{width:128px;z-index:1}
.py-auth-orbit-ring{position:absolute;inset:0;border:1px solid var(--py-c-control,#738298);border-radius:50%;transform:rotate(-18deg)}
.py-auth-orbit-ring:before,.py-auth-orbit-ring:after{content:"";position:absolute;inset:18px -14px;border:1px dashed var(--py-c-border,#dce3eb);border-radius:50%}
.py-auth-orbit-ring:after{inset:12px;transform:rotate(70deg)}
.py-auth-code{position:absolute;bottom:8px;padding:3px 12px;background:var(--py-c-surface,#fff);border:1px solid var(--py-c-border,#dce3eb);border-radius:4px;font-family:var(--py-code);font-size:12px}
.py-auth-story h2{font-size:29px;line-height:1.65;font-weight:800;margin:0 0 16px}
.py-auth-story p,.py-auth-story li{font-size:14px;color:var(--py-c-muted,#526176)}
.py-auth-story ul{padding:0;margin:16px 0 30px;list-style:none}
.py-auth-story li{margin:10px 0}
.py-auth-story li:before{content:"";display:inline-block;width:6px;height:6px;border-radius:2px;background:var(--py-c-link,#102a56);margin-inline-end:10px}
.py-auth-back{margin-top:auto;font-weight:650;text-decoration:none;font-size:14px}
.py-auth-panel{padding:30px 32px;min-width:0}
.py-auth-progress{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:28px;font-size:11px;font-weight:600;color:var(--py-c-muted,#526176)}
.py-auth-progress span{padding:5px 7px;border-bottom:2px solid transparent}
.py-auth-progress [aria-current]{color:var(--py-c-link,#102a56);border-color:var(--py-c-link,#102a56)}
.py-auth-panel h1{font-size:25px;line-height:1.6;font-weight:800;margin:0 0 10px}
.py-auth-panel>p{font-size:14px;color:var(--py-c-muted,#526176);margin-bottom:25px}
.py-auth-panel form{margin:0}
.py-auth-panel label{display:block;font-size:13px;font-weight:650;margin:0 0 8px}
.py-auth-required{color:#b4233c}
[data-py-theme=dark] .py-auth-required{color:#ffb3c0}
#page .py-auth-panel :is(input,select,textarea){min-width:0;border:1px solid var(--py-c-control,#738298);border-radius:5px;background:var(--py-c-surface,#fff);color:var(--py-c-text,#0b0f14);font-family:var(--py-font);font-size:14px;min-height:48px;width:100%;padding:10px 12px;box-sizing:border-box}
.py-auth-panel input::placeholder,.py-auth-panel textarea::placeholder{color:var(--py-c-muted,#526176);opacity:.85;font-size:12px;letter-spacing:0}
#page .py-auth-panel [aria-invalid=true]{border-color:#b4233c}
[data-py-theme=dark] #page .py-auth-panel [aria-invalid=true]{border-color:#ffb3c0}
.py-auth-phone{display:flex;align-items:stretch;gap:8px}
.py-auth-country{display:flex;align-items:center;gap:8px;padding:10px;background:var(--py-c-raised,#edf1f7);border:1px solid var(--py-c-border,#dce3eb);border-radius:5px;font-weight:650;flex-shrink:0}
.py-auth-country img{width:28px;height:20px;border-radius:2px}
.py-auth-panel small{display:block;font-size:11px;color:var(--py-c-muted,#526176);margin:8px 0 0}
.py-auth-error{display:block;color:#b4233c;font-size:12px;min-height:0;margin:5px 0}
[data-py-theme=dark] .py-auth-error{color:#ffb3c0}
#page .py-auth-panel button{font-family:var(--py-font);border-radius:5px;min-height:44px;font-size:13px;cursor:pointer}
#page .py-auth-panel .py-auth-primary{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--py-c-link,#102a56);color:var(--py-c-surface,#fff);border:1px solid var(--py-c-link,#102a56);font-size:14px;font-weight:750;padding:12px 18px;margin-top:24px;min-height:50px;box-shadow:none}
#page .py-auth-panel .py-auth-primary:hover{filter:brightness(.94)}
#page .py-auth-panel button:disabled{opacity:.55;cursor:not-allowed}
#page .py-auth-panel :is(.py-auth-help,[data-edit-phone],[data-resend],[data-help-close]){padding:8px 0;background:transparent;color:var(--py-c-link,#102a56);border:0;text-decoration:underline;text-underline-offset:4px}
.py-auth-help{display:block;margin:14px auto 0}
.py-auth-notice{padding:12px 14px;background:var(--py-c-raised,#edf1f7);border:1px solid var(--py-c-border,#dce3eb);border-inline-start:3px solid var(--py-c-link,#102a56);border-radius:4px;font-size:13px;margin:16px 0}
.py-auth-destination{font-size:13px;margin:0 0 16px}
.py-auth-destination bdi{font-weight:700}
#page .py-auth-panel .py-auth-code-input{font-size:24px;text-align:center;letter-spacing:8px;font-weight:750;min-height:60px}
.py-auth-resend{display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:space-between;margin:16px 0;font-size:12px}
.py-auth-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px 16px}
.py-auth-full{grid-column:1/-1}
.py-auth-verified{border-inline-start:3px solid var(--py-c-link);padding-inline-start:12px;font-size:13px;margin:0 0 20px}
.py-auth-privacy{font-size:11px;color:var(--py-c-muted);margin:16px 0 0}
.py-auth-bottom{border-top:1px solid var(--py-c-border);display:flex;justify-content:space-between;gap:12px;padding-top:18px;margin-top:28px;font-size:11px;color:var(--py-c-muted)}
.py-auth-help-box{padding:18px;background:var(--py-c-raised);border:1px solid var(--py-c-border);border-radius:5px;margin-top:16px}
.py-auth-help-box h2{font-size:17px}
.py-auth-help-box p{font-size:13px}
.py-auth-preview{font-size:11px;padding:10px;border:1px dashed var(--py-c-control);border-radius:4px;margin-bottom:18px}
.py-auth-preview span{display:block}
#page .py-auth-preview button{background:var(--py-c-raised);color:var(--py-c-link);border:1px solid var(--py-c-border);padding:5px 12px;min-height:36px;margin:6px 0 0 6px}
.py-auth-layout [hidden]{display:none!important}
@media(max-width:780px){.py-auth-main{padding:16px 12px 28px}.py-auth-layout{grid-template-columns:1fr;max-width:540px}.py-auth-story{padding:24px;border-inline-end:0;border-bottom:1px solid var(--py-c-border)}.py-auth-story h2{font-size:21px;margin:12px 0 8px}.py-auth-story h2 br{display:none}.py-auth-orbit,.py-auth-story ul{display:none}.py-auth-wordmark{font-size:24px!important}.py-auth-story p{margin:0 0 10px;font-size:12px}.py-auth-back{font-size:12px}.py-auth-panel{padding:24px}.py-auth-progress{gap:3px;margin-bottom:20px;font-size:10px}.py-auth-panel h1{font-size:23px}}
@media(max-width:420px){.py-auth-panel{padding:20px 16px}.py-auth-fields{grid-template-columns:1fr}.py-auth-country{padding:8px;gap:6px}.py-auth-panel input::placeholder{font-size:12px}}
@media(prefers-reduced-motion:reduce){.py-auth-layout *{scroll-behavior:auto}}

/* Agreement and explicit consent. No fixed scroll-to-bottom or timer barrier. */
.py-auth-modes{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0 0 24px;padding:4px;background:var(--py-c-raised);border-radius:6px}
#page .py-auth-modes button{background:transparent;color:var(--py-c-muted);border:1px solid transparent;padding:10px}
#page .py-auth-modes [aria-pressed=true]{background:var(--py-c-surface);color:var(--py-c-link);border-color:var(--py-c-border);font-weight:750}
.py-auth-consent{margin-top:20px;padding:16px;border:1px solid var(--py-c-border);border-radius:6px;background:var(--py-c-raised)}
.py-auth-consent strong{font-size:14px}.py-auth-consent p{font-size:12px;margin:5px 0 10px}
#page .py-auth-panel [data-read-agreement]{background:var(--py-c-surface);color:var(--py-c-link);border:1px solid var(--py-c-control);padding:8px 12px;width:100%;font-weight:650}
#page .py-auth-panel .py-auth-check{display:flex;align-items:flex-start;gap:10px;margin-top:14px;font-size:12px;line-height:2}
#page .py-auth-panel input[type=checkbox]{appearance:auto;flex:0 0 20px;width:20px;height:20px;min-height:20px;margin:3px 0 0;padding:0;accent-color:var(--py-c-link)}
.py-agreement-dialog{box-sizing:border-box;width:min(780px,calc(100vw - 28px));max-height:85dvh;padding:0;border:1px solid var(--py-c-border);border-radius:8px;color:var(--py-c-text);background:var(--py-c-surface);box-shadow:0 24px 80px #0005}
.py-agreement-dialog[open]{display:flex;flex-direction:column}
.py-agreement-dialog::backdrop{background:#0b1424b8}
.py-agreement-dialog>header{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:18px 24px;border-bottom:1px solid var(--py-c-border)}
.py-agreement-dialog h2{font-size:18px;margin:0}
#page .py-agreement-dialog button{background:var(--py-c-raised);color:var(--py-c-link);border:1px solid var(--py-c-control);min-width:44px;padding:8px 14px}
.py-agreement-dialog .py-agreement-text{padding:24px;overflow-y:auto;overscroll-behavior:contain}
.py-agreement-dialog>footer{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 24px;border-top:1px solid var(--py-c-border);font-size:12px}
.py-agreement-dialog>footer small{flex-basis:100%;margin:0}
.py-agreement-text{font-size:14px;line-height:2.1;overflow-wrap:anywhere}
.py-agreement-text h2{font-size:18px!important;font-weight:750;margin:30px 0 12px!important;color:var(--py-c-text)}
.py-agreement-text p{margin:0 0 14px;text-align:justify;text-align-last:start;color:var(--py-c-text)}
.py-agreement-provider{padding:4px 20px 10px;border:1px solid var(--py-c-border);border-radius:6px;background:var(--py-c-raised)}
.py-agreement-page{width:min(900px,calc(100% - 32px));margin:36px auto 60px;padding:32px;background:var(--py-c-surface);color:var(--py-c-text);border:1px solid var(--py-c-border);border-radius:8px}
.py-agreement-page nav{font-size:12px;margin-bottom:24px}.py-agreement-kicker{color:var(--py-c-link);font-size:12px;font-weight:650}
.py-agreement-page h1{font-size:clamp(23px,3vw,32px);line-height:1.7;margin:10px 0 16px}
.py-agreement-draft{padding:12px 16px;border-inline-start:3px solid var(--py-c-link);background:var(--py-c-raised)}
.py-agreement-actions{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin:24px 0;font-size:13px}
#page .py-agreement-actions button{background:var(--py-c-link);color:var(--py-c-surface);padding:12px 18px;border:1px solid var(--py-c-link);border-radius:5px;min-height:44px}
.py-agreement-page footer{margin-top:30px;padding-top:20px;border-top:1px solid var(--py-c-border);font-size:12px;overflow-wrap:anywhere}
.py-auth-layout :is(button,a,input,select,textarea):focus-visible,.py-agreement-page :is(a,button):focus-visible{outline:3px solid var(--py-c-link);outline-offset:3px}
@media(max-width:600px){.py-agreement-page{padding:22px 18px}.py-agreement-dialog>header,.py-agreement-dialog>footer{padding:14px 16px}.py-agreement-dialog .py-agreement-text{padding:18px 16px}.py-agreement-text{font-size:13px}.py-agreement-dialog h2{font-size:16px}}
@media print{body *{visibility:hidden}.py-agreement-page,.py-agreement-page *{visibility:visible}.py-agreement-page{position:absolute;inset:0;margin:0;padding:0;width:100%;border:0;color:#000;background:#fff}.py-agreement-page .py-agreement-actions,.py-agreement-page nav{display:none}.py-agreement-text p,.py-agreement-text h2{color:#000!important}.py-agreement-provider{background:#fff}.py-agreement-text h2{break-after:avoid}.py-agreement-text p{orphans:3;widows:3}}

.py-agreement-provider p{text-align:start}
@media(max-width:600px){.py-agreement-text p{text-align:start}}

/* Standalone legal document: bounded measure, explicit sections and local navigation. */
.py-agreement-page.py-agreement-document{width:min(1120px,calc(100% - 48px));margin:32px auto 64px;padding:0;border:0;border-radius:0;background:transparent}
.py-agreement-document .py-legal-breadcrumb{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 22px;font-size:12px;color:var(--py-c-muted)}
.py-legal-breadcrumb a{text-decoration:none}
.py-legal-hero{padding:30px 34px;margin-bottom:28px;background:var(--py-c-surface);border:1px solid var(--py-c-border);border-radius:8px;position:relative;overflow:hidden}
.py-legal-hero:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:var(--py-c-link)}
.py-legal-heading{display:flex;align-items:center;gap:18px}
.py-legal-symbol{display:grid;place-items:center;flex:0 0 56px;width:56px;height:56px;color:var(--py-c-link);background:var(--py-c-raised);border:1px solid var(--py-c-border);border-radius:8px}
.py-legal-symbol svg{width:30px;height:30px}
.py-agreement-document .py-legal-heading h1{font-size:clamp(22px,2.5vw,29px);font-weight:800;line-height:1.65;margin:5px 0 0}
.py-legal-lead{font-size:14px;line-height:2;color:var(--py-c-muted);margin:20px 0}
.py-legal-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-size:12px}
.py-legal-state{padding:6px 10px;border:1px solid var(--py-c-border);border-radius:4px;background:var(--py-c-raised);font-weight:650}
.py-legal-date{color:var(--py-c-muted)}
#page .py-legal-toolbar button{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin-inline-start:auto;border:1px solid var(--py-c-control);border-radius:5px;padding:9px 14px;background:var(--py-c-surface);color:var(--py-c-link);font-size:12px;font-weight:650}
.py-legal-toolbar button svg{width:19px;height:19px;flex:none}
.py-legal-preview-note{font-size:12px;line-height:1.9;margin:18px 0 0;padding-top:16px;border-top:1px solid var(--py-c-border);color:var(--py-c-muted)}
.py-legal-layout{display:grid;grid-template-columns:244px minmax(0,1fr);gap:24px;align-items:start}
.py-legal-sidebar{position:sticky;top:140px;min-width:0}
.py-legal-contents{border:1px solid var(--py-c-border);border-radius:7px;background:var(--py-c-surface);overflow:hidden}
.py-legal-contents summary{display:flex;justify-content:space-between;gap:8px;cursor:pointer;min-height:52px;padding:16px;font-size:13px;font-weight:750;list-style:none}
.py-legal-contents summary::-webkit-details-marker{display:none}
.py-legal-contents summary span{font-size:18px;transition:transform .15s}
.py-legal-contents[open] summary span{transform:rotate(180deg)}
.py-agreement-document .py-legal-contents nav{margin:0;padding:0 8px 8px}
.py-legal-contents ol{list-style:none;margin:0;padding:0}
.py-legal-contents li{margin:0}
#page .py-legal-contents a{display:flex;align-items:center;gap:10px;padding:11px 10px;min-height:44px;text-decoration:none;font-size:12px;font-weight:550;line-height:1.7;color:var(--py-c-muted);border-radius:4px;border:1px solid transparent}
#page .py-legal-contents a:hover,#page .py-legal-contents [aria-current=location]{color:var(--py-c-link);background:var(--py-c-raised);border-color:var(--py-c-border)}
.py-legal-nav-number{display:grid;place-items:center;flex:0 0 23px;height:23px;font-size:11px;color:var(--py-c-link);background:var(--py-c-raised);border-radius:3px}
.py-legal-sidebar-note{padding:20px 6px;font-size:12px;color:var(--py-c-muted)}
.py-legal-sidebar-note strong{color:var(--py-c-text);font-size:13px}
.py-legal-sidebar-note p{margin:8px 0 12px;line-height:2}
.py-legal-sidebar-note a{font-weight:650;text-decoration:none}
.py-legal-content{min-width:0;display:grid;gap:20px}
.py-legal-provider-wrap,.py-legal-section,.py-legal-end{padding:26px 30px;background:var(--py-c-surface);border:1px solid var(--py-c-border);border-radius:7px}
.py-legal-provider-wrap{background:var(--py-c-raised)}
.py-legal-provider-wrap .py-agreement-provider{padding:0;border:0;background:transparent}
.py-legal-provider-wrap .py-agreement-provider h2{font-size:16px!important;margin:0 0 16px!important}
.py-legal-provider-wrap .py-agreement-provider p{font-size:13px;line-height:2.2;margin:0;text-align:start}
.py-legal-provider-wrap .py-agreement-provider strong{font-weight:750}
.py-legal-section{scroll-margin-top:145px}
.py-legal-section h2{display:flex;align-items:center;gap:12px;font-size:18px!important;line-height:1.75;margin:0 0 20px!important;padding-bottom:18px;border-bottom:1px solid var(--py-c-border)}
.py-legal-section-number{display:grid;place-items:center;flex:0 0 36px;height:36px;font-size:14px;font-weight:700;border-radius:5px;background:var(--py-c-raised);color:var(--py-c-link)}
.py-legal-section p{font-size:14px;line-height:2.2;margin:0 0 16px}
.py-legal-section p:last-child{margin-bottom:0}
.py-legal-section :is(ul,ol){padding-inline-start:24px;margin:12px 0;line-height:2.2}
.py-legal-end strong{font-size:17px}.py-legal-end p{font-size:13px;line-height:2;color:var(--py-c-muted);margin:10px 0 18px}
html[data-py-theme] #page .py-legal-return,html[data-py-theme] #page .py-legal-return:hover{display:inline-flex;align-items:center;gap:20px;min-height:46px;padding:11px 18px;border-radius:5px;background:var(--py-c-link);color:var(--py-c-surface);font-size:13px;font-weight:700;text-decoration:none}
.py-legal-version{margin-top:24px;padding-top:20px;border-top:1px solid var(--py-c-border);font-size:12px;overflow-wrap:anywhere}
.py-legal-version summary{cursor:pointer;min-height:32px}
@media(max-width:850px){.py-agreement-page.py-agreement-document{width:calc(100% - 32px);margin:24px auto 40px}.py-legal-layout{grid-template-columns:1fr;gap:20px}.py-legal-sidebar{position:static}.py-legal-sidebar-note{display:none}.py-legal-contents ol{display:grid;grid-template-columns:1fr 1fr}.py-legal-hero{padding:24px}.py-legal-contents summary{padding:14px 18px}.py-legal-section{scroll-margin-top:120px}}
@media(max-width:520px){.py-legal-hero{padding:24px 18px}.py-legal-heading{align-items:flex-start;gap:12px}.py-legal-symbol{flex-basis:42px;width:42px;height:42px}.py-legal-symbol svg{width:25px;height:25px}.py-agreement-document .py-legal-heading h1{font-size:21px}.py-legal-lead{font-size:13px}.py-legal-toolbar{gap:10px}.py-legal-toolbar button{margin-inline-start:0!important}.py-legal-provider-wrap,.py-legal-section,.py-legal-end{padding:22px 18px}.py-legal-section h2{font-size:16px!important;gap:10px}.py-legal-section-number{flex-basis:30px;height:30px;font-size:12px}.py-legal-section p{font-size:13px;line-height:2.15;text-align:start}.py-legal-contents ol{grid-template-columns:1fr}.py-legal-end .py-legal-return{display:flex!important;justify-content:space-between}}
@media print{.py-agreement-page.py-agreement-document{position:absolute;inset:0;width:100%;margin:0;padding:0}.py-legal-breadcrumb,.py-legal-sidebar,.py-legal-toolbar button,.py-legal-end{display:none!important}.py-legal-layout{display:block}.py-legal-hero,.py-legal-provider-wrap,.py-legal-section{padding:12px 0;margin:0 0 16px;border:0;border-radius:0;background:#fff;color:#000}.py-legal-section h2{break-after:avoid;color:#000!important}.py-legal-section-number{color:#000;background:#fff;border:1px solid #888}.py-legal-content{display:block}.py-legal-hero:before{display:none}}
@media(prefers-reduced-motion:reduce){.py-legal-contents summary span{transition:none}}

/* Identity methods and server-backed retry countdown. */
.py-auth-methods{display:flex;gap:6px;padding:5px;background:var(--py-c-raised,#eef2f7);border:1px solid var(--py-c-border,#d7dfeb);border-radius:6px;margin:18px 0}
.py-auth-methods button{flex:1;background:transparent;color:var(--py-c-text,#142743);border:0;border-radius:4px;padding:10px 12px;font:inherit;cursor:pointer}
.py-auth-methods button[aria-pressed=true]{background:var(--py-c-link,#102a56);color:var(--py-c-surface,#fff);font-weight:700}
.py-auth-password-links{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;margin:8px 0 18px}
.py-auth-password-links button{border:0;background:none;color:var(--py-c-link,#174779);font:inherit;font-size:12px;padding:5px 0;text-decoration:underline;text-underline-offset:5px;cursor:pointer}
.py-auth-countdown{display:flex;align-items:center;gap:16px;padding:16px;margin:18px 0;border:1px solid var(--py-c-border,#cfd9e8);border-radius:6px;background:var(--py-c-raised,#eef2f7)}
.py-auth-countdown[hidden]{display:none}
.py-auth-countdown strong{display:block;font-size:13px;color:var(--py-c-text,#142743)}
.py-auth-countdown p{margin:6px 0 0;font-size:12px;line-height:1.9;color:var(--py-c-muted,#52627b)}
.py-auth-clock{position:relative;flex:0 0 76px;height:76px;color:var(--py-c-link,#174779)}
.py-auth-clock svg{width:76px;height:76px;transform:rotate(-90deg)}
.py-clock-track{stroke:var(--py-c-border,#cfd9e8);stroke-width:2}
.py-clock-progress{stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:var(--py-clock-progress,0);transition:stroke-dashoffset .2s linear}
.py-auth-clock>span{position:absolute;inset:0;display:grid;place-items:center;font-size:17px;font-weight:800;font-variant-numeric:tabular-nums}
.py-auth-panel [data-password-intro]{font-size:13px;line-height:2}
.py-auth-panel [data-auth-form=new_password] label{margin-top:16px}
@media(prefers-reduced-motion:reduce){.py-clock-progress{transition:none}}

.py-auth-panel [hidden]{display:none!important}

/* Authentication review: compact touch layouts and explicit focus, 2026-10-13. */
.py-auth-story{justify-content:flex-start;gap:0}
.py-auth-story h2{font-size:26px;line-height:1.7}
.py-auth-story p{line-height:1.95}
.py-auth-orbit{width:172px;height:172px;margin:26px 0}
.py-auth-orbit svg{width:110px}
.py-auth-progress{gap:6px;margin-bottom:20px;font-size:12px;line-height:1.8}
.py-auth-progress span{padding:6px 8px;border-radius:4px 4px 0 0}
.py-auth-progress [aria-current]{background:var(--py-c-raised)}
.py-auth-panel h1{font-size:24px;scroll-margin-top:120px}
.py-auth-panel>p{margin-bottom:20px;line-height:1.9}
.py-auth-modes{margin-bottom:20px}
.py-auth-methods{margin:16px 0}
.py-auth-fields>div{min-width:0}
.py-auth-phone{gap:0;border:1px solid var(--py-c-control);border-radius:6px;background:var(--py-c-surface);overflow:hidden}
.py-auth-country{border:0;border-radius:0;border-inline-end:1px solid var(--py-c-border);padding:8px 10px;gap:6px;font-size:14px}
#page .py-auth-phone input{border:0;border-radius:0;flex:1;width:0;min-width:0;font-size:17px;letter-spacing:.035em;min-height:48px;background:transparent;box-shadow:none}
#page .py-auth-phone input::placeholder{font-size:15px;letter-spacing:.04em;color:var(--py-c-muted);opacity:.8}
.py-auth-phone:focus-within{outline:2px solid var(--py-c-link);outline-offset:3px}
.py-auth-phone:has([aria-invalid=true]){border-color:#b4233c}
[data-py-theme=dark] .py-auth-phone:has([aria-invalid=true]){border-color:#ffb3c0}
#page .py-auth-panel :is(input,textarea,select):focus-visible{outline:2px solid var(--py-c-link);outline-offset:3px;box-shadow:none}
#page .py-auth-phone input:focus-visible{outline:0}
#page .py-auth-panel :is(button,a):focus-visible,#page .py-auth-story a:focus-visible{outline:2px solid var(--py-c-link);outline-offset:3px}
#page .py-auth-title:focus,.py-auth-panel h1:focus{outline:none}
#page .py-auth-panel .py-auth-primary{min-height:48px;margin-top:20px;line-height:1.8}
.py-auth-panel [data-auth-loading]{padding:8px 12px;border-inline-start:3px solid var(--py-c-link);background:var(--py-c-raised);font-size:12px;margin:0 0 14px}
#page .py-auth-panel [data-auth-retry]{margin:0 0 12px}
#page .py-auth-panel .py-auth-code-input{font-size:26px;letter-spacing:.3em;min-height:56px;font-variant-numeric:tabular-nums}
#page .py-auth-panel .py-auth-code-input::placeholder{font-size:14px;letter-spacing:0;font-weight:400;color:var(--py-c-muted)}
.py-auth-countdown{gap:12px;padding:12px}
.py-auth-countdown>div{min-width:0}
.py-auth-clock{flex-basis:64px;height:64px}
.py-auth-clock svg{width:64px;height:64px}
.py-auth-clock>span{font-size:15px}
.py-auth-bottom{margin-top:20px;padding-top:14px}
.py-auth-notice:empty,.py-auth-error:empty{display:none}
.py-auth-layout:not([aria-busy=true]) form:not([hidden]){animation:py-auth-enter .18s ease-out both}
@keyframes py-auth-enter{from{opacity:.35;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(min-width:781px) and (max-width:1100px){
 .py-auth-layout{grid-template-columns:minmax(220px,.75fr) minmax(0,1.25fr)}
 .py-auth-story{padding:28px 24px}.py-auth-panel{padding:28px 24px}
 .py-auth-story h2{font-size:23px}.py-auth-story p,.py-auth-story li{font-size:13px}
}
@media(max-width:780px){
 .py-auth-layout{max-width:620px}
 .py-auth-story{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 12px;padding:16px 22px}
 #page .py-auth-wordmark{grid-area:1/1;width:138px}
 .py-auth-story .py-auth-tagline{grid-area:2/1;font-size:10px;margin:0}
 .py-auth-back{grid-area:1/2/3/3;align-self:center;margin:0;font-size:12px}
 .py-auth-story :is(h2,p:not(.py-auth-tagline),ul,.py-auth-orbit){display:none}
 .py-auth-panel{padding:24px}
 .py-auth-panel h1{font-size:22px}
 .py-auth-progress{margin-bottom:16px;font-size:11px;gap:4px}
 .py-auth-progress span{padding:5px 6px}
}
@media(max-width:480px){
 .py-auth-story{padding:14px 16px;gap:3px 8px}
 #page .py-auth-wordmark{width:124px}
 .py-auth-back{font-size:11px}
 .py-auth-panel{padding:20px 16px}
 .py-auth-panel h1{font-size:21px}
 .py-auth-panel>p{font-size:13px;margin-bottom:16px}
 .py-auth-fields{grid-template-columns:1fr;gap:12px}
 #page .py-auth-panel :is(input,select,textarea){font-size:16px}
 .py-auth-panel label{font-size:13px}
 .py-auth-progress{font-size:10px;gap:3px}
 .py-auth-progress span{padding:5px 4px}
 .py-auth-countdown strong{font-size:12px}.py-auth-countdown p{font-size:11px}
 .py-auth-consent{padding:12px}.py-auth-resend{align-items:flex-start}
 .py-agreement-dialog>header,.py-agreement-dialog>footer{padding:12px 16px}
 .py-agreement-dialog h2{font-size:15px}.py-agreement-dialog .py-agreement-text{padding:16px}
}
@media(prefers-reduced-motion:reduce){.py-auth-layout form:not([hidden]){animation:none!important}}

/* Keep form rows and final-brand tagline aligned despite theme defaults. */
#page .py-auth-panel :is(input,select,textarea){margin:0}
.py-auth-story .py-auth-tagline{width:176px;max-width:100%;text-align:center}
.py-auth-preview summary{font-weight:650;cursor:pointer;min-height:32px;display:flex;align-items:center;gap:8px}
.py-auth-preview summary:before{content:"+";font-size:18px;line-height:1}
.py-auth-preview[open] summary:before{content:"−"}
@media(max-width:780px){.py-auth-story .py-auth-tagline{width:138px;justify-self:start;direction:rtl}}
@media(max-width:480px){.py-auth-story .py-auth-tagline{width:124px}}

/* Final Py artwork in a compact medallion; keep the source vector unchanged. */
.py-auth-orbit{border:1px solid var(--py-c-border);border-radius:50%;background:#f3f6fc;width:156px;height:156px}
.py-auth-orbit-ring{inset:9px;border-color:#ccd7e5;transform:none}
.py-auth-orbit-ring:before,.py-auth-orbit-ring:after{display:none}
.py-auth-orbit .py-auth-monogram{position:relative;width:98px;height:104px;object-fit:contain;z-index:1}
#page .py-auth-story .py-auth-back{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:9px 14px;min-height:42px;border:1px solid var(--py-c-control);border-radius:6px;background:var(--py-c-surface);color:var(--py-c-link);font-size:12px;font-weight:650;line-height:1.8;text-decoration:none;transition:background .15s,border-color .15s}
.py-auth-back svg{width:18px;height:18px;flex-shrink:0}
#page .py-auth-story .py-auth-back:hover{background:var(--py-c-raised);border-color:var(--py-c-link)}
@media(min-width:601px) and (max-width:780px){
 .py-auth-story{grid-template-columns:80px minmax(0,1fr) auto;column-gap:18px;padding:18px 22px}
 .py-auth-story div.py-auth-orbit{display:grid;grid-area:1/1/3/2;width:80px;height:80px;margin:0}
 .py-auth-orbit .py-auth-monogram{width:50px;height:53px}
 .py-auth-orbit-ring{inset:5px}
 #page .py-auth-story .py-auth-wordmark{grid-area:1/2;align-self:end}
 .py-auth-story .py-auth-tagline{grid-area:2/2;align-self:start}
 #page .py-auth-story .py-auth-back{grid-area:1/3/3/4}
}
@media(max-width:600px){
 .py-auth-story{display:flex;align-items:center;gap:0;padding:16px}
 #page .py-auth-story .py-auth-wordmark{width:136px}
 .py-auth-story .py-auth-tagline{width:136px;text-align:center;margin-top:3px}
 .py-auth-story .py-auth-orbit{display:none}
 #page .py-auth-story .py-auth-back{margin:12px 0 0;min-height:40px;padding:7px 12px;font-size:11px}
}
@media(prefers-reduced-motion:reduce){#page .py-auth-story .py-auth-back{transition:none}}

#page .py-auth-phone input:focus{border:0;outline:0;box-shadow:none}

/* One brand mark on desktop/tablet; mobile starts directly with the form. */
@media(min-width:601px){
 #page .py-auth-story .py-auth-wordmark{display:none}
 .py-auth-story .py-auth-tagline{align-self:center;width:auto;text-align:center;margin:-12px 0 24px}
}
@media(min-width:601px) and (max-width:780px){
 .py-auth-story{grid-template-columns:minmax(0,1fr) auto;row-gap:5px}
 .py-auth-story div.py-auth-orbit{grid-area:1/1;justify-self:center}
 .py-auth-story .py-auth-tagline{grid-area:2/1;justify-self:center;margin:0;font-size:10px}
 #page .py-auth-story .py-auth-back{grid-area:1/2/3/3}
}
@media(max-width:600px){.py-auth-story .py-auth-tagline{margin:3px 0 0}}

.py-auth-mobile-back{display:none}
@media(max-width:600px){
 .py-auth-main{padding:8px 10px 20px}
 #page .py-auth-layout .py-auth-story{display:none}
 #page .py-auth-story .py-auth-back{display:none}
 .py-auth-panel{display:flex;flex-direction:column;padding:16px}
 .py-auth-panel>.py-auth-preview{order:20;margin:16px 0 0;padding:6px 10px}
 .py-auth-progress{margin-bottom:10px}
 .py-auth-panel h1{font-size:20px;margin-bottom:6px}
 .py-auth-panel>p{margin-bottom:12px;font-size:12px;line-height:1.8}
 .py-auth-modes{margin-bottom:14px}
 #page .py-auth-panel .py-auth-modes button{padding:8px;min-height:44px}
 .py-auth-methods{margin:12px 0}
 #page .py-auth-panel .py-auth-primary{margin-top:14px}
 #page .py-auth-panel .py-auth-mobile-back{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 12px;margin-top:12px;border:1px solid var(--py-c-border);border-radius:5px;background:var(--py-c-raised);color:var(--py-c-link);font-size:12px;font-weight:600;text-decoration:none}
 .py-auth-mobile-back svg{width:17px;height:17px}
}
