@import url("/fonts/void-fonts.css?v=20261009-1791518704207");

:root {
    --bg: #0b0f16;
    --bg-soft: #101625;
    --panel: rgba(22, 28, 40, 0.92);
    --panel-2: rgba(29, 37, 53, 0.86);
    --stroke: rgba(170, 200, 255, 0.17);
    --stroke-strong: rgba(151, 188, 255, 0.42);
    --text: #e8f0ff;
    --muted: #9fb3cf;
    --accent: #bcc5cf;
    --accent-2: #8f99a4;
    --accent-soft: rgba(188, 197, 207, 0.12);
    --accent-soft-strong: rgba(188, 197, 207, 0.2);
    --accent-glow: rgba(188, 197, 207, 0.34);
    --accent-fill: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(205, 212, 219, 0.78) 24%, rgba(132, 140, 149, 0.92) 55%, rgba(255, 255, 255, 0.1) 100%);
    --accent-fill-strong: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(219, 224, 229, 0.86) 22%, rgba(147, 155, 164, 0.98) 58%, rgba(255, 255, 255, 0.14) 100%);
    --danger: #ff7c7c;
    --success: #7ef0bb;
    --shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
    --radius-xl: 18px;
    --radius-lg: 13px;
    --radius-md: 12px;
    --radius-pill: 999px;
    --vf-emoji-font: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "Android Emoji", emoji;
    --vf-font-body: "Manrope", var(--vf-emoji-font), sans-serif;
    --vf-font-display: "Unbounded", "Manrope", var(--vf-emoji-font), sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--text);
    font-family: var(--vf-font-body);
    background:
        radial-gradient(900px 480px at 8% -8%, rgba(79, 110, 181, 0.32), transparent 68%),
        radial-gradient(680px 420px at 95% 2%, rgba(48, 145, 169, 0.2), transparent 65%),
        linear-gradient(165deg, #0a0e15, var(--bg-soft) 52%, #0c111d);
}

a {
    color: #d4e6ff;
}

a:hover {
    color: #ffffff;
}

