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

@font-face {
    font-family: Lexend;
    src: url("/fonts/lexend-latin-ext.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: Figtree;
    src: url("/fonts/figtree-latin.woff2") format("woff2");
    font-weight: 300 900;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: Figtree;
    src: url("/fonts/figtree-latin-ext.woff2") format("woff2");
    font-weight: 300 900;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2");
    font-weight: 100 800;
    font-display: swap;
}

:root {
    color-scheme: light;
    --bg: #ffffff;
    --bg-soft: #f5ebff;
    --ink: #1a0040;
    --muted: #3b2f4a;
    --violet: #5800cc;
    --mint: #48ffcb;
    --on-mint: #06231a;
    --mint-label: #0b6b52;
    --line: #e4d7f5;
    --danger: #9b1c1c;
    --font-display: Lexend, Figtree, sans-serif;
    --font-body: Figtree, sans-serif;
    --font-data: "JetBrains Mono", ui-monospace, monospace;
    --radius: 8px;
    --container-app: 1200px;
    --container-read: 720px;
    --container-form: 560px;
    --gutter: 16px;
    --grid-columns: 4;
    --grid-gap: 16px;
    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-6: 24px;
    --s-7: 32px;
    --s-9: 48px;
    --s-10: 64px;
    --s-12: 96px;
    --gap-tight: var(--s-1);
    --gap-inline: var(--s-2);
    --gap-touch: var(--s-3);
    --gap-field: var(--s-4);
    --gap-group: var(--s-6);
    --gap-block: var(--s-7);
    --gap-section: var(--s-9);
}

@media (min-width: 768px) {
    :root {
        --gutter: 24px;
        --grid-columns: 8;
        --grid-gap: 24px;
    }
}

@media (min-width: 1024px) {
    :root {
        --gutter: 32px;
        --grid-columns: 12;
        --grid-gap: 24px;
        --gap-section: var(--s-10);
    }
}

@media (min-width: 1440px) {
    :root {
        --grid-gap: 32px;
    }
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #02030a;
        --bg-soft: #070815;
        --ink: #ffffff;
        --muted: #e6e2f2;
        --violet: #bd7aff;
        --mint: #48ffcb;
        --on-mint: #06231a;
        --mint-label: #48ffcb;
        --line: #bd7aff;
        --danger: #ffb4b4;
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #02030a;
    --bg-soft: #070815;
    --ink: #ffffff;
    --muted: #e6e2f2;
    --violet: #bd7aff;
    --mint: #48ffcb;
    --on-mint: #06231a;
    --mint-label: #48ffcb;
    --line: #bd7aff;
    --danger: #ffb4b4;
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #ffffff;
    --bg-soft: #f5ebff;
    --ink: #1a0040;
    --muted: #3b2f4a;
    --violet: #5800cc;
    --mint: #48ffcb;
    --on-mint: #06231a;
    --mint-label: #0b6b52;
    --line: #e4d7f5;
    --danger: #9b1c1c;
}

* { box-sizing: border-box; }

html {
    scroll-padding-top: 64px;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
}

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

a { color: var(--violet); }

.chrome,
.page-gutter {
    box-sizing: border-box;
    width: 100%;
    padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.chrome {
    max-width: calc(var(--container-app) + (var(--gutter) * 2));
    margin-inline: auto;
}

.page-gutter {
    max-width: none;
}

.wrap {
    width: 100%;
    max-width: var(--container-app);
    margin: 0 auto;
    padding: 0 0 4rem;
    min-width: 0;
}

.wrap-read {
    max-width: var(--container-read);
}

.grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
    gap: var(--grid-gap);
}

.chrome > *,
.wrap > *,
.grid > * {
    min-width: 0;
}

.site-header {
    position: relative;
    z-index: 40;
    margin-bottom: 2rem;
    background: var(--bg);
}

.site-bar {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.75rem 1rem;
    width: auto;
    min-height: 4.5rem;
    margin: 0;
    padding-top: 1.25rem;
}

.auth-form {
    max-width: 36rem;
}

.auth-form button,
.auth-passkey {
    width: 100%;
}

.auth-wrap :is(button, a, input, select, textarea):focus-visible {
    outline: 2px solid var(--violet);
    outline-offset: 3px;
}

:root[data-theme="dark"] .auth-wrap :is(button, a, input, select, textarea):focus-visible {
    outline-color: var(--mint);
}

.wordmark {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    font-size: 1.5rem;
    color: #5800cc;
    text-decoration: none;
}

.wordmark-img {
    display: block;
    width: 175px;
    height: auto;
    background: #ffffff;
}

.wordmark-text,
.wordmark-mark {
    display: none;
}

.wordmark-mark {
    width: 32px;
    height: 32px;
}

:root[data-theme="dark"] .wordmark,
:root[data-theme="dark"] .wordmark-text {
    color: #ffffff;
}

:root[data-theme="dark"] .wordmark-img {
    display: none;
}

:root[data-theme="dark"] .wordmark-text {
    display: inline;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .wordmark,
    :root:not([data-theme="light"]) .wordmark-text {
        color: #ffffff;
    }

    :root:not([data-theme="light"]) .wordmark-img {
        display: none;
    }

    :root:not([data-theme="light"]) .wordmark-text {
        display: inline;
    }
}

@media (max-width: 1023px) {
    .wordmark-img,
    .wordmark-text,
    :root[data-theme="dark"] .wordmark-text,
    :root:not([data-theme="light"]) .wordmark-text {
        display: none;
    }

    .wordmark-mark {
        display: block;
    }
}

h1 {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -0.02em;
    font-size: 1.5rem;
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

@media (min-width: 768px) {
    h1 {
        font-size: 2rem;
    }
}

.panel {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.25rem;
}

label, .label {
    display: block;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
    color: var(--ink);
    margin: var(--gap-field) 0 var(--gap-inline);
}

input, select, textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.6rem 0.75rem;
    font: 16px/1.5 var(--font-body);
    background: var(--bg);
    color: var(--ink);
}

input.is-invalid, select.is-invalid, textarea.is-invalid {
    border: 2px solid var(--danger);
}

button, .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 0;
    padding: 0.6rem 1rem;
    border: 0;
    border-radius: var(--radius);
    background: var(--mint);
    color: var(--on-mint);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

button:hover, .button:hover {
    background: #1fe3a6;
    color: var(--on-mint);
}

a.button.secondary,
button.secondary {
    min-height: 40px;
    border: 1px solid #5800cc;
    background: transparent;
    color: #5800cc;
}

a.button.secondary:hover,
button.secondary:hover {
    background: #f5ebff;
    color: #5800cc;
}

@media (pointer: coarse) {
    a.button.secondary,
    button.secondary {
        min-height: 44px;
    }
}

.panel button[type="submit"],
.panel .button {
    margin-top: var(--gap-group);
}

#payment-element {
    margin-bottom: 0.5rem;
    max-width: 100%;
}

