/* ═══════════════════════════════════════════════════
   UNIVERSE SOLVER — Global Styles v4
   Publication-grade design system.
   Swiss Minimalist × Cosmic Presence
   Typography: Space Grotesk / Source Serif 4 / JetBrains Mono
   ═══════════════════════════════════════════════════ */

/* ── LIGHT MODE (default) ── */
:root, [data-theme="light"] {
    /* Backgrounds */
    --bg: #FAFAF7;
    --bg-alt: #F3F2ED;
    --bg-card: #FFFFFF;
    --bg-deep: #141922;
    --bg-navy: #1A1A2E;

    /* Text */
    --text: #0A0A0A;
    --text-secondary: #3D3D3D;
    --text-muted: #8A8A8A;
    --text-light: #FAFAF7;

    /* Gold accent */
    --gold: #C9A84C;
    --gold-light: #D4B86A;
    --gold-dark: #A88A3A;
    --gold-10: rgba(201, 168, 76, 0.10);
    --gold-20: rgba(201, 168, 76, 0.20);

    /* Structure */
    --border: #E8E4DC;
    --border-light: #F0EDE6;
    --navy: #1A1A2E;
    --navy-light: #2A2A4E;

    /* Semantic */
    --danger: #C44;
    --success: #2A7D4F;
    --info: #3B6FAA;
    --upvote: #C9A84C;
    --downvote: #8A8A8A;

    /* Backward-compat aliases (map old names → new) */
    --void: var(--bg);
    --void-lighter: var(--bg-alt);
    --void-card: var(--bg-card);
    --nebula-blue: var(--navy);
    --deep-violet: var(--navy-light);
    --cosmic-teal: #3B6FAA;
    --star-white: var(--text);
    --warm-glow: var(--gold-dark);
    --plasma-rose: #8B3A5E;
    --singularity: var(--gold);
    --event-horizon: var(--navy);
    --text-primary: var(--text);
    --border-subtle: var(--border);
    --border-glow: var(--gold-20);

    /* Typography */
    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Layout */
    --nav-height: 64px;
    --chat-height: 72px;
    --radius: 0px;
    --radius-lg: 0px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-top: env(safe-area-inset-top, 0px);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
}

/* ── DARK MODE ── */
[data-theme="dark"] {
    --bg: #0F0F14;
    --bg-alt: #1A1A24;
    --bg-card: #16161E;
    --bg-deep: #0A0E16;
    --bg-navy: #0D1117;

    --text: #E0DDD6;
    --text-secondary: #B0ADA6;
    --text-muted: #6A6A6A;
    --text-light: #FAFAF7;

    --gold: #D4B86A;
    --gold-light: #E0C87A;
    --gold-dark: #C9A84C;
    --gold-10: rgba(212, 184, 106, 0.10);
    --gold-20: rgba(212, 184, 106, 0.20);

    --border: #2A2A3E;
    --border-light: #1E1E2E;
    --navy: #C0BDB6;
    --navy-light: #3A3A5E;

    --danger: #E66;
    --success: #4ADE80;
    --info: #60A5FA;
    --upvote: #D4B86A;
    --downvote: #6A6A6A;

    /* Backward-compat aliases */
    --void: var(--bg);
    --void-lighter: var(--bg-alt);
    --void-card: var(--bg-card);
    --nebula-blue: var(--navy-light);
    --deep-violet: #2A2A4E;
    --cosmic-teal: #60A5FA;
    --star-white: var(--text);
    --warm-glow: var(--gold-dark);
    --plasma-rose: #B05070;
    --singularity: var(--gold);
    --event-horizon: #2A2A4E;
    --text-primary: var(--text);
    --border-subtle: var(--border);
    --border-glow: var(--gold-20);

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.25);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.35);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.45);
}

/* OS-level dark mode (no manual override) */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0F0F14;
        --bg-alt: #1A1A24;
        --bg-card: #16161E;
        --bg-deep: #0A0E16;
        --text: #E0DDD6;
        --text-secondary: #B0ADA6;
        --text-muted: #6A6A6A;
        --gold: #D4B86A;
        --gold-light: #E0C87A;
        --gold-dark: #C9A84C;
        --gold-10: rgba(212, 184, 106, 0.10);
        --gold-20: rgba(212, 184, 106, 0.20);
        --border: #2A2A3E;
        --border-light: #1E1E2E;
        --navy: #C0BDB6;
        --navy-light: #3A3A5E;
        --void: var(--bg); --void-lighter: var(--bg-alt); --void-card: var(--bg-card);
        --singularity: var(--gold); --text-primary: var(--text);
        --border-subtle: var(--border); --border-glow: var(--gold-20);
        --star-white: var(--text); --warm-glow: var(--gold-dark);
    }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-body); background: var(--bg); color: var(--text);
    line-height: 1.65; min-height: 100vh; overflow-x: hidden;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    font-optical-sizing: auto;
    padding-bottom: var(--safe-bottom);
    transition: background 0.3s ease, color 0.3s ease;
}
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-dark); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); }

/* ─── Animated Grid Background ─── */
.universe-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); transition: background 0.3s ease; }
.universe-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.06; }
[data-theme="dark"] .universe-bg canvas { opacity: 0.3; }

/* ── Theme Toggle ── */
.theme-toggle {
    position: fixed; bottom: 24px; right: 24px; z-index: 9999;
    width: 44px; height: 44px; border-radius: 50%;
    border: 1.5px solid var(--border); background: var(--bg-card);
    color: var(--text); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; box-shadow: var(--shadow-md);
    transition: all 0.3s ease; backdrop-filter: blur(8px);
}
.theme-toggle:hover { transform: scale(1.1); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.theme-toggle .icon-sun, .theme-toggle .icon-moon {
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
}

/* ── Footer ── */
.site-footer { margin-top: 4rem; padding: 0 2rem 2rem; }
.footer-rule { width: 40px; height: 2px; background: var(--gold); margin: 0 auto 2rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem; }
.footer-copy { font-family: var(--font-display); font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-links a { font-family: var(--font-display); font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.5px; text-transform: uppercase; }
.footer-links a:hover { color: var(--gold); }

/* ═══════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════ */
.nav-main {
    position: fixed; top: 0; left: 0; right: 0; height: calc(var(--nav-height) + var(--safe-top));
    padding-top: var(--safe-top);
    z-index: 1000; display: flex; align-items: center; padding-left: 1.5rem; padding-right: 1.5rem;
    background: var(--bg); border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    transition: background 0.3s ease, border-color 0.3s ease;
}
[data-theme="dark"] .nav-main { background: rgba(15, 15, 20, 0.92); }
.nav-logo { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--text); letter-spacing: 0.3px; flex-shrink: 0; }
.nav-logo img { width: 28px; height: 28px; border-radius: 50%; }
.nav-logo span { color: var(--text); }

.nav-tabs {
    display: flex; gap: 0.1rem; margin-left: 2rem; list-style: none;
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.nav-tabs::-webkit-scrollbar { display: none; }
.nav-tabs a {
    display: flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0.65rem;
    font-family: var(--font-display); color: var(--text-muted); font-size: 0.78rem; font-weight: 500;
    transition: all var(--transition); letter-spacing: 0.3px; white-space: nowrap;
    text-transform: uppercase;
}
.nav-tabs a:hover { color: var(--text); }
.nav-tabs a.active { color: var(--gold); }
.nav-tabs a img { width: 16px; height: 16px; opacity: 0.5; }
[data-theme="light"] .nav-tabs a img { filter: invert(1) brightness(0.4); }
.nav-divider-mobile { display: none; }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.nav-avatar { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--border); cursor: pointer; transition: border-color var(--transition); }
.nav-avatar:hover { border-color: var(--gold); }

/* Nav icon buttons (bell, messages) */
.nav-icon-btn {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: transparent; transition: all var(--transition);
    min-width: 36px; min-height: 36px;
}
.nav-icon-btn:hover { background: var(--gold-10); }
.nav-icon-btn .badge {
    position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px;
    display: flex; align-items: center; justify-content: center;
    background: var(--danger); color: #fff; font-size: 0.65rem; font-weight: 700;
    border-radius: 10px; padding: 0 4px; border: 2px solid var(--bg);
}

/* Nav search */
.nav-search-form { display: flex; }
.nav-search-input {
    width: 160px; padding: 0.35rem 0.7rem; background: var(--bg-alt);
    border: 1px solid var(--border); border-radius: 0;
    color: var(--text); font-family: var(--font-display); font-size: 0.78rem;
    transition: all var(--transition); letter-spacing: 0.3px;
}
.nav-search-input:focus { outline: none; border-color: var(--gold); background: var(--bg-card); width: 220px; }
.nav-search-input::placeholder { color: var(--text-muted); }

.nav-hide-mobile { }
.nav-show-mobile-only { display: none; }

/* Hamburger */
.nav-hamburger {
    display: none; background: none; border: none; cursor: pointer;
    width: 36px; height: 36px; position: relative; margin-left: auto; margin-right: 0.5rem;
    min-width: 36px; min-height: 36px; /* touch-friendly */
    display: none; align-items: center; justify-content: center;
}
.nav-hamburger span {
    display: block; position: absolute; height: 2px; width: 20px; background: var(--text-secondary);
    border-radius: 1px; transition: all 0.25s ease; left: 8px;
}
.nav-hamburger span:nth-child(1) { top: 10px; }
.nav-hamburger span:nth-child(2) { top: 17px; }
.nav-hamburger span:nth-child(3) { top: 24px; }
.nav-hamburger.open span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { top: 17px; transform: rotate(-45deg); }

/* User dropdown — click-based for mobile */
.user-menu { position: relative; }
.user-dropdown {
    display: none; position: absolute; top: calc(100% + 8px); right: 0; min-width: 220px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 0;
    padding: 0.5rem 0; box-shadow: var(--shadow-lg); z-index: 1001;
}
.user-dropdown.open { display: block; }
@media (hover: hover) {
    .user-menu:hover .user-dropdown { display: block; }
}
.user-dropdown a { display: block; padding: 0.55rem 1.2rem; color: var(--text-secondary); font-family: var(--font-display); font-size: 0.82rem; transition: all var(--transition); min-height: 44px; display: flex; align-items: center; }
.user-dropdown a:hover { background: var(--gold-10); color: var(--text); }
.user-dropdown .divider { height: 1px; background: var(--border); margin: 0.3rem 0; }

/* Admin button */
.btn-admin {
    background: var(--gold-10); color: var(--gold);
    border: 1px solid var(--gold-20); font-size: 0.75rem;
    font-family: var(--font-display); letter-spacing: 1px; text-transform: uppercase;
}
.btn-admin:hover { background: var(--gold-20); }

/* ═══════════════════════════════════════════════════
   BUTTON SYSTEM
   ═══════════════════════════════════════════════════ */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1.4rem;
    font-family: var(--font-display); font-size: 0.8rem; font-weight: 500;
    border: 1px solid transparent; border-radius: 0;
    cursor: pointer; transition: all var(--transition); letter-spacing: 0.5px;
    min-height: 44px; text-transform: uppercase;
}
.btn-primary {
    background: var(--bg-deep); color: var(--text-light); border-color: var(--bg-deep);
}
[data-theme="light"] .btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover {
    background: var(--gold-dark); border-color: var(--gold-dark); color: #fff;
    transform: translateY(-1px); box-shadow: var(--shadow-md);
}
.btn-ghost { background: transparent; color: var(--text-secondary); border-color: var(--border); }
.btn-ghost:hover { background: var(--gold-10); color: var(--text); border-color: var(--gold); }
.btn-glow {
    background: var(--gold-10); color: var(--gold); border-color: var(--gold-20);
}
.btn-glow:hover { background: var(--gold-20); box-shadow: var(--shadow-sm); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: 0.3rem 0.8rem; font-size: 0.72rem; min-height: 36px; }
.btn-xs { padding: 0.2rem 0.5rem; font-size: 0.68rem; min-height: 28px; }

/* ═══════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════ */
.page-content { padding-top: calc(var(--nav-height) + var(--safe-top) + 1.5rem); padding-bottom: calc(var(--chat-height) + var(--safe-bottom) + 2.5rem); min-height: 100vh; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 700px; margin: 0 auto; padding: 0 1.5rem; }

/* ═══════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════ */
.card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 0; padding: 1.75rem;
    transition: all var(--transition); position: relative;
}
.card::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 30px; height: 2px; background: var(--gold);
}
.card:hover { border-color: var(--gold-20); box-shadow: var(--shadow-sm); }
.card-glow { }
.card-glow::before { width: 30px; }
.card-glow:hover::before { background: var(--gold); }

/* ═══════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════ */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-family: var(--font-display); font-size: 0.78rem; font-weight: 500; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }
.form-control {
    width: 100%; padding: 0.65rem 0.9rem; background: var(--bg);
    border: 1px solid var(--border); border-radius: 0;
    color: var(--text); font-family: var(--font-body); font-size: 0.9rem;
    transition: all var(--transition); min-height: 44px;
}
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: none; background: var(--bg-card); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control {
    cursor: pointer; appearance: none; font-family: var(--font-display);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238A8A8A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0.8rem center; padding-right: 2.2rem;
}

/* ═══════════════════════════════════════════════════
   FLASH MESSAGES
   ═══════════════════════════════════════════════════ */
.flash-messages { position: fixed; top: calc(var(--nav-height) + var(--safe-top) + 0.75rem); right: 1rem; z-index: 2000; display: flex; flex-direction: column; gap: 0.5rem; max-width: 380px; }
.flash { padding: 0.7rem 1.1rem; border-radius: 0; font-family: var(--font-display); font-size: 0.82rem; animation: flash-in 0.4s ease; border-left: 3px solid var(--text-muted); background: var(--bg-card); }
.flash-success { border-left-color: var(--success); color: var(--success); }
.flash-danger { border-left-color: var(--danger); color: var(--danger); }
.flash-info { border-left-color: var(--info); color: var(--info); }
@keyframes flash-in { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }

/* ═══════════════════════════════════════════════════
   CHAT BAR
   ═══════════════════════════════════════════════════ */
