/* Cinematic entry: the film fills the canvas; the interface stays quiet. */
body:has(.welcome-shell){background:var(--ow-deep)}
body:has(.auth-route-shell){background:var(--ow-charcoal)}
.welcome-shell{max-width:none;margin:0;padding:0;background:var(--ow-charcoal);color:#fff;isolation:isolate}
.welcome-experience{position:relative;display:flex;flex-direction:column;justify-content:space-between;min-height:100svh;min-height:100dvh;padding:40px clamp(32px,6vw,96px) 64px;overflow:hidden;isolation:isolate}
.welcome-film{position:absolute;inset:0;z-index:-2;background:#313735;pointer-events:none}
.welcome-film picture,.welcome-film img,.welcome-film video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.welcome-film video{opacity:0;transition:opacity .65s ease}
.welcome-film video.is-ready{opacity:1}
.welcome-film:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#080b0bba,transparent 90%),linear-gradient(0deg,#080b0bf2,transparent 90%)}
.welcome-wordmark{align-self:flex-start;margin:0;color:#fff;position:relative;z-index:1}
.welcome-content{width:100%;max-width:600px;padding-top:100px}
.welcome-content h1{font-family:var(--font);font-size:clamp(46px,4.8vw,68px);font-weight:500;letter-spacing:-2.2px;line-height:1.06;color:#fff}
.welcome-content>p{font-size:17px;line-height:1.65;color:#ffffffe0;max-width:380px;margin-top:24px;font-weight:400}
.welcome-actions{max-width:380px;display:grid;grid-template-columns:1fr;gap:12px;margin-top:36px}
.welcome-shell :is(button,a):focus-visible{outline:2px solid #fff;outline-offset:5px}

/* Account entry keeps its neutral charcoal surface in either app appearance. */
.auth-route-shell,[data-theme] dialog.auth-sheet,[data-theme] #entry-auth-dialog,body:has(#entry-auth-dialog[open]) dialog.phone-country-dialog{
 --surface:var(--ow-charcoal);--surface-raised:var(--ow-dark-panel);--surface-muted:var(--ow-dark-workspace);
 --field:var(--ow-deep);--control:var(--ow-dark-raised);--ink:var(--ow-on-dark);--secondary:var(--ow-secondary-dark);--muted:var(--ow-secondary-dark);
 --line:var(--ow-dark-line);--accent:#ededed;--accent-soft:#ffffff14;--edge-highlight:inset 0 1px 0 #ffffff08;
 color:var(--ink);color-scheme:dark;
}

[data-theme] dialog.auth-sheet{width:min(440px,calc(100% - 32px));max-width:440px;max-height:calc(100dvh - 48px);padding:32px 28px 36px;margin:auto;border:1px solid var(--line);border-radius:36px;background:var(--surface);box-shadow:0 20px 90px #0005;overflow:auto;overscroll-behavior:contain}
[data-theme] dialog.auth-sheet::backdrop{background:#0007;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.auth-sheet .auth-identity{width:56px;height:56px;margin:8px auto 22px;color:var(--secondary);display:grid;place-items:center}
.auth-identity .world-symbol{width:56px;height:56px}
.auth-sheet .modal-top{display:block;margin:0;padding:0;text-align:center}
.auth-sheet .modal-top h2{font-family:var(--font);font-size:32px;font-weight:550;line-height:1.2;letter-spacing:-1px;color:var(--ink)}
/* Dialog headings receive focus for announcement, but are not interactive controls. */
.modal-top h2[tabindex="-1"]:focus{outline:none}
.auth-sheet .modal-top .icon-button{position:absolute;top:14px;right:14px;width:44px;height:44px;padding:0;display:grid;place-items:center;border:0;background:transparent;color:var(--secondary)}
.auth-sheet .modal-top .icon-button .icon{width:18px;height:18px}
.auth-sheet-intro{font-size:16px;line-height:1.5;color:var(--secondary);text-align:center;margin:14px auto 0;max-width:320px}
.auth-sheet .auth-options{display:grid;gap:12px;margin:32px 0 0}
.auth-sheet .auth-provider{min-height:58px;padding:15px 16px;font-size:16px;font-weight:500;letter-spacing:-.35px;gap:11px;color:var(--ink);background:var(--field);border:1px solid var(--line);box-shadow:none;border-radius:100px}
.auth-sheet .auth-provider:hover{background:var(--control)}
.auth-sheet .auth-provider>svg{width:23px;height:23px;margin:0;flex:0 0 23px}
.auth-sheet .auth-terms{font-size:13px;line-height:1.6;color:var(--secondary);max-width:310px;margin:28px auto 0}
.auth-sheet .auth-terms button{color:var(--ink);font-weight:600;text-decoration:none}
.auth-sheet .auth-error{background:var(--surface-muted);color:var(--ink);font-size:13px;margin-top:18px}

/* Account forms stay focused on mobile; desktop uses a centered, bounded panel. */
.auth-route-shell{min-height:100svh;min-height:100dvh;background:var(--surface);padding:clamp(40px,9vh,80px) 24px;display:grid;align-items:start;justify-items:center}
.auth-route-shell>.entry-main{width:100%;padding:0;max-width:440px;margin:0}
.auth-route-shell .entry-panel{width:100%;max-width:none;margin:0;padding:28px 32px 32px;border-radius:30px;background:var(--surface);border:0;min-height:0;display:flex;flex-direction:column}
.auth-route-shell .entry-flow-header{margin:0 0 28px;gap:24px}
.auth-route-shell .entry-heading{margin:0 0 26px;text-align:left}
.auth-route-shell .entry-heading h1{font-family:var(--font);font-size:29px;font-weight:550;letter-spacing:-.9px;line-height:1.2}
.auth-route-shell .entry-heading>p{font-size:14px;line-height:1.6;margin:10px 0 0;max-width:none}
.auth-route-shell .entry-flow-header>.entry-back{background:transparent;border-color:var(--line);color:var(--ink);flex:none}
.auth-route-shell .entry-back:hover{background:var(--control)}
.auth-step{display:grid;justify-items:end;gap:9px;color:var(--secondary);font-size:11px;line-height:1.2;font-variant-numeric:tabular-nums}
.auth-route-shell .entry-flow-header>span:not(.entry-flow-progress){font-size:10px}
.auth-route-shell .entry-symbol{background:var(--accent-soft);border-color:transparent;color:var(--accent);box-shadow:none}
.auth-route-shell .entry-context{background:var(--surface-muted)}
.auth-route-shell .entry-panel form label{margin-top:0}
.auth-route-shell .auth-terms{font-size:12px;line-height:1.7;margin-top:24px;max-width:310px}
.auth-route-shell .auth-terms button{color:var(--ink)}
.auth-route-shell .auth-divider{margin:24px 0 18px;font-size:12px}
.auth-route-shell .auth-social .auth-provider{min-height:52px;background:transparent;border-color:var(--line);box-shadow:none;font-size:14px;gap:10px}
.auth-route-shell .auth-social .auth-provider:hover{background:var(--control)}
.auth-route-shell .phone-panel form{display:flex;flex-direction:column}
.auth-route-shell .auth-panel form>.button{margin-top:22px;min-height:52px;font-size:14px}
[data-theme] .auth-route-shell .button.primary{background:#f5f5f5;color:#191919;border:1px solid #f5f5f5;box-shadow:0 1px 2px #0002;filter:none}
[data-theme] .auth-route-shell .button.primary:hover:not(:disabled){background:#fff;border-color:#fff;filter:none}
[data-theme] .auth-route-shell .button.primary:disabled{background:#e6e6e6;color:#767676;opacity:1;box-shadow:none}
.auth-route-shell :is(button,input):focus-visible,.auth-sheet button:focus-visible{outline:2px solid #dedede;outline-offset:4px}
.auth-route-shell .phone-number-field:focus-within{outline:0;border-color:#d4d4d4;box-shadow:0 0 0 1px #d4d4d4}
.auth-route-shell .phone-number-field input:focus-visible{outline:0}
.auth-route-shell .phone-country-control>button:focus-visible{outline-offset:-5px;border-radius:14px}
.auth-route-shell .auth-error{background:#ffffff09;color:#ffb4b7;border:1px solid #f28b922e;font-size:13px;padding:11px 13px}
.auth-route-shell .field-hint{font-size:12px;margin:10px 0 0}
.auth-route-shell .entry-flow-progress{display:flex;gap:5px}
.auth-route-shell .entry-flow-progress i{width:24px;height:3px;border-radius:8px;background:#ffffff26}
.auth-route-shell .entry-flow-progress i.current{background:#ededed}
.auth-route-shell .entry-flow-progress i.complete{background:#ededed;opacity:.5}
.auth-phone-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px;min-width:0}
.auth-phone-summary>strong{font-size:15px;font-weight:550;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.auth-phone-summary>.text-button{font-size:12px;font-weight:550;min-height:40px;padding:4px 12px;color:var(--ink);border:1px solid var(--line);border-radius:100px;background:transparent;flex:none}
.auth-phone-summary>.text-button:hover{background:var(--control)}
.auth-code-entry{position:relative;isolation:isolate}
.auth-code-cells{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.auth-code-cell{display:grid;place-items:center;height:58px;border:1px solid #505050;border-radius:12px;background:#191919;color:var(--ink);font-size:24px;font-weight:550;font-variant-numeric:tabular-nums;box-shadow:none}
.auth-code-cell.is-filled{background:#292929}
.auth-code-cell.is-active{border-color:#dedede;box-shadow:0 0 0 1px #dedede}
.auth-code-cell.is-active:not(.is-filled):after{content:'';width:1px;height:22px;background:#dedede}
.auth-code-entry:has([aria-invalid=true]) .auth-code-cell{border-color:var(--attention)}
.auth-route-shell .auth-code-entry>.auth-code{position:absolute;inset:0;z-index:1;width:100%;height:100%;min-width:0;margin:0;padding:0;border:0;border-radius:14px;background:transparent;color:transparent;-webkit-text-fill-color:transparent;caret-color:transparent;box-shadow:none;outline:0;font-size:16px;letter-spacing:0;opacity:.01}
.auth-route-shell .auth-demo-note{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 6px;font-size:12px;line-height:1.65;margin:14px 0 0;color:var(--secondary)}
.auth-route-shell .auth-demo-note[hidden]{display:none}
.auth-demo-note>strong{font-weight:600;color:var(--ink);letter-spacing:.05em}.auth-demo-note>span{margin-left:auto}
.auth-route-shell .auth-switch{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px;padding-top:12px;border-top:1px solid var(--line);text-align:left;font-size:12px}
.auth-route-shell .auth-switch>button{min-height:44px;font-size:12px;color:var(--ink);padding:6px 4px;margin:0;border-radius:8px;font-variant-numeric:tabular-nums}
.auth-route-shell .auth-switch>button:hover:not(:disabled){text-decoration:underline;text-underline-offset:3px}
.auth-route-shell .auth-switch>button:disabled{opacity:1;color:var(--secondary)}
.auth-route-shell .profile-privacy{margin-top:24px}

@media(min-width:761px){
 .auth-route-shell{background:var(--surface)}
 .auth-route-shell .entry-panel{box-shadow:none}
}
@media(max-width:760px){
 .welcome-experience{padding:max(28px,env(safe-area-inset-top)) 24px max(32px,env(safe-area-inset-bottom));min-height:100svh;min-height:100dvh}
 .welcome-film img,.welcome-film video{object-position:center center}
 .welcome-film:after{background:linear-gradient(180deg,#080b0b3b,transparent 28%,#080b0b99 58%,#080b0bf2 100%)}
 .welcome-content{padding-top:80px;max-width:440px;margin:0 auto}
 .welcome-wordmark{font-size:25px}
 .welcome-content h1{font-size:clamp(34px,9.8vw,42px);line-height:1.09;letter-spacing:-1.4px;font-weight:500}
 .welcome-content>p{font-size:15px;line-height:1.65;margin-top:22px;max-width:320px;color:#e4e5e3}
 .welcome-actions{max-width:none;margin-top:32px;grid-template-columns:1fr;gap:10px}
 [data-theme] dialog.auth-sheet{max-width:460px;width:calc(100% - 16px);max-height:calc(100dvh - 24px);margin:auto auto max(8px,env(safe-area-inset-bottom));padding:28px 24px 32px;border-radius:36px}
 .auth-sheet:before{content:'';position:absolute;top:9px;left:calc(50% - 16px);height:4px;width:32px;border-radius:3px;background:var(--line)}
 .auth-sheet .auth-identity{margin-top:13px;margin-bottom:22px;width:52px;height:52px}
 .auth-identity .world-symbol{width:52px;height:52px}
 .auth-sheet .modal-top h2{font-size:31px}
 .auth-sheet-intro{font-size:15px;margin-top:12px}
 .auth-sheet .auth-options{margin-top:30px;gap:12px}
 .auth-sheet .auth-terms{font-size:12px;line-height:1.65;margin-top:27px;max-width:280px}
 .auth-route-shell{padding:0;background:var(--surface);display:block;position:fixed;top:var(--auth-viewport-top,0px);left:0;right:0;height:var(--auth-viewport-height,100dvh);min-height:0;overflow:auto;overscroll-behavior:contain}
 .auth-route-shell>.entry-main{max-width:480px;margin:0 auto}
 .entry-view .auth-route-shell .entry-panel{background:transparent;border:0;border-radius:0;box-shadow:none;padding:max(20px,env(safe-area-inset-top)) 24px max(24px,env(safe-area-inset-bottom));min-height:var(--auth-viewport-height,100dvh)}
 .auth-route-shell .entry-flow-header{margin-bottom:28px}
 .auth-route-shell .entry-heading{margin-bottom:26px}
}
@media(max-width:350px){
 .welcome-experience{padding-left:20px;padding-right:20px;padding-bottom:max(24px,env(safe-area-inset-bottom))}
 .welcome-content h1{font-size:32px;letter-spacing:-1.2px}
 .welcome-content>p{font-size:13px}
 .welcome-actions{margin-top:24px;grid-template-columns:1fr}
 [data-theme] dialog.auth-sheet{padding-left:20px;padding-right:20px;padding-bottom:28px;border-radius:32px}
 .auth-sheet .modal-top h2{font-size:29px}
 .auth-sheet-intro{font-size:14px}
 .auth-route-shell .entry-panel{padding-left:20px;padding-right:20px}
}
@media(max-height:600px){
 .welcome-experience{padding-top:24px;padding-bottom:24px}
 .welcome-content{padding-top:48px}
 .welcome-actions{margin-top:22px}
 .auth-route-shell .entry-panel{min-height:0}
}
.auth-route-shell.is-keyboard-open{min-height:var(--auth-viewport-height)}
.auth-route-shell.is-keyboard-open .entry-panel{min-height:var(--auth-viewport-height);padding-top:12px;padding-bottom:20px}
.auth-route-shell.is-keyboard-open .entry-flow-header{margin-bottom:20px}
.auth-route-shell.is-keyboard-open .entry-heading{margin-bottom:22px}
.auth-route-shell.is-keyboard-open .entry-heading h1{font-size:26px}
.auth-route-shell.is-keyboard-open .entry-heading>p{margin-top:10px}
.auth-route-shell.is-keyboard-open .field-hint{margin-bottom:20px}
.auth-route-shell.is-keyboard-open :is(.auth-divider,.auth-social,.auth-terms,.entry-symbol){display:none}
@media(prefers-reduced-motion:no-preference){
 .welcome-content{animation:welcome-reveal .55s var(--ease-out) both}
 .auth-route-shell .entry-panel{animation:entry-form-reveal .24s ease both}
 .auth-route-shell .entry-flow-progress i.current{animation:auth-progress-reveal .3s var(--ease-out) both}
 .auth-code-cell{transition:border-color .15s,box-shadow .15s,background .15s}
 .auth-code-cell.is-active:not(.is-filled):after{animation:auth-caret 1.2s steps(2,start) infinite}
 .auth-route-shell .button{transition:background .15s,color .15s,opacity .15s}
 dialog[open].auth-sheet{animation:auth-reveal .32s var(--ease-out) both}
 dialog[open].auth-sheet::backdrop{animation:backdrop-reveal .2s ease both}
}
@media(hover:hover){
 .welcome-creator:hover strong,.welcome-login:hover{color:#fff;text-decoration:underline;text-underline-offset:4px}
}
@keyframes welcome-reveal{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes auth-reveal{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:translateY(0)}}
@keyframes entry-form-reveal{from{opacity:0}to{opacity:1}}
@keyframes auth-progress-reveal{from{opacity:.4}to{opacity:1}}
@keyframes auth-caret{to{opacity:0}}
@keyframes backdrop-reveal{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.welcome-content,dialog[open].auth-sheet,dialog[open].auth-sheet::backdrop{animation:none}.welcome-film video{transition:none}}

/* Creator applications have a deliberate entry beneath the member action. */
.welcome-creator>.icon{width:20px;height:20px;transition:transform .2s var(--ease-out)}
@media(hover:hover){.welcome-creator:hover>.icon{transform:translateX(3px)}}
@media(prefers-reduced-motion:reduce){.welcome-creator>.icon{transition:none}}

/* One phone control: country prefix plus a familiar national number. */
.entry-panel .phone-number-field{display:grid;grid-template-columns:114px minmax(0,1fr);align-items:center;min-width:0;padding:0;background:var(--field);border-color:var(--line)}
.entry-panel .phone-number-field:has([aria-invalid=true]){border-color:var(--danger,#d7515a)}
.entry-panel .phone-number-field :is(input,select){border:0;border-radius:0;background:transparent;box-shadow:none;outline:none;min-height:52px;font-size:16px;margin:0}
.phone-country-control{position:relative;align-self:stretch;border-right:1px solid var(--line);display:flex;align-items:center;min-width:0}
.entry-panel .phone-number-field input{padding:12px;min-width:0;border-radius:0 15px 15px 0}
.entry-panel .phone-number-field option{background:var(--surface);color:var(--ink)}
@media(max-width:360px){.entry-panel .phone-number-field{grid-template-columns:108px minmax(0,1fr)}.phone-country-control>span{padding-left:8px;font-size:13px}.phone-country-control:after{right:9px}.entry-panel .phone-number-field input{padding-left:10px}}

.welcome-actions>.button{min-height:54px;font-size:15px}
[data-theme] .welcome-shell .welcome-start{background:var(--ow-white);color:var(--ow-ink);border-color:#ffffffb3;box-shadow:inset 0 1px 0 #fff,0 2px 6px #00000012}
[data-theme] .welcome-shell .welcome-start:hover{background:#f4f4f3;filter:none}
[data-theme] .welcome-shell .welcome-login{background:transparent;border-color:#ffffff59;color:#fff}
.welcome-creator{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;margin-top:8px;font-size:13px;color:#ffffffc7}
.welcome-creator>.icon{width:15px;height:15px}
@media(hover:hover){.welcome-creator:hover{color:#fff}.welcome-shell .welcome-login:hover{background:#ffffff14;text-decoration:none}}
.phone-country-value{display:none!important}
.phone-country-control>button{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;align-self:stretch;background:transparent;color:var(--ink);padding:0 10px;font-size:14px;border-radius:15px 0 0 15px}
.phone-country-flag{font-size:21px;line-height:1;flex:none}
.phone-country-arrow{width:6px;height:6px;border:solid var(--secondary);border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin:0 2px 4px 3px;flex:none}
dialog.phone-country-dialog{width:min(420px,calc(100% - 32px));padding:24px;max-height:min(650px,calc(100dvh - 40px));overflow:hidden}
.phone-country-dialog .modal-top{margin-bottom:20px}
.phone-country-dialog .modal-top h2{font-family:var(--font);font-size:23px}
.phone-country-search{position:relative;margin-bottom:16px}
.phone-country-search>.icon{position:absolute;left:15px;top:17px;color:var(--secondary);width:19px;height:19px;pointer-events:none}
.phone-country-search input{padding-left:44px!important}
.phone-country-list{overflow-y:auto;overscroll-behavior:contain;height:min(420px,calc(var(--phone-viewport-height,100dvh) - 210px));display:grid;align-content:start;gap:2px;scrollbar-width:none}
.phone-country-list::-webkit-scrollbar{display:none}
.phone-country-option{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:12px;text-align:left;border-radius:15px;background:transparent;color:var(--ink)}
.phone-country-option:hover,.phone-country-option[aria-pressed=true]{background:var(--surface-muted)}
.phone-country-name{flex:1;min-width:0;font-size:14px;font-weight:500}
.phone-country-dial{font-size:13px;color:var(--secondary)}
.phone-country-option>.icon{width:17px;height:17px;color:var(--success);margin-left:2px}
body:has(#entry-auth-dialog[open]) .phone-country-dialog .phone-country-option>.icon{color:var(--ink)}
body:has(#entry-auth-dialog[open]) .phone-country-dialog :is(button,input):focus-visible{outline-color:#dedede}
.phone-country-empty{padding:24px 12px;text-align:center;font-size:14px;color:var(--secondary)}
@media(max-width:760px){dialog.phone-country-dialog{padding:22px 18px;inset:auto 0 calc(100dvh - var(--phone-viewport-height,100dvh) - var(--phone-viewport-top,0px) + 12px);margin:0 auto;max-height:calc(var(--phone-viewport-height,100dvh) - 24px)}}

/* One routed signup panel, presented over the welcome on desktop. */
.auth-welcome-background{position:fixed;inset:0;overflow:hidden;pointer-events:none}.auth-welcome-background .welcome-content,.auth-welcome-background .welcome-wordmark{visibility:hidden}
#entry-auth-dialog{position:fixed;top:clamp(32px,8vh,80px);bottom:auto;left:0;right:0;width:min(440px,calc(100% - 48px));max-width:440px;max-height:calc(100dvh - 96px);margin:0 auto;padding:0;border:1px solid var(--line);border-radius:30px;background:var(--surface);box-shadow:0 20px 90px #0004;overflow:auto;overscroll-behavior:contain;scrollbar-width:none}
#entry-auth-dialog::-webkit-scrollbar{display:none}#entry-auth-dialog::backdrop{background:#0005;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
#entry-auth-dialog .auth-route-shell{padding:0;min-height:0;height:auto;display:block;background:transparent;position:static}#entry-auth-dialog .entry-main{max-width:none}#entry-auth-dialog .entry-panel{border-radius:0;box-shadow:none;animation:none}
@media(max-width:760px){.auth-welcome-background{display:none}#entry-auth-dialog{top:0;bottom:0;width:100%;max-width:none;height:100dvh;max-height:none;margin:0;border:0;border-radius:0;box-shadow:none;background:var(--surface)}#entry-auth-dialog::backdrop{background:var(--surface);backdrop-filter:none}#entry-auth-dialog .auth-route-shell{position:fixed;top:var(--auth-viewport-top,0px);bottom:auto;left:0;right:0;height:var(--auth-viewport-height,100dvh);overflow:auto;background:var(--surface)}#entry-auth-dialog .entry-main{max-width:480px;margin:auto}}
