
:root{color-scheme:dark;font:16px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;color:#f3eee5;background:#090b0e;--accent:#dfbc78;--edge:rgba(207,185,143,.17);--muted:#b8b3aa;--glass:rgba(31,28,24,.38)}*{box-sizing:border-box}body{margin:0;min-height:100vh;isolation:isolate}a{color:inherit;text-decoration:none}svg{width:24px;height:24px;flex-shrink:0}button,input{font:inherit}a,button,summary{touch-action:manipulation;transition:background .22s,border-color .22s,color .22s,translate .22s}a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:4px}a:hover{color:#f7dcab}p{margin:10px 0 18px;color:var(--muted)}strong{font-weight:650}h1,h2{font-weight:600;line-height:1.12;letter-spacing:-.045em;overflow-wrap:anywhere}h1{font-size:clamp(2.4rem,5vw,4.5rem);margin:10px 0 0}h2{font-size:clamp(1.7rem,3vw,2.5rem);margin:10px 0 18px}.eyebrow{font-size:.875rem;letter-spacing:.16em;text-transform:uppercase;color:var(--accent);font-weight:650}.muted{color:var(--muted);font-size:.9375rem}
.ambient{position:fixed;inset:0;pointer-events:none;z-index:-1;overflow:hidden}.ambient:before,.ambient:after{content:"";position:absolute;width:65vw;height:65vw;min-width:500px;min-height:500px;border-radius:50%;filter:blur(70px);animation:float 24s ease-in-out infinite alternate;background:radial-gradient(circle,rgba(181,136,57,.2),transparent 65%)}.ambient:before{top:-28vw;right:-16vw}.ambient:after{bottom:-35vw;left:-20vw;background:radial-gradient(circle,rgba(156,125,79,.15),transparent 65%);animation-delay:-9s}.ambient-orbit{position:absolute;inset:8% -25%;border:1px solid rgba(181,155,105,.15);border-radius:50%;transform:rotate(-27deg);box-shadow:0 0 0 100px rgba(176,153,107,.025),0 0 0 210px rgba(176,153,107,.02)}.layout{width:min(100% - 64px,1240px);margin:auto;padding:24px 0 40px}.topbar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-bottom:24px;animation:account-enter .55s ease-out both}.brand{display:flex;align-items:center;gap:12px;font-size:.875rem;font-weight:750;letter-spacing:.14em}.brand img{width:48px;height:48px;border-radius:50%}.topbar nav{display:flex;gap:28px;align-items:center}.account-pill{display:inline-flex;align-items:center;gap:12px;padding:11px 18px;border:1px solid var(--edge);border-radius:999px}.account-pill:hover{background:rgba(212,174,103,.1);border-color:rgba(212,184,123,.5)}.panel{animation:account-enter .65s cubic-bezier(.2,.7,.2,1) both}.auth-panel{max-width:660px;margin:55px auto 0;padding:clamp(26px,4vw,48px);border:1px solid var(--edge);border-radius:28px;background:rgba(31,28,24,.36);backdrop-filter:blur(20px);box-shadow:0 24px 70px rgba(0,0,0,.2)}.management-panel{margin-top:26px}.page-heading{margin:26px 0 36px}.back-link{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:.9375rem;min-height:44px}.back-link:hover{color:var(--accent);translate:-3px 0}.back-link svg{width:20px}.account-workspace{display:grid;grid-template-columns:232px minmax(0,1fr);gap:44px;align-items:start}.account-nav{display:flex;flex-direction:column;gap:8px;position:sticky;top:24px}.account-nav a{display:flex;align-items:center;gap:14px;padding:16px 18px;border:1px solid transparent;border-radius:17px;color:var(--muted)}.account-nav a:hover{background:rgba(209,178,115,.06);color:#f4eee3;translate:3px 0}.account-nav a[aria-current=page]{color:#f5ebd8;border-color:rgba(208,176,110,.25);background:rgba(183,150,93,.12)}.account-content{min-width:0}.section-heading{margin-bottom:28px}.section-heading p{max-width:650px;font-size:1.0625rem}.glass-card{border:1px solid var(--edge);border-radius:24px;background:var(--glass);backdrop-filter:blur(22px);box-shadow:0 12px 40px rgba(0,0,0,.1)}
.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:24px}.profile-card,.handle-card{padding:30px}.profile-card{display:flex;flex-direction:column;align-items:flex-start}.avatar{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;border:1px solid rgba(225,199,143,.35);background:linear-gradient(145deg,rgba(204,169,105,.25),rgba(129,102,56,.06));color:#f1d7a6;font-size:1.6rem;margin-bottom:24px}.avatar.small{width:48px;height:48px;font-size:1.2rem;margin:0;flex-shrink:0}.profile-edit{width:100%}.profile-edit summary{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:1.5rem;list-style:none;cursor:pointer;min-height:48px;overflow-wrap:anywhere}.profile-edit summary::-webkit-details-marker{display:none}.icon-button{display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--edge);border-radius:50%;flex-shrink:0}.profile-edit summary:hover .icon-button{color:var(--accent);background:rgba(212,184,123,.1)}.handle{display:block;font-size:clamp(1.3rem,2vw,1.7rem);overflow-wrap:anywhere;margin:30px 0 18px}.text-action{display:inline-flex;align-items:center;gap:10px;min-height:44px;color:var(--accent)}.text-action:hover{translate:3px 0}.text-action svg{width:20px}.settings-list{overflow:hidden}.setting-row{display:flex;align-items:center;gap:22px;padding:25px 28px;min-height:94px}.setting-row+.setting-row{border-top:1px solid var(--edge)}.setting-row>span:first-child{flex:1;min-width:0}.setting-row strong,.setting-row .muted{display:block;overflow-wrap:anywhere}.setting-row strong{font-size:1.0625rem;margin-bottom:4px}.setting-row:hover{background:rgba(212,180,117,.08)}.status{font-size:.875rem;white-space:nowrap;border:1px solid rgba(218,186,124,.24);border-radius:999px;padding:5px 10px;color:#e1c58e}.security-notice{display:flex;gap:16px;align-items:center;padding:20px 24px;margin:0 0 32px;border:1px solid rgba(212,177,109,.22);border-radius:20px;background:rgba(133,105,55,.13);backdrop-filter:blur(16px)}.security-notice>svg{color:var(--accent);width:30px;height:30px}.security-notice>div{flex:1}.security-notice p{margin:3px 0 0;font-size:.9375rem}.security-notice a{display:flex;align-items:center;gap:8px;color:var(--accent);min-height:44px}
.device-list,.friend-list,.event-list{list-style:none;padding:0;margin:0}.device-card{display:flex;gap:22px;padding:28px;margin-bottom:18px}.device-card>svg{color:var(--accent);margin-top:3px}.device-card strong{font-size:1.2rem}.device-card p{margin:6px 0 12px}.disclosure{padding:0 26px;margin:24px 0}.disclosure summary{min-height:76px;display:flex;align-items:center;gap:14px;cursor:pointer;list-style:none;font-weight:650}.disclosure summary::-webkit-details-marker{display:none}.disclosure summary>svg:last-child{margin-left:auto;transition:rotate .25s}.disclosure[open] summary>svg:last-child{rotate:90deg}.disclosure[open]{padding-bottom:24px}.disclosure[open]>:not(summary),.profile-edit[open]>form{animation:disclose .3s ease-out both}.disclosure summary:hover{color:var(--accent)}.danger{border-color:rgba(219,157,147,.24)}.event-list{padding:8px 26px}.event-list li{display:flex;justify-content:space-between;gap:16px;padding:18px 0}.event-list li+li{border-top:1px solid var(--edge)}.event-list time{color:var(--muted);font-size:.9375rem;white-space:nowrap}.friend-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:28px 0 24px}.friend-tabs a{display:flex;align-items:center;gap:10px;padding:12px 18px;border:1px solid transparent;border-radius:999px;color:var(--muted)}.friend-tabs a:hover{background:rgba(216,180,115,.07);color:#f4eee3}.friend-tabs a[aria-current=page]{color:#efe1c5;border-color:var(--edge);background:rgba(180,146,86,.12)}.count{font-size:.875rem;display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 5px;border-radius:50%;background:rgba(204,171,108,.12)}.friend-card{display:flex;align-items:center;gap:18px;padding:24px;margin-bottom:16px;flex-wrap:wrap}.friend-identity{flex:1;min-width:160px}.friend-identity strong,.friend-identity span{display:block;overflow-wrap:anywhere}.friend-identity strong{font-size:1.125rem}.friend-options{margin-left:auto}.friend-options summary{list-style:none;cursor:pointer;border:1px solid var(--edge);border-radius:999px;padding:6px 14px;min-height:40px}.friend-options[open]{width:100%}.friend-options[open] summary{width:fit-content;margin-left:auto}.friend-actions{display:flex;gap:10px;flex-wrap:wrap;margin:0;padding:0;border:0;background:none}.friend-actions button{width:auto;min-height:44px;padding:10px 16px}.friend-options .friend-actions{justify-content:flex-end;margin-top:12px}.friend-add{margin:0}.empty-state{display:flex;flex-direction:column;align-items:center;text-align:center;padding:48px 24px}.empty-state>svg{width:46px;height:46px;color:var(--accent);margin-bottom:24px}.empty-state strong{font-size:1.2rem}.empty-state p{max-width:420px;margin-bottom:0}
form{margin:24px 0;max-width:650px}label{display:block;font-size:.9375rem;font-weight:600;margin-bottom:20px}input:not([type=hidden]){display:block;width:100%;min-height:52px;padding:12px 15px;margin-top:9px;border-radius:14px;border:1px solid rgba(207,188,155,.32);background:rgba(15,15,15,.6);color:#f4eee3;font-size:1rem}input::placeholder{color:#b0a28e}.checkbox{display:flex;align-items:flex-start;gap:12px}.checkbox input{width:22px!important;min-height:22px!important;margin:2px 0 0;accent-color:var(--accent)}button,.button-link{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:12px 22px;border:1px solid var(--accent);border-radius:999px;background:#dfbc78;color:#18130c;font-size:1rem;font-weight:650;cursor:pointer}button:hover,.button-link:hover{background:#f0d49c;color:#18130c;translate:0 -2px}.auth-panel button,.action-form button{width:100%}.secondary{color:#ecdec3;background:rgba(206,173,109,.06);border-color:var(--edge)}.secondary:hover{background:rgba(206,173,109,.14);color:#faf0dc}.logout-form{margin:48px 0 0 276px}.logout-form button{font-size:.9375rem}.account-footer{text-align:center;color:var(--muted);font-size:.875rem;margin:54px 0 8px}code{overflow-wrap:anywhere;color:#f1dcb5}.motion-paused .ambient:before,.motion-paused .ambient:after,body:has(input:focus) .ambient:before,body:has(input:focus) .ambient:after{animation-play-state:paused}@keyframes account-enter{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes disclose{from{opacity:0;transform:translateY(-7px)}to{opacity:1;transform:translateY(0)}}@keyframes float{from{transform:translate(-4%,-5%) scale(.9)}to{transform:translate(7%,8%) scale(1.1)}}
@media(max-width:900px){.layout{width:calc(100% - 40px)}.account-workspace{grid-template-columns:190px minmax(0,1fr);gap:26px}.account-nav a{padding:14px 12px;gap:10px}.profile-grid{grid-template-columns:1fr}.logout-form{margin-left:216px}.setting-row{padding:22px}.event-list li{flex-direction:column;gap:4px}}
@media(max-width:650px){.layout{width:calc(100% - 28px);padding-top:16px}.topbar{gap:12px}.topbar nav{gap:12px;font-size:.9375rem}.brand{font-size:.75rem;gap:8px}.brand img{width:42px;height:42px}.account-pill{padding:10px 12px}.account-pill svg{display:none}.topbar nav>a:first-child{display:none}.management-panel{margin-top:12px}.page-heading{margin:18px 0 26px}.auth-panel{margin-top:30px;border-radius:24px;padding:25px 22px}.account-workspace{display:block}.account-nav{position:static;display:flex;flex-direction:row;overflow-x:auto;gap:8px;margin:0 -14px 28px;padding:0 14px 8px;scrollbar-width:thin}.account-nav a{flex-shrink:0;white-space:nowrap;padding:12px 15px;border-radius:999px;font-size:.9375rem}.account-nav a svg{width:20px;height:20px}.section-heading h2{font-size:1.9rem}.security-notice{padding:18px;gap:12px;flex-wrap:wrap}.security-notice>div{flex-basis:calc(100% - 46px)}.security-notice a{margin-left:42px}.profile-card,.handle-card{padding:25px}.setting-row{gap:12px;padding:22px 20px}.setting-row .status{display:none}.glass-card{border-radius:22px}.disclosure{padding:0 20px}.friend-tabs{gap:2px}.friend-tabs a{padding:10px 12px;font-size:.9375rem}.friend-card{padding:20px;gap:12px}.friend-actions{width:100%;margin-top:12px}.friend-actions button{flex:1}.friend-identity{min-width:100px}.logout-form{margin:32px 0 0}.device-card{padding:22px;gap:16px}.account-footer{margin-top:36px}.event-list{padding:8px 20px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Stable management frame; only its selected section scrolls and transitions. */
body:has(.account-workspace) .layout{height:max(100svh,640px);display:flex;flex-direction:column;padding-bottom:20px}
body:has(.account-workspace) .topbar{flex:none;animation:none}
body:has(.account-workspace) .management-panel{flex:1;min-height:0;display:flex;flex-direction:column;animation:none;margin-top:8px}
body:has(.account-workspace) .page-back{flex:none;align-self:flex-start}
body:has(.account-workspace) .page-heading{flex:none;margin:12px 0 28px}
body:has(.account-workspace) .page-heading h1{font-size:clamp(1.8rem,3.5vw,3rem);line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:8px}
.account-workspace{flex:1;min-height:0;overflow:hidden;align-items:stretch}
.account-nav{position:static;overflow-y:auto;padding-right:4px}
.account-content{overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:0 12px 28px 2px}
.section-heading{margin-bottom:32px}.section-heading h2{line-height:1.24;margin:12px 0 20px}.section-heading p{line-height:1.7}
.setting-row .muted{line-height:1.65}.profile-card .muted{line-height:1.65}.handle-card p{line-height:1.7}
.logout-form{margin:40px 0 0}.account-footer{flex:none;margin:20px 0 0}.navigation-status{padding:16px;border-radius:16px;border:1px solid var(--edge)}
.consent-actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin-top:28px}.consent-actions button{min-height:48px;margin:0}.consent-actions button[value=no]{background:transparent;color:var(--ink);border:1px solid var(--edge)}
.section-arrived> *{animation:section-slide .28s cubic-bezier(.16,1,.3,1) both}.section-arrived>:nth-child(2){animation-delay:.035s}.section-arrived>:nth-child(n+3){animation-delay:.07s}@keyframes section-slide{from{opacity:.35;transform:translateX(var(--section-direction,18px))}to{opacity:1;transform:translateX(0)}}
@media(max-width:650px){.account-workspace{display:flex;flex-direction:column;gap:0}.account-nav{flex:none;flex-direction:row;overflow-x:auto;overflow-y:hidden;margin:0 0 24px;padding:0 0 8px;min-height:62px}.account-content{flex:1;min-height:0;padding:0 4px 24px}.page-heading h1{font-size:1.8rem!important}.account-footer{margin-top:16px}.section-heading h2{font-size:1.75rem}.setting-row{gap:16px}.security-notice{margin-bottom:28px}}