img {
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

textarea,
input,
select {
    border: 1px solid rgba(162, 192, 236, 0.32);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 12px;
    outline: none;
}

textarea,
input {
    color: var(--text);
}

select {
    color: #111111;
    background: rgba(244, 247, 252, 0.95);
}

select option {
    color: #111111;
    background: #ffffff;
}

textarea:focus,
input:focus,
select:focus {
    border-color: rgba(145, 191, 255, 0.68);
    box-shadow: 0 0 0 3px rgba(97, 153, 245, 0.16);
}

.wrap {
    max-width: 1080px;
    margin: 36px auto 48px;
    padding: 0 18px;
}

.container {
    max-width: 760px;
    margin: 36px auto 48px;
    padding: 0 16px;
}

.card {
    background: var(--panel);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    backdrop-filter: blur(6px);
}

.hint {
    color: var(--muted);
}

.btn,
.btn2,
button.like-button,
.like-btn {
    border-radius: 11px;
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 13px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.15s ease;
}

.btn {
    border: 1px solid var(--stroke-strong);
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(68, 112, 194, 0.28);
}

.btn2,
button.like-button,
.like-btn {
    border: 1px solid rgba(151, 188, 255, 0.3);
    color: #d9e8ff;
    background: rgba(255, 255, 255, 0.04);
}

.btn2:hover,
button.like-button:hover,
.like-btn:hover {
    border-color: rgba(185, 214, 255, 0.52);
    transform: translateY(-1px);
}

/* Header */
.vf-header {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid var(--stroke);
    background: linear-gradient(160deg, rgba(28, 37, 55, 0.96), rgba(18, 23, 34, 0.96));
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.vf-logo {
    margin: 0;
    font-family: var(--vf-font-display);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #edf4ff;
}

.vf-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.vf-menu a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(152, 184, 234, 0.22);
    background: rgba(255, 255, 255, 0.03);
    color: #cfe2ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease;
}

.vf-menu a:hover {
    transform: translateY(-1px);
    border-color: rgba(182, 207, 247, 0.5);
    color: #ffffff;
}

.vf-menu a.logout {
    border-color: rgba(255, 150, 150, 0.28);
    background: rgba(200, 80, 80, 0.2);
}

.vf-menu svg {
    width: 16px;
    height: 16px;
}

/* Landing / auth / 404 cards */
.login-card {
    width: min(420px, calc(100vw - 28px));
    background: var(--panel);
    border: 1px solid var(--stroke);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 30px 24px;
    text-align: center;
}

.login-card h1,
.card h1 {
    margin: 0 0 22px;
    font-family: var(--vf-font-display);
    font-size: 24px;
    line-height: 1.3;
    color: #eef5ff;
}

.login-card form {
    display: grid;
    gap: 10px;
}

.login-card input {
    width: 100%;
}

.login-card button,
.card button {
    padding: 11px 16px;
    border-radius: 12px;
    border: 1px solid var(--stroke-strong);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.login-card button:hover,
.card button:hover {
    transform: translateY(-1px);
}

.login-card .links {
    margin-top: 16px;
    font-size: 13px;
    color: var(--muted);
    display: flex;
    justify-content: center;
}

.error-message {
    color: #ffb0b0;
    background: rgba(255, 100, 100, 0.13);
    border: 1px solid rgba(255, 120, 120, 0.4);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 14px;
    margin-bottom: 12px;
}

/* Feed */
.feed-container {
    max-width: 640px;
    margin: 30px auto 48px;
    padding: 0 16px;
}

.post-card {
    position: relative;
    background: var(--panel-2);
    border: 1px solid rgba(160, 186, 223, 0.18);
    border-radius: var(--radius-lg);
    padding: 14px;
    margin-bottom: 12px;
}

.post-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.post-card > * {
    position: relative;
    z-index: 2;
}

.post-card .pactions,
.post-card form,
.post-card a.author,
.post-card .post-media-grid,
.post-card video,
.post-card img {
    position: relative;
    z-index: 3;
}

.post-card .author {
    font-weight: 700;
    color: #d6e8ff;
    text-decoration: none;
}

.post-card .date {
    color: var(--muted);
    font-size: 12px;
    margin: 8px 0;
}

.post-card .content {
    white-space: pre-wrap;
    line-height: 1.5;
}

.post-card .post-image {
    margin: 10px 0 14px;
    border-radius: 3px;
    max-width: none;
    max-height: none;
    object-fit: contain;
    border: 1px solid rgba(170, 200, 255, 0.22);
}

.like-count {
    margin-left: 8px;
    color: var(--muted);
    font-size: 13px;
}

.profile-avatar {
    border-radius: 50%;
    border: 1px solid rgba(192, 215, 255, 0.42);
}

img[data-vf-defer-image] {
    background: color-mix(in srgb, var(--panel) 82%, var(--text) 8%);
    opacity: 0;
    transition: opacity .18s ease;
}

img[data-vf-defer-image].is-loaded {
    opacity: 1;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 1000;
}

.modal:target {
    display: block;
}

.modal-content {
    background: var(--panel);
    color: var(--text);
    width: 440px;
    max-width: calc(100vw - 30px);
    margin: 10% auto;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid var(--stroke);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    text-decoration: none;
    font-size: 24px;
    color: var(--muted);
}

/* Post page */
.post {
    margin-top: 10px;
    background: var(--panel-2);
    border: 1px solid rgba(160, 186, 223, 0.18);
    border-radius: var(--radius-lg);
    padding: 12px;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.post-page-author-row {
    flex: 1 1 auto;
}

.post-page-author-avatar {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    overflow: hidden;
    border: 1px solid var(--stroke);
    border-radius: 50%;
    background: var(--panel);
}

.post-page-author-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-author a {
    font-weight: 700;
    color: #d6e8ff;
    text-decoration: none;
}

.post-time {
    color: var(--muted);
    font-size: 12px;
}

.post-text {
    margin-top: 8px;
    white-space: pre-wrap;
    line-height: 1.45;
    word-break: break-word;
}

.post-image {
    margin-top: 10px;
    width: 100%;
    height: auto;
    border-radius: 3px;
    max-width: none;
    max-height: none;
    object-fit: contain;
    border: 1px solid rgba(170, 200, 255, 0.22);
}

.post-footer {
    margin-top: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.comments-section {
    margin-top: 18px;
}

.comments-section h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-family: var(--vf-font-display);
}

.comment {
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(160, 186, 223, 0.18);
    border-radius: var(--radius-md);
    padding: 10px 12px;
}

.comment-header,
.comment-time {
    font-size: 12px;
    color: var(--muted);
}

.comment-text {
    margin-top: 6px;
    line-height: 1.5;
}

.comment-form textarea {
    width: 100%;
    min-height: 90px;
    resize: vertical;
    margin-top: 10px;
}

.comment-form button {
    margin-top: 8px;
}

.post-deleted-note {
    margin-top: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 182, 120, 0.24);
    border-radius: 12px;
    background: rgba(255, 182, 120, 0.08);
    color: #ffdcb7;
}

.post-edit-form textarea {
    width: 100%;
    min-height: 130px;
    resize: vertical;
    margin-top: 10px;
}

/* Profile page */
.hero {
    padding: 22px;
    background: linear-gradient(160deg, rgba(28, 37, 55, 0.96), rgba(18, 23, 34, 0.96));
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -160px -60px auto auto;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(120, 163, 255, 0.23), transparent 68%);
}

.top {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.ava {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(192, 215, 255, 0.42);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
}

.identity h1 {
    margin: 0;
    font-family: var(--vf-font-display);
    font-size: 28px;
}

.meta {
    margin-top: 7px;
    color: var(--muted);
    font-size: 14px;
}

.badges {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.badge {
    border: 1px solid rgba(130, 171, 235, 0.37);
    background: rgba(63, 90, 142, 0.25);
    border-radius: var(--radius-pill);
    padding: 6px 10px;
    font-size: 12px;
}

.stats {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    position: relative;
    z-index: 1;
}

.metric {
    background: var(--panel-2);
    border: 1px solid rgba(162, 192, 236, 0.17);
    border-radius: var(--radius-md);
    padding: 10px 10px 12px;
    text-align: center;
}

.metric strong {
    display: block;
    font-size: 24px;
    line-height: 1;
    margin-bottom: 5px;
}

.metric span {
    font-size: 12px;
    color: var(--muted);
}

.actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.tabs {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 1px solid rgba(152, 184, 234, 0.22);
    background: rgba(255, 255, 255, 0.02);
    color: #cfe2ff;
    font-weight: 600;
    font-size: 14px;
    padding: 9px 14px;
    transition: 0.2s ease;
}

.tab:hover {
    transform: translateY(-1px);
    border-color: rgba(182, 207, 247, 0.5);
}

.tab.active {
    background: linear-gradient(135deg, rgba(88, 135, 220, 0.55), rgba(64, 90, 174, 0.58));
    border-color: rgba(169, 202, 255, 0.58);
    color: #ffffff;
}

.section {
    margin-top: 16px;
    padding: 16px;
}

.section h2 {
    margin: 0 0 12px;
    font-size: 22px;
    font-family: var(--vf-font-display);
}

.grid2 {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tile {
    background: var(--panel-2);
    border: 1px solid rgba(158, 186, 224, 0.18);
    border-radius: var(--radius-md);
    padding: 10px 12px;
}

.tile small {
    display: block;
    color: var(--muted);
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.bio {
    margin-top: 10px;
    white-space: pre-wrap;
    line-height: 1.5;
}

.phead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pcontent {
    margin-top: 8px;
    white-space: pre-wrap;
    line-height: 1.45;
    word-break: break-word;
}

.pimg {
    margin-top: 10px;
    width: 100%;
    height: auto;
    border-radius: 3px;
    max-width: none;
    max-height: none;
    object-fit: contain;
    border: 1px solid rgba(170, 200, 255, 0.22);
}

.pactions {
    margin-top: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pinned {
    color: #ffe7b0;
    border: 1px solid rgba(255, 220, 143, 0.33);
    background: rgba(255, 197, 83, 0.12);
    border-radius: var(--radius-pill);
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 700;
}

.media {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.media a {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(157, 190, 239, 0.24);
}

.media img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.media a:hover img {
    transform: scale(1.03);
}

.timeline {
    margin-top: 9px;
    background: var(--panel-2);
    border: 1px solid rgba(160, 186, 223, 0.18);
    border-radius: var(--radius-md);
    padding: 10px 12px;
}

.timeline b {
    display: block;
    margin-bottom: 4px;
}

.ach.done {
    border-color: rgba(116, 214, 163, 0.55);
    background: rgba(92, 170, 124, 0.12);
}

.progress {
    margin-top: 7px;
    height: 7px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.13);
    overflow: hidden;
}

.progress i {
    display: block;
    height: 100%;
    background: var(--accent-fill);
}

ul.links {
    margin: 8px 0 0;
    padding-left: 18px;
}

ul.links li {
    margin-bottom: 6px;
}

a.user {
    color: #d4e6ff;
    text-decoration: none;
}

a.user:hover {
    text-decoration: underline;
}

/* Messages */
.messages-layout {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 18px;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.sidebar {
    padding: 14px;
}

.panel-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 10px;
}

.quick-form {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.quick-form textarea {
    min-height: 66px;
    resize: vertical;
}

.quick-form button {
    border-radius: 10px;
}

.chat-list {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.chat-link {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.chat-link:hover {
    background: rgba(255, 255, 255, 0.07);
}

.chat-link.active {
    border-color: #5e7698;
    background: rgba(94, 118, 152, 0.2);
}

.chat-name {
    font-weight: 700;
    margin-bottom: 4px;
}

.chat-meta {
    font-size: 12px;
    color: var(--muted);
}

.chat-main {
    min-height: 720px;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.chat-header {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.chat-header h2 {
    margin: 0;
    font-size: 20px;
}

.chat-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chat-actions form {
    display: flex;
    gap: 8px;
}

.chat-actions input,
.chat-actions button {
    border-radius: 10px;
    padding: 8px 10px;
}

.chat-actions button {
    cursor: pointer;
}

.messages-scroll {
    padding: 16px;
    overflow-y: auto;
    max-height: 560px;
    display: grid;
    gap: 10px;
}

.bubble {
    max-width: 76%;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    justify-self: start;
    height: fit-content;
}

.bubble.mine {
    justify-self: end;
    background: rgba(74, 100, 143, 0.33);
    border-color: rgba(125, 164, 226, 0.35);
}

.bubble.system {
    justify-self: center;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-size: 12px;
}

.bubble-head {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px;
}

.bubble-text {
    white-space: pre-wrap;
    line-height: 1.5;
}

.chat-compose {
    padding: 12px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.chat-compose form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.chat-compose textarea {
    min-height: 52px;
    max-height: 160px;
    resize: vertical;
}

.chat-compose button {
    border-radius: 12px;
    padding: 10px 16px;
    cursor: pointer;
}

.notice {
    margin: 0 20px 10px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
}

.notice.error {
    background: rgba(255, 100, 100, 0.13);
    border: 1px solid rgba(255, 120, 120, 0.4);
    color: #ffb0b0;
}

.notice.success {
    background: rgba(120, 255, 170, 0.12);
    border: 1px solid rgba(120, 255, 170, 0.3);
    color: #baffd0;
}

.empty-state {
    padding: 36px 20px;
    color: var(--muted);
}

@media (max-width: 980px) {
    .vf-header {
        margin: 10px 10px 0;
    }

    .messages-layout {
        grid-template-columns: 1fr;
    }

    .chat-main {
        min-height: 620px;
    }

    .bubble {
        max-width: 92%;
    }
}

@media (max-width: 960px) {
    .stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .grid2 {
        grid-template-columns: 1fr;
    }

    .media {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .wrap {
        margin-top: 22px;
        padding: 0 12px 22px;
    }

    .hero {
        padding: 16px;
    }

    .identity h1 {
        font-size: 23px;
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .media {
        grid-template-columns: 1fr;
    }

    .vf-logo {
        font-size: 19px;
    }

    .vf-menu a {
        width: 100%;
        justify-content: center;
    }

    .vf-menu {
        width: 100%;
    }
}

/* Enhanced chat UI */
.transient-notice {
    margin-top: 10px;
}

.ws-indicator {
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
}

.ws-indicator[data-status="online"] {
    color: #9af5bf;
}

.ws-indicator[data-status="error"],
.ws-indicator[data-status="offline"] {
    color: #ffb0b0;
}

.chat-link {
    position: relative;
    padding-right: 42px;
}

.chat-link .chat-open {
    display: block;
    color: inherit;
    text-decoration: none;
}

.chat-link.pinned {
    border-color: rgba(255, 220, 143, 0.4);
    background: rgba(255, 197, 83, 0.08);
}

.chat-pin-toggle {
    position: absolute;
    top: 8px;
    right: 8px;
    border: 1px solid rgba(151, 188, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: #d9e8ff;
    width: 28px;
    height: 28px;
    padding: 0;
    cursor: pointer;
}

.typing-indicator {
    min-height: 20px;
    padding: 2px 16px 0;
    font-size: 12px;
    color: var(--muted);
}

.reply-compose {
    margin: 0 14px 10px;
    border: 1px solid rgba(151, 188, 255, 0.24);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 8px 12px;
    position: relative;
}

.reply-compose-label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 2px;
}

.reply-compose-text {
    font-size: 13px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 18px;
}

.reply-compose-close {
    position: absolute;
    top: 5px;
    right: 7px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 14px;
    cursor: pointer;
}

.is-hidden {
    display: none !important;
}

.compose-attachments {
    margin: 0 14px 10px;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}

.attachment-item {
    border: 1px solid rgba(151, 188, 255, 0.22);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 6px;
}

.attachment-preview-image,
.attachment-preview-video {
    width: 100%;
    height: 88px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    background: rgba(0, 0, 0, 0.2);
}

.attachment-name {
    margin-top: 5px;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--muted);
}

.attachment-remove-btn {
    margin-top: 4px;
    width: 100%;
    border: 1px solid rgba(255, 150, 150, 0.28);
    background: rgba(200, 80, 80, 0.2);
    color: #ffd4d4;
    border-radius: 8px;
    font-size: 12px;
    padding: 4px 6px;
    cursor: pointer;
}

.chat-compose .compose-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-state {
    font-size: 12px;
}

.reply-snippet {
    border-left: 3px solid rgba(120, 163, 255, 0.55);
    padding: 5px 8px;
    margin: 6px 0 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0 8px 8px 0;
}

.reply-snippet-user {
    font-size: 12px;
    color: #cfe2ff;
    margin-bottom: 2px;
}

.reply-snippet-text {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bubble-meta {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--muted);
}

.delivery-flag {
    color: #b9d3ff;
}

.edited-flag {
    color: #9fc4ff;
}

.deleted-text {
    color: #ffccd0;
    opacity: 0.9;
}

.message-media {
    margin-top: 8px;
    display: grid;
    gap: 8px;
}

.message-image,
.message-video {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(151, 188, 255, 0.24);
    max-height: 340px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.2);
}

.message-reactions {
    margin-top: 8px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.reaction-chip {
    border: 1px solid rgba(151, 188, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #e4efff;
    font-size: 12px;
    padding: 3px 8px;
    cursor: pointer;
}

.reaction-chip.active {
    border-color: rgba(255, 220, 143, 0.5);
    background: rgba(255, 197, 83, 0.16);
}

.message-controls {
    margin-top: 8px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.msg-action-btn {
    border: 1px solid rgba(151, 188, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: #d9e8ff;
    font-size: 12px;
    padding: 4px 8px;
    cursor: pointer;
}

.msg-action-btn:hover {
    border-color: rgba(185, 214, 255, 0.52);
}

.msg-action-btn.danger {
    border-color: rgba(255, 150, 150, 0.28);
    color: #ffd4d4;
    background: rgba(200, 80, 80, 0.18);
}

.msg-action-btn.emoji-btn {
    min-width: 34px;
    padding: 4px 6px;
}

.mention {
    color: #b8d2ff;
    font-weight: 700;
}

.mention-self {
    color: #ffd994;
}

/* Twitter-inspired VOID skin */
:root {
    --bg: #dde1e4;
    --bg-soft: #d2d6da;
    --panel: #dde1e4;
    --panel-2: #d2d7db;
    --stroke: #bcc4ca;
    --stroke-strong: #929da6;
    --text: #12171b;
    --muted: #52606b;
    --accent: #5f6871;
    --accent-2: #454d55;
    --accent-soft: rgba(95, 104, 113, 0.12);
    --accent-soft-strong: rgba(95, 104, 113, 0.2);
    --accent-glow: rgba(95, 104, 113, 0.28);
    --accent-fill: linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, rgba(184, 191, 198, 0.94) 22%, rgba(103, 111, 119, 1) 58%, rgba(255, 255, 255, 0.18) 100%);
    --accent-fill-strong: linear-gradient(135deg, rgba(255, 255, 255, 0.34) 0%, rgba(198, 204, 210, 1) 20%, rgba(83, 91, 99, 1) 60%, rgba(255, 255, 255, 0.22) 100%);
    --danger: #f4212e;
    --success: #00ba7c;
    --shadow: none;
    --radius-xl: 16px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --light-overlay: rgba(221, 225, 228, 0.94);
}

html,
body {
    background: #ffffff;
}

body {
    color: var(--text);
    font-family: var(--vf-font-body);
    overflow-x: hidden;
}

body.vf-shell-active {
    padding-left: 270px;
    padding-right: 370px;
}

a {
    color: var(--accent);
}

a:hover {
    color: var(--accent-2);
}

textarea,
input,
select {
    color: var(--text);
    background: #ffffff;
    border-color: var(--stroke-strong);
    border-radius: 8px;
}

textarea::placeholder,
input::placeholder {
    color: #8b98a5;
}

textarea:focus,
input:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

select,
select option {
    color: var(--text);
    background: #ffffff;
}

.card,
.panel {
    color: var(--text);
    background: #ffffff;
    border-color: var(--stroke);
    box-shadow: none;
    backdrop-filter: none;
}

.hint,
.meta,
.chat-meta,
.bubble-head {
    color: var(--muted);
}

.btn,
.btn2,
button.like-button,
.like-btn,
.login-card button,
.card button {
    min-height: 36px;
    border-radius: 999px;
    font-weight: 800;
    transform: none;
    box-shadow: none;
}

.btn,
.login-card button,
.card button {
    border: 1px solid var(--accent);
    color: #ffffff;
    background: var(--accent-fill);
}

.btn:hover,
.login-card button:hover,
.card button:hover {
    border-color: var(--accent-2);
    color: #ffffff;
    background: var(--accent-fill-strong);
    transform: none;
    box-shadow: none;
}

.btn2 {
    border: 1px solid var(--stroke-strong);
    color: var(--text);
    background: #ffffff;
}

.btn2:hover {
    border-color: var(--stroke-strong);
    color: var(--text);
    background: rgba(15, 20, 25, 0.06);
    transform: none;
}

.vf-header {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1200;
    width: 270px;
    max-width: none;
    margin: 0;
    padding: 10px 18px 12px 28px;
    border: 0;
    border-right: 1px solid var(--stroke);
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: nowrap;
}

.vf-logo {
    width: fit-content;
    min-height: 58px;
    margin: 0 0 4px;
    padding: 7px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-family: var(--vf-font-body);
}

.vf-logo:hover {
    color: var(--text);
    background: var(--accent-soft);
}

.vf-logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: var(--accent-fill);
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.vf-logo-text {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.35px;
}

.vf-menu {
    width: 100%;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex-wrap: nowrap;
}

.vf-menu a {
    min-height: 52px;
    width: fit-content;
    margin: 0;
    padding: 11px 15px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    gap: 18px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
}

.vf-menu a:hover,
.vf-menu a.active {
    color: var(--text);
    border: 0;
    background: rgba(15, 20, 25, 0.08);
    transform: none;
}

.vf-menu a.active {
    font-weight: 900;
}

.vf-menu a.logout {
    margin-top: auto;
    color: var(--text);
    border: 0;
    background: transparent;
}

.vf-menu a.logout:hover {
    color: var(--danger);
    background: rgba(244, 33, 46, 0.1);
}

.vf-menu svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.vf-menu .vf-nav-svg-icon {
    width: 27px;
    height: 27px;
    flex: 0 0 auto;
    object-fit: contain;
    filter: brightness(0) saturate(100%);
}

[data-theme="dark"] .vf-menu .vf-nav-svg-icon {
    filter: brightness(0) invert(1);
}

.vf-menu a.active svg {
    stroke-width: 2.4;
}

.vf-account {
    width: 100%;
    min-height: 64px;
    margin-top: 8px;
    padding: 10px;
    border-radius: 999px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
}

.vf-account:hover {
    color: var(--text);
    background: rgba(15, 20, 25, 0.08);
}

.vf-account img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.vf-account span {
    min-width: 0;
}

.vf-account strong,
.vf-account small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vf-account strong {
    font-size: 14px;
}

.vf-account small {
    color: var(--muted);
    font-size: 13px;
}

.vf-account b {
    font-size: 14px;
    letter-spacing: 2px;
}

.vf-right-rail {
    position: fixed;
    z-index: 800;
    top: 0;
    right: 16px;
    bottom: 0;
    width: 338px;
    padding: 8px 0 24px;
    overflow-y: auto;
    color: var(--text);
    background: #ffffff;
}

.vf-search-visual {
    position: sticky;
    top: 0;
    z-index: 2;
    height: 46px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    background: #eff3f4;
    font-size: 14px;
}

.vf-search-visual svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.vf-search-visual input[type="search"] {
    width: 100%;
    min-width: 0;
    padding: 8px 0;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    font: inherit;
}

.vf-search-visual input[type="search"]::placeholder {
    color: var(--muted);
}

.vf-search-visual span {
    display: none;
}

.vf-search-visual:focus-within {
    border-color: var(--stroke-strong);
    background: var(--panel);
}

.vf-rail-card {
    margin-top: 16px;
    border-radius: 16px;
    overflow: hidden;
    background: #f7f9f9;
}

.vf-rail-card h2 {
    margin: 0;
    padding: 13px 16px 10px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.4px;
}

.vf-rail-card a {
    padding: 12px 16px;
    border-top: 1px solid var(--stroke);
    display: block;
    color: var(--text);
    text-decoration: none;
}

.vf-rail-card a:hover {
    color: var(--text);
    background: rgba(15, 20, 25, 0.04);
}

.vf-rail-card small,
.vf-rail-card strong,
.vf-rail-card span {
    display: block;
}

.vf-rail-card small,
.vf-rail-card span {
    color: var(--muted);
    font-size: 12px;
}

.vf-rail-card strong {
    margin: 2px 0;
    font-size: 14px;
    font-weight: 800;
}

.vf-rail-footer {
    padding: 14px 16px;
    color: var(--muted);
    font-size: 12px;
}

.feed-container,
.wrap,
.container,
.messages-layout {
    color: var(--text);
    background: #ffffff;
}

.feed-container {
    width: 100%;
    max-width: 620px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 0;
    border-right: 1px solid var(--stroke);
    border-left: 1px solid var(--stroke);
}

.feed-container > h1 {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 0;
    padding: 15px 16px;
    border-bottom: 1px solid var(--stroke);
    color: var(--text);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    font-family: var(--vf-font-body) !important;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.4px;
}

.feed-container > .hint {
    margin: 0;
    padding: 32px 20px;
    text-align: center;
}

.post-card {
    position: relative;
    margin: 0;
    padding: 12px 16px 10px;
    border: 0;
    border-bottom: 1px solid var(--stroke);
    border-radius: 0;
    color: var(--text);
    background: #ffffff;
    transition: background 0.16s ease;
}

.post-card:hover {
    background: rgba(0, 0, 0, 0.015);
}

.post-card > p:first-child {
    min-height: 42px;
    margin: 0 !important;
}

.post-card .profile-avatar {
    width: 42px;
    height: 42px;
    border: 0;
}

.post-card > p:first-child > img:not(.profile-avatar) {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.outsider-mark-icon {
    display: inline-block;
    flex: 0 0 auto;
    width: 1em;
    height: 1em;
    color: var(--text);
}

.outsider-mark-inline {
    vertical-align: middle;
}

.outsider-mark-feed {
    width: 22px;
    height: 22px;
    margin-left: 2px;
}

.post-card .author {
    color: var(--text);
    font-size: 15px;
    font-weight: 900;
}

.post-card .author:hover {
    color: var(--text);
    text-decoration: underline;
}

.post-card .date,
.post-card .content,
.post-card > .post-image,
.post-card > .pactions {
    margin-left: 50px;
}

.post-card .date {
    margin-top: 2px;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 13px;
}

.post-card .content {
    color: var(--text);
    font-size: 15px;
    line-height: 1.42;
}

.post-card .post-image {
    width: calc(100% - 50px);
    margin-top: 12px;
    margin-bottom: 6px;
    border: 1px solid var(--stroke-strong);
    border-radius: 3px;
}

.post-card .pactions {
    max-width: 440px;
    margin-top: 5px;
    justify-content: space-between;
}

.post-card .like-button,
.post-card button.like-button {
    min-height: 34px;
    padding: 5px 9px;
    border: 0;
    color: var(--muted);
    background: transparent;
    font-weight: 500;
}

.post-card .like-button:hover,
.post-card button.like-button:hover {
    color: var(--accent);
    background: var(--accent-soft);
    transform: none;
}

.like-count {
    color: inherit;
}

.wrap {
    width: 100%;
    max-width: 760px;
    min-height: 100vh;
    margin: 0 auto 48px;
    padding: 0;
    border-right: 1px solid var(--stroke);
    border-left: 1px solid var(--stroke);
}

.wrap > .notice {
    margin: 12px 16px;
}

.hero {
    min-height: 0;
    padding: 48px 16px 0;
    border: 0;
    border-bottom: 1px solid var(--stroke);
    border-radius: 0;
    color: var(--text);
    background: #ffffff;
    box-shadow: none;
    overflow: hidden;
}

.hero::after {
    inset: 0 0 auto;
    width: 100%;
    height: 180px;
    border-radius: 0;
    background:
        radial-gradient(circle at 72% 34%, rgba(255, 255, 255, 0.34) 0 7%, transparent 7.5%),
        radial-gradient(circle at 82% 38%, rgba(255, 255, 255, 0.22) 0 12%, transparent 12.5%),
        var(--accent-fill);
}

.hero .top {
    min-height: 88px;
    align-items: flex-end;
    gap: 14px;
}

.hero .ava {
    width: 136px;
    height: 136px;
    margin-top: -72px;
    border: 4px solid #ffffff;
    box-shadow: none;
    background: #ffffff;
}

.identity h1,
.login-card h1,
.card h1,
.section h2,
.comments-section h3 {
    color: var(--text);
    font-family: var(--vf-font-body);
    letter-spacing: -0.4px;
}

.identity h1 {
    font-size: 23px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.outsider-mark-profile {
    width: 30px;
    height: 30px;
}

.hero .meta {
    margin-top: 2px;
    font-size: 14px;
}

.badges {
    margin-top: 14px;
}

.badge {
    padding: 4px 9px;
    border: 1px solid var(--stroke-strong);
    color: var(--muted);
    background: #ffffff;
}

.stats {
    margin-top: 15px;
    display: flex;
    gap: 18px;
}

.metric {
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    display: flex;
    align-items: baseline;
    gap: 4px;
    text-align: left;
    background: transparent;
}

.metric strong {
    display: inline;
    margin: 0;
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
}

.metric span {
    color: var(--muted);
    font-size: 13px;
}

.hero .actions {
    margin-top: 16px;
    justify-content: flex-end;
}

.tabs {
    margin: 16px -16px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 0;
}

.tab {
    min-height: 52px;
    padding: 14px 8px 12px;
    border: 0;
    border-radius: 0;
    color: var(--muted);
    background: transparent;
    font-size: 13px;
    font-weight: 800;
}

.tab:hover {
    border: 0;
    color: var(--text);
    background: rgba(15, 20, 25, 0.06);
    transform: none;
}

.tab.active {
    color: var(--text);
    border: 0;
    box-shadow: inset 0 -4px 0 var(--accent);
    background: transparent;
}

.section {
    margin: 0;
    padding: 18px 16px;
    border: 0;
    border-bottom: 1px solid var(--stroke);
    border-radius: 0;
    background: #ffffff;
}

.section h2 {
    margin-bottom: 14px;
    font-size: 20px;
    font-weight: 900;
}

.tile,
.timeline {
    color: var(--text);
    background: #f7f9f9;
    border-color: var(--stroke);
    border-radius: 12px;
}

.tile small {
    color: var(--muted);
}

.section .post {
    margin: 0 -16px;
    padding: 14px 16px;
    border: 0;
    border-top: 1px solid var(--stroke);
    border-radius: 0;
    background: #ffffff;
}

.pimg,
.post-image {
    border-color: var(--stroke-strong);
    border-radius: 16px;
}

.pinned {
    color: var(--accent);
    border: 0;
    background: var(--accent-soft);
}

.media a {
    border-color: var(--stroke);
    border-radius: 4px;
}

a.user {
    color: var(--accent);
}

.container {
    width: 100%;
    max-width: 660px;
    min-height: 100vh;
    margin: 0 auto 48px;
    padding: 0 16px 30px;
    border-right: 1px solid var(--stroke);
    border-left: 1px solid var(--stroke);
}

.container > .post {
    margin: 0 -16px;
    padding: 18px 16px;
    border: 0;
    border-bottom: 1px solid var(--stroke);
    border-radius: 0;
    background: #ffffff;
}

.post-author a {
    color: var(--text);
    font-weight: 900;
}

.post-time,
.comment-time,
.comment-header {
    color: var(--muted);
}

.post-text,
.comment-text {
    color: var(--text);
}

.comments-section h3 {
    font-size: 20px;
    font-weight: 900;
}

.comment {
    margin: 0 -16px;
    padding: 14px 16px;
    border: 0;
    border-top: 1px solid var(--stroke);
    border-radius: 0;
    background: #ffffff;
}

.messages-layout {
    width: 100%;
    max-width: 1000px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
    gap: 0;
}

.messages-layout .panel {
    border-radius: 0;
}

.messages-layout > .sidebar {
    padding: 14px 0;
    border: 1px solid var(--stroke);
    border-top: 0;
}

.panel-title,
.messages-layout .quick-form {
    margin-right: 14px;
    margin-left: 14px;
}

.panel-title {
    color: var(--text);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: none;
}

.chat-list {
    gap: 0;
    margin-top: 8px;
}

.chat-link {
    min-height: 72px;
    padding: 12px 44px 12px 14px;
    border: 0;
    border-top: 1px solid var(--stroke);
    border-radius: 0;
    color: var(--text);
    background: #ffffff;
}

.chat-link:hover {
    background: rgba(15, 20, 25, 0.04);
}

.chat-link.active {
    border-color: var(--stroke);
    box-shadow: inset 3px 0 0 var(--accent);
    background: #f7f9f9;
}

.chat-link.pinned {
    border-color: var(--stroke);
    background: var(--accent-soft);
}

.chat-name {
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
}

.chat-pin-toggle {
    border: 0;
    color: var(--muted);
    background: transparent;
}

.chat-main {
    min-width: 0;
    min-height: 100vh;
    border: 1px solid var(--stroke);
    border-top: 0;
}

.chat-header {
    min-height: 68px;
    padding: 12px 16px;
    border-color: var(--stroke);
    background: rgba(255, 255, 255, 0.96);
}

.chat-header h2 {
    color: var(--text);
    font-size: 18px;
    font-weight: 900;
}

.ws-indicator[data-status="online"] {
    color: var(--success);
}

.ws-indicator[data-status="error"],
.ws-indicator[data-status="offline"] {
    color: var(--danger);
}

.messages-scroll {
    max-height: calc(100vh - 215px);
    min-height: 420px;
    padding: 18px 16px;
    background: #ffffff;
}

.bubble {
    max-width: 78%;
    border: 0;
    border-radius: 18px 18px 18px 4px;
    color: var(--text);
    background: #eff3f4;
}

.bubble.mine {
    border: 0;
    border-radius: 18px 18px 4px 18px;
    color: #ffffff;
    background: var(--accent);
}

.bubble.mine .bubble-head,
.bubble.mine .bubble-meta,
.bubble.mine .delivery-flag,
.bubble.mine .edited-flag {
    color: rgba(255, 255, 255, 0.78);
}

.bubble.system {
    color: var(--muted);
    background: #f7f9f9;
}

.chat-compose {
    border-color: var(--stroke);
    background: #ffffff;
}

.chat-compose textarea {
    border: 0;
    border-radius: 20px;
    background: #eff3f4;
}

.typing-indicator {
    color: var(--accent);
}

.reply-compose,
.reply-snippet,
.attachment-item {
    border-color: var(--stroke);
    color: var(--text);
    background: #f7f9f9;
}

.reply-compose-text,
.reply-snippet-user {
    color: var(--text);
}

.reaction-chip,
.msg-action-btn {
    border-color: var(--stroke-strong);
    color: var(--text);
    background: #ffffff;
}

.reaction-chip.active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.mention,
.mention-self {
    color: var(--accent);
}

.notice {
    color: var(--text);
    border-radius: 8px;
}

.notice.error,
.error-message {
    color: #b4232c;
    border-color: rgba(244, 33, 46, 0.24);
    background: rgba(244, 33, 46, 0.08);
}

.notice.success {
    color: #007a52;
    border-color: rgba(0, 186, 124, 0.25);
    background: rgba(0, 186, 124, 0.09);
}

.login-card {
    width: min(430px, calc(100vw - 28px));
    margin: 7vh auto !important;
    padding: 32px 28px;
    border: 1px solid var(--stroke-strong);
    border-radius: 18px;
    color: var(--text);
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(15, 20, 25, 0.08);
}

.login-card::before {
    content: "V";
    width: 50px;
    height: 50px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--accent);
    font-size: 28px;
    font-weight: 900;
}

.login-card h1,
.card h1 {
    font-size: 26px;
    font-weight: 900;
}

.login-card input {
    min-height: 48px;
    border-radius: 8px;
}

.login-card .btn2 {
    color: var(--text);
    border-color: var(--stroke-strong);
    background: #ffffff;
}

.login-card .links a {
    color: var(--accent);
}

.vf-notify-item {
    border-color: var(--stroke-strong);
    color: var(--text);
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 20, 25, 0.14);
}

.vf-notify-title {
    color: var(--text);
}

.vf-notify-body {
    color: var(--muted);
}

@media (max-width: 1279px) {
    body.vf-shell-active {
        padding-left: 92px;
        padding-right: 348px;
    }

    .vf-header {
        width: 92px;
        padding: 10px 12px;
        align-items: center;
    }

    .vf-logo-text,
    .vf-nav-label,
    .vf-account span,
    .vf-account b {
        display: none;
    }

    .vf-logo {
        padding: 7px;
    }

    .vf-menu {
        align-items: center;
    }

    .vf-menu a {
        width: 54px;
        justify-content: center;
        padding: 12px;
    }

    .vf-account {
        width: 58px;
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 1080px) {
    body.vf-shell-active {
        padding-right: 0;
    }

    .vf-right-rail {
        display: none;
    }

    .messages-layout {
        max-width: 900px;
    }
}

@media (max-width: 760px) {
    body.vf-shell-active {
        padding: 0 0 68px;
    }

    .vf-header {
        inset: auto 0 0;
        width: 100%;
        height: 64px;
        padding: 5px 8px;
        border: 0;
        border-top: 1px solid var(--stroke);
        display: block;
    }

    .vf-logo,
    .vf-account {
        display: none;
    }

    .vf-menu {
        height: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
    }

    .vf-menu a {
        width: 48px;
        min-height: 48px;
        padding: 10px;
    }

    .vf-menu a.logout {
        margin: 0;
    }

    .vf-menu svg {
        width: 25px;
        height: 25px;
    }

    .feed-container,
    .wrap,
    .container,
    .messages-layout {
        max-width: none;
        border-right: 0;
        border-left: 0;
    }

    .wrap {
        margin-top: 0;
        padding: 0 0 24px;
    }

    .hero {
        padding: 132px 14px 0;
    }

    .hero::before {
        height: 130px;
    }

    .hero .ava {
        width: 104px;
        height: 104px;
        margin-top: -54px;
    }

    .hero .top {
        min-height: 72px;
    }

    .identity h1 {
        font-size: 20px;
    }

    .stats {
        gap: 12px;
        overflow-x: auto;
    }

    .metric {
        flex: 0 0 auto;
    }

    .tabs {
        overflow-x: auto;
        grid-template-columns: repeat(5, minmax(105px, 1fr));
    }

    .post-card {
        padding-right: 12px;
        padding-left: 12px;
    }

    .post-card .date,
    .post-card .content,
    .post-card > .post-image,
    .post-card > .pactions {
        margin-left: 48px;
    }

    .post-card .post-image {
        width: calc(100% - 48px);
    }

    .messages-layout {
        grid-template-columns: 1fr;
    }

    .messages-layout > .sidebar {
        max-height: 340px;
        overflow-y: auto;
    }

    .chat-main {
        min-height: 620px;
    }

    .messages-scroll {
        max-height: 500px;
    }
}

@media (max-width: 480px) {
    .vf-menu a.logout {
        display: none;
    }

    .hero .top {
        display: block;
    }

    .hero .identity {
        margin-top: 8px;
    }

    .hero .actions {
        justify-content: flex-start;
    }

    .grid2 {
        grid-template-columns: 1fr;
    }

    .post-card .date,
    .post-card .content,
    .post-card > .post-image,
    .post-card > .pactions {
        margin-left: 0;
    }

    .post-card .content {
        margin-top: 8px;
    }

    .post-card .post-image {
        width: 100%;
    }
}

.voidmod-visibility-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.voidmod-visibility-item {
    padding: 14px;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    background: var(--panel-2);
}

.voidmod-visibility-item span {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
}

.voidmod-visibility-item select {
    width: 100%;
}

.voidmod-reset-card {
    border-bottom-color: rgba(244, 33, 46, 0.35);
}

.voidmod-reset-warning {
    margin-bottom: 16px;
    padding: 13px 15px;
    border: 1px solid rgba(244, 33, 46, 0.28);
    border-radius: 12px;
    color: var(--danger);
    background: rgba(244, 33, 46, 0.07);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.voidmod-reset-button,
.voidmod-reset-button:hover {
    border-color: var(--danger);
    color: #ffffff;
    background: var(--danger);
}

.voidmod-reset-button:disabled {
    opacity: 0.55;
    cursor: wait;
}

.voidmod-reset-status {
    min-height: 22px;
    color: var(--muted);
    font-size: 13px;
}

.voidmod-reset-status.success {
    color: var(--success);
}

.voidmod-reset-status.error {
    color: var(--danger);
}

.dishonored-record[hidden],
.dishonored-stats-empty[hidden] {
    display: none;
}

@media (max-width: 640px) {
    .voidmod-visibility-grid {
        grid-template-columns: 1fr;
    }
}

.card button.btn2 {
    border: 1px solid var(--stroke-strong);
    color: var(--text);
    background: #ffffff;
}

.card button.btn2:hover {
    color: var(--text);
    background: rgba(15, 20, 25, 0.06);
}

.section > form textarea[name="content"] {
    width: 100%;
    min-height: 112px;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid var(--stroke);
    border-radius: 0;
    color: var(--text);
    background: #ffffff;
    font-size: 18px;
    line-height: 1.45;
    resize: vertical;
}

.section > form textarea[name="content"]:focus {
    border-color: var(--stroke);
    box-shadow: none;
}

.section > form textarea[name="content"] + .actions {
    justify-content: flex-end;
}

/* Theme switch and app-like page transitions */
.vf-theme-toggle {
    min-height: 52px;
    width: fit-content;
    margin: 0;
    padding: 11px 15px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    color: var(--text);
    background: transparent;
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.vf-theme-toggle:hover {
    color: var(--text);
    background: rgba(15, 20, 25, 0.08);
}

.vf-theme-icon-sun {
    display: none;
}

[data-theme="dark"] .vf-theme-icon-moon {
    display: none;
}

[data-theme="dark"] .vf-theme-icon-sun {
    display: block;
}

.feed-container,
.wrap,
.container,
.messages-layout {
    view-transition-name: vf-page;
}

html.vf-is-navigating::after {
    content: "";
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 34%;
    height: 3px;
    border-radius: 0 999px 999px 0;
    background: var(--accent-fill);
    box-shadow: 0 0 14px var(--accent-glow);
    animation: vf-navigation-progress 0.85s ease-in-out infinite;
}

@keyframes vf-navigation-progress {
    from {
        transform: translateX(-110%);
    }
    to {
        transform: translateX(310%);
    }
}

::view-transition-old(vf-page) {
    animation: vf-page-out 0.14s ease both;
}

::view-transition-new(vf-page) {
    animation: vf-page-in 0.22s ease both;
}

@keyframes vf-page-out {
    to {
        opacity: 0;
        transform: translateY(-5px);
    }
}

@keyframes vf-page-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

/* Dark theme keeps Twitter's near-black palette and contrast. */
[data-theme="dark"] {
    --bg: #000000;
    --bg-soft: #000000;
    --panel: #000000;
    --panel-2: #16181c;
    --stroke: #2f3336;
    --stroke-strong: #536471;
    --text: #e7e9ea;
    --muted: #71767b;
    --accent: #8f979f;
    --accent-2: #666f78;
    --accent-soft: rgba(143, 151, 159, 0.14);
    --accent-soft-strong: rgba(143, 151, 159, 0.22);
    --accent-glow: rgba(143, 151, 159, 0.28);
    --accent-fill: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(150, 158, 166, 0.62) 20%, rgba(82, 89, 97, 0.94) 58%, rgba(255, 255, 255, 0.06) 100%);
    --accent-fill-strong: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(168, 175, 182, 0.72) 18%, rgba(95, 103, 111, 0.98) 60%, rgba(255, 255, 255, 0.09) 100%);
    --danger: #f4212e;
    --success: #00ba7c;
}

[data-theme="dark"],
[data-theme="dark"] body {
    color: var(--text);
    background: #000000;
}

[data-theme="dark"] textarea,
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] select option,
[data-theme="dark"] .card,
[data-theme="dark"] .panel,
[data-theme="dark"] .vf-header,
[data-theme="dark"] .vf-right-rail,
[data-theme="dark"] .feed-container,
[data-theme="dark"] .wrap,
[data-theme="dark"] .container,
[data-theme="dark"] .messages-layout,
[data-theme="dark"] .post-card,
[data-theme="dark"] .hero,
[data-theme="dark"] .section,
[data-theme="dark"] .section .post,
[data-theme="dark"] .container > .post,
[data-theme="dark"] .comment,
[data-theme="dark"] .chat-link,
[data-theme="dark"] .messages-scroll,
[data-theme="dark"] .chat-compose,
[data-theme="dark"] .reaction-chip,
[data-theme="dark"] .msg-action-btn,
[data-theme="dark"] .login-card,
[data-theme="dark"] .login-card .btn2,
[data-theme="dark"] .vf-notify-item,
[data-theme="dark"] .card button.btn2,
[data-theme="dark"] .section > form textarea[name="content"] {
    color: var(--text);
    background: #000000;
}

[data-theme="dark"] .vf-search-visual,
[data-theme="dark"] .bubble,
[data-theme="dark"] .chat-compose textarea {
    background: #202327;
}

[data-theme="dark"] .vf-rail-card,
[data-theme="dark"] .tile,
[data-theme="dark"] .timeline,
[data-theme="dark"] .chat-link.active,
[data-theme="dark"] .bubble.system,
[data-theme="dark"] .reply-compose,
[data-theme="dark"] .reply-snippet,
[data-theme="dark"] .attachment-item {
    background: #16181c;
}

[data-theme="dark"] .feed-container > h1,
[data-theme="dark"] .chat-header {
    background: rgba(0, 0, 0, 0.9);
}

[data-theme="dark"] .hero .ava {
    border-color: #000000;
    background: #000000;
}

[data-theme="dark"] .badge,
[data-theme="dark"] .btn2 {
    color: var(--text);
    background: #000000;
}

[data-theme="dark"] .post-card:hover,
[data-theme="dark"] .chat-link:hover,
[data-theme="dark"] .vf-menu a:hover,
[data-theme="dark"] .vf-menu a.active,
[data-theme="dark"] .vf-theme-toggle:hover,
[data-theme="dark"] .vf-account:hover,
[data-theme="dark"] .tab:hover,
[data-theme="dark"] .vf-rail-card a:hover,
[data-theme="dark"] .card button.btn2:hover {
    color: var(--text);
    background: rgba(231, 233, 234, 0.1);
}

[data-theme="dark"] .bubble.mine {
    color: #ffffff;
    background: var(--accent);
}

[data-theme="dark"] .notice.error,
[data-theme="dark"] .error-message {
    color: #ff8d95;
}

[data-theme="dark"] .notice.success {
    color: #56d8ad;
}

[data-theme="dark"] .login-card,
[data-theme="dark"] .vf-notify-item {
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.04);
}

@media (max-width: 1279px) {
    .vf-theme-toggle {
        width: 54px;
        justify-content: center;
        padding: 12px;
    }
}

@media (max-width: 760px) {
    .vf-theme-toggle {
        width: 48px;
        min-height: 48px;
        padding: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.vf-is-navigating::after,
    ::view-transition-old(vf-page),
    ::view-transition-new(vf-page) {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
    }
}

.dishonored-section {
    overflow: hidden;
    padding: 0;
    border-color: rgba(127, 164, 177, .34);
    background:
        radial-gradient(circle at 12% -12%, rgba(125, 207, 225, .22), transparent 34%),
        radial-gradient(circle at 92% 4%, rgba(162, 120, 255, .14), transparent 32%),
        linear-gradient(145deg, #091119, #111b22 46%, #0a1016);
    color: #eef7fa;
}

.dishonored-section[hidden] {
    display: none;
}

.dishonored-dashboard {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(18px, 3vw, 30px);
}

.dishonored-dashboard::before,
.dishonored-dashboard::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.dishonored-dashboard::before {
    inset: 0;
    opacity: .18;
    background:
        linear-gradient(115deg, transparent 0 24px, rgba(255, 255, 255, .22) 25px 26px, transparent 27px 54px),
        radial-gradient(circle at 72% 28%, rgba(118, 210, 226, .34), transparent 24%);
}

.dishonored-dashboard::after {
    right: -90px;
    bottom: -130px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(110, 180, 198, .14);
    filter: blur(4px);
}

.dishonored-dashboard-head {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    margin-bottom: 16px;
}

.dishonored-dashboard-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(151, 212, 226, .34);
    border-radius: 999px;
    color: #9fd9e6;
    background: rgba(151, 212, 226, .1);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
}

.dishonored-dashboard h2 {
    margin: 12px 0 8px;
    color: #ffffff;
    font-family: var(--vf-font-display);
    font-size: clamp(28px, 5vw, 48px);
    line-height: .95;
    letter-spacing: -.045em;
}

.dishonored-dashboard-head p {
    max-width: 720px;
    margin: 0;
    color: #b9cbd2;
    font-size: 15px;
    line-height: 1.55;
}

.dishonored-dashboard-sigil {
    width: clamp(86px, 14vw, 140px);
    height: clamp(86px, 14vw, 140px);
    display: grid;
    place-items: center;
    border: 1px solid rgba(151, 212, 226, .22);
    border-radius: 30px;
    color: rgba(151, 220, 235, .56);
    background: rgba(255, 255, 255, .05);
    transform: rotate(4deg);
}

.dishonored-dashboard-sigil svg,
.dishonored-record-mark svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dishonored-dashboard-sigil svg {
    width: 74%;
    height: 74%;
    stroke-width: 2.1;
}

.dishonored-dashboard-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin-bottom: 16px;
    padding: 13px 14px;
    border: 1px solid rgba(151, 212, 226, .18);
    border-radius: 18px;
    color: #c8d7dc;
    background: rgba(255, 255, 255, .055);
}

.dishonored-dashboard-note span {
    color: #ffffff;
    font-weight: 900;
}

.dishonored-dashboard-note p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
}

.dishonored-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.dishonored-record {
    position: relative;
    min-height: 176px;
    padding: 15px;
    border: 1px solid rgba(151, 212, 226, .2);
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    color: #f5fbfd;
    background:
        radial-gradient(circle at 86% 8%, rgba(155, 220, 235, .2), transparent 30%),
        linear-gradient(150deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.dishonored-record[hidden],
.dishonored-stats-empty[hidden] {
    display: none;
}

.dishonored-record-kills {
    background:
        radial-gradient(circle at 92% 0%, rgba(255, 88, 88, .18), transparent 34%),
        linear-gradient(150deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035));
}

.dishonored-record-coins {
    background:
        radial-gradient(circle at 92% 0%, rgba(252, 210, 86, .2), transparent 34%),
        linear-gradient(150deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035));
}

.dishonored-record-alarms {
    background:
        radial-gradient(circle at 92% 0%, rgba(255, 130, 63, .2), transparent 34%),
        linear-gradient(150deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035));
}

.dishonored-record-detected {
    background:
        radial-gradient(circle at 92% 0%, rgba(142, 181, 255, .2), transparent 34%),
        linear-gradient(150deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035));
}

.dishonored-record::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .16;
    background:
        linear-gradient(120deg, transparent 0 34px, rgba(255, 255, 255, .18) 35px 36px, transparent 37px 72px);
    pointer-events: none;
}

.dishonored-record-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.dishonored-record-copy small {
    display: block;
    margin-bottom: 5px;
    color: #91b7c2;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.dishonored-record-copy strong {
    display: inline-block;
    color: #ffffff;
    font-family: var(--vf-font-display);
    font-size: clamp(34px, 4.4vw, 52px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.055em;
}

.dishonored-record-copy span {
    display: inline-block;
    margin-left: 5px;
    color: #d7e7ec;
    font-size: 13px;
    font-weight: 850;
}

.dishonored-record-note {
    margin: 9px 0 0;
    color: #a9c0c8;
    font-size: 12px;
    line-height: 1.45;
}

.dishonored-record-mark {
    position: relative;
    z-index: 1;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(151, 212, 226, .2);
    border-radius: 15px;
    color: rgba(184, 236, 247, .72);
    background: rgba(255, 255, 255, .07);
    pointer-events: none;
}

.dishonored-record-mark svg {
    width: 25px;
    height: 25px;
    stroke-width: 2.4;
}

.dishonored-record-mark-coins {
    color: rgba(255, 224, 126, .82);
}

.dishonored-record-mark-alarm {
    color: rgba(255, 171, 105, .82);
}

.dishonored-record-mark-eye {
    color: rgba(174, 202, 255, .82);
}

.dishonored-stats-empty {
    margin: 16px 0 0;
    padding: 16px;
    border: 1px dashed rgba(151, 212, 226, .26);
    border-radius: 18px;
    color: #b9cbd2;
    background: rgba(255, 255, 255, .045);
}

.dishonored-dashboard-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding: 16px;
    border: 1px solid rgba(151, 212, 226, .22);
    border-radius: 20px;
    background: rgba(255, 255, 255, .07);
}

.dishonored-dashboard-cta strong,
.dishonored-dashboard-cta span {
    display: block;
}

.dishonored-dashboard-cta strong {
    color: #ffffff;
    font-size: 16px;
}

.dishonored-dashboard-cta span {
    margin-top: 3px;
    color: #b9cbd2;
    font-size: 13px;
    line-height: 1.45;
}

.dishonored-dashboard-cta .btn {
    flex: 0 0 auto;
    border-color: rgba(151, 212, 226, .34);
    color: #081117;
    background: #b8ecf7;
    box-shadow: none;
}

@media (max-width: 760px) {
    .tabs {
        grid-template-columns: repeat(5, minmax(105px, 1fr));
    }

    .tabs.tabs-six {
        grid-template-columns: repeat(6, minmax(105px, 1fr));
    }

    .dishonored-dashboard-head {
        grid-template-columns: minmax(0, 1fr);
    }

    .dishonored-dashboard-sigil {
        position: absolute;
        top: 0;
        right: 0;
        opacity: .3;
    }

    .dishonored-dashboard-note {
        grid-template-columns: minmax(0, 1fr);
    }

    .dishonored-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 430px) {
    .dishonored-dashboard {
        padding: 16px;
    }

    .dishonored-stats-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .dishonored-record {
        min-height: 142px;
    }

    .dishonored-dashboard-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .dishonored-dashboard-cta .btn {
        justify-content: center;
        width: 100%;
    }
}

.vf-dishonored-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(18px, 3vw, 30px);
    border-radius: inherit;
}

.vf-dishonored-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .18;
    background:
        linear-gradient(115deg, transparent 0 24px, rgba(255, 255, 255, .2) 25px 26px, transparent 27px 54px),
        radial-gradient(circle at 78% 18%, rgba(118, 210, 226, .34), transparent 26%);
    pointer-events: none;
}

.vf-dishonored-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
}

.vf-dishonored-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(151, 212, 226, .34);
    border-radius: 999px;
    color: #9fd9e6;
    background: rgba(151, 212, 226, .1);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
}

.vf-dishonored-head h2 {
    margin: 12px 0 8px;
    color: #ffffff;
    font-family: var(--vf-font-display);
    font-size: clamp(28px, 4.8vw, 46px);
    line-height: .96;
    letter-spacing: -.045em;
}

.vf-dishonored-head p {
    max-width: 760px;
    margin: 0;
    color: #b9cbd2;
    font-size: 15px;
    line-height: 1.55;
}

.vf-dishonored-sigil {
    width: clamp(78px, 11vw, 120px);
    height: clamp(78px, 11vw, 120px);
    display: grid;
    place-items: center;
    border: 1px solid rgba(151, 212, 226, .22);
    border-radius: 30px;
    color: rgba(151, 220, 235, .56);
    background: rgba(255, 255, 255, .05);
    transform: rotate(4deg);
}

.vf-dishonored-sigil svg,
.vf-dishonored-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vf-dishonored-sigil svg {
    width: 74%;
    height: 74%;
    stroke-width: 2.1;
}

.vf-dishonored-explainer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin: 16px 0;
    padding: 12px 14px;
    border: 1px solid rgba(151, 212, 226, .18);
    border-radius: 18px;
    color: #c8d7dc;
    background: rgba(255, 255, 255, .055);
}

.vf-dishonored-explainer span {
    color: #ffffff;
    font-weight: 900;
    white-space: nowrap;
}

.vf-dishonored-explainer p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
}

.vf-dishonored-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.vf-dishonored-tile {
    position: relative;
    min-width: 0;
    min-height: 154px;
    padding: 14px;
    border: 1px solid rgba(151, 212, 226, .2);
    border-radius: 22px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    color: #f5fbfd;
    background:
        radial-gradient(circle at 92% 0%, rgba(155, 220, 235, .18), transparent 34%),
        linear-gradient(150deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.vf-dishonored-tile[hidden],
.vf-dishonored-empty[hidden] {
    display: none !important;
}

.vf-dishonored-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .14;
    background: linear-gradient(120deg, transparent 0 34px, rgba(255, 255, 255, .18) 35px 36px, transparent 37px 72px);
    pointer-events: none;
}

.vf-dishonored-tile-kills {
    min-height: 190px;
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: center;
    gap: clamp(16px, 3vw, 28px);
    padding: clamp(18px, 3vw, 28px);
    background:
        radial-gradient(circle at 92% 0%, rgba(255, 88, 88, .18), transparent 34%),
        radial-gradient(circle at 14% 50%, rgba(151, 212, 226, .18), transparent 28%),
        linear-gradient(150deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035));
}

.vf-dishonored-tile-kills .vf-dishonored-icon {
    width: clamp(70px, 11vw, 112px);
    height: clamp(70px, 11vw, 112px);
    margin: 0;
    border-radius: 28px;
}

.vf-dishonored-tile-kills .vf-dishonored-icon svg {
    width: 58%;
    height: 58%;
    stroke-width: 1.9;
}

.vf-dishonored-tile-kills .vf-dishonored-copy strong {
    font-size: clamp(54px, 10vw, 96px);
}

.vf-dishonored-tile-kills .vf-dishonored-note {
    max-width: 620px;
}

.vf-dishonored-tile-coins {
    background:
        radial-gradient(circle at 92% 0%, rgba(252, 210, 86, .2), transparent 34%),
        linear-gradient(150deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035));
}

.vf-dishonored-tile-alarms {
    background:
        radial-gradient(circle at 92% 0%, rgba(255, 130, 63, .2), transparent 34%),
        linear-gradient(150deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035));
}

.vf-dishonored-tile-detected {
    background:
        radial-gradient(circle at 92% 0%, rgba(142, 181, 255, .2), transparent 34%),
        linear-gradient(150deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035));
}

.vf-dishonored-icon {
    position: relative;
    z-index: 1;
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(151, 212, 226, .2);
    border-radius: 15px;
    color: rgba(184, 236, 247, .78);
    background: rgba(255, 255, 255, .07);
}

.vf-dishonored-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.4;
}

