/* Styles for /community (moved out of the page so browsers can cache them) */
        :root { --color-success: #10b981; --color-danger: #ef4444; --color-up: #1f6a50; --color-down: #6366f1; --color-gold: #d99a00; }

        @media (prefers-color-scheme: dark) {
            :root { --color-up: #6fb594; --color-down: #a5b4fc; --color-gold: #f5c542; }
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        [hidden] { display: none !important; }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background-color: var(--color-light);
            color: var(--color-text);
            line-height: 1.6;
        }

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

        /* ── Header ── */
        header {
            background: var(--color-white);
            box-shadow: var(--shadow-sm);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 2rem;
            max-width: 1200px;
            margin: 0 auto;
            gap: 1rem;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--color-primary);
            text-decoration: none;
            flex-shrink: 0;
        }

        .nav-right {
            display: flex;
            gap: 0.75rem;
            align-items: center;
            min-width: 0;
        }

        .user-chip {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            color: var(--color-gray);
            font-size: 0.95rem;
            min-width: 0;
        }

        .user-chip .name {
            font-weight: 600;
            color: var(--color-text);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            max-width: 160px;
        }

        /* ── Buttons ── */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.4rem;
            height: 40px;
            padding: 0 1.1rem;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font: inherit;
            font-weight: 600;
            font-size: 0.95rem;
            text-decoration: none;
            white-space: nowrap;
            transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
        }

        .btn:disabled { opacity: 0.6; cursor: not-allowed; }
        .btn-primary { background: var(--color-primary); color: #fff; }
        .btn-primary:hover:not(:disabled) { background: var(--color-accent); }
        .btn-secondary { background: var(--color-light); color: var(--color-text); box-shadow: inset 0 0 0 1px var(--color-border); }
        .btn-secondary:hover:not(:disabled) { background: var(--color-tint); }
        .btn-danger { background: #c81e1e; color: #fff; }
        .btn-sm { height: 32px; padding: 0 0.8rem; font-size: 0.85rem; }
        .btn-block { width: 100%; }

        /* Small text actions under posts and comments */
        .act {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            background: none;
            border: none;
            border-radius: 6px;
            padding: 0.3rem 0.55rem;
            font: inherit;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--color-gray);
            cursor: pointer;
            text-decoration: none;
        }

        .act:hover { background: var(--color-tint); color: var(--color-primary); }
        .save-btn.saved { color: var(--color-link); }
        .save-btn.saved .lbl { font-weight: 700; }
        .act.danger:hover { color: var(--color-danger); background: rgba(239, 68, 68, 0.1); }
        .act svg { width: 16px; height: 16px; flex-shrink: 0; }

        /* ── Hero ── */
        .page-hero {
            background: linear-gradient(135deg, #1a654c 0%, #1f6a50 100%);
            color: #fff;
            padding: 3rem 2rem 4.5rem;
            text-align: center;
        }

        .page-hero h1 { font-size: 2.25rem; font-weight: 800; line-height: 1.3; margin-bottom: 0.5rem; }
        .page-hero p { font-size: 1.1rem; opacity: 0.95; max-width: 640px; margin: 0 auto; }

        /* ── Layout ── */
        .container {
            max-width: 1200px;
            margin: -2.5rem auto 3rem;
            padding: 0 2rem;
            position: relative;
            display: grid;
            grid-template-columns: minmax(0, 1fr) 300px;
            gap: 1.5rem;
            align-items: start;
        }

        /* Fixed slots, so nothing else on the page can push the posts into the sidebar column */
        #app > main { grid-column: 1; grid-row: 1; min-width: 0; }
        #app > .sidebar { grid-column: 2; grid-row: 1; }

        .card {
            background: var(--color-white);
            border-radius: 12px;
            box-shadow: var(--shadow-sm);
        }

        /* ── Feed toolbar ── */
        .toolbar {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem;
            margin-bottom: 1rem;
            box-shadow: var(--shadow-md);
            flex-wrap: wrap;
        }

        .sort-tabs {
            display: flex;
            gap: 0.25rem;
            background: var(--color-light);
            border-radius: 999px;
            padding: 0.25rem;
        }

        .sort-tab {
            border: none;
            background: none;
            font: inherit;
            font-weight: 600;
            font-size: 0.9rem;
            color: var(--color-gray);
            padding: 0.4rem 0.9rem;
            border-radius: 999px;
            cursor: pointer;
        }

        .sort-tab.active { background: var(--color-primary); color: #fff; }

        .input, .select, .textarea {
            font: inherit;
            font-size: 0.95rem;
            color: var(--color-text);
            background: var(--color-white);
            border: 1px solid var(--color-border);
            border-radius: 8px;
            padding: 0 0.75rem;
            height: 40px;
            width: 100%;
        }

        .textarea { height: auto; padding: 0.65rem 0.75rem; resize: vertical; line-height: 1.5; }
        .input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(31, 106, 80, 0.15); }

        .toolbar .search { flex: 1 1 180px; min-width: 0; }
        .toolbar .topic-select { width: auto; flex: 0 1 200px; display: none; }

        /* ── Composer prompt ── */
        .composer-prompt {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem;
            margin-bottom: 1rem;
        }

        .composer-prompt button.fake-input {
            flex: 1;
            text-align: left;
            height: 40px;
            padding: 0 0.9rem;
            border-radius: 8px;
            border: 1px solid var(--color-border);
            background: var(--color-light);
            color: var(--color-gray);
            font: inherit;
            cursor: text;
        }

        .avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: #1a654c;
            color: #fff;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            font-size: 0.95rem;
        }

        .avatar.sm { width: 26px; height: 26px; font-size: 0.75rem; }

        /* ── Post card ── */
        .post {
            display: grid;
            grid-template-columns: 52px minmax(0, 1fr);
            margin-bottom: 0.75rem;
            overflow: hidden;
            transition: box-shadow 0.2s ease;
        }

        .post.clickable:hover { box-shadow: var(--shadow-md); }
        /* The stripe sits on the vote column: on the card itself, the column's background would hide it */
        .post.pinned > .votes { background: var(--pr-accent-soft, #fff3d6); }
        .post.removed { opacity: 0.75; }
        .post.removed > .votes { box-shadow: inset 3px 0 0 var(--color-danger); }

        .votes {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.1rem;
            padding: 0.75rem 0.25rem;
            background: var(--color-light);
            border-radius: 12px 0 0 12px;
        }

        .votes.inline {
            flex-direction: row;
            background: none;
            padding: 0;
            gap: 0.15rem;
        }

        .vote-btn {
            width: 30px;
            height: 30px;
            border: none;
            background: none;
            border-radius: 6px;
            color: var(--color-gray);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .vote-btn svg { width: 18px; height: 18px; }
        .vote-btn:hover:not(:disabled) { background: var(--color-tint); }
        .vote-btn.up.on { color: var(--color-up); }
        .vote-btn.down.on { color: var(--color-down); }
        .vote-btn:disabled { cursor: default; opacity: 0.5; }

        .score { font-weight: 700; font-size: 0.9rem; min-width: 2ch; text-align: center; color: var(--color-text); }
        .score.up { color: var(--color-up); }
        .score.down { color: var(--color-down); }

        .post-body { padding: 0.85rem 1rem 0.5rem; min-width: 0; }

        .meta {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.35rem 0.5rem;
            font-size: 0.82rem;
            color: var(--color-gray);
            margin-bottom: 0.35rem;
        }

        .meta .author { font-weight: 600; color: var(--color-text); }
        .meta .stage { color: var(--color-gray); font-style: italic; }
        .meta .stage::before { content: '· '; font-style: normal; }
        .meta .dot::before { content: '·'; }

        .topic {
            display: inline-flex;
            align-items: center;
            padding: 0.1rem 0.55rem;
            border-radius: 999px;
            background: var(--color-tint);
            color: var(--color-link);
            font-weight: 700;
            font-size: 0.75rem;
            text-decoration: none;
            border: none;
            cursor: pointer;
            font-family: inherit;
        }

        .topic.announcements { background: var(--pr-accent-soft, #fff3d6); color: var(--pr-accent-ink, #855700); }

        .tag {
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
            font-size: 0.72rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.4px;
            padding: 0.1rem 0.45rem;
            border-radius: 4px;
        }

        .tag svg { width: 12px; height: 12px; }
        .tag-pinned { color: var(--pr-accent-ink, #855700); background: var(--pr-accent-soft, #fff3d6); }
        .tag-locked { color: var(--color-gray); background: var(--color-light); }
        .tag-removed { color: var(--color-danger); background: rgba(239, 68, 68, 0.1); }

        /* Name badges: crown for the admin, PRO for Pro members */
        .badge {
            display: inline-flex;
            align-items: center;
            gap: 0.2rem;
            font-size: 0.68rem;
            font-weight: 800;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            line-height: 1;
            padding: 0.22rem 0.42rem;
            border-radius: 4px;
            vertical-align: middle;
            white-space: nowrap;
        }

        .badge svg { width: 13px; height: 13px; }

        .badge-admin {
            color: #121a16; background: #f2b134;
            box-shadow: 0 1px 2px rgba(122, 79, 0, 0.25);
        }

        .tag-pending { color: #b45309; background: rgba(245, 158, 11, 0.14); }
        .banner { display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; padding: 0.85rem 1rem; margin-bottom: 1rem; border-radius: 12px; border: 1px solid color-mix(in srgb, #f59e0b 45%, transparent); background: rgba(245, 158, 11, 0.12); font-size: 0.92rem; }
        .banner.danger { border-left-color: #dc2626; background: rgba(220, 38, 38, 0.08); }
        .banner .text { flex: 1 1 240px; }
        .comment.accepted > .comment-main { background: rgba(16, 185, 129, 0.08); border-radius: 10px; padding: 0.6rem; margin: -0.6rem; margin-bottom: 0; box-shadow: inset 3px 0 0 #10b981; }
        .comment.verified-answer > .comment-main { background: rgba(59, 130, 246, 0.07); border-radius: 10px; padding: 0.6rem; margin: -0.6rem; margin-bottom: 0; box-shadow: inset 3px 0 0 #3b82f6; }
        .answer-label { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.25rem; }
        .answer-label.accepted { color: #047857; }
        .answer-label.verified { color: #1d4ed8; }
        .unsafe-note { margin: 0.35rem 0; padding: 0.55rem 0.75rem; border-radius: 8px; background: rgba(220, 38, 38, 0.09); color: #b91c1c; font-size: 0.88rem; font-weight: 600; }
        @media (prefers-color-scheme: dark) {
            .answer-label.accepted { color: #34d399; }
            .answer-label.verified { color: #93c5fd; }
            .unsafe-note { color: #fca5a5; }
        }
        .badge-verified {
            color: #fff;
            background: #1d4ed8;
            box-shadow: 0 1px 2px rgba(29, 78, 216, 0.3);
            text-transform: none;
            letter-spacing: 0.2px;
        }

        .badge-mod {
            color: #fff;
            background: #047857;
            box-shadow: 0 1px 2px rgba(4, 120, 87, 0.3);
        }

        .topic.pro_lounge { background: var(--color-dark); color: #fff; }

        .mod-btn { position: relative; }
        .mod-count { background: #dc2626; color: #fff; border-radius: 999px; font-size: 0.72rem; padding: 0.05rem 0.45rem; margin-left: 0.3rem; }

        .report-item { padding: 1rem 1.25rem; margin-bottom: 0.75rem; }
        .section-title-mod { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-gray); margin: 1.25rem 0 0.6rem 0.25rem; }
        .report-item .head { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; font-size: 0.8rem; color: var(--color-gray); margin-bottom: 0.4rem; }
        .pill { display: inline-flex; padding: 0.12rem 0.55rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
        .pill-red { background: rgba(239, 68, 68, 0.12); color: #dc2626; }
        .pill-amber { background: rgba(245, 158, 11, 0.16); color: #b45309; }
        .pill-gray { background: var(--color-light); color: var(--color-gray); }
        .report-item h3 { font-size: 1rem; color: var(--color-heading); overflow-wrap: anywhere; }
        .report-item .quote { margin: 0.4rem 0; padding: 0.6rem 0.8rem; border-radius: 8px; background: var(--color-light); font-size: 0.9rem; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 9rem; overflow: hidden; }
        .report-item .notes { font-size: 0.85rem; color: var(--color-gray); font-style: italic; white-space: pre-wrap; }
        .report-item .row { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.6rem; }

        .badge-pro {
            color: #fff;
            background: var(--color-dark);
            box-shadow: 0 1px 2px rgba(34, 58, 51, 0.3);
        }

        @media (prefers-color-scheme: dark) {
            .badge-pro { background: #1a654c; }
            .topic,
            .topic-list button.active,
            .rich a { color: var(--color-secondary); }
        }

        .post h2 {
            font-size: 1.15rem;
            line-height: 1.35;
            color: var(--color-heading);
            margin-bottom: 0.35rem;
            overflow-wrap: anywhere;
        }

        .post h2 a { color: inherit; text-decoration: none; }
        .post.clickable h2 a:hover { color: var(--color-primary); }

        .excerpt {
            color: var(--color-text);
            font-size: 0.95rem;
            overflow-wrap: anywhere;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .rich { overflow-wrap: anywhere; }
        .rich p + p { margin-top: 0.75rem; }

        .post-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.15rem;
            margin: 0.4rem -0.55rem 0;
        }

        .removed-note {
            margin: 0.5rem 0;
            padding: 0.6rem 0.8rem;
            background: rgba(239, 68, 68, 0.08);
            border-radius: 8px;
            color: var(--color-danger);
            font-size: 0.85rem;
        }

        /* ── Post detail ── */
        .back-link { margin-bottom: 0.75rem; }

        .detail .post { margin-bottom: 1rem; }
        .detail .post h2 { font-size: 1.4rem; }
        .detail .post-body { padding: 1rem 1.25rem 0.75rem; }
        .detail .rich { font-size: 1rem; margin-top: 0.5rem; }

        .comment-box { padding: 1rem 1.25rem; margin-bottom: 1rem; }
        .comment-box h3 { font-size: 1rem; color: var(--color-heading); margin-bottom: 0.6rem; }
        .comment-box .row { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-top: 0.6rem; flex-wrap: wrap; }

        .notice {
            padding: 0.75rem 1rem;
            border-radius: 8px;
            background: var(--color-tint);
            color: var(--color-text);
            font-size: 0.9rem;
        }

        .comments { padding: 0.75rem 1.25rem 1rem; }
        .comments-head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
        .comments-head h3 { font-size: 1rem; color: var(--color-heading); }

        .comment { margin-top: 0.85rem; }
        .comment-main { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 0.6rem; }
        .comment .meta { margin-bottom: 0.15rem; }
        .comment .text { font-size: 0.95rem; }
        .comment .text.gone { color: var(--color-gray); font-style: italic; }
        .comment .post-actions { margin-top: 0.15rem; }

        .replies {
            margin-left: 12px;
            padding-left: 1.1rem;
            border-left: 2px solid var(--color-border);
        }

        .replies:hover { border-left-color: var(--color-secondary); }

        .collapse-btn { font-size: 0.8rem; }

        .inline-form { margin-top: 0.5rem; }
        .inline-form .row { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 0.5rem; }

        /* ── Sidebar ── */
        .sidebar { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 90px; }
        .side-card { padding: 1.25rem; }
        .side-card h3, .side-card .side-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.6px; color: var(--color-gray); margin-bottom: 0.75rem; }

        .topic-list { list-style: none; display: flex; flex-direction: column; gap: 0.15rem; }
        .topic-list button {
            width: 100%;
            text-align: left;
            background: none;
            border: none;
            font: inherit;
            font-size: 0.95rem;
            color: var(--color-text);
            padding: 0.45rem 0.65rem;
            border-radius: 8px;
            cursor: pointer;
        }

        .topic-list button:hover { background: var(--color-tint); }
        .topic-list button.active { background: var(--color-tint); color: var(--color-link); font-weight: 700; }

        .rules { padding-left: 1.1rem; font-size: 0.9rem; display: flex; flex-direction: column; gap: 0.4rem; }
        .rules li::marker { color: var(--color-primary); font-weight: 700; }

        .pro-card {
            background: #134a38;
            color: #fff;
        }

        .pro-card h3 { color: rgba(255,255,255,0.8); }
        .pro-card p { font-size: 0.9rem; opacity: 0.95; }
        .pro-card ul { list-style: none; margin: 0.6rem 0 0; font-size: 0.9rem; display: flex; flex-direction: column; gap: 0.3rem; }
        .pro-card li::before { content: '✓'; margin-right: 0.45rem; color: var(--color-secondary); font-weight: 700; }

        /* ── States ── */
        .empty, .loading {
            text-align: center;
            padding: 3rem 1.5rem;
            color: var(--color-gray);
        }

        .empty .icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
        .empty h3 { color: var(--color-heading); margin-bottom: 0.25rem; }

        .gate { text-align: center; padding: 3rem 2rem; }
        .gate .icon { font-size: 3rem; }
        .gate h2 { color: var(--color-heading); margin: 0.5rem 0; }
        .gate p { color: var(--color-gray); margin-bottom: 1.25rem; }

        .load-more { display: flex; justify-content: center; margin-top: 1rem; }

        .skeleton { height: 120px; margin-bottom: 0.75rem; background: linear-gradient(90deg, var(--color-white) 0%, var(--color-tint) 50%, var(--color-white) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
        @keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

        /* ── Modals ── */
        .modal {
            position: fixed;
            inset: 0;
            background: rgba(29, 27, 22, 0.55);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            z-index: 1000;
        }

        .modal-content {
            background: var(--color-white);
            border-radius: 14px;
            box-shadow: var(--shadow-lg);
            width: 100%;
            max-width: 560px;
            max-height: calc(100vh - 2rem);
            overflow-y: auto;
            padding: 1.5rem;
        }

        .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
        .modal-header h2 { font-size: 1.25rem; color: var(--color-heading); }
        .modal-close { background: none; border: none; font-size: 1.6rem; line-height: 1; color: var(--color-gray); cursor: pointer; width: 36px; height: 36px; border-radius: 8px; }
        .modal-close:hover { background: var(--color-light); }

        .form-grid { display: flex; flex-direction: column; gap: 0.9rem; }
        .field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; color: var(--color-heading); }
        .field .hint { font-size: 0.8rem; color: var(--color-gray); margin-top: 0.3rem; display: flex; justify-content: space-between; gap: 1rem; }
        .modal-actions { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 0.5rem; flex-wrap: wrap; }

        .radio-list { display: flex; flex-direction: column; gap: 0.4rem; }
        .radio-list label {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            padding: 0.6rem 0.75rem;
            border: 1px solid var(--color-border);
            border-radius: 8px;
            cursor: pointer;
            font-weight: 500;
            color: var(--color-text);
            margin: 0;
        }

        .radio-list label:has(input:checked) { border-color: var(--color-primary); background: var(--color-tint); }
        .radio-list input { accent-color: var(--color-primary); }

        .form-error {
            padding: 0.65rem 0.85rem;
            border-radius: 8px;
            background: rgba(239, 68, 68, 0.1);
            color: var(--color-danger);
            font-size: 0.9rem;
        }

        /* ── Toasts ── */
        .toasts { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 0.5rem; z-index: 2000; width: max-content; max-width: calc(100vw - 2rem); }
        .toast { background: var(--color-dark); color: #fff; padding: 0.75rem 1.1rem; border-radius: 10px; box-shadow: var(--shadow-lg); font-weight: 500; font-size: 0.92rem; animation: toastIn 0.25s ease; }
        .toast.error { background: #b91c1c; }
        @keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

        /* ── Responsive ── */
        /* One way to post: on the feed the composer at the top does it, so the sidebar button only shows on a post's page */
        .side-create + .mod-btn { margin-top: 0.6rem; }
        .container:has(.composer-prompt) .side-create { display: none; }
        .container:has(.composer-prompt) .side-actions:has(#modQueueBtn[hidden]) { display: none; }
        .container:has(.composer-prompt) .side-create + .mod-btn { margin-top: 0; }

        @media (max-width: 900px) {
            .container { grid-template-columns: minmax(0, 1fr); }
            .sidebar { display: none; }
            .toolbar .topic-select { display: block; }
        }

        @media (max-width: 600px) {
            nav { padding: 0.75rem 1rem; }
            .logo { font-size: 1.25rem; }
            .logo svg { width: 32px; height: 32px; }
            .user-chip .name { max-width: 90px; }
            .hide-sm { display: none; }
            .page-hero { padding: 2.25rem 1.25rem 3.75rem; }
            .page-hero h1 { font-size: 1.75rem; }
            .page-hero p { font-size: 1rem; }
            .container { padding: 0 0.75rem; }
            .post { grid-template-columns: 44px minmax(0, 1fr); }
            .post-body { padding: 0.75rem 0.75rem 0.4rem; }
            .detail .post-body { padding: 0.85rem 0.85rem 0.6rem; }
            .comments, .comment-box { padding-left: 0.85rem; padding-right: 0.85rem; }
            .replies { margin-left: 6px; padding-left: 0.7rem; }
            /* Icon-only actions on phones; labels stay for screen readers */
            .act .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
            .user-chip .name, .user-chip .badge { display: none; }
            .toolbar .topic-select { flex: 1 1 100%; }
        }

        /* Post actions: a compact More menu for reporting and moderation */
        .act-more { position: relative; display: inline-block; }
        .act-more > summary { list-style: none; }
        .act-more > summary::-webkit-details-marker { display: none; }
        .act-more[open] > summary { background: var(--color-tint); color: var(--color-heading); }
        .act-menu { position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; min-width: 170px; display: grid; padding: 0.3rem; border-radius: 10px;
            background: var(--color-white); border: 1px solid var(--color-border); box-shadow: var(--shadow-lg); }
        .act-menu .act { justify-content: flex-start; width: 100%; padding: 0.5rem 0.6rem; }
        .act-menu .act .lbl { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
        .save-btn svg { width: 16px; height: 16px; }
        .save-btn.saved svg { fill: currentColor; }
        .mod-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; }
        .post { overflow: visible; }
        .post > .votes { border-radius: var(--pr-radius, 16px) 0 0 var(--pr-radius, 16px); }
        .post:has(.act-more[open]) { z-index: 5; position: relative; }
        .topic-lock svg { width: 13px; height: 13px; vertical-align: -1px; color: var(--color-gray); }
    