.chat-bar {
    position: fixed; bottom: 0; left: 0; right: 0;
    height: calc(var(--chat-height) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    z-index: 1000; display: flex; align-items: center; padding-left: 1.5rem; padding-right: 1.5rem; gap: 0.75rem;
    background: var(--bg); border-top: 1px solid var(--border);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.chat-bar .chat-icon { color: var(--gold); font-size: 1.1rem; opacity: 0.7; }
.chat-input {
    flex: 1; padding: 0.6rem 1rem; background: var(--bg-alt);
    border: 1px solid var(--border); border-radius: 0;
    color: var(--text); font-family: var(--font-body); font-size: 0.9rem; transition: all var(--transition);
    min-height: 44px;
}
.chat-input:focus { outline: none; border-color: var(--gold); background: var(--bg-card); }
.chat-send {
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    background: var(--text); border: 1px solid var(--text); border-radius: 0;
    color: var(--bg); cursor: pointer; transition: all var(--transition); font-size: 0.95rem; flex-shrink: 0;
}
.chat-send:hover { background: var(--gold); border-color: var(--gold); }
.chat-response {
    position: fixed; bottom: calc(var(--chat-height) + var(--safe-bottom) + 8px);
    left: 1.5rem; right: 1.5rem;
    max-width: 700px; margin: 0 auto; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: 0;
    padding: 1rem 1.3rem; font-size: 0.88rem; line-height: 1.7; color: var(--text);
    display: none; box-shadow: var(--shadow-lg);
    animation: slide-up 0.3s ease;
}
.chat-response.visible { display: block; }
@keyframes slide-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ═══════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════ */
.hero {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: calc(100vh - var(--nav-height) - var(--chat-height)); text-align: center; padding: 5rem 1.5rem;
    position: relative;
}
.hero::before {
    content: ''; position: absolute; top: 40px; left: 50%; transform: translateX(-50%);
    width: 40px; height: 1px; background: var(--gold);
}
.hero-title { font-family: var(--font-display); font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 700; line-height: 1.05; letter-spacing: -1px; margin-bottom: 1.25rem; color: var(--text); }
.hero-title .gradient { color: var(--text); -webkit-text-fill-color: var(--text); background: none; }
.hero-sub { font-family: var(--font-body); font-size: 1.05rem; color: var(--text-secondary); max-width: 520px; margin-bottom: 2rem; line-height: 1.7; font-style: italic; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ═══════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════ */
.section-header { margin-bottom: 2.5rem; }
.section-header h1 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; letter-spacing: -0.3px; margin-bottom: 0.5rem; color: var(--text); }
.section-header h1::after { content: ''; display: block; width: 40px; height: 2px; background: var(--gold); margin-top: 0.5rem; }
.section-header p { font-family: var(--font-body); color: var(--text-secondary); font-size: 0.92rem; max-width: 600px; font-style: italic; }

.content-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.content-card { padding: 1.5rem; }
.content-card h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 500; margin-bottom: 0.6rem; color: var(--text); }
.content-card p { font-family: var(--font-body); font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; }
.content-card .tag, .tag {
    display: inline-block; padding: 0.15rem 0.55rem; font-family: var(--font-display);
    font-size: 0.68rem; border-radius: 0; letter-spacing: 1px; text-transform: uppercase;
    background: var(--gold-10); color: var(--gold); margin-top: 0.75rem; border: 1px solid var(--gold-20);
}

/* ═══════════════════════════════════════════════════
   VOTING
   ═══════════════════════════════════════════════════ */
.vote-controls {
    display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
    flex-shrink: 0; min-width: 40px;
}
.vote-btn {
    background: none; border: none; cursor: pointer; padding: 4px;
    color: var(--text-muted); transition: all var(--transition);
    width: 32px; height: 28px; display: flex; align-items: center; justify-content: center;
    border-radius: 4px; font-size: 1rem;
    -webkit-tap-highlight-color: transparent;
}
.vote-btn:hover { background: var(--gold-10); }
.vote-btn.upvoted { color: var(--upvote); }
.vote-btn.downvoted { color: var(--downvote); }
.vote-score {
    font-weight: 700; font-size: 0.85rem; color: var(--text-secondary);
    font-family: var(--font-mono); line-height: 1;
}
.vote-score.positive { color: var(--upvote); }
.vote-score.negative { color: var(--downvote); }

/* ═══════════════════════════════════════════════════
   PROFILE
   ═══════════════════════════════════════════════════ */
.profile-header { display: flex; align-items: center; gap: 1.75rem; margin-bottom: 2.5rem; }
.profile-avatar { width: 110px; height: 110px; border-radius: 50%; border: 3px solid var(--border-glow); flex-shrink: 0; }
.profile-info h1 { font-size: 1.6rem; font-weight: 700; }
.profile-info .username { color: var(--text-muted); font-size: 0.85rem; font-family: var(--font-mono); }
.profile-info .bio { color: var(--text-secondary); margin-top: 0.4rem; max-width: 500px; font-size: 0.9rem; }
.profile-rank { font-size: 0.85rem; color: var(--singularity); }
.profile-stats { display: flex; gap: 1.25rem; font-size: 0.82rem; color: var(--text-muted); flex-wrap: wrap; }
.profile-section-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; color: var(--text-secondary); margin-top: 2rem; }
.profile-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; flex-wrap: wrap; }

.achievement-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.achievement-badge {
    display: flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.8rem;
    border-radius: 20px; font-size: 0.8rem; border: 1px solid var(--border-subtle);
    background: var(--bg-card);
}
.achievement-icon { font-size: 1rem; }
.achievement-name { color: var(--text-secondary); }
.achievement-common { border-color: var(--border); }
.achievement-rare { border-color: rgba(52, 152, 219, 0.3); background: rgba(52, 152, 219, 0.05); }
.achievement-epic { border-color: rgba(142, 68, 173, 0.3); background: rgba(142, 68, 173, 0.05); }
.achievement-legendary { border-color: rgba(255, 200, 100, 0.3); background: var(--gold-10); }

/* ═══════════════════════════════════════════════════
   SETTINGS
   ═══════════════════════════════════════════════════ */
.settings-section { margin-bottom: 2.5rem; }
.settings-section h2 { font-size: 1.2rem; font-weight: 600; margin-bottom: 1.25rem; padding-bottom: 0.65rem; border-bottom: 1px solid var(--border-subtle); }

/* ═══════════════════════════════════════════════════
   FORUM
   ═══════════════════════════════════════════════════ */
.forum-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.forum-toolbar { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.forum-categories, .feed-filters { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.forum-categories a, .feed-filters a, .sort-btn {
    padding: 0.3rem 0.8rem; font-size: 0.8rem; border-radius: 20px;
    color: var(--text-secondary); border: 1px solid var(--border-subtle); transition: all var(--transition);
    min-height: 36px; display: inline-flex; align-items: center;
    text-decoration: none; cursor: pointer; background: none; font-family: var(--font-sans);
}
.forum-categories a:hover, .forum-categories a.active,
.feed-filters a:hover, .feed-filters a.active,
.sort-btn:hover, .sort-btn.active {
    color: var(--singularity); border-color: var(--gold-20); background: var(--gold-10);
}
.forum-list { display: flex; flex-direction: column; gap: 0.5rem; }
.forum-item {
    display: flex; align-items: flex-start; gap: 0.75rem; padding: 1rem 1.25rem;
    border-radius: 0; background: var(--bg-card);
    border: 1px solid var(--border); transition: all var(--transition);
}
.forum-item:hover { border-color: var(--gold-20); box-shadow: var(--shadow-sm); }
.forum-item-content { flex: 1; min-width: 0; }
.forum-item-content h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.2rem; }
.forum-item-content h3 a { color: var(--text-primary); }
.forum-item-content h3 a:hover { color: var(--singularity); }
.forum-item-meta { font-size: 0.78rem; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; }
.forum-item-meta a { color: var(--text-secondary); }
.forum-item-actions { display: flex; gap: 0.4rem; margin-top: 0.5rem; flex-wrap: wrap; }

/* @mention links */
.mention { color: var(--singularity); font-weight: 500; }
.mention:hover { text-decoration: underline; }

/* Bookmark button */
.bookmark-btn {
    background: none; border: none; cursor: pointer; color: var(--text-muted);
    transition: all var(--transition); padding: 4px; font-size: 0.85rem;
    -webkit-tap-highlight-color: transparent;
}
.bookmark-btn:hover { color: var(--singularity); }
.bookmark-btn.bookmarked { color: var(--singularity); }

/* Comments */
.comment { padding: 1rem; border-left: 2px solid var(--border-subtle); margin-bottom: 0.75rem; background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0; }
.comment-meta { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.4rem; display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; }
.comment-body { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }
.comment-actions { display: flex; gap: 0.5rem; margin-top: 0.4rem; align-items: center; }
.comment-action-btn {
    background: none; border: none; cursor: pointer; color: var(--text-muted);
    font-size: 0.75rem; transition: color var(--transition); padding: 2px 4px;
    font-family: var(--font-sans); min-height: 28px; display: inline-flex; align-items: center;
}
.comment-action-btn:hover { color: var(--text-secondary); }
.comment-replies { margin-left: 1.5rem; margin-top: 0.5rem; }
.edited-tag { font-size: 0.7rem; color: var(--text-muted); font-style: italic; }

/* ═══════════════════════════════════════════════════
   SEARCH RESULTS
   ═══════════════════════════════════════════════════ */
.search-header { margin-bottom: 2rem; }
.search-header h1 { font-size: 1.5rem; }
.search-result-section { margin-bottom: 2rem; }
.search-result-section h2 { font-size: 1.1rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-subtle); }
.search-user-item { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1rem; border-radius: var(--radius); transition: background var(--transition); }
.search-user-item:hover { background: var(--bg-alt); }

/* ═══════════════════════════════════════════════════
   NOTIFICATIONS
   ═══════════════════════════════════════════════════ */
.notif-list { display: flex; flex-direction: column; gap: 0.25rem; }
.notif-item {
    display: flex; align-items: center; gap: 1rem; padding: 0.85rem 1.25rem;
    border-radius: 0; background: var(--bg-card);
    border: 1px solid var(--border); transition: all var(--transition);
}
.notif-item:hover { border-color: var(--gold-20); }
.notif-unread { border-left: 3px solid var(--gold); }
.notif-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.notif-content { flex: 1; min-width: 0; }
.notif-message { font-size: 0.88rem; color: var(--text-primary); }
.notif-time { font-size: 0.75rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════
   MESSAGES
   ═══════════════════════════════════════════════════ */
.conversation-list { display: flex; flex-direction: column; gap: 0.25rem; }
.conversation-item {
    display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem;
    border-radius: 0; background: var(--bg-card);
    border: 1px solid var(--border); transition: all var(--transition);
}
.conversation-item:hover { border-color: var(--gold-20); }
.conversation-unread { border-left: 3px solid var(--gold); }
.conversation-avatar { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; }
.conversation-info { flex: 1; min-width: 0; }
.conversation-name { font-weight: 600; font-size: 0.9rem; }
.conversation-preview { font-size: 0.82rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-time { font-size: 0.72rem; color: var(--text-muted); flex-shrink: 0; }

.message-thread { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; max-height: 60vh; overflow-y: auto; padding: 0.5rem; }
.message-bubble {
    max-width: 80%; padding: 0.75rem 1rem; border-radius: var(--radius-lg);
    font-size: 0.9rem; line-height: 1.6;
}
.message-sent {
    align-self: flex-end; background: var(--text); color: var(--bg);
    border-bottom-right-radius: 2px;
}
.message-received {
    align-self: flex-start; background: var(--bg-alt);
    border: 1px solid var(--border); color: var(--text-secondary); border-bottom-left-radius: 2px;
}
.message-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.2rem; }
.message-input-area { display: flex; gap: 0.75rem; align-items: flex-end; }
.message-input-area .form-control { flex: 1; min-height: 44px; }

/* ═══════════════════════════════════════════════════
   BOOKMARKS PAGE
   ═══════════════════════════════════════════════════ */
.bookmarks-section { margin-bottom: 2rem; }
.bookmarks-section h2 { font-size: 1.1rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-subtle); }

/* ═══════════════════════════════════════════════════
   AUTH
   ═══════════════════════════════════════════════════ */
.auth-container { max-width: 440px; margin: 0 auto; padding: 4rem 1.5rem 2rem; }
.auth-card { padding: 2.5rem; border: 1px solid var(--border); background: var(--bg-card); }
.auth-card h1 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin-bottom: 0.4rem; text-align: center; }
.auth-card .subtitle { text-align: center; color: var(--text-muted); font-family: var(--font-body); font-size: 0.88rem; margin-bottom: 1.75rem; font-style: italic; }
.auth-footer { text-align: center; margin-top: 1.25rem; font-family: var(--font-display); font-size: 0.82rem; color: var(--text-muted); }
.auth-footer a { color: var(--gold); }
.field-errors { list-style: none; margin-top: 0.25rem; }
.field-errors li { color: var(--danger); font-size: 0.8rem; }

/* ═══════════════════════════════════════════════════
   FEED (Legacy — kept for compatibility)
   ═══════════════════════════════════════════════════ */