.vf-dishonored-icon-coins {
    color: rgba(255, 224, 126, .86);
}

.vf-dishonored-icon-alarm {
    color: rgba(255, 171, 105, .86);
}

.vf-dishonored-icon-eye {
    color: rgba(174, 202, 255, .86);
}

.vf-dishonored-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.vf-dishonored-copy small {
    display: block;
    margin-bottom: 5px;
    color: #91b7c2;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.vf-dishonored-copy strong {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    color: #ffffff;
    font-family: var(--vf-font-display);
    font-size: clamp(30px, 3.8vw, 46px);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.045em;
    text-overflow: ellipsis;
    vertical-align: baseline;
}

.vf-dishonored-copy span {
    display: block;
    margin-top: 4px;
    color: #d7e7ec;
    font-size: 13px;
    font-weight: 850;
}

.vf-dishonored-note {
    margin: 9px 0 0;
    color: #a9c0c8;
    font-size: 12px;
    line-height: 1.4;
}

.vf-dishonored-empty {
    margin: 16px 0 0;
    padding: 16px;
    border: 1px dashed rgba(151, 212, 226, .26);
    border-radius: 18px;
    color: #b9cbd2;
    background: rgba(255, 255, 255, .045);
}

.vf-dishonored-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding: 16px;
    border: 1px solid rgba(151, 212, 226, .22);
    border-radius: 20px;
    background: rgba(255, 255, 255, .07);
}

