/* Foresight shared theme — extracted from website/index.html. */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #181824;
    --border: #1e1e2e;
    --text: #c8c8d4;
    --text-dim: #6e6e82;
    --text-bright: #e8e8f0;
    --accent: #4a9eff;
    --accent-dim: #2a5a8f;
    --green: #22c55e;
    --red: #ef4444;
    --amber: #f59e0b;
    --mono: 'JetBrains Mono', monospace;
    --sans: 'Inter', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* ── Site shell ── */
.shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.logo {
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--text-dim);
    text-transform: uppercase;
    text-decoration: none;
}
.logo:hover { color: var(--text); }

nav.site-nav { display: flex; gap: 1.5rem; align-items: center; }
nav.site-nav a {
    font-size: 0.82rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}
nav.site-nav a:hover { color: var(--text); }
nav.site-nav .user-pill {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--text-bright);
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 4px;
}

footer.site-footer {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
footer.site-footer .copyright { font-size: 0.8rem; color: var(--text-dim); }
footer.site-footer nav a {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.2s;
}
footer.site-footer nav a:hover { color: var(--text); }

/* ── Buttons ── */
.btn {
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    letter-spacing: 0.04em;
    display: inline-block;
    background: transparent;
    color: var(--text);
}
.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.btn-primary:hover { background: #5aabff; border-color: #5aabff; }
.btn-secondary {
    background: transparent;
    color: var(--text);
}
.btn-secondary:hover { background: var(--bg-card); border-color: var(--text-dim); }
.btn-block { width: 100%; text-align: center; }
/* Default hover for unmodified .btn */
.btn:not(.btn-primary):not(.btn-secondary):hover {
    background: var(--bg-card);
    border-color: var(--text-dim);
}

/* ── Auth screens (login/signup/etc) ── */
.auth-page {
    max-width: 440px;
    margin: 4rem auto;
    padding: 0 2rem;
}
.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2rem;
}
.auth-card h1 {
    font-family: var(--mono);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-bright);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.auth-card .subtitle {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}
.auth-card form { display: grid; gap: 0.9rem; }
.auth-card label {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 0.4rem;
}
.auth-card input[type=email],
.auth-card input[type=text],
.auth-card input[type=password] {
    font-family: var(--mono);
    font-size: 0.9rem;
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-bright);
    outline: none;
    transition: border-color 0.15s;
}
.auth-card input:focus { border-color: var(--accent); }
.auth-card .help {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 0.3rem;
    line-height: 1.5;
}
.auth-card .help ul { margin: 0.4rem 0 0 1.1rem; }
.auth-card .help li { margin-bottom: 0.15rem; }
.auth-card .errors {
    font-size: 0.82rem;
    color: var(--red);
    margin-top: 0.3rem;
}
.auth-card .field-row { margin-bottom: 0.2rem; }

.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 1.25rem;
    font-size: 0.82rem;
}
.auth-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.15s;
}
.auth-links a:hover { color: var(--accent); }

.auth-footer-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-dim);
}
.auth-footer-link a {
    color: var(--accent);
    text-decoration: none;
}
.auth-footer-link a:hover { text-decoration: underline; }

/* ── Banners (info/success/error) ── */
.banner {
    border-radius: 4px;
    padding: 0.85rem 1.1rem;
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
    border: 1px solid;
}
.banner-info    { color: var(--accent);  border-color: var(--accent-dim); background: rgba(74,158,255,0.08); }
.banner-success { color: var(--green);   border-color: rgba(34,197,94,0.4); background: rgba(34,197,94,0.06); }
.banner-warn    { color: var(--amber);   border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.06); }
.banner-error   { color: var(--red);     border-color: rgba(239,68,68,0.4); background: rgba(239,68,68,0.06); }

/* ── Dashboard ── */
.dashboard {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 2rem;
}
.dashboard h1 {
    font-family: var(--mono);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-bright);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.dashboard > .subtitle {
    color: var(--text-dim);
    margin-bottom: 2rem;
    font-size: 1rem;
}
.dashboard .card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.dashboard .card h2 {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}
.dashboard .card p { font-size: 0.92rem; }