#payment-form button[type="submit"] {
    width: 100%;
}

#payment-error[hidden] {
    display: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 2px solid #5800cc;
    outline-offset: 3px;
}

:root[data-theme="dark"] :is(button, a, input, select, textarea, summary):focus-visible {
    outline-color: #48ffcb;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) :is(button, a, input, select, textarea, summary):focus-visible {
        outline-color: #48ffcb;
    }
}

.muted { color: var(--muted); }

.hint {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 14px;
}

.error {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin: 0.35rem 0 0;
    color: var(--danger);
}

.error::before {
    content: "";
    flex: 0 0 1.1rem;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.15rem;
    background-color: var(--danger);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='black'><path fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zM9 6.5a1 1 0 012 0v4a1 1 0 11-2 0v-4zm1 8.25a1.25 1.25 0 100-2.5 1.25 1.25 0 000 2.5z' clip-rule='evenodd'/></svg>") center / contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='black'><path fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zM9 6.5a1 1 0 012 0v4a1 1 0 11-2 0v-4zm1 8.25a1.25 1.25 0 100-2.5 1.25 1.25 0 000 2.5z' clip-rule='evenodd'/></svg>") center / contain no-repeat;
}

.nav {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav form {
    display: flex;
    margin: 0;
}

.icon-button {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}

.icon-button:hover {
    background: transparent;
    color: var(--ink);
}

.icon-button svg {
    width: 20px;
    height: 20px;
}

@media (pointer: fine) {
    .icon-button {
        width: 40px;
        height: 40px;
        min-height: 40px;
    }
}

.text-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
    padding: 0 0.25rem;
    border: 0;
    background: transparent;
    color: var(--violet);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
}

.text-link:hover {
    background: transparent;
    color: var(--violet);
}

.ghost {
    background: transparent;
    color: var(--violet);
    border: 1px solid var(--line);
}

.ghost:hover {
    background: transparent;
    color: var(--violet);
}

.or {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    color: var(--muted);
    font-size: 14px;
}

.or::before, .or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.cards {
    display: grid;
    gap: 1rem;
    margin: 1.25rem 0;
}

.cards .button,
.cards button[type="submit"] {
    width: 100%;
}

.invite-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
    margin: 0.75rem 0 0;
}

@media (min-width: 800px) {
    .cards .button,
    .cards button[type="submit"] {
        width: auto;
    }
}

.score {
    margin: 0.35rem 0 0;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--muted);
}

.strength {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
    max-width: 16rem;
    margin: 0.85rem 0 0.35rem;
}

.strength-bar {
    position: relative;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--line);
    overflow: visible;
}

.strength-bar.is-on {
    background: #147a45;
}

.strength.is-partial .strength-bar.is-on {
    background: #92400e;
}

[data-theme="dark"] .strength-bar.is-on,
[data-theme="dark"] .strength.is-strong .strength-bar.is-on {
    background: #3dce7a;
}

[data-theme="dark"] .strength.is-partial .strength-bar.is-on {
    background: #f5c16c;
}

