:root {
    --s2-bg: #030705;
    --s2-panel: #07100b;
    --s2-panel-raised: #0a1510;
    --s2-panel-soft: #0c1812;
    --s2-line: rgba(157, 181, 163, .16);
    --s2-line-strong: rgba(201, 166, 83, .42);
    --s2-gold: #d1ad55;
    --s2-gold-soft: rgba(209, 173, 85, .12);
    --s2-green: #54d785;
    --s2-red: #e55f5f;
    --s2-text: #eef1eb;
    --s2-muted: #89958c;
    --s2-dim: #5d6961;
    --s2-mono: "Share Tech Mono", "Roboto Mono", "Courier New", monospace;
}

body:has(.s2-forum) { background: var(--s2-bg); }
.storm-admin-page-body:has(.s2-forum) { padding: 0; }

.s2-forum,
.s2-forum * { box-sizing: border-box; }

.s2-forum [hidden],
.s2-composer [hidden] { display: none !important; }

.s2-forum {
    min-height: calc(100vh - 72px);
    color: var(--s2-text);
    background:
        linear-gradient(rgba(137, 149, 140, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(137, 149, 140, .035) 1px, transparent 1px),
        radial-gradient(circle at 74% 12%, rgba(27, 79, 47, .22), transparent 30%),
        var(--s2-bg);
    background-size: 54px 54px, 54px 54px, auto, auto;
    padding: 30px clamp(16px, 3vw, 48px) 70px;
    font-family: Inter, "Noto Sans Thai", sans-serif;
}

.s2-forum button,
.s2-forum input,
.s2-forum select,
.s2-forum textarea { font: inherit; }

.s2-forum button,
.s2-forum select { cursor: pointer; }

/* style.css uses the bare header element for the public navigation bar. */
.s2-forum header {
    position: static;
    inset: auto;
    width: auto;
    height: auto;
    z-index: auto;
    background: transparent;
    box-shadow: none;
}

.s2-forum__frame {
    width: min(1540px, 100%);
    margin: 0 auto;
    border-top: 1px solid var(--s2-line-strong);
    border-bottom: 1px solid var(--s2-line-strong);
    background: rgba(3, 8, 5, .82);
}

.s2-forum__classification {
    min-height: 37px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--s2-line);
    color: var(--s2-gold);
    font: 700 8px/1.3 var(--s2-mono);
    letter-spacing: .17em;
}

.s2-forum__classification i {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--s2-green);
    box-shadow: 0 0 10px var(--s2-green);
}

.s2-forum__hero {
    min-height: 185px;
    display: grid;
    grid-template-columns: 92px minmax(340px, 1fr) auto minmax(160px, 210px);
    border-bottom: 1px solid var(--s2-line);
}

.s2-forum__section-number {
    display: grid;
    place-items: center;
    border-right: 1px solid var(--s2-line);
    color: rgba(209, 173, 85, .23);
    font-size: 54px;
    font-weight: 800;
    letter-spacing: -.06em;
}

.s2-forum__hero-copy {
    align-self: center;
    padding: 32px clamp(25px, 4vw, 55px);
}

.s2-forum__hero-copy > p,
.s2-panel-heading span,
.s2-forum__feed-title span,
.s2-composer header span,
.s2-composer label > span,
.s2-replies header > span {
    margin: 0;
    color: var(--s2-gold);
    font: 700 8px/1.35 var(--s2-mono);
    letter-spacing: .16em;
    text-transform: uppercase;
}

.s2-forum__hero-copy h1 {
    margin: 8px 0 0;
    font-size: clamp(34px, 4.2vw, 65px);
    line-height: .95;
    letter-spacing: -.055em;
    text-transform: uppercase;
}

.s2-forum__hero-copy h1 span { color: var(--s2-gold); }

.s2-forum__hero-note {
    max-width: 720px;
    margin-top: 18px;
    color: #9da79f;
    font-size: 13px;
    line-height: 1.65;
}

.s2-forum__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(76px, 1fr));
    margin: 0;
    border-left: 1px solid var(--s2-line);
}

.s2-forum__stats div {
    min-width: 86px;
    padding: 25px 17px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--s2-line);
}

.s2-forum__stats dt,
.s2-forum__hero-action small {
    color: var(--s2-dim);
    font: 700 7px/1.4 var(--s2-mono);
    letter-spacing: .13em;
}

