@layer reset, theme, layout, components;

@layer reset {
    *, *::before, *::after { box-sizing: border-box; }
    html, body { margin: 0; padding: 0; }
    button, input, textarea, select { font: inherit; color: inherit; }
    a { color: inherit; }
    img, video { max-width: 100%; display: block; }
    button { cursor: pointer; }
    h1, h2, h3, p { margin: 0; }
    [hidden] {
        display: none !important;
    }
}

@layer theme {
    :root, [data-theme="dark"], [data-theme="system"] {
        color-scheme: dark;
        --bg: #101114;
        --elev: #191c22;
        --soft: #232833;
        --line: rgba(255, 255, 255, .08);
        --text: #f6f3ee;
        --muted: #a3a8b3;
        --accent: #ff6a3d;
        --accent-2: #3ddec4;
        --ok: #3ddc97;
        --bad: #ff5d73;
        --shadow: 0 24px 60px rgba(0, 0, 0, .35);
        --glow-a: rgba(255, 106, 61, .22);
        --glow-b: rgba(61, 222, 196, .14);
        --on-accent: #fff;
        --cover: #242833;
    }
    [data-theme="light"] {
        color-scheme: light;
        --bg: #f3f0ea;
        --elev: #fffcf8;
        --soft: #efe8df;
        --line: rgba(40, 28, 18, .08);
        --text: #1d1916;
        --muted: #6f675f;
        --accent: #e85d34;
        --accent-2: #0f8f74;
        --shadow: 0 18px 40px rgba(80, 48, 20, .08);
        --glow-a: rgba(232, 93, 52, .16);
        --glow-b: rgba(15, 143, 116, .12);
        --on-accent: #fff;
        --ok: #0c7a45;
        --bad: #c6284a;
        --cover: #f0e4d8;
    }
    [data-theme="white"] {
        color-scheme: light;
        --bg: #ffffff;
        --elev: #ffffff;
        --soft: #f4f4f4;
        --line: rgba(0, 0, 0, .1);
        --text: #111111;
        --muted: #5c5c5c;
        --accent: #111111;
        --accent-2: #111111;
        --shadow: 0 10px 28px rgba(0, 0, 0, .05);
        --glow-a: transparent;
        --glow-b: transparent;
        --on-accent: #fff;
        --ok: #0b7a32;
        --bad: #c4233a;
        --cover: #f2f2f2;
    }
    [data-theme="mint"] {
        color-scheme: light;
        --bg: #e7f6ee;
        --elev: #ffffff;
        --soft: #d5f0e3;
        --line: rgba(12, 70, 40, .1);
        --text: #10261c;
        --muted: #4d6b5c;
        --accent: #0e8f55;
        --accent-2: #e07a32;
        --shadow: 0 18px 40px rgba(16, 80, 48, .08);
        --glow-a: rgba(14, 143, 85, .18);
        --glow-b: rgba(224, 122, 50, .12);
        --on-accent: #fff;
        --ok: #0b6b3a;
        --bad: #c4233a;
        --cover: #cfe8db;
    }
    @media (prefers-color-scheme: light) {
        [data-theme="system"] {
            color-scheme: light;
            --bg: #f3f0ea;
            --elev: #fffcf8;
            --soft: #efe8df;
            --line: rgba(40, 28, 18, .08);
            --text: #1d1916;
            --muted: #6f675f;
            --accent: #e85d34;
            --accent-2: #0f8f74;
            --shadow: 0 18px 40px rgba(80, 48, 20, .08);
            --glow-a: rgba(232, 93, 52, .16);
            --glow-b: rgba(15, 143, 116, .12);
            --on-accent: #fff;
            --ok: #0c7a45;
            --bad: #c6284a;
            --cover: #f0e4d8;
        }
    }
}