.score.is-checked::before {
    content: "✓ ";
    color: #147a45;
}

[data-theme="dark"] .score.is-checked::before {
    color: #3dce7a;
}

.confetti {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    border-radius: 1px;
    pointer-events: none;
    animation: strength-burst 700ms ease-out forwards;
}

@keyframes strength-burst {
    to {
        opacity: 0;
        transform: translate(var(--dx), var(--dy)) rotate(var(--rot));
    }
}

@media (prefers-reduced-motion: reduce) {
    .confetti {
        display: none;
        animation: none;
    }
}

button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.verify {
    padding-top: 1.5rem;
}

.verify h1 {
    margin-bottom: 1.25rem;
}

.verify-lede {
    max-width: 34rem;
    margin: 0 0 2.25rem;
    font-size: 1.125rem;
    line-height: 1.7;
}

.verify-resend {
    margin: 0;
}

.verify-wait {
    min-height: 1.5rem;
    margin: 0.85rem 0 0;
}

.verify-change-toggle {
    margin: 2.75rem 0 0;
}

.verify-change {
    margin-top: 1rem;
    padding: 1.5rem;
}

.verify-change label {
    margin-top: 0;
}

.mono, .secret, code {
    font-family: var(--font-data);
    font-size: 16px;
}

.secret {
    letter-spacing: 0.08em;
}

.wrap-wide,
.wrap-app {
    max-width: var(--container-app);
}

.skip {
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    transform: translateY(-150%);
    background: var(--mint);
    color: var(--on-mint);
    padding: 0.6rem 1rem;
    border-radius: var(--radius);
    z-index: 5;
}

.skip:focus {
    transform: none;
}

.forum-head {
    margin-bottom: 1.5rem;
}

.page-band {
    background-color: #ffffff;
    background-image:
        radial-gradient(520px 180px at 88% 0%, rgba(111, 0, 255, 0.10), transparent 70%),
        radial-gradient(360px 160px at 100% 100%, rgba(189, 122, 255, 0.12), transparent 70%);
    border-bottom: 1px solid #e8d2ff;
    padding-top: 24px;
    padding-bottom: 16px;
}

.page-band .crumbs {
    margin-bottom: 12px;
    font-size: 14px;
    color: #6b5e80;
}

.page-band-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.page-band-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.page-band h1 {
    margin: 0;
}

.page-meta {
    margin: 8px 0 0;
    color: #6b5e80;
    font-size: 14px;
    line-height: 1.4;
}

.page-band-action {
    margin-left: auto;
}

.section-tile {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: #f5ebff;
    color: #5800cc;
}

.section-tile .room-icon {
    width: 20px;
    height: 20px;
    margin: 0;
}

.empty-state {
    max-width: 400px;
    margin: 0 auto;
    padding-block: 48px;
    text-align: center;
}

.empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #f5ebff;
    color: #5800cc;
}