/* ──────────────────────────────────────────────────────────────────
 * Marketing pages (index, docs, downloads list)
 * ──────────────────────────────────────────────────────────────── */

/* ── Hero ── */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
}
.hero h1 {
    font-family: var(--mono);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-bright);
    margin-bottom: 1rem;
}
.hero h1 span { color: var(--accent); }
.hero .subtitle {
    font-size: 1.15rem;
    color: var(--text-dim);
    max-width: 600px;
    margin-bottom: 2rem;
    font-weight: 300;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.price-note { font-size: 0.82rem; color: var(--text-dim); margin-top: 0.5rem; }

/* ── Screenshots ── */
.screenshots { max-width: 1200px; margin: 0 auto; padding: 0 2rem 3rem; }
.screenshot-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    transition: border-color 0.3s;
    cursor: zoom-in;
}
.screenshot-container:hover { border-color: var(--accent-dim); }
.screenshot-container img { width: 100%; display: block; }
.screenshot-label {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.screenshot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 768px) { .screenshot-pair { grid-template-columns: 1fr; } }

/* ── Video ── */
.video { max-width: 1200px; margin: 0 auto; padding: 0 2rem 3rem; }
.video-label {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color 0.3s;
}
.video-container:hover { border-color: var(--accent-dim); }
.video-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

/* ── Features grid ── */
.features { max-width: 1200px; margin: 0 auto; padding: 2rem 2rem 3rem; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.feature {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-card);
    transition: background 0.2s, border-color 0.2s;
}
.feature:hover { background: var(--bg-card-hover); border-color: #2a2a3e; }
.feature-icon {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.feature h3 {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-bright);
    margin-bottom: 0.5rem;
}
.feature p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.5; }

/* ── About / credibility ── */
.about { max-width: 1200px; margin: 0 auto; padding: 2rem 2rem 3rem; }
.about-inner {
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-card);
    padding: 2rem;
    max-width: 700px;
}
.about-inner p { font-size: 0.95rem; color: var(--text); line-height: 1.7; }

/* ── Pricing / CTA ── */
.pricing { max-width: 1200px; margin: 0 auto; padding: 2rem 2rem 3rem; }
.pricing h2 {
    font-family: var(--mono);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-bright);
    margin-bottom: 1.5rem;
}

/* ── Section divider ── */
.divider { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.divider hr { border: none; border-top: 1px solid var(--border); }

/* ── Lightbox ── */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    cursor: zoom-out;
}
.lightbox-overlay.active { opacity: 1; pointer-events: auto; }
.lightbox-overlay img {
    max-width: 92vw;
    max-height: 92vh;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    transform: scale(0.92);
    transition: transform 0.25s ease;
}
.lightbox-overlay.active img { transform: scale(1); }

/* ──────────────────────────────────────────────────────────────────
 * Docs page
 * ──────────────────────────────────────────────────────────────── */

.docs-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3rem;
}
@media (max-width: 800px) {
    .docs-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .docs-sidebar { display: none; }
}
.docs-sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}
.docs-sidebar h4 {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin: 1.5rem 0 0.75rem;
}
.docs-sidebar h4:first-child { margin-top: 0; }
.docs-sidebar a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dim);
    text-decoration: none;
    padding: 0.25rem 0;
    transition: color 0.15s;
}
.docs-sidebar a:hover { color: var(--accent); }

.docs-content h1 {
    font-family: var(--mono);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 500;
    color: var(--text-bright);
    margin-bottom: 0.5rem;
}
.docs-content > .subtitle {
    color: var(--text-dim);
    font-size: 1.05rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
}
.docs-content h2 {
    font-family: var(--mono);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-bright);
    margin: 2.5rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.docs-content h2:first-of-type { border-top: none; padding-top: 0; }
