:root {
    --bg: #ffffff;
    --bg-2: #fff6ee;
    --ink: #2b2118;
    --muted: #8a6a52;
    --line: #f0d4bc;
    --orange: #e85d04;
    --orange-2: #f48c06;
    --orange-3: #ffba08;
    --orange-deep: #9d0208;
    --card: #ffffff;
    --log: #fffaf5;
    --shadow: 0 10px 30px rgba(232, 93, 4, 0.12);
    --radius: 10px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

html.dark {
    --bg: #1a120c;
    --bg-2: #24180f;
    --ink: #ffe8d4;
    --muted: #c9a48a;
    --line: #4a2e1c;
    --card: #2a1b12;
    --log: #140e0a;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
html.sunset {
    --bg: #e2d0b2;
    --bg-2: #d4bc99;
    --ink: #3a2b1c;
    --muted: #8a6a48;
    --line: #c3a67a;
    --orange: #c45c14;
    --orange-2: #d07830;
    --orange-3: #e2b06c;
    --orange-deep: #7a340f;
    --card: #e8d4b4;
    --log: #d8c49a;
    --shadow: 0 10px 24px rgba(80, 45, 15, 0.16);
}
html.midnight {
    --bg: #0b1020;
    --bg-2: #12182c;
    --ink: #e8eeff;
    --muted: #8fa2d6;
    --line: #2a3560;
    --orange: #f4b942;
    --orange-2: #ffd56a;
    --orange-3: #ffe9a8;
    --orange-deep: #c98916;
    --card: #151c33;
    --log: #080c18;
    --shadow: 0 10px 30px rgba(10, 16, 40, 0.5);
}
html.terminal {
    --bg: #03140a;
    --bg-2: #062012;
    --ink: #c8ffc8;
    --muted: #6dba6d;
    --line: #1c5c28;
    --orange: #7dff7d;
    --orange-2: #b6ffb6;
    --orange-3: #d9ffd9;
    --orange-deep: #2ea043;
    --card: #071c10;
    --log: #021008;
    --shadow: 0 10px 28px rgba(0, 40, 10, 0.45);
    font-family: "Courier New", Courier, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); }
a, a:visited { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-2); text-decoration: underline; }
body {
    background: linear-gradient(180deg, var(--bg-2), var(--bg) 220px);
    overflow: hidden;
}