.s2-forum__stats dd {
    margin: 8px 0 0;
    color: var(--s2-text);
    font: 700 27px/1 Inter, sans-serif;
}

.s2-forum__hero-action {
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
}

.s2-button {
    min-height: 39px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--s2-line-strong);
    border-radius: 1px;
    background: transparent;
    color: var(--s2-text);
    font: 700 9px/1 var(--s2-mono);
    letter-spacing: .11em;
    text-decoration: none;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.s2-button--primary { background: var(--s2-gold); color: #090b08; border-color: var(--s2-gold); }
.s2-button--primary:hover { background: #e3c36e; border-color: #e3c36e; color: #050705; }

.s2-forum__workspace {
    min-height: 640px;
    display: grid;
    grid-template-columns: minmax(205px, 238px) minmax(430px, 1fr) minmax(225px, 280px);
}

.s2-forum__channels,
.s2-forum__brief { min-width: 0; background: rgba(6, 13, 9, .75); }
.s2-forum__channels { border-right: 1px solid var(--s2-line); display: flex; flex-direction: column; }
.s2-forum__brief { border-left: 1px solid var(--s2-line); }

.s2-panel-heading {
    min-height: 57px;
    padding: 13px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    border-bottom: 1px solid var(--s2-line);
}

.s2-panel-heading strong {
    font-size: 11px;
    line-height: 1.3;
    letter-spacing: .025em;
}

.s2-channel-list { padding: 10px 8px; display: grid; gap: 2px; }
.s2-channel-list button {
    width: 100%;
    min-height: 42px;
    padding: 0 10px;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border: 0;
    border-left: 2px solid transparent;
    background: transparent;
    color: #7e8a81;
    text-align: left;
    font-size: 11px;
}

.s2-channel-list button i { color: #5d6961; text-align: center; }
.s2-channel-list button b { color: #566159; font: 700 9px var(--s2-mono); }
.s2-channel-list button:hover { background: rgba(209, 173, 85, .055); color: var(--s2-text); }
.s2-channel-list button.is-active { border-left-color: var(--s2-gold); background: var(--s2-gold-soft); color: var(--s2-text); }
.s2-channel-list button.is-active i { color: var(--s2-gold); }

.s2-forum__identity {
    min-height: 67px;
    margin-top: auto;
    padding: 12px;
    display: grid;
    grid-template-columns: 35px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--s2-line);
    background: rgba(0, 0, 0, .2);
}

.s2-forum__identity img,
.s2-forum__guest-mark { width: 35px; height: 35px; object-fit: cover; border: 1px solid var(--s2-line-strong); }
.s2-forum__guest-mark { display: grid; place-items: center; color: var(--s2-gold); }
.s2-forum__identity div { min-width: 0; }
.s2-forum__identity strong,
.s2-forum__identity span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s2-forum__identity strong { font-size: 9px; }
.s2-forum__identity span { margin-top: 3px; color: var(--s2-dim); font: 700 7px var(--s2-mono); }
.s2-forum__identity > i { color: var(--s2-green); font-size: 6px; }

.s2-forum__feed { min-width: 0; background: rgba(3, 8, 5, .5); }
.s2-forum__toolbar { min-height: 57px; display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--s2-line); }

.s2-forum__search { min-width: 0; padding: 0 15px; display: flex; align-items: center; gap: 10px; border-right: 1px solid var(--s2-line); }
.s2-forum__search i { color: var(--s2-dim); font-size: 11px; }
.s2-forum__search input { min-width: 0; width: 100%; height: 100%; border: 0; outline: 0; background: transparent; color: var(--s2-text); font-size: 11px; }
.s2-forum__search input::placeholder { color: #526057; }
.s2-forum__search:focus-within { box-shadow: inset 0 -1px var(--s2-gold); }
.s2-forum__search kbd { padding: 3px 6px; border: 1px solid var(--s2-line); color: var(--s2-dim); font: 8px var(--s2-mono); }

.s2-forum__sort { padding: 0 13px; display: flex; align-items: center; gap: 8px; }
.s2-forum__sort span { color: var(--s2-dim); font: 700 7px var(--s2-mono); letter-spacing: .12em; }
.s2-forum__sort select { border: 0; outline: 0; background: var(--s2-bg); color: #9ca69e; font-size: 9px; }

.s2-forum__feed-title {
    min-height: 72px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--s2-line);
}

.s2-forum__feed-title h2 { margin: 4px 0 0; font-size: 18px; letter-spacing: -.025em; }
.s2-forum__feed-title p { margin: 0; color: var(--s2-green); font: 700 7px var(--s2-mono); letter-spacing: .13em; }
.s2-forum__feed-title p i { margin-right: 5px; font-size: 5px; }

.s2-thread-list { padding: 8px 0 30px; }
.s2-forum__loading,
.s2-forum__empty { min-height: 300px; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--s2-dim); font-size: 11px; text-align: center; }
.s2-forum__loading i { color: var(--s2-gold); }

.s2-thread-card {
    position: relative;
    width: 100%;
    min-height: 114px;
    padding: 17px 18px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 14px;
    border: 0;
    border-bottom: 1px solid var(--s2-line);
    background: transparent;
    color: inherit;
    text-align: left;
    transition: background .14s ease;
}

.s2-thread-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; background: transparent; }
.s2-thread-card:hover { background: rgba(209, 173, 85, .045); }
.s2-thread-card:hover::before,
.s2-thread-card.is-pinned::before { background: var(--s2-gold); }
.s2-thread-card__mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--s2-line); color: var(--s2-gold); background: var(--s2-panel); }
.s2-thread-card__content { min-width: 0; }
.s2-thread-card__eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--s2-dim); font: 700 7px var(--s2-mono); letter-spacing: .1em; }
.s2-thread-card__eyebrow b { color: var(--s2-gold); }
.s2-discord-state { color: #7b85d8; }
.s2-discord-state.is-synced { color: #6edb91; }
.s2-discord-state.is-failed { color: #e07171; }
.s2-discord-state.is-pending { color: #b8a568; }
.s2-thread-card__content h3 { margin: 7px 0 5px; color: var(--s2-text); font-size: 14px; line-height: 1.35; letter-spacing: -.015em; }
.s2-thread-card__content > p { margin: 0; display: -webkit-box; overflow: hidden; color: #77837a; font-size: 10px; line-height: 1.55; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.s2-thread-card__tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.s2-thread-card__tags span,
.s2-thread-post__tags span { padding: 3px 6px; border: 1px solid rgba(209, 173, 85, .25); color: #af9a62; background: rgba(209, 173, 85, .05); font: 700 7px var(--s2-mono); letter-spacing: .08em; }
.s2-thread-card__activity { min-width: 96px; align-self: center; display: grid; grid-template-columns: repeat(2, auto); gap: 8px 13px; color: var(--s2-dim); font: 700 8px var(--s2-mono); text-align: right; }
.s2-thread-card__activity i { margin-right: 4px; color: #69756c; }
.s2-thread-card__activity time { grid-column: 1 / -1; font-size: 7px; }
.s2-thread-card.is-restricted { background: linear-gradient(90deg, rgba(209, 173, 85, .025), transparent 48%); }
.s2-thread-card.is-restricted .s2-thread-card__mark { color: var(--s2-gold); border-color: rgba(209, 173, 85, .24); }
.s2-thread-card.is-restricted .s2-thread-card__content > p i { margin-right: 6px; color: var(--s2-gold); }
.s2-thread-card.is-restricted .s2-thread-card__activity time { color: #9c8750; white-space: nowrap; }

.s2-protocol { margin: 0; padding: 0; list-style: none; }
.s2-protocol li { padding: 18px 15px; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; border-bottom: 1px solid var(--s2-line); }
.s2-protocol li > b { color: var(--s2-gold); font: 700 8px var(--s2-mono); }
.s2-protocol strong { display: block; font-size: 10px; line-height: 1.4; }
.s2-protocol span { display: block; margin-top: 6px; color: #707c73; font-size: 9px; line-height: 1.6; }
.s2-forum__classification-key { margin: 16px; padding: 14px; border: 1px solid rgba(84, 215, 133, .28); background: rgba(84, 215, 133, .035); }
.s2-forum__classification-key > span { color: var(--s2-dim); font: 700 7px var(--s2-mono); letter-spacing: .13em; }
.s2-forum__classification-key strong { display: block; margin-top: 6px; color: var(--s2-green); font: 700 11px var(--s2-mono); }
.s2-forum__classification-key p { margin: 10px 0 0; color: #718078; font-size: 9px; line-height: 1.65; }

.s2-thread-view__toolbar { min-height: 57px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--s2-line); }
.s2-thread-view__toolbar button { min-height: 56px; padding: 0 15px; border: 0; border-right: 1px solid var(--s2-line); background: transparent; color: #8d988f; font: 700 8px var(--s2-mono); letter-spacing: .1em; }
.s2-thread-view__toolbar button i { margin-right: 7px; color: var(--s2-gold); }
.s2-thread-view__toolbar div { display: flex; }
.s2-thread-view__toolbar .s2-thread-view__actions { margin-left: auto; }
.s2-thread-view__toolbar div button { border-right: 0; border-left: 1px solid var(--s2-line); }
.s2-thread-view__toolbar button:hover { background: var(--s2-gold-soft); color: var(--s2-text); }
.s2-thread-view__toolbar button.is-danger i { color: var(--s2-red); }

.s2-thread-post { padding: clamp(22px, 4vw, 45px); border-bottom: 1px solid var(--s2-line); }
.s2-thread-post__meta { display: flex; align-items: center; gap: 10px; }
.s2-thread-post__meta img,
.s2-reply__author img { width: 36px; height: 36px; border: 1px solid var(--s2-line-strong); object-fit: cover; }
.s2-thread-post__meta strong,
.s2-reply__author strong { display: block; font-size: 10px; }
.s2-thread-post__meta span,
.s2-reply__author span { display: block; margin-top: 3px; color: var(--s2-dim); font: 700 7px var(--s2-mono); }
.s2-thread-post h2 { margin: 24px 0 13px; font-size: clamp(25px, 3vw, 38px); line-height: 1.1; letter-spacing: -.045em; }
.s2-thread-post__tags { display: flex; flex-wrap: wrap; gap: 5px; }
.s2-thread-post__body,
.s2-reply__body { margin-top: 22px; color: #b1bab3; font-size: 13px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.s2-thread-post__footer { margin-top: 28px; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--s2-line); color: var(--s2-dim); font: 700 8px var(--s2-mono); }
.s2-thread-post__ack { min-height: 32px; padding: 0 11px; border: 1px solid var(--s2-line); background: transparent; color: #7d8980; font: 700 8px var(--s2-mono); }
.s2-thread-post__ack.is-active { color: var(--s2-green); border-color: rgba(84, 215, 133, .38); background: rgba(84, 215, 133, .055); }
.s2-thread-post__actions { display: flex; align-items: center; gap: 8px; }
.s2-thread-post__actions > a,
.s2-thread-post__actions > .s2-discord-state { min-height: 32px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(123, 133, 216, .35); background: rgba(88, 101, 242, .06); color: #929cf0; font: 700 8px var(--s2-mono); text-decoration: none; }
.s2-thread-post__actions > a:hover { border-color: #929cf0; color: #bac1ff; }
.s2-thread-post--restricted { min-height: 430px; display: flex; flex-direction: column; justify-content: center; }
.s2-restricted-record__classification { margin-bottom: 18px; color: #9b8858; font: 700 8px var(--s2-mono); letter-spacing: .14em; }
.s2-restricted-record__classification i { width: 6px; height: 6px; margin-right: 7px; display: inline-block; border-radius: 50%; background: var(--s2-red); box-shadow: 0 0 10px rgba(218, 78, 78, .5); }
.s2-thread-post--restricted > h2 { margin-top: 0; }
.s2-restricted-record { margin-top: 12px; padding: clamp(22px, 4vw, 38px); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; border: 1px solid rgba(209, 173, 85, .28); background: repeating-linear-gradient(-45deg, rgba(209, 173, 85, .025) 0 8px, transparent 8px 16px); }
.s2-restricted-record__icon { width: 62px; height: 62px; display: grid; place-items: center; border: 1px solid rgba(209, 173, 85, .34); color: var(--s2-gold); background: rgba(209, 173, 85, .045); font-size: 19px; }
.s2-restricted-record small { color: var(--s2-gold); font: 700 8px var(--s2-mono); letter-spacing: .13em; }
.s2-restricted-record h3 { margin: 7px 0 6px; color: var(--s2-text); font-size: 20px; }
.s2-restricted-record p { max-width: 630px; margin: 0; color: #7f8a82; font-size: 11px; line-height: 1.7; }
.s2-restricted-record > a { min-height: 42px; padding: 0 15px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--s2-gold); color: #080b08; background: var(--s2-gold); font: 800 8px var(--s2-mono); text-decoration: none; white-space: nowrap; }
.s2-restricted-record > a:hover { filter: brightness(1.08); }

.s2-replies > header { padding: 20px clamp(22px, 4vw, 45px) 12px; }
.s2-replies h3 { margin: 5px 0 0; font-size: 18px; }
.s2-reply { padding: 22px clamp(22px, 4vw, 45px); display: grid; grid-template-columns: 135px minmax(0, 1fr); gap: 24px; border-top: 1px solid var(--s2-line); }
.s2-reply__author { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: start; gap: 9px; }
.s2-reply__body { margin: 0; }
.s2-reply__content { min-width: 0; }
.s2-attachments { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.s2-attachments a { position: relative; min-height: 130px; overflow: hidden; border: 1px solid var(--s2-line-strong); background: #030704; color: var(--s2-text); text-decoration: none; }
.s2-attachments img { width: 100%; height: 100%; min-height: 130px; max-height: 420px; display: block; object-fit: cover; transition: transform .25s ease, opacity .25s ease; }
.s2-attachments span { position: absolute; right: 0; bottom: 0; left: 0; padding: 8px 10px; overflow: hidden; background: linear-gradient(transparent, rgba(0, 0, 0, .9)); font: 700 8px var(--s2-mono); text-overflow: ellipsis; white-space: nowrap; }
.s2-attachments i { margin-right: 5px; color: #929cf0; }
.s2-attachments a:hover img { transform: scale(1.025); opacity: .86; }
.s2-replies__empty { margin: 0; padding: 30px clamp(22px, 4vw, 45px); color: var(--s2-dim); font-size: 11px; border-top: 1px solid var(--s2-line); }

.s2-reply-form { padding: 24px clamp(22px, 4vw, 45px); border-top: 1px solid var(--s2-line); background: rgba(209, 173, 85, .025); }
.s2-reply-form > label { display: block; margin-bottom: 9px; color: var(--s2-gold); font: 700 8px var(--s2-mono); letter-spacing: .12em; }
.s2-reply-form textarea { width: 100%; resize: vertical; padding: 13px; border: 1px solid var(--s2-line); border-radius: 0; outline: 0; background: #050b07; color: var(--s2-text); font-size: 12px; line-height: 1.6; }
.s2-reply-form textarea:focus { border-color: var(--s2-gold); }
.s2-reply-form > div { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.s2-reply-form > div > span { color: var(--s2-dim); font-size: 8px; }
.s2-thread-view__signin { margin: 20px; min-height: 50px; padding: 12px 15px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--s2-line); color: #7b877e; font-size: 10px; }
.s2-thread-view__signin i { color: var(--s2-gold); }
.s2-thread-view__signin a { margin-left: auto; color: var(--s2-gold); font: 700 8px var(--s2-mono); }

.s2-composer { position: fixed; inset: 0; width: min(900px, calc(100vw - 48px)); max-width: none; max-height: min(760px, calc(100dvh - 48px)); margin: auto; padding: 0; overflow: hidden; border: 1px solid var(--s2-line-strong); border-radius: 1px; background: var(--s2-panel); color: var(--s2-text); box-shadow: 0 28px 90px rgba(0, 0, 0, .65); }
.s2-composer::backdrop { background: rgba(0, 0, 0, .78); backdrop-filter: blur(3px); }
.s2-composer__shell { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: 100%; max-height: min(758px, calc(100dvh - 50px)); overflow: hidden; }
.s2-composer header { min-height: 75px; padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; border-top: 2px solid var(--s2-gold); border-bottom: 1px solid var(--s2-line); }
.s2-composer h2 { margin: 5px 0 0; font-size: 21px; letter-spacing: -.03em; }
.s2-composer header button { width: 38px; height: 38px; border: 1px solid var(--s2-line); background: transparent; color: var(--s2-muted); }
.s2-composer__body { min-height: 0; padding: 20px; display: grid; gap: 16px; overflow: auto; scrollbar-gutter: stable; }
.s2-composer__body label { display: grid; gap: 7px; }
.s2-composer label small { color: var(--s2-dim); font-size: 7px; letter-spacing: 0; }
.s2-composer input,
.s2-composer select,
.s2-composer textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--s2-line); border-radius: 0; outline: 0; background: #040a06; color: var(--s2-text); font-size: 11px; }
.s2-composer textarea { resize: vertical; line-height: 1.65; }
.s2-composer input:focus,
.s2-composer select:focus,
.s2-composer textarea:focus { border-color: var(--s2-gold); }
.s2-composer__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.s2-composer footer { min-height: 70px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--s2-line); }
.s2-composer footer p { margin: 0; color: var(--s2-dim); font-size: 8px; }
.s2-composer footer p i { margin-right: 7px; color: var(--s2-gold); }
.s2-composer footer div { display: flex; gap: 8px; }
.s2-composer footer button { min-height: 38px; padding: 0 14px; border: 1px solid var(--s2-line); background: transparent; color: var(--s2-muted); font: 700 8px var(--s2-mono); }
.s2-composer footer .s2-button--primary { background: var(--s2-gold); color: #080b08; border-color: var(--s2-gold); }

@media (max-width: 1180px) {
    .s2-forum__hero { grid-template-columns: 74px minmax(300px, 1fr) minmax(160px, 200px); }
    .s2-forum__stats { grid-row: 2; grid-column: 2 / 3; border-top: 1px solid var(--s2-line); border-left: 0; }
    .s2-forum__hero-action { grid-row: 2; grid-column: 3; border-top: 1px solid var(--s2-line); }
    .s2-forum__workspace { grid-template-columns: 210px minmax(390px, 1fr); }
    .s2-forum__brief { display: none; }
}

@media (max-width: 780px) {
    .s2-forum { padding: 12px 0 40px; }
    .s2-forum__classification { padding: 0 12px; }
    .s2-forum__classification span:last-child { display: none; }
    .s2-forum__hero { grid-template-columns: 54px minmax(0, 1fr); }
    .s2-forum__hero-copy { padding: 25px 18px; }
    .s2-forum__hero-copy h1 { font-size: clamp(31px, 9vw, 48px); }
    .s2-forum__stats { grid-row: 2; grid-column: 1 / -1; }
    .s2-forum__hero-action { grid-row: 3; grid-column: 1 / -1; padding: 14px; border-top: 1px solid var(--s2-line); }
    .s2-forum__workspace { display: block; }
    .s2-forum__channels { border-right: 0; border-bottom: 1px solid var(--s2-line); }
    .s2-forum__channels .s2-panel-heading,
    .s2-forum__identity { display: none; }
    .s2-channel-list { padding: 8px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
    .s2-channel-list::-webkit-scrollbar { display: none; }
    .s2-channel-list button { flex: 0 0 auto; width: auto; min-height: 36px; padding: 0 11px; display: flex; border: 1px solid var(--s2-line); border-left-width: 1px; }
    .s2-channel-list button.is-active { border-color: var(--s2-gold); }
    .s2-channel-list button b { display: none; }
    .s2-forum__toolbar { grid-template-columns: 1fr; }
    .s2-forum__sort { min-height: 40px; border-top: 1px solid var(--s2-line); }
    .s2-forum__feed-title { min-height: 63px; }
    .s2-thread-card { grid-template-columns: 36px minmax(0, 1fr); padding: 15px 13px; }
    .s2-thread-card__mark { width: 36px; height: 36px; }
    .s2-thread-card__activity { grid-column: 2; min-width: 0; display: flex; text-align: left; }
    .s2-thread-card__activity time { margin-left: auto; }
    .s2-thread-view__toolbar span { display: none; }
    .s2-thread-post { padding: 24px 18px; }
    .s2-thread-post--restricted { min-height: 360px; }
    .s2-restricted-record { grid-template-columns: 1fr; }
    .s2-restricted-record__icon { width: 52px; height: 52px; }
    .s2-restricted-record > a { justify-content: center; }
    .s2-thread-post__footer { align-items: flex-start; flex-direction: column; }
    .s2-reply { grid-template-columns: 1fr; gap: 14px; padding: 20px 18px; }
    .s2-reply-form { padding: 20px 18px; }
    .s2-reply-form > div { align-items: stretch; flex-direction: column; }
    .s2-composer__row { grid-template-columns: 1fr; }
    .s2-composer { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
    .s2-composer__shell { max-height: calc(100dvh - 22px); }
    .s2-composer footer { align-items: stretch; flex-direction: column; }
    .s2-composer footer div { display: grid; grid-template-columns: 1fr 1.4fr; }
}

@media (prefers-reduced-motion: reduce) {
    .s2-forum *, .s2-forum *::before, .s2-forum *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