.vf-dishonored-cta strong,
.vf-dishonored-cta span {
    display: block;
}

.vf-dishonored-cta strong {
    color: #ffffff;
    font-size: 16px;
}

.vf-dishonored-cta span {
    margin-top: 3px;
    color: #b9cbd2;
    font-size: 13px;
    line-height: 1.45;
}

.vf-dishonored-cta .btn {
    flex: 0 0 auto;
    border-color: rgba(151, 212, 226, .34);
    color: #081117;
    background: #b8ecf7;
    box-shadow: none;
}

@media (max-width: 760px) {
    .vf-dishonored-head {
        grid-template-columns: minmax(0, 1fr);
    }

    .vf-dishonored-sigil {
        position: absolute;
        top: 20px;
        right: 18px;
        opacity: .28;
    }

    .vf-dishonored-explainer {
        grid-template-columns: minmax(0, 1fr);
    }

    .vf-dishonored-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vf-dishonored-tile-kills {
        grid-template-columns: minmax(0, 1fr);
    }

    .vf-dishonored-tile-kills .vf-dishonored-icon {
        width: 58px;
        height: 58px;
        border-radius: 20px;
    }

    .vf-dishonored-tile-kills .vf-dishonored-copy strong {
        font-size: clamp(42px, 14vw, 68px);
    }
}

@media (max-width: 430px) {
    .vf-dishonored-panel {
        padding: 16px;
    }

    .vf-dishonored-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .vf-dishonored-tile {
        min-height: 132px;
    }

    .vf-dishonored-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .vf-dishonored-cta .btn {
        justify-content: center;
        width: 100%;
    }
}

.dishonored-mod-guide {
    padding: 24px;
}

.dishonored-mod-guide-shell[hidden] {
    display: none;
}

.voidmod-page {
    padding-top: 16px;
}

.dishonored-mod-guide[hidden] {
    display: none;
}

.dishonored-mod-guide-head {
    margin-bottom: 22px;
}

.dishonored-mod-guide-head small {
    display: block;
    margin-bottom: 5px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.15em;
}

.dishonored-mod-guide-head h2 {
    margin: 0 0 7px;
}

.dishonored-mod-guide-head p,
.dishonored-mod-steps p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.dishonored-compatibility {
    margin-bottom: 26px;
    padding: 16px;
    border: 1px solid var(--stroke);
    border-radius: 14px;
    background: var(--panel-2);
}

.dishonored-compatibility-title {
    margin-bottom: 12px;
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
}

.dishonored-compatibility ul {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    list-style: none;
}

.dishonored-compatibility li {
    position: relative;
    min-height: 42px;
    padding: 10px 10px 10px 38px;
    border: 1px solid var(--stroke);
    border-radius: 10px;
    color: var(--muted);
    background: var(--panel);
    font-size: 12px;
    line-height: 1.4;
}

.dishonored-compatibility li::before {
    position: absolute;
    top: 10px;
    left: 11px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
}

.dishonored-compatibility li.is-supported::before {
    content: "✓";
    background: #00a66f;
}

.dishonored-compatibility li.is-warning::before {
    content: "!";
    background: #d69218;
}

.dishonored-compatibility li.is-blocked::before {
    content: "×";
    background: var(--danger);
}

.dishonored-mod-download {
    display: inline-flex;
    min-height: 40px;
    margin-top: 4px;
    padding: 9px 16px;
    border: 1px solid var(--accent);
    border-radius: 999px;
    align-items: center;
    color: #ffffff;
    background: var(--accent-fill);
    font-weight: 800;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.dishonored-mod-download::before {
    content: "↓";
    margin-right: 8px;
    font-size: 18px;
    line-height: 1;
}

.dishonored-mod-download:hover {
    border-color: var(--accent-2);
    color: #ffffff;
    background: var(--accent-fill-strong);
}

.dishonored-mod-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: void-mod-step;
}

.dishonored-mod-steps li {
    position: relative;
    min-height: 68px;
    padding: 0 0 22px 58px;
    counter-increment: void-mod-step;
}

.dishonored-mod-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 42px;
    bottom: 4px;
    left: 20px;
    width: 1px;
    background: var(--stroke-strong);
}

.dishonored-mod-steps li::before {
    content: counter(void-mod-step);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 40px;
    height: 40px;
    border: 1px solid var(--stroke-strong);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: #16313e;
    font-family: var(--vf-font-display);
    font-size: 13px;
    font-weight: 700;
}

.dishonored-mod-steps strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text);
    font-size: 15px;
}

.dishonored-mod-guide code {
    display: inline-block;
    max-width: 100%;
    margin-top: 8px;
    padding: 7px 10px;
    border: 1px solid var(--stroke);
    border-radius: 8px;
    overflow-wrap: anywhere;
    color: var(--text);
    background: var(--panel-2);
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
}

.dishonored-mod-steps p code {
    display: inline;
    margin: 0;
    padding: 1px 4px;
}

.dishonored-mod-warning {
    margin: 0;
    padding: 13px 15px;
    border: 1px solid rgba(244, 33, 46, 0.2);
    border-radius: 12px;
    color: var(--muted);
    background: rgba(244, 33, 46, 0.06);
    font-size: 13px;
    line-height: 1.5;
}

.dishonored-mod-warning code {
    margin: 0;
    padding: 1px 4px;
}

[data-theme="dark"] .dishonored-mod-guide-head p,
[data-theme="dark"] .dishonored-mod-steps p,
[data-theme="dark"] .dishonored-compatibility li,
[data-theme="dark"] .dishonored-mod-warning {
    color: #d6d9db;
}

.dishonored-profile-link {
    display: inline-block;
    color: inherit;
    text-decoration: none;
}

.dishonored-profile-link:hover code {
    border-color: var(--accent);
    color: var(--accent);
}

@media (max-width: 480px) {
    .dishonored-mod-guide {
        padding: 20px 16px;
    }

    .dishonored-mod-steps li {
        padding-left: 50px;
    }

    .dishonored-mod-steps li::before {
        width: 34px;
        height: 34px;
    }

    .dishonored-mod-steps li:not(:last-child)::after {
        top: 36px;
        left: 17px;
    }

    .dishonored-compatibility ul {
        grid-template-columns: 1fr;
    }
}

.vf-standalone-language {
    position: fixed;
    z-index: 1000;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--vf-border, #cfd9de);
    border-radius: 999px;
    background: var(--vf-surface, #fff);
    color: var(--vf-text, #0f1419);
    box-shadow: 0 6px 20px rgba(15, 20, 25, .08);
    font-weight: 700;
    text-decoration: none;
}

body.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flow-root;
    background-repeat: no-repeat;
}

.vf-standalone-language:hover {
    background: var(--vf-hover, #eff3f4);
}

.vf-standalone-language svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.vf-standalone-language span {
    letter-spacing: .08em;
}

.vf-standalone-legal-links {
    position: fixed;
    z-index: 999;
    top: 70px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    max-width: calc(100vw - 40px);
    text-align: right;
}

.vf-standalone-legal {
    color: var(--vf-muted, #536471);
    font-size: 12px;
    line-height: 1.4;
    text-decoration: none;
}

.vf-standalone-legal:hover {
    color: var(--vf-accent, var(--accent));
    text-decoration: underline;
}

/* Twitter-like post actions */
form[data-vf-like-form] {
    display: inline-flex;
    margin: 0;
}

.post-action,
button.post-action {
    min-width: 58px;
    min-height: 34px;
    padding: 0 7px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 3px;
    color: var(--muted);
    background: transparent;
    box-shadow: none;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color .15s ease, background .15s ease, opacity .15s ease;
}

.post-action:hover,
button.post-action:hover {
    border: 0;
    box-shadow: none;
    transform: none;
}

.post-action-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.post-action-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.post-action-like:hover,
button.post-action-like:hover,
.post-action-like.is-active {
    color: #f91880;
    background: rgba(249, 24, 128, .08);
}

.post-action-like.is-active .post-action-icon svg {
    fill: currentColor;
}

.post-action-comment:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

.post-action[aria-busy="true"] {
    opacity: .68;
}

.post-action.is-static {
    pointer-events: none;
}

.post-card .pactions {
    align-items: center;
}

.post-card .post-action,
.post-card button.post-action {
    min-height: 34px;
    padding: 0 7px;
    color: var(--muted);
    background: transparent;
}

.post-card .post-action-like:hover,
.post-card button.post-action-like:hover,
.post-card .post-action-like.is-active {
    color: #f91880;
    background: rgba(249, 24, 128, .08);
}

.post-card .post-action-comment:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

.post-footer {
    display: flex;
    align-items: center;
    gap: 48px;
}

.comment-text {
    white-space: pre-wrap;
}

.comment.is-pending {
    opacity: .55;
}

.comments-section {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--stroke);
}

.comments-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.comments-kicker {
    display: block;
    margin-bottom: 3px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.comments-section h3 {
    margin: 0;
    color: var(--text);
    font-size: clamp(22px, 3vw, 28px);
    font-family: var(--vf-font-body);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.comments-section h3 span {
    color: inherit;
}

.comments-subtitle {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.comments-list {
    display: grid;
    gap: 12px;
}

.comments-empty {
    padding: 22px;
    border: 1px dashed var(--stroke);
    border-radius: 20px;
    color: var(--muted);
    background: color-mix(in srgb, var(--panel) 76%, transparent);
    text-align: center;
}

.comment {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border-top: 1px solid var(--stroke);
    border-bottom: 1px solid var(--stroke);
    border-left: none;
    border-right: none;
    border-radius: 0;
    background: color-mix(in srgb, var(--panel) 88%, transparent);
    box-shadow: none;
}

.comment-avatar {
    display: block;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent-gradient);
    object-fit: cover;
}

.comment-main {
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
}

.comment-header a {
    color: var(--text);
    font-weight: 900;
    text-decoration: none;
}

.comment-header a:hover {
    text-decoration: underline;
}

.comment-time {
    color: var(--muted);
    font-size: 12px;
}

.comment-text {
    margin-top: 7px;
    color: var(--text);
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.comment-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 11px;
}

.comment-action-form {
    margin: 0;
}

.comment-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--muted);
    background: transparent;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
    transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}

.comment-action:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

.comment-action:active {
    transform: translateY(1px);
}

.comment-like.is-active {
    color: #f91880;
    background: rgba(249, 24, 128, .1);
}

.comment-action.is-static {
    cursor: default;
}

.comment-replies {
    position: relative;
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding-left: 18px;
}

.comment-replies::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 10px;
    width: 2px;
    border-radius: 999px;
    background: var(--stroke);
}

.comment-reply {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 12px;
    border-radius: 18px;
    box-shadow: none;
}

.comment-reply .comment-avatar {
    width: 34px;
    height: 34px;
    font-size: 13px;
}

.comment-form {
    width: 100%;
    margin: 16px 0 0;
    padding: 16px 0 0;
    border: 0;
    border-top: 1px solid var(--stroke);
    border-radius: 0;
    background: transparent;
}

.comment-form[hidden] {
    display: none;
}

.comment-reply-form {
    margin-top: 12px;
    padding: 12px;
    border-top: 1px solid var(--stroke);
    border-radius: 0;
}

.comment-form textarea {
    width: 100%;
    min-height: 96px;
    resize: vertical;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.comment-reply-form textarea {
    min-height: 72px;
}

.comment-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.comment-form button[type="submit"] {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    color: var(--button-fg);
    background: var(--button-bg);
    font-weight: 900;
    cursor: pointer;
}

.vf-action-error-toast {
    position: fixed;
    z-index: 5000;
    left: 50%;
    bottom: 28px;
    max-width: min(440px, calc(100vw - 32px));
    padding: 11px 16px;
    border-radius: 999px;
    color: #ffffff;
    background: #f4212e;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
    font-size: 13px;
    font-weight: 800;
    transform: translateX(-50%);
}

/* Profile header follows the familiar avatar-actions-identity rhythm. */
.hero {
    position: relative;
}

.profile-avatar-row {
    display: block;
    min-height: 120px;
}

.profile-avatar-row .ava {
    display: block;
}

.profile-avatar-row .identity {
    margin-top: 9px;
}

.profile-primary-actions {
    position: absolute;
    top: 194px;
    right: 16px;
    z-index: 2;
    margin: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.profile-primary-actions form {
    margin: 0;
}

.profile-primary-actions .btn,
.profile-primary-actions .btn2 {
    min-height: 38px;
    padding: 8px 15px;
    border: 1px solid var(--stroke-strong);
    border-radius: 999px;
    color: var(--text);
    background: var(--panel);
    box-shadow: none;
    font-size: 13px;
    font-weight: 800;
}

.profile-primary-actions .btn:hover,
.profile-primary-actions .btn2:hover {
    color: var(--text);
    background: rgba(15, 20, 25, .08);
    transform: none;
}

.profile-primary-actions .profile-follow-button:not(.is-following) {
    border-color: #0f1419;
    color: #ffffff;
    background: #0f1419;
}

.profile-primary-actions .profile-follow-button.is-following {
    color: var(--text);
    background: transparent;
}

[data-theme="dark"] .profile-primary-actions .profile-follow-button:not(.is-following) {
    border-color: #eff3f4;
    color: #0f1419;
    background: #eff3f4;
}

[data-theme="dark"] .profile-primary-actions .btn,
[data-theme="dark"] .profile-primary-actions .btn2 {
    color: var(--text);
    background: #000000;
}

.profile-avatar-row .meta {
    margin-top: 5px;
}

.vf-notify-stack {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 10020;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 24px));
    pointer-events: none;
}

.vf-notify-item {
    position: relative;
    overflow: hidden;
    padding: 14px 42px 12px 14px;
    border: 1px solid var(--stroke);
    border-radius: 18px;
    color: var(--text);
    background: color-mix(in srgb, var(--panel) 88%, transparent);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(16px);
    pointer-events: auto;
    touch-action: pan-y;
    transition: opacity .18s ease, transform .18s ease;
}

.vf-notify-item.vf-clickable {
    cursor: pointer;
}

.vf-notify-item.is-swiping {
    transition: none;
}

.vf-notify-item.is-dismissing {
    opacity: 0;
}

.vf-notify-item.is-dismiss-left {
    transform: translateX(-120%) rotate(-6deg);
}

.vf-notify-item.is-dismiss-right {
    transform: translateX(120%) rotate(6deg);
}

.vf-notify-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    color: var(--muted);
    background: color-mix(in srgb, var(--panel-strong) 78%, var(--text) 7%);
    font-size: 22px;
    line-height: 24px;
    cursor: pointer;
}