.shell {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    border-bottom: 3px solid var(--orange);
    background: var(--card);
    box-shadow: var(--shadow);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 5;
}
.brand { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.logo {
    width: 42px;
    height: 42px;
    display: block;
    flex-shrink: 0;
}
.login-logo {
    display: block;
    margin: 0 auto 10px;
    width: 96px;
    height: 96px;
}
.card h1 { text-align: center; margin: 0 0 8px; color: var(--orange-deep); }
.rooms { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.rooms button {
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--ink);
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}
.rooms button.on {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
}
.tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#whoami { font-size: 13px; color: var(--muted); }

.btn {
    background: linear-gradient(#f48c06, #e85d04);
    border: 1px solid #c44500;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
}
.btn:hover { filter: brightness(1.05); }
.btn.ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.login {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 24px;
    overflow: auto;
}
.login.splash {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 22px;
    padding: 20px 24px 32px;
    background:
        repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(232,93,4,.06) 12px, rgba(232,93,4,.06) 13px),
        var(--bg);
}
.splash-hero { min-width: 0; width: min(720px, 100%); }
.ticker {
    overflow: hidden;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    color: #fff;
    background: linear-gradient(90deg, #9d0208, #e85d04, #f48c06);
    padding: 6px 0;
    margin: 0 0 14px;
}
.ticker-track {
    display: inline-flex;
    width: max-content;
    animation: marquee 28s linear infinite;
}
.ticker-track span { padding: 0 2em; }
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; justify-content: center; }
.badge-row span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    border: 2px solid var(--orange);
    padding: 3px 7px;
    background: var(--orange-3);
    color: #4a1c00;
}
.splash-copy h1 {
    font-size: clamp(32px, 6vw, 64px);
    line-height: .9;
    margin: 28px 0 6px;
    color: var(--orange);
    text-shadow: 4px 4px 0 #9d0208;
    letter-spacing: -1px;
}
.original {
    margin: 0 0 28px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--muted);
}
.manifest {
    font-size: 16px;
    line-height: 1.35;
    margin: 0 auto 18px;
    max-width: 36em;
}
.now-online {
    border: 3px solid var(--orange);
    background: var(--card);
    padding: 12px 14px;
    box-shadow: 6px 6px 0 var(--orange-deep);
}
.now-online h2 { margin: 0 0 8px; color: var(--orange); font-size: 16px; }
.now-online ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; }
.now-online li { font-weight: 800; padding: 2px 0; break-inside: avoid; }
.me-panel {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: grid;
    place-items: center;
    z-index: 20;
    padding: 20px;
}
.theme-picks { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; justify-content: center; }
.theme-swatch {
    border: 2px solid var(--orange);
    background: var(--card);
    color: var(--ink);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    padding: 6px 8px;
    cursor: pointer;
}
.theme-swatch.on { background: var(--orange-3); color: #4a1c00; }
.chat-legal { margin-top: 16px; font-size: 11px; color: var(--muted); }
.chat-legal a { color: var(--muted); }
.chat-legal a:hover { color: var(--orange); }
.enter { text-align: center; color: var(--orange-deep); margin: 0 0 6px; letter-spacing: .12em; }
.under-card { width: min(420px, 100%); text-align: center; }
.version { text-align: center; margin: 16px 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--muted); }
.legal-links { text-align: center; margin: 8px 0 0; font-size: 12px; line-height: 1.8; }
.badge-btn, a.badge-btn, button.badge-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 34px;
    line-height: 1;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    border: 2px solid var(--orange);
    padding: 0 12px;
    background: var(--orange-3);
    color: #4a1c00;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
}
.badge-btn:hover, a.badge-btn:hover {
    background: var(--orange);
    color: #fff;
    text-decoration: none;
}
.badge-btn.ghost, a.badge-btn.ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--orange);
}
#loginBtn { width: 100%; margin-top: 8px; }
.cookie-sticker {
    display: inline-block;
    margin-top: 18px;
    transform: rotate(-6deg);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
    border: 3px solid var(--orange-deep);
    background: var(--orange-3);
    color: #4a1c00 !important;
    padding: 8px 12px;
    box-shadow: 4px 4px 0 var(--orange-deep);
    text-decoration: none !important;
}
.cookie-sticker:hover {
    transform: rotate(-2deg) scale(1.03);
    background: var(--orange);
    color: #fff !important;
}
.legal-shell { overflow: hidden; }
.legal-page {
    flex: 1;
    overflow: auto;
    padding: 28px 20px 48px;
    text-align: center;
    background:
        repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(232,93,4,.05) 12px, rgba(232,93,4,.05) 13px);
}
.legal-page h1 {
    font-size: clamp(28px, 5vw, 48px);
    line-height: .95;
    margin: 0 0 10px;
    color: var(--orange);
    text-shadow: 3px 3px 0 var(--orange-deep);
}
.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    max-width: 920px;
    margin: 22px auto 0;
    text-align: left;
}
.legal-card {
    background: var(--card);
    border: 3px solid var(--orange);
    box-shadow: 6px 6px 0 var(--orange-deep);
    padding: 16px 18px;
}
.legal-card.wide { grid-column: 1 / -1; }
.legal-card h2 { margin: 0 0 8px; color: var(--orange); font-size: 15px; letter-spacing: .04em; }
.legal-card p, .legal-card li { font-size: 14px; line-height: 1.45; margin: 0 0 8px; }
.legal-card ul { margin: 0; padding-left: 1.2em; }
.card {
    width: min(420px, 100%);
    background: var(--card);
    border: 1px solid var(--line);
    border-top: 6px solid var(--orange);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}
.login .card {
    border: 3px solid var(--orange);
    border-radius: 0;
    border-top: 3px solid var(--orange);
    box-shadow: 6px 6px 0 var(--orange-deep);
    padding: 16px 16px 18px;
    text-align: center;
}
.card label, .page-install label { display: block; margin: 12px 0; font-size: 13px; }
input[type="text"], input:not([type="color"]), input[type="password"] {
    width: 100%;
    margin-top: 4px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg);
    color: var(--ink);
}
input[type="color"] { height: 36px; width: 72px; border: 0; background: transparent; }