.feed-list { display: flex; flex-direction: column; gap: 1rem; }
.feed-item { padding: 1.5rem; position: relative; }
.feed-pinned { border-color: var(--gold-20); }
.feed-pin-badge { font-size: 0.72rem; color: var(--singularity); margin-bottom: 0.5rem; }
.feed-item-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.feed-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.feed-author { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
.feed-rank { font-size: 0.75rem; color: var(--text-muted); margin-left: 0.4rem; }
.feed-meta { font-size: 0.75rem; color: var(--text-muted); }
.feed-category { color: var(--singularity); opacity: 0.7; }
.feed-body { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.8; white-space: pre-wrap; margin-bottom: 0.75rem; }
.feed-reactions { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.reaction-btn {
    display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.25rem 0.6rem;
    background: var(--gold-10); border: 1px solid var(--border-subtle);
    border-radius: 20px; font-size: 0.8rem; color: var(--text-secondary);
    cursor: pointer; transition: all var(--transition); font-family: var(--font-sans);
    min-height: 32px; -webkit-tap-highlight-color: transparent;
}
.reaction-btn:hover { background: var(--gold-10); border-color: var(--gold-20); color: var(--text-primary); }
.reaction-btn span { font-size: 0.78rem; }

/* ═══════════════════════════════════════════════════
   X/TWITTER-STYLE FEED SYSTEM
   ═══════════════════════════════════════════════════ */

/* 3-column layout */
.feed-page { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
.feed-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 300px;
    gap: 1.5rem;
    align-items: start;
}

/* Sidebars */
.feed-sidebar { position: sticky; top: calc(var(--nav-height) + var(--safe-top) + 1rem); }
.sidebar-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 0; padding: 1.25rem; margin-bottom: 1rem;
}
.sidebar-title {
    font-family: var(--font-display); font-size: 0.78rem; font-weight: 500; color: var(--text-muted);
    margin-bottom: 1rem; letter-spacing: 2px; text-transform: uppercase;
}
.sidebar-profile { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.sidebar-avatar { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--border-glow); }
.sidebar-name { font-weight: 600; font-size: 0.92rem; }
.sidebar-handle { font-size: 0.78rem; color: var(--text-muted); font-family: var(--font-mono); }
.sidebar-stats { display: flex; gap: 1.25rem; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.sidebar-stats a { color: var(--text-muted); transition: color var(--transition); }
.sidebar-stats a:hover { color: var(--text-primary); }
.stat-num { font-weight: 700; color: var(--text-primary); }
.sidebar-rank { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--singularity); }
.xp-badge {
    margin-left: auto; padding: 0.15rem 0.5rem; background: var(--gold-10);
    border-radius: 10px; font-size: 0.72rem; font-weight: 600; font-family: var(--font-mono);
}
.sidebar-categories { display: flex; flex-direction: column; gap: 0.25rem; }
.cat-pill {
    display: block; padding: 0.5rem 0.75rem; border-radius: var(--radius);
    color: var(--text-secondary); font-size: 0.85rem; transition: all var(--transition);
}
.cat-pill:hover { background: var(--gold-10); color: var(--text-primary); }
.cat-pill.active { background: var(--gold-10); color: var(--singularity); border-left: 2px solid var(--singularity); }

/* Trending */
.trending-list { display: flex; flex-direction: column; gap: 0.1rem; }
.trending-item {
    display: flex; flex-direction: column; padding: 0.6rem 0.75rem;
    border-radius: var(--radius); transition: background var(--transition);
}
.trending-item:hover { background: var(--gold-10); }
.trending-category { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.trending-label { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }

/* Who to follow */
.who-to-follow { font-size: 0.85rem; }

/* Tab bar */
.feed-tab-bar {
    display: flex; border-bottom: 1px solid var(--border);
    background: var(--bg); backdrop-filter: blur(10px);
    position: sticky; top: calc(var(--nav-height) + var(--safe-top));
    z-index: 10; margin-bottom: 0;
}
.feed-tab {
    flex: 1; text-align: center; padding: 0.9rem 0; font-size: 0.88rem;
    font-weight: 500; color: var(--text-secondary); transition: all var(--transition);
    position: relative;
}
.feed-tab:hover { background: var(--gold-10); color: var(--text-primary); }
.feed-tab.active { color: var(--text-primary); font-weight: 700; }
.feed-tab.active::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 40px; height: 2px;
    background: var(--gold);
}

/* Tweet Composer */
.tweet-composer {
    display: flex; gap: 0.75rem; padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
}
.tweet-composer-reply {
    border-bottom: none; background: transparent; padding: 0.75rem 0;
}
.composer-avatar { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; }
.composer-form { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.composer-input-area { width: 100%; }
.composer-textarea {
    width: 100%; background: transparent; border: none; color: var(--text-primary);
    font-family: var(--font-sans); font-size: 1.05rem; line-height: 1.6;
    resize: none; overflow: hidden; min-height: 48px; padding: 0.5rem 0;
}
.composer-textarea:focus { outline: none; }
.composer-textarea::placeholder { color: var(--text-muted); }
.composer-image-preview {
    position: relative; display: inline-block; margin-top: 0.5rem;
    max-width: 100%; border-radius: var(--radius-lg); overflow: hidden;
}
.composer-image-preview img {
    max-width: 100%; max-height: 300px; border-radius: var(--radius-lg);
    object-fit: cover;
}
.remove-image-btn {
    position: absolute; top: 8px; right: 8px; width: 28px; height: 28px;
    background: rgba(0, 0, 0, 0.7); color: #fff; border: none; border-radius: 50%;
    cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
    transition: background var(--transition);
}
.remove-image-btn:hover { background: rgba(0, 0, 0, 0.9); }
.composer-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    border-top: 1px solid var(--border-subtle); padding-top: 0.5rem; margin-top: 0.25rem;
}
.composer-tools { display: flex; align-items: center; gap: 0.5rem; }
.composer-tool-btn {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
    color: var(--singularity); transition: background var(--transition);
}
.composer-tool-btn:hover { background: var(--gold-10); }
.composer-select {
    background: transparent; border: 1px solid var(--border-subtle); color: var(--text-secondary);
    font-size: 0.78rem; padding: 0.25rem 0.5rem; border-radius: 20px;
    font-family: var(--font-sans); cursor: pointer;
    appearance: none; -webkit-appearance: none;
}
.composer-right { display: flex; align-items: center; gap: 0.75rem; }
.char-count { font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-mono); }
.composer-post-btn { border-radius: 20px; padding: 0.45rem 1.2rem; font-weight: 700; }

/* Tweet cards */
.tweet-feed { display: flex; flex-direction: column; }
.tweet {
    padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition); position: relative;
}
.tweet:hover { background: var(--bg-alt); }
.tweet-pinned { border-left: 3px solid var(--singularity); }
.tweet-expanded { padding: 1.25rem; border-bottom: 1px solid var(--border-subtle); }
.tweet-reply { border-left: 2px solid rgba(255, 200, 100, 0.1); }

.tweet-context {
    display: flex; align-items: center; gap: 0.4rem;
    font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.4rem;
    padding-left: 56px;
}
.tweet-context a { color: var(--text-muted); font-weight: 500; }
.tweet-context a:hover { color: var(--text-primary); }

.tweet-body { display: flex; gap: 0.75rem; }
.tweet-avatar { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; }
.tweet-avatar-lg { width: 52px; height: 52px; }
.tweet-content { flex: 1; min-width: 0; }
.tweet-header { display: flex; align-items: center; gap: 0.3rem; flex-wrap: wrap; }
.tweet-name { font-weight: 700; font-size: 0.92rem; color: var(--text-primary); }
.tweet-name:hover { text-decoration: underline; }
.tweet-handle { font-size: 0.82rem; color: var(--text-muted); font-family: var(--font-mono); }
.tweet-rank { display: inline-flex; align-items: center; margin-left: 0.1rem; }
.tweet-dot { color: var(--text-muted); font-size: 0.75rem; }
.tweet-time { font-size: 0.82rem; color: var(--text-muted); }
.tweet-time:hover { text-decoration: underline; color: var(--text-secondary); }

.tweet-replying-to { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.15rem; }
.tweet-replying-to a { color: var(--singularity); }

.tweet-text {
    font-size: 0.94rem; color: var(--text-secondary); line-height: 1.7;
    white-space: pre-wrap; word-wrap: break-word; margin-top: 0.3rem;
}
.tweet-text-expanded { font-size: 1.15rem; line-height: 1.65; color: var(--text-primary); }

.tweet-image {
    margin-top: 0.75rem; border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border-subtle); max-height: 450px;
}
.tweet-image img {
    width: 100%; max-height: 450px; object-fit: cover;
    cursor: pointer; transition: opacity var(--transition);
}
.tweet-image img:hover { opacity: 0.92; }
.tweet-image-expanded { max-height: 600px; }
.tweet-image-expanded img { max-height: 600px; }

.tweet-category-tag {
    display: inline-block; margin-top: 0.5rem; padding: 0.1rem 0.55rem;
    font-size: 0.72rem; border-radius: 4px; text-transform: capitalize;
    background: var(--gold-10); color: var(--singularity);
    letter-spacing: 0.3px;
}

.tweet-expanded-meta {
    display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap;
    margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--border-subtle);
    font-size: 0.82rem; color: var(--text-muted);
}
.tweet-expanded-stats {
    display: flex; gap: 1.5rem; padding: 0.75rem 0;
    border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle);
    font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem;
}
.tweet-expanded-stats strong { color: var(--text-primary); font-weight: 700; }

/* Tweet action bar */
.tweet-actions {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 0.6rem; max-width: 400px;
}
.tweet-action {
    display: inline-flex; align-items: center; gap: 0.35rem;
    color: var(--text-muted); font-size: 0.82rem; padding: 0.3rem 0.5rem;
    border-radius: 50px; transition: all var(--transition);
    background: none; border: none; cursor: pointer; font-family: var(--font-sans);
    -webkit-tap-highlight-color: transparent; text-decoration: none;
}
.tweet-action:hover { color: var(--text-secondary); }
.tweet-action-reply:hover { color: var(--info); background: rgba(52, 152, 219, 0.08); }
.tweet-action-repost:hover { color: var(--success); background: rgba(46, 204, 113, 0.08); }
.tweet-action-react:hover { color: var(--plasma-rose); background: rgba(120, 40, 74, 0.12); }
.tweet-action-bookmark:hover { color: var(--singularity); background: var(--gold-10); }
.tweet-action-bookmark.bookmarked { color: var(--singularity); }
.tweet-action-share:hover { color: var(--info); background: rgba(52, 152, 219, 0.08); }
.tweet-action-form { display: inline; }
.tweet-action svg { flex-shrink: 0; }
.tweet-owner-actions { margin-top: 0.4rem; }
.tweet-action-link {
    background: none; border: none; color: var(--text-muted); font-size: 0.75rem;
    cursor: pointer; font-family: var(--font-sans); padding: 0.2rem 0.5rem;
    border-radius: 4px; transition: all var(--transition);
}
.tweet-action-link:hover { color: var(--text-secondary); background: var(--gold-10); }

/* Reaction picker (popup) */
.reaction-picker {
    display: flex; gap: 0.3rem; flex-wrap: wrap; margin-top: 0.4rem;
    padding: 0.4rem 0.6rem; background: var(--bg-card);
    border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
    animation: fade-in 0.15s ease;
}
.reaction-pick {
    display: inline-flex; align-items: center; gap: 0.25rem;
    padding: 0.3rem 0.55rem; background: none; border: 1px solid transparent;
    border-radius: 20px; font-size: 0.78rem; color: var(--text-secondary);
    cursor: pointer; transition: all var(--transition); font-family: var(--font-sans);
}
.reaction-pick:hover { background: var(--gold-10); border-color: var(--gold-20); color: var(--text-primary); }
@keyframes fade-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* Empty state */
.tweet-empty {
    text-align: center; padding: 4rem 2rem; color: var(--text-muted);
}
.tweet-empty h3 { font-size: 1.3rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
.tweet-empty p { font-size: 0.92rem; max-width: 400px; margin: 0 auto; }

/* Reply composer */
.reply-composer { margin-top: 0.5rem; padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--border-subtle); }
.reply-context { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.reply-context a { color: var(--singularity); }
.thread-replies { margin-top: 0; }
.back-link {
    display: inline-flex; align-items: center; gap: 0.3rem;
    color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1rem;
    transition: color var(--transition);
}
.back-link:hover { color: var(--text-primary); }

/* Image Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(0, 0, 0, 0.9); display: flex;
    align-items: center; justify-content: center;
    cursor: pointer; animation: fade-in 0.2s ease;
}
.lightbox img {
    max-width: 95vw; max-height: 95vh; object-fit: contain;
    border-radius: var(--radius); cursor: default;
}
.lightbox-close {
    position: absolute; top: 1rem; right: 1.5rem;
    background: rgba(255, 255, 255, 0.1); border: none;
    color: #fff; font-size: 2rem; width: 44px; height: 44px;
    border-radius: 50%; cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }

/* ═══════════════════════════════════════════════════
   PROOF BOARD
   ═══════════════════════════════════════════════════ */
.proof-status-badge { font-size: 1.4rem; flex-shrink: 0; width: 40px; text-align: center; }
.proof-thesis { padding: 1.2rem; background: rgba(8, 6, 15, 0.4); border-radius: var(--radius); border-left: 3px solid var(--singularity); }
.proof-chain-visual { position: relative; padding-left: 24px; }
.proof-node { position: relative; margin-bottom: 1.5rem; }
.proof-node-connector {
    position: absolute; left: -24px; top: 0; bottom: -1.5rem; width: 2px;
    background: linear-gradient(to bottom, rgba(255, 200, 100, 0.2), rgba(25, 55, 120, 0.2));
}
.proof-node:last-child .proof-node-connector { display: none; }
.proof-node::before {
    content: ''; position: absolute; left: -29px; top: 10px; width: 12px; height: 12px;
    border-radius: 50%; background: var(--void-card); border: 2px solid rgba(255, 200, 100, 0.3);
}
.proof-node-type {
    display: inline-block; padding: 0.15rem 0.5rem; font-size: 0.7rem; border-radius: 4px;
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.5rem;
    background: var(--gold-10); color: var(--text-muted);
}
.proof-type-data { color: var(--info); background: rgba(52, 152, 219, 0.1); }
.proof-type-equation { color: var(--singularity); background: var(--gold-10); }
.proof-type-citation { color: var(--cosmic-teal); background: rgba(15, 80, 90, 0.15); }
.proof-type-observation { color: #9b59b6; background: rgba(155, 89, 182, 0.1); }
.proof-node-body { padding: 1rem; background: rgba(15, 12, 30, 0.5); border: 1px solid var(--border-subtle); border-radius: var(--radius); }

/* ═══════════════════════════════════════════════════
   VAULT
   ═══════════════════════════════════════════════════ */
.vault-seal-icon { font-size: 1.4rem; flex-shrink: 0; width: 40px; text-align: center; }

/* ═══════════════════════════════════════════════════
   TIMELINE
   ═══════════════════════════════════════════════════ */
.timeline-container { position: relative; max-width: 900px; margin: 0 auto; padding: 2rem 0; }
.timeline-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, rgba(255, 200, 100, 0.2), rgba(25, 55, 120, 0.1)); transform: translateX(-50%); }
.timeline-event { position: relative; width: 50%; margin-bottom: 2rem; }
.timeline-left { padding-right: 3rem; text-align: right; }
.timeline-right { padding-left: 3rem; margin-left: 50%; }
.timeline-dot {
    position: absolute; top: 1.5rem; width: 14px; height: 14px; border-radius: 50%;
    background: var(--void-card); border: 2px solid rgba(220, 225, 235, 0.2); z-index: 1;
}
.timeline-left .timeline-dot { right: -7px; }
.timeline-right .timeline-dot { left: -7px; }
.dot-milestone { border-color: var(--singularity); background: rgba(255, 200, 100, 0.15); box-shadow: 0 0 12px rgba(255, 200, 100, 0.2); }
.timeline-card { padding: 1.25rem; }
.timeline-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
.timeline-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }
.timeline-date { font-size: 0.78rem; color: var(--singularity); font-weight: 600; letter-spacing: 0.5px; margin-bottom: 0.3rem; }
.timeline-meta { margin-top: 0.5rem; display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }

/* ═══════════════════════════════════════════════════
   RANKINGS
   ═══════════════════════════════════════════════════ */
.rank-legend { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.rank-badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.7rem; border-radius: 20px; font-size: 0.8rem; background: var(--gold-10); border: 1px solid var(--border-subtle); color: var(--text-secondary); }
.rank-badge small { color: var(--text-muted); font-size: 0.7rem; }

