@font-face {
    font-family: 'Anybody';
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 50% 150%;
    font-display: swap;
    src: url('/static/fonts/anybody-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Anybody';
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 50% 150%;
    font-display: swap;
    src: url('/static/fonts/anybody-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Atkinson Hyperlegible Next';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('/static/fonts/atkinson-next-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Atkinson Hyperlegible Next';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('/static/fonts/atkinson-next-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Atkinson Hyperlegible Next';
    font-style: italic;
    font-weight: 200 800;
    font-display: swap;
    src: url('/static/fonts/atkinson-next-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Atkinson Hyperlegible Next';
    font-style: italic;
    font-weight: 200 800;
    font-display: swap;
    src: url('/static/fonts/atkinson-next-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Atkinson Hyperlegible Mono';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('/static/fonts/atkinson-mono-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Atkinson Hyperlegible Mono';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('/static/fonts/atkinson-mono-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --sun-rgb: 255 224 158;
    --accent-rgb: 255 204 128;
    --sky-zenith-rgb: 16 40 80;
    --sky-upper-rgb: 38 72 122;
    --sky-horizon-rgb: 246 176 108;

    --ink-rgb: 255 246 236;
    --ink: rgb(var(--ink-rgb));
    --ink-2: rgb(var(--ink-rgb) / 0.84);
    --ink-3: rgb(var(--ink-rgb) / 0.7);
    --ink-deep: #0b1830;
    --ink-bright: #ffffff;

    --deep-rgb: 8 18 40;
    --deep-2-rgb: 22 40 74;
    --hairline: rgb(var(--sun-rgb) / 0.2);
    --hairline-strong: rgb(var(--sun-rgb) / 0.5);
    --wash: rgb(var(--sun-rgb) / 0.07);
    --wash-strong: rgb(var(--sun-rgb) / 0.13);

    --live-rgb: 255 150 64;
    --live: rgb(var(--live-rgb));
    --live-bright: rgb(255 170 96);
    --live-ink: #1c0e02;
    --alert-rgb: 255 128 112;
    --alert: rgb(var(--alert-rgb));
    --alert-soft: #ffc7bd;
    --ok-rgb: 150 226 176;
    --ok: rgb(var(--ok-rgb));

    --crew-0: #ffb870;
    --crew-1: #ff8f72;
    --crew-2: #ffd66b;
    --crew-3: #ff9fb3;
    --crew-4: #8ec8ff;
    --crew-5: #8fe0c6;
    --crew-6: #d8c3a5;
    --crew-7: #c9d6ea;

    --glass-bg: rgb(var(--deep-rgb) / 0.62);
    --shadow-1: 0 2px 6px rgb(2 8 22 / 0.3);
    --shadow-2: 0 14px 34px -14px rgb(2 8 22 / 0.72), 0 2px 6px rgb(2 8 22 / 0.3);

    --font-display: 'Anybody', 'Arial Narrow', sans-serif;
    --font-text: 'Atkinson Hyperlegible Next', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'Atkinson Hyperlegible Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
    --font: var(--font-text);

    --step--1: 0.8125rem;
    --step-0: 0.875rem;
    --step-1: 1rem;
    --step-2: 1.25rem;
    --step-3: 1.625rem;
    --step-4: clamp(2rem, 3.2vw, 2.625rem);
    --step-5: clamp(3rem, 7.5vw, 5rem);

    --r-1: 6px;
    --r-2: 10px;
    --r-3: 16px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --focus-ring: 2px solid rgb(var(--sun-rgb));

    --sky-0: #060e22;
    --sky-1: #0b1a36;
    --sky-2: #13294b;
    --cyan: #ffd29c;
    --violet: #ffdcb4;
    --pink: #ffb48c;
    --ink-dim: var(--ink-3);
    --grad: linear-gradient(var(--ink), var(--ink));

    --nav-h: 76px;
    --page-pad-b: 96px;
    --gutter: clamp(18px, 4vw, 40px);
}

html[data-sky="night"] {
    --accent-rgb: 176 198 240;
    --sun-rgb: 205 215 238;
    --sky-zenith-rgb: 6 12 28;
    --sky-upper-rgb: 10 21 46;
    --sky-horizon-rgb: 20 33 60;
}

html[data-sky="blue"] {
    --accent-rgb: 255 178 150;
    --sun-rgb: 236 170 140;
    --sky-zenith-rgb: 9 21 50;
    --sky-upper-rgb: 22 42 84;
    --sky-horizon-rgb: 150 104 104;
}

html[data-sky="day"] {
    --sun-rgb: 255 240 214;
    --sky-zenith-rgb: 12 37 84;
    --sky-upper-rgb: 20 53 107;
    --sky-horizon-rgb: 140 160 192;
    --accent-rgb: 255 194 100;
}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow-y: auto;
    scrollbar-gutter: stable;
    background: rgb(var(--sky-zenith-rgb));
    color-scheme: dark;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

::-webkit-scrollbar {
    width: 11px;
    height: 11px;
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-corner {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgb(var(--sun-rgb) / 0.26);
    border-radius: 999px;
    border: 3px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(var(--sun-rgb) / 0.46);
    background-clip: padding-box;
}

@supports not selector(::-webkit-scrollbar) {
    html {
        scrollbar-color: rgb(var(--sun-rgb) / 0.32) transparent;
    }
}

body {
    margin: 0;
    min-height: 100%;
    font-family: var(--font-text);
    font-size: var(--step-1);
    line-height: 1.55;
    color: var(--ink);
    overflow-x: hidden;
    font-kerning: normal;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: var(--font-text);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: 112%;
    line-height: 1.08;
    letter-spacing: -0.012em;
}

p {
    text-wrap: pretty;
}

a {
    color: var(--ink);
    text-decoration-line: underline;
    text-decoration-color: rgb(var(--sun-rgb) / 0.55);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
    transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

a:hover {
    text-decoration-color: rgb(var(--sun-rgb));
}

[z-link] {
    cursor: pointer;
}

::selection {
    background: rgb(var(--sun-rgb) / 0.34);
    color: var(--ink);
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

input,
textarea {
    caret-color: rgb(var(--sun-rgb));
}

:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 3px;
    border-radius: var(--r-1);
}

#page:focus,
#page h1[tabindex="-1"]:focus {
    outline: none;
}

code,
kbd,
samp,
.mono {
    font-family: var(--font-mono);
    font-size: 0.9em;
}

kbd {
    display: inline-block;
    min-width: 1.5em;
    padding: 0 0.35em;
    border: 1px solid var(--hairline-strong);
    border-radius: var(--r-1);
    color: var(--ink-2);
    font-size: 0.78em;
    line-height: 1.5;
    text-align: center;
}

.num {
    font-variant-numeric: tabular-nums;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 10px 16px;
    border-radius: var(--r-2);
    background: var(--ink);
    color: var(--ink-deep);
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: none;
}

.link-btn {
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    text-decoration: underline;
    text-decoration-color: rgb(var(--sun-rgb) / 0.55);
    text-underline-offset: 0.22em;
    cursor: pointer;
}

.link-btn:hover {
    text-decoration-color: rgb(var(--sun-rgb));
}

.btn-reset {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: inherit;
}

.sky {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(180deg, rgb(var(--sky-zenith-rgb)) 0%, rgb(var(--sky-upper-rgb)) 70%, rgb(var(--sky-horizon-rgb) / 0.5) 76%, rgb(var(--sky-upper-rgb)) 82%, rgb(var(--sky-zenith-rgb)) 100%);
}

.sky[data-view="deck"] {
    background: linear-gradient(180deg, rgb(var(--sky-zenith-rgb)) 0%, rgb(var(--sky-upper-rgb)) 62%, rgb(var(--sky-horizon-rgb) / 0.75) 70%, rgb(var(--sky-upper-rgb)) 78%, rgb(var(--sky-zenith-rgb)) 100%);
}

.sky::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 46%;
    background: linear-gradient(180deg, rgb(var(--sky-zenith-rgb) / 0) 0%, rgb(var(--sky-zenith-rgb) / var(--scrim-mid, 0.5)) 38%, rgb(var(--sky-zenith-rgb) / var(--scrim-end, 0.74)) 100%);
    opacity: 0;
    transition: opacity 0.9s ease;
    pointer-events: none;
}

.sky[data-view="high"]::after {
    opacity: 1;
}

html[data-sky="day"] .sky {
    --scrim-mid: 0.76;
    --scrim-end: 0.9;
}

html[data-sky="golden"] .sky {
    --scrim-mid: 0.58;
    --scrim-end: 0.8;
}

.sky-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.sky-canvas.is-on {
    opacity: 1;
}

.glass {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--hairline);
    border-top-color: rgb(var(--sun-rgb) / 0.32);
    border-radius: var(--r-3);
    box-shadow: var(--shadow-2);
    backdrop-filter: blur(18px) saturate(1.1);
    -webkit-backdrop-filter: blur(18px) saturate(1.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--r-2);
    background: none;
    color: var(--ink);
    font-family: var(--font-text);
    font-size: var(--step-0);
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}

.btn svg {
    flex: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--ink);
    color: var(--ink-deep);
    box-shadow: var(--shadow-1);
}

.btn-primary:hover {
    background: var(--ink-bright);
    box-shadow: var(--shadow-2);
}

.btn-ghost {
    border-color: var(--hairline-strong);
    color: var(--ink);
}

.btn-ghost:hover {
    border-color: rgb(var(--sun-rgb) / 0.8);
    background: var(--wash);
}

.btn-live {
    background: var(--live);
    color: var(--live-ink);
    box-shadow: var(--shadow-1);
}

.btn-live:hover {
    background: var(--live-bright);
}

.btn-danger {
    border-color: rgb(var(--alert-rgb) / 0.6);
    color: var(--alert-soft);
}

.btn-danger:hover {
    border-color: var(--alert);
    background: rgb(var(--alert-rgb) / 0.12);
}

.btn-sm {
    min-height: 36px;
    padding: 0 14px;
    font-size: var(--step--1);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-on,
.btn[aria-pressed="true"] {
    border-color: var(--hairline-strong);
    background: var(--wash-strong);
    color: var(--ink);
}

.btn-dangerish:hover {
    border-color: rgb(var(--alert-rgb) / 0.6);
    color: var(--alert-soft);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: var(--r-2);
    background: none;
    color: var(--ink-2);
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn-icon svg {
    display: block;
}

.btn-icon:hover {
    border-color: var(--hairline);
    background: var(--wash);
    color: var(--ink);
}

.btn-icon-on,
.btn-icon[aria-pressed="true"] {
    border-color: var(--hairline-strong);
    background: var(--wash-strong);
    color: var(--ink);
}

.btn-icon-danger:hover {
    border-color: rgb(var(--alert-rgb) / 0.5);
    background: rgb(var(--alert-rgb) / 0.1);
    color: var(--alert-soft);
}

.btn-icon-good {
    color: var(--ok);
}

.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn[aria-busy="true"] {
    cursor: progress;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field > span:first-child,
.field-label {
    color: var(--ink-2);
    font-size: var(--step-0);
    font-weight: 600;
}

.input,
.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 2px;
    border: 0;
    border-bottom: 1px solid var(--hairline-strong);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-size: var(--step-1);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.input::placeholder,
.field input::placeholder,
.field textarea::placeholder {
    color: var(--ink-3);
}

.input:hover,
.field input:hover,
.field select:hover,
.field textarea:hover {
    border-bottom-color: rgb(var(--sun-rgb) / 0.75);
}

.input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-bottom-color: rgb(var(--sun-rgb));
    box-shadow: 0 1px 0 rgb(var(--sun-rgb));
}

.input[aria-invalid="true"],
.field input[aria-invalid="true"] {
    border-bottom-color: var(--alert);
}

select {
    accent-color: rgb(var(--sun-rgb));
}

select option {
    background: var(--sky-1);
    color: var(--ink);
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: rgb(var(--sun-rgb));
    width: 18px;
    height: 18px;
}

.form-notice {
    margin: 0;
    color: var(--ink-2);
    font-size: var(--step-0);
}

.form-notice:empty {
    display: none;
}

.form-notice.error,
.form-notice[role="alert"]:not(:empty) {
    color: var(--alert-soft);
}

.meta {
    color: var(--ink-3);
    font-size: var(--step--1);
}

.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--live);
}

.crew-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--crew, var(--crew-7));
    color: var(--ink-deep);
    font-size: 0.75rem;
    font-weight: 700;
    overflow: hidden;
}

.crew-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

site-nav {
    display: block;
    min-height: var(--nav-h);
}

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    height: var(--nav-h);
    padding: 0 max(var(--gutter), calc((100% - 1200px) / 2 + var(--gutter)));
}

.nav::before {
    content: '';
    position: absolute;
    inset: 0 0 -24px;
    z-index: -1;
    background: linear-gradient(180deg, rgb(var(--sky-zenith-rgb) / 0.92) 0%, rgb(var(--sky-zenith-rgb) / 0.6) 62%, transparent 100%);
    pointer-events: none;
}

.nav-brand {
    justify-self: start;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    font-stretch: 118%;
    letter-spacing: -0.01em;
    text-decoration: none;
}

body:has(#page .landing) .nav-brand {
    visibility: hidden;
}

.nav-brand .accent {
    color: rgb(var(--accent-rgb));
    transition: color 0.6s ease;
}

.accent {
    color: inherit;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 36px);
}

.nav-links a {
    position: relative;
    padding: 8px 0;
    color: var(--ink-2);
    font-size: var(--step-0);
    font-weight: 600;
    text-decoration: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    border-radius: var(--r-1);
    background: rgb(var(--sun-rgb));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out);
}

.nav-links a:hover {
    color: var(--ink);
}

.nav-links a.active {
    color: var(--ink);
}

.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-links-app {
    display: none;
}

body[data-zone="app"] .nav-links-public {
    display: none;
}

body[data-zone="app"] .nav-links-app {
    display: flex;
}

.nav > :last-child {
    justify-self: end;
}

.nav-chevron svg {
    display: block;
    transition: transform 0.2s var(--ease-out);
}

.nav-avatar-btn[aria-expanded="true"] .nav-chevron svg {
    transform: rotate(180deg);
}

.jump-hint {
    display: inline-flex;
    gap: 3px;
    color: var(--ink-3);
}

.jump-hint kbd {
    min-width: 1.6em;
    font-size: 0.75rem;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--hairline-strong);
    border-radius: var(--r-2);
    color: var(--ink);
    font-size: var(--step-0);
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav-cta:hover {
    border-color: rgb(var(--sun-rgb) / 0.8);
    background: var(--wash);
}

.nav-authed {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-user-wrap {
    position: relative;
}

.nav-avatar-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 4px 12px 4px 4px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: none;
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav-avatar-btn:hover,
.nav-avatar-btn[aria-expanded="true"] {
    border-color: var(--hairline);
    background: var(--wash);
}

.nav-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--crew, var(--crew-0));
    color: var(--ink-deep);
    font-size: 0.75rem;
    font-weight: 700;
    overflow: hidden;
}