.vf-notify-close:hover {
    color: var(--text);
    background: color-mix(in srgb, var(--panel-strong) 70%, var(--accent) 16%);
}

.vf-notify-title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 900;
}

.vf-notify-body {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.vf-notify-time {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 767px) {
    .vf-notify-stack {
        top: 10px;
        right: 10px;
        left: 10px;
        width: auto;
    }

    .vf-notify-item {
        padding-right: 14px;
    }

    .vf-notify-close {
        display: none;
    }
}

/* Legal notice */
.vf-rail-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
}

.vf-rail-footer a {
    color: inherit;
    text-decoration: none;
}

.vf-rail-footer a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.legal-page {
    padding-bottom: 48px;
}

.legal-hero {
    padding: 34px 28px 24px;
    border-bottom: 1px solid var(--stroke);
}

.legal-hero small {
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
}

.legal-hero h1 {
    max-width: 650px;
    margin: 8px 0 7px;
    color: var(--text);
    font-size: clamp(26px, 5vw, 40px);
    line-height: 1.08;
}

.legal-hero p,
.legal-section p {
    color: var(--muted);
}

.legal-section {
    padding: 24px 28px;
    border-bottom: 1px solid var(--stroke);
}

.legal-section h2 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 19px;
}

.legal-section p {
    max-width: 680px;
    margin: 0 0 12px;
    line-height: 1.65;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

[data-theme="dark"] .legal-hero p,
[data-theme="dark"] .legal-section p {
    color: #c7c9cc;
}

@media (max-width: 720px) {
    .profile-primary-actions {
        top: 142px;
        right: 14px;
        max-width: calc(100% - 126px);
        flex-wrap: wrap;
    }

    .profile-primary-actions .btn,
    .profile-primary-actions .btn2 {
        min-height: 34px;
        padding: 6px 10px;
        font-size: 11px;
    }

    .profile-avatar-row {
        min-height: 122px;
    }

    .legal-hero,
    .legal-section {
        padding-right: 18px;
        padding-left: 18px;
    }
}

/* Messages: dense two-column messenger layout */
.messages-layout {
    width: 100%;
    max-width: 1100px;
    height: 100vh;
    min-height: 680px;
    margin: 0 auto;
    grid-template-columns: 340px minmax(0, 1fr);
    overflow: hidden;
    background: var(--panel);
}

.messages-layout > .sidebar {
    height: 100%;
    padding: 12px 0 24px;
    overflow-x: hidden;
    overflow-y: auto;
    border-right: 1px solid var(--stroke);
    scrollbar-width: thin;
}

.messages-layout .panel-title {
    margin: 14px 16px 8px;
    color: var(--text);
    font-size: 15px;
    font-weight: 900;
}

.messages-layout .quick-form {
    margin: 0 12px 18px;
    padding: 11px;
    border: 1px solid var(--stroke);
    border-radius: 16px;
    background: var(--panel-2);
}

.messages-layout .quick-form input,
.messages-layout .quick-form textarea {
    border-color: transparent;
    color: var(--text);
    background: var(--panel);
}

.messages-layout .quick-form input {
    border-radius: 999px;
}

.messages-layout .quick-form textarea {
    min-height: 58px;
    border-radius: 14px;
}

.messages-layout .quick-form button {
    min-height: 36px;
    border-radius: 999px;
    font-size: 12px;
}

.messages-layout .chat-list {
    margin-top: 0;
}

.messages-layout .chat-link {
    min-height: 76px;
    padding: 12px 46px 12px 16px;
    border-top: 1px solid var(--stroke);
    transition: background .14s ease;
}

.messages-layout .chat-link:last-child {
    border-bottom: 1px solid var(--stroke);
}

.messages-layout .chat-link.active {
    box-shadow: inset 3px 0 0 var(--accent);
    background: var(--accent-soft);
}

.messages-layout .chat-name,
.messages-layout .chat-last-message {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.messages-layout .chat-name {
    margin-bottom: 3px;
}

.messages-layout .chat-pin-toggle {
    top: 50%;
    right: 11px;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    transform: translateY(-50%);
}

.messages-layout .chat-pin-toggle:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

.messages-layout .chat-main {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-left: 0;
}

.messages-layout .chat-header {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
    min-height: 72px;
    padding: 11px 16px;
    backdrop-filter: blur(14px);
}

.messages-layout .chat-header h2 {
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.messages-layout .chat-actions {
    align-items: center;
    justify-content: flex-end;
}

.messages-layout .chat-actions input {
    width: 135px;
    min-height: 34px;
    border-radius: 999px;
}

.messages-layout .chat-actions button {
    min-height: 34px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 11px;
    border: 1px solid rgba(151, 188, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.messages-layout .ws-indicator {
    margin-top: 3px;
    font-size: 11px;
}

.messages-layout .typing-indicator {
    flex: 0 0 auto;
    min-height: 22px;
    padding: 4px 16px 0;
    font-size: 11px;
}

.messages-layout .messages-scroll {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    padding: 14px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
}

.messages-layout .bubble {
    align-self: flex-start;
    width: fit-content;
    max-width: min(76%, 620px);
    padding: 9px 12px;
    border-radius: 18px 18px 18px 5px;
    box-shadow: 0 1px 2px rgba(15, 20, 25, .08);
}

.messages-layout .bubble.mine {
    align-self: flex-end;
    border-radius: 18px 18px 5px 18px;
}

.messages-layout .bubble.system {
    align-self: center;
    max-width: 90%;
    border-radius: 999px;
    box-shadow: none;
    text-align: center;
}

.messages-layout .reply-compose,
.messages-layout .compose-attachments {
    flex: 0 0 auto;
    margin: 0;
}

.messages-layout .reply-compose {
    border-right: 0;
    border-left: 0;
}

.messages-layout .compose-attachments:not(:empty) {
    padding: 8px 14px;
    border-top: 1px solid var(--stroke);
}

.messages-layout .chat-compose {
    flex: 0 0 auto;
    padding: 10px 14px 14px;
}

.messages-layout .chat-compose form {
    display: block;
}

.messages-layout .chat-compose textarea {
    width: 100%;
    min-height: 46px;
    max-height: 150px;
    padding: 12px 15px;
    border: 1px solid transparent;
    border-radius: 20px;
    resize: none;
}

.messages-layout .chat-compose textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.messages-layout .chat-compose br {
    display: none;
}

.messages-layout .chat-compose .compose-row {
    margin-top: 8px;
}

.messages-layout .chat-compose #attach-btn {
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid rgba(151, 188, 255, 0.3);
    border-radius: 999px;
    color: var(--accent);
    background: rgba(255, 255, 255, 0.06);
}

.messages-layout .chat-compose #attach-btn:hover {
    background: var(--accent-soft);
}

.messages-layout .chat-compose button[type="submit"] {
    min-height: 36px;
    margin-left: auto;
    padding: 7px 18px;
    border-radius: 999px;
}

.messages-layout .empty-state {
    margin: auto;
    padding: 32px;
    color: var(--muted);
    text-align: center;
}

[data-theme="dark"] .messages-layout .quick-form {
    background: #16181c;
}

[data-theme="dark"] .messages-layout .quick-form input,
[data-theme="dark"] .messages-layout .quick-form textarea {
    background: #202327;
}

@media (max-width: 760px) {
    .messages-layout {
        height: auto;
        min-height: 100vh;
        display: block;
        overflow: visible;
    }

    .messages-layout > .sidebar {
        height: auto;
        max-height: 300px;
        border-right: 0;
        border-bottom: 1px solid var(--stroke);
    }

    .messages-layout .chat-main {
        height: calc(100vh - 110px);
        min-height: 620px;
        border-right: 0;
        border-left: 0;
    }

    .messages-layout .chat-header {
        align-items: flex-start;
    }

    .messages-layout .chat-actions {
        max-width: 46%;
    }

    .messages-layout .bubble {
        max-width: 88%;
    }
}

/* Display names keep username as the stable profile address underneath. */
.post-author-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-height: 42px;
    margin: 0;
}

.post-author-identity {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.post-author-name-line {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 3px;
}

.post-card .author-name {
    max-width: min(360px, 52vw);
    overflow: hidden;
    color: var(--text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-card .author-username {
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.post-card .author-username:hover {
    color: var(--muted);
    text-decoration: underline;
}

.profile-username {
    margin-top: 2px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.35;
}

.post-author {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.post-author .post-author-display-name {
    max-width: min(440px, 64vw);
    overflow: hidden;
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-author .post-author-username {
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

/* Links and mentions detected inside posts, comments, and chat messages. */
:root {
    --vf-user-link: #4a176d;
    --vf-user-link-hover: #2f0b4a;
    --vf-user-link-underline: rgba(74, 23, 109, 0.42);
    --vf-user-link-glow: none;
}

[data-theme="dark"] {
    --vf-user-link: #7699f0;
    --vf-user-link-hover: #abc2ff;
    --vf-user-link-underline: rgba(118, 153, 240, 0.58);
    --vf-user-link-glow: 0 0 10px rgba(82, 126, 239, 0.42);
}

.user-content-link,
.user-content-link:visited {
    color: var(--vf-user-link) !important;
    font-weight: 700;
    text-decoration-line: underline;
    text-decoration-color: var(--vf-user-link-underline);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-shadow: var(--vf-user-link-glow);
    transition: color 0.16s ease, text-shadow 0.16s ease, text-decoration-color 0.16s ease;
}

.user-content-link:hover,
.user-content-link:focus-visible {
    color: var(--vf-user-link-hover) !important;
    text-decoration-color: currentColor;
}

[data-theme="dark"] .user-content-link:hover,
[data-theme="dark"] .user-content-link:focus-visible {
    text-shadow:
        0 0 7px rgba(103, 145, 255, 0.78),
        0 0 17px rgba(79, 119, 230, 0.48);
}

.post-card .user-content-link {
    position: relative;
    z-index: 4;
}

.feed-load-more {
    margin: 18px auto 32px;
    padding: 12px 16px;
    width: min(100%, 420px);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-pill);
    color: var(--muted);
    background: var(--panel);
    text-align: center;
    font-size: 14px;
    font-weight: 800;
}

.feed-load-more[hidden] {
    display: none;
}

.feed-load-more.is-loading {
    color: var(--text);
}

.user-mention-link,
.user-mention-link:visited {
    color: var(--vf-user-link) !important;
    font-weight: 800;
    text-decoration: none;
    text-shadow: var(--vf-user-link-glow);
}

.user-mention-link:hover,
.user-mention-link:focus-visible {
    color: var(--vf-user-link-hover) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Mobile entry screens and horizontally scrollable bottom navigation. */
@media (max-width: 760px) {
    body.vf-shell-active {
        padding-bottom: calc(68px + env(safe-area-inset-bottom));
    }

    .vf-header {
        height: calc(64px + env(safe-area-inset-bottom));
        padding:
            5px
            max(8px, env(safe-area-inset-right))
            max(5px, env(safe-area-inset-bottom))
            max(8px, env(safe-area-inset-left));
    }

    .vf-menu {
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
        gap: 4px;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
        scrollbar-color: var(--stroke-strong) transparent;
        -webkit-overflow-scrolling: touch;
    }

    .vf-menu::-webkit-scrollbar {
        height: 3px;
    }

    .vf-menu::-webkit-scrollbar-track {
        background: transparent;
    }

    .vf-menu::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: var(--stroke-strong);
    }

    .vf-menu > a,
    .vf-menu > button {
        flex: 0 0 48px;
        width: 48px;
        min-width: 48px;
        min-height: 48px;
        margin: 0;
        padding: 10px;
        justify-content: center;
        scroll-snap-align: center;
    }
}

@media (max-width: 640px) {
    html {
        -webkit-text-size-adjust: 100%;
    }

    body.landing-page {
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        padding:
            max(88px, env(safe-area-inset-top))
            max(14px, env(safe-area-inset-right))
            max(24px, env(safe-area-inset-bottom))
            max(14px, env(safe-area-inset-left));
        align-items: flex-start;
    }

    .landing-page .landing-card {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        padding: 28px 18px;
        border-radius: 14px;
    }

    .landing-page .landing-card h1 {
        margin: 0 0 16px;
        font-size: clamp(23px, 7vw, 28px);
        line-height: 1.2;
    }

    .landing-page .landing-card p {
        margin-bottom: 20px;
        font-size: 15px;
        line-height: 1.55;
        overflow-wrap: anywhere;
    }

    .landing-page .landing-card form,
    .landing-page .landing-card button {
        width: 100%;
    }

    .landing-page .landing-card button {
        min-height: 50px;
        padding: 12px 18px;
    }

    body.auth-page {
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        padding:
            max(88px, env(safe-area-inset-top))
            max(14px, env(safe-area-inset-right))
            max(28px, env(safe-area-inset-bottom))
            max(14px, env(safe-area-inset-left));
    }

    .auth-page .auth-card {
        width: 100%;
        max-width: 430px;
        margin: 0 auto !important;
        padding: 26px 18px;
        border-radius: 14px;
    }

    .auth-page .auth-card::before {
        width: 44px;
        height: 44px;
        margin-bottom: 14px;
        font-size: 24px;
    }

    .auth-page .auth-card h1 {
        margin-bottom: 18px;
        font-size: clamp(22px, 7vw, 26px);
    }

    .auth-page .auth-card input {
        min-width: 0;
        min-height: 50px;
        font-size: 16px;
    }

    .auth-page .auth-card button,
    .auth-page .auth-card .btn,
    .auth-page .auth-card .btn2 {
        width: 100%;
        min-height: 48px;
        white-space: normal;
        line-height: 1.25;
    }

    .auth-page .auth-card .section.card {
        width: 100%;
        padding: 16px 14px;
        border-radius: 12px;
    }

    .auth-page .error-message,
    .auth-page .notice {
        overflow-wrap: anywhere;
    }

    .vf-standalone-language {
        top: max(12px, env(safe-area-inset-top));
        right: max(12px, env(safe-area-inset-right));
        min-height: 42px;
        padding: 8px 11px;
    }

    .vf-standalone-legal-links {
        top: calc(max(12px, env(safe-area-inset-top)) + 50px);
        right: max(14px, env(safe-area-inset-right));
        max-width: calc(100vw - 28px);
        text-align: right;
    }
}

@media (max-width: 480px) {
    .vf-menu a.logout {
        display: inline-flex;
    }
}

/* Search */
.search-page {
    width: 100%;
    max-width: 620px;
    min-height: 100vh;
    margin: 0 auto;
    border-right: 1px solid var(--stroke);
    border-left: 1px solid var(--stroke);
    color: var(--text);
    background: var(--panel);
}

.search-header {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 12px 16px 14px;
    border-bottom: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.search-header h1 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.4px;
}

.search-form {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 5px 5px 5px 15px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--panel-2);
    transition: border-color 0.16s ease, background 0.16s ease;
}

.search-form:focus-within {
    border-color: var(--stroke-strong);
    background: var(--panel);
}

.search-form > svg,
.search-empty-state > svg {
    fill: none;
    stroke: var(--muted);
    stroke-width: 1.8;
    stroke-linecap: round;
}

.search-form > svg {
    width: 21px;
    height: 21px;
}

.search-form input[type="search"] {
    width: 100%;
    min-width: 0;
    padding: 8px 0;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    font: inherit;
    font-size: 15px;
}

.search-form input[type="search"]::-webkit-search-cancel-button {
    cursor: pointer;
}

.search-form button {
    min-height: 38px;
    padding: 8px 18px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: #0f1419;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.search-form button:hover {
    background: #272c30;
}

.search-empty-state {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 76px 32px;
    color: var(--muted);
    text-align: center;
}

.search-empty-state > svg {
    width: 58px;
    height: 58px;
    stroke-width: 1.25;
}

.search-empty-state p {
    max-width: 360px;
    margin: 0;
    line-height: 1.55;
}

.search-query-summary {
    padding: 12px 16px;
    border-bottom: 1px solid var(--stroke);
    color: var(--muted);
    font-size: 13px;
}

.search-query-summary strong {
    color: var(--text);
    font-weight: 800;
}

.search-section > h2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 14px 16px;
    border-bottom: 1px solid var(--stroke);
    color: var(--text);
    font-size: 18px;
    font-weight: 900;
}

.search-section > h2 span {
    display: inline-grid;
    min-width: 28px;
    min-height: 28px;
    padding: 4px 8px;
    place-items: center;
    border-radius: 999px;
    color: var(--muted);
    background: var(--panel-2);
    font-size: 12px;
}

.search-post-section {
    border-top: 10px solid var(--stroke);
}

.search-no-results {
    margin: 0;
    padding: 26px 20px;
    border-bottom: 1px solid var(--stroke);
    color: var(--muted);
    text-align: center;
}

.search-user-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--stroke);
    color: var(--text);
    text-decoration: none;
    transition: background 0.16s ease;
}

.search-user-card:hover {
    color: var(--text);
    background: rgba(0, 0, 0, 0.025);
}

.search-user-card > img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.search-user-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.search-user-name {
    display: flex;
    align-items: center;
    min-width: 0;
    color: var(--text);
    font-size: 15px;
    font-weight: 900;
}

.search-user-verified {
    width: 19px;
    height: 19px;
    margin-left: 4px;
}

.search-user-username,
.search-user-private {
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-user-private {
    margin-top: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.45px;
}

.search-user-arrow {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: var(--muted);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.search-post-card:last-child {
    border-bottom: 0;
}

.search-post-stats a.post-action {
    position: relative;
    z-index: 4;
    text-decoration: none;
}

[data-theme="dark"] .search-page {
    background: #000000;
}

[data-theme="dark"] .search-header {
    background: rgba(0, 0, 0, 0.9);
}

[data-theme="dark"] .search-form button {
    color: #0f1419;
    background: #eff3f4;
}

[data-theme="dark"] .search-form button:hover {
    background: #d7dbdc;
}

[data-theme="dark"] .search-user-card:hover {
    background: rgba(255, 255, 255, 0.035);
}

@media (max-width: 720px) {
    .search-page {
        border-right: 0;
        border-left: 0;
    }

    .search-header {
        padding: 10px 12px 12px;
    }

    .search-form {
        grid-template-columns: 20px minmax(0, 1fr) auto;
        gap: 8px;
        padding-left: 12px;
    }

    .search-form button {
        padding-right: 14px;
        padding-left: 14px;
    }
}

@media (max-width: 430px) {
    .search-form {
        grid-template-columns: 20px minmax(0, 1fr);
        padding-right: 12px;
    }

    .search-form button {
        grid-column: 1 / -1;
        width: 100%;
    }
}

/* Softer light theme: avoids pure-white flashes while preserving readable contrast. */
:root:not([data-theme="dark"]) {
    color-scheme: light;
    --vf-surface: var(--panel);
    --vf-hover: var(--panel-2);
    --vf-border: var(--stroke);
    --vf-text: var(--text);
    --vf-muted: var(--muted);
}

:root:not([data-theme="dark"]),
:root:not([data-theme="dark"]) body {
    background: var(--bg);
}

:root:not([data-theme="dark"]) textarea,
:root:not([data-theme="dark"]) input,
:root:not([data-theme="dark"]) select,
:root:not([data-theme="dark"]) select option,
:root:not([data-theme="dark"]) .card,
:root:not([data-theme="dark"]) .panel,
:root:not([data-theme="dark"]) .vf-header,
:root:not([data-theme="dark"]) .vf-right-rail,
:root:not([data-theme="dark"]) .feed-container,
:root:not([data-theme="dark"]) .wrap,
:root:not([data-theme="dark"]) .container,
:root:not([data-theme="dark"]) .messages-layout,
:root:not([data-theme="dark"]) .post-card,
:root:not([data-theme="dark"]) .hero,
:root:not([data-theme="dark"]) .section,
:root:not([data-theme="dark"]) .section .post,
:root:not([data-theme="dark"]) .container > .post,
:root:not([data-theme="dark"]) .comment,
:root:not([data-theme="dark"]) .chat-link,
:root:not([data-theme="dark"]) .messages-scroll,
:root:not([data-theme="dark"]) .chat-compose,
:root:not([data-theme="dark"]) .reaction-chip,
:root:not([data-theme="dark"]) .msg-action-btn,
:root:not([data-theme="dark"]) .login-card,
:root:not([data-theme="dark"]) .login-card .btn2,
:root:not([data-theme="dark"]) .vf-notify-item,
:root:not([data-theme="dark"]) .search-page,
:root:not([data-theme="dark"]) .section > form textarea[name="content"] {
    color: var(--text);
    background: var(--panel);
}

:root:not([data-theme="dark"]) .vf-search-visual,
:root:not([data-theme="dark"]) .bubble,
:root:not([data-theme="dark"]) .chat-compose textarea,
:root:not([data-theme="dark"]) .vf-rail-card,
:root:not([data-theme="dark"]) .tile,
:root:not([data-theme="dark"]) .timeline,
:root:not([data-theme="dark"]) .chat-link.active,
:root:not([data-theme="dark"]) .bubble.system,
:root:not([data-theme="dark"]) .reply-compose,
:root:not([data-theme="dark"]) .reply-snippet,
:root:not([data-theme="dark"]) .attachment-item,
:root:not([data-theme="dark"]) .search-form {
    background: var(--panel-2);
}

:root:not([data-theme="dark"]) .feed-container > h1,
:root:not([data-theme="dark"]) .chat-header,
:root:not([data-theme="dark"]) .search-header {
    background: var(--light-overlay);
}

:root:not([data-theme="dark"]) .hero .ava {
    border-color: var(--panel);
    background: var(--panel);
}

@media (prefers-reduced-motion: no-preference) {
    html,
    body,
    .vf-header,
    .vf-right-rail,
    .feed-container,
    .post-card,
    .card,
    .panel,
    input,
    textarea,
    select {
        transition: background-color 0.24s ease, border-color 0.24s ease, color 0.18s ease;
    }
}

/* Profile posts refinement */
.profile-post-composer {
    padding: 16px;
    border-bottom: 1px solid var(--stroke);
    background:
        radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 34%),
        var(--panel);
}

.vf-feed-composer {
    margin: 0 0 14px;
    border-radius: 18px;
}

.vf-feed-composer-notice,
.vf-feed-composer-error {
    margin: 0 0 12px 60px;
    font-size: 14px;
}

.vf-feed-composer-notice { color: var(--accent); }
.vf-feed-composer-error { color: var(--danger, #ff6b7a); }

.vf-onboarding-page { min-height: 100vh; }
.vf-onboarding-shell { width: min(760px, calc(100% - 28px)); margin: 42px auto 80px; }
.vf-onboarding-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vf-onboarding-progress span { height: 5px; border-radius: 999px; background: var(--stroke); }
.vf-onboarding-progress span.is-active { background: var(--accent-fill); }
.vf-onboarding-step { margin: 12px 0 18px; color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.vf-onboarding-card { padding: clamp(22px, 5vw, 42px); border-radius: 26px; }
.vf-onboarding-card > h1 { margin: 0 0 10px; font-size: clamp(28px, 5vw, 42px); line-height: 1.08; }
.vf-onboarding-card > p { margin: 0 0 28px; color: var(--muted); line-height: 1.6; }
.vf-onboarding-mark { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 20px; border-radius: 18px; color: #fff; background: var(--accent-fill); font-size: 30px; font-weight: 950; }
.vf-onboarding-form { margin: 0; }
.vf-onboarding-fields { display: grid; gap: 16px; margin-bottom: 28px; }
.vf-onboarding-fields label { display: grid; gap: 7px; color: var(--text); font-weight: 800; }
.vf-onboarding-fields select { width: 100%; min-height: 48px; }
.vf-onboarding-primary { width: 100%; min-height: 50px; }
.vf-onboarding-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 24px; }
.vf-onboarding-person { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr) 28px; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--stroke); border-radius: 16px; background: var(--panel-2); cursor: pointer; }
.vf-onboarding-person input { position: absolute; opacity: 0; pointer-events: none; }
.vf-onboarding-person:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.vf-onboarding-person img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.vf-onboarding-person span { min-width: 0; display: grid; }
.vf-onboarding-person strong, .vf-onboarding-person small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vf-onboarding-person small { color: var(--muted); }
.vf-onboarding-person b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--accent); background: var(--accent-soft); font-size: 20px; }
.vf-onboarding-person:has(input:checked) b { color: #fff; background: var(--accent-fill); }
.vf-onboarding-composer { margin-top: 8px; }
.vf-onboarding-composer .post-media-picker { position: relative; display: inline-flex; align-items: center; padding: 9px 14px; border-radius: 999px; color: var(--accent); background: var(--accent-soft); cursor: pointer; }
.vf-onboarding-composer .post-media-picker input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
.vf-onboarding-error { padding: 11px 14px; border-radius: 12px; color: var(--danger, #ff6b7a) !important; background: color-mix(in srgb, var(--danger, #ff6b7a) 10%, transparent); }
.vf-onboarding-skip { margin: 18px 0 0 60px; text-align: center; }
.vf-onboarding-skip button { border: 0; background: transparent; color: var(--muted); text-decoration: underline; cursor: pointer; }

@media (max-width: 640px) {
    .vf-onboarding-shell { width: min(100% - 18px, 760px); margin-top: 20px; }
    .vf-onboarding-card { padding: 22px 16px; border-radius: 20px; }
    .vf-onboarding-people { grid-template-columns: 1fr; }
    .vf-onboarding-composer { grid-template-columns: 38px minmax(0, 1fr); gap: 9px; }
    .vf-onboarding-composer .profile-post-form-avatar { width: 38px; height: 38px; }
    .vf-onboarding-composer .profile-post-form-footer { align-items: stretch; flex-direction: column; }
    .vf-onboarding-composer .profile-post-submit { width: 100%; }
    .vf-onboarding-skip { margin-left: 0; }
}

.profile-post-form {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    margin: 0;
}

.profile-post-form-avatar,
.profile-post-avatar {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--stroke);
    background: var(--panel-2);
}

.profile-post-form-body {
    min-width: 0;
}

.profile-post-form textarea {
    width: 100%;
    min-height: 82px;
    padding: 8px 0 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font-size: 20px;
    line-height: 1.35;
    resize: vertical;
    box-shadow: none;
}

.profile-post-form textarea::placeholder {
    color: var(--muted);
}

.profile-post-form textarea:focus {
    outline: 0;
    box-shadow: inset 0 -2px 0 var(--accent);
}

.profile-post-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--stroke);
}

.profile-post-form-media {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    min-width: 0;
}

.profile-post-composer .post-media-picker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    color: var(--accent);
    background: var(--accent-soft);
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    user-select: none;
}

.profile-post-composer .post-media-picker::before {
    content: "";
    width: 18px;
    height: 18px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 20q-.82 0-1.41-.59Q3 18.83 3 18V6q0-.82.59-1.41Q4.18 4 5 4h14q.82 0 1.41.59Q21 5.18 21 6v12q0 .83-.59 1.41Q19.82 20 19 20H5Zm0-2h14V6H5v12Zm1.5-1.5h11l-3.45-4.6-2.8 3.5-1.95-2.6-2.8 3.7Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.profile-post-composer .post-media-picker input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.profile-post-composer .post-media-picker:hover {
    filter: brightness(1.04);
}

.profile-post-composer .post-media-note {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.profile-post-submit {
    min-width: 128px;
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .16), transparent 38%),
        var(--accent-gradient);
    font-size: 15px;
    font-weight: 950;
    box-shadow: none;
    white-space: nowrap;
}

.profile-post-submit:hover {
    filter: brightness(1.05);
    transform: none;
}

.profile-posts-section {
    padding: 0;
    overflow: hidden;
}

.profile-posts-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 16px 14px;
    border-bottom: 1px solid var(--stroke);
}

.profile-posts-heading h2 {
    margin: 0;
    color: var(--text);
    font-family: var(--vf-font-body);
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -0.02em;
}

.profile-posts-heading span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.profile-posts-empty {
    margin: 0;
    padding: 28px 16px;
    text-align: center;
}

.section .profile-post,
.profile-post {
    margin: 0;
    padding: 14px 16px 12px;
    border: 0;
    border-bottom: 1px solid var(--stroke);
    border-radius: 0;
    background: var(--panel);
    box-shadow: none;
}

.profile-post:last-child {
    border-bottom: 0;
}

.profile-pinned-section {
    margin-bottom: 12px;
    border-top: 1px solid color-mix(in srgb, var(--accent) 24%, var(--stroke));
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 24%, var(--stroke));
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 38%),
        var(--panel);
}

