/* Signal Archive forum category and publication detail pages. */
.sa-forum-page {
    width: min(100%, 1080px);
    margin: 0 auto;
    color: var(--sa-ink);
}

.sa-thread-page .forum-section {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.sa-forum-crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 13px 0 11px;
    border-bottom: 1px solid var(--sa-line-strong);
    color: var(--sa-muted);
    font-family: var(--sa-font-mono);
    font-size: .62rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sa-forum-crumb a,
.sa-forum-crumb span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-forum-crumb a:hover { color: var(--sa-red); }
.sa-forum-kicker { margin: 0 0 8px; color: var(--sa-red); font-family: var(--sa-font-mono); font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; }

.sa-category-head {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr) 144px;
    min-height: 230px;
    border-bottom: 3px solid var(--sa-inkline);
}

.sa-category-head__code {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 18px 20px 0;
    border-right: 1px solid var(--sa-line-strong);
    font-family: var(--sa-font-mono);
}

.sa-category-head__code span { color: var(--sa-muted); font-size: .6rem; letter-spacing: .2em; }
.sa-category-head__code strong { color: var(--sa-red); font-size: 2.5rem; font-weight: 500; line-height: 1; }
.sa-category-head__copy { display: flex; flex-direction: column; justify-content: center; padding: 30px clamp(22px, 5vw, 60px); }
.sa-category-head__copy h1 { max-width: 14ch; font-size: clamp(2.2rem, 6vw, 4.8rem); line-height: 1; overflow-wrap: anywhere; }
.sa-category-head__description { max-width: 56ch; margin: 18px 0 0; color: var(--sa-muted); font-size: .9rem; }
.sa-category-head__measure { display: flex; flex-direction: column; justify-content: flex-end; padding: 20px 0 20px 20px; border-left: 1px solid var(--sa-line-strong); font-family: var(--sa-font-mono); }
.sa-category-head__measure span { color: var(--sa-muted); font-size: .6rem; letter-spacing: .18em; }
.sa-category-head__measure strong { margin-top: auto; font-size: 3.3rem; font-weight: 500; line-height: 1; }
.sa-category-head__measure small { margin-top: 7px; color: var(--sa-muted); font-size: .62rem; }