.empty-state p {
    margin: 0;
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.empty-state .button {
    margin-top: 16px;
}

@media (min-width: 768px) {
    .page-band {
        padding-top: 32px;
        padding-bottom: 24px;
    }

    .section-tile {
        width: 40px;
        height: 40px;
    }

    .section-tile .room-icon {
        width: 24px;
        height: 24px;
    }
}

:root[data-theme="dark"] .page-meta,
:root[data-theme="dark"] .page-band .crumbs {
    color: #e6e2f2;
}

:root[data-theme="dark"] .page-band {
    background-color: #02030a;
    background-image:
        radial-gradient(520px 180px at 88% 0%, rgba(189, 122, 255, 0.16), transparent 70%),
        radial-gradient(360px 160px at 100% 100%, rgba(88, 0, 204, 0.22), transparent 70%);
    border-bottom-color: rgba(189, 122, 255, 0.35);
}

:root[data-theme="dark"] .section-tile,
:root[data-theme="dark"] .empty-icon {
    background: rgba(255, 255, 255, 0.08);
    color: #bd7aff;
}

:root[data-theme="dark"] :is(a.button.secondary, button.secondary) {
    border-color: #bd7aff;
    color: #bd7aff;
}

:root[data-theme="dark"] :is(a.button.secondary, button.secondary):hover {
    background: rgba(255, 255, 255, 0.08);
    color: #bd7aff;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .page-meta,
    :root:not([data-theme="light"]) .page-band .crumbs {
        color: #e6e2f2;
    }

    :root:not([data-theme="light"]) .page-band {
        background-color: #02030a;
        background-image:
            radial-gradient(520px 180px at 88% 0%, rgba(189, 122, 255, 0.16), transparent 70%),
            radial-gradient(360px 160px at 100% 100%, rgba(88, 0, 204, 0.22), transparent 70%);
        border-bottom-color: rgba(189, 122, 255, 0.35);
    }

    :root:not([data-theme="light"]) .section-tile,
    :root:not([data-theme="light"]) .empty-icon {
        background: rgba(255, 255, 255, 0.08);
        color: #bd7aff;
    }

    :root:not([data-theme="light"]) :is(a.button.secondary, button.secondary) {
        border-color: #bd7aff;
        color: #bd7aff;
    }
}

@media (max-width: 767px) {
    .page-band-row {
        flex-wrap: wrap;
    }

    .page-band-action,
    .page-band-action .button {
        width: 100%;
        margin-left: 0;
    }
}

.forum-head h1,
.replies-heading {
    margin-bottom: 0.5rem;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.35rem;
    color: var(--mint-label);
    font-family: var(--font-data);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.room-list,
.discussion-list,
.reply-list,
.attachments {
    list-style: none;
    margin: 0;
    padding: 0;
}

.room-list,
.discussion-list {
    display: grid;
    gap: 0.75rem;
}

.thread-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.thread-row {
    position: relative;
    display: grid;
    grid-template-columns: 8px 40px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    min-height: 88px;
    padding: 16px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #e8d2ff;
    border-radius: 0;
}

.thread-row h2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
}

.thread-row.is-unread h2 {
    font-weight: 600;
}

.thread-row h2 a {
    color: inherit;
    font-weight: inherit;
    text-decoration: none;
}

.thread-row h2 a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.thread-row .row-avatar,
.thread-row .who-name,
.thread-row .pin,
.thread-row .tlp,
.thread-row .tlp-tip {
    position: relative;
    z-index: 1;
}

.thread-row .row-avatar {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 999px;
}

.thread-row .excerpt {
    display: -webkit-box;
    margin: 4px 0 0;
    overflow: hidden;
    color: #6b5e80;
    font-size: 16px;
    line-height: 24px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.thread-row .row-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 8px;
}

.thread-row .row-by {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    color: #6b5e80;
    font-size: 14px;
    line-height: 20px;
}

.thread-row .who-name {
    color: var(--ink);
    font-weight: 600;
}

.thread-row .meta-sep {
    display: none;
}

.thread-row .row-side {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    color: #6b5e80;
    font-size: 14px;
    line-height: 20px;
}

.thread-row .reply-count,
.thread-row .pin {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.thread-row .reply-count svg,
.thread-row .pin {
    width: 16px;
    height: 16px;
    color: var(--violet);
}

.unread-dot {
    width: 8px;
    height: 8px;
    margin-top: 8px;
    border-radius: 50%;
    background: transparent;
}

.unread-dot.is-on {
    background: var(--violet);
}

.last-replier .avatar {
    width: 24px;
    height: 24px;
    font-size: 12px;
}

.thread-skeleton {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 88px;
    padding: 16px 0;
    border-bottom: 1px solid #e8d2ff;
}

.thread-skeleton span {
    display: block;
    height: 12px;
    border-radius: 6px;
    background: #f5ebff;
}

.thread-skeleton span:first-child {
    width: 40px;
    height: 40px;
    border-radius: 999px;
}

.thread-skeleton span:nth-child(2) {
    width: 70%;
}

:root[data-theme="dark"] .thread-row,
:root[data-theme="dark"] .thread-skeleton {
    border-bottom-color: rgba(189, 122, 255, 0.35);
}

:root[data-theme="dark"] .thread-row .excerpt,
:root[data-theme="dark"] .thread-row .row-by,
:root[data-theme="dark"] .thread-row .row-side,
:root[data-theme="dark"] .thread-row .meta-sep {
    color: #e6e2f2;
}

:root[data-theme="dark"] .thread-skeleton span {
    background: #1a0040;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .thread-row,
    :root:not([data-theme="light"]) .thread-skeleton {
        border-bottom-color: rgba(189, 122, 255, 0.35);
    }

    :root:not([data-theme="light"]) .thread-row .excerpt,
    :root:not([data-theme="light"]) .thread-row .row-by,
    :root:not([data-theme="light"]) .thread-row .row-side,
    :root:not([data-theme="light"]) .thread-row .meta-sep {
        color: #e6e2f2;
    }

    :root:not([data-theme="light"]) .thread-skeleton span {
        background: #1a0040;
    }
}

@media (max-width: 767px) {
    .thread-row {
        grid-template-columns: 8px 32px minmax(0, 1fr);
    }

    .thread-row > .row-avatar,
    .thread-row > .row-avatar .avatar {
        width: 32px;
        height: 32px;
    }

    .thread-row h2 {
        font-size: 16px;
        line-height: 22px;
    }

    .thread-row .excerpt {
        font-size: 14px;
        line-height: 20px;
    }

    .thread-row .meta-sep {
        display: inline;
        color: #6b5e80;
    }

    .thread-row .row-side {
        margin-left: 0;
    }

    .thread-row .last-replier {
        display: none;
    }
}

.room-card,
.discussion-row,
.post {
    display: block;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    color: inherit;
    text-decoration: none;
}

.room-card {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    min-height: 44px;
}

.room-card:hover {
    border-color: var(--violet);
}

.room-icon {
    width: 1.75rem;
    height: 1.75rem;
    flex: 0 0 auto;
    margin-top: 0.15rem;
    color: var(--violet);
}

.room-name,
.discussion-row h2,
.composer h2,
.replies-heading {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -0.02em;
    font-size: 1.25rem;
    line-height: 1.3;
    margin: 0 0 0.25rem;
}

.room-name {
    font-weight: 600;
    color: var(--ink);
}

.room-name a,
.discussion-row h2 a,
.discussion-row h3 a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}

.room-name a:hover,
.room-name a:focus-visible,
.discussion-row h2 a:hover,
.discussion-row h2 a:focus-visible,
.discussion-row h3 a:hover,
.discussion-row h3 a:focus-visible {
    text-decoration: none;
}

.room-count {
    display: block;
}

.discussion-row h2 a,
.discussion-row h3 a {
    color: var(--ink);
    text-decoration: none;
}

.post-meta,
.who {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
    align-items: center;
}

.post-meta {
    margin: 0.35rem 0 0;
}

.who-name {
    font-weight: 600;
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.avatar-32 {
    width: 32px;
    height: 32px;
    font-size: 12px;
}

.avatar-40 {
    width: 40px;
    height: 40px;
    font-size: 14px;
}

.avatar-64 {
    width: 64px;
    height: 64px;
    font-size: 24px;
}

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

.excerpt {
    margin: 0.25rem 0 0;
    color: var(--ink);
}

.tlp-tip {
    position: relative;
    display: inline-flex;
}

.tlp-tip .tlp,
.tlp-tip .tlp:hover {
    min-height: 32px;
    padding: 0 0.45rem;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-family: var(--font-data);
    font-size: 12px;
    font-weight: 400;
}

.tlp-tip .tip {
    display: none;
    position: absolute;
    z-index: 6;
    top: calc(100% + 0.25rem);
    left: 0;
    width: 16rem;
    padding: 0.6rem 0.75rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.4;
}

.tlp-tip:hover .tip,
.tlp-tip:focus-within .tip {
    display: block;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.5rem;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.badge-consultant {
    background: var(--mint);
    color: var(--on-mint);
}

.badge-staff {
    background: transparent;
    color: var(--violet);
    border: 1px solid var(--violet);
}

.badge-group {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}

.badge-demo {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--line);
}

.tlp {
    font-family: var(--font-data);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.demo-note,
.removed {
    margin: 0.75rem 0;
    padding: 0.75rem 1rem;
    border-left: 3px solid var(--mint-label);
    background: var(--bg-soft);
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin: 0 0 16px;
    color: #6b5e80;
    font-size: 14px;
    line-height: 20px;
}

.crumbs > * + *::before {
    content: "›";
    margin: 0 8px;
    color: #6b5e80;
}

.crumbs a {
    color: var(--violet);
}

.reply-list {
    display: grid;
    gap: 0;
    margin-bottom: 0;
}

.quote {
    display: -webkit-box;
    margin: 12px 0;
    padding: 0 0 0 12px;
    overflow: hidden;
    border-left: 3px solid #14b380;
    color: #6b5e80;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.prose :first-child {
    margin-top: 0;
}

.prose :last-child {
    margin-bottom: 0;
}

.prose pre,
.prose code {
    font-family: var(--font-data);
    font-size: 14px;
}

.prose pre {
    overflow-x: auto;
    padding: 0.75rem;
    background: var(--bg);
    border-radius: var(--radius);
}

.attachments {
    display: grid;
    gap: 0.75rem;
    margin: 0.75rem 0 0;
}

.attachments img {
    display: block;
    max-width: min(100%, 36rem);
    height: auto;
    border-radius: var(--radius);
}

.composer {
    margin-top: 1.5rem;
}

.report-popover {
    inset: unset;
    width: min(22rem, 100%);
    margin: 0;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--ink);
}

.report-popover label,
.report-popover input {
    display: block;
    width: 100%;
}

.report-popover input {
    margin: 0.35rem 0 0.75rem;
}

.composer-tools {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    align-items: center;
    margin-top: 8px;
    overflow-x: auto;
}

.composer-tools button {
    position: relative;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    background: transparent;
    color: var(--ink);
    border: 0;
    font-weight: 700;
}

.composer-tools button svg {
    width: 20px;
    height: 20px;
}

.composer-tools button:hover,
.composer-tools button[aria-pressed="true"] {
    background: #f5ebff;
    color: var(--ink);
}

.composer-tools .tip {
    display: none;
    position: absolute;
    z-index: 5;
    top: calc(100% + 4px);
    left: 0;
    width: max-content;
    padding: 4px 8px;
    border: 1px solid #e8d2ff;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
}

.composer-tools button:hover .tip,
.composer-tools button:focus-visible .tip {
    display: block;
}

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin: 1rem 0 0;
}

#forum-main h2 {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -0.02em;
    font-size: 1.5rem;
    line-height: 1.2;
}