.profile-post-pinned {
    background: transparent;
}

.profile-post-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.profile-post-topline .hint {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.profile-post-topline form {
    margin: 0;
}

.profile-post-topline .btn2,
.profile-post-owner-actions .btn2,
.profile-post-actions .btn2 {
    min-height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    color: var(--muted);
    background: transparent;
    font-size: 13px;
    font-weight: 850;
    box-shadow: none;
}

.profile-post-topline .btn2:hover,
.profile-post-owner-actions .btn2:hover,
.profile-post-actions .btn2:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

.profile-post-author-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.profile-post-author-text {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.profile-post-author-name {
    width: max-content;
    max-width: 100%;
    overflow: hidden;
    color: var(--text);
    font-size: 15px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
}

.profile-post-author-name:hover {
    text-decoration: underline;
}

.profile-post-author-username {
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-post .post-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
    margin: 12px 0 10px 60px;
    overflow: hidden;
    border: 1px solid var(--stroke);
    border-radius: 3px;
    background: transparent;
}

.profile-post .post-media-grid.media-count-1 {
    display: block;
}

.profile-post .pimg,
.profile-post video.pimg {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    object-fit: contain;
}

.profile-post .pcontent {
    margin: 9px 0 0 60px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.profile-post .post-edit-form {
    margin: 10px 0 0 60px;
}

.profile-post .post-edit-form textarea {
    min-height: 130px;
    padding: 12px 14px;
    border: 1px solid var(--stroke);
    border-radius: 14px;
    background: var(--panel-2);
    color: var(--text);
}

.profile-post-actions,
.profile-post-owner-actions {
    margin: 10px 0 0 60px;
    padding-top: 4px;
    gap: 10px;
}

.profile-post-actions form,
.profile-post-owner-actions form {
    margin: 0;
}

.profile-post-actions .post-action {
    min-width: 48px;
}

.profile-post .pinned {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    color: var(--accent);
    background: var(--accent-soft);
    font-size: 12px;
    font-weight: 950;
}

.post-media-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.post-media-preview:empty {
    display: none;
}

.post-media-preview-item {
    overflow: hidden;
    border: 1px solid var(--stroke);
    border-radius: 10px;
    background: var(--panel-2);
}

.post-media-preview-item img,
.post-media-preview-item video {
    display: block;
    width: 100%;
    height: auto;
}

.post-media-preview-meta {
    padding: 6px 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
}

@media (max-width: 640px) {
    .profile-post-form {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .profile-post-form-avatar,
    .profile-post-avatar {
        width: 40px;
        height: 40px;
    }

    .profile-post-form textarea {
        min-height: 78px;
        font-size: 18px;
    }

    .profile-post-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-post-submit {
        width: 100%;
    }

    .profile-post-author-row {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .profile-post .post-media-grid,
    .profile-post .pcontent,
    .profile-post .post-edit-form,
    .profile-post-actions,
    .profile-post-owner-actions {
        margin-left: 52px;
    }

    .profile-post-topline {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Android APK landing */
.apk-page {
    padding-bottom: 54px;
}

.apk-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 28px;
    align-items: center;
    min-height: 420px;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid var(--stroke);
    background:
        radial-gradient(circle at 16% 12%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 32%),
        radial-gradient(circle at 90% 20%, rgba(95, 111, 122, .22), transparent 34%),
        linear-gradient(135deg, var(--panel), var(--panel-2));
}

.apk-hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -140px 28%;
    height: 260px;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .08), transparent);
    transform: rotate(-8deg);
    pointer-events: none;
}

.apk-hero-copy {
    position: relative;
    z-index: 1;
}

.apk-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    color: var(--accent);
    background: var(--accent-soft);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.apk-hero h1 {
    max-width: 680px;
    margin: 18px 0 12px;
    color: var(--text);
    font-family: var(--vf-font-body);
    font-size: clamp(42px, 7vw, 76px);
    font-weight: 950;
    letter-spacing: -0.06em;
    line-height: .94;
}

.apk-hero p {
    max-width: 600px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.55;
}

.apk-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.apk-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .18), transparent 38%),
        var(--accent-gradient);
    font-size: 16px;
    font-weight: 950;
    text-decoration: none;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .18);
}

.apk-download-button:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.apk-download-button,
.apk-download-button:visited,
.apk-download-button:hover,
.apk-download-button:active {
    color: #ffffff;
}

.apk-version-note {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.apk-phone {
    position: relative;
    z-index: 1;
    width: 220px;
    min-height: 360px;
    justify-self: center;
    padding: 16px 14px;
    border: 1px solid color-mix(in srgb, var(--stroke) 80%, #fff);
    border-radius: 38px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .2), transparent 35%),
        #111820;
    box-shadow: 0 34px 80px rgba(0, 0, 0, .32);
}

.apk-phone-top {
    width: 74px;
    height: 6px;
    margin: 0 auto 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
}

.apk-phone-screen {
    min-height: 306px;
    border-radius: 26px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    color: #fff;
    background:
        radial-gradient(circle at 50% 28%, rgba(255, 255, 255, .16), transparent 28%),
        linear-gradient(150deg, #202a31, #06090d);
}

.apk-logo {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: var(--accent-gradient);
    font-size: 36px;
    font-weight: 950;
}

.apk-phone-screen strong {
    font-size: 28px;
    letter-spacing: .1em;
}

.apk-phone-screen span {
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    font-weight: 800;
}

.apk-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.apk-card,
.apk-install {
    border: 1px solid var(--stroke);
    background: var(--panel);
}

.apk-card {
    padding: 20px;
    border-radius: 22px;
}

.apk-card span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .14em;
}

.apk-card h2,
.apk-install h2 {
    margin: 8px 0 8px;
    color: var(--text);
    font-family: var(--vf-font-body);
    font-weight: 950;
    letter-spacing: -0.03em;
}

.apk-card p,
.apk-step li,
.apk-warning {
    color: var(--muted);
    line-height: 1.55;
}

.apk-install {
    margin-top: 14px;
    padding: clamp(22px, 4vw, 34px);
}

.apk-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.apk-step {
    padding: 18px;
    border: 1px solid var(--stroke);
    border-radius: 18px;
    background: var(--panel-2);
}

.apk-step strong {
    display: block;
    margin-bottom: 10px;
    color: var(--text);
    font-size: 16px;
    font-weight: 950;
}

.apk-step ol {
    margin: 0;
    padding-left: 20px;
}

.apk-step li + li {
    margin-top: 7px;
}

.apk-warning {
    margin: 18px 0 0;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--accent-soft);
}

:root:not([data-theme="dark"]) .apk-hero {
    background:
        radial-gradient(circle at 16% 12%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(80, 92, 102, .13), transparent 36%),
        linear-gradient(135deg, #edf1f4, #dfe6eb);
}

:root:not([data-theme="dark"]) .apk-card,
:root:not([data-theme="dark"]) .apk-install,
:root:not([data-theme="dark"]) .apk-step {
    border-color: rgba(78, 91, 103, .18);
    background: rgba(246, 248, 250, .82);
    box-shadow: none;
}

:root:not([data-theme="dark"]) .apk-step {
    background: rgba(255, 255, 255, .62);
}

:root:not([data-theme="dark"]) .apk-warning {
    color: #314151;
    background: color-mix(in srgb, var(--accent) 10%, #eef3f7);
}

:root:not([data-theme="dark"]) .apk-phone {
    border-color: rgba(74, 85, 96, .24);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .35), transparent 35%),
        #172028;
}

:root:not([data-theme="dark"]) .apk-download-button,
:root:not([data-theme="dark"]) .apk-download-button:visited,
:root:not([data-theme="dark"]) .apk-download-button:hover,
:root:not([data-theme="dark"]) .apk-download-button:active {
    color: #10161d;
}