.nav-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-avatar-name {
    max-width: 150px;
    overflow: hidden;
    font-size: var(--step-0);
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-chevron {
    color: var(--ink-3);
}

.nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    min-width: 220px;
    padding: 6px;
    border: 1px solid var(--hairline);
    border-top-color: rgb(var(--sun-rgb) / 0.32);
    border-radius: var(--r-3);
    background: rgb(var(--deep-rgb) / 0.97);
    box-shadow: var(--shadow-2);
    animation: menu-in 0.18s var(--ease-out);
}

@keyframes menu-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.nav-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: var(--r-2);
    background: none;
    color: var(--ink);
    font-size: var(--step-0);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.nav-menu-item:hover,
.nav-menu-item:focus-visible {
    background: var(--wash-strong);
}

.nav-menu-signout {
    margin-top: 6px;
    border-top: 1px solid var(--hairline);
    border-radius: 0 0 var(--r-2) var(--r-2);
    color: var(--alert-soft);
}

.bell-wrap {
    position: relative;
}

.bell-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid transparent;
    border-radius: 50%;
    background: none;
    color: var(--ink-2);
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.bell-btn:hover,
.bell-open {
    color: var(--ink);
    border-color: var(--hairline);
    background: var(--wash);
}

.bell-badge {
    position: absolute;
    top: 4px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--live);
    color: var(--live-ink);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.bell-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    width: 340px;
    max-width: 88vw;
    overflow: hidden;
    border: 1px solid var(--hairline);
    border-top-color: rgb(var(--sun-rgb) / 0.32);
    border-radius: var(--r-3);
    background: rgb(var(--deep-rgb) / 0.97);
    box-shadow: var(--shadow-2);
    animation: menu-in 0.18s var(--ease-out);
}