#member-main h2,
#forum-main h2 {
    margin-top: var(--gap-section);
    margin-bottom: var(--gap-field);
}

.forum-nav,
.tool-row,
.search-form,
.mod-panel {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-inline);
    align-items: center;
}

.tool-row {
    margin-top: var(--gap-group);
}

.forum-nav {
    margin: 0 0 1rem;
}

.nav-count {
    display: inline-block;
    min-width: 1.25rem;
    margin-left: 0.35rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: var(--mint);
    color: var(--on-mint);
    font-family: var(--font-data);
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

.notice-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.notice-list li {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
}

.search-form {
    align-items: flex-end;
    margin: 1rem 0;
}

.search-form label {
    display: block;
}

.like-button,
.tool-row button,
.tool-row a.button {
    min-height: 44px;
}

@media (pointer: fine) {
    .tool-row button.secondary,
    .mod-panel button.secondary,
    .post-actions .like-button,
    .post-actions .more-button,
    .reply-link {
        min-height: 40px;
    }
}

.like-button,
.like-static {
    gap: 4px;
    min-width: 40px;
    padding: 0 8px;
    background: transparent;
    color: var(--ink);
}

.like-static {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
}

.like-button:hover,
.like-button[aria-pressed="true"] {
    background: transparent;
    color: var(--ink);
}

.like-button .thumb,
.like-static .thumb {
    width: 20px;
    height: 20px;
}

.like-button[aria-pressed="true"] .thumb {
    fill: #5800cc;
    color: #5800cc;
}

.like-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #f5ebff;
    color: #2d0066;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.like-button[aria-pressed="true"] .like-count {
    background: #5800cc;
    color: #ffffff;
}

