.topbar{ position:sticky; top:0; z-index:40; height:60px; display:flex; align-items:center;
    justify-content:space-between; gap:18px; padding:0 26px; border-bottom:1px solid var(--line);
    background:var(--topbar-bg); -webkit-backdrop-filter:blur(18px) saturate(160%); backdrop-filter:blur(18px) saturate(160%); }
.pz-brand{ display:flex; align-items:center; gap:11px; flex:0 0 auto; }
.pz-brand .word{ font-family:Sora,sans-serif; font-weight:600; font-size:16.5px; letter-spacing:-.02em; color:var(--ink); }
.pz-brand .word .d{ color:var(--accent); }
.topnav{ position:relative; display:flex; align-items:center; gap:2px; flex:1; }
.topnav a{ position:relative; font-family:Sora,sans-serif; font-size:11px; font-weight:600; letter-spacing:.13em;
    text-transform:uppercase; color:var(--ink-4); background:transparent; border:0; cursor:pointer;
    padding:9px 13px; border-radius:var(--r-sm); transition:color .15s; }
.topnav a:hover{ color:var(--ink-2); }
.topnav a.on{ color:var(--ink); }
/* The shared sliding underline. left:0 + translateX so position animates on the GPU. */
.nav-ink{ position:absolute; left:0; bottom:3px; height:2px; border-radius:2px; background:var(--accent); pointer-events:none;
    transition:transform var(--dur-slow) var(--ease-out), width var(--dur-slow) var(--ease-out), opacity .2s ease; }
@media (prefers-reduced-motion: reduce){ .nav-ink{ transition:opacity .2s ease; } }
.topbar-rt{ display:flex; align-items:center; gap:12px; flex:0 0 auto; }
/* mobile nav (shown only on small screens) */
.topnav-mobile{ display:none; }

/* Switch the header before the desktop navigation and account controls can
   exceed the viewport. The rest of the compact Focus layout still changes at
   720px below. */
@media (max-width:980px){
    .topnav{ display:none; }
    .topbar{ flex-wrap:wrap; height:auto; padding:8px 16px; }
    .topnav-mobile{ display:flex; order:3; width:100%; gap:2px; overflow-x:auto; overscroll-behavior-x:contain; border-top:1px solid var(--line); padding:6px 0 2px; }
    .topnav-mobile a{ font-family:Sora,sans-serif; font-size:10px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-4); background:transparent; border:0; padding:7px 10px; border-radius:var(--r-sm); white-space:nowrap; cursor:pointer; }
    .topnav-mobile a.on{ color:var(--ink); background:var(--surface-2); }
}


.topbar,.site-footer.app-foot{font-family:Inter,system-ui,sans-serif}
.topbar{
    --topbar-bg:rgba(247,247,246,.92); --ink:#15171c; --ink-2:#494b50; --ink-4:#6c6d70;
    --line:#dededc; --surface:#fff; --surface-2:#ededeb; --obsidian:#15171c; --accent:#e7642b;
    --r-sm:6px; --dur-slow:420ms; --ease-out:cubic-bezier(.22,.61,.36,1);
    box-sizing:border-box;
}
.dark .topbar{
    --topbar-bg:rgba(18,20,25,.92); --ink:#f4f2ec; --ink-2:#d4d2c9; --ink-4:#a6a59c;
    --line:#2a2d34; --surface:#181b21; --surface-2:#14161b; --obsidian:#2a2e38;
}
.topbar a,.app-foot a{text-decoration:none}
.topbar .topnav a,.topbar .topnav-mobile a{white-space:nowrap}
.topbar .nav-lock{display:inline-flex;align-items:center;margin-left:5px;opacity:.55;vertical-align:middle}
.topbar .pz-account,.topbar .pz-avatar{
    display:inline-grid;place-items:center;white-space:nowrap;min-height:34px;padding:0 10px;
    border-radius:var(--r-sm);background:var(--surface);border:1px solid var(--line);
    color:var(--ink-2);font-size:12px;font-weight:650;
}
.topbar .pz-avatar{width:34px;padding:0;border-radius:50%;background:var(--obsidian);color:#f4f2ec}
.topbar .pz-account:hover{color:var(--ink);background:var(--surface-2)}
#marketing-header{display:contents}
.topbar :focus-visible,.app-foot :focus-visible{outline:2px solid #e7642b;outline-offset:2px}
.site-footer.app-foot{position:relative;background:#15171c;color:#f4f2ec;border-top:1px solid #31353d;text-align:left;padding:0}
.dark .site-footer.app-foot{background:#0c0d11}
.app-foot .foot-in{max-width:1160px;margin:auto;padding:32px 26px}
.app-foot .pz-brand{display:inline-flex;align-items:center;gap:9px;color:inherit;font:600 16px Sora,Inter,sans-serif}
.app-foot .pz-brand .word{color:inherit}
.app-foot .word .d{color:#e7642b}
.app-foot .foot-groups{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:22px;margin:24px 0}
.app-foot h2{font:600 13px/1.4 Sora,Inter,sans-serif;letter-spacing:normal;margin:0 0 8px}
.app-foot ul{margin:0;padding:0;list-style:none}
.app-foot li{margin:0;padding:0}
.app-foot .foot-groups a{display:inline-block;padding:4px 0;font:500 13px/1.4 Inter,sans-serif;color:#bcbbc0}
.app-foot .foot-groups a:hover{color:#fff;text-decoration:underline}
.app-foot .foot-copy{margin:0;color:#bcbbc0;font-size:12px}
.pz-skip{position:fixed;inset:0 auto auto 0;z-index:100;transform:translateY(-100%);padding:10px;background:#15171c;color:#fff}
.pz-skip:focus{transform:none}
@media(max-width:720px){.app-foot .foot-groups{grid-template-columns:repeat(2,minmax(0,1fr))}.app-foot .foot-in{padding:26px 16px}}
@media(max-width:420px){.topbar{gap:8px}.topbar .scorepill{display:none}.topbar-rt{gap:6px}}

#recovery-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:16px 0}
#recovery h1{margin-bottom:12px}
#recovery a{text-decoration:underline}
.app-foot .foot-copy a{color:inherit;text-decoration:underline}