@layer layout {
    @view-transition { navigation: auto; }
    ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
    html { height: 100%; }
    body {
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        background: var(--bg);
        color: var(--text);
        font-family: "Segoe UI", system-ui, sans-serif;
        font-size: 16px;
        line-height: 1.45;
    }
    .atmosphere {
        position: fixed;
        inset: 0;
        pointer-events: none;
        background:
            radial-gradient(900px 420px at -10% -10%, var(--glow-a), transparent 55%),
            radial-gradient(700px 380px at 110% 0%, var(--glow-b), transparent 50%);
    }
    .shell {
        position: relative;
        display: grid;
        grid-template-columns: 232px minmax(0, 680px) 300px;
        gap: 28px;
        width: 100%;
        max-width: 1240px;
        margin: 0 auto;
        padding: 22px 20px 40px;
        flex: 1 0 auto;
    }
    .nav, .rail { position: sticky; top: 18px; align-self: start; min-width: 0; max-width: 100%; }
    img, video { max-width: 100%; }
    .card, .panel, .post, .q-hero, .answer-card, .admin-card, .modal-card, .settings-card, .hero, .inbox-item, .people-card, .filter-card, .shop-card, .profile-body {
        min-width: 0; max-width: 100%;
    }
    h1, h2, h3, p, li, blockquote, .ask-title, .qotd, .bio, .answer-text, .err-msg, .inbox-body, .meta, .people-id b, .people-id small, .admin-item b, .admin-item small, .profile-id h1 {
        overflow-wrap: anywhere;
    }
    .logo {
        display: inline-block;
        font-weight: 760;
        font-size: 28px;
        letter-spacing: -.06em;
        text-decoration: none;
        margin-bottom: 22px;
    }
    .logo::after {
        content: "";
        display: inline-block;
        width: 8px; height: 8px;
        margin-left: 2px;
        border-radius: 50%;
        background: var(--accent);
        animation: pulse 2.4s ease-in-out infinite;
    }
    .menu, .nav-foot { display: flex; flex-direction: column; gap: 4px; }
    .menu a, .nav-foot a:not(.btn) {
        display: flex; align-items: center; gap: 12px;
        text-decoration: none;
        padding: 10px 12px;
        border-radius: 12px;
        color: var(--muted);
        min-width: 0; max-width: 100%; overflow: hidden;
    }
    .menu a:hover, .nav-foot a:not(.btn):hover, .menu a:focus-visible { background: var(--soft); color: var(--text); }
    .nav-foot { margin-top: 28px; }
    .me span, .menu span, .nav-foot span {
        display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .nav-foot a.me { width: 100%; }
    .nav-foot a.me .avatar { width: 22px; height: 22px; font-size: 11px; flex: none; }
    .stage { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
    .topbar { display: flex; gap: 12px; align-items: center; }
    .tabbar { display: none; }
    @media (max-width: 1100px) {
        .shell { grid-template-columns: 84px minmax(0, 1fr); }
        .rail, .menu span, .nav-foot span, .me span { display: none; }
        .nav { display: flex; flex-direction: column; align-items: center; }
        .menu a, .nav-foot a:not(.btn) { justify-content: center; padding: 12px; }
    }
    @media (max-width: 760px) {
        .shell { grid-template-columns: 1fr; padding: 12px 12px 96px; }
        .nav { display: none; }
        .tabbar {
            display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px;
            background: color-mix(in srgb, var(--elev) 88%, transparent);
            border: 1px solid var(--line); border-radius: 20px;
            justify-content: space-around; padding: 8px; z-index: 5;
            backdrop-filter: blur(16px);
        }
        .tabbar a { display: grid; place-items: center; width: 46px; height: 42px; text-decoration: none; color: var(--muted); }
        .fab { background: var(--accent); color: var(--on-accent) !important; border-radius: 14px; }
    }
}

@layer components {
    .ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .search {
        flex: 1; display: flex; align-items: center; gap: 8px;
        background: var(--elev); border: 1px solid var(--line); border-radius: 999px; padding: 0 14px;
    }
    .search input {
        width: 100%; background: transparent; border: 0; outline: none; padding: 12px 0; box-shadow: none;
    }
    .themes { display: flex; gap: 6px; }
    .themes button {
        border: 1px solid var(--line); background: var(--elev); border-radius: 999px; padding: 8px 12px;
    }
    .btn, .card > button, .post button, form.card button, .row-form button {
        display: inline-flex; align-items: center; justify-content: center; gap: 8px;
        border: 1px solid transparent; background: var(--soft); color: var(--text);
        border-radius: 999px; padding: 12px 18px; font-weight: 650; text-decoration: none;
        transition: transform .18s ease, filter .18s ease, background .18s ease;
    }
    .btn:hover, form.card button:hover { transform: translateY(-1px); }
    .btn.solid, button.solid {
        background: var(--accent);
        color: var(--on-accent);
        box-shadow: none;
    }
    .btn.ghost { background: transparent; border-color: var(--line); box-shadow: none; }
    .card, .post, .panel, .flash, .bare-card, .hero {
        background: var(--elev);
        border: 1px solid var(--line);
        border-radius: 20px;
        box-shadow: var(--shadow);
    }
    .post, .ask-card, .q-hero {
        background: color-mix(in srgb, var(--bg) 28%, var(--elev));
    }
    .post, .card, .hero { padding: 18px; }
    .post { animation: rise .45s ease both; }
    .post:nth-child(2) { animation-delay: .05s; }
    .post:nth-child(3) { animation-delay: .1s; }
    .post header, .person, .row, .split { display: flex; gap: 12px; align-items: center; }
    .name { font-weight: 700; text-decoration: none; }
    .meta, .muted, small { color: var(--muted); font-size: 13px; }
    .tick { color: var(--accent-2); font-style: normal; margin-left: 4px; }
    blockquote {
        margin: 14px 0; padding: 12px 14px; border-radius: 14px;
        background: var(--soft);
    }
    .anon, .brand, .badge {
        display: inline-flex; font-size: 12px; border-radius: 999px; padding: 2px 8px; margin-right: 6px;
        background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent);
    }
    .badge { background: var(--accent); color: var(--on-accent); }
    .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
    .actions button, .actions summary {
        border: 1px solid var(--line); background: var(--elev); border-radius: 999px; padding: 8px 12px;
    }
    .actions a { color: var(--muted); font-size: 14px; }
    .actions a.comment-chip {
        display: inline-flex; align-items: center; gap: 6px;
        padding: 8px 14px; border-radius: 999px; background: var(--accent);
        color: var(--on-accent); font-weight: 750; text-decoration: none;
    }
    .c-sticker { font-size: 16px; line-height: 1; }
    .link-card {
        display: flex; flex-direction: column; overflow: hidden; margin-top: 12px; max-width: 520px;
        text-decoration: none; color: var(--text);
        border: 1px solid var(--line); border-radius: 16px; background: var(--soft);
    }
    .link-card-cover { display: block; aspect-ratio: 1200 / 630; background: var(--elev); overflow: hidden; }
    .link-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .link-card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; min-width: 0; }
    .link-card-body small { color: var(--muted); font-size: 12px; }
    .link-card-body b { color: var(--text); font-size: 15px; letter-spacing: -.02em; }
    .link-card-body span {
        color: var(--muted); font-size: 13px; display: -webkit-box;
        -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .bubble .link-card {
        margin-top: 8px; max-width: 100%;
        background: var(--elev); color: var(--text); border-color: var(--line);
    }
    .bubble.mine .link-card {
        background: var(--elev);
        border-color: color-mix(in srgb, var(--on-accent) 28%, var(--line));
        box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
    }
    .bubble .link-card-body b { color: var(--text); }
    .bubble .link-card-body small,
    .bubble .link-card-body span { color: var(--muted); }
    .post header > div:not(.more-wrap) { flex: 1; min-width: 0; }
    .ask-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
    .ask-top .q-meta { flex: 1; margin: 0; }
    .more-wrap { position: relative; margin-left: auto; flex: none; }
    .post .more-btn {
        width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
        background: transparent; color: var(--muted);
    }
    .more-wrap .menu-pop { top: 40px; }
    .menu-pop form { margin: 0; }
    .menu-pop form button { width: 100%; }
    .actions .on { border-color: var(--accent); color: var(--accent); }
    a:has(> .avatar) { display: inline-flex; align-items: center; justify-content: center; line-height: 0; flex: none; }
    .nav-foot a.me, .nav-foot a.me:has(> .avatar) {
        display: flex; align-items: center; justify-content: flex-start; gap: 12px;
        width: 100%; line-height: 1.35; text-align: left; padding: 10px 12px;
    }
    .nav-foot a.me .avatar { width: 22px; height: 22px; font-size: 11px; flex: none; }
    .nav-foot a.me > span {
        display: block; min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.35;
    }
    .avatar {
        width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none;
        display: inline-flex; align-items: center; justify-content: center;
        font-weight: 700; font-size: 18px; line-height: 1; text-align: center; overflow: hidden;
    }
    .avatar.sm { width: 36px; height: 36px; font-size: 15px; }
    .avatar.lg { width: 84px; height: 84px; font-size: 32px; }
    .avatar.letter { color: #fff; display: grid; place-items: center; line-height: 1; padding: 0; text-align: center; }
    a.person:has(> .avatar) {
        display: flex; align-items: center; justify-content: flex-start; gap: 10px;
        width: 100%; line-height: 1.35; text-align: left;
    }
    a.person > .avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; line-height: 1; padding: 0; }
    a.person > span:not(.avatar) {
        display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; line-height: 1.25;
    }
    a.person b, a.person small {
        display: block; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .hue-0 { background: #ff6a3d; } .hue-1 { background: #e85d34; } .hue-2 { background: #0e8f55; }
    .hue-3 { background: #1f7ae0; } .hue-4 { background: #7a5af8; } .hue-5 { background: #d9467a; }
    .hue-6 { background: #0f8f74; } .hue-7 { background: #c2410c; } .hue-8 { background: #0369a1; }
    .hue-9 { background: #4d7c0f; } .hue-10 { background: #9f1239; } .hue-11 { background: #334155; }
    .panel { padding: 16px; margin-bottom: 14px; overflow: hidden; }
    .panel h2 { font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
    .person { text-decoration: none; padding: 6px 0; }
    .person small, .person span { display: block; }
    .qotd { text-decoration: none; font-size: 18px; letter-spacing: -.02em; }
    .legal { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
    .flash { padding: 12px 14px; }
    .flash.bad { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
    .flash.ok { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
    .hero { padding: 36px 28px; overflow: hidden; position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
    .hero h1 { font-size: clamp(36px, 6vw, 64px); letter-spacing: -.05em; line-height: .95; max-width: 12ch; margin: 0; }
    .hero p { margin: 0; max-width: 38ch; color: var(--muted); font-size: 18px; }
    .hero .cta { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
    .stats { display: flex; gap: 18px; margin-top: 22px; color: var(--muted); }
    .stats b { color: var(--text); font-size: 22px; display: block; }
    .chips { display: flex; gap: 8px; overflow: auto; padding-bottom: 4px; }
    .chips a { text-decoration: none; padding: 8px 12px; border-radius: 999px; background: var(--soft); white-space: nowrap; }
    .chips a.on { background: var(--accent); color: var(--on-accent); }
    .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
    .field span, .switch span { color: var(--text); font-size: 14px; font-weight: 600; }
    .field input, .field textarea, .field select,
    .row-form input, .row-form select, .inline-msg input, .user-row input, .user-row select {
        width: 100%; background: var(--soft); border-radius: 14px; padding: 14px 16px;
        border: 1px solid var(--line);
        transition: border-color .18s ease, box-shadow .18s ease;
    }
    .field textarea { min-height: 110px; resize: vertical; }
    .field input:focus, .field textarea:focus, .field select:focus,
    .row-form input:focus, .row-form select:focus, .inline-msg input:focus {
        border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
        outline: none;
    }
    input[type="file"] {
        padding: 12px; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--line));
        background: var(--soft);
    }
    select {
        appearance: none;
        background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
        background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%;
        background-size: 6px 6px, 6px 6px;
        background-repeat: no-repeat;
        padding-right: 36px;
    }
    label:has(> input[type="checkbox"]), .switch {
        display: flex; align-items: center; justify-content: space-between; gap: 14px;
        min-height: 52px; margin: 0 0 8px; padding: 8px 14px; border-radius: 14px;
        background: var(--soft); cursor: pointer;
    }
    input[type="checkbox"] {
        appearance: none; width: 46px; height: 28px; margin: 0; flex: 0 0 auto;
        border-radius: 999px; border: 0; position: relative; cursor: pointer;
        background: color-mix(in srgb, var(--muted) 35%, var(--elev));
        transition: background .18s ease;
    }
    input[type="checkbox"]::before {
        content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%;
        top: 3px; left: 3px; background: white; box-shadow: 0 2px 6px rgba(0,0,0,.18);
        transition: transform .18s ease;
    }
    input[type="checkbox"]:checked { background: var(--accent); }
    input[type="checkbox"]:checked::before { transform: translateX(18px); }
    .field input[type="checkbox"] { width: 46px; padding: 0; }
    .switches { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
    .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    @media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
    .card > button.shot-open, button.shot-open {
        position: relative; display: block; width: fit-content; max-width: min(100%, 420px);
        margin-top: 10px; padding: 0; border: 0; background: transparent; border-radius: 14px; overflow: hidden; cursor: zoom-in;
        box-shadow: none; transform: none;
    }
    .shot { max-height: 240px; width: auto; max-width: 100%; object-fit: cover; border-radius: 14px; margin: 0; }
    .shot-open .wm, .video .wm {
        position: absolute; right: 10px; bottom: 8px; color: #fff; font-weight: 800; letter-spacing: .03em;
        text-shadow: 0 1px 2px rgba(0, 0, 0, .55); pointer-events: none; opacity: 1;
    }
    .lightbox {
        position: fixed; inset: 0; z-index: 40; display: grid; grid-template-rows: 1fr auto;
        background: rgba(0, 0, 0, .86); padding: 16px;
    }
    .lightbox[hidden] { display: none; }
    .lightbox-x {
        position: absolute; top: 14px; right: 14px; z-index: 2;
        width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
        background: rgba(255, 255, 255, .16); color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
    }
    .lightbox-x:hover { background: rgba(255, 255, 255, .28); }
    .lightbox-stage { position: relative; display: grid; place-items: center; overflow: auto; min-height: 0; }
    .lightbox-stage img { max-width: min(92vw, 960px); max-height: 76vh; transform-origin: center center; }
    .lightbox-wm {
        position: absolute; right: 28px; bottom: 22px; color: #fff; font-weight: 800; font-size: 28px;
        letter-spacing: .04em; text-shadow: 0 1px 3px #000; pointer-events: none;
    }
    .lightbox-tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding-top: 12px; }
    .video { position: relative; margin-top: 10px; max-width: min(100%, 420px); }
    .video video { max-height: 280px; width: 100%; }
    .video video { border-radius: 14px; }
    .wm { position: absolute; right: 10px; bottom: 10px; font-size: 12px; opacity: .75; }
    .table { width: 100%; border-collapse: collapse; font-size: 14px; }
    .table th, .table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
    .bars { width: 100%; height: 132px; color: var(--accent); }
    .bars rect { fill: currentColor; }
    .bars text { fill: var(--muted); font-size: 11px; }
    .bare {
        display: flex; flex-direction: column; min-height: 100dvh;
        background: var(--bg); color: var(--text);
        font-family: "Segoe UI", system-ui, sans-serif;
    }
    .status-shell {
        position: relative; z-index: 1;
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        gap: 22px; flex: 1; width: min(560px, calc(100% - 32px)); margin: 0 auto; padding: 36px 0 48px;
    }
    .status-shell .logo { margin: 0; }
    .status-wrap { width: 100%; }
    .status-card, .privacy-gate {
        position: relative; overflow: hidden;
        display: flex; flex-direction: column; align-items: center; text-align: center;
        gap: 12px; padding: 36px 28px 28px;
        background: var(--elev); border: 1px solid var(--line); border-radius: 26px;
        box-shadow: var(--shadow);
        animation: rise .35s ease;
    }
    .status-code {
        position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
        margin: 0; font-size: 112px; font-weight: 800; letter-spacing: -.08em; line-height: 1;
        color: color-mix(in srgb, var(--text) 8%, transparent); pointer-events: none; user-select: none;
    }
    .status-mark {
        position: relative; z-index: 1;
        width: 84px; height: 84px; border-radius: 24px;
        display: grid; place-items: center;
        background: color-mix(in srgb, var(--accent) 16%, var(--soft));
        color: var(--accent);
        box-shadow: 0 16px 36px color-mix(in srgb, var(--accent) 18%, transparent);
    }
    .status-mark .ico { width: 36px; height: 36px; }
    .status-card h1, .privacy-gate h1 { position: relative; z-index: 1; font-size: 30px; letter-spacing: -.04em; }
    .status-lead { position: relative; z-index: 1; max-width: 36ch; color: var(--muted); margin: 0; }
    .status-detail {
        width: 100%; max-height: 160px; overflow: auto; text-align: left;
        margin: 4px 0 0; padding: 12px 14px; border-radius: 14px;
        background: var(--soft); color: var(--muted); font-size: 13px; white-space: pre-wrap;
    }
    .status-card .cta, .privacy-gate .cta { position: relative; z-index: 1; justify-content: center; width: 100%; }
    .status-card.is-lock .status-mark, .status-card.is-ban .status-mark {
        background: color-mix(in srgb, var(--accent-2) 18%, var(--soft)); color: var(--accent-2);
        box-shadow: 0 16px 36px color-mix(in srgb, var(--accent-2) 16%, transparent);
    }
    .status-card.is-break .status-mark, .status-card.is-heavy .status-mark, .status-card.is-ban .status-mark {
        background: color-mix(in srgb, var(--bad) 16%, var(--soft)); color: var(--bad);
        box-shadow: 0 16px 36px color-mix(in srgb, var(--bad) 16%, transparent);
    }
    .status-card.is-pause .status-mark, .status-card.is-setup .status-mark {
        background: color-mix(in srgb, var(--accent-2) 18%, var(--soft)); color: var(--accent-2);
        box-shadow: 0 16px 36px color-mix(in srgb, var(--accent-2) 16%, transparent);
    }
    .status-card.is-lost {
        background:
            radial-gradient(420px 160px at 100% 0, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
            var(--elev);
    }
    .status-card.is-lock, .status-card.is-ban {
        background:
            radial-gradient(420px 160px at 0 0, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 70%),
            var(--elev);
    }
    .status-card.is-break, .status-card.is-heavy {
        background:
            radial-gradient(420px 160px at 50% 0, color-mix(in srgb, var(--bad) 14%, transparent), transparent 70%),
            var(--elev);
    }
    .privacy-gate {
        padding: 44px 28px 32px;
        background:
            radial-gradient(520px 200px at 50% -10%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 68%),
            var(--elev);
    }
    .privacy-orb {
        width: 96px; height: 96px; border-radius: 50%;
        display: grid; place-items: center;
        background: color-mix(in srgb, var(--accent-2) 14%, var(--soft));
        border: 1px solid var(--line); color: var(--accent-2);
        box-shadow: 0 18px 40px color-mix(in srgb, var(--accent-2) 18%, transparent);
    }
    .privacy-orb .ico { width: 40px; height: 40px; }
    .privacy-handle { font-weight: 700; color: var(--muted); margin: 0; }
    .privacy-blinds {
        display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
        width: min(100%, 340px); margin: 8px 0 4px;
    }
    .privacy-blinds span {
        height: 52px; border-radius: 12px;
        background: linear-gradient(90deg, var(--soft), color-mix(in srgb, var(--text) 6%, var(--soft)), var(--soft));
        background-size: 180% 100%;
        filter: blur(.4px); opacity: .85;
        animation: privacy-shimmer 2.4s ease-in-out infinite;
    }
    .privacy-blinds span:nth-child(2) { animation-delay: .15s; opacity: .6; }
    .privacy-blinds span:nth-child(3) { animation-delay: .3s; opacity: .75; }
    .privacy-blinds span:nth-child(4) { animation-delay: .08s; height: 36px; }
    .privacy-blinds span:nth-child(5) { animation-delay: .22s; height: 36px; opacity: .55; }
    .privacy-blinds span:nth-child(6) { animation-delay: .36s; height: 36px; }
    @keyframes privacy-shimmer {
        50% { background-position: 100% 0; opacity: .55; }
    }
    .bare-card { max-width: 460px; padding: 28px; }
    .pack-aurora { background: linear-gradient(180deg, color-mix(in srgb, #534a72 30%, color-mix(in srgb, #1a1c22 14%, var(--elev))) 0%, color-mix(in srgb, #534a72 16%, var(--elev)) 100%); }
    .pack-paper { background: linear-gradient(180deg, color-mix(in srgb, #6b5c4c 28%, color-mix(in srgb, #1a1c22 12%, var(--elev))) 0%, color-mix(in srgb, #6b5c4c 14%, var(--elev)) 100%); }
    .pack-neon { background: linear-gradient(180deg, color-mix(in srgb, #6b3d55 26%, color-mix(in srgb, #1a1c22 14%, var(--elev))) 0%, color-mix(in srgb, #6b3d55 14%, var(--elev)) 100%); }
    .pack-ocean { background: linear-gradient(180deg, color-mix(in srgb, #3a5064 30%, color-mix(in srgb, #1a1c22 14%, var(--elev))) 0%, color-mix(in srgb, #3a5064 16%, var(--elev)) 100%); }
    .pack-rose { background: linear-gradient(180deg, color-mix(in srgb, #65444c 28%, color-mix(in srgb, #1a1c22 14%, var(--elev))) 0%, color-mix(in srgb, #65444c 14%, var(--elev)) 100%); }
    .pack-ember { background: linear-gradient(180deg, color-mix(in srgb, #654438 30%, color-mix(in srgb, #1a1c22 14%, var(--elev))) 0%, color-mix(in srgb, #654438 16%, var(--elev)) 100%); }
    .pack-forest { background: linear-gradient(180deg, color-mix(in srgb, #3a5044 30%, color-mix(in srgb, #1a1c22 14%, var(--elev))) 0%, color-mix(in srgb, #3a5044 16%, var(--elev)) 100%); }
    .pack-gold { background: linear-gradient(180deg, color-mix(in srgb, #655848 28%, color-mix(in srgb, #1a1c22 12%, var(--elev))) 0%, color-mix(in srgb, #655848 14%, var(--elev)) 100%); }
    .pack-midnight { background: linear-gradient(180deg, color-mix(in srgb, #2e3448 36%, color-mix(in srgb, #12141a 18%, var(--elev))) 0%, color-mix(in srgb, #2e3448 20%, var(--elev)) 100%); }
    .pack-sakura { background: linear-gradient(180deg, color-mix(in srgb, #654c54 28%, color-mix(in srgb, #1a1c22 12%, var(--elev))) 0%, color-mix(in srgb, #654c54 14%, var(--elev)) 100%); }
    .pack-ice { background: linear-gradient(180deg, color-mix(in srgb, #3a545c 28%, color-mix(in srgb, #1a1c22 14%, var(--elev))) 0%, color-mix(in srgb, #3a545c 14%, var(--elev)) 100%); }
    .pack-desert { background: linear-gradient(180deg, color-mix(in srgb, #655044 30%, color-mix(in srgb, #1a1c22 12%, var(--elev))) 0%, color-mix(in srgb, #655044 16%, var(--elev)) 100%); }
    .pack-violet { background: linear-gradient(180deg, color-mix(in srgb, #4c4468 30%, color-mix(in srgb, #1a1c22 14%, var(--elev))) 0%, color-mix(in srgb, #4c4468 16%, var(--elev)) 100%); }
    .pack-mono { background: linear-gradient(180deg, color-mix(in srgb, #444850 24%, color-mix(in srgb, #1a1c22 14%, var(--elev))) 0%, color-mix(in srgb, #444850 12%, var(--elev)) 100%); }
    .pack-candy { background: linear-gradient(180deg, color-mix(in srgb, #5c4450 26%, color-mix(in srgb, #1a1c22 12%, var(--elev))) 0%, color-mix(in srgb, #3a5058 16%, var(--elev)) 100%); }
    .pack-storm { background: linear-gradient(180deg, color-mix(in srgb, #3a4458 26%, var(--elev)) 0%, color-mix(in srgb, #2a303c 18%, var(--elev)) 100%); }
    .profile-hero[class*="pack-"] .cover { background: transparent; }
    .theme-swatch { height: 72px; border-radius: 12px; margin: 8px 0; border: 1px solid var(--line); }
    .sticker-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
    .sticker {
        display: inline-flex; align-items: center; justify-content: center;
        min-width: 52px; min-height: 52px; padding: 8px 10px; margin: 4px 0 8px;
        border-radius: 16px; font-size: 36px; line-height: 1;
        background: color-mix(in srgb, var(--accent) 12%, var(--soft));
        border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
        overflow-wrap: normal; word-break: keep-all; vertical-align: middle;
    }
    .sticker-pick { margin: 8px 0 14px; }
    .sticker-pick-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
    .sticker-btn, form.card .sticker-btn, .modal-card .sticker-btn {
        width: 48px; height: 48px; padding: 0; border-radius: 12px; font-size: 26px; line-height: 1;
        border: 1px solid var(--line); background: var(--soft); box-shadow: none; transform: none;
    }
    .sticker-btn.on, .sticker-row.pick .sticker-btn.on {
        background: color-mix(in srgb, var(--accent) 18%, var(--elev));
        border-color: var(--accent);
    }
    .sticker-row .sticker { min-width: 44px; min-height: 44px; font-size: 26px; margin: 0; }
    .comment .sticker, .latest-note .sticker { min-width: 44px; min-height: 44px; font-size: 28px; margin: 8px 0; }
    .wall-card .sticker {
        align-self: flex-start; min-width: 0; min-height: 0; width: auto;
        padding: 4px 6px; margin: 0; font-size: 28px; line-height: 1;
        background: var(--soft); border: 0; border-radius: 10px;
    }
    .qrbox svg { width: min(220px, 70vw); height: auto; border-radius: 14px; }
    :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
    .hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
    ::placeholder { color: var(--muted); }
    .post blockquote { font-size: 15px; }
    .post .answer { margin-top: 12px; font-size: 18px; letter-spacing: -.02em; }
    .shell:has(.messenger) { grid-template-columns: 232px minmax(0, 1fr); }
    .shell:has(.messenger) .rail { display: none; }
    .messenger {
        display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); height: min(78vh, 820px); min-height: 0;
        background: var(--elev); border: 1px solid var(--line); border-radius: 26px; overflow: hidden;
    }
    .chat-list { display: flex; flex-direction: column; border-right: 1px solid var(--line); overflow: auto; background: color-mix(in srgb, var(--soft) 55%, var(--elev)); }
    .chat-row time { color: var(--muted); font-size: 12px; font-weight: 550; white-space: nowrap; }
    .chat-list header, .chat-head { padding: 16px 18px; border-bottom: 1px solid var(--line); }
    .chat-list h1, .chat-list header a { font-size: 22px; letter-spacing: -.03em; text-decoration: none; }
    .chat-tabs {
        display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 12px 14px 0;
        padding: 4px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line);
    }
    .chat-tabs a {
        display: flex; align-items: center; justify-content: center; gap: 8px;
        min-height: 40px; padding: 8px 10px; border-radius: 10px; text-decoration: none;
        font-weight: 700; color: var(--muted); background: transparent; border: 0;
    }
    .chat-tabs a.on { background: var(--elev); color: var(--text); box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }
    .tab-count {
        display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
        border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-style: normal; font-weight: 800;
    }
    .msg-note {
        display: flex; align-items: flex-start; gap: 10px; margin: 12px 14px 8px;
        padding: 12px 14px; border-radius: 14px;
        background: color-mix(in srgb, var(--accent) 10%, var(--elev));
        border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
    }
    .msg-note .ico { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--accent); }
    .msg-note p { margin: 0; font-size: 13px; line-height: 1.4; color: var(--text); }
    .chat-blank { display: grid; place-items: center; gap: 8px; padding: 36px 18px; text-align: center; color: var(--muted); }
    .chat-blank .ico, .chat-empty .ico { width: 36px; height: 36px; opacity: .55; }
    a.chat-row, a.chat-row:has(> .avatar) {
        display: flex; width: 100%; justify-content: flex-start; align-items: center; line-height: 1.35; text-align: left;
        gap: 12px; padding: 12px 16px; text-decoration: none; border-radius: 0;
    }
    a.chat-row > .chat-meta, a.chat-row > span:not(.avatar) { flex: 1; min-width: 0; line-height: 1.35; text-align: left; }
    a.chat-row > .avatar { flex: none; width: 44px; height: 44px; }
    .chat-top { display: flex; align-items: baseline; gap: 8px; }
    .chat-top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .chat-row small, .chat-row b { display: block; }
    .chat-row small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: none; display: flex; align-items: center; gap: 6px; }
    .chat-snip { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    .chat-row .ticks { color: var(--muted); opacity: .7; }
    .chat-row .ticks.is-read { color: #3b9adf; opacity: 1; }
    .chat-tag {
        display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 999px;
        background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent);
        font-size: 11px; font-style: normal; font-weight: 800; vertical-align: 1px;
    }
    .chat-row.on, .chat-row:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
    .chat-empty { display: grid; place-items: center; justify-items: center; gap: 10px; color: var(--muted); padding: 24px; text-align: center; }
    .chat-pane { display: flex; flex-direction: column; min-height: 0; height: 100%; overflow: hidden; background:
        radial-gradient(500px 180px at 100% 0, var(--glow-a), transparent 60%), var(--elev); }
    .chat-head { display: flex; align-items: center; gap: 12px; }
    .chat-head .who { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 16px; }
    .back { width: 36px; height: 36px; display: none; place-items: center; text-decoration: none; border-radius: 50%; background: var(--soft); }
    .bubbles { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 18px; overflow-x: hidden; overflow-y: auto; }
    .bubble { max-width: min(78%, 460px); padding: 10px 14px; border-radius: 16px; }
    .bubble p { margin: 0; }
    .bubble-meta { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 4px; }
    .bubble.their .bubble-meta { justify-content: flex-start; }
    .bubble time { display: block; margin-top: 0; font-size: 11px; opacity: .7; }
    .ticks { display: inline-flex; align-items: center; flex: none; line-height: 0; opacity: .72; }
    .ticks .ico { width: 15px; height: 15px; }
    .bubble.mine .ticks.is-read { opacity: 1; color: #9ad8ff; }
    .bubble.mine { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 6px; }
    .bubble.their { align-self: flex-start; background: var(--soft); border-bottom-left-radius: 6px; }
    .bubble-tools { display: flex; gap: 10px; margin-top: 6px; }
    .bubble-tools button { border: 0; background: transparent; color: inherit; opacity: .8; padding: 0; font-size: 12px; font-weight: 650; }
    .chat-head .more-wrap { margin-left: auto; }
    .lobby {
        display: flex; flex-direction: column; height: min(78vh, 820px); min-height: 0;
        background: var(--elev); border: 1px solid var(--line); border-radius: 26px; overflow: hidden;
    }
    .lobby .chat-head { justify-content: space-between; }
    .lobby h1 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
    .lobby-count { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
    .lobby-who {
        display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
        text-decoration: none; color: inherit; font-size: 13px; min-width: 0;
    }
    .lobby-who .avatar { width: 24px; height: 24px; font-size: 11px; }
    .lobby-who b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .bubble.mine .lobby-who { justify-content: flex-end; }
    .chat-head .more-btn, .composer .more-btn {
        width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
        background: var(--soft); color: var(--muted);
    }
    .composer .more-btn.on { background: color-mix(in srgb, var(--accent) 20%, var(--soft)); color: var(--accent); }
    .chat-head, .composer, .sos { flex-shrink: 0; }
    .composer { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); align-items: center; flex-wrap: nowrap; }
    .composer input:not([type="checkbox"]) {
        flex: 1; min-width: 0; border-radius: 999px; border: 1px solid var(--line); background: var(--soft); padding: 14px 16px;
    }
    .composer-more { margin-left: 0; flex: none; }
    .composer-more .menu-pop { top: auto; bottom: 48px; min-width: min(280px, calc(100vw - 48px)); }
    .composer-more .switch { min-height: 48px; margin: 0; padding: 6px 8px; background: transparent; }
    .composer-more input[type="checkbox"], .composer input[type="checkbox"] {
        flex: none; width: 46px; min-width: 46px; max-width: 46px; height: 28px; padding: 0; border: 0;
    }
    .composer .send-btn { flex: none; gap: 6px; padding: 12px 16px; }
    .composer .send-btn .ico { width: 18px; height: 18px; }
    .sos { padding: 0 16px 12px; color: var(--muted); }
    .sos textarea { width: 100%; margin: 8px 0; border-radius: 14px; border: 1px solid var(--line); background: var(--soft); padding: 12px; }
    .qr-card { text-align: left; }
    .qr-card h1 { font-size: 32px; letter-spacing: -.04em; margin-bottom: 12px; }
    .steps { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
    .steps li { display: flex; gap: 12px; align-items: flex-start; }
    .steps b {
        width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto;
        background: var(--accent); color: var(--on-accent); font-size: 13px;
    }
    .qrbox { background: #fff; padding: 16px; border-radius: 22px; width: fit-content; margin: 8px auto 16px; }
    .site-foot {
        position: relative; width: 100%; margin-top: auto; flex-shrink: 0;
        background: transparent; color: var(--text); border-top: 1px solid var(--line);
    }
    .foot-inner {
        width: 100%; max-width: 1100px; margin: 0 auto;
        padding: 36px 28px 28px; display: grid; gap: 28px; justify-items: center;
    }
    .foot-logo { margin: 0; color: var(--text); font-size: 26px; }
    .foot-cols {
        width: 100%; display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 28px 40px;
    }
    .foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
    .foot-col h2 {
        margin: 0 0 4px; font-size: 11px; font-weight: 750; letter-spacing: .12em;
        text-transform: uppercase; color: var(--muted);
    }
    .foot-col a {
        color: var(--accent-2); text-decoration: none; font-weight: 500; font-size: 14px;
        padding: 0; border-radius: 0; background: none;
    }
    .foot-col a:hover { color: var(--text); }
    .foot-copy {
        margin: 0; padding: 14px 20px; text-align: center;
        font-size: 13px; color: var(--muted); background: transparent;
        border-top: 1px solid var(--line);
    }
    .askfm { padding: 22px; }
    .ask-who { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
    .ask-who h1 { font-size: 32px; letter-spacing: -.04em; }
    .ask-box {
        width: 100%; min-height: 180px; resize: vertical; border: 0; border-radius: 22px;
        background: var(--soft); padding: 22px; font-size: 22px; line-height: 1.35; letter-spacing: -.02em;
    }
    .ask-box:focus { outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
    .ask-send { width: 100%; margin-top: 8px; padding: 16px; font-size: 17px; }
    .more { margin: 8px 0 14px; }
    .more summary { cursor: pointer; color: var(--muted); font-weight: 650; padding: 8px 0; }
    .geo-note { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
    .profile-hero { padding: 0; overflow: visible; }
    .cover { height: 168px; background: var(--cover); overflow: hidden; border-radius: 20px 20px 0 0; }
    .cover img, .cover-preview { width: 100%; height: 100%; object-fit: cover; display: block; }
    .cover-preview { height: 140px; border-radius: 16px; margin-bottom: 12px; }
    .profile-body { padding: 0 22px 22px; }
    .profile-top { display: flex; align-items: flex-start; gap: 14px; margin-top: -52px; }
    .profile-hero .avatar.lg { width: 104px; height: 104px; border: 4px solid var(--elev); box-shadow: var(--shadow); flex: none; }
    .profile-id-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
    .profile-id { flex: 1; min-width: 0; padding-top: 56px; }
    .profile-id h1 { font-size: 28px; line-height: 1.2; letter-spacing: -.04em; color: var(--text); }
    .profile-id p { line-height: 1.3; }
    .profile-actions {
        display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start;
        gap: 8px; min-width: 0; max-width: 100%; flex: 1 1 auto;
    }
    .profile-actions.is-mine { flex: 0 0 auto; justify-content: flex-start; max-width: 100%; }
    .profile-actions.is-mine .btn { flex: 0 0 auto; width: auto; padding: 10px 16px; }
    .profile-actions > .btn, .profile-actions > a.btn {
        width: auto; max-width: 100%; justify-content: center; white-space: nowrap;
    }
    .profile-actions .more-wrap { margin-left: 0; }
    .profile-actions .more-btn {
        width: 44px; height: 44px; padding: 0; border: 1px solid var(--line);
        border-radius: 50%; background: var(--soft); color: var(--text);
    }
    .profile-actions .menu-pop { top: 48px; z-index: 9; }
    .profile-actions .menu-pop .friend-pill {
        display: block; width: 100%; box-sizing: border-box; border-radius: 10px; padding: 10px 12px;
    }
    .profile-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
    .profile-link {
        display: inline-flex; align-items: center; text-decoration: none; max-width: 100%;
        padding: 8px 14px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line);
        overflow-wrap: anywhere;
    }
    .q-tools { display: flex; justify-content: flex-end; margin-top: 16px; }
    .online { color: var(--ok); font-weight: 700; }
    .online::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--ok); }
    .bio { margin-top: 16px; font-size: 17px; overflow-wrap: anywhere; }
    .mood { display: inline-flex; margin-right: 8px; padding: 2px 8px; border-radius: 999px; background: var(--soft); }
    .stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
    .stat-row div { background: var(--soft); border-radius: 16px; padding: 12px; }
    .stat-row b { display: block; font-size: 22px; }
    .stat-row span, .stats span { color: var(--muted); font-size: 13px; }
    .profile-extra { margin-top: 16px; }
    .trait-list { margin: 8px 0 0; padding-left: 18px; }
    .profile-answer p + p { margin-top: 8px; font-size: 18px; }
    .inline-msg, .row-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
    .inline-msg input, .row-form input, .row-form select { flex: 1; min-width: 140px; }
    .settings-card h1 { font-size: 34px; letter-spacing: -.04em; margin-bottom: 8px; }
    .stat-pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 8px 0 18px; }
    .stat-pills div { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 16px; background: var(--soft); }
    .stat-pills b { font-size: 26px; letter-spacing: -.04em; }
    .stat-pills span { font-weight: 700; }
    .stat-pills small, .field-note { color: var(--muted); font-size: 13px; }
    .field-note { margin: -4px 0 12px; }
    .section-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 12px 0 16px; }
    .section-grid a {
        display: flex; flex-direction: column; gap: 4px; text-decoration: none;
        padding: 16px; border-radius: 16px; background: var(--soft); min-height: 84px;
    }
    .section-grid b { font-size: 15px; }
    .section-grid span { color: var(--muted); font-size: 13px; font-weight: 550; line-height: 1.35; }
    .section-grid a:hover { background: color-mix(in srgb, var(--accent) 12%, var(--soft)); }
    .quest, .ach-list p { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
    .ach-list .done { color: var(--accent-2); }
    .admin-nav { margin-bottom: 4px; }
    .user-list { display: flex; flex-direction: column; gap: 12px; }
    .user-row { display: flex; flex-direction: column; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .user-row form { display: flex; flex-wrap: wrap; gap: 8px; }
    .user-row form input, .user-row form select { width: auto; flex: 1 1 140px; }
    .user-row small, .log-line { color: var(--muted); }
    .table-wrap { overflow: auto; }
    .sys-log { white-space: pre-wrap; background: var(--soft); border-radius: 14px; padding: 12px; max-height: 320px; overflow: auto; }
    .row-form, .cta, .play-actions, .actions { flex-wrap: wrap; }
    .row-form, .play-actions { display: flex; gap: 8px; align-items: center; }
    .post .actions button, .post .actions .btn, .card .actions .btn { flex: 0 1 auto; }
    .stack-form { display: flex; flex-direction: column; gap: 12px; }
    .back-row { margin: 0 0 12px; }
    .back-link { color: var(--muted); text-decoration: none; font-weight: 650; }
    .quest-grid, .ach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 12px 0 18px; }
    .quest-card, .ach-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: var(--soft); }
    .quest-card.done, .ach-card.done { outline: 1px solid var(--accent); }
    meter { width: 100%; height: 10px; }
    @media (min-width: 761px) {
        .shell:has(.admin-layout), .shell:has(.settings-layout) { grid-template-columns: 232px minmax(0, 1fr); }
    }
    @media (min-width: 761px) and (max-width: 1100px) {
        .shell:has(.admin-layout), .shell:has(.settings-layout) { grid-template-columns: 84px minmax(0, 1fr); }
    }
    .shell:has(.admin-layout) .rail, .shell:has(.settings-layout) .rail { display: none; }
    .admin-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
    .admin-main .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .admin-main .stat-row span { overflow-wrap: anywhere; }
    .admin-side { display: flex; flex-direction: column; gap: 4px; padding: 12px; background: var(--elev); border: 1px solid var(--line); border-radius: 20px; position: sticky; top: 16px; }
    .admin-side h1 { font-size: 20px; margin: 4px 8px 8px; }
    .admin-side a { text-decoration: none; padding: 8px 10px; border-radius: 10px; color: var(--text); }
    .admin-side a.on { background: var(--soft); }
    .crypto-box, .crypto-card { display: flex; flex-direction: column; gap: 12px; width: min(100%, 380px); padding: 16px; border-radius: 20px; background: var(--soft); }
    .crypto-box input, .crypto-address { font-size: 28px; letter-spacing: .04em; }
    .crypto-address { word-break: break-all; padding: 16px; border-radius: 14px; background: var(--soft); }
    .meme-stage { border-radius: 16px; overflow: hidden; background: #111; }
    #meme { width: 100%; height: auto; display: block; }
    .play-list { display: flex; flex-direction: column; gap: 8px; padding-left: 18px; }
    .play-list li { display: flex; justify-content: space-between; gap: 12px; }
    .play-links { display: flex; gap: 12px; flex-wrap: wrap; }
    .top-tools { position: relative; display: flex; align-items: center; gap: 8px; }
    .icon-btn, .avatar-btn {
        display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
        border: 1px solid var(--line); background: var(--elev); border-radius: 999px;
    }
    .avatar-btn .avatar { width: 32px; height: 32px; }
    .menu-pop {
        position: absolute; right: 0; top: 50px; z-index: 8; min-width: 220px;
        display: flex; flex-direction: column; gap: 4px; padding: 8px;
        background: var(--elev); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
    }
    #account-menu {
        top: calc(100% + 8px); bottom: auto;
        max-height: min(70vh, 420px); overflow: auto;
    }
    @media (min-width: 761px) {
        #account-menu .menu-phone { display: none; }
    }
    .menu-pop a, .menu-pop button {
        text-align: left; text-decoration: none; background: transparent; border: 0;
        border-radius: 10px; padding: 10px 12px; color: var(--text); font-weight: 650;
    }
    .menu-pop a:hover, .menu-pop button:hover { background: var(--soft); }
    .modal {
        position: fixed; inset: 0; z-index: 30; display: grid; place-items: center;
        background: rgba(0, 0, 0, .45); padding: 20px;
    }
    .modal-card {
        width: min(420px, 100%); display: flex; flex-direction: column; gap: 12px;
        background: var(--elev); color: var(--text); border-radius: 20px; padding: 18px; box-shadow: var(--shadow);
    }
    .theme-pick { display: flex; flex-direction: column; gap: 8px; }
    .theme-pick button, #sheet-body .btn, #sheet-body form { width: 100%; }
    #sheet-body { display: flex; flex-direction: column; gap: 8px; }
    .modal[hidden], .menu-pop[hidden], .thread[hidden], .edit-box[hidden], .qrbox[hidden] { display: none !important; }
    .answer-text { font-size: 22px; line-height: 1.35; margin: 14px 0; }
    .answer-card .actions form { display: inline-flex; }
    .thread { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
    .thread .comment {
        display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: start;
        padding: 12px 14px; border-radius: 16px; background: var(--elev); border: 1px solid var(--line);
    }
    .thread .comment.is-reply { margin-left: 28px; }
    .thread .comment p { margin: 6px 0 0; }
    .thread .comment time, .thread .comment small { color: var(--muted); font-size: 12px; margin-left: 6px; }
    .comment-tools { display: flex; gap: 12px; align-items: center; margin-top: 8px; width: 100%; justify-content: flex-end; }
    .comment-tools form { display: inline-flex; }
    .reply-form { display: flex; gap: 8px; margin-top: 8px; }
    .reply-form input { flex: 1; }
    .rank { display: flex; gap: 18px; margin: 4px 0 14px; color: var(--muted); font-size: 14px; }
    .rank b { color: var(--text); font-size: 16px; margin-left: 4px; }
    .swatch {
        display: flex; align-items: center; width: 100%; min-height: 52px; padding: 0 16px;
        border-radius: 14px; border: 1px solid transparent; font-weight: 700; text-align: left;
    }
    .swatch-system { background: #3d4250; color: #fff; }
    .swatch-dark { background: #17181c; color: #f6f3ee; }
    .swatch-light { background: #f3f0ea; color: #1d1916; border-color: #e4ddd4; }
    .swatch-mint { background: #0e8f55; color: #fff; }
    .swatch-white { background: #fff; color: #111; border-color: #d8d8d8; }
    .poll { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
    .poll-opt {
        width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
        min-height: 54px; padding: 14px 16px; border-radius: 14px;
        border: 1px solid var(--line); background: var(--soft); text-align: left; font-weight: 650;
    }
    .poll-meta { display: inline-flex; align-items: center; gap: 8px; flex: none; }
    .poll-opt b { font-variant-numeric: tabular-nums; color: var(--muted); }
    .poll-check {
        display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
        background: var(--accent); color: var(--on-accent); font-style: normal; font-size: 13px;
    }
    .poll-opt.on { border-color: var(--accent); }
    .poll-opt.on b { color: var(--text); }
    .latest-note { margin: 12px 0 0; color: var(--muted); }
    .latest-note b, .latest-note a { color: var(--text); }
    .token-row {
        display: flex; justify-content: space-between; gap: 12px; align-items: center;
        margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--soft);
    }
    .token-row span { min-width: 0; overflow-wrap: anywhere; }
    .token-row .btn { flex: 0 0 auto; }
    .api-key { display: block; padding: 14px; border-radius: 14px; background: var(--soft); word-break: break-all; font-size: 18px; }
    .steps { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; padding-left: 18px; }
    .text-btn { border: 0; background: transparent; color: var(--muted); padding: 0; font-weight: 650; }
    .composer input:not([type="checkbox"]), .modal-card input:not([type="checkbox"]), .modal-card textarea, .modal-card select {
        width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
    }
    .composer input:not([type="checkbox"]):focus, .modal-card input:not([type="checkbox"]):focus, .modal-card textarea:focus, .modal-card select:focus {
        outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
    }
    .ask-quote {
        display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
        margin: 14px 0; padding: 16px 18px; border: 0; border-radius: 16px; background: var(--soft);
    }
    .ask-quote p, .ask-title, .q-hero h1 {
        font-size: clamp(22px, 3vw, 28px); letter-spacing: -.03em; line-height: 1.25; margin: 0;
    }
    .q-hero h1 { margin-top: 10px; color: var(--text); }
    .q-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); font-size: 14px; }
    .q-meta a { color: var(--text); font-weight: 700; text-decoration: none; }
    .note { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: start; }
    .note-mark {
        width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
        background: var(--soft); color: var(--text); font-weight: 750;
    }
    .note p { margin-top: 4px; }
    .note time { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
    .form-error { color: var(--bad); margin: 0; }
    .file-pick { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
    .file-pick > span { font-size: 14px; font-weight: 650; }
    .file-pick-box {
        position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px;
        padding: 10px 12px; border-radius: 14px; background: var(--soft);
        border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line));
    }
    .file-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
    .file-pick-btn {
        border-radius: 999px; padding: 8px 14px; background: var(--accent); color: var(--on-accent); font-weight: 700;
        pointer-events: none;
    }
    .file-pick-name { color: var(--muted); pointer-events: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .link-pair {
        display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 10px;
        padding: 12px; margin-bottom: 10px; border-radius: 16px; background: var(--soft);
    }
    .link-pair .field { margin: 0; }
    .search-head { display: flex; flex-direction: column; gap: 10px; }
    .page-search { width: 100%; }
    .search-title { margin: 4px 4px 0; font-size: 18px; }
    .search-list { display: flex; flex-direction: column; gap: 10px; }
    .search-hit { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
    .search-hit b { font-size: 18px; letter-spacing: -.02em; }
    .person small { color: var(--muted); }
    .insight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .insight-value { font-size: 28px; letter-spacing: -.04em; margin-top: 8px; }
    .chips span { padding: 8px 12px; border-radius: 999px; background: var(--soft); }
    .premium-state { display: inline-flex; width: fit-content; padding: 8px 12px; border-radius: 999px; background: var(--soft); font-weight: 700; }
    .premium-state.on { background: #e2b657; color: #1d1608; }
    .premium-badge {
        display: inline-flex; margin-left: 8px; padding: 2px 8px; border-radius: 999px;
        background: #e2b657; color: #1d1608; font-size: 12px; font-style: normal; font-weight: 750; vertical-align: middle;
    }
    .closed-profile { display: flex; flex-direction: column; gap: 8px; }
    .profile-wall { display: flex; flex-direction: column; gap: 12px; }
    .profile-wall h2 { margin: 8px 4px 0; }
    .wall-card {
        display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit;
        background: var(--elev); border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: var(--shadow);
    }
    .wall-card blockquote { margin: 0; }
    .wall-card p { margin: 0; font-size: 18px; }
    .wall-answer { display: flex; align-items: center; gap: 10px; min-width: 0; }
    .wall-answer .sticker { flex: none; }
    .wall-answer p { flex: 1; min-width: 0; }
    .inbox { display: flex; flex-direction: column; gap: 12px; }
    .inbox-item {
        display: flex; gap: 14px; align-items: flex-start; text-decoration: none; color: inherit;
        background: var(--elev); border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: var(--shadow);
    }
    .inbox-mark {
        width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%;
        background: var(--soft); font-weight: 750;
    }
    .inbox-body { display: block; margin-top: 4px; font-size: 18px; }
    .answer-form .ask-box { min-height: 140px; }
    .admin-stack { display: flex; flex-direction: column; gap: 8px; }
    .admin-item {
        display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap;
        padding: 14px; border-radius: 14px; background: var(--soft); color: var(--text); text-decoration: none;
    }
    .filter-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
    .filter-card {
        display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px;
        padding: 16px; border-radius: 20px; background: var(--soft); border: 1px solid var(--line);
    }
    .filter-list .filter-card { margin-bottom: 0; }
    .filter-card .field { margin-bottom: 0; }
    .filter-card .field textarea { min-height: 88px; }
    .filter-actions { display: flex; justify-content: flex-end; }
    .ticket form { flex: 1 1 240px; }
    .ticket p, .err-msg { margin: 6px 0 0; overflow-wrap: anywhere; }
    .ticket-reply { color: var(--muted); }
    .err-level { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
    .err-level.error, .err-level.critical { color: var(--bad); }
    .err-level.warning { color: var(--accent); }
    .api-method { display: inline-flex; min-width: 52px; font-size: 12px; letter-spacing: .04em; }
    .api-doc code { overflow-wrap: anywhere; }
    .api-doc h2 { margin-top: 18px; }
    .admin-item b, .admin-item small { display: block; }
    .admin-item small { color: var(--muted); margin-top: 2px; }
    .people-list { display: flex; flex-direction: column; gap: 12px; }
    .people-card {
        display: grid; gap: 12px; padding: 16px; border-radius: 20px;
        background: var(--soft); border: 1px solid var(--line);
    }
    a.people-id, a.people-id:has(> .avatar) {
        display: flex; align-items: center; justify-content: flex-start; gap: 12px;
        width: 100%; line-height: 1.35; text-align: left; text-decoration: none; color: inherit;
    }
    .people-id b, .people-id small { display: block; }
    .people-id small, .people-tags { color: var(--muted); }
    .people-tags { display: flex; flex-wrap: wrap; gap: 6px; }
    .people-tags em {
        font-style: normal; font-size: 12px; font-weight: 700;
        padding: 4px 10px; border-radius: 999px; background: var(--elev);
    }
    .people-tags .tag-active { color: var(--ok); }
    .people-tags .tag-shadow { color: var(--accent); }
    .people-tags .tag-banned { color: var(--bad); }
    .people-form { display: grid; gap: 8px; }
    .people-form .field { margin-bottom: 0; }
    .people-actions { display: flex; flex-wrap: wrap; gap: 8px; }
    .balance-card {
        display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; padding: 20px 22px; border-radius: 22px;
        background: var(--accent); color: var(--on-accent);
    }
    .balance-card b { font-size: 40px; letter-spacing: -.05em; line-height: 1; }
    .balance-card a { color: inherit; font-weight: 750; margin-top: 8px; }
    .shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
    .shop-card h2 { margin-top: 6px; }
    .shop-kind { color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
    .shop-price { font-weight: 750; }
    .shop-card.owned { outline: 1px solid color-mix(in srgb, var(--ok) 50%, var(--line)); }
    .ledger p { display: flex; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); }
    .ledger .plus { color: var(--ok); }
    .ledger .minus { color: var(--bad); }
    .ledger time { margin-left: auto; color: var(--muted); font-size: 12px; }
    .topup-form { display: grid; gap: 12px; }
    .topup-picks { flex-wrap: wrap; overflow: visible; }
    .topup-pick {
        position: relative; display: inline-flex; cursor: pointer;
    }
    .topup-pick input {
        position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer;
    }
    .topup-pick span {
        padding: 8px 12px; border-radius: 999px; background: var(--soft);
        border: 1px solid var(--line); font-weight: 650;
    }
    .topup-pick:has(input:checked) span {
        background: var(--accent); color: var(--on-accent); border-color: transparent;
    }
    .topup-pick:focus-within span { outline: 2px solid var(--accent); outline-offset: 2px; }
    .profile-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
    .profile-tabs a {
        text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 750;
        background: var(--elev); border: 1px solid var(--line); color: var(--muted);
    }
    .profile-tabs a.on { background: var(--accent); color: var(--on-accent); border-color: transparent; }
    .cta, .soft-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
    .cta { margin-top: 14px; }
    .soft-actions { margin-top: 8px; }
    .cta form, .friend-actions form { display: inline-flex; gap: 8px; }
    .friend-pill {
        display: inline-flex; align-items: center; padding: 12px 18px; border-radius: 999px;
        background: color-mix(in srgb, var(--ok) 18%, var(--soft)); color: var(--ok); font-weight: 750;
    }
    .friend-list { display: flex; flex-direction: column; gap: 10px; }
    .friend-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
    .friend-id { flex: 1; min-width: 140px; display: flex; flex-direction: column; gap: 2px; }
    .friend-id small { color: var(--muted); }
    .friend-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
    .people-orbit { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 8px 12px; }
    .orbit {
        display: flex; flex-direction: column; align-items: center; gap: 6px;
        text-align: center; text-decoration: none; color: inherit; padding: 8px 4px;
        line-height: 1.25;
    }
    .orbit b, .orbit small { display: block; line-height: 1.25; }
    .orbit .avatar { width: 76px; height: 76px; font-size: 28px; }
    .orbit b, .orbit small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .orbit small { color: var(--muted); }
    .admin-head h2 { font-size: 28px; letter-spacing: -.03em; }
    .admin-head p { color: var(--muted); margin: 6px 0 16px; }
    .admin-side a { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
    .admin-side a b { font-weight: 750; }
    .admin-side a small { color: var(--muted); font-weight: 550; line-height: 1.3; }
    .admin-side a.on small { color: inherit; }
    .admin-main .stat-row div { display: flex; flex-direction: column; gap: 4px; }
    .admin-main .stat-row small, .user-row .field-note { color: var(--muted); font-size: 12px; }
    .user-row .field { flex: 1 1 220px; margin: 0; }
    .hero-home { gap: 16px; padding: 40px 28px 32px; background:
        radial-gradient(520px 180px at 100% 0, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
        radial-gradient(380px 160px at 0 100%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 65%),
        var(--elev); }
    .hero-kicker { font-size: 13px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0; }
    .hero-home h1 { max-width: 14ch; }
    .hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: min(100%, 360px); margin-top: 8px; }
    .hero-stats div { padding: 12px 14px; border-radius: 16px; background: var(--soft); }
    .feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .feat-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 20px; background: var(--elev); border: 1px solid var(--line); }
    .feat-card b { font-size: 16px; }
    .feat-card span { color: var(--muted); font-size: 14px; font-weight: 550; line-height: 1.4; }
    .home-now { font-weight: 750; letter-spacing: -.02em; margin: 8px 2px 0; }
    .feed-head { display: flex; flex-direction: column; gap: 12px; }
    .feed-head h1 { font-size: 28px; letter-spacing: -.04em; }
    .vh {
        position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
        overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
    }
    body:has(.feed-page) .atmosphere { opacity: .22; }
    html[data-theme="light"]:has(.feed-page) { --bg: #eceef0; --elev: #fff; --shadow: none; --line: rgba(0, 0, 0, .06); }
    html[data-theme="white"]:has(.feed-page) { --bg: #f0f2f5; --elev: #fff; --shadow: none; --line: rgba(0, 0, 0, .06); }
    @media (prefers-color-scheme: light) {
        html[data-theme="system"]:has(.feed-page) { --bg: #eceef0; --elev: #fff; --shadow: none; --line: rgba(0, 0, 0, .06); }
    }
    body:has(.feed-page) .shell { max-width: 1160px; gap: 16px; padding-top: 16px; }
    body:has(.feed-page) .stage { gap: 12px; }
    body:has(.feed-page) .menu a,
    body:has(.feed-page) .nav-foot a:not(.btn) { border-radius: 8px; padding: 8px 10px; }
    @media (min-width: 1101px) {
        body:has(.feed-page) .shell { grid-template-columns: 184px minmax(0, 550px) 278px; }
        body:has(.feed-page) .rail > .panel:not(.rail-nav):not(.rail-smart) { display: none; }
    }
    body:has(.feed-page) .panel,
    body:has(.feed-page) .post,
    body:has(.feed-page) .card,
    body:has(.feed-page) .story-tray {
        border-radius: 12px; box-shadow: none; border-color: transparent;
    }
    body:has(.feed-page) .panel {
        padding: 10px 8px 12px; margin-bottom: 10px;
    }
    body:has(.feed-page) .panel h2 {
        text-transform: none; letter-spacing: 0; font-size: 16px; font-weight: 750;
        color: var(--text); margin: 2px 8px 8px;
    }
    .feed-page { display: flex; flex-direction: column; gap: 12px; }
    .feed-page .post, .feed-page .card { padding: 12px 14px 14px; }
    .feed-page .post { animation: none; }
    .feed-page .comment-chip {
        background: var(--soft); color: var(--text); font-weight: 650;
    }
    .feed-create { display: flex; justify-content: center; padding: 2px 0 4px; }
    .feed-create a {
        display: inline-flex; align-items: center; gap: 8px;
        padding: 8px 14px; border-radius: 10px;
        color: var(--accent); font-weight: 750; text-decoration: none;
    }
    .feed-create a:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
    .feed-create .ico { width: 18px; height: 18px; }
    .fun-strip {
        display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 4px;
    }
    .fun-strip a {
        padding: 8px 12px; border-radius: 999px; background: var(--elev);
        text-decoration: none; font-weight: 650; font-size: 13px; color: var(--text);
    }
    .fun-tabs {
        display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px;
    }
    .fun-tabs a {
        padding: 8px 12px; border-radius: 999px; background: var(--soft);
        text-decoration: none; font-weight: 650; font-size: 13px; color: var(--muted);
    }
    .fun-tabs a.on { background: var(--elev); color: var(--text); border: 1px solid var(--line); }
    .fun-hub .lead, .fun-page .lead { color: var(--muted); margin: 0 0 16px; }
    .fun-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .fun-tile {
        display: flex; flex-direction: column; gap: 6px; padding: 16px;
        border-radius: 16px; background: color-mix(in srgb, var(--bg) 28%, var(--elev));
        border: 1px solid var(--line); text-decoration: none;
    }
    .fun-tile b { font-size: 17px; }
    .fun-tile span { color: var(--muted); font-size: 14px; }
    .bottle-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .bottle-opt p { margin: 0; }
    .spark-today h2 { margin: 8px 0 14px; letter-spacing: -.03em; }
    .spark-actions, .spark-deck { display: flex; flex-wrap: wrap; gap: 8px; }
    .spark-deck { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
    .spark-card p { margin: 0 0 10px; }
    .or-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .or-pick { width: 100%; min-height: 56px; border-radius: 14px; }
    .or-bar { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; margin: 10px 0; }
    .or-bar meter { grid-column: 1 / -1; width: 100%; height: 10px; background: var(--soft); }
    .or-bar meter::-webkit-meter-bar { background: var(--soft); border: 0; }
    .or-bar meter::-webkit-meter-optimum-value { background: var(--accent); }
    .or-bar meter::-moz-meter-bar { background: var(--accent); }
    .or-bar.on b { color: var(--accent); }
    .kind-item p { margin: 0; overflow-wrap: anywhere; }
    .kind-item time { color: var(--muted); font-size: 12px; }
    .card .kind-item + .kind-item { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
    .card.kind-item { margin-top: 10px; }
    .kind-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
    .kind-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
    .kind-list li {
        padding: 10px 12px; border-radius: 12px; background: var(--soft); color: var(--text);
    }
    @media (max-width: 720px) {
        .fun-grid, .spark-deck, .or-picks { grid-template-columns: 1fr; }
    }
    .rail-nav { display: flex; flex-direction: column; gap: 2px; }
    .rail-nav a {
        display: block; padding: 9px 12px; border-radius: 8px;
        text-decoration: none; color: var(--text); font-weight: 550;
    }
    .rail-nav a:hover { background: var(--soft); }
    .rail-nav a.on { background: var(--soft); font-weight: 750; }
    a.rail-smart,
    body:has(.feed-page) a.rail-smart {
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        padding: 14px 16px; margin-bottom: 10px; text-decoration: none;
        color: var(--text); font-weight: 550;
    }
    a.rail-smart .switch {
        position: relative; flex: none; width: 36px; height: 20px; border-radius: 999px;
        background: var(--soft); font-style: normal;
    }
    a.rail-smart .switch::after {
        content: ""; position: absolute; top: 2px; left: 2px;
        width: 16px; height: 16px; border-radius: 50%; background: #fff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    }
    a.rail-smart.on .switch { background: var(--accent); }
    a.rail-smart.on .switch::after { transform: translateX(16px); }
    @media (min-width: 1101px) {
        .feed-modes { display: none; }
    }
    .chips a { border: 1px solid var(--line); font-weight: 650; }
    .chips a.on { border-color: transparent; }
    .geo-card { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
    .post, .ask-card { padding: 20px; }
    .ask-card, .q-hero {
        background: color-mix(in srgb, var(--bg) 28%, var(--elev));
    }
    .post header { margin-bottom: 2px; }
    .latest-note { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--soft); color: var(--muted); font-size: 14px; }
    .settings-layout .admin-side .btn { margin: 8px 10px 4px; width: calc(100% - 20px); }
    .settings-pane h1 { margin-bottom: 12px; }
    .profile-id-row { align-items: center; }
    .draft-card .ask-title { margin: 8px 0; }
    #confirm-modal .modal-card { max-width: 420px; }
    .ask-quote, .ask-title { position: relative; }
    .ask-quote-go { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
    .ask-quote a:not(.ask-quote-go), .ask-quote button, .ask-title a:not(.ask-quote-go) { position: relative; z-index: 2; }
    .ask-quote:has(.ask-quote-go), .ask-title:has(.ask-quote-go) { cursor: pointer; }
    .ask-quote:has(.ask-quote-go):hover {
        background: color-mix(in srgb, var(--accent) 10%, var(--soft));
    }
    .ask-title:has(.ask-quote-go):hover { color: var(--accent); }
    .chips a, .admin-side a, .tabbar a, .menu a, .foot-col a {
        transition: background .22s ease, color .22s ease, transform .22s ease;
    }
    .settings-pane:not([hidden]) { animation: rise .28s ease; }
    .auth-alts { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 14px; }
    .auth-alts a {
        color: var(--accent); font-weight: 750; text-decoration: underline;
        text-underline-offset: 3px;
    }
    .auth-alts a:hover { color: var(--text); }
    .cookie-bar {
        position: fixed; left: 50%; bottom: 16px; z-index: 8;
        transform: translateX(-50%);
        display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
        width: min(1240px, calc(100% - 40px));
        padding: 14px 18px; border-radius: 18px;
        background: var(--elev); border: 1px solid var(--line); box-shadow: var(--shadow);
    }
    .cookie-bar[hidden] { display: none !important; }
    .cookie-bar p { margin: 0; flex: 1; min-width: 16ch; }
    .cookie-bar a { color: var(--accent); font-weight: 700; }
    .faq-page .faq-item { margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--soft); }
    .faq-page summary { cursor: pointer; font-weight: 750; }
    .faq-page .faq-item p { margin-top: 8px; color: var(--muted); }
    .source-page h2 { margin: 22px 0 8px; font-size: 18px; letter-spacing: -.02em; }
    .source-page p { color: var(--text); }
    .source-page .source-code {
        margin: 10px 0 0; padding: 12px 14px; border-radius: 10px;
        background: var(--soft); border: 1px solid var(--line);
        overflow-x: auto; font: 13px/1.45 ui-monospace, "Cascadia Code", Consolas, monospace;
        white-space: pre;
    }
    .story-tray {
        display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px;
        background: var(--elev); border: 1px solid var(--line); border-radius: 12px;
        scrollbar-width: none;
    }
    .story-tray::-webkit-scrollbar { display: none; }
    .story-tile {
        display: block; flex: none; width: 96px; padding: 0; border: 0;
        background: none; color: inherit; text-decoration: none;
    }
    .story-tile-art {
        position: relative; display: block; width: 96px; height: 160px;
        border-radius: 10px; overflow: hidden; background: var(--soft);
    }
    .story-tile-art::after {
        content: ""; position: absolute; inset: auto 0 0; height: 58%;
        background: linear-gradient(transparent, rgba(0, 0, 0, .62));
        pointer-events: none; z-index: 1;
    }
    .story-tile-art > img:not(.avatar) { width: 100%; height: 100%; object-fit: cover; }
    .story-tile-art > .avatar.lg {
        position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0;
        font-size: 36px; box-shadow: none;
    }
    .story-tile-art > .avatar.sm {
        position: absolute; left: 8px; bottom: 28px; z-index: 2;
        width: 28px; height: 28px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .9);
    }
    .story-tile.fresh .story-tile-art > .avatar.sm { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--accent); }
    .story-plus {
        position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
        display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
        background: var(--elev); color: var(--accent); font-style: normal; font-weight: 800; font-size: 22px; line-height: 1;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
    }
    .story-tile.add .story-tile-art { background: #3d4248; }
    .story-tile.add .story-tile-art > .avatar.lg { filter: brightness(.72); }
    .story-tile-name {
        position: absolute; left: 6px; right: 6px; bottom: 8px; z-index: 2;
        color: #fff; font-size: 12px; font-weight: 650; font-style: normal;
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
        text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
    }
    .mention-pop {
        position: fixed; z-index: 40; margin: 0; padding: 6px;
        list-style: none; min-width: 220px; max-width: min(420px, calc(100vw - 16px));
        max-height: min(280px, 42vh); overflow: auto;
        background: var(--elev); border: 1px solid var(--line); border-radius: 16px;
        box-shadow: var(--shadow);
    }
    .mention-pop[hidden] { display: none !important; }
    .mention-pop button {
        display: flex; align-items: center; gap: 10px; width: 100%;
        padding: 8px 10px; border: 0; border-radius: 12px;
        background: transparent; color: inherit; text-align: left; cursor: pointer;
    }
    .mention-pop button:hover, .mention-pop button.on {
        background: color-mix(in srgb, var(--accent) 14%, var(--soft));
    }
    .mention-pop .avatar { width: 36px; height: 36px; font-size: 15px; }
    .mention-pop span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
    .mention-pop b, .mention-pop small {
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .mention-pop small { color: var(--muted); font-weight: 550; }
    .story-reel, .story-add, .story-ring { display: none; }
    html:has(.story-stage) { height: 100%; overflow: hidden; }
    .story-stage {
        background: #0a0a0b;
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        min-height: 0;
        overflow: hidden;
        overscroll-behavior: none;
    }
    .story-theater {
        height: 100%; min-height: 0; max-height: 100%;
        display: flex; align-items: center; justify-content: center;
        gap: 28px; padding: 24px; background: #0a0a0b; user-select: none;
        box-sizing: border-box;
    }
    .story-card {
        position: relative; flex: none;
        height: min(calc(100dvh - 40px), 840px);
        aspect-ratio: 9 / 16;
        width: min(420px, calc((100dvh - 40px) * 9 / 16), calc(100vw - 48px));
        border-radius: 18px; overflow: hidden; background: #161618;
        box-shadow: 0 24px 64px rgba(0, 0, 0, .55);
    }
    .story-progress {
        position: absolute; top: 10px; left: 12px; right: 12px; z-index: 6;
        display: flex; gap: 4px;
    }
    .story-progress i {
        flex: 1; height: 3px; border-radius: 99px; overflow: hidden;
        background: rgba(255, 255, 255, .35);
    }
    .story-progress i > span {
        display: block; width: 0; height: 100%; background: #fff;
    }
    .story-progress i.done > span { width: 100%; }
    .story-card-head {
        position: absolute; top: 18px; left: 12px; right: 12px; z-index: 6;
        display: flex; align-items: center; justify-content: space-between; gap: 10px;
    }
    .story-card-head > a:not(.story-x) {
        display: flex; align-items: center; gap: 8px; text-decoration: none; color: #fff;
        min-width: 0;
    }
    .story-card-head span { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
    .story-card-head b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .story-card-head time { font-size: 12px; color: rgba(255, 255, 255, .72); font-weight: 550; }
    .story-card-head .avatar { width: 32px; height: 32px; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
    .story-x {
        flex: none; width: 36px; height: 36px; display: grid; place-items: center;
        color: #fff; font-size: 28px; line-height: 1; text-decoration: none; font-weight: 400;
    }
    .story-slide {
        position: absolute; inset: 0; display: none; background: #111;
    }
    .story-slide.on { display: block; }
    .story-slide img { width: 100%; height: 100%; object-fit: cover; }
    .story-slide.is-text {
        display: none; place-items: center; padding: 48px 28px 96px;
        background: linear-gradient(180deg, #3d2a18, #1a1210 55%, #0e0c0b);
    }
    .story-slide.is-text.on { display: grid; }
    .story-caption {
        position: absolute; left: 16px; right: 16px;
        bottom: calc(78px + env(safe-area-inset-bottom, 0px)); z-index: 4;
        margin: 0; color: #fff; font-size: 20px; font-weight: 650; line-height: 1.3;
        text-shadow: 0 1px 8px rgba(0, 0, 0, .65);
        overflow-wrap: anywhere;
    }
    .story-slide.is-text .story-caption {
        position: static; bottom: auto; text-align: center; font-size: 24px;
    }
    .story-card::after {
        content: ""; pointer-events: none; position: absolute; inset: 0 0 auto;
        height: 120px; z-index: 3;
        background: linear-gradient(#0009, transparent);
    }
    .story-hit {
        position: absolute; top: 56px; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); z-index: 5;
        width: 42%; padding: 0; border: 0; background: transparent; cursor: pointer;
        touch-action: manipulation;
    }
    .story-hit:focus { outline: none; }
    .story-hit.left { left: 0; }
    .story-hit.right { right: 0; width: 58%; }
    .story-reply {
        position: absolute; left: 10px; right: 10px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 6;
        display: flex; align-items: center; gap: 8px;
        padding: 4px 4px 4px 14px;
        border-radius: 999px; background: rgba(20, 20, 22, .55);
        border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(12px);
    }
    .story-reply input {
        flex: 1; min-width: 0; border: 0; background: transparent; color: #fff;
        outline: none; padding: 10px 0;
    }
    .story-reply input::placeholder { color: rgba(255, 255, 255, .7); }
    .story-reply .icon-btn, .story-reply button {
        width: 40px; height: 40px; border: 0; border-radius: 50%;
        background: transparent; color: #fff; display: grid; place-items: center;
    }
    .story-reply .ico { width: 20px; height: 20px; }
    .story-peek {
        flex: none; width: 220px; text-decoration: none; color: #fff;
        display: flex; flex-direction: column; align-items: center; gap: 10px;
        opacity: .88; transition: transform .2s ease, opacity .2s ease;
    }
    .story-peek:hover { opacity: 1; transform: scale(1.02); }
    .story-peek.spacer { visibility: hidden; pointer-events: none; }
    .story-peek-art {
        display: block; width: 220px; height: 390px; border-radius: 16px; overflow: hidden;
        background: #1c1c1f; box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
    }
    .story-peek-art img, .story-peek-art .avatar {
        width: 100%; height: 100%; object-fit: cover; border-radius: 0; font-size: 64px;
    }
    .story-peek b {
        font-size: 14px; font-weight: 650; max-width: 220px;
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    @media (max-width: 1100px) {
        .story-peek { width: 160px; }
        .story-peek-art { width: 160px; height: 284px; }
        .story-theater { gap: 16px; }
    }
    .request-bar {
        display: flex; gap: 12px; align-items: flex-start; margin: 10px 12px 0;
        padding: 14px; border-radius: 16px;
        background: color-mix(in srgb, var(--accent) 10%, var(--soft));
        border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
    }
    .request-bar > .ico { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--accent); }
    .request-bar p { margin: 0 0 10px; font-size: 14px; }
    .request-actions { display: flex; flex-wrap: wrap; gap: 8px; }
    .request-actions .btn { padding: 10px 14px; }
    .wall-card.pinned { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
    .pin-mark { display: inline-block; font-size: 12px; font-weight: 750; color: var(--accent); margin-bottom: 6px; }
    .login-box { margin-top: 8px; padding: 16px; border-radius: 20px; background: var(--soft); border: 1px solid var(--line); }
    .login-box h2 { margin-bottom: 4px; }
    .login-box .field-note { margin-bottom: 14px; }
    .login-log { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
    .login-log li {
        display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center;
        padding: 12px; border-radius: 14px; background: var(--elev); border: 1px solid var(--line);
    }
    .login-log li.now { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
    .login-mark {
        display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
        background: color-mix(in srgb, var(--accent) 18%, var(--soft)); color: var(--accent); font-weight: 800;
    }
    .login-meta { min-width: 0; display: grid; gap: 2px; }
    .login-meta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .login-meta small { color: var(--muted); }
    .login-when { display: grid; justify-items: end; gap: 4px; }
    .login-log time { color: var(--muted); font-size: 12px; }
    .login-reset {
        display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
        padding: 12px 14px; border-radius: 14px;
        background: color-mix(in srgb, var(--bad) 10%, var(--elev));
        border: 1px solid color-mix(in srgb, var(--bad) 28%, var(--line));
    }
    .login-reset p { margin: 0; flex: 1; min-width: 16ch; font-size: 14px; }
    .invite-url, .code-box { width: 100%; font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--soft); resize: vertical; overflow-wrap: anywhere; }
    .gift-row {
        display: flex; gap: 8px; align-items: stretch; margin-top: 12px;
        padding: 10px; border-radius: 16px;
        background: color-mix(in srgb, var(--accent) 8%, var(--soft));
        border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
    }
    .gift-row .btn { flex: none; }
    .slug-field {
        display: flex; align-items: center; flex: 1; min-width: 0;
        border-radius: 12px; border: 1px solid var(--line); background: var(--elev);
        padding: 0 12px 0 14px;
    }
    .slug-prefix { font-weight: 800; color: var(--accent); font-size: 18px; line-height: 1; }
    .slug-field input {
        flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 8px 12px 4px;
        font-weight: 650; letter-spacing: .01em;
    }
    .slug-field:focus-within { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
    .auto-form { display: grid; gap: 4px; margin-bottom: 18px; }
    .auto-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
    .auto-card {
        display: grid; gap: 8px; padding: 14px; border-radius: 16px;
        background: var(--soft); border: 1px solid var(--line);
    }
    .auto-if small, .auto-card form { color: var(--muted); }
    .auto-if b {
        display: block; margin-top: 4px; padding: 8px 12px; border-radius: 10px;
        background: color-mix(in srgb, var(--accent) 12%, var(--elev)); font-size: 15px;
    }
    .auto-then {
        margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--elev);
        border: 1px solid var(--line); white-space: pre-wrap;
    }
    .auto-card form { margin: 0; justify-self: end; }
    .auto-card .btn { padding: 8px 12px; }
    .auto-empty { display: grid; place-items: center; gap: 8px; padding: 28px 12px; text-align: center; color: var(--muted); }
    .auto-empty .ico { width: 32px; height: 32px; opacity: .5; }
    body.embed { background: var(--bg); }
    .embed-wrap { padding: 12px; }
    .embed-card { background: var(--elev); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 10px; }
    .danger-card { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
    .btn.bad, button.bad { background: var(--bad); color: #fff; border-color: transparent; }
    .btn.ghost.bad { background: transparent; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
    .form-error { color: var(--bad); font-weight: 650; }
    @media (max-width: 900px) {
        .foot-inner { padding: 28px 20px 24px; }
        .foot-cols { grid-template-columns: 1fr 1fr; gap: 22px 32px; }
    }
    @media (max-width: 480px) {
        .foot-cols { grid-template-columns: 1fr; gap: 20px; justify-items: center; }
        .foot-col { align-items: center; text-align: center; }
    }
    @media (max-width: 760px) {
        .site-foot { padding-bottom: 0; }
        .foot-inner { padding: 28px 20px 24px; }
        .foot-cols { grid-template-columns: 1fr 1fr; gap: 22px 24px; }
        .foot-copy { padding-bottom: calc(108px + 14px); }
        .cookie-bar { bottom: 80px; width: calc(100% - 24px); }
        .profile-id-row, .stat-row { display: flex; flex-direction: column; }
        .user-compact { align-items: stretch; }
        .stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
        .stat-row div { padding: 10px; border-radius: 12px; }
        .stat-row b { font-size: 18px; }
        .ask-box { font-size: 18px; min-height: 140px; }
        .admin-layout, .settings-layout, .admin-main, .admin-side { width: 100%; min-width: 0; }
        .admin-layout { grid-template-columns: 1fr; gap: 10px; }
        .admin-side { position: static; }
        .shell:has(.messenger), .shell:has(.lobby) { grid-template-columns: 1fr; padding-bottom: 88px; }
        body:has(.messenger) .site-foot, body:has(.lobby) .site-foot { display: none; }
        .messenger, .lobby { display: flex; flex-direction: column; height: calc(100dvh - 132px); min-height: 0; }
        .chat-empty { display: none; }
        .messenger:has(.chat-pane) .chat-list { display: none; }
        .back { display: grid; }
        .chat-pane { min-height: 0; flex: 1; height: auto; }
        .composer .send-btn span { display: none; }
        .composer .send-btn { width: 44px; height: 44px; padding: 0; }
        .login-log li { grid-template-columns: 40px minmax(0, 1fr); }
        .login-when { grid-column: 2; justify-items: start; }
        .profile-id-row { gap: 10px; justify-content: flex-start; flex: none; }
        .profile-id h1, .ask-who h1, .settings-card h1 { font-size: 22px; }
        .profile-id { min-width: 0; padding-top: 40px; }
        .bio { margin-top: 10px; font-size: 15px; }
        .stat-pills, .insight-grid, .link-pair, .feat-grid { grid-template-columns: 1fr; }
        .cover { height: 96px; }
        .profile-top { margin-top: -36px; }
        .profile-hero .avatar.lg { width: 72px; height: 72px; border-width: 3px; }
        .profile-body { padding: 0 12px 14px; }
        .profile-hero { border-radius: 18px; }
        .profile-hero .cover { border-radius: 18px 18px 0 0; }
        .profile-actions, .soft-actions, .cta { width: 100%; justify-content: flex-start; gap: 8px; }
        .profile-actions { display: flex; flex-wrap: wrap; }
        .profile-actions > .btn, .profile-actions > a.btn { flex: 1 1 auto; width: auto; justify-content: center; padding: 10px 12px; }
        .soft-actions .btn, .cta .btn, .cta .friend-pill { flex: none; width: 100%; justify-content: center; padding: 10px 12px; }
        .profile-actions .more-btn { flex: none; width: 44px; height: 44px; }
        .profile-actions.is-mine { display: flex; }
        .profile-tabs a { padding: 6px 12px; }
        .rank { font-size: 13px; gap: 10px; margin: 0 0 10px; }
        .people-orbit { grid-template-columns: repeat(3, minmax(0, 1fr)); }
        .orbit .avatar { width: 64px; height: 64px; font-size: 22px; }
        .friend-row { align-items: flex-start; }
        .admin-side {
            flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px;
            padding: 10px; overflow: visible;
        }
        .admin-side h1, .admin-side small { display: none; }
        .admin-side a {
            display: inline-flex; flex-direction: row; align-items: center;
            flex: 0 0 auto; white-space: nowrap; padding: 8px 14px; border-radius: 999px;
            background: var(--soft); font-size: 14px; font-weight: 700;
        }
        .admin-side a.on { background: var(--text); color: var(--bg); }
        .settings-layout .admin-side {
            display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px; position: sticky; top: 8px; z-index: 3;
        }
        .settings-layout .admin-side a { width: 100%; justify-content: center; }
        .settings-layout .admin-side form { display: none; }
        .settings-layout .admin-side .btn { width: auto; margin: 0; flex: none; }
        .settings-pane { padding: 16px; }
        .settings-pane .btn.solid { width: 100%; }
        .section-grid { grid-template-columns: 1fr; }
        .token-row { flex-wrap: wrap; align-items: flex-start; }
        .token-row .btn { width: 100%; }
        .hero-home { padding: 28px 20px; }
        .feed-head h1 { font-size: 22px; }
        .post, .ask-card { padding: 16px; border-radius: 16px; }
        body:has(.feed-page) .shell { grid-template-columns: 1fr; }
        .feed-page .post, .feed-page .card { padding: 12px 14px; border-radius: 12px; }
        .story-tile { width: 80px; }
        .story-tile-art { width: 80px; height: 132px; }
        .story-peek { display: none; }
        .story-stage {
            top: 0; right: 0; left: 0; bottom: auto;
            height: 100svh;
            max-height: 100svh;
        }
        .story-theater { padding: 0; gap: 0; height: 100%; }
        .story-card {
            width: 100%; max-width: none;
            height: 100%; max-height: 100%;
            aspect-ratio: auto; border-radius: 0;
        }
        .story-reply {
            left: max(10px, env(safe-area-inset-left, 0px));
            right: max(10px, env(safe-area-inset-right, 0px));
            bottom: max(10px, env(safe-area-inset-bottom, 0px));
        }
        .story-caption {
            bottom: calc(72px + env(safe-area-inset-bottom, 0px));
        }
        .status-card, .privacy-gate { padding: 28px 18px 22px; }
        .status-card h1, .privacy-gate h1 { font-size: 24px; }
        .status-code { font-size: 84px; top: -6px; }
        .privacy-gate .cta, .status-card .cta { justify-content: center; }
    }
}

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { transform: translateY(-2px); opacity: .7; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
.chips a {
    text-decoration: none; /* Убирает стандартное подчеркивание ссылок */
    border-bottom: none;   /* Убирает возможную нижнюю границу */
}

/* Если полоска появляется при наведении (hover) */
.chips a:hover {
    text-decoration: none;
}
.chips {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.chips::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}