.mod-disclosure {
    margin-top: 16px;
}

.mod-disclosure summary {
    width: fit-content;
    color: #5800cc;
    font-weight: 600;
    cursor: pointer;
}

.mod-panel {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
}

.fl {
    font-family: var(--font-data);
    font-size: 12px;
    letter-spacing: 0.04em;
}

.nav-tools {
    margin-left: auto;
    flex-wrap: nowrap;
}

.filter-menu > summary {
    display: none;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin: 0 0 0.75rem;
}

.filter-label {
    min-width: 8rem;
    color: var(--muted);
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    text-decoration: none;
}

.chip[aria-current="true"] {
    background: var(--mint);
    border-color: transparent;
    color: var(--on-mint);
    font-weight: 600;
}

.badge-sample {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--line);
}

.badge-critical {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
}

.intel-list,
.event-list,
.library-grid {
    display: grid;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.member-home,
.member-side {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

.empty-example {
    margin-top: 2rem;
}

.sample-actions {
    margin: 0.75rem 0 0;
}

.sample-actions button:disabled {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--line);
    cursor: not-allowed;
}

@media (min-width: 800px) {
    .library-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 960px) {
    .member-home {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

@media (max-width: 899px) {
    .filter-menu {
        margin: 0 0 1rem;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: var(--bg);
    }

    .filter-menu > summary {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 0.35rem 0.9rem;
        cursor: pointer;
        font-weight: 600;
        list-style: none;
    }

    .filter-menu > summary::-webkit-details-marker {
        display: none;
    }

    .filter-menu > summary::marker {
        content: '';
    }

    .filter-menu > .filter-sets {
        padding: 0 0.9rem 0.35rem;
    }
}

@media (min-width: 900px) {
    .filter-menu > .filter-sets {
        display: block !important;
    }
}

.member-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.member-header .chrome {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.75rem;
    height: 64px;
}

.primary-nav {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.15rem;
    min-width: 0;
}

.primary-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0.55rem;
    color: var(--ink);
    font-size: 16px;
    text-decoration: none;
    white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.primary-nav a[aria-current="page"] {
    font-weight: 600;
    text-decoration: none;
}

.primary-nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    right: 0.55rem;
    bottom: 8px;
    left: 0.55rem;
    height: 2px;
    background: var(--nav-active, #5800cc);
}

.header-tools {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.header-search {
    position: relative;
    width: 240px;
    flex: 0 0 240px;
}

.header-search input {
    width: 240px;
    height: 44px;
    min-height: 44px;
    padding-right: 1.75rem;
}

.header-search kbd {
    position: absolute;
    top: 50%;
    right: 0.7rem;
    color: var(--muted);
    font-family: var(--font-data);
    font-size: 12px;
    transform: translateY(-50%);
    pointer-events: none;
}

.header-search-toggle {
    display: none;
}

.bell {
    position: relative;
}

.bell-count {
    position: absolute;
    top: 4px;
    right: 2px;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: #5800cc;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.1rem;
    text-align: center;
    pointer-events: none;
}

.avatar-button {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
}

.avatar-button:hover {
    background: transparent;
    color: var(--ink);
}

.avatar-button span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
}

.notice-panel,
.account-panel {
    position: absolute;
    top: 100%;
    right: 1.25rem;
    z-index: 5;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(2, 3, 10, 0.12);
}

.notice-panel[hidden],
.account-panel[hidden] {
    display: none;
}

.notice-panel {
    width: 360px;
}

.account-panel {
    width: 280px;
    padding-bottom: 0.35rem;
}

.account-id {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.75rem;
    align-items: center;
    padding: 0.85rem 0.9rem 0.35rem;
}

.account-id .avatar {
    grid-row: 1 / span 2;
}

.account-id strong,
.account-id > span {
    display: block;
}

.account-id span {
    color: var(--muted);
    font-size: 14px;
}

.account-panel a,
.account-panel button,
.notice-panel button,
.notice-menu a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 0.35rem 0.9rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    text-align: left;
    text-decoration: none;
}

.account-panel a:hover,
.account-panel button:hover,
.notice-panel button:hover,
.notice-menu a:hover,
.account-panel a:focus-visible,
.account-panel button:focus-visible,
.notice-panel button:focus-visible,
.notice-menu a:focus-visible {
    background: var(--bg-soft);
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.account-panel form,
.notice-panel form,
.theme-row form {
    margin: 0;
}

.notice-menu {
    list-style: none;
    margin: 0;
    padding: 0.35rem 0;
}

.notice-menu a.is-unread {
    font-weight: 600;
}

.notice-empty {
    margin: 0;
    padding: 0.85rem 0.9rem;
    color: var(--muted);
}

.theme-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 44px;
    padding: 0 0.9rem;
    color: var(--ink);
    font-size: 16px;
}

.account-panel .theme-choice {
    width: auto;
    min-height: 36px;
    padding: 0 0.55rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    justify-content: center;
}

.account-panel .theme-choice[aria-checked="true"] {
    font-weight: 600;
    border-color: var(--nav-active, #5800cc);
}

.tab-bar {
    display: none;
}

.site-footer {
    margin: 0;
}

.site-footer .chrome {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.5rem;
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
}

.site-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--ink);
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

:root {
    --nav-active: #5800cc;
}

:root[data-theme="dark"] {
    --nav-active: #bd7aff;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --nav-active: #bd7aff;
    }
}

@media (max-width: 1279px) {
    .header-search {
        display: none;
    }

    .header-search-toggle {
        display: inline-flex;
    }

    body.search-open .header-search {
        display: block;
        position: absolute;
        top: 100%;
        right: 1rem;
        left: 1rem;
        width: auto;
        flex: none;
        z-index: 2;
    }

    body.search-open .header-search input {
        width: 100%;
    }
}

@media (max-width: 1023px) {
    .member-header .chrome {
        height: 56px;
    }

    .primary-nav {
        display: none;
    }

    html:has(.tab-bar) {
        scroll-padding-top: 56px;
        scroll-padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }

    body.has-member-nav {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }

    body.keyboard-open .tab-bar,
    body.sheet-open .tab-bar {
        display: none;
    }

    body.keyboard-open.has-member-nav,
    body.sheet-open.has-member-nav {
        padding-bottom: 0;
    }

    .tab-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 30;
        display: flex;
        height: calc(64px + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: var(--bg);
        border-top: 1px solid var(--line);
    }

    .tab-bar a {
        display: flex;
        flex: 1 1 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        min-width: 64px;
        min-height: 56px;
        color: var(--ink);
        font-size: 12px;
        line-height: 1.2;
        text-decoration: none;
    }

    .tab-bar svg {
        width: 24px;
        height: 24px;
    }

    .tab-bar a[aria-current="page"] {
        color: var(--nav-active, #5800cc);
        font-weight: 600;
    }

    .notice-panel,
    .account-panel {
        position: fixed;
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: auto;
        max-height: 80vh;
        overflow: auto;
        border-radius: 16px 16px 0 0;
    }
}

[x-cloak] {
    display: none !important;
}

.thread-head h1 {
    margin: 0;
}

.thread-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 16px;
    margin-top: 8px;
}

.thread-facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-width: 0;
    color: #6b5e80;
    font-size: 14px;
    line-height: 20px;
}