[data-theme="dark"] .apk-hero {
    background:
        radial-gradient(circle at 16% 12%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 32%),
        radial-gradient(circle at 90% 20%, rgba(178, 191, 202, .12), transparent 34%),
        linear-gradient(135deg, #12171d, #080b0f);
}

[data-theme="dark"] .apk-card,
[data-theme="dark"] .apk-install {
    background: rgba(14, 19, 24, .82);
}

[data-theme="dark"] .apk-step {
    background: rgba(255, 255, 255, .045);
}

[data-theme="dark"] .apk-warning {
    color: color-mix(in srgb, var(--text) 82%, var(--muted));
    background: color-mix(in srgb, var(--accent) 14%, rgba(255, 255, 255, .045));
}

[data-theme="dark"] .apk-download-button,
[data-theme="dark"] .apk-download-button:visited,
[data-theme="dark"] .apk-download-button:hover,
[data-theme="dark"] .apk-download-button:active {
    color: #ffffff;
}

@media (max-width: 760px) {
    .apk-hero,
    .apk-grid,
    .apk-steps {
        grid-template-columns: 1fr;
    }

    .apk-phone {
        width: min(220px, 72vw);
        min-height: 320px;
        order: -1;
    }

    .apk-phone-screen {
        min-height: 266px;
    }

    .apk-download-button {
        width: 100%;
    }
}

/* Local Twemoji SVG keeps emoji rendering identical across platforms. */
img.vf-twemoji,
.post-card img.vf-twemoji,
.pcontent img.vf-twemoji,
.comment img.vf-twemoji,
.message-bubble img.vf-twemoji {
    display: inline-block;
    width: 1.4em;
    height: 1.4em;
    max-width: 1.4em;
    max-height: 1.4em;
    margin: 0 .04em;
    padding: 0;
    vertical-align: -.275em;
    object-fit: contain;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    user-select: none;
}
/* VOID 2.0 modules */
.vf-page-stack {
    display: grid;
    gap: 18px;
}

.vf-hero-card,
.vf-achievement-group,
.vf-changelog-item,
.vf-notification-row,
.vf-settings-form {
    position: relative;
    overflow: hidden;
}

.vf-hero-card {
    padding: 28px;
    border-radius: 24px;
    background: var(--panel);
    border: 1px solid var(--stroke);
}

.vf-hero-card h1 {
    margin: 4px 0 8px;
}

.vf-filter-pills,
.vf-profile-achievements,
.vf-achievement-list,
.vf-changelog {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.vf-filter-pills a,
.vf-achievement-chip,
.vf-level-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    color: var(--text);
    background: var(--accent-soft);
    text-decoration: none;
    font-weight: 800;
}

.vf-level-card {
    width: min(360px, 100%);
    margin-top: 12px;
    padding: 13px 14px 12px;
    border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--stroke));
    border-radius: 20px;
    background:
        radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 34%),
        linear-gradient(135deg, color-mix(in srgb, var(--panel) 92%, var(--accent) 8%), var(--panel));
    box-shadow: 0 12px 34px rgba(15, 20, 25, .08);
}

.vf-level-card-head,
.vf-level-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.vf-level-eyebrow {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.vf-level-card strong {
    display: block;
    color: var(--text);
    font-size: clamp(20px, 2.3vw, 25px);
    line-height: 1.05;
}

.vf-level-percent {
    flex: 0 0 auto;
    min-width: 54px;
    padding: 8px 10px;
    border-radius: 999px;
    color: var(--accent);
    background: var(--accent-soft);
    font-size: 14px;
    font-weight: 900;
    text-align: center;
}

.vf-level-progress {
    overflow: hidden;
    height: 10px;
    margin: 12px 0 9px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--muted) 18%, transparent);
}

.vf-level-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #b86f35, #d99047);
    box-shadow: 0 0 12px rgba(217, 144, 71, .28);
}

.vf-level-card-meta {
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.vf-level-card-meta span:first-child {
    color: var(--text);
}

.vf-filter-pills a.active,
.post-action-repost.is-active,
.post-action-bookmark.is-active {
    color: var(--accent);
}

.vf-achievement.is-unlocked {
    border: 1px solid color-mix(in srgb, #21c55d 54%, transparent);
    background:
        linear-gradient(135deg, color-mix(in srgb, #21c55d 20%, transparent), color-mix(in srgb, #16a34a 10%, transparent)),
        var(--accent-soft);
    color: #15803d;
}

.vf-achievement.is-unlocked strong {
    color: #166534;
}

[data-theme="dark"] .vf-achievement.is-unlocked {
    border-color: color-mix(in srgb, #4ade80 58%, transparent);
    background:
        linear-gradient(135deg, color-mix(in srgb, #22c55e 22%, transparent), color-mix(in srgb, #15803d 16%, transparent)),
        var(--accent-soft);
    color: #86efac;
}

[data-theme="dark"] .vf-achievement.is-unlocked strong {
    color: #bbf7d0;
}

.vf-notification-row.is-unread {
    border-left: 3px solid var(--accent);
}

.vf-notification-row,
.vf-bookmark-card {
    padding: 18px;
}

.vf-repost-preview {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin: 8px 0 12px;
    padding: 8px 11px;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    color: var(--muted);
    background: var(--accent-soft);
    text-decoration: none;
    font-weight: 800;
}

.vf-repost-preview:hover {
    color: var(--text);
}

.profile-cover,
.vf-profile-cover-preview {
    width: 100%;
    min-height: 180px;
    margin-bottom: -54px;
    border-radius: 22px;
    background-color: var(--bg-soft);
    background-position: center;
    background-size: cover;
    border: 1px solid var(--stroke);
}

.vf-profile-cover-preview {
    min-height: 220px;
}

.tag-page {
    width: min(100%, 760px);
    margin: 0 auto 72px;
    padding: 18px 14px 54px;
}

.tag-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: end;
    padding: clamp(24px, 5vw, 42px);
    border: 1px solid var(--stroke);
    border-radius: 30px;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 28%),
        linear-gradient(135deg, color-mix(in srgb, var(--panel) 92%, #111827 8%), var(--panel));
}

.tag-hero::after {
    content: "#";
    position: absolute;
    right: clamp(16px, 4vw, 34px);
    top: -38px;
    color: color-mix(in srgb, var(--text) 8%, transparent);
    font: 950 clamp(130px, 24vw, 220px)/1 var(--vf-font-body);
    pointer-events: none;
}

.tag-hero-copy,
.tag-hero-stats {
    position: relative;
    z-index: 1;
}

.tag-hero h1 {
    margin: 4px 0 12px;
    color: var(--text);
    font: 900 clamp(40px, 8vw, 72px)/.95 var(--vf-font-body);
    letter-spacing: -.06em;
    overflow-wrap: anywhere;
}

.tag-hero p {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.55;
}

.tag-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(88px, 1fr));
    gap: 10px;
    min-width: min(100%, 330px);
}

.tag-hero-stats div {
    padding: 14px 16px;
    border: 1px solid var(--stroke);
    border-radius: 20px;
    background: color-mix(in srgb, var(--bg) 72%, transparent);
    backdrop-filter: blur(12px);
}

.tag-hero-stats strong {
    display: block;
    color: var(--text);
    font-size: 25px;
    line-height: 1;
    letter-spacing: -.04em;
}

.tag-hero-stats span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: lowercase;
}

.tag-feed {
    display: grid;
    gap: 12px;
}

.tag-post-card {
    border-radius: 24px;
}

.tag-post-card .post-author-row {
    align-items: flex-start;
}

.tag-post-avatar-link {
    position: relative;
    z-index: 2;
    display: inline-flex;
    flex: 0 0 auto;
    border-radius: 50%;
    text-decoration: none;
}

.tag-post-card .profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.tag-empty-card {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: clamp(34px, 8vw, 72px) clamp(20px, 5vw, 42px);
    border: 1px dashed color-mix(in srgb, var(--text) 22%, var(--stroke));
    border-radius: 30px;
    background: var(--panel);
    text-align: center;
}

.tag-empty-mark {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border-radius: 24px;
    color: var(--text);
    background: var(--accent-soft);
    font-size: 44px;
    font-weight: 950;
}

.tag-empty-card h2 {
    margin: 6px 0 0;
    color: var(--text);
    font-size: clamp(28px, 5vw, 42px);
    letter-spacing: -.05em;
}

.tag-empty-card p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

@media (max-width: 760px) {
    .tag-page {
        padding: 10px 10px 42px;
    }

    .tag-hero {
        grid-template-columns: 1fr;
        border-radius: 24px;
    }

    .tag-hero-stats {
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 520px) {
    .tag-hero-stats {
        grid-template-columns: 1fr;
    }

    .tag-post-card {
        border-radius: 18px;
    }
}

.vf-profile-achievements {
    margin: 14px 0;
}

.vf-achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.feed-container.vf-achievements-page {
    width: min(1180px, calc(100vw - 32px));
    max-width: 1180px;
}

.vf-achievements-page {
    gap: 24px;
}

.vf-achievements-page .vf-hero-card {
    padding: clamp(30px, 4vw, 48px);
}

.vf-achievements-page .vf-achievement-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
}

.vf-achievement-group {
    padding: 18px;
    border-radius: 18px;
    background: var(--panel);
    border: 1px solid var(--stroke);
}

.vf-achievements-page .vf-achievement-group {
    padding: clamp(22px, 3vw, 30px);
    border-radius: 24px;
}

.vf-achievement-list {
    margin-top: 12px;
}

.vf-achievements-page .vf-achievement-list {
    gap: 14px;
    margin-top: 18px;
}

.vf-achievement {
    display: grid;
    gap: 2px;
    min-width: 120px;
    padding: 10px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--muted);
}

.vf-achievements-page .vf-achievement {
    flex: 1 1 220px;
    min-width: 220px;
    padding: 16px;
    gap: 5px;
    border-radius: 16px;
}

.vf-achievement small {
    display: block;
    max-width: 190px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.vf-achievements-page .vf-achievement small {
    max-width: 260px;
    font-size: 0.84rem;
}

.vf-achievement-chip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.45em;
    height: 1.45em;
    margin-right: 4px;
    line-height: 1;
}

.vf-achievement-chip.is-unlocked {
    border-color: color-mix(in srgb, #21c55d 50%, transparent);
    background: color-mix(in srgb, #21c55d 13%, var(--panel));
    color: #15803d;
}

[data-theme="dark"] .vf-achievement-chip.is-unlocked {
    border-color: color-mix(in srgb, #4ade80 52%, transparent);
    background: color-mix(in srgb, #22c55e 16%, var(--panel));
    color: #bbf7d0;
}

.vf-changelog {
    display: grid;
}

.vf-changelog-item {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 14px;
    align-items: start;
}

.vf-changelog-item > span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--muted);
    font-weight: 900;
}

.vf-settings-form {
    display: grid;
    gap: 14px;
}

.vf-settings-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 800;
}

.vf-inline-report {
    position: relative;
    z-index: 3;
}

.vf-inline-report summary {
    cursor: pointer;
    list-style: none;
}

.vf-inline-report form {
    display: grid;
    gap: 8px;
    min-width: 260px;
    margin-top: 8px;
    padding: 12px;
    border-radius: 14px;
    background: var(--panel);
    border: 1px solid var(--stroke);
}

@media (max-width: 720px) {
    .vf-hero-card {
        padding: 20px;
        border-radius: 18px;
    }

    .profile-cover,
    .vf-profile-cover-preview {
        min-height: 130px;
    }

    .vf-changelog-item {
        grid-template-columns: 1fr;
    }
}

.hero.card::before {
    display: none;
}


section.hero.card.profile-hero-card{overflow:hidden;padding:0!important}
section.hero.card.profile-hero-card>.profile-cover{display:block;width:100%;height:clamp(180px,31vw,240px);margin:0;border-radius:0!important;background-size:cover;background-position:center}
section.hero.card.profile-hero-card>.profile-avatar-row{position:relative;display:flex;align-items:flex-end;gap:18px;padding:0 clamp(18px,4vw,32px);margin-top:-58px}
section.hero.card.profile-hero-card>.profile-avatar-row .ava{width:132px;height:132px;border:5px solid var(--panel);box-shadow:none}
section.hero.card.profile-hero-card>.profile-avatar-row .identity{padding-top:64px;min-width:0}
section.hero.card.profile-hero-card>.stats,section.hero.card.profile-hero-card>.vf-profile-achievements,section.hero.card.profile-hero-card>.actions{margin-left:clamp(18px,4vw,32px);margin-right:clamp(18px,4vw,32px)}
section.hero.card.profile-hero-card>.stats{margin-top:22px}
section.hero.card.profile-hero-card>.actions{margin-bottom:clamp(18px,3vw,28px)}

/* 2026 UX unification: post cards, inbox, discovery and guest conversion. */
.vf-mobile-more-toggle,
.vf-mobile-more-panel,
.vf-mobile-more-backdrop { display: none; }

.vf-feed-heading {
    min-height: 72px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--stroke);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.vf-feed-heading h1 { margin: 0; font-size: 22px; }
.vf-feed-heading p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.vf-unified-post-card .post-author-row { align-items: flex-start; }
.vf-unified-post-card .post-author-identity { min-width: 0; flex: 1; }
.vf-unified-post-card .post-author-row > .date {
    margin: 2px 0 0 10px;
    white-space: nowrap;
    font-size: 12px;
}
.vf-unified-post-card > .content,
.vf-unified-post-card > .post-media-grid,
.vf-unified-post-card > .vf-repost-preview,
.vf-unified-post-card > .pactions { margin-left: 54px; }
.vf-unified-post-card > .post-media-grid { width: calc(100% - 54px); }
.vf-unified-post-card button[data-vf-auth-required] { background: transparent; }

body.vf-modal-open { overflow: hidden; }
.vf-auth-nudge[hidden] { display: none !important; }
.vf-auth-nudge { position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center; padding: 18px; }
.vf-auth-nudge-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; border: 0; border-radius: 0; background: rgba(8,12,16,.58); backdrop-filter: blur(4px); }
.vf-auth-nudge-card { position: relative; width: min(460px,100%); padding: 34px; border: 1px solid var(--stroke); border-radius: 26px; background: var(--panel); color: var(--text); box-shadow: 0 24px 80px rgba(0,0,0,.3); text-align: center; }
.vf-auth-nudge-card h2 { margin: 14px 0 8px; font-size: 28px; }
.vf-auth-nudge-card p { margin: 0 auto 24px; color: var(--muted); line-height: 1.55; }
.vf-auth-nudge-mark { width: 58px; height: 58px; margin: auto; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--accent-fill); font-size: 30px; font-weight: 900; }
.vf-auth-nudge-close { position: absolute; top: 12px; right: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 26px; cursor: pointer; }
.vf-auth-nudge-actions { display: grid; gap: 10px; }
.vf-auth-nudge-actions a { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

.vf-notification-row { position: relative; display: grid; grid-template-columns: 48px minmax(0,1fr) 12px; gap: 14px; align-items: center; padding: 18px; }
.vf-notification-row.is-unread { background: color-mix(in srgb, var(--accent) 8%, var(--panel)); }
.vf-notification-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); background: var(--accent-soft); font-size: 20px; font-weight: 900; }
.vf-notification-copy h2 { margin: 3px 0 4px; font-size: 17px; }
.vf-notification-copy p { margin: 0; color: var(--muted); }
.vf-notification-copy small { color: var(--muted); }
.vf-notification-open { position: absolute; inset: 0; z-index: 1; }
.vf-notification-unread-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

.vf-search-scopes { display: flex; gap: 6px; padding: 10px 16px 12px; overflow-x: auto; }
.vf-search-scopes a { flex: 0 0 auto; padding: 7px 11px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 800; }
.vf-search-scopes a.active { color: #fff; background: var(--accent-fill); }
.vf-search-summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.vf-search-summary label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.vf-search-summary select { min-height: 34px; padding: 0 30px 0 10px; }
.vf-discovery { padding-bottom: 30px; }
.vf-discovery-block { padding: 18px 20px; border-top: 1px solid var(--stroke); }
.vf-discovery-block h2 { margin: 0 0 14px; font-size: 19px; }
.vf-discovery-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.vf-discovery-tags a { padding: 10px 13px; border: 1px solid var(--stroke); border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 800; }
.vf-discovery-tags a span { margin-left: 7px; color: var(--muted); font-size: 12px; }
.vf-post-owner-toolbar { margin: 0 16px; padding: 10px 0; border-bottom: 1px solid var(--stroke); display: flex; flex-wrap: wrap; gap: 8px; }
.vf-post-owner-toolbar form { margin: 0; }
.vf-post-owner-toolbar .btn2 { min-height: 34px; padding: 7px 11px; }
.vf-pinned-post-toolbar { align-items: center; justify-content: space-between; color: var(--accent); }

@media (max-width: 760px) {
    .vf-menu { justify-content: space-around !important; gap: 0 !important; overflow: visible !important; }
    .vf-menu > a,
    .vf-menu > button { flex: 0 0 20% !important; width: 20% !important; max-width: none; padding: 4px !important; flex-direction: column; gap: 2px; }
    .vf-menu.vf-menu-guest > a { flex-basis: 33.333% !important; width: 33.333% !important; }
    .vf-menu > .vf-mobile-secondary { display: none !important; }
    .vf-menu .vf-nav-label { display: block !important; max-width: 100%; overflow: hidden; font-size: 10px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
    .vf-menu svg, .vf-menu .vf-nav-svg-icon { width: 23px; height: 23px; }
    .vf-menu .vf-nav-unread-badge { top: 1px; left: calc(50% + 3px); }
    .vf-mobile-more-toggle { display: inline-flex; min-height: 48px; border: 0; align-items: center; justify-content: center; color: var(--text); background: transparent; }
    .vf-mobile-more-toggle:hover, .vf-mobile-more-toggle.active { color: var(--text); background: rgba(15,20,25,.08); }
    .vf-mobile-more-toggle svg { width: 25px; height: 25px; fill: currentColor; stroke: none; }
    .vf-menu > a[href="/feed"] { order: 1; }
    .vf-menu > a[href="/search"] { order: 2; }
    .vf-menu > a[href="/messages"] { order: 3; }
    .vf-menu > a[href="/notifications"] { order: 4; }
    .vf-mobile-more-toggle { order: 5; }
    .vf-mobile-more-panel[hidden], .vf-mobile-more-backdrop[hidden] { display: none !important; }
    .vf-mobile-more-backdrop { display: block; position: fixed; inset: 0; z-index: 1290; width: 100%; border: 0; background: rgba(8,12,16,.52); }
    .vf-mobile-more-panel { display: block; position: fixed; z-index: 1300; right: 10px; bottom: calc(74px + env(safe-area-inset-bottom)); left: 10px; max-height: min(70vh,560px); overflow: auto; padding: 12px; border: 1px solid var(--stroke); border-radius: 24px; color: var(--text); background: var(--panel); box-shadow: 0 20px 70px rgba(0,0,0,.32); }
    .vf-mobile-more-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 10px; }
    .vf-mobile-more-head strong { font-size: 20px; }
    .vf-mobile-more-head button { width: 38px; height: 38px; border: 0; border-radius: 50%; color: var(--text); background: var(--bg); font-size: 24px; }
    .vf-mobile-more-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
    .vf-mobile-more-grid a, .vf-mobile-more-grid button { min-height: 48px; padding: 11px 13px; border: 1px solid var(--stroke); border-radius: 14px; display: flex; align-items: center; color: var(--text); background: var(--bg); text-decoration: none; font: 800 14px/1.2 var(--vf-font-body); text-align: left; }
    .vf-mobile-more-grid .danger { color: var(--danger); }
    body.vf-mobile-more-open { overflow: hidden; }
    .vf-unified-post-card .post-author-row > .date { max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
    .vf-search-summary { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
    .vf-unified-post-card > .content,
    .vf-unified-post-card > .post-media-grid,
    .vf-unified-post-card > .vf-repost-preview,
    .vf-unified-post-card > .pactions { margin-left: 0; }
    .vf-unified-post-card > .post-media-grid { width: 100%; }
    .vf-auth-nudge-card { padding: 30px 18px 20px; border-radius: 20px; }
    .vf-feed-heading { align-items: flex-start; }
    .vf-feed-heading .btn { padding: 8px 12px; white-space: nowrap; }
}
@media(max-width:680px){section.hero.card.profile-hero-card>.profile-cover{height:150px}section.hero.card.profile-hero-card>.profile-avatar-row{display:block;margin-top:-46px}section.hero.card.profile-hero-card>.profile-avatar-row .ava{width:104px;height:104px}section.hero.card.profile-hero-card>.profile-avatar-row .identity{padding-top:10px}}

section.hero.card.profile-hero-card > .profile-avatar-row {
    display: flex !important;
    align-items: center;
    min-height: 0;
    margin-top: -50px;
}

section.hero.card.profile-hero-card > .profile-avatar-row .ava {
    flex: 0 0 auto;
}

section.hero.card.profile-hero-card > .profile-primary-actions {
    position: static !important;
    display: flex;
    justify-content: flex-end;
    margin-top: 16px !important;
    margin-bottom: 18px !important;
}

@media (max-width: 680px) {
    section.hero.card.profile-hero-card > .profile-avatar-row {
        display: block !important;
        margin-top: -52px;
    }

    section.hero.card.profile-hero-card > .profile-primary-actions {
        justify-content: flex-start;
        margin-top: 16px;
    }
}
/* Feed modes, inline discussion, mentions and richer media */
.vf-feed-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:6px;padding:6px;margin:0 0 14px;background:var(--card,#17171b);border:1px solid var(--border,#303038);border-radius:16px;position:sticky;top:68px;z-index:8}.vf-feed-tabs a{padding:10px 12px;text-align:center;border-radius:11px;color:var(--muted,#aaa);text-decoration:none;font-weight:700}.vf-feed-tabs a:hover,.vf-feed-tabs a.is-active{color:var(--text,#fff);background:rgba(255,255,255,.09)}
.vf-post-audience{display:flex;align-items:center;gap:8px;color:var(--muted,#aaa);font-size:.86rem}.vf-post-audience select{max-width:190px;padding:8px 30px 8px 10px;border:1px solid var(--border,#3a3a42);border-radius:9px;background:var(--card,#17171b);color:var(--text,#fff)}
.vf-upload-progress{display:flex;align-items:center;gap:10px;height:8px;margin-top:10px;border-radius:999px;background:rgba(255,255,255,.1);overflow:visible}.vf-upload-progress span{display:block;height:100%;width:0;border-radius:inherit;background:#8d6cff;transition:width .15s}.vf-upload-progress output{font-size:.75rem;color:var(--muted,#aaa)}
.post-media-preview-item{position:relative}.post-media-preview-meta{display:grid;gap:7px;padding:8px}.post-media-preview-meta strong{font-size:.75rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.post-media-preview-meta input{width:100%;box-sizing:border-box;padding:7px 9px;border:1px solid var(--border,#3a3a42);border-radius:8px;background:rgba(0,0,0,.18);color:inherit}.post-media-preview-controls{display:flex;gap:5px}.post-media-preview-controls button{border:1px solid var(--border,#3a3a42);border-radius:7px;background:transparent;color:inherit;padding:4px 8px;cursor:pointer}.post-media-preview-controls button:last-child{margin-left:auto;color:#ff9a9a}.post-media-preview-controls button:disabled{opacity:.35}.post-media-note[data-vf-media-error],.vf-feed-comment-error{color:#ff9a9a}
.vf-feed-discussion{position:relative;z-index:2;border-top:1px solid var(--border,#303038);padding:14px 16px 4px;margin-top:8px}.vf-feed-discussion-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.vf-feed-discussion-heading a{font-size:.85rem;color:var(--muted,#aaa)}.vf-feed-comments-list{display:grid;gap:12px}.vf-feed-comment{display:grid;grid-template-columns:32px minmax(0,1fr);gap:9px}.vf-feed-comment>img{width:32px;height:32px;border-radius:50%;object-fit:cover}.vf-feed-comment-body{min-width:0}.vf-feed-comment-head{display:flex;gap:8px;align-items:baseline}.vf-feed-comment-head a{font-weight:700;text-decoration:none}.vf-feed-comment-head span{font-size:.75rem;color:var(--muted,#aaa)}.vf-feed-comment p{margin:3px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.vf-feed-comment-actions{margin-top:5px}.vf-feed-comment-reply-toggle{border:0;background:transparent;color:var(--muted,#aaa);font:inherit;font-size:.82rem;font-weight:800;cursor:pointer;padding:0}.vf-feed-comment-reply-toggle:hover{color:var(--text,#fff)}.vf-feed-comment-replies{position:relative;display:grid;gap:9px;margin-top:10px;padding-left:14px}.vf-feed-comment-replies:before{content:"";position:absolute;left:0;top:0;bottom:6px;width:2px;border-radius:999px;background:var(--border,#303038)}.vf-feed-comment-reply{grid-template-columns:28px minmax(0,1fr);gap:8px}.vf-feed-comment-reply>img{width:28px;height:28px}.vf-feed-comment-form{display:flex;gap:8px;margin-top:14px}.vf-feed-comment-form textarea{flex:1;min-height:42px;max-height:150px;resize:vertical;padding:10px;border:1px solid var(--border,#3a3a42);border-radius:11px;background:rgba(0,0,0,.16);color:inherit}.vf-feed-comment-reply-form{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:start;margin-top:10px}.vf-feed-comment-reply-form .vf-feed-comment-error{grid-column:1/-1;margin:0;color:var(--danger,#ff6b6b)}.vf-feed-comment-login{display:inline-block;margin-top:12px}
@media(max-width:560px){.vf-feed-comment-form{display:grid;grid-template-columns:minmax(0,1fr)}.vf-feed-comment-reply-form{grid-template-columns:minmax(0,1fr)}.vf-feed-comment-form button{width:100%}}
.vf-mention-menu{position:fixed;z-index:10020;border:1px solid var(--border,#3a3a42);border-radius:13px;padding:5px;background:var(--card,#19191e);box-shadow:0 18px 55px rgba(0,0,0,.45);max-height:270px;overflow:auto}.vf-mention-option{display:grid;grid-template-columns:36px minmax(0,1fr);gap:9px;width:100%;padding:8px;border:0;border-radius:9px;background:transparent;color:inherit;text-align:left;cursor:pointer}.vf-mention-option:hover,.vf-mention-option.is-selected{background:rgba(255,255,255,.09)}.vf-mention-option img{width:36px;height:36px;border-radius:50%;object-fit:cover}.vf-mention-option span{display:grid}.vf-mention-option small{color:var(--muted,#aaa)}
.vf-media-lightbox{position:fixed;inset:0;z-index:10050;box-sizing:border-box;width:100%;height:100vh;height:100dvh;overflow:hidden;padding:calc(64px + env(safe-area-inset-top,0px)) 8px calc(12px + env(safe-area-inset-bottom,0px));background:rgba(0,0,0,.92);display:grid;grid-template-columns:50px minmax(0,1fr) 50px;grid-template-rows:minmax(0,1fr) auto;gap:8px;align-items:center}.vf-media-lightbox[hidden]{display:none}.vf-media-lightbox-stage{grid-column:2;grid-row:1;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;display:grid;place-items:center}.vf-media-lightbox-stage img,.vf-media-lightbox-stage video{display:block;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain;object-position:center;border-radius:0;aspect-ratio:auto}.vf-media-lightbox button{border:0;background:rgba(255,255,255,.1);color:#fff;cursor:pointer}.vf-media-lightbox-prev,.vf-media-lightbox-next{grid-row:1;justify-self:center;width:44px;height:64px;border-radius:12px;font-size:42px}.vf-media-lightbox-prev{grid-column:1}.vf-media-lightbox-next{grid-column:3}.vf-media-lightbox-close{position:absolute;right:calc(14px + env(safe-area-inset-right,0px));top:calc(14px + env(safe-area-inset-top,0px));width:44px;height:44px;border-radius:50%;font-size:28px}.vf-media-lightbox-meta{grid-column:1/-1;grid-row:2;min-width:0;max-height:25vh;max-height:25dvh;overflow:auto;text-align:center;color:#ddd;padding:0 12px;overflow-wrap:anywhere}.vf-media-lightbox-meta p{margin:3px 0 0;white-space:pre-wrap}.post-media-grid img[data-vf-media-item]{cursor:zoom-in}
@media(max-width:700px){.vf-feed-tabs{top:56px}.profile-post-form-footer{align-items:flex-end;flex-wrap:wrap}.vf-post-audience{order:2;width:100%;justify-content:space-between}.vf-post-audience select{max-width:62%}.vf-feed-comment-form{align-items:flex-end}.vf-feed-comment-form textarea{min-width:0}.vf-media-lightbox{grid-template-columns:36px minmax(0,1fr) 36px;padding-inline:4px;column-gap:4px}.vf-media-lightbox-prev,.vf-media-lightbox-next{width:36px;height:52px}}

/* Feed composer and profile post controls polish. */
.vf-feed-heading {
    border-bottom: 0;
}

.vf-feed-heading + .vf-feed-tabs,
.vf-feed-tabs {
    position: sticky;
    top: 0;
    z-index: 12;
    margin: -1px 0 18px;
    padding: 7px;
    border: 1px solid var(--stroke);
    border-top-color: color-mix(in srgb, var(--stroke) 64%, transparent);
    border-radius: 0 0 22px 22px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)),
        color-mix(in srgb, var(--panel) 90%, transparent);
    backdrop-filter: blur(18px) saturate(118%);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .18);
}

.vf-feed-tabs a {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-weight: 900;
}

.vf-feed-tabs a.is-active {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .045)),
        rgba(255, 255, 255, .08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}

.profile-post-composer {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border: 1px solid color-mix(in srgb, var(--stroke) 82%, rgba(255, 255, 255, .22));
    border-radius: 24px;
    background:
        radial-gradient(620px 220px at 12% 0%, rgba(255, 255, 255, .11), transparent 64%),
        linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)),
        color-mix(in srgb, var(--panel) 94%, transparent);
}

.vf-feed-composer {
    margin: 0 0 18px;
}

.vf-profile-composer {
    margin-bottom: 12px;
}

.profile-post-form {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
}

.profile-post-form-avatar {
    width: 52px;
    height: 52px;
    border: 2px solid color-mix(in srgb, var(--stroke) 74%, rgba(255, 255, 255, .34));
    box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
}

.profile-post-composer-shell {
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--stroke) 76%, transparent);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)),
        rgba(0, 0, 0, .12);
}

.profile-post-form textarea {
    min-height: 124px;
    padding: 18px;
    border: 0;
    background: transparent !important;
    font-size: clamp(18px, 2.4vw, 22px);
}

.profile-post-form textarea:focus {
    box-shadow: none;
}

.profile-post-form textarea::placeholder {
    color: color-mix(in srgb, var(--muted) 86%, var(--text));
}

.profile-post-composer-shell:focus-within {
    border-color: color-mix(in srgb, var(--accent) 72%, var(--stroke));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

.profile-post-form-footer {
    align-items: flex-end;
    gap: 12px;
    margin-top: 12px;
    padding-top: 0;
    border-top: 0;
}

.profile-post-form-media {
    align-items: center;
    gap: 9px 12px;
}

.profile-post-composer .post-media-picker {
    min-height: 44px;
    padding: 0 17px;
    border: 1px solid color-mix(in srgb, var(--stroke) 84%, rgba(255, 255, 255, .22));
    color: var(--text);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035)),
        rgba(255, 255, 255, .04);
}

.profile-post-composer .post-media-note {
    max-width: 250px;
    line-height: 1.35;
}

.profile-post-form .vf-post-audience {
    min-height: 44px;
    padding: 0 0 0 4px;
}

.profile-post-form .vf-post-audience select {
    min-height: 44px;
    border-radius: 14px;
}

.profile-post-submit {
    min-height: 48px;
    min-width: 160px;
    border: 1px solid color-mix(in srgb, var(--stroke-strong) 76%, rgba(255, 255, 255, .36));
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .04) 40%),
        var(--accent-fill-strong);
}

.profile-post-composer .vf-upload-progress {
    margin-top: 12px;
}

.vf-post-owner-menu-shell {
    position: relative;
    z-index: 6;
    height: 0;
    display: flex;
    justify-content: flex-end;
    padding: 10px 14px 0;
    pointer-events: none;
}

.vf-post-owner-menu {
    position: relative;
    pointer-events: auto;
}

.vf-post-owner-menu summary {
    list-style: none;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--muted);
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    transition: background-color .16s ease, color .16s ease, transform .16s ease;
    user-select: none;
}

.vf-post-owner-menu summary::-webkit-details-marker {
    display: none;
}

.vf-post-owner-dots {
    position: relative;
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor;
}

.vf-post-owner-menu[open] summary,
.vf-post-owner-menu summary:hover {
    color: var(--text);
    background: color-mix(in srgb, var(--text) 9%, transparent);
}

.vf-post-owner-menu summary:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--accent) 70%, transparent);
    outline-offset: 2px;
}