.docs-content h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-bright);
    margin: 1.5rem 0 0.5rem;
}
.docs-content p { margin-bottom: 0.75rem; line-height: 1.7; }
.docs-content ul, .docs-content ol { margin: 0.5rem 0 1rem 1.25rem; }
.docs-content li { margin-bottom: 0.35rem; line-height: 1.6; }
.docs-content code {
    font-family: var(--mono);
    font-size: 0.85em;
    background: var(--bg-card);
    padding: 0.15em 0.4em;
    border-radius: 3px;
    border: 1px solid var(--border);
}
.docs-content pre {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem 1.1rem;
    margin: 0.5rem 0 1rem;
    overflow-x: auto;
    font-size: 0.85em;
    line-height: 1.6;
}
.docs-content pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 1em;
}
.docs-content kbd {
    font-family: var(--mono);
    font-size: 0.8em;
    background: var(--bg-card);
    padding: 0.2em 0.5em;
    border-radius: 3px;
    border: 1px solid var(--border);
    white-space: nowrap;
}
.docs-content .card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.docs-content .card h4 {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.docs-content .card p { font-size: 0.9rem; margin-bottom: 0.5rem; }
.docs-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.88rem; }
.docs-content th, .docs-content td {
    text-align: left;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--border);
}
.docs-content th {
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* ──────────────────────────────────────────────────────────────────
 * Downloads list
 * ──────────────────────────────────────────────────────────────── */

.downloads-page { max-width: 720px; margin: 4rem auto; padding: 0 2rem; }
.downloads-page h1 {
    font-family: var(--mono);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 500;
    color: var(--text-bright);
    margin-bottom: 0.75rem;
}
.downloads-page > .subtitle {
    font-size: 1.05rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    font-weight: 300;
}
.download-card {
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-card);
    padding: 2rem;
    transition: border-color 0.2s;
}
.download-card:hover { border-color: var(--accent-dim); }
.download-card .platform {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.download-card .file-details {
    margin-top: 1.25rem;
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.8;
}
.download-card .file-details span {
    font-family: var(--mono);
    color: var(--text);
}
.older-releases { margin-top: 2.5rem; }
.older-releases h2 {
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.older-releases ul { list-style: none; padding: 0; }
.older-releases li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.older-releases li a { color: var(--text-dim); text-decoration: none; }
.older-releases li a:hover { color: var(--accent); }

.requirements { margin-top: 2.5rem; max-width: 480px; }
.requirements h2 {
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.requirements ul { list-style: none; font-size: 0.88rem; color: var(--text-dim); }
.requirements li { padding: 0.25rem 0; }
.requirements li::before {
    content: ">";
    font-family: var(--mono);
    color: var(--accent-dim);
    margin-right: 0.6rem;
}

.note {
    margin-top: 2.5rem;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-card);
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.6;
}
.note strong { color: var(--text); }

/* ──────────────────────────────────────────────────────────────────
 * Boards (groups, topics, posts)
 * ──────────────────────────────────────────────────────────────── */

.boards-page {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 2rem;
}
.boards-page h1 {
    font-family: var(--mono);
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    font-weight: 500;
    color: var(--text-bright);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.boards-page > .subtitle {
    color: var(--text-dim);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}
.boards-crumb {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}
.boards-crumb a {
    color: var(--text-dim);
    text-decoration: none;
}
.boards-crumb a:hover { color: var(--accent); }

.boards-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.boards-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.boards-action-note { font-size: 0.85rem; color: var(--text-dim); align-self: center; }

/* Group list */
.group-list { list-style: none; padding: 0; display: grid; gap: 1rem; }
.group-card {
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-card);
    transition: border-color 0.2s, background 0.2s;
}
.group-card:hover { border-color: var(--accent-dim); background: var(--bg-card-hover); }
.group-card-link {
    display: block;
    padding: 1.25rem 1.5rem;
    color: var(--text);
    text-decoration: none;
}
.group-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
    gap: 0.5rem;
}
.group-name {
    font-family: var(--mono);
    font-size: 1rem;
    color: var(--text-bright);
    letter-spacing: -0.005em;
}
.group-flag {
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    padding: 0.15rem 0.55rem;
    border-radius: 3px;
    text-transform: uppercase;
}
.group-flag-public {
    color: var(--green);
    background: rgba(34, 197, 94, 0.12);
}
.group-flag-private {
    color: var(--amber);
    background: rgba(245, 158, 11, 0.12);
}
.group-desc {
    font-size: 0.88rem;
    color: var(--text);
    margin: 0.25rem 0;
    line-height: 1.5;
}
.group-meta {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
}

/* Topic list */
.topic-list { list-style: none; padding: 0; }
.topic-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
}
.topic-row-main { flex: 1; min-width: 0; }
.topic-row-side {
    text-align: right;
    font-size: 0.82rem;
    color: var(--text);
    flex-shrink: 0;
    padding-left: 1rem;
}
.topic-pinned .topic-title { color: var(--accent); }
.topic-unread .topic-title { color: var(--text-bright); font-weight: 500; }
.topic-title {
    display: block;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}