.leaderboard { display: flex; flex-direction: column; gap: 0.3rem; }
.leaderboard-row {
    display: flex; align-items: center; gap: 1rem; padding: 0.85rem 1.25rem;
    border-radius: var(--radius); background: var(--bg-alt);
    border: 1px solid var(--border-subtle); transition: all var(--transition);
}
.leaderboard-row:hover { background: var(--bg-card); border-color: var(--border); }
.leaderboard-top { border-color: rgba(255, 200, 100, 0.1); }
.leaderboard-rank { width: 36px; text-align: center; font-weight: 700; font-size: 1rem; color: var(--text-muted); flex-shrink: 0; }
.leaderboard-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.leaderboard-info { flex: 1; min-width: 0; }
.leaderboard-name { font-weight: 600; font-size: 0.92rem; color: var(--text-primary); }
.leaderboard-meta { font-size: 0.75rem; color: var(--text-muted); }
.leaderboard-xp { font-weight: 700; font-size: 0.95rem; color: var(--singularity); font-family: var(--font-mono); flex-shrink: 0; }

/* ═══════════════════════════════════════════════════
   ADMIN
   ═══════════════════════════════════════════════════ */
.admin-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.admin-stat-card { padding: 1.25rem; text-align: center; background: rgba(15, 12, 30, 0.5); border: 1px solid var(--border-subtle); border-radius: var(--radius); }
.admin-stat-value { font-size: 2rem; font-weight: 700; color: var(--text-primary); font-family: var(--font-mono); }
.admin-stat-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 0.25rem; }
.admin-nav { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2rem; }
.admin-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table th { text-align: left; padding: 0.6rem 0.8rem; color: var(--text-muted); font-weight: 500; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border-subtle); }
.admin-table td { padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--border-subtle); color: var(--text-primary); }
.admin-table tr:hover td { background: var(--bg-alt); }
.admin-badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.admin-badge-admin { background: rgba(255, 200, 100, 0.12); color: var(--singularity); }
.admin-badge-banned { background: rgba(231, 76, 95, 0.12); color: var(--danger); }
.admin-badge-active { background: rgba(46, 204, 113, 0.12); color: var(--success); }

/* ═══════════════════════════════════════════════════
   LAYERS & VISUALIZATION
   ═══════════════════════════════════════════════════ */