.vf-post-owner-menu-list {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    overflow: hidden;
    padding: 6px;
    border: 1px solid var(--stroke);
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)),
        var(--panel);
    box-shadow: 0 18px 46px rgba(0, 0, 0, .28);
    backdrop-filter: blur(18px) saturate(118%);
}

.vf-post-owner-menu-list form {
    margin: 0;
}

.vf-post-owner-menu-list a,
.vf-post-owner-menu-list button {
    width: 100%;
    min-height: 40px;
    padding: 0 11px;
    border: 0;
    border-radius: 11px;
    display: flex;
    align-items: center;
    color: var(--text);
    background: transparent;
    font: 850 14px/1.2 var(--vf-font-body);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.vf-post-owner-menu-list a:hover,
.vf-post-owner-menu-list button:hover {
    background: var(--accent-soft);
}

.vf-post-owner-menu-list .is-danger {
    color: var(--danger);
}

.vf-post-owner-menu-shell + .vf-unified-post-card.profile-post .post-author-row {
    padding-right: 48px;
}

.vf-post-owner-menu-shell + .vf-unified-post-card.profile-post .post-author-row > .date {
    max-width: min(280px, 42%);
    overflow: hidden;
    text-overflow: ellipsis;
}

.vf-pinned-post-toolbar {
    position: relative;
    z-index: 7;
}

.profile-posts-section {
    overflow: visible;
}

.vf-pinned-post-toolbar .vf-post-owner-menu-list {
    top: calc(100% + 6px);
}

@media (max-width: 700px) {
    .vf-feed-heading + .vf-feed-tabs,
    .vf-feed-tabs {
        top: 0;
        margin-bottom: 14px;
        border-radius: 0 0 18px 18px;
    }

    .vf-feed-tabs a {
        min-height: 42px;
    }

    .profile-post-composer {
        padding: 14px;
        border-radius: 20px;
    }

    .profile-post-form {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 10px;
    }

    .profile-post-form-avatar {
        width: 42px;
        height: 42px;
    }

    .profile-post-form textarea {
        min-height: 108px;
        padding: 14px;
    }

    .profile-post-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-post-form-media {
        display: grid;
    }

    .profile-post-composer .post-media-note {
        max-width: none;
    }

    .profile-post-form .vf-post-audience {
        justify-content: space-between;
        width: 100%;
    }

    .profile-post-form .vf-post-audience select {
        max-width: 64%;
    }

    .profile-post-submit {
        width: 100%;
    }
}

/* Mobile performance pass: keep the VOID look, avoid expensive paints on phones. */
@media (max-width: 820px), (pointer: coarse) {
    .feed-container,
    .wrap,
    .container,
    .messages-layout {
        view-transition-name: none !important;
    }

    html.vf-is-navigating::after {
        animation: none !important;
        box-shadow: none !important;
    }

    body {
        background:
            radial-gradient(520px 220px at 12% -4%, rgba(235, 241, 244, .13), transparent 68%),
            radial-gradient(460px 220px at 92% 2%, rgba(205, 220, 228, .09), transparent 70%),
            linear-gradient(165deg, #070b10, #101722 48%, #090d14) !important;
    }

    body::before {
        display: none !important;
    }

    body::after {
        position: absolute;
        opacity: .1;
        background: linear-gradient(112deg, transparent 0 54%, rgba(255, 255, 255, .035) 58%, transparent 70%);
    }

    .card,
    .panel,
    .vf-header,
    .vf-right-rail,
    .feed-container,
    .post-card,
    .hero,
    .section,
    .section .post,
    .container > .post,
    .comment,
    .chat-link,
    .messages-layout,
    .messages-scroll,
    .chat-compose,
    .vf-rail-card,
    .tile,
    .timeline,
    .reply-compose,
    .reply-snippet,
    .attachment-item,
    .vf-notify-item,
    .search-page,
    .search-form,
    .vf-mobile-more-panel,
    .vf-auth-nudge-backdrop {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .card,
    .panel,
    .post-card,
    .hero,
    .section,
    .comment,
    .chat-link,
    .messages-layout,
    .messages-scroll,
    .chat-compose,
    .vf-rail-card,
    .tile,
    .timeline,
    .vf-notify-item,
    .profile-post-composer,
    .profile-post-composer .profile-post-composer-shell,
    .vf-post-owner-menu,
    .vf-mention-menu {
        box-shadow: none !important;
    }

    .vf-auth-nudge-card,
    .vf-mobile-more-panel {
        box-shadow: 0 12px 28px rgba(0, 0, 0, .24) !important;
    }

    .post-card,
    .profile-post,
    .vf-unified-post-card,
    .vf-feed-comment,
    .vf-notify-item,
    body.messages-page .chat-link {
        contain: layout paint style;
    }
}

@supports (content-visibility: auto) {
    @media (max-width: 820px), (pointer: coarse) {
        .post-card,
        .profile-post,
        .vf-unified-post-card,
        .vf-notify-item,
        body.messages-page .chat-link {
            content-visibility: auto;
            contain-intrinsic-size: 1px 220px;
        }
    }
}

@media (prefers-reduced-motion: reduce), (max-width: 820px), (pointer: coarse) {
    ::view-transition-old(vf-page),
    ::view-transition-new(vf-page) {
        animation: none !important;
    }

    .vf-navigation-progress,
    .vf-recording-pulse,
    .target-message {
        animation: none !important;
    }
}