.bell-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--hairline);
    color: var(--ink);
    font-size: var(--step-0);
    font-weight: 600;
}

.bell-panel-acts {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bell-clear {
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink-2);
    font-size: var(--step--1);
    text-decoration: underline;
    text-decoration-color: var(--hairline-strong);
    text-underline-offset: 0.2em;
    cursor: pointer;
}

.bell-clear:hover {
    color: var(--ink);
}

.bell-clear-read {
    color: var(--ink-3);
}

.bell-list {
    display: flex;
    flex-direction: column;
    max-height: 400px;
    margin: 0;
    padding: 6px;
    overflow-y: auto;
    list-style: none;
}

.bell-item {
    display: grid;
    grid-template-columns: 10px 1fr;
    column-gap: 10px;
    row-gap: 2px;
    width: 100%;
    padding: 10px;
    border-radius: var(--r-2);
    cursor: pointer;
}

.bell-item > * {
    grid-column: 2;
}

.bell-item:hover {
    background: var(--wash);
}

.bell-unread::before {
    content: '';
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--live);
}

.bell-item-title {
    font-size: var(--step-0);
}

.bell-unread .bell-item-title {
    font-weight: 700;
}

.bell-item-body {
    color: var(--ink-2);
    font-size: var(--step--1);
}