.layers-visual { position: relative; width: 100%; max-width: 500px; margin: 2rem auto; aspect-ratio: 1; }
.layer-ring { position: absolute; border-radius: 50%; border: 1px solid; display: flex; align-items: center; justify-content: center; transition: all 0.5s ease; cursor: pointer; }
.layer-ring:hover { transform: scale(1.03); }
.layer-ring .layer-label { position: absolute; font-size: 0.72rem; color: var(--text-secondary); white-space: nowrap; letter-spacing: 0.8px; text-transform: uppercase; }
.viz-canvas-container { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-subtle); background: var(--void); margin-bottom: 1.5rem; }
.viz-controls { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

/* ═══════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════ */
.pagination { display: flex; gap: 0.4rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.pagination a, .pagination span {
    padding: 0.35rem 0.7rem; border-radius: var(--radius); font-size: 0.85rem;
    border: 1px solid var(--border-subtle); color: var(--text-secondary);
    transition: all var(--transition); min-height: 36px; display: inline-flex; align-items: center;
}
.pagination a:hover { background: var(--gold-10); color: var(--text-primary); }
.pagination .current { background: rgba(255, 200, 100, 0.1); border-color: var(--gold-20); color: var(--singularity); }

/* ═══════════════════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════════════════ */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.flex-gap { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.empty-state { padding: 3rem 1.5rem; text-align: center; color: var(--text-muted); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--gold-10); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(220, 225, 235, 0.15); }

/* Password strength */
.password-strength { height: 3px; border-radius: 2px; margin-top: 0.35rem; background: var(--border-subtle); overflow: hidden; }
.password-strength-bar { height: 100%; border-radius: 2px; transition: width 0.3s ease, background 0.3s ease; width: 0; }
.strength-weak { background: var(--danger); width: 25%; }
.strength-fair { background: #e67e22; width: 50%; }
.strength-good { background: #f1c40f; width: 75%; }
.strength-strong { background: var(--success); width: 100%; }

/* ═══════════════════════════════════════════════════
   INLINE ICONS
   ═══════════════════════════════════════════════════ */
.icon-inline { width: 18px; height: 18px; vertical-align: middle; display: inline-block; object-fit: contain; }
.icon-xs { width: 14px; height: 14px; vertical-align: middle; display: inline-block; object-fit: contain; }
.icon-sm { width: 20px; height: 20px; vertical-align: middle; display: inline-block; object-fit: contain; }
.icon-md { width: 32px; height: 32px; vertical-align: middle; display: inline-block; object-fit: contain; }
.icon-lg { width: 48px; height: 48px; vertical-align: middle; display: inline-block; object-fit: contain; }
.icon-xl { width: 64px; height: 64px; vertical-align: middle; display: inline-block; object-fit: contain; }
.icon-feed { width: 16px; height: 16px; vertical-align: -2px; display: inline-block; object-fit: contain; margin-right: 0.3rem; filter: drop-shadow(0 0 3px rgba(255, 200, 100, 0.15)); }
.icon-empty-state { width: 48px; height: 48px; display: inline-block; object-fit: contain; filter: drop-shadow(0 0 8px rgba(255, 200, 100, 0.2)); }
.cat-pill .icon-feed { margin-right: 0.2rem; }
.feed-tab .icon-feed { margin-right: 0.25rem; }
.sidebar-title .icon-feed { margin-right: 0.3rem; vertical-align: -3px; width: 18px; height: 18px; }
.btn .icon-xs, .btn .icon-sm { margin-right: 0.15rem; vertical-align: -1px; }
.reaction-btn .icon-xs { margin-right: 0.1rem; }
.rank-badge .icon-sm { margin-right: 0.25rem; }
.user-dropdown a .icon-xs { margin-right: 0.35rem; opacity: 0.8; }
.chat-icon-img { opacity: 0.6; }
.achievement-icon .icon-md { filter: drop-shadow(0 0 6px rgba(255, 200, 100, 0.25)); }

/* ═══════════════════════════════════════════════════
   RESPONSIVE — Tablet
   ═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .nav-tabs a img { display: none; }
    .nav-tabs { gap: 0.1rem; margin-left: 1.5rem; }
    .nav-tabs a { padding: 0.35rem 0.5rem; font-size: 0.78rem; }
    .nav-search-input { width: 120px; }
    .nav-search-input:focus { width: 160px; }
    .timeline-line { left: 20px; }
    .timeline-event { width: 100%; padding-left: 50px !important; padding-right: 0 !important; margin-left: 0 !important; text-align: left !important; }
    .timeline-dot { left: 14px !important; right: auto !important; }

    /* Feed: hide right sidebar on tablet */
    .feed-layout { grid-template-columns: 240px minmax(0, 1fr); }
    .feed-sidebar-right { display: none; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — Mobile
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
    :root { --nav-height: 56px; --chat-height: 64px; }

    .nav-hamburger { display: flex; }

    .nav-tabs {
        display: none; flex-direction: column; position: fixed;
        top: calc(var(--nav-height) + var(--safe-top)); left: 0; right: 0; bottom: 0;
        background: rgba(8, 6, 15, 0.97); backdrop-filter: blur(24px);
        padding: 1rem; margin: 0; gap: 0; z-index: 999;
        overflow-y: auto; -webkit-overflow-scrolling: touch;
    }
    .nav-tabs.open { display: flex; }
    .nav-tabs li { border-bottom: 1px solid var(--border-subtle); }
    .nav-tabs a { padding: 0.9rem 0.5rem; font-size: 0.95rem; min-height: 48px; }
    .nav-tabs a img { display: none; }
    .nav-divider-mobile { display: block; height: 1px; background: rgba(255, 200, 100, 0.1); margin: 0.5rem 0; border: none; }

    .nav-search-form { display: none; }
    .nav-hide-mobile { display: none !important; }
    .nav-show-mobile-only { display: flex !important; }

    .container, .container-narrow { padding: 0 1rem; }
    .content-grid { grid-template-columns: 1fr; }
    .hero { padding: 2rem 1rem; }
    .hero-title { font-size: 1.8rem; }
    .hero-sub { font-size: 0.95rem; }

    .profile-header { flex-direction: column; text-align: center; gap: 1rem; }
    .profile-avatar { width: 90px; height: 90px; }
    .profile-stats { justify-content: center; }
    .profile-actions { justify-content: center; }

    .forum-header { flex-direction: column; align-items: stretch; }
    .forum-item { flex-direction: row; }

    .feed-item { padding: 1.25rem; }
    .feed-reactions { gap: 0.3rem; }
    .reaction-btn { padding: 0.2rem 0.5rem; font-size: 0.75rem; }

    /* Feed: single column on mobile */
    .feed-layout { grid-template-columns: 1fr; }
    .feed-sidebar-left { display: none; }
    .feed-sidebar-right { display: none; }
    .feed-page { padding: 0; }
    .tweet { padding: 0.75rem 1rem; }
    .tweet-avatar { width: 38px; height: 38px; }
    .tweet-text { font-size: 0.9rem; }
    .tweet-actions { max-width: 100%; }
    .composer-avatar { width: 38px; height: 38px; }
    .composer-textarea { font-size: 0.95rem; }
    .tweet-image { max-height: 350px; }
    .tweet-image img { max-height: 350px; }
    .tweet-context { padding-left: 48px; }

    .leaderboard-row { padding: 0.7rem 1rem; gap: 0.75rem; }
    .leaderboard-meta { display: none; }

    .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-stat-value { font-size: 1.5rem; }

    .timeline-container { padding: 1rem 0; }
    .timeline-card { padding: 1rem; }
    .timeline-card h3 { font-size: 0.9rem; }
    .timeline-card p { font-size: 0.82rem; }

    .chat-bar { padding-left: 1rem; padding-right: 1rem; gap: 0.5rem; }
    .chat-response { left: 0.75rem; right: 0.75rem; }

    .layers-visual { max-width: 320px; }

    .message-thread { max-height: 50vh; }
    .message-bubble { max-width: 90%; }

    .comment-replies { margin-left: 0.75rem; }

    .admin-stats-grid + div { grid-template-columns: 1fr !important; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — Small Mobile
   ═══════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .hero-title { font-size: 1.5rem; }
    .hero-sub { font-size: 0.88rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .admin-stats-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .admin-stat-card { padding: 0.8rem; }
    .admin-stat-value { font-size: 1.2rem; }
    .rank-legend { flex-direction: column; }
    .feed-item-header { gap: 0.5rem; }
    .feed-avatar { width: 32px; height: 32px; }
    .vote-controls { min-width: 32px; }
    .conversation-item { padding: 0.75rem 1rem; }
}


/* ═══════════════════════════════════════════════════
   σ-CITE SYSTEM — Citation Network & Confidence Badges
   ═══════════════════════════════════════════════════ */

/* ── σ-Confidence Badges ── */
.sigma-badge {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.1rem 0.4rem; border-radius: 20px;
    font-size: 0.68rem; font-weight: 700; font-family: var(--font-mono);
    letter-spacing: 0.3px; flex-shrink: 0; margin-left: 0.3rem;
    border: 1px solid transparent;
}
.sigma-1 { background: rgba(85, 90, 110, 0.3); color: #8a90a4; border-color: rgba(138, 144, 164, 0.2); }
.sigma-2 { background: rgba(52, 152, 219, 0.12); color: #5dade2; border-color: rgba(52, 152, 219, 0.2); }
.sigma-3 { background: rgba(46, 204, 113, 0.12); color: #2ecc71; border-color: rgba(46, 204, 113, 0.2); }
.sigma-4 { background: rgba(255, 165, 0, 0.12); color: #ffa500; border-color: rgba(255, 165, 0, 0.2); }
.sigma-5 {
    background: linear-gradient(135deg, rgba(255, 200, 100, 0.15), rgba(255, 140, 0, 0.15));
    color: var(--singularity); border-color: rgba(255, 200, 100, 0.3);
    box-shadow: 0 0 8px rgba(255, 200, 100, 0.1);
}

/* ── Tweet Title ── */
.tweet-title {
    font-size: 1.05rem; font-weight: 700; color: var(--text-primary);
    line-height: 1.35; margin: 0.25rem 0 0.15rem;
}
.tweet-title-expanded { font-size: 1.3rem; margin-bottom: 0.3rem; }

/* ── Citation Action Button ── */
.tweet-action-cite:hover { color: #28b4aa; background: rgba(40, 180, 170, 0.08); }
.tweet-action-cite.cited { color: #28b4aa; }
.tweet-action-cite.cited svg { fill: rgba(40, 180, 170, 0.2); }

/* ── Inline Citations on Posts ── */
.tweet-citations {
    display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap;
    margin-top: 0.5rem; padding: 0.4rem 0.6rem;
    background: rgba(40, 180, 170, 0.04); border: 1px solid rgba(40, 180, 170, 0.1);
    border-radius: var(--radius); font-size: 0.78rem;
}
.citations-label {
    color: #28b4aa; font-weight: 600; font-size: 0.72rem;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.citation-link {
    display: inline-flex; align-items: center; gap: 0.25rem;
    color: var(--text-secondary); background: rgba(40, 180, 170, 0.06);
    padding: 0.15rem 0.5rem; border-radius: 12px;
    border: 1px solid rgba(40, 180, 170, 0.1); font-size: 0.75rem;
    transition: all var(--transition); max-width: 200px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.citation-link:hover {
    background: rgba(40, 180, 170, 0.12); color: var(--text-primary);
    border-color: rgba(40, 180, 170, 0.25);
}
.citation-sigma { font-size: 0.65rem; padding: 0 0.25rem; }
.citation-more {
    color: #28b4aa; font-size: 0.75rem; font-weight: 500;
}

/* ── Citation Section (post_detail) ── */
.citation-section, .cited-by-section {
    margin: 0.75rem 0; padding: 0.75rem;
    background: rgba(40, 180, 170, 0.03);
    border: 1px solid rgba(40, 180, 170, 0.08);
    border-radius: var(--radius-lg);
}
.citation-section-title {
    display: flex; align-items: center; gap: 0.4rem;
    font-size: 0.82rem; font-weight: 600; color: #28b4aa;
    margin-bottom: 0.6rem; letter-spacing: 0.2px;
}
.citation-card {
    display: block; padding: 0.6rem 0.75rem; margin-bottom: 0.4rem;
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius); transition: all var(--transition);
    text-decoration: none;
}
.citation-card:hover {
    background: var(--bg-card);
    border-color: rgba(40, 180, 170, 0.2);
}
.citation-card-compact { padding: 0.5rem 0.65rem; }
.citation-card-header {
    display: flex; align-items: center; gap: 0.4rem;
    margin-bottom: 0.3rem;
}
.citation-card-avatar { width: 20px; height: 20px; border-radius: 50%; }
.citation-card-name { font-size: 0.8rem; font-weight: 600; color: var(--text-primary); }
.citation-card-title {
    font-size: 0.85rem; font-weight: 600; color: var(--text-primary);
    line-height: 1.3; margin-bottom: 0.15rem;
}
.citation-card-text {
    font-size: 0.78rem; color: var(--text-muted); line-height: 1.4;
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* ── Cite Stat Inline (expanded post) ── */
.cite-stat-inline { color: #28b4aa; }
.cite-stat-inline strong { color: #28b4aa; }

/* ── Sidebar: σ-Cite Stats ── */
.sidebar-cite-stats {
    display: flex; gap: 1rem; margin-top: 0.6rem; padding-top: 0.6rem;
    border-top: 1px solid var(--border-subtle);
}
.cite-stat { display: flex; flex-direction: column; align-items: center; }
.cite-stat-num {
    font-size: 1.1rem; font-weight: 700; color: #28b4aa;
    font-family: var(--font-mono);
}
.cite-stat-label { font-size: 0.7rem; color: var(--text-muted); }

/* ── σ Explainer Sidebar ── */
.sigma-explainer { display: flex; flex-direction: column; gap: 0.35rem; }
.sigma-row {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.78rem; color: var(--text-secondary);
}
.sigma-hint {
    font-size: 0.72rem; color: var(--text-muted);
    margin-top: 0.5rem; line-height: 1.5;
    border-top: 1px solid var(--border-subtle);
    padding-top: 0.5rem;
}

/* ── Composer Title Input ── */
.composer-title-input {
    width: 100%; background: transparent; border: none;
    color: var(--text-primary); font-size: 0.95rem; font-weight: 600;
    font-family: var(--font-sans); padding: 0.3rem 0;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 0.3rem; outline: none;
    transition: border-color var(--transition);
}
.composer-title-input:focus { border-color: rgba(255, 200, 100, 0.3); }
.composer-title-input::placeholder { color: var(--text-muted); font-weight: 400; }

/* ── σ-confidence select in composer ── */
.sigma-select {
    background: rgba(40, 180, 170, 0.06) !important;
    border-color: rgba(40, 180, 170, 0.15) !important;
    color: #28b4aa !important;
    font-family: var(--font-mono) !important;
    font-size: 0.75rem !important;
}

/* ── Citation Search Dropdown ── */
.cite-search-dropdown {
    background: rgba(15, 12, 30, 0.98); backdrop-filter: blur(20px);
    border: 1px solid rgba(40, 180, 170, 0.15);
    border-radius: var(--radius); margin: 0.25rem 0;
    padding: 0.5rem; z-index: 50;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.cite-search-input {
    width: 100%; background: rgba(8, 6, 15, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius); padding: 0.5rem 0.75rem;
    color: var(--text-primary); font-size: 0.88rem;
    font-family: var(--font-sans); outline: none;
    transition: border-color var(--transition);
}
.cite-search-input:focus { border-color: rgba(40, 180, 170, 0.3); }
.cite-search-input::placeholder { color: var(--text-muted); }
.cite-search-results { margin-top: 0.3rem; max-height: 300px; overflow-y: auto; }
.cite-result {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 0.6rem; border-radius: var(--radius);
    cursor: pointer; transition: background var(--transition);
}
.cite-result:hover { background: rgba(40, 180, 170, 0.08); }
.cite-result-info { display: flex; flex-direction: column; min-width: 0; }
.cite-result-title {
    font-size: 0.82rem; color: var(--text-primary); font-weight: 500;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cite-result-author { font-size: 0.72rem; color: var(--text-muted); }

/* ── Citation Chips (selected citations in composer) ── */
.citation-chips {
    display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.4rem;
}
.citation-chip {
    display: inline-flex; align-items: center; gap: 0.25rem;
    background: rgba(40, 180, 170, 0.08);
    border: 1px solid rgba(40, 180, 170, 0.15);
    border-radius: 16px; padding: 0.2rem 0.5rem;
    font-size: 0.75rem; color: #28b4aa;
}
.citation-chip svg { opacity: 0.6; }
.chip-remove {
    background: none; border: none; color: var(--text-muted);
    cursor: pointer; font-size: 0.85rem; padding: 0 0.15rem;
    line-height: 1; transition: color var(--transition);
}
.chip-remove:hover { color: var(--danger); }

/* ── σ-badge in action bar (wider spacing) ── */
.tweet-actions { max-width: 480px; }


/* ═══════════════════════════════════════════════════════════════
   RESEARCH DESIGN SYSTEM — Zenodo-Inspired Components
   Swiss Minimalist × Cosmic Dark Theme
   For presenting the Thompson Cosmological Analysis findings
   ═══════════════════════════════════════════════════════════════ */

/* ── Research Typography ── */
.font-serif { font-family: Georgia, 'Times New Roman', serif; }
.font-mono { font-family: var(--font-mono); }
.font-display { font-family: var(--font-sans); }

/* ── Part Header (section openers) ── */
.part-section {
    padding: 3rem 0 2rem;
}
.part-header {
    display: flex; align-items: flex-start; gap: 2rem;
    margin-bottom: 2rem; padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.part-icon {
    width: 56px; height: 56px; flex-shrink: 0; opacity: 0.8;
    margin-top: 4px;
}
.part-icon svg { width: 56px; height: 56px; }
.part-label {
    font-family: var(--font-display); font-size: 0.62rem; font-weight: 500;
    letter-spacing: 5px; text-transform: uppercase;
    color: var(--gold); margin-bottom: 0.5rem; display: block;
}
.part-title {
    font-family: var(--font-display); font-size: 1.8rem; font-weight: 600;
    line-height: 1.2; color: var(--text); margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}
.part-desc {
    font-family: var(--font-body);
    font-size: 0.92rem; font-style: italic;
    color: var(--text-muted); line-height: 1.55;
    max-width: 560px;
}

/* ── Research Section Headings ── */
.research-h2 {
    font-family: var(--font-display); font-size: 1.3rem; font-weight: 600;
    color: var(--text); margin-top: 2.5rem; margin-bottom: 1rem;
    line-height: 1.3; position: relative; padding-bottom: 0.5rem;
}
.research-h2::after {
    content: ''; display: block; width: 40px; height: 2px;
    background: var(--gold); margin-top: 0.5rem;
}
.research-h3 {
    font-family: var(--font-display); font-size: 0.95rem; font-weight: 500;
    color: var(--text-secondary); margin-top: 1.5rem; margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

/* ── Research Body Text ── */
.research-text {
    font-family: var(--font-body);
    font-size: 0.92rem; line-height: 1.7;
    color: var(--text-secondary); max-width: 680px;
}
.research-text p { margin-bottom: 1rem; }
.research-text strong { color: var(--text); font-weight: 600; }
.research-text em { color: var(--text-secondary); }
.lead-text {
    font-size: 1.05rem; line-height: 1.7;
    color: var(--text-secondary); margin-bottom: 1.5rem;
    font-family: var(--font-body);
    max-width: 680px;
}

/* ═══════════════════════════════════════════════════
   STAT DASHBOARD CARDS
   ═══════════════════════════════════════════════════ */
.stat-dashboard {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1rem; margin: 1.5rem 0;
}
.stat-dashboard.cols-4 { grid-template-columns: repeat(4, 1fr); }
.stat-dashboard.cols-2 { grid-template-columns: repeat(2, 1fr); }

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0; padding: 1.25rem 1rem;
    text-align: center; position: relative;
    transition: border-color var(--transition), transform var(--transition);
}
.stat-card::before {
    content: ''; position: absolute; top: 0; left: 50%;
    transform: translateX(-50%); width: 30px; height: 2px;
    background: var(--gold); border-radius: 0;
}
.stat-card:hover {
    border-color: var(--gold-20);
    transform: translateY(-2px);
}
.stat-value {
    font-family: var(--font-mono); font-size: 1.6rem; font-weight: 500;
    color: var(--text); line-height: 1; margin-bottom: 0.5rem;
}
.stat-value.gold { color: var(--gold); }
.stat-value.small { font-size: 1.2rem; }
.stat-label {
    font-family: var(--font-display); font-size: 0.62rem; font-weight: 400;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--text-muted);
}
.stat-sigma {
    font-family: var(--font-mono); font-size: 0.78rem;
    color: var(--gold); margin-top: 0.3rem;
}

@media (max-width: 640px) {
    .stat-dashboard { grid-template-columns: repeat(2, 1fr); }
    .stat-dashboard.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .stat-value { font-size: 1.4rem; }
}

/* ═══════════════════════════════════════════════════
   DISCOVERY CARDS — Gold left border, key results
   ═══════════════════════════════════════════════════ */
.discovery-card {
    background: var(--bg-card);
    border-left: 3px solid var(--gold);
    border-radius: 0;
    padding: 1.5rem 1.75rem; margin: 1.5rem 0;
    position: relative; border: 1px solid var(--border); border-left: 3px solid var(--gold);
}
.discovery-number {
    font-family: var(--font-mono); font-size: 0.58rem;
    letter-spacing: 3px; color: var(--gold);
    text-transform: uppercase; margin-bottom: 0.5rem;
}
.discovery-title {
    font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
    color: var(--text); margin-bottom: 0.4rem; line-height: 1.3;
}
.discovery-result {
    font-family: var(--font-mono); font-size: 0.85rem;
    color: var(--gold-dark); margin-bottom: 0.75rem;
    line-height: 1.5;
}
.discovery-desc {
    font-family: var(--font-body);
    font-size: 0.88rem; line-height: 1.65;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════
   VERDICT BOXES — Confirmed / Debunked / Open
   ═══════════════════════════════════════════════════ */
.verdict-box {
    border-radius: var(--radius); padding: 1.2rem 1.5rem;
    margin: 1.25rem 0; font-size: 0.88rem; line-height: 1.65;
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--text-secondary);
}
.verdict-label {
    font-family: var(--font-sans); font-weight: 700;
    font-size: 0.65rem; text-transform: uppercase;
    letter-spacing: 1.5px; margin-bottom: 0.5rem; display: block;
}

.verdict-box.confirmed {
    background: rgba(46, 204, 113, 0.06);
    border-left: 3px solid var(--success);
}
.verdict-box.confirmed .verdict-label { color: var(--success); }

.verdict-box.debunked {
    background: rgba(231, 76, 95, 0.06);
    border-left: 3px solid var(--danger);
}
.verdict-box.debunked .verdict-label { color: var(--danger); }

.verdict-box.open {
    background: var(--gold-10);
    border-left: 3px solid var(--singularity);
}
.verdict-box.open .verdict-label { color: var(--singularity); }

/* ═══════════════════════════════════════════════════
   FALSIFY BOX — What would kill this finding
   ═══════════════════════════════════════════════════ */
.falsify-box {
    background: rgba(231, 76, 95, 0.04);
    border: 1px solid rgba(231, 76, 95, 0.15);
    border-left: 3px solid var(--danger);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1rem 1.25rem; margin: 1.25rem 0;
}
.falsify-label {
    font-family: var(--font-sans); font-weight: 700;
    font-size: 0.65rem; text-transform: uppercase;
    letter-spacing: 1.5px; color: var(--danger);
    margin-bottom: 0.4rem; display: block;
}
.falsify-box p {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.85rem; color: var(--text-secondary);
    line-height: 1.6; font-style: italic;
}

/* ═══════════════════════════════════════════════════
   PARAMETER CARD — The Thompson Parameter Card
   ═══════════════════════════════════════════════════ */
.param-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0; padding: 1.75rem 2rem;
    margin: 2rem 0; position: relative; overflow: hidden;
}
.param-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}
.param-card-title {
    font-family: var(--font-display); font-size: 0.62rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 3px;
    color: var(--gold); text-align: center;
    margin-bottom: 1.2rem; padding-top: 0.25rem;
}
.param-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0.5rem 2rem;
}
.param-row {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 0.35rem 0;
    border-bottom: 1px dotted var(--border);
}
.param-row .p-label {
    font-family: var(--font-sans); font-weight: 500;
    color: var(--text-secondary); font-size: 0.82rem;
}
.param-row .p-value {
    font-family: var(--font-mono); font-weight: 600;
    color: var(--text-primary); font-size: 0.82rem;
}
.param-footer {
    text-align: center; margin-top: 1rem; padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.75rem; color: var(--text-muted);
}
.param-footer strong { color: var(--text-secondary); }

@media (max-width: 640px) {
    .param-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   VAULT CARDS — Dark background, gold gradient top
   ═══════════════════════════════════════════════════ */
.vault-card-research {
    background: rgba(8, 6, 15, 0.85);
    border: 1px solid rgba(255, 200, 100, 0.08);
    border-radius: var(--radius); padding: 1.25rem 1.5rem;
    margin: 1rem 0; position: relative; overflow: hidden;
}
.vault-card-research::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--singularity), transparent);
}
.vault-card-label {
    font-family: var(--font-mono); font-size: 0.6rem;
    letter-spacing: 3px; color: var(--singularity);
    text-transform: uppercase; margin-bottom: 0.6rem;
}
.vault-card-research p {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6;
}
.vault-card-hash {
    font-family: var(--font-mono); font-size: 0.6rem;
    color: rgba(255, 200, 100, 0.35); word-break: break-all;
    margin-top: 0.5rem;
}

/* ═══════════════════════════════════════════════════
   RESEARCH TABLES — Clean, minimal, navy-accent
   ═══════════════════════════════════════════════════ */
.research-table {
    width: 100%; border-collapse: collapse;
    margin: 1.25rem 0; font-size: 0.82rem;
}
.research-table thead th {
    font-family: var(--font-sans); font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase;
    font-size: 0.65rem; color: var(--text-muted);
    padding: 0.6rem 0.75rem;
    border-bottom: 2px solid rgba(220, 225, 235, 0.15);
    text-align: left;
}
.research-table tbody td {
    font-family: var(--font-sans); padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: top; color: var(--text-secondary);
}
.research-table tbody td.mono {
    font-family: var(--font-mono); font-size: 0.78rem;
}
.research-table tbody tr:hover {
    background: var(--bg-alt);
}
.research-table tbody tr:last-child td { border-bottom: none; }

/* ═══════════════════════════════════════════════════
   SIGNAL METER BARS — Evidence strength indicators
   ═══════════════════════════════════════════════════ */
.signal-meter {
    display: flex; align-items: center; gap: 0.5rem;
    margin: 0.3rem 0; font-size: 0.78rem;
}
.signal-meter-label {
    font-family: var(--font-sans); font-size: 0.75rem;
    color: var(--text-muted); min-width: 60px;
}
.signal-bar {
    height: 6px; border-radius: 3px; flex: 1;
    background: var(--gold-10);
    position: relative; overflow: hidden;
}
.signal-fill {
    height: 100%; border-radius: 3px;
    position: absolute; left: 0; top: 0;
    transition: width 0.6s ease-out;
}
.signal-fill.green { background: var(--success); }
.signal-fill.red { background: var(--danger); }
.signal-fill.amber { background: var(--singularity); }
.signal-fill.blue { background: var(--info); }

/* ═══════════════════════════════════════════════════
   RESEARCH BADGES — Status indicators
   ═══════════════════════════════════════════════════ */
.research-badge {
    display: inline-flex; align-items: center;
    padding: 0.15rem 0.5rem; border-radius: 3px;
    font-family: var(--font-sans); font-size: 0.65rem;
    font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
}
.research-badge.green {
    background: rgba(46, 204, 113, 0.12); color: var(--success);
    border: 1px solid rgba(46, 204, 113, 0.2);
}
.research-badge.red {
    background: rgba(231, 76, 95, 0.12); color: var(--danger);
    border: 1px solid rgba(231, 76, 95, 0.2);
}
.research-badge.amber {
    background: rgba(255, 200, 100, 0.12); color: var(--singularity);
    border: 1px solid rgba(255, 200, 100, 0.2);
}
.research-badge.blue {
    background: rgba(52, 152, 219, 0.12); color: var(--info);
    border: 1px solid rgba(52, 152, 219, 0.2);
}

/* ═══════════════════════════════════════════════════
   ABSTRACT / SUMMARY BOXES
   ═══════════════════════════════════════════════════ */
.abstract-box {
    background: var(--bg-alt);
    border-left: 3px solid var(--navy);
    border-radius: 0;
    padding: 1.5rem 1.75rem; margin: 2rem 0;
}
.abstract-box .abstract-label {
    font-family: var(--font-display); font-weight: 600;
    font-size: 0.58rem; text-transform: uppercase;
    letter-spacing: 4px; color: var(--navy);
    display: block; margin-bottom: 0.75rem;
}
.abstract-box p {
    font-family: var(--font-body);
    font-size: 0.9rem; line-height: 1.7;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════
   BREAKTHROUGH BOX — Green gradient highlight
   ═══════════════════════════════════════════════════ */
.breakthrough-box {
    background: rgba(46, 204, 113, 0.04);
    border: 1px solid rgba(46, 204, 113, 0.15);
    border-radius: var(--radius); padding: 1.25rem 1.5rem;
    margin: 1.25rem 0;
}
.breakthrough-box .bt-label {
    font-family: var(--font-sans); font-weight: 800;
    font-size: 0.65rem; text-transform: uppercase;
    letter-spacing: 2px; color: var(--success);
    margin-bottom: 0.5rem; display: block;
}
.breakthrough-box p {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.88rem; line-height: 1.65;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════
   TIMELINE (Research Investigation Arc)
   ═══════════════════════════════════════════════════ */
.research-timeline {
    margin: 1.5rem 0; padding-left: 1.5rem;
    border-left: 2px solid rgba(220, 225, 235, 0.08);
}
.timeline-item-research {
    margin: 1rem 0; position: relative;
    padding-left: 0.75rem;
}
.timeline-item-research::before {
    content: ''; position: absolute;
    left: -1.8rem; top: 0.45rem;
    width: 10px; height: 10px;
    background: var(--singularity); border-radius: 50%;
    border: 2px solid var(--void);
}
.timeline-item-research.confirmed::before { background: var(--success); }
.timeline-item-research.debunked::before { background: var(--danger); }
.timeline-item-research.open::before { background: var(--singularity); }

.timeline-gen {
    font-family: var(--font-mono); font-size: 0.7rem;
    font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.5px;
}
.timeline-gen.highlight { color: var(--success); }
.timeline-desc {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.85rem; color: var(--text-secondary);
    margin-top: 0.25rem; line-height: 1.55;
}

/* ═══════════════════════════════════════════════════
   SCORE BOX — Big centered display
   ═══════════════════════════════════════════════════ */
.score-box {
    text-align: center; margin: 3rem 0; padding: 2.5rem 1.5rem;
    background: var(--bg-deep);
    border: none; border-radius: 0;
    position: relative; color: var(--text-light);
}
.score-box::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}
.score-number {
    font-family: var(--font-mono); font-size: 3rem;
    font-weight: 500; color: var(--gold);
    line-height: 1;
}
.score-label {
    font-family: var(--font-display); font-size: 0.58rem;
    text-transform: uppercase; letter-spacing: 3px;
    color: rgba(250,250,247,0.5); margin-top: 0.5rem;
}
.score-status {
    font-family: var(--font-display); font-size: 0.82rem;
    font-weight: 400; margin-top: 0.5rem;
    color: rgba(250,250,247,0.7);
}

/* ═══════════════════════════════════════════════════
   TWO-COLUMN LAYOUT
   ═══════════════════════════════════════════════════ */
.two-col {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 2rem; margin: 1.25rem 0;
}
@media (max-width: 640px) {
    .two-col { grid-template-columns: 1fr; }
}
.two-col ul {
    list-style: disc; margin-left: 1.25rem;
    font-size: 0.85rem; color: var(--text-secondary);
    font-family: Georgia, 'Times New Roman', serif;
}
.two-col li { margin: 0.3rem 0; line-height: 1.55; }
.two-col li strong { color: var(--text-primary); }
.two-col h4 {
    font-family: var(--font-sans); font-size: 0.85rem;
    font-weight: 600; color: var(--text-primary);
    margin: 1rem 0 0.4rem; letter-spacing: 0.3px;
}
.two-col h4:first-child { margin-top: 0; }

/* ═══════════════════════════════════════════════════
   FINDING CARD — Numbered finding with verdict
   ═══════════════════════════════════════════════════ */
.finding-card {
    background: var(--bg-alt);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem; margin: 2rem 0;
    transition: border-color var(--transition);
}
.finding-card:hover {
    border-color: rgba(255, 200, 100, 0.1);
}
.finding-number {
    font-family: var(--font-mono); font-size: 0.6rem;
    letter-spacing: 4px; color: var(--singularity);
    text-transform: uppercase; margin-bottom: 0.75rem;
}
.finding-title {
    font-family: var(--font-sans); font-size: 1.4rem; font-weight: 700;
    color: var(--text-primary); margin-bottom: 0.5rem; line-height: 1.25;
}
.finding-sigma {
    font-family: var(--font-mono); font-size: 1rem;
    color: var(--singularity); margin-bottom: 1rem; opacity: 0.9;
}
.finding-body {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.9rem; line-height: 1.7;
    color: var(--text-secondary);
}
.finding-body p { margin-bottom: 0.75rem; }
.finding-body strong { color: var(--text-primary); }

/* ═══════════════════════════════════════════════════
   SIGNAL ROW — For the signals investigated page
   ═══════════════════════════════════════════════════ */
.signal-card {
    display: flex; align-items: flex-start; gap: 1rem;
    background: rgba(15, 12, 30, 0.35);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius); padding: 1.25rem 1.5rem;
    margin: 0.75rem 0;
    transition: border-color var(--transition);
}
.signal-card:hover {
    border-color: var(--border);
}
.signal-status-dot {
    width: 10px; height: 10px; border-radius: 50%;
    flex-shrink: 0; margin-top: 0.4rem;
}
.signal-status-dot.confirmed { background: var(--success); }
.signal-status-dot.debunked { background: var(--danger); }
.signal-status-dot.open { background: var(--singularity); }
.signal-status-dot.resolved { background: var(--info); }

.signal-info { flex: 1; min-width: 0; }
.signal-name {
    font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600;
    color: var(--text-primary); margin-bottom: 0.2rem;
}
.signal-meta {
    display: flex; flex-wrap: wrap; gap: 0.75rem;
    font-family: var(--font-mono); font-size: 0.72rem;
    color: var(--text-muted); margin-bottom: 0.4rem;
}
.signal-evidence {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.82rem; color: var(--text-secondary);
    line-height: 1.55;
}

/* ═══════════════════════════════════════════════════
   HERO DASHBOARD (Homepage overhaul)
   ═══════════════════════════════════════════════════ */
.hero-dashboard {
    text-align: center; padding: 2rem 0 1.25rem;
    max-width: 900px; margin: 0 auto;
}
.hero-preprint {
    font-family: var(--font-mono); font-size: 0.6rem;
    font-weight: 400; letter-spacing: 4px;
    text-transform: uppercase; color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.hero-research-title {
    font-family: var(--font-display); font-size: 3.2rem;
    font-weight: 700; line-height: 1.05;
    letter-spacing: -1px; margin-bottom: 1rem;
    color: var(--text);
    -webkit-text-fill-color: var(--text);
    background: none;
}
.hero-research-subtitle {
    font-family: var(--font-body);
    font-size: 1.05rem; font-weight: 300;
    color: var(--text-secondary); line-height: 1.55;
    max-width: 600px; margin: 0 auto 1.5rem;
}
.hero-rule {
    width: 80px; height: 2px;
    background: var(--gold);
    margin: 0 auto 1.5rem; border-radius: 0;
}
.hero-author {
    font-family: var(--font-display); font-size: 0.9rem;
    font-weight: 500; color: var(--text);
    margin-bottom: 0.25rem;
}
.hero-affiliation {
    font-family: var(--font-body);
    font-size: 0.82rem; font-style: italic;
    color: var(--text-muted); margin-bottom: 0.25rem;
}
.hero-date {
    font-family: var(--font-mono); font-size: 0.62rem;
    color: var(--text-muted); letter-spacing: 3px;
    margin-top: 0.75rem;
}

@media (max-width: 640px) {
    .hero-research-title { font-size: 1.8rem; }
    .hero-research-subtitle { font-size: 0.92rem; }
}

/* ═══════════════════════════════════════════════════
   PLACEHOLDER BOX — For future content
   ═══════════════════════════════════════════════════ */
.placeholder-box {
    border: 2px dashed rgba(255, 200, 100, 0.12);
    background: var(--bg-alt);
    border-radius: var(--radius); padding: 2rem 1.5rem;
    margin: 1.5rem 0; text-align: center;
    min-height: 200px; display: flex;
    flex-direction: column; align-items: center;
    justify-content: center;
}
.placeholder-box .ph-label {
    font-family: var(--font-mono); font-size: 0.6rem;
    font-weight: 500; letter-spacing: 3px;
    text-transform: uppercase; color: var(--singularity);
    margin-bottom: 0.5rem;
}
.placeholder-box .ph-title {
    font-family: var(--font-sans); font-size: 1rem;
    font-weight: 500; color: var(--text-secondary);
    margin-bottom: 0.4rem;
}
.placeholder-box .ph-desc {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.82rem; font-style: italic;
    color: var(--text-muted); max-width: 400px;
}

/* ═══════════════════════════════════════════════════
   SEPARATOR — Section break with gold line
   ═══════════════════════════════════════════════════ */
.section-rule {
    width: 100%; height: 1px; border: none;
    background: linear-gradient(90deg, transparent, var(--singularity), transparent);
    margin: 3rem 0; opacity: 0.3;
}

/* ═══════════════════════════════════════════════════
   NAVIGATION PILL (for page-internal nav)
   ═══════════════════════════════════════════════════ */
.page-nav {
    display: flex; flex-wrap: wrap; gap: 0.4rem;
    justify-content: center; margin: 1.5rem 0 2rem;
    padding: 0.6rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
}
.page-nav a {
    font-family: var(--font-sans); font-size: 0.75rem;
    font-weight: 500; color: var(--text-muted);
    padding: 0.3rem 0.8rem; border-radius: 100px;
    transition: all var(--transition);
}
.page-nav a:hover {
    color: var(--text-primary);
    background: var(--gold-10);
}
.page-nav a.active {
    color: var(--singularity);
    background: var(--gold-10);
}

/* ═══════════════════════════════════════════════════
   EPOCH PAGES — Crystal RAG Roundtable Browser
   ═══════════════════════════════════════════════════ */

/* ─── Layout: Sidebar + Main ─── */
.epoch-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
}
@media (max-width: 900px) {
    .epoch-layout { grid-template-columns: 1fr; }
    .epoch-sidebar { order: 2; }
    .epoch-main { order: 1; }
}

/* ─── Sidebar ─── */
.epoch-sidebar {
    position: sticky; top: calc(var(--nav-height) + 1.5rem);
    align-self: start; max-height: calc(100vh - var(--nav-height) - 3rem);
    overflow-y: auto; padding-right: 0.5rem;
    scrollbar-width: thin; scrollbar-color: rgba(255,200,100,0.1) transparent;
}
.epoch-sidebar::-webkit-scrollbar { width: 4px; }
.epoch-sidebar::-webkit-scrollbar-thumb { background: rgba(255,200,100,0.15); border-radius: 2px; }

.epoch-sidebar-section { margin-bottom: 1rem; }
.epoch-sidebar-title {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--text-muted); margin-bottom: 0.6rem; padding-left: 0.5rem;
    font-weight: 600;
}

/* Character cards in sidebar */
.epoch-char-card {
    display: flex; align-items: center; gap: 0.7rem;
    padding: 0.5rem 0.5rem; border-radius: 0;
    transition: all var(--transition); text-decoration: none;
    border: 1px solid transparent;
}
.epoch-char-card:hover {
    background: var(--gold-10);
    border-color: var(--border-glow);
}
.epoch-char-avatar {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem;
    background: var(--event-horizon); color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}
.epoch-char-card.permanent .epoch-char-avatar {
    background: rgba(255, 200, 100, 0.15);
    border-color: var(--singularity);
    color: var(--singularity);
}
.epoch-char-info { min-width: 0; }
.epoch-char-name { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.epoch-char-domain { font-size: 0.68rem; color: var(--text-muted); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.epoch-char-meta { font-size: 0.65rem; color: var(--text-muted); }

/* Sidebar stats */
.epoch-sidebar-stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
}
.epoch-mini-stat {
    background: var(--void-card); border: 1px solid var(--border-subtle);
    border-radius: 0; padding: 0.5rem;
    text-align: center;
}
.epoch-mini-value { display: block; font-size: 1.1rem; font-weight: 700; color: var(--text-primary); font-family: var(--font-mono); }
.epoch-mini-label { display: block; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }

/* ─── Search Bar ─── */
.epoch-search-bar { margin-bottom: 1rem; }
.epoch-search-form { display: flex; gap: 0.5rem; }
.epoch-search-input {
    flex: 1; padding: 0.55rem 0.8rem; background: var(--void-card);
    border: 1px solid var(--border-subtle); border-radius: 0;
    color: var(--text-primary); font-size: 0.9rem; font-family: var(--font-sans);
    transition: border-color var(--transition);
}
.epoch-search-input:focus { outline: none; border-color: var(--singularity); }
.epoch-search-input::placeholder { color: var(--text-muted); }
.epoch-search-btn {
    padding: 0.55rem 1rem; background: var(--gold-10);
    border: 1px solid var(--border-glow); border-radius: 0;
    color: var(--singularity); font-weight: 600; font-size: 0.85rem;
    cursor: pointer; transition: all var(--transition);
}
.epoch-search-btn:hover { background: rgba(255, 200, 100, 0.15); }

/* ─── Classification Bar ─── */
.epoch-cls-bar {
    display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem;
}
.epoch-cls-chip {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.25rem 0.6rem; border-radius: 0;
    border: 1px solid; font-size: 0.75rem; color: var(--text-secondary);
    background: var(--bg-alt);
}
.epoch-cls-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

/* ─── Epoch Cards (Main list) ─── */
.epoch-card {
    display: block; text-decoration: none;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 0; padding: 1.25rem 1.5rem;
    margin-bottom: 0; transition: all var(--transition);
}
.epoch-card:hover {
    border-color: var(--gold-20);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.epoch-card-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0.5rem;
}
.epoch-card-gen { display: flex; align-items: center; gap: 0.6rem; }
.epoch-badge {
    display: inline-block; padding: 0.15rem 0.5rem; border-radius: 0;
    font-size: 0.68rem; font-weight: 500; text-transform: uppercase;
    letter-spacing: 1.5px; font-family: var(--font-display);
}
.epoch-badge.paradigm-redefining-council { background: var(--gold-10); color: var(--gold); border: 1px solid var(--gold-20); }
.epoch-badge.breakthrough-synthesis { background: rgba(167, 139, 250, 0.08); color: #8B5CF6; border: 1px solid rgba(167, 139, 250, 0.2); }
.epoch-badge.significant-strategic { background: rgba(59, 130, 246, 0.08); color: #3B6FAA; border: 1px solid rgba(59, 130, 246, 0.2); }
.epoch-badge.useful-deliberation { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.epoch-badge.routine-discussion { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }

.epoch-score-pill {
    font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
    color: var(--gold);
}
.epoch-card-date { font-size: 0.68rem; color: var(--text-muted); font-family: var(--font-mono); letter-spacing: 1px; }

.epoch-card-topic {
    font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; color: var(--text);
    margin-bottom: 0.4rem; line-height: 1.35;
}
.epoch-card-synthesis {
    font-family: var(--font-body); font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6;
    margin-bottom: 0.6rem; font-style: italic;
}

.epoch-card-footer {
    display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.5rem;
}
.epoch-card-stat {
    display: flex; align-items: center; gap: 0.3rem;
    font-size: 0.75rem; color: var(--text-muted);
}
.epoch-card-stat-icon { font-size: 0.85rem; }

.epoch-card-participants {
    display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.epoch-participant-pill {
    display: inline-block; padding: 0.12rem 0.45rem; border-radius: 0;
    font-family: var(--font-display); font-size: 0.68rem; font-weight: 500;
    background: var(--bg-alt); color: var(--text-muted); border: 1px solid var(--border);
    letter-spacing: 0.5px;
}
.epoch-participant-pill.permanent {
    background: var(--gold-10);
    color: var(--gold); border-color: var(--gold-20);
}

/* Empty state */
.epoch-empty { text-align: center; padding: 4rem 2rem; }
.epoch-empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.epoch-empty h3 { font-size: 1.3rem; color: var(--text-primary); margin-bottom: 0.5rem; }
.epoch-empty p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }


/* ═══════════════════════════════════════════════════
   EPOCH DETAIL PAGE
   ═══════════════════════════════════════════════════ */

.epoch-detail-meta {
    display: flex; align-items: center; justify-content: center; gap: 1rem;
    flex-wrap: wrap; margin-top: 0.5rem;
}
.epoch-score-big {
    font-family: var(--font-mono); font-size: 1.6rem; font-weight: 500;
    color: var(--gold);
}
.epoch-score-big small { font-size: 0.8rem; color: var(--text-muted); }
.epoch-date-label { font-size: 0.85rem; color: var(--text-muted); font-family: var(--font-mono); }

/* Nav strip */
.epoch-nav-strip {
    display: flex; justify-content: space-between; align-items: center;
    margin: 1.5rem 0 2rem; padding: 0.8rem 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}
.epoch-nav-btn {
    font-size: 0.85rem; color: var(--singularity); font-weight: 500;
    padding: 0.4rem 0.8rem; border-radius: var(--radius);
    transition: all var(--transition);
}
.epoch-nav-btn:hover { background: var(--gold-10); }
.epoch-nav-btn.disabled { color: var(--text-muted); pointer-events: none; }
.epoch-nav-center { font-size: 0.8rem; color: var(--text-muted); }
.epoch-nav-center:hover { color: var(--singularity); }

/* Section containers */
.epoch-section { margin-bottom: 3rem; }

/* Synthesis box */
.epoch-synthesis-box {
    background: var(--void-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg); padding: 1.5rem 2rem;
    font-size: 0.9rem; line-height: 1.8; color: var(--text-secondary);
    border-left: 3px solid var(--singularity);
}

/* ─── Participants Grid ─── */
.epoch-participants-grid {
    display: grid; grid-template-columns: 1fr; gap: 1.2rem;
}

.epoch-participant-card {
    background: var(--void-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg); padding: 1.5rem;
    transition: border-color var(--transition);
}
.epoch-participant-card:hover { border-color: rgba(255, 200, 100, 0.1); }

.epoch-participant-header {
    display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem;
}
.epoch-participant-avatar {
    width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.2rem;
    background: var(--event-horizon); color: var(--text-primary);
    border: 2px solid var(--border-subtle);
}
.epoch-participant-avatar.permanent {
    background: rgba(255, 200, 100, 0.15);
    border-color: var(--singularity); color: var(--singularity);
}
.epoch-participant-avatar-link { text-decoration: none; }
.epoch-participant-name {
    font-size: 1.05rem; font-weight: 700; color: var(--text-primary);
    text-decoration: none;
}
.epoch-participant-name:hover { color: var(--singularity); }
.epoch-participant-era { font-size: 0.78rem; color: var(--text-muted); font-family: var(--font-mono); }
.epoch-participant-domain { font-size: 0.8rem; color: var(--text-secondary); }

.epoch-participant-perspective {
    font-size: 0.88rem; line-height: 1.7; color: var(--text-secondary);
    margin-bottom: 1rem; padding: 0.8rem; border-radius: var(--radius);
    background: rgba(255,255,255,0.015);
    border-left: 2px solid rgba(255, 200, 100, 0.15);
}

.epoch-participant-points, .epoch-participant-recs {
    font-size: 0.82rem; color: var(--text-secondary);
    margin-bottom: 0.8rem;
}
.epoch-participant-points strong, .epoch-participant-recs strong {
    color: var(--text-primary); font-size: 0.78rem; text-transform: uppercase;
    letter-spacing: 0.06em;
}
.epoch-participant-points ul, .epoch-participant-recs ul {
    padding-left: 1.2rem; margin-top: 0.3rem;
}
.epoch-participant-points li, .epoch-participant-recs li {
    margin-bottom: 0.3rem; line-height: 1.5;
}

/* ─── Scorecard — Radar Star Charts ─── */
.epoch-radar-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}
.epoch-radar-card {
    background: var(--void-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1rem 0.8rem 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: border-color var(--transition);
}
.epoch-radar-card:hover {
    border-color: var(--border-glow);
}
.epoch-radar-title {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.2rem;
}
.epoch-radar-avg {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.epoch-radar-avg small {
    font-size: 0.65rem;
    opacity: 0.5;
    font-weight: 400;
}
.epoch-radar-chart {
    width: 100%;
    max-width: 180px;
    aspect-ratio: 1;
}
.epoch-radar-svg {
    width: 100%;
    height: 100%;
}
.epoch-radar-label {
    font-size: 7px;
    fill: var(--text-muted);
    font-family: var(--font-sans);
    font-weight: 500;
    pointer-events: none;
}
.epoch-radar-legend {
    width: 100%;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-subtle);
}
.epoch-radar-legend-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.15rem 0;
    font-size: 0.68rem;
}
.epoch-radar-legend-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}
.epoch-radar-legend-name {
    flex: 1;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.epoch-radar-legend-score {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.7rem;
}
.epoch-metric-total {
    text-align: right; padding-top: 1rem; margin-top: 0.5rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.9rem; color: var(--text-secondary);
}
.epoch-metric-total strong { color: var(--singularity); font-family: var(--font-mono); }

@media (max-width: 900px) {
    .epoch-radar-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .epoch-radar-row { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
    .epoch-radar-card { padding: 0.6rem 0.5rem; }
    .epoch-radar-legend-row { font-size: 0.6rem; }
}

/* ─── Recommendations ─── */
.epoch-recs-list { display: flex; flex-direction: column; gap: 0.6rem; }
.epoch-rec-item {
    display: flex; gap: 0.8rem; align-items: flex-start;
    background: var(--void-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius); padding: 1rem 1.2rem;
}
.epoch-rec-num {
    flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--gold-10); color: var(--singularity);
    font-family: var(--font-mono); font-weight: 700; font-size: 0.75rem;
    border: 1px solid rgba(255, 200, 100, 0.15);
}
.epoch-rec-text { font-size: 0.88rem; line-height: 1.6; color: var(--text-secondary); }

/* ─── Proposed Layers ─── */
.epoch-layers-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem;
}
@media (max-width: 700px) { .epoch-layers-grid { grid-template-columns: 1fr; } }

.epoch-layer-card {
    background: var(--void-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius); padding: 1rem;
    transition: border-color var(--transition);
}
.epoch-layer-card:hover { border-color: rgba(255, 200, 100, 0.1); }

.epoch-layer-header {
    display: flex; align-items: center; gap: 0.5rem;
    margin-bottom: 0.5rem; flex-wrap: wrap;
}
.epoch-layer-id {
    font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700;
    color: var(--singularity); background: var(--gold-10);
    padding: 0.15rem 0.4rem; border-radius: 4px;
}
.epoch-layer-name { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.epoch-priority-badge {
    font-size: 0.65rem; text-transform: uppercase; font-weight: 700;
    padding: 0.1rem 0.4rem; border-radius: 4px; letter-spacing: 0.05em;
    margin-left: auto;
}
.epoch-priority-badge.critical { background: rgba(231, 76, 95, 0.15); color: #e74c5f; }
.epoch-priority-badge.high { background: rgba(255, 200, 100, 0.15); color: var(--singularity); }
.epoch-priority-badge.medium { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.epoch-priority-badge.low { background: rgba(107, 114, 128, 0.15); color: #9ca3af; }

.epoch-layer-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

/* ─── Insights Table ─── */
.epoch-insights-table {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg); overflow: hidden;
}
.epoch-insight-header-row {
    display: grid; grid-template-columns: 130px 1fr 60px 60px 50px;
    gap: 0.5rem; padding: 0.6rem 1rem;
    background: rgba(255, 200, 100, 0.03);
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-muted); font-weight: 600;
}
.epoch-insight-row {
    display: grid; grid-template-columns: 130px 1fr 60px 60px 50px;
    gap: 0.5rem; padding: 0.55rem 1rem; align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition); font-size: 0.82rem;
}
.epoch-insight-row:last-child { border-bottom: none; }
.epoch-insight-row:hover { background: var(--bg-alt); }

.epoch-ir-layer { display: flex; flex-direction: column; gap: 0.1rem; }
.epoch-layer-num { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; color: var(--singularity); }
.epoch-layer-lname { font-size: 0.68rem; color: var(--text-muted); }
.epoch-ir-title { color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.epoch-ir-score { font-family: var(--font-mono); font-size: 0.8rem; text-align: center; color: var(--text-primary); font-weight: 600; }
.epoch-ir-class { text-align: center; }
.epoch-cls-mini { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; }
.epoch-ir-sigma { font-family: var(--font-mono); font-size: 0.78rem; text-align: center; color: var(--text-secondary); }

.epoch-count-badge {
    display: inline-block; font-family: var(--font-mono); font-size: 0.75rem;
    padding: 0.1rem 0.5rem; background: var(--gold-10);
    color: var(--singularity); border-radius: 100px; margin-left: 0.4rem;
    font-weight: 600;
}

@media (max-width: 700px) {
    .epoch-insight-header-row, .epoch-insight-row {
        grid-template-columns: 80px 1fr 45px 40px 40px;
        font-size: 0.75rem;
    }
}

/* ─── Pagination ─── */
.epoch-pagination {
    display: flex; align-items: center; justify-content: center; gap: 1rem;
    padding: 1.5rem 0;
}
.epoch-page-btn {
    padding: 0.5rem 1rem; border-radius: 0;
    font-size: 0.85rem; color: var(--singularity); font-weight: 500;
    background: var(--gold-10); border: 1px solid var(--border-glow);
    transition: all var(--transition);
}
.epoch-page-btn:hover { background: rgba(255, 200, 100, 0.12); }
.epoch-page-info { font-size: 0.82rem; color: var(--text-muted); }


/* ═══════════════════════════════════════════════════
   EPOCH CHARACTER PROFILE
   ═══════════════════════════════════════════════════ */

/* ─── Hero Icon ─── */
.char-hero-icon {
    width: 96px; height: 96px;
    object-fit: contain;
    filter: drop-shadow(0 0 24px var(--gold-20));
    opacity: 0.9;
}

/* ─── Nationality ─── */
.char-nationality {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

/* ─── Tagline ─── */
.char-tagline-box {
    text-align: center;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    border-left: 3px solid var(--gold);
    background: var(--bg-card);
}
.char-tagline {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--text);
    margin: 0;
}

/* ─── Bio Section Container ─── */
.char-bio-section {
    margin-bottom: 2.5rem;
}
.char-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
}
.char-section-header .part-header {
    margin: 0;
    padding: 0;
    border: none;
}
.char-section-icon {
    width: 28px; height: 28px;
    object-fit: contain;
    opacity: 0.75;
}

/* ─── Biography Body ─── */
.char-bio-body {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--text);
}
.char-bio-body p {
    margin-bottom: 1.2rem;
}
.char-bio-body p:last-child {
    margin-bottom: 0;
}

/* ─── Achievements List ─── */
.char-achievements-list {
    list-style: none;
    padding: 0; margin: 0;
}
.char-achievements-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-body);
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text);
}
.char-achievements-list li:last-child {
    border-bottom: none;
}
.char-ach-bullet {
    flex-shrink: 0;
    display: inline-block;
    width: 8px; height: 8px;
    margin-top: 0.5rem;
    background: var(--gold);
    transform: rotate(45deg);
}

/* ─── Key Works Grid ─── */
.char-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.char-work-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1rem 1.25rem;
    position: relative;
}
.char-work-rule {
    width: 32px; height: 2px;
    background: var(--gold);
    margin-bottom: 0.75rem;
}
.char-work-title {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text);
    margin: 0;
}

/* ─── Why at the Table ─── */
.char-why-section {
    /* nothing extra, but we can use this for specificity */
}
.char-why-quote {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
    margin: 0;
    padding: 1.5rem 2rem;
    border-left: 3px solid var(--gold);
    background: var(--gold-5, var(--bg-card));
    font-style: normal;
}

/* ─── Dark mode fine-tuning ─── */
[data-theme="dark"] .char-hero-icon {
    filter: drop-shadow(0 0 24px rgba(212, 175, 55, 0.25));
}
[data-theme="dark"] .char-tagline-box {
    background: var(--bg-card);
}
[data-theme="dark"] .char-why-quote {
    background: var(--bg-card);
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
    .char-hero-icon { width: 72px; height: 72px; }
    .char-tagline { font-size: 0.95rem; }
    .char-tagline-box { padding: 1rem 1.2rem; }
    .char-why-quote { padding: 1rem 1.2rem; }
    .char-works-grid { grid-template-columns: 1fr; }
}

/* ─── Timeline ─── */
.epoch-char-timeline { position: relative; padding-left: 2rem; }
.epoch-char-timeline::before {
    content: ''; position: absolute; left: 8px; top: 0; bottom: 0;
    width: 2px; background: linear-gradient(180deg, var(--singularity) 0%, var(--border-subtle) 100%);
}

.epoch-char-timeline-item {
    position: relative; margin-bottom: 2rem;
}
.epoch-char-timeline-marker {
    position: absolute; left: -2rem; top: 0.2rem;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--void-card); border: 2px solid var(--singularity);
    z-index: 1;
}
.epoch-char-timeline-content {
    background: var(--void-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg); padding: 1.2rem 1.5rem;
}

.epoch-char-timeline-header {
    display: flex; align-items: center; gap: 0.8rem;
    margin-bottom: 0.5rem; flex-wrap: wrap;
}
.epoch-char-gen-link {
    font-family: var(--font-mono); font-weight: 700; font-size: 0.95rem;
    color: var(--singularity);
}
.epoch-char-gen-link:hover { text-decoration: underline; }
.epoch-char-timeline-score {
    font-family: var(--font-mono); font-size: 0.78rem;
    color: var(--text-muted);
}
.epoch-char-timeline-date {
    font-family: var(--font-mono); font-size: 0.75rem;
    color: var(--text-muted); margin-left: auto;
}
.epoch-char-timeline-topic {
    font-size: 0.9rem; font-weight: 500; color: var(--text-primary);
    margin-bottom: 0.8rem; line-height: 1.4;
}

.epoch-char-timeline-perspective { margin-bottom: 0.8rem; }
.epoch-char-timeline-perspective details {
    border-radius: var(--radius); overflow: hidden;
}
.epoch-char-timeline-perspective summary {
    cursor: pointer; font-size: 0.8rem; color: var(--singularity);
    padding: 0.4rem 0; font-weight: 500;
}
.epoch-char-timeline-perspective summary:hover { text-decoration: underline; }
.epoch-perspective-content {
    padding: 1rem; margin-top: 0.5rem;
    background: rgba(255,255,255,0.015);
    border-left: 2px solid rgba(255, 200, 100, 0.15);
    border-radius: var(--radius);
    font-size: 0.85rem; line-height: 1.7; color: var(--text-secondary);
}

.epoch-char-timeline-kp, .epoch-char-timeline-recs {
    font-size: 0.82rem; color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.epoch-char-timeline-kp strong, .epoch-char-timeline-recs strong {
    color: var(--text-primary); font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: 0.06em;
}
.epoch-char-timeline-kp ul, .epoch-char-timeline-recs ul {
    padding-left: 1.2rem; margin-top: 0.3rem;
}
.epoch-char-timeline-kp li, .epoch-char-timeline-recs li {
    margin-bottom: 0.25rem; line-height: 1.5;
}

/* ─── Gold variant for stat-value ─── */
.stat-value.gold, .stat-value[style*="gold"] { color: var(--singularity); }

/* ═══════════════════════════════════════════════════
   EPOCH TAB BAR
   ═══════════════════════════════════════════════════ */
.epoch-tab-bar {
    display: flex;
    gap: 0;
    margin-bottom: 1rem;
    background: var(--void-card);
    border: 1px solid var(--border-subtle);
    border-radius: 0;
    padding: 0;
}
.epoch-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
}
.epoch-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}
.epoch-tab.active {
    color: var(--singularity);
    background: var(--gold-10);
    box-shadow: 0 0 12px rgba(255, 200, 100, 0.06);
}
.epoch-tab svg { opacity: 0.5; flex-shrink: 0; }
.epoch-tab.active svg { opacity: 1; color: var(--singularity); }
.epoch-tab-count {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.1rem 0.45rem;
    border-radius: 0;
    color: var(--text-muted);
}
.epoch-tab.active .epoch-tab-count {
    background: rgba(255, 200, 100, 0.12);
    color: var(--singularity);
}

/* ═══════════════════════════════════════════════════
   LAYER LIST (epoch page, layers tab)
   ═══════════════════════════════════════════════════ */
.layer-list-grid {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.layer-list-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.55rem 0.8rem;
    background: var(--void-card);
    border: 1px solid var(--border-subtle);
    border-radius: 0;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
}
.layer-list-item:hover {
    border-color: var(--border-glow);
    background: var(--bg-alt);
    transform: translateX(2px);
}

/* Space icon wrapper */
.layer-icon-wrap {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.layer-icon-svg {
    width: 40px;
    height: 40px;
}

/* Layer list info */
.layer-list-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.layer-list-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.layer-list-lid {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--singularity);
    background: var(--gold-10);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    flex-shrink: 0;
}
.layer-list-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.layer-list-cls {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: auto;
    flex-shrink: 0;
}
.layer-list-title {
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}
.layer-list-meta {
    display: flex;
    gap: 0.8rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}
.layer-list-meta strong {
    color: var(--text-primary);
}
.layer-list-score {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
    min-width: 36px;
    text-align: right;
}

@media (max-width: 600px) {
    .layer-list-item { padding: 0.5rem 0.6rem; gap: 0.5rem; }
    .layer-icon-wrap { width: 36px; height: 36px; }
    .layer-icon-svg { width: 32px; height: 32px; }
    .layer-list-meta { display: none; }
    .layer-list-score { font-size: 0.9rem; }
}

/* ═══════════════════════════════════════════════════
   CLICKABLE STAT CARDS
   ═══════════════════════════════════════════════════ */
a.stat-card-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
a.stat-card-link:hover {
    border-color: var(--singularity);
}

/* ═══════════════════════════════════════════════════
   INSIGHT LIST (epoch page, insights tab)
   ═══════════════════════════════════════════════════ */
.insight-list-grid {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.insight-list-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0.8rem;
    background: var(--void-card);
    border: 1px solid var(--border-subtle);
    border-radius: 0;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
}
.insight-list-item:hover {
    border-color: var(--border-glow);
    background: var(--bg-alt);
    transform: translateX(2px);
}
.insight-list-score {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 36px;
    text-align: center;
    flex-shrink: 0;
}
.insight-list-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.insight-list-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.insight-list-lid {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}
.insight-list-cls {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
.insight-list-sigma {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--singularity);
    flex-shrink: 0;
}
.insight-list-title {
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}
.insight-list-meta {
    display: flex;
    gap: 0.8rem;
    font-size: 0.68rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

@media (max-width: 600px) {
    .insight-list-item { padding: 0.5rem 0.6rem; gap: 0.5rem; }
    .insight-list-meta { display: none; }
    .insight-list-score { font-size: 0.9rem; }
}

/* ═══════════════════════════════════════════════════
   LAYER PROFILE PAGE
   ═══════════════════════════════════════════════════ */

.layer-profile-icon-wrap {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
}
.layer-profile-icon-svg {
    width: 56px;
    height: 56px;
}

/* Data sources chips */
.layer-sources-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.layer-source-chip {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35rem 0.8rem;
    background: var(--gold-10);
    border: 1px solid rgba(255, 200, 100, 0.12);
    border-radius: 100px;
    color: var(--text-secondary);
}

/* Metrics layout */
.layer-metrics-layout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
}
@media (max-width: 700px) {
    .layer-metrics-layout { grid-template-columns: 1fr; }
}
.layer-radar-wrap { display: flex; justify-content: center; }

.layer-metrics-table {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.layer-metric-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0;
}
.layer-metric-name {
    width: 140px;
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.layer-metric-bar-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 3px;
    overflow: hidden;
}
.layer-metric-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
    opacity: 0.7;
}
.layer-metric-score {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 48px;
    text-align: right;
}
.layer-metric-score small {
    font-size: 0.6rem;
    opacity: 0.5;
    font-weight: 400;
}
.layer-metric-rationale {
    font-size: 0.7rem;
    color: var(--text-muted);
    padding-left: 146px;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}
@media (max-width: 700px) {
    .layer-metric-name { width: 100px; }
    .layer-metric-rationale { padding-left: 106px; }
}

/* Provenance grid */
.layer-provenance-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.layer-prov-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.6rem 1rem;
    background: var(--void-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    min-width: 120px;
}
.layer-prov-key {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
}
.layer-prov-val {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Raw JSON details */
.layer-raw-details summary {
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--singularity);
    padding: 0.5rem 0;
    font-weight: 500;
}
.layer-raw-details summary:hover { text-decoration: underline; }
.layer-raw-json {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 1rem;
    font-size: 0.72rem;
    line-height: 1.5;
    overflow-x: auto;
    color: var(--text-secondary);
    max-height: 500px;
    overflow-y: auto;
}

/* ═══════════════════════════════════════════════════════════
   SOCIAL WIDGET — Comments & Reactions
   ═══════════════════════════════════════════════════════════ */
.social-widget { margin-top: 0.6rem; }
.social-inline .sw-comments-section { border-top: 1px solid var(--border-subtle); margin-top: 0.5rem; padding-top: 0.5rem; }
.epoch-card-wrap { margin-bottom: 0.75rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 0; }
.epoch-card-wrap .epoch-card { border: none; margin-bottom: 0; background: transparent; }
.epoch-card-wrap .social-widget { padding: 0 1.5rem 0.8rem; }
.social-list-wrap { margin-bottom: 0.3rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 0; }
.social-list-wrap > a { border: none; margin-bottom: 0; }
.social-list-wrap .social-widget { padding: 0 0.6rem 0.5rem; }

/* Reactions */
.sw-reactions { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.sw-reaction-pills { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.sw-reaction-pill {
    display: inline-flex; align-items: center; gap: 0.2rem;
    padding: 0.15rem 0.35rem; border-radius: 12px; border: 1px solid var(--border-subtle);
    background: transparent; color: var(--text-muted); font-size: 0.72rem;
    cursor: pointer; transition: all 0.15s; line-height: 1;
}
.sw-reaction-pill:hover { border-color: var(--gold); background: rgba(255,200,100,0.06); }
.sw-reaction-pill.active { border-color: var(--gold); background: rgba(255,200,100,0.12); color: var(--gold); }
.sw-reaction-count { font-size: 0.65rem; font-variant-numeric: tabular-nums; min-width: 0; }
.sw-reaction-icon { width: 16px; height: 16px; flex-shrink: 0; vertical-align: -2px; }
.sw-reaction-pill:hover .sw-reaction-icon { color: var(--gold); }
.sw-reaction-pill.active .sw-reaction-icon { color: var(--gold); }

/* Toggle button */
.sw-toggle-btn {
    display: inline-block; margin-top: 0.4rem;
    padding: 0.2rem 0.5rem; border-radius: 4px; border: 1px solid var(--border-subtle);
    background: transparent; color: var(--text-muted); font-size: 0.7rem;
    cursor: pointer; transition: all 0.15s;
}
.sw-toggle-btn:hover { border-color: var(--gold); color: var(--text-secondary); }

/* New comment form */
.sw-new-comment { display: flex; gap: 0.5rem; margin-top: 0.5rem; align-items: flex-start; }
.sw-comment-input, .sw-reply-input {
    flex: 1; resize: vertical; min-height: 2.2rem; max-height: 120px;
    padding: 0.4rem 0.6rem; font-size: 0.78rem; font-family: var(--font-body);
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 0; color: var(--text); outline: none;
}
.sw-comment-input:focus, .sw-reply-input:focus { border-color: var(--gold); }
.sw-comment-submit, .sw-reply-submit {
    padding: 0.35rem 0.7rem; border: none; border-radius: 0;
    background: var(--text); color: var(--bg); font-family: var(--font-display);
    font-size: 0.68rem; font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
    cursor: pointer; white-space: nowrap;
}
.sw-comment-submit:hover, .sw-reply-submit:hover { filter: brightness(1.1); }
.sw-comment-submit:disabled, .sw-reply-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* Comments list */
.sw-comments-list { margin-top: 0.6rem; }
.sw-no-comments { padding: 0.8rem 0; color: var(--text-muted); font-size: 0.78rem; text-align: center; }

/* Single comment */
.sw-comment { padding: 0.5rem 0; border-bottom: 1px solid var(--border-light); }
.sw-comment-header { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.25rem; }
.sw-comment-avatar { width: 20px; height: 20px; border-radius: 50%; }
.sw-comment-author { font-size: 0.75rem; font-weight: 600; color: var(--gold); text-decoration: none; }
.sw-comment-author:hover { text-decoration: underline; }
.sw-comment-time { font-size: 0.65rem; color: var(--text-muted); }
.sw-comment-edited { font-size: 0.6rem; color: var(--text-muted); font-style: italic; }
.sw-comment-body { font-family: var(--font-body); font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 0.25rem; word-wrap: break-word; }

/* Comment actions */
.sw-comment-actions { display: flex; align-items: center; gap: 0.4rem; }
.sw-vote-btn {
    background: none; border: none; cursor: pointer; font-size: 0.6rem;
    color: var(--text-muted); padding: 0.1rem 0.15rem; line-height: 1;
    transition: color 0.15s;
}
.sw-vote-btn:hover { color: var(--text-primary); }
.sw-vote-up.active { color: #4ade80; }
.sw-vote-down.active { color: #ef4444; }
.sw-vote-score { font-size: 0.68rem; color: var(--text-secondary); font-weight: 600; min-width: 16px; text-align: center; font-variant-numeric: tabular-nums; }
.sw-reply-btn, .sw-delete-btn {
    background: none; border: none; cursor: pointer; font-size: 0.65rem;
    color: var(--text-muted); padding: 0.1rem 0.3rem;
}
.sw-reply-btn:hover { color: var(--gold); }
.sw-delete-btn:hover { color: #ef4444; }

/* Reply form */
.sw-reply-form { margin: 0.4rem 0 0.3rem 1.5rem; }
.sw-reply-actions { display: flex; gap: 0.4rem; margin-top: 0.3rem; }
.sw-reply-cancel { background: none; border: 1px solid var(--border-subtle); border-radius: 4px; padding: 0.25rem 0.5rem; font-size: 0.68rem; color: var(--text-muted); cursor: pointer; }

.sw-error { padding: 0.5rem; color: var(--text-muted); font-size: 0.75rem; }

/* Responsive */
@media (max-width: 640px) {
    .sw-reaction-pills { gap: 0.15rem; }
    .sw-reaction-pill { padding: 0.1rem 0.25rem; font-size: 0.65rem; }
}