.topic-title:hover { color: var(--accent); }
.topic-meta {
    font-family: var(--mono);
    font-size: 0.73rem;
    color: var(--text-dim);
    letter-spacing: 0.02em;
}
.topic-badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    padding: 0.1rem 0.45rem;
    border-radius: 3px;
    margin-right: 0.4rem;
    color: var(--accent);
    background: rgba(74, 158, 255, 0.12);
    vertical-align: 1px;
}

/* Posts (OP + replies) */
.post {
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-card);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}
.post-op { border-color: var(--accent-dim); }
.post-head {
    display: flex;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
}
.post-author { color: var(--text-bright); }
.post-body {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text);
}
.post-body p { margin-bottom: 0.75rem; }
.post-body h1, .post-body h2, .post-body h3 {
    color: var(--text-bright);
    font-family: var(--mono);
    margin: 1.2rem 0 0.5rem;
}
.post-body h1 { font-size: 1.3rem; }
.post-body h2 { font-size: 1.1rem; }
.post-body h3 { font-size: 1rem; }
.post-body code {
    font-family: var(--mono);
    font-size: 0.85em;
    background: var(--bg);
    padding: 0.15em 0.4em;
    border-radius: 3px;
    border: 1px solid var(--border);
}
.post-body pre {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.85rem 1rem;
    overflow-x: auto;
    font-size: 0.85em;
    line-height: 1.5;
    margin: 0.75rem 0;
}
.post-body pre code {
    background: transparent;
    border: none;
    padding: 0;
}
.post-body blockquote {
    border-left: 3px solid var(--border);
    padding: 0.25rem 0 0.25rem 1rem;
    margin: 0.75rem 0;
    color: var(--text-dim);
}
.post-body a { color: var(--accent); text-decoration: none; }
.post-body a:hover { text-decoration: underline; }
.post-body ul, .post-body ol { margin: 0.5rem 0 0.75rem 1.25rem; }
.post-body li { margin-bottom: 0.2rem; }
.post-body table {
    border-collapse: collapse;
    margin: 0.75rem 0;
    font-size: 0.88em;
}
.post-body th, .post-body td {
    text-align: left;
    padding: 0.45rem 0.7rem;
    border-bottom: 1px solid var(--border);
}
.post-actions {
    margin-top: 0.85rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 1rem;
    align-items: center;
    font-family: var(--mono);
    font-size: 0.75rem;
}
.post-actions a {
    color: var(--text-dim);
    text-decoration: none;
    letter-spacing: 0.04em;
}
.post-actions a:hover { color: var(--accent); }
.post-action-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    padding: 0;
}
.post-action-btn:hover { color: var(--red); }

/* Reply / topic forms */
.reply-form {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-card);
    display: grid;
    gap: 0.75rem;
}
.reply-form label,
.boards-form label {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 0.4rem;
}
.reply-form textarea,
.boards-form textarea,
.boards-form input[type=text] {
    font-family: var(--mono);
    font-size: 0.88rem;
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-bright);
    outline: none;
    transition: border-color 0.15s;
    line-height: 1.6;
    resize: vertical;
    box-sizing: border-box;
}
.reply-form textarea:focus,
.boards-form textarea:focus,
.boards-form input:focus { border-color: var(--accent); }

.boards-form-page { max-width: 720px; }
.boards-form { display: grid; gap: 1.1rem; }
.boards-form .field-row { margin: 0; }
.boards-form-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.5rem; }

.paginator {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    align-items: center;
    margin: 2rem 0;
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--text-dim);
}
.paginator a {
    color: var(--text);
    text-decoration: none;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: border-color 0.15s, color 0.15s;
}
.paginator a:hover { color: var(--accent); border-color: var(--accent-dim); }