.thread-facts > * + *::before {
    content: "·";
    margin: 0 8px;
    color: #6b5e80;
}

.pin-label,
.follow-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pin-label .pin,
.follow-toggle .bell {
    width: 16px;
    height: 16px;
    color: #5800cc;
}

.follow-toggle .bell {
    width: 20px;
    height: 20px;
}

.thread-post {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    margin: 0;
    padding: 24px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #e8d2ff;
    border-radius: 0;
    scroll-margin-top: 5rem;
}

.thread-post:target {
    background: #f5ebff;
    animation: post-flash 2s ease;
}

@keyframes post-flash {
    from { background: #f5ebff; }
    to { background: transparent; }
}

.thread-post .post-meta {
    margin: 0 0 8px;
}

.thread-post .post-meta time {
    margin-left: auto;
}

.thread-post .op {
    font-family: var(--font-data);
    font-size: 12px;
    letter-spacing: 0.04em;
}

.thread-post .prose {
    max-width: 68ch;
    font-size: 18px;
    line-height: 29px;
}

.thread-post .post-actions {
    margin-top: 24px;
}

.reply-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 40px;
    color: #6b5e80;
    font-weight: 600;
    text-decoration: none;
}

.reply-link svg {
    width: 20px;
    height: 20px;
}

.more {
    position: relative;
}