.sa-category-register { margin-top: 22px; }
.sa-register-bar { display: grid; grid-template-columns: minmax(150px, 1fr) auto auto; align-items: stretch; min-height: 52px; border-top: 2px solid var(--sa-inkline); border-bottom: 1px solid var(--sa-line-strong); }
.sa-register-bar > div:first-child { display: flex; align-items: center; gap: 12px; padding-right: 16px; }
.sa-register-bar__index { color: var(--sa-red); font-family: var(--sa-font-mono); font-size: .72rem; }
.sa-register-bar h2 { font-size: 1rem; }
.sa-sort-control { display: flex; align-items: stretch; border-left: 1px solid var(--sa-line-strong); }
.sa-sort-control .sort-btn { min-width: 74px; padding: 0 12px; border: 0; border-right: 1px solid var(--sa-line); background: transparent; color: var(--sa-muted); font-size: .74rem; cursor: pointer; }
.sa-sort-control .sort-btn:hover { color: var(--sa-ink); background: var(--sa-surface-2); }
.sa-sort-control .sort-btn.active { color: #fff; background: var(--sa-ink); }
.sa-register-create { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; background: var(--sa-red); color: #fff !important; font-size: .76rem; font-weight: 600; }
.sa-register-create:hover { background: var(--sa-red-deep); }

.sa-thread-register { margin: 0; padding: 0; list-style: none; }
.sa-thread-register .sa-thread-row { margin: 0 !important; padding: 0 !important; border: 0; border-bottom: 1px solid var(--sa-line); border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
.sa-thread-register .sa-thread-row__link { display: grid; grid-template-columns: 56px 42px minmax(0, 1fr) 94px; align-items: center; gap: 16px; min-height: 104px; padding: 13px 0; color: var(--sa-ink); }
.sa-thread-row__link:hover { background: var(--sa-surface-2); color: var(--sa-ink); }
.sa-thread-row__number { align-self: stretch; display: flex; align-items: flex-start; justify-content: center; padding-top: 8px; border-right: 1px solid var(--sa-line); color: var(--sa-faint); font-family: var(--sa-font-mono); font-size: .72rem; }
.sa-thread-row__link:hover .sa-thread-row__number { color: var(--sa-red); }
.sa-thread-row__avatar { display: block; width: 36px; height: 36px; overflow: hidden; border: 1px solid var(--sa-line-strong); background: var(--sa-surface); }
.sa-thread-row__avatar img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3); }
.sa-thread-row__content { min-width: 0; }
.sa-thread-row__title { display: block; font-family: var(--sa-font-display); font-size: 1.08rem; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.sa-thread-row__excerpt { display: -webkit-box; margin-top: 4px; overflow: hidden; color: var(--sa-muted); font-size: .76rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.sa-thread-row__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; color: var(--sa-muted); font-family: var(--sa-font-mono); font-size: .58rem; letter-spacing: .03em; }
.sa-thread-row__status { align-self: stretch; display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding-right: 10px; border-left: 1px solid var(--sa-line); }
.sa-thread-row__status .hot-badge,
.sa-thread-row__status .new-badge,
.sa-article__flags span { display: inline-flex; align-items: center; gap: 5px; padding: 2px 6px; border: 1px solid var(--sa-line-strong); color: var(--sa-muted); font-family: var(--sa-font-mono); font-size: .54rem; letter-spacing: .08em; }
.sa-thread-row__status .hot-badge,
.sa-article__flags .hot-badge { border-color: var(--sa-red); color: var(--sa-red); }
.sa-thread-row__status .new-badge,
.sa-article__flags .new-badge { border-color: var(--sa-green); color: var(--sa-green); }
.sa-thread-row__status i { margin-left: 4px; color: var(--sa-faint); font-size: .72rem; }
.sa-category-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 2px solid var(--sa-inkline); color: var(--sa-muted); font-family: var(--sa-font-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.sa-category-foot a { font-weight: 600; }

.sa-forum-empty { display: flex; align-items: center; gap: 24px; min-height: 150px; padding: 24px 0; border-bottom: 1px solid var(--sa-line-strong); }
.sa-forum-empty__mark { color: var(--sa-line-strong); font-family: var(--sa-font-mono); font-size: 3rem; line-height: 1; }
.sa-forum-empty h3 { font-size: 1.15rem; }
.sa-forum-empty p { margin: 4px 0 0; color: var(--sa-muted); font-size: .8rem; }
.sa-forum-empty .sa-register-create { margin-left: auto; }

.sa-article { border-bottom: 3px solid var(--sa-inkline); }
.sa-article__header { display: grid; grid-template-columns: 126px minmax(0, 1fr); border-bottom: 1px solid var(--sa-line-strong); }
.sa-article__folio { grid-row: 1 / span 2; display: flex; flex-direction: column; justify-content: space-between; min-height: 270px; padding: 24px 20px 22px 0; border-right: 1px solid var(--sa-line-strong); font-family: var(--sa-font-mono); }
.sa-article__folio span { max-width: 8ch; color: var(--sa-red); font-size: .6rem; letter-spacing: .2em; line-height: 1.5; }
.sa-article__folio strong { color: var(--sa-faint); font-size: 1rem; font-weight: 500; letter-spacing: .08em; }
.sa-article__title-block { display: flex; flex-direction: column; justify-content: center; min-height: 195px; padding: 28px clamp(24px, 5vw, 64px); border-bottom: 1px solid var(--sa-line); }
.sa-article__title-block h1 { max-width: 19ch; font-size: clamp(2.05rem, 5.3vw, 4.25rem); line-height: 1.05; overflow-wrap: anywhere; }
.sa-article__title-block .pinned-icon { margin-right: 8px; color: var(--sa-red); font-size: .42em; vertical-align: middle; }
.sa-article__flags { display: flex; flex-wrap: wrap; gap: 6px; min-height: 20px; margin-bottom: 14px; }
.sa-article__flags .pinned-badge { border-color: var(--sa-red); color: var(--sa-red); }
.sa-article__byline { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; min-height: 75px; }
.sa-author-line { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 12px 24px; }
.sa-author-line .author-avatar { display: block; width: 36px; height: 36px; object-fit: cover; border: 1px solid var(--sa-line-strong); }
.sa-author-line .author-details { display: flex; flex-direction: column; min-width: 0; }
.sa-author-line .author-name { font-size: .84rem; font-weight: 700; }
.sa-author-line .publish-time { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; color: var(--sa-muted); font-family: var(--sa-font-mono); font-size: .58rem; }
.edited-label { color: var(--sa-faint); font-size: .92em; }
.private-chat-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-left: 4px; border: 1px solid var(--sa-line-strong); background: transparent; color: var(--sa-muted); cursor: pointer; }
.private-chat-btn:hover { border-color: var(--sa-red); color: var(--sa-red); }
.private-chat-btn.small { width: 28px; height: 28px; margin-left: auto; }
.sa-article__stats { display: grid; grid-template-columns: repeat(3, minmax(68px, auto)); }
.sa-article__stats .stat-item { display: flex; flex-direction: column; justify-content: center; min-width: 82px; margin: 0; padding: 10px 16px; border: 0; border-left: 1px solid var(--sa-line); border-radius: 0; background: transparent; box-shadow: none; color: var(--sa-ink); font-family: var(--sa-font-mono); font-size: .72rem; }
.sa-article__stats small { color: var(--sa-muted); font-size: .5rem; letter-spacing: .12em; }

.sa-article__body-wrap { display: grid; grid-template-columns: 126px minmax(0, 1fr); }
.sa-article__body-wrap::before { content: "01\A ARTICLE"; padding: 30px 20px 0 0; border-right: 1px solid var(--sa-line-strong); color: var(--sa-red); font-family: var(--sa-font-mono); font-size: .6rem; line-height: 1.7; letter-spacing: .14em; white-space: pre; }
.sa-article__body-wrap .sa-prose { padding: clamp(28px, 5vw, 66px); }
.sa-article__body-wrap .sa-action-strip { grid-column: 2; }

.sa-prose { min-width: 0; color: var(--sa-ink-soft); font-size: .96rem; line-height: 1.9; overflow-wrap: anywhere; }
.sa-prose > :first-child { margin-top: 0; }
.sa-prose > :last-child { margin-bottom: 0; }
.sa-prose p { margin: 0 0 1.15em; }
.sa-prose h1,
.sa-prose h2,
.sa-prose h3,
.sa-prose h4,
.sa-prose h5,
.sa-prose h6 { margin: 1.8em 0 .7em; line-height: 1.25; }
.sa-prose h1 { font-size: 1.75rem; }
.sa-prose h2 { padding-bottom: 7px; border-bottom: 2px solid var(--sa-inkline); font-size: 1.4rem; }
.sa-prose h3 { font-size: 1.14rem; }
.sa-prose a { color: var(--sa-red); text-decoration: underline; text-underline-offset: 3px; }
.sa-prose img { display: block; max-width: 100%; height: auto; margin: 24px 0; border: 1px solid var(--sa-line); }
.sa-prose blockquote { margin: 1.5em 0; padding: 12px 18px; border-left: 3px solid var(--sa-red); background: var(--sa-surface); color: var(--sa-muted); }
.sa-prose blockquote p:last-child { margin-bottom: 0; }
.sa-prose pre { max-width: 100%; margin: 1.5em 0; padding: 17px; overflow-x: auto; border: 1px solid var(--sa-line-strong); background: var(--sa-surface); color: var(--sa-ink); font-family: var(--sa-font-mono); font-size: .78rem; line-height: 1.65; }
.sa-prose code { padding: 2px 5px; background: var(--sa-surface-2); color: var(--sa-red); font-family: var(--sa-font-mono); font-size: .88em; }
.sa-prose pre code { padding: 0; background: transparent; color: inherit; }
.sa-prose table { display: block; max-width: 100%; margin: 1.5em 0; overflow-x: auto; border-collapse: collapse; }
.sa-prose th,
.sa-prose td { padding: 8px 11px; border: 1px solid var(--sa-line-strong); text-align: left; }
.sa-prose th { background: var(--sa-surface); }
.sa-prose ul,
.sa-prose ol { padding-left: 1.4em; }
.sa-prose hr { margin: 2em 0; border: 0; border-top: 1px solid var(--sa-line-strong); }
.sa-prose .mermaid { overflow-x: auto; }

.sa-action-strip { display: flex; flex-wrap: wrap; align-items: stretch; min-height: 45px; border-top: 1px solid var(--sa-line); }
.sa-action-strip .action-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 82px; min-height: 44px; padding: 0 15px; border: 0; border-right: 1px solid var(--sa-line); background: transparent; color: var(--sa-muted); font-family: var(--sa-font-body); font-size: .72rem; cursor: pointer; }
.sa-action-strip .action-btn:hover { background: var(--sa-surface-2); color: var(--sa-ink); }
.sa-action-strip .like-count { min-width: 18px; color: var(--sa-faint); font-family: var(--sa-font-mono); }
.sa-action-strip .like-btn.liked { color: var(--sa-red); }
.sa-action-strip .delete-btn { margin-left: auto; color: var(--sa-red); }

.sa-reply-ledger { margin-top: 30px; }
.sa-ledger-head { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; align-items: center; min-height: 54px; border-top: 2px solid var(--sa-inkline); border-bottom: 1px solid var(--sa-line-strong); }
.sa-ledger-head__index { color: var(--sa-red); font-family: var(--sa-font-mono); font-size: .72rem; }
.sa-ledger-head h2 { font-size: 1rem; }
.sa-ledger-head strong { padding: 0 14px; color: var(--sa-muted); font-family: var(--sa-font-mono); font-size: .75rem; font-weight: 500; }
.sa-ledger-entry { display: grid; grid-template-columns: 190px minmax(0, 1fr); border-bottom: 1px solid var(--sa-line-strong); }
.sa-ledger-entry__identity { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-content: start; gap: 10px; min-width: 0; padding: 19px 18px 19px 0; border-right: 1px solid var(--sa-line); }
.sa-ledger-entry__floor { grid-column: 1 / -1; padding-bottom: 8px; border-bottom: 1px solid var(--sa-line); color: var(--sa-red); font-family: var(--sa-font-mono); font-size: .64rem; }
.sa-ledger-entry__identity .reply-avatar img { display: block; width: 34px; height: 34px; object-fit: cover; border: 1px solid var(--sa-line-strong); }
.sa-ledger-entry__identity .reply-author-info { min-width: 0; }
.sa-ledger-entry__identity .author-name { display: block; overflow: hidden; font-size: .78rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.sa-ledger-entry__identity .reply-time { display: block; margin-top: 3px; color: var(--sa-muted); font-family: var(--sa-font-mono); font-size: .54rem; line-height: 1.45; }
.sa-ledger-entry__main { min-width: 0; padding: 0 0 0 28px; }
.sa-ledger-entry__main .sa-prose { min-height: 118px; padding: 24px 20px 24px 0; }
.sa-prose--reply { font-size: .88rem; line-height: 1.78; }
.parent-reply-info { display: flex; align-items: baseline; gap: 7px; margin: 18px 20px 0 0; padding: 9px 11px; border-left: 2px solid var(--sa-red); background: var(--sa-surface); color: var(--sa-muted); font-size: .72rem; }
.parent-content { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-ledger-entry__main .sa-action-strip { margin-left: -28px; padding-left: 28px; }

.sa-response-desk { margin-top: 34px; border-bottom: 2px solid var(--sa-inkline); }
.sa-response-desk__head { display: grid; grid-template-columns: 60px auto minmax(0, 1fr); align-items: center; gap: 0; min-height: 54px; border-top: 2px solid var(--sa-inkline); border-bottom: 1px solid var(--sa-line-strong); }
.sa-response-desk__head > span:first-child { color: var(--sa-red); font-family: var(--sa-font-mono); font-size: .72rem; }
.sa-response-desk__head h2 { font-size: 1rem; }
.reply-hint { justify-self: end; align-items: center; gap: 10px; color: var(--sa-muted); font-size: .7rem; }
.cancel-reply-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid var(--sa-line-strong); background: transparent; color: var(--sa-red); cursor: pointer; }
.reply-form .form-group { margin: 0; }
.textarea-wrapper { border: 1px solid var(--sa-line-strong); border-top: 0; }
.textarea-wrapper textarea { display: block; width: 100%; min-height: 180px; resize: vertical; padding: 18px; border: 0; background: var(--sa-surface); color: var(--sa-ink); font: inherit; font-size: .9rem; line-height: 1.7; }
.textarea-wrapper textarea { box-sizing: border-box; }
.textarea-wrapper textarea::placeholder { color: var(--sa-faint); }
.textarea-footer { display: flex; align-items: stretch; justify-content: space-between; min-height: 46px; border-top: 1px solid var(--sa-line-strong); background: var(--sa-surface); }
.format-tools { display: flex; }
.format-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; border: 0; border-right: 1px solid var(--sa-line); background: transparent; color: var(--sa-muted); cursor: pointer; }
.format-btn:hover { background: var(--sa-surface-2); color: var(--sa-ink); }
.submit-area { display: flex; align-items: stretch; }
.char-count { display: inline-flex; align-items: center; padding: 0 14px; color: var(--sa-muted); font-family: var(--sa-font-mono); font-size: .62rem; }
.char-count.is-over { color: var(--sa-red); }
.submit-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 126px; border: 0; background: var(--sa-red); color: #fff; font-weight: 600; cursor: pointer; }
.submit-btn:hover { background: var(--sa-red-deep); }
.emoji-panel { position: fixed; z-index: 1000; display: grid; grid-template-columns: repeat(5, 38px); gap: 3px; width: 205px; padding: 6px; border: 1px solid var(--sa-line-strong); background: var(--sa-surface); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.emoji-panel[hidden] { display: none; }
.emoji-item { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 0; background: transparent; font-size: 1rem; cursor: pointer; }
.emoji-item:hover { background: var(--sa-surface-2); }

@media (max-width: 760px) {
    .sa-category-head { grid-template-columns: 54px minmax(0, 1fr); min-height: 190px; }
    .sa-category-head__code { padding-right: 10px; }
    .sa-category-head__code strong { font-size: 1.45rem; }
    .sa-category-head__copy { padding: 24px 18px; }
    .sa-category-head__copy h1 { font-size: clamp(2rem, 11vw, 3.15rem); }
    .sa-category-head__measure { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 9px; padding: 9px 0; border-top: 1px solid var(--sa-line); border-left: 0; }
    .sa-category-head__measure strong { margin: 0; font-size: 1.35rem; }
    .sa-register-bar { grid-template-columns: minmax(0, 1fr) auto; }
    .sa-sort-control { grid-column: 1 / -1; grid-row: 2; min-height: 40px; border-top: 1px solid var(--sa-line); border-left: 0; }
    .sa-sort-control .sort-btn { flex: 1; min-width: 0; }
    .sa-register-create { padding: 0 13px; }
    .sa-thread-row__link { grid-template-columns: 42px 32px minmax(0, 1fr); gap: 10px; min-height: 106px; padding: 12px 0; }
    .sa-thread-row__avatar { width: 30px; height: 30px; }
    .sa-thread-row__status { grid-column: 3; align-self: auto; justify-content: flex-start; padding: 0; border: 0; }
    .sa-thread-row__status i { display: none; }
    .sa-thread-register .sa-thread-row__title { margin: 0 !important; font-size: .98rem !important; line-height: 1.35 !important; }
    .sa-thread-register .sa-thread-row__meta { margin-top: 8px !important; font-size: .65rem !important; line-height: 1.5; }
    .sa-thread-register .sa-thread-row__meta span { padding: 0 !important; border-radius: 0 !important; }
    .sa-thread-register .sa-thread-row__status .hot-badge,
    .sa-thread-register .sa-thread-row__status .new-badge { padding: 2px 6px !important; border-radius: 0 !important; font-size: .54rem !important; }
    .sa-thread-row__excerpt { -webkit-line-clamp: 2; }
    .sa-category-foot { align-items: flex-start; flex-direction: column; }
    .sa-forum-empty { align-items: flex-start; flex-wrap: wrap; gap: 14px; }
    .sa-forum-empty__mark { font-size: 2rem; }
    .sa-forum-empty .sa-register-create { width: 100%; margin-left: 0; }

    .sa-article__header { grid-template-columns: 52px minmax(0, 1fr); }
    .sa-article__folio { min-height: 220px; padding: 20px 10px 16px 0; }
    .sa-article__folio span { display: none; }
    .sa-article__folio strong { font-size: .62rem; writing-mode: vertical-rl; }
    .sa-article__title-block { min-height: 158px; padding: 24px 17px; }
    .sa-article__title-block h1 { font-size: clamp(1.85rem, 9vw, 2.8rem); }
    .sa-article__byline { grid-template-columns: 1fr; }
    .sa-author-line { padding: 12px 14px; }
    .sa-article__stats { grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--sa-line); }
    .sa-article__stats .stat-item { min-width: 0; padding: 9px 10px; border-left: 0; border-right: 1px solid var(--sa-line); }
    .sa-article__stats .stat-item:last-child { border-right: 0; }
    .sa-article__body-wrap { grid-template-columns: 1fr; }
    .sa-article__body-wrap::before { padding: 9px 0; border-right: 0; border-bottom: 1px solid var(--sa-line); white-space: normal; }
    .sa-article__body-wrap .sa-prose { padding: 27px 0; }
    .sa-article__body-wrap .sa-action-strip { grid-column: 1; }
    .sa-action-strip .action-btn { min-width: 72px; padding: 0 11px; }

    .sa-ledger-entry { grid-template-columns: 1fr; }
    .sa-ledger-entry__identity { grid-template-columns: 36px minmax(0, 1fr) auto; padding: 14px 0; border-right: 0; border-bottom: 1px solid var(--sa-line); }
    .sa-ledger-entry__floor { grid-column: auto; align-self: center; grid-row: 1; padding: 0; border: 0; }
    .sa-ledger-entry__identity .reply-avatar { grid-column: 1; grid-row: 2; }
    .sa-ledger-entry__identity .reply-author-info { grid-column: 2; grid-row: 2; }
    .sa-ledger-entry__identity .reply-actions-top { grid-column: 3; grid-row: 2; }
    .sa-ledger-entry__main { padding-left: 0; }
    .sa-ledger-entry__main .sa-prose { min-height: 0; padding: 20px 0; }
    .parent-reply-info { margin-right: 0; }
    .sa-ledger-entry__main .sa-action-strip { margin-left: 0; padding-left: 0; }
    .sa-response-desk__head { grid-template-columns: 40px auto minmax(0, 1fr); }
    .textarea-footer { flex-direction: column; }
    .format-tools { border-bottom: 1px solid var(--sa-line); }
    .format-btn { flex: 1; height: 42px; }
    .submit-area { min-height: 44px; }
    .char-count { margin-right: auto; }
    .submit-btn { min-width: 135px; }
}

@media (max-width: 420px) {
    .sa-forum-crumb { font-size: .56rem; }
    .sa-register-create span { display: none; }
    .sa-register-create { width: 46px; padding: 0; }
    .sa-thread-row__meta { gap: 4px 10px; }
    .sa-thread-row__meta span:first-child { flex-basis: 100%; }
    .sa-article__flags { margin-bottom: 10px; }
    .sa-author-line .author-avatar { width: 32px; height: 32px; }
    .sa-author-line .edited-label { flex-basis: 100%; }
    .sa-article__stats .stat-item { font-size: .64rem; }
    .sa-action-strip .action-btn { flex: 1; min-width: 0; }
    .sa-action-strip .delete-btn { margin-left: 0; }
    .reply-hint .hint-text { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

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