.chat-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}
.chat-foot {
    flex: 0 0 auto;
    text-align: center;
    font-size: 11px;
    padding: 6px 10px 8px;
    border-top: 2px solid var(--orange);
    color: var(--muted);
}
.chat-foot a { color: var(--muted); }
.chat-foot a:hover { color: var(--orange); }
.chat {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, max-content);
    min-height: 0;
    overflow: hidden;
}
.users-pane {
    border-left: 3px solid var(--orange);
    background: var(--bg-2);
    padding: 14px 14px 12px;
    overflow: auto;
    overflow-x: auto;
    height: 100%;
    position: sticky;
    top: 0;
    min-width: 300px;
    max-width: min(420px, 36vw);
    width: max-content;
    box-shadow: inset 10px 0 18px rgba(232,93,4,.07);
}
.cmd-hint {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
    font-size: 11px;
    color: var(--muted);
    line-height: 1.55;
}
.cmd-hint code {
    color: var(--orange);
    font-size: 11px;
}
.users-pane h2 { font-size: 13px; margin: 0 0 8px; color: var(--orange); }
.users-pane ul { list-style: none; margin: 0; padding: 0; }
.users-pane li {
    padding: 4px 0;
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1.35;
}
.role-sym { margin-right: 4px; }
.lvl { margin-left: 6px; font-size: 10px; font-weight: 700; color: var(--muted); }
.stars { color: var(--orange); letter-spacing: 1px; }
.titles { font-size: 9px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.afk {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    color: #fff;
    background: var(--muted);
    padding: 1px 5px;
    margin-right: 4px;
    vertical-align: middle;
}
.main-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; }
.log {
    flex: 1;
    overflow: auto;
    padding: 12px 16px;
    background: var(--log);
    font-size: 14px;
    line-height: 1.45;
    min-height: 0;
}
.line { margin: 0 0 4px; word-wrap: break-word; }
.idle { color: var(--muted); font-weight: 500; font-size: 11px; margin-left: 4px; }
.line .t { color: var(--muted); font-size: 11px; margin-right: 6px; }
.line.owner { font-weight: 700; }
.line.stealth { font-style: italic; }
.ghost-tag { font-size: 10px; color: var(--muted); margin-left: 4px; font-weight: 400; }
.line.sys { color: var(--muted); font-style: italic; }
.line.me { color: var(--orange-deep); }
.line.whisper {
    background: var(--whisper-bg, #fff1e4);
    color: var(--ink);
    border-left: 3px solid var(--orange-2);
    padding: 2px 6px;
}
html.dark { --whisper-bg: #3a2414; }
html.midnight { --whisper-bg: #1c2752; }
html.terminal { --whisper-bg: #0a2e16; }
html.sunset { --whisper-bg: #ead9b8; }

#sendBtn { align-self: end; }
.composer input,
.composer #text { font-size: 18px; }
.composer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid var(--line);
    background: var(--card);
    position: sticky;
    bottom: 0;
    z-index: 4;
    flex-shrink: 0;
}
.topic-bar {
    padding: 6px 10px;
    font-size: 12px;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    background: var(--bg-2);
}
.faves { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; }
.faves button.badge-btn { font-size: 11px; padding: 3px 8px; }
.smilies {
    grid-column: 1 / -1;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.smilies button {
    border: 1px solid var(--line);
    background: var(--bg);
    cursor: pointer;
    border-radius: 4px;
    font-size: 22px;
    line-height: 1;
    padding: 4px 7px;
    transition: transform .12s ease;
}
.smilies button:hover {
    transform: scale(1.35);
    z-index: 2;
    background: var(--card);
}
.hint { color: var(--muted); font-size: 12px; }
.error { color: #9d0208; }
.ok { color: #2b7a0b; font-size: 14px; }
.hidden { display: none !important; }
.page-install { display: grid; place-items: center; min-height: 100%; padding: 24px; overflow: auto; }
.admin { padding: 18px; max-width: 1200px; overflow: auto; flex: 1; }
.admin table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin table.grid th, .admin table.grid td {
    border-bottom: 1px solid var(--line);
    padding: 8px 6px;
    text-align: left;
    vertical-align: middle;
}
.admin table.grid th { color: var(--orange); font-size: 12px; }
.admin table.grid input, .admin table.grid select { width: 100%; min-width: 0; margin: 0; }
.admin table.grid input[type="number"] { width: 4.2em; }
.admin table.grid input[type="checkbox"] { width: auto; }
.admin .nowrap { white-space: nowrap; }
.admin .acts button, .admin .inline button { margin: 0 4px 4px 0; }
.admin .row, .admin .new-room { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 24px; }
.admin .inline { display: inline; }
.table-wrap { overflow: auto; }

@media (max-width: 860px) {
    .login.splash { display: flex; }
}
@media (max-width: 720px) {
    html, body { height: 100dvh; }
    .shell { height: 100dvh; }
    .login.splash { padding: 12px 12px calc(16px + env(safe-area-inset-bottom)); gap: 14px; }
    .ticker { font-size: 10px; margin-bottom: 8px; }
    .login .card { width: 100%; padding: 16px 14px; }
    .login-logo { width: 72px; height: 72px; }
    .under-card { width: 100%; }
    .chat { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
    .chat-stage { min-height: 0; }
    .topbar {
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 6px;
        padding: 4px 8px 4px;
        padding-top: max(4px, env(safe-area-inset-top));
    }
    .brand strong { display: none; }
    .logo { width: 22px; height: 22px; }
    .rooms {
        flex-basis: 100%;
        order: 3;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 4px;
    }
    .rooms::-webkit-scrollbar { display: none; }
    .rooms button { flex: 0 0 auto; padding: 3px 8px; min-height: 0; font-size: 11px; }
    .tools { margin-left: auto; gap: 4px; }
    #whoami { display: none; }
    .chat .badge-btn, .chat a.badge-btn, .chat button.badge-btn,
    .topbar .badge-btn, .topbar a.badge-btn, .topbar button.badge-btn {
        height: 26px;
        padding: 0 7px;
        font-size: 10px;
        min-width: 0;
        letter-spacing: .04em;
    }
    .main-pane { min-height: 0; }
    .topic-bar { padding: 2px 8px; font-size: 11px; }
    .log { font-size: 14px; padding: 6px 8px 8px; }
    .composer {
        grid-template-columns: 1fr auto;
        gap: 4px;
        padding: 4px 8px 4px;
        position: sticky;
        bottom: 0;
        background: var(--card);
        border-top: 1px solid var(--line);
        z-index: 4;
    }
    .smilies { justify-content: flex-start; gap: 2px; }
    .smilies button { width: 26px; height: 26px; font-size: 16px; padding: 0; }
    .composer input, .composer #text {
        font-size: 16px;
        min-height: 34px;
        width: auto;
        padding: 6px 8px;
    }
    #sendBtn { min-height: 34px; width: auto; align-self: end; }
    .users-pane {
        border-left: 0;
        border-top: 1px solid var(--orange);
        max-height: none;
        height: auto;
        position: sticky;
        bottom: 0;
        padding: 4px 8px calc(4px + env(safe-area-inset-bottom));
        background: var(--card);
    }
    .users-pane h2 { font-size: 10px; margin: 0 0 2px; }
    .users-pane .hint { display: none; }
    .users-pane ul {
        display: flex;
        flex-wrap: wrap;
        align-content: flex-start;
        gap: 2px 8px;
        max-height: 2.4em;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }
    .users-pane li {
        white-space: nowrap;
        font-size: 11px;
        padding: 0;
    }
    .users-pane .lvl { font-size: 9px; }
    .users-pane .titles { font-size: 8px; }
    .side-links { margin-top: 3px; gap: 6px 8px; }
    .info-link { font-size: 11px; min-height: 0; }
    .chat-foot { display: none; }
    .me-panel .card { width: 100%; max-height: 96dvh; border-radius: 16px 16px 0 0; margin-top: auto; }
    .faves, .quote-bar { grid-column: 1 / -1; font-size: 10px; margin: 0; }
}
@media (max-width: 720px) {
    html.modern .composer { border-top: 0; box-shadow: none; }
    html.modern .users-pane {
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
}

.me-panel .card { width: min(440px, 100%); max-height: 92vh; overflow: auto; text-align: left; }
.me-block { border-top: 2px solid var(--line); margin-top: 14px; padding-top: 12px; }
.me-block h3 { margin: 0 0 8px; font-size: 13px; letter-spacing: .08em; color: var(--orange); }
.me-panel textarea {
    width: 100%;
    margin-top: 4px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    resize: vertical;
}
.subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    justify-content: center;
    margin: 0 0 18px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .06em;
}
.subnav a { color: var(--muted); }
.subnav a:hover { color: var(--orange); }
.lede { max-width: 36em; margin: 0 auto 18px; }
table.cmd { width: 100%; border-collapse: collapse; font-size: 14px; }
table.cmd td { padding: 6px 8px 6px 0; vertical-align: top; }
table.cmd code { font-weight: 700; }
.faq details { border-top: 1px solid var(--line); padding: 8px 0; text-align: left; }
.faq summary { cursor: pointer; font-weight: 800; color: var(--orange); }
.faq details p { margin: 8px 0 0; }

.pw-wrap { display: flex; gap: 6px; align-items: center; }
.pw-wrap input { flex: 1; }
.pw-toggle {
    flex: 0 0 auto;
    border: 2px solid var(--orange);
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    padding: 8px 8px;
    cursor: pointer;
}

.now-online ul { display: block; text-align: left; }
.now-online .room-head {
    list-style: none;
    margin-top: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    color: var(--orange);
    text-transform: uppercase;
}
.now-online .room-head:first-child { margin-top: 0; }

.now-online ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: center;
    text-align: left;
}
.now-online .room-chip {
    list-style: none;
    border: 2px solid var(--orange);
    padding: 6px 10px;
    white-space: nowrap;
}
.now-online .room-chip strong {
    color: var(--orange);
    margin-right: 8px;
    letter-spacing: .06em;
    font-size: 11px;
    text-transform: uppercase;
}
.now-online .room-chip span { margin-right: 8px; font-weight: 800; }

.composer input, .composer #text { font-size: 18px; }

.who-nick { font-size: 20px; margin: 0 0 8px; }
.who-nick .lvl, .who-nick .titles { display: inline; }

img.av { width: 18px; height: 18px; vertical-align: -4px; margin-right: 4px; border-radius: 50%; }
.who-av { display:block; margin: 0 auto 8px; width: 72px; height: 72px; }
.avatar-picks { display:flex; flex-wrap:wrap; gap:6px; margin: 8px 0 12px; }
.av-pick { border:2px solid var(--line); background:var(--bg); padding:3px; cursor:pointer; line-height:0; }
.av-pick.on { border-color: var(--orange); }
.av-pick img { width:40px; height:40px; display:block; }

.inbox { max-height: 180px; overflow: auto; margin: 8px 0; font-size: 13px; }
.inbox p { margin: 0 0 6px; padding: 6px 8px; border-left: 3px solid var(--orange); background: var(--bg-2); }
.inbox p.unread { font-weight: 800; }
#mailBadge { color: #fff; background: #9d0208; border-radius: 8px; padding: 0 6px; margin-left: 4px; font-size: 11px; }

.me-stats { margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }

.faves-lab { font-size: 11px; color: var(--muted); margin-right: 4px; align-self: center; }

.quote-bar { display:flex; gap:8px; align-items:center; font-size:12px; color:var(--muted); padding:4px 0; }
.quote-bar.hidden { display:none; }
.line.replyable { cursor:pointer; }
.line .q { font-size:12px; color:var(--muted); border-left:3px solid var(--orange); padding:2px 8px; margin:2px 0 4px 8px; }

html.modern {
    --radius: 18px;
    font-family: "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
}
html.modern body {
    background: var(--bg);
}
html.modern .badge-btn, html.modern a.badge-btn, html.modern button.badge-btn {
    height: 36px;
    border: 0;
    border-radius: 999px;
    letter-spacing: .04em;
    font-weight: 700;
    background: var(--orange);
    color: #fff;
    box-shadow: 0 8px 20px rgba(232,93,4,.25);
}
html.modern .badge-btn.ghost, html.modern a.badge-btn.ghost {
    background: color-mix(in srgb, var(--card) 70%, transparent);
    color: var(--ink);
    box-shadow: none;
    border: 1px solid var(--line);
}
html.modern .badge-btn:hover, html.modern a.badge-btn:hover {
    filter: brightness(1.08);
    color: #fff;
}
html.modern .card, html.modern .login .card, html.modern .legal-card, html.modern .topbar {
    border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,.08);
    backdrop-filter: blur(16px);
}
html.modern .login.splash {
    background:
        radial-gradient(900px 420px at 50% -10%, color-mix(in srgb, var(--orange) 22%, transparent), transparent 60%),
        radial-gradient(600px 280px at 80% 10%, color-mix(in srgb, var(--orange-2) 16%, transparent), transparent 55%),
        var(--bg);
    gap: 28px;
}
html.modern .ticker {
    border-radius: 999px;
    background: color-mix(in srgb, var(--ink) 8%, transparent);
    color: var(--ink);
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    opacity: 1;
    padding: 10px 0;
    margin: 0 auto 22px;
    max-width: 640px;
    border: 1px solid var(--line);
    backdrop-filter: blur(12px);
}
html.modern .badge-row { gap: 8px; margin-bottom: 16px; }
html.modern .badge-row span {
    border: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--orange) 14%, var(--card));
    color: var(--ink);
    padding: 6px 12px;
    letter-spacing: .12em;
    font-weight: 700;
}
html.modern .splash-copy h1 {
    font-size: clamp(48px, 9vw, 84px);
    letter-spacing: -.06em;
    text-shadow: none;
    background: linear-gradient(180deg, var(--orange-2), var(--orange-deep));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 4px;
}
html.modern .original {
    letter-spacing: .4em;
    font-weight: 600;
    opacity: .7;
    margin-bottom: 32px;
}
html.modern .manifest {
    font-size: 17px;
    line-height: 1.5;
    font-weight: 500;
    max-width: 28em;
    color: var(--ink);
    opacity: .88;
}
html.modern .now-online {
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(0,0,0,.06);
    background: color-mix(in srgb, var(--card) 82%, transparent);
    backdrop-filter: blur(16px);
}
html.modern h1, html.modern .enter { letter-spacing: -.03em; font-weight: 800; }
html.modern .users-pane {
    border-left: 1px solid var(--line);
    box-shadow: none;
    border-radius: 16px 0 0 16px;
}
html.modern .log { font-size: 14.5px; line-height: 1.45; }
html.modern .composer input, html.modern input, html.modern textarea, html.modern select {
    border-radius: 12px;
    border-color: var(--line);
}
html.modern .line .q { border-radius: 8px; }
html.modern .splash-copy h1 { font-size: clamp(42px, 8vw, 72px); }

.splash-title { margin: 0 0 6px; line-height: 0; }
.title-reel {
    display: block;
    margin: 0 auto;
    height: clamp(56px, 10vw, 88px);
    width: auto;
    max-width: min(720px, 100%);
    object-fit: contain;
    mix-blend-mode: screen;
    filter: contrast(1.08) saturate(1.12);
}
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}
html.modern .title-reel { height: clamp(64px, 12vw, 108px); }

.side-links { display:flex; flex-wrap:wrap; gap:6px 10px; margin-top:10px; justify-content:flex-start; }
.info-link { background:none; border:0; padding:0; color:var(--orange); font:inherit; font-size:12px; font-weight:800; cursor:pointer; text-decoration:underline; }
.info-body { font-size:14px; line-height:1.45; text-align:left; }
.info-body code { font-size:12px; }
@media (max-width: 720px) {
  .side-links { justify-content:center; }
}

.nick-hit { cursor: pointer; }
.nick-hit:hover { text-decoration: underline; }
