:root{color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#080b15;color:#f3f0f7;font-synthesis:none;--muted:#aaa8bc;--line:#272b3d;--outline:#dec58a;--surface:#111626}
*{box-sizing:border-box}
body{margin:0;min-width:280px;min-height:100dvh;background:#080b15}
[hidden]{display:none!important}
.account-bar{position:relative;width:100%;max-width:760px;margin:0 auto;background:#030610;padding-top:env(safe-area-inset-top)}
.account-brand{display:block;width:100%;max-width:480px;height:auto;margin:0 auto;aspect-ratio:3.6;background:url('/profile-header.svg') center/contain no-repeat}
#account-header-avatar{position:absolute;top:calc(8px + env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right));background:#080b1599}
.account-back{position:absolute;top:calc(8px + env(safe-area-inset-top));left:max(8px,env(safe-area-inset-left));display:flex;align-items:center;justify-content:center;width:44px;min-height:44px;color:inherit;background:#080b1599;border-radius:12px;text-decoration:none}
.account-back span,.row-chevron{width:9px;height:9px;border-right:1.7px solid currentColor;border-bottom:1.7px solid currentColor;transform:rotate(-45deg);flex-shrink:0}
.account-back span{width:13px;height:13px;transform:rotate(135deg);margin-left:6px}
.profile-avatar{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:42px;height:42px;border:1.5px solid var(--outline);border-radius:50%;font-size:1.25rem;font-weight:500;line-height:1;position:relative;overflow:hidden;background:#ffffff04}
.avatar-guest:before{content:"";position:absolute;width:9px;height:9px;border:1.4px solid currentColor;border-radius:50%;top:9px}
.avatar-guest:after{content:"";position:absolute;width:19px;height:10px;border:1.4px solid currentColor;border-bottom:0;border-radius:12px 12px 0 0;bottom:8px}
main{width:100%;max-width:760px;margin:22px auto 0;padding:0 max(24px,env(safe-area-inset-right)) max(32px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));line-height:1.55}
/* The shell matches the companion at every width; sign-in stays readable. */
@media(min-width:481px){main:not(:has(#account-signed-in:not([hidden])))>:is(#account-heading,#account-intro,#account-card,noscript){max-width:432px;margin-left:auto;margin-right:auto}}
h1{font-size:1.5rem;line-height:1.3;font-weight:500;letter-spacing:-.03em;margin:0 0 26px}
h2{font-size:1rem;line-height:1.4;font-weight:500;margin:0 0 16px;color:var(--muted)}
p{margin:12px 0}
.intro{color:var(--muted);margin:0 0 24px;max-width:44ch}
.account-card{margin:0 0 32px}
#account-signed-in{display:flex;align-items:center;gap:18px;padding:8px 0 28px;border-bottom:1px solid var(--line)}
.identity-avatar{width:60px;height:60px;font-size:1.7rem}
.account-identity{min-width:0}
.account-name{font-size:1.15rem;margin:0;overflow-wrap:anywhere}
.account-label{font-size:.85rem;color:var(--muted);margin:3px 0 0}
button{min-height:46px;font:inherit;border-radius:24px;display:inline-flex;align-items:center;justify-content:center;padding:10px 18px;text-align:center}
button{width:100%;margin-top:6px;border:1px solid var(--outline);color:inherit;background:transparent;cursor:pointer}
button.secondary{border-color:var(--line);color:var(--muted)}
button:disabled{opacity:.5;cursor:wait}
button:not(:disabled):hover,.account-back:hover{background:#ffffff08}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible{outline:2px solid var(--outline);outline-offset:4px}
.quiet{font-size:.86rem;color:var(--muted)}
.quiet strong{font-weight:500;color:inherit}
#account-status{color:var(--muted);font-size:.92rem}
#account-provider{overflow-wrap:anywhere;color:var(--muted);font-size:.92rem}
.computers-heading{display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:space-between;margin-bottom:8px}
.computers-heading h2{margin:0}
.compact{width:auto;font-size:.8rem;padding:8px 13px;margin:0}
#guided-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:520px;margin-inline:auto}
#guided-list>.quiet{grid-column:1 / -1}
.guided-computer{min-width:0;margin:0}
.guided-computer>.guided-open{width:100%;aspect-ratio:1;min-height:0;margin:0;padding:12px 10px;display:flex;flex-direction:column;gap:6px;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:inherit}
.guided-computer>.guided-open:disabled{opacity:.8}
.computer-icon{width:29px;height:20px;border:1.7px solid #dec58a;border-radius:4px;margin:0 0 5px;position:relative;flex-shrink:0}
.computer-icon:before{content:"";position:absolute;width:1.7px;height:6px;left:calc(50% - .85px);bottom:-7px;background:#dec58a}
.computer-icon:after{content:"";position:absolute;width:15px;height:1.7px;left:calc(50% - 7.5px);bottom:-8px;background:#dec58a}
.computer-name{font-size:.94rem;font-weight:550;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;min-width:0;max-width:100%}
.computer-action{font-size:.75rem;color:var(--outline);margin-top:auto}
.computer-presence{display:flex;gap:6px;align-items:center;justify-content:center;min-width:0;font-size:.73rem;line-height:1.3;color:var(--muted);max-width:100%;overflow-wrap:anywhere}
.computer-presence:before{content:"";width:7px;height:7px;flex-shrink:0;background:#9393a7;border-radius:50%}
.computer-presence[data-state="connecting"],.computer-presence[data-state="paused"]{color:#eac477}
.computer-presence[data-state="connecting"]:before,.computer-presence[data-state="paused"]:before{background:#eac477}
.computer-presence[data-state="failed"]{color:#ffaaa8}
.computer-presence[data-state="failed"]:before{background:#ffaaa8}
.guided-computer[data-state="connecting"]>.guided-open{border-color:#806a3f}
.guided-computer[data-state="failed"]>.guided-open{border-color:#824c50}
#guided-device-panels{margin-top:20px}
#guided-device-panels:empty{display:none}
#guided-device-panels>details{border-bottom:1px solid var(--line);padding:4px 0}
#guided-device-panels summary{font-size:.86rem;color:var(--muted);overflow-wrap:anywhere}
summary{cursor:pointer;min-height:46px;display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none}
summary::-webkit-details-marker{display:none}
summary:after{content:"";width:8px;height:8px;flex-shrink:0;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);margin-right:5px}
details[open]>summary:after{transform:rotate(45deg)}
#guided-name{display:block;width:100%;min-height:46px;font:inherit;background:var(--surface);color:inherit;border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin:6px 0}
.guided-remember{display:flex;align-items:center;gap:10px;min-height:46px}
.guided-remember input{width:20px;height:20px;accent-color:var(--outline)}
.guided-device{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;font-size:.9rem}
.guided-device span{overflow-wrap:anywhere;min-width:0}
.guided-device button{flex-shrink:0}
#guided-connect,#desktop-setup{border:1px solid var(--line);border-radius:16px;background:var(--surface);padding:18px;margin-top:24px}
#guided-connect h3,#desktop-setup-name{font-size:1.1rem;font-weight:500;overflow-wrap:anywhere;margin:0 0 12px}
#desktop-setup-heading{color:var(--outline)}
#desktop-setup-status{color:var(--muted)}
.approval-code{font-size:1.15rem;letter-spacing:.08em;font-variant-numeric:tabular-nums}
.approval-code:empty,#guided-status:empty{display:none}
#account-error,#guided-error{color:#ffbdb2;overflow-wrap:anywhere}
#guided-status{color:var(--muted);font-size:.9rem}
.account-actions{margin:4px 0 22px}
.account-help-links{display:flex;flex-wrap:wrap;gap:8px 20px}
.account-help-links a,a.settings-action,#deletion-done{display:flex;align-items:center;min-height:44px;color:inherit}
a.settings-action{width:100%;text-decoration:none}
.settings-action{justify-content:space-between;min-height:58px;border:0;border-bottom:1px solid var(--line);border-radius:0;margin:0;padding:12px 4px 12px 0;text-align:left}
/* The spacer supplies a square minimum; the shared grid row can grow with text. */
.guided-computer{display:grid}
.guided-computer:before{content:"";grid-area:1/1;padding-top:100%;pointer-events:none}
.guided-computer>.guided-open{grid-area:1/1;aspect-ratio:auto;height:auto;min-height:0}
.computer-name,.computer-presence,.computer-action{flex-shrink:0}
@media(max-width:350px){main{padding-left:18px;padding-right:18px}#guided-list{gap:10px}.guided-computer>.guided-open{padding:8px;gap:5px}.computer-name{font-size:.85rem}.computer-icon{width:25px;height:18px}.computer-presence{font-size:.7rem}.identity-avatar{width:52px;height:52px}}