.more-button,
.more-button:hover {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
}

.more-button svg {
    width: 20px;
    height: 20px;
}

.more-menu,
.heading-list {
    position: absolute;
    z-index: 8;
    top: calc(100% + 4px);
    right: 0;
    display: flex;
    flex-direction: column;
    min-width: 12rem;
    margin: 0;
    padding: 4px;
    border: 1px solid #e8d2ff;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(26, 0, 64, 0.12);
}

.heading-list {
    right: auto;
    left: 0;
}

.more-menu[hidden],
.heading-list[hidden],
.mod-panel[hidden],
.dropzone[hidden] {
    display: none;
}

.more-menu form {
    display: contents;
}

.more-menu [role="menuitem"],
.heading-list [role="menuitem"] {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
    font-weight: 500;
    text-align: left;
    text-decoration: none;
}

.more-menu [role="menuitem"]:hover,
.heading-list [role="menuitem"]:hover,
.more-menu [role="menuitem"]:focus-visible,
.heading-list [role="menuitem"]:focus-visible {
    background: #f5ebff;
    color: var(--ink);
}

#forum-main h2.replies-heading {
    margin-top: 32px;
    margin-bottom: 16px;
    font-size: 20px;
    line-height: 1.3;
}

.composer-label {
    margin: 32px 0 8px;
    font-size: 20px;
}

.composer textarea {
    min-height: 120px;
    max-height: 400px;
}

.tool-split {
    flex: 0 0 auto;
    width: 1px;
    height: 24px;
    margin: 0 4px;
    background: #e8d2ff;
}

.heading-menu {
    position: relative;
}

.tlp-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tlp-row select {
    flex: 1 1 auto;
}

.dropzone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 72px;
    margin-top: 12px;
    padding: 12px;
    border: 1.5px dashed #bd7aff;
    border-radius: 12px;
    color: #6b5e80;
}

.dropzone.is-drag {
    background: #f5ebff;
    color: var(--ink);
}

.dropzone .text-link,
.dropzone .text-link:hover {
    min-height: 40px;
    background: transparent;
    color: #5800cc;
}

.upload-progress {
    height: 2px;
    margin-top: 8px;
    background: #5800cc;
}

.file-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.file-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    height: 32px;
    padding: 0 4px 0 10px;
    border: 1px solid #e8d2ff;
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
}

.file-name {
    max-width: 24ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size,
.file-kind {
    color: #6b5e80;
    font-size: 12px;
}

.file-chip button,
.file-chip button:hover {
    width: 24px;
    height: 24px;
    min-height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
}

.composer-submit {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.toast {
    position: fixed;
    z-index: 40;
    left: 16px;
    bottom: 16px;
    max-width: min(24rem, calc(100% - 32px));
    margin: 0;
    padding: 12px 16px;
    border-radius: 12px;
    background: #1a0040;
    color: #fff;
}

:root[data-theme="dark"] .thread-post {
    border-bottom-color: rgba(189, 122, 255, 0.35);
}

:root[data-theme="dark"] .thread-facts,
:root[data-theme="dark"] .quote,
:root[data-theme="dark"] .reply-link {
    color: #e6e2f2;
}

:root[data-theme="dark"] .more-menu,
:root[data-theme="dark"] .heading-list,
:root[data-theme="dark"] .composer-tools .tip,
:root[data-theme="dark"] .file-chip {
    background: #070815;
    border-color: rgba(189, 122, 255, 0.35);
    color: #fff;
}

:root[data-theme="dark"] .like-button[aria-pressed="true"] .thumb {
    fill: #bd7aff;
    color: #bd7aff;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .thread-post {
        border-bottom-color: rgba(189, 122, 255, 0.35);
    }

    :root:not([data-theme="light"]) .thread-facts,
    :root:not([data-theme="light"]) .quote,
    :root:not([data-theme="light"]) .reply-link {
        color: #e6e2f2;
    }

    :root:not([data-theme="light"]) .more-menu,
    :root:not([data-theme="light"]) .heading-list,
    :root:not([data-theme="light"]) .file-chip {
        background: #070815;
        border-color: rgba(189, 122, 255, 0.35);
        color: #fff;
    }
}

@media (pointer: coarse) {
    .composer-tools button,
    .like-button,
    .more-button,
    .follow-toggle {
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
    }

    .follow-toggle {
        width: auto;
    }

    .file-chip button {
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
    }
}

@media (max-width: 767px) {
    .thread-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .thread-post {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 12px;
    }

    .thread-post > .avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .thread-post .prose {
        font-size: 16px;
        line-height: 26px;
    }

    .composer-submit .button {
        width: 100%;
    }

    .toast {
        right: 16px;
        bottom: 80px;
        left: 16px;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .thread-post:target {
        animation: none;
        background: transparent;
    }
}
