@import url("/fonts/void-fonts.css?v=7749206");

: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: 184px 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;
}

.dishonored-section[hidden] {
    display: none;
}

.dishonored-stats-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.dishonored-record {
    position: relative;
    min-height: 210px;
    padding: 28px 32px;
    border: 1px solid #cad4dc;
    border-radius: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 154px;
    align-items: center;
    column-gap: 26px;
    overflow: hidden;
    color: #f5f7f8;
    background:
        linear-gradient(112deg, rgba(7, 18, 27, 0.98), rgba(22, 49, 62, 0.92)),
        #0b1820;
}

.dishonored-stats-grid .dishonored-record {
    min-height: 210px;
    padding: 26px 30px;
}

.dishonored-stats-grid .dishonored-record-copy strong {
    font-size: clamp(42px, 6vw, 64px);
}

.dishonored-record::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background:
        repeating-linear-gradient(118deg, transparent 0 23px, rgba(255, 255, 255, 0.12) 24px 25px),
        radial-gradient(circle at 80% 20%, #84c5d8, transparent 32%);
    pointer-events: none;
}

.dishonored-record-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.dishonored-record-copy small,
.dishonored-record-copy strong,
.dishonored-record-copy span {
    display: block;
}

.dishonored-record-copy small {
    margin-bottom: 8px;
    color: #9fb8c5;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dishonored-record-copy strong {
    color: #ffffff;
    font-family: var(--vf-font-display);
    font-size: clamp(48px, 9vw, 82px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.06em;
}

.dishonored-record-copy span {
    margin-top: 9px;
    color: #d7e2e7;
    font-size: 16px;
    font-weight: 700;
}

.dishonored-record-note {
    max-width: 490px;
    margin: 16px 0 0;
    color: #9fb8c5;
    font-size: 13px;
    line-height: 1.55;
}

.dishonored-record-mark {
    position: relative;
    z-index: 1;
    width: 142px;
    height: 142px;
    align-self: center;
    justify-self: end;
    transform: rotate(5deg);
    color: rgba(149, 213, 226, 0.28);
    pointer-events: none;
}

.dishonored-record-mark svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dishonored-record-mark-coins {
    transform: rotate(-4deg);
}

.dishonored-record-mark-alarm {
    transform: rotate(3deg);
}

.dishonored-record-mark-eye {
    transform: rotate(-3deg);
}

@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-record {
        min-height: 180px;
        padding: 24px 20px;
    }

    .dishonored-stats-grid {
        grid-template-columns: 1fr;
    }

    .dishonored-stats-grid .dishonored-record {
        min-height: 180px;
        padding: 22px 20px;
        grid-template-columns: minmax(0, 1fr) 92px;
        column-gap: 12px;
    }

    .dishonored-record-mark {
        width: 88px;
        height: 88px;
    }
}

@media (max-width: 430px) {
    .dishonored-stats-grid .dishonored-record {
        grid-template-columns: minmax(0, 1fr) 70px;
        column-gap: 8px;
    }

    .dishonored-record-mark {
        width: 68px;
        height: 68px;
    }

    .dishonored-stats-grid .dishonored-record-copy strong {
        font-size: 40px;
    }
}

.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;
}

.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 {
    position: fixed;
    z-index: 999;
    top: 70px;
    right: 20px;
    color: var(--vf-muted, #536471);
    font-size: 12px;
    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 {
        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);
}

.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-filter-pills a.active,
.vf-achievement.is-unlocked,
.post-action-repost.is-active,
.post-action-bookmark.is-active {
    color: var(--accent);
}

.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;
}

.vf-profile-achievements {
    margin: 14px 0;
}

.vf-achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.vf-achievement-group {
    padding: 18px;
    border-radius: 18px;
    background: var(--panel);
    border: 1px solid var(--stroke);
}

.vf-achievement-list {
    margin-top: 12px;
}

.vf-achievement {
    display: grid;
    gap: 2px;
    min-width: 120px;
    padding: 10px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--muted);
}

.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;
    }
}