.bell-item-time {
    color: var(--ink-3);
    font-size: var(--step--1);
}

.bell-empty {
    padding: 28px 16px;
    color: var(--ink-3);
    font-size: var(--step-0);
    text-align: center;
}

#page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--gutter) var(--page-pad-b);
}

.page-head {
    display: grid;
    gap: 12px;
    max-width: 760px;
    margin: clamp(40px, 7vh, 72px) 0 clamp(32px, 5vh, 48px);
}

.page-head h1 {
    margin: 0;
    font-size: var(--step-4);
}

.page-head p {
    max-width: 60ch;
    margin: 0;
    color: var(--ink-2);
    font-size: var(--step-1);
    line-height: 1.6;
}

.placeholder {
    max-width: 520px;
    margin: 12vh 0;
    color: var(--ink-2);
    line-height: 1.6;
}

.placeholder h1 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: var(--step-4);
}

.orb {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-bottom: 24px;
    border-radius: 50%;
    background: rgb(var(--sun-rgb));
}

.dock {
    display: none;
}

@media (max-width: 860px) {
    :root {
        --nav-h: 64px;
    }

    .nav {
        grid-template-columns: 1fr auto;
    }

    body .nav-links,
    body[data-zone] .nav-links,
    .nav .nav-cta,
    .nav-avatar-name,
    .nav-chevron,
    .jump-hint {
        display: none;
    }

    .nav-avatar-btn {
        padding: 4px;
    }

    body[data-zone] {
        --page-pad-b: 132px;
        --dock-clear: 76px;
    }

    body[data-zone="public"] .dock-public,
    body[data-zone="app"] .dock-app,
    body[data-zone="app"].dock-flip .dock-public {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        z-index: 40;
        display: flex;
        justify-content: space-around;
        align-items: stretch;
        padding: 6px;
        border: 1px solid var(--hairline);
        border-top-color: rgb(var(--sun-rgb) / 0.32);
        border-radius: 18px;
        background: rgb(var(--deep-rgb) / 0.9);
        box-shadow: var(--shadow-2);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    body[data-zone="app"].dock-flip .dock-app {
        display: none;
    }

    .dock-item {
        display: flex;
        flex: 1 1 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-width: 0;
        min-height: 54px;
        padding: 6px 2px;
        border: 0;
        border-radius: var(--r-2);
        background: none;
        color: var(--ink-2);
        font-size: 0.75rem;
        font-weight: 600;
        text-decoration: none;
        cursor: pointer;
        transition: color 0.2s ease, background-color 0.2s ease;
    }

    .dock-item svg {
        width: 20px;
        height: 20px;
    }

    .dock-item.active {
        color: var(--ink);
        background: var(--wash-strong);
    }

    .dock-item.dock-cta {
        color: var(--ink);
    }

    .dock-switch {
        color: var(--ink-2);
    }
}

@media (max-width: 860px) and (max-height: 520px) {
    body[data-zone] {
        --page-pad-b: 88px;
    }

    body[data-zone="public"] .dock-public,
    body[data-zone="app"] .dock-app,
    body[data-zone="app"].dock-flip .dock-public {
        left: 50%;
        right: auto;
        bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        transform: translateX(-50%);
        padding: 4px;
    }

    .dock-item {
        flex: 0 0 auto;
        flex-direction: row;
        gap: 6px;
        min-height: 44px;
        padding: 0 14px;
    }

    .dock-item svg {
        width: 18px;
        height: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
