:root {
    color-scheme: dark;
    --feed-topbar-height: 62px;
    --mobile-feed-topbar: 46px;
    --bottom-nav-height: 54px;
    --bg: #09090b;
    --surface: #141417;
    --surface-soft: #202026;
    --text: #f7f7fb;
    --muted: #a7a7b2;
    --line: rgba(255, 255, 255, 0.12);
    --accent: #8b5cf6;
    --accent-2: #f7c948;
    --danger-soft: rgba(248, 113, 113, 0.12);
    --ink: #050507;
}

html,
body,
a,
button,
label,
summary,
input,
select,
textarea,
[role="button"],
[tabindex],
.case-card,
.case-media {
    -webkit-tap-highlight-color: transparent;
}

.profile-page-shell,
.search-page-shell {
    width: min(1280px, calc(100% - 28px));
    margin: 0 auto;
    padding: calc(var(--feed-topbar-height) + 28px) 0 60px;
}

.profile-hero,
.search-hero {
    display: grid;
    gap: 18px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 26px;
}

.profile-hero {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: var(--surface-soft);
}

.profile-avatar.fallback {
    display: grid;
    place-items: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    background:
            radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.9), transparent 12%),
            linear-gradient(135deg, #8b5cf6, #3b0764);
}

.profile-avatar.mini {
    width: 42px;
    height: 42px;
    font-size: 1rem;
    flex: 0 0 auto;
}

.profile-copy {
    display: grid;
    gap: 8px;
}

.profile-copy h1,
.search-hero h1 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 1;
}

.verified-badge {
    display: inline-grid;
    min-height: 24px;
    place-items: center;
    border: 1px solid rgba(125, 211, 252, 0.42);
    border-radius: 999px;
    padding: 4px 9px;
    background: rgba(14, 165, 233, 0.14);
    color: #bae6fd;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.verified-badge.mini {
    min-height: 18px;
    padding: 3px 6px;
    font-size: 0.62rem;
}

.profile-copy p {
    max-width: 70ch;
    margin: 0;
    color: var(--muted);
}

.profile-bio {
    overflow-wrap: anywhere;
    line-height: 1.48;
}

.profile-bio-link {
    color: #fecdd3;
    font-weight: 780;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.profile-bio-link:hover,
.profile-bio-link:focus-visible {
    color: #ffffff;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.profile-actions form {
    margin: 0;
}

.admin-profile-actions {
    align-self: end;
}

.profile-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 8px;
}

.profile-stats span,
.profile-stats a {
    display: grid;
    gap: 0;
    min-width: 62px;
    border-radius: 8px;
    text-decoration: none;
}

.profile-stats a {
    padding: 5px 7px;
    margin: -5px -7px;
}

.profile-stats a.active,
.profile-stats a:hover,
.profile-stats a:focus-visible {
    background: rgba(139, 92, 246, 0.16);
}

.profile-stats strong {
    font-size: 1.12rem;
}

.profile-stats small {
    color: var(--muted);
}

.profile-actions button,
.profile-actions .button-link,
.search-form button {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    background: #ffffff;
    color: #09090b;
    font-weight: 800;
    cursor: pointer;
}

.profile-actions button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid var(--line);
}

.profile-actions .button-link.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid var(--line);
}

.profile-actions .profile-icon-action {
    display: grid;
    width: 44px;
    height: 44px;
    min-height: 44px;
    place-items: center;
    padding: 0;
    background:
            linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055)),
            rgba(12, 12, 16, 0.72);
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.profile-actions .profile-icon-action:hover,
.profile-actions .profile-icon-action:focus-visible,
.profile-actions .profile-icon-action.active {
    border-color: rgba(196, 181, 253, 0.5);
    background:
            linear-gradient(145deg, rgba(139, 92, 246, 0.24), rgba(255, 255, 255, 0.07)),
            rgba(12, 12, 16, 0.78);
}

.profile-actions .profile-icon-action:hover,
.profile-actions .profile-icon-action:focus-visible {
    transform: translateY(-1px);
}

.profile-actions .profile-icon-action svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    width: min(720px, 100%);
}

.search-form input {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    outline: 0;
}

.profile-result-list,
.search-card-grid {
    display: grid;
    gap: 12px;
}

.profile-result,
.search-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.045);
    text-decoration: none;
}

.profile-result span,
.search-card-body {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.profile-result small,
.search-card p,
.search-card span {
    color: var(--muted);
}

.search-card img {
    width: 78px;
    height: 78px;
    border-radius: 8px;
    object-fit: cover;
}

.search-card strong,
.profile-result strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-myst-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.profile-myst-card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.profile-myst-card:hover,
.profile-myst-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.45);
    background: rgba(255, 255, 255, 0.07);
}

.profile-myst-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.12;
    overflow: hidden;
    background:
            radial-gradient(circle at 35% 18%, rgba(139, 92, 246, 0.22), transparent 30%),
            #111115;
}

.profile-myst-media img,
.profile-myst-media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-myst-media.is-video video {
    border-radius: 0;
}

.profile-video-badge {
    position: absolute;
    right: 7px;
    bottom: 7px;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    color: #ffffff;
    font-size: 0.82rem;
    backdrop-filter: blur(10px);
}

.profile-myst-body {
    display: grid;
    gap: 4px;
    padding: 9px;
}

.profile-myst-body span {
    color: var(--muted);
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
}

.profile-myst-body strong {
    overflow: hidden;
    color: #ffffff;
    font-size: 0.82rem;
    line-height: 1.18;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-myst-body p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.profile-user-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.profile-user-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.045);
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease;
}

.profile-user-card:hover,
.profile-user-card:focus-visible {
    border-color: rgba(139, 92, 246, 0.45);
    background: rgba(255, 255, 255, 0.07);
}

.profile-user-card > img {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    object-fit: cover;
}

.profile-user-card > span:last-child {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.profile-user-card strong,
.profile-user-card small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-user-card strong {
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-user-card small {
    color: var(--muted);
}

.profile-list-loader {
    grid-column: 1 / -1;
    justify-self: center;
    width: 86px;
    height: 4px;
    margin: 12px 0 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.profile-list-loader::after {
    display: block;
    width: 42px;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, #ffffff, #a78bfa, transparent);
    content: "";
    animation: profileListLoading 1s ease-in-out infinite;
}

.notification-center {
    max-width: 760px;
    margin: 0 auto;
    gap: 22px;
}

.inbox-hero {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    justify-content: space-between;
}

.inbox-hero h1 {
    margin: 4px 0 0;
}

.inbox-find-people {
    white-space: nowrap;
}

.notification-list {
    display: grid;
    gap: 10px;
}

.web-push-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 14px;
    align-items: center;
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 8px;
    padding: 14px;
    background: rgba(20, 184, 166, 0.075);
}

.web-push-panel strong,
.web-push-panel p,
.web-push-panel small {
    margin: 0;
}

.web-push-panel strong {
    color: #ffffff;
}

.web-push-panel p,
.web-push-panel small {
    color: var(--muted);
}

.web-push-panel button {
    border-color: rgba(20, 184, 166, 0.36);
    background: rgba(20, 184, 166, 0.14);
    color: #ccfbf1;
}

.web-push-panel button.is-enabled {
    border-color: rgba(167, 139, 250, 0.48);
    background: rgba(139, 92, 246, 0.18);
    color: #ede9fe;
}

.web-push-panel button:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.web-push-panel small {
    grid-column: 1 / -1;
    min-height: 1.2em;
    font-size: 0.82rem;
}

.notification-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 6px 12px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.045);
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.notification-item:hover,
.notification-item:focus-visible {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.075);
    transform: translateY(-1px);
}

.notification-item.no-link {
    cursor: default;
}

.notification-item.no-link:hover,
.notification-item.no-link:focus-visible {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.045);
    transform: none;
}

.notification-dot,
.notification-avatar {
    grid-row: 1 / 3;
    align-self: center;
    justify-self: center;
}

.notification-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #a78bfa;
    box-shadow: 0 0 18px rgba(167, 139, 250, 0.42);
}

.notification-avatar {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.96), rgba(20, 184, 166, 0.86));
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 900;
    text-transform: uppercase;
}

.notification-item.status-completed .notification-dot {
    background: #34d399;
}

.notification-item.status-failed .notification-dot {
    background: #fb7185;
}

.notification-item strong,
.notification-item p,
.notification-item small {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-item strong {
    color: #ffffff;
}

.notification-item p,
.notification-item small {
    color: var(--muted);
}

.notification-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.notification-action,
.notification-status {
    justify-self: end;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 0.72rem;
    font-weight: 850;
    white-space: nowrap;
}

.notification-action {
    border: 1px solid rgba(167, 139, 250, 0.38);
    color: #ddd6fe;
}

.notification-status {
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: var(--muted);
}

.notification-item.status-completed .notification-status {
    border-color: rgba(52, 211, 153, 0.34);
    color: #bbf7d0;
}

.notification-item.status-failed .notification-status {
    border-color: rgba(251, 113, 133, 0.4);
    color: #fecdd3;
}

.messages-center {
    max-width: 760px;
    margin: 0 auto;
    gap: 18px;
}

.messages-header {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    justify-content: space-between;
}

.messages-header h1 {
    margin: 4px 0 0;
}

.message-thread-list {
    display: grid;
    gap: 10px;
    align-content: start;
    max-height: min(72dvh, 720px);
    overflow: auto;
    padding-right: 2px;
    overscroll-behavior: contain;
}

.message-thread-list [data-message-thread-items] {
    display: grid;
    gap: 10px;
}

.messages-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
    min-height: 520px;
    position: relative;
}

.message-conversation-host {
    position: fixed;
    inset: var(--feed-topbar-height) 0 0;
    z-index: 70;
    display: none;
    min-width: 0;
    overflow: hidden;
    padding: 14px;
    background: rgba(5, 5, 7, 0.92);
    backdrop-filter: blur(14px);
}

.messages-layout.has-active-chat .message-conversation-host {
    display: block;
}

.message-thread {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: inherit;
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.message-thread.active {
    border-color: rgba(167, 139, 250, 0.5);
    background: rgba(167, 139, 250, 0.12);
}

.message-thread.locked {
    border-color: rgba(20, 184, 166, 0.22);
    background: rgba(20, 184, 166, 0.08);
}

.message-thread-avatar {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.16);
    color: #99f6e4;
    font-weight: 900;
}

.message-thread strong,
.message-thread p {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-thread strong {
    display: block;
    color: #ffffff;
    white-space: nowrap;
}

.message-thread p {
    margin-top: 4px;
    color: var(--muted);
}

.message-thread-state {
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    padding: 5px 9px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 850;
    white-space: nowrap;
}

.message-thread-state.unread {
    border-color: rgba(167, 139, 250, 0.5);
    background: rgba(167, 139, 250, 0.18);
    color: #ffffff;
}

.message-thread-sentinel {
    min-height: 36px;
    border-radius: 8px;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.12), transparent);
    overflow: hidden;
}

.message-conversation {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(920px, 100%);
    height: 100%;
    min-height: 0;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(13, 14, 20, 0.98);
}

.message-conversation.empty {
    display: none;
}

.message-conversation-header {
    display: flex;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px;
}

.message-conversation-person {
    min-width: 0;
    flex: 1;
}

.message-conversation-back,
.message-report-trigger {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    appearance: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
}

.message-conversation-back {
    display: inline-flex;
    font-size: 0.95rem;
    letter-spacing: 0;
}

.message-report-trigger {
    border-color: rgba(251, 113, 133, 0.28);
    color: #fecdd3;
    font-size: 1rem;
}

.message-conversation-header strong {
    display: block;
    color: #ffffff;
}

.message-conversation-header a {
    color: var(--muted);
    font-size: 0.84rem;
    text-decoration: none;
}

.message-bubbles {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px;
    -webkit-overflow-scrolling: touch;
}

.message-bubble {
    width: fit-content;
    max-width: min(72%, 560px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 9px 11px;
    background: rgba(255, 255, 255, 0.07);
}

.message-bubble.own {
    align-self: flex-end;
    border-color: rgba(20, 184, 166, 0.28);
    background: rgba(20, 184, 166, 0.14);
}

.message-bubble p,
.message-bubble small {
    margin: 0;
}

.message-bubble p {
    white-space: pre-wrap;
}

.message-bubble small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.72rem;
}

.message-composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
}

.message-composer textarea {
    min-height: 44px;
    max-height: 120px;
    resize: vertical;
}

@keyframes profileListLoading {
    from {
        transform: translateX(-46px);
    }
    to {
        transform: translateX(92px);
    }
}

@media (max-width: 720px) {
    .inbox-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .messages-header {
        align-items: stretch;
        flex-direction: column;
    }

    .inbox-find-people {
        width: 100%;
        text-align: center;
    }

    .notification-item {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .web-push-panel {
        grid-template-columns: 1fr;
    }

    .web-push-panel button {
        width: 100%;
    }

    .notification-action,
    .notification-status {
        grid-column: 2;
        justify-self: start;
    }

    .message-thread {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .messages-layout {
        min-height: 0;
    }

    .message-thread-list {
        max-height: none;
        min-height: 55dvh;
        padding-right: 0;
    }

    .message-conversation-host {
        inset: var(--mobile-feed-topbar) 0 var(--bottom-nav-height);
        padding: 10px;
    }

    .message-conversation {
        width: 100%;
    }

    .message-composer {
        grid-template-columns: 1fr;
    }

    .message-thread-state {
        grid-column: 2;
        justify-self: start;
    }

    .profile-page-shell,
    .search-page-shell {
        width: min(100% - 20px, 680px);
        padding-top: calc(var(--mobile-feed-topbar) + 18px);
    }

    .profile-hero {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .profile-copy h1 {
        max-width: 100%;
        font-size: clamp(1.45rem, 8vw, 2.2rem);
        line-height: 1.04;
        overflow-wrap: anywhere;
    }

    .profile-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        gap: 10px;
    }

    .profile-actions button {
        width: 100%;
    }

    .search-form {
        grid-template-columns: 1fr;
    }

    .profile-myst-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .profile-myst-body {
        padding: 7px;
    }

    .profile-myst-body span {
        display: none;
    }

    .profile-myst-body strong {
        font-size: 0.72rem;
        line-height: 1.12;
    }

    .profile-myst-body p {
        display: none;
    }

    .profile-user-grid {
        grid-template-columns: 1fr;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

body.social-drawer-open,
body.account-modal-open {
    overflow: hidden;
}

a {
    color: inherit;
}

.login-page {
    min-height: 100vh;
    background:
            radial-gradient(circle at 15% 15%, rgba(139, 92, 246, 0.32), transparent 28%),
            radial-gradient(circle at 86% 18%, rgba(247, 201, 72, 0.18), transparent 30%),
            radial-gradient(circle at 52% 92%, rgba(254, 44, 85, 0.2), transparent 34%),
            linear-gradient(110deg, rgba(5, 5, 7, 0.98), rgba(9, 9, 11, 0.86));
    color: #ffffff;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
    gap: clamp(28px, 5vw, 72px);
    width: min(1180px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    padding: clamp(24px, 5vw, 56px) 0;
    align-items: center;
}

.register-shell {
    grid-template-columns: minmax(0, 0.92fr) minmax(340px, 470px);
}

.login-hero {
    display: grid;
    gap: 20px;
    max-width: 760px;
}

.login-brand {
    width: fit-content;
    padding: 0;
    color: #ffffff;
    font-size: 1.48rem;
    gap: 14px;
}

.login-brand::before {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    box-shadow:
            0 0 24px rgba(139, 92, 246, 0.64),
            0 0 52px rgba(124, 58, 237, 0.46),
            inset -10px -13px 18px rgba(0, 0, 0, 0.38),
            inset 8px 8px 16px rgba(255, 255, 255, 0.34);
}

.login-hero .eyebrow,
.login-panel .eyebrow {
    color: var(--accent-2);
}

.login-hero h1 {
    margin: 0;
    max-width: 16ch;
    font-size: clamp(2.05rem, 5.2vw, 4.35rem);
    line-height: 1.06;
    text-wrap: balance;
}

.hero-copy {
    max-width: 660px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 2vw, 1.22rem);
}

.login-how-it-works {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 720px;
    margin-top: 2px;
}

.login-how-it-works div {
    display: grid;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 13px 14px;
    background: rgba(8, 8, 12, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.login-how-it-works strong {
    color: #ffffff;
    font-size: 0.92rem;
    line-height: 1.2;
}

.login-how-it-works span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
    line-height: 1.38;
}

.login-lure {
    max-width: 34ch;
    margin: 8px 0 0;
    border-left: 2px solid rgba(254, 44, 85, 0.74);
    padding-left: 16px;
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(1.02rem, 2vw, 1.28rem);
    line-height: 1.35;
}

.auth-teaser {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    width: min(520px, 100%);
    margin-top: 4px;
    padding: 8px 0;
}

.auth-teaser.compact {
    width: min(500px, 100%);
}

.myst-orb-stage {
    position: relative;
    display: grid;
    width: clamp(86px, 12vw, 132px);
    aspect-ratio: 1;
    place-items: center;
}

.myst-orb,
.myst-orb-glow {
    position: absolute;
    border-radius: 999px;
}

.myst-orb {
    inset: 10%;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.48);
    background:
            radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.98) 0 7%, transparent 8%),
            radial-gradient(circle at 42% 36%, rgba(255, 255, 255, 0.34) 0 18%, transparent 19%),
            radial-gradient(circle at 70% 75%, rgba(254, 44, 85, 0.48), transparent 28%),
            radial-gradient(circle at 28% 78%, rgba(247, 201, 72, 0.42), transparent 24%),
            linear-gradient(135deg, #ede9fe 0%, #a78bfa 24%, #7c3aed 58%, #12091f 100%);
    box-shadow:
            0 0 26px rgba(139, 92, 246, 0.68),
            0 0 64px rgba(124, 58, 237, 0.42),
            inset -14px -18px 26px rgba(0, 0, 0, 0.42),
            inset 10px 10px 18px rgba(255, 255, 255, 0.34);
    animation: orbFloat 5.5s ease-in-out infinite;
}

.myst-orb-glow {
    inset: 18%;
    background: rgba(139, 92, 246, 0.44);
    filter: blur(28px);
    transform: translateY(20%);
    animation: orbGlow 3.8s ease-in-out infinite;
}

.auth-teaser-copy {
    display: grid;
    gap: 5px;
}

.auth-teaser-copy strong {
    color: #ffffff;
    font-size: clamp(1rem, 2vw, 1.26rem);
    line-height: 1.18;
}

.auth-teaser-copy span {
    max-width: 36ch;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.94rem;
}

.auth-feed-preview {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 0.78fr);
    gap: 14px;
    width: min(680px, 100%);
    margin-top: 10px;
    pointer-events: none;
}

.auth-feed-preview.compact {
    width: min(600px, 100%);
}

.auth-feed-preview article {
    position: relative;
    overflow: hidden;
    min-height: 176px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 18px;
    background:
            linear-gradient(160deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035) 50%, rgba(254, 44, 85, 0.1)),
            linear-gradient(24deg, rgba(7, 7, 10, 0.96), rgba(31, 14, 25, 0.76));
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.auth-feed-preview article::after {
    position: absolute;
    inset: auto 14px 14px 14px;
    height: 1px;
    background: linear-gradient(90deg, rgba(254, 44, 85, 0), rgba(254, 44, 85, 0.72), rgba(247, 201, 72, 0));
    content: "";
}

.auth-feed-preview article:nth-child(2) {
    transform: translateY(18px);
}

.auth-feed-preview span,
.auth-feed-preview strong,
.auth-feed-preview p {
    position: relative;
    z-index: 1;
}

.auth-feed-preview span {
    display: inline-flex;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(254, 44, 85, 0.58);
    padding: 0 0 4px;
    color: #fecdd3;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.auth-feed-preview strong {
    display: block;
    max-width: 24ch;
    color: #ffffff;
    font-size: clamp(1rem, 2vw, 1.22rem);
    line-height: 1.14;
}

.auth-feed-preview p {
    max-width: 32ch;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.88rem;
    line-height: 1.42;
}

@keyframes orbFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, -7px, 0) scale(1.025);
    }
}

@keyframes orbGlow {
    0%,
    100% {
        opacity: 0.64;
        transform: translateY(20%) scale(0.92);
    }
    50% {
        opacity: 0.96;
        transform: translateY(23%) scale(1.08);
    }
}

.login-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.login-proof div {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(16px);
}

.login-proof strong,
.login-proof span {
    display: block;
}

.login-proof strong {
    margin-bottom: 6px;
    color: #ffffff;
    font-size: 0.98rem;
}

.login-proof span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.84rem;
}

.moderation-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.moderation-tabs button {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 9px 16px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.72);
    font-weight: 850;
}

.moderation-tabs button.is-active {
    border-color: rgba(254, 44, 85, 0.52);
    background: rgba(254, 44, 85, 0.16);
    color: #ffffff;
}

.admin-moderation-panel[hidden] {
    display: none;
}

.moderation-submission-item {
    display: grid;
    gap: 12px;
}

.moderation-submission-media {
    overflow: hidden;
    width: min(260px, 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: #050507;
}

.moderation-submission-media img,
.moderation-submission-media video {
    display: block;
    width: 100%;
    max-height: 340px;
    object-fit: contain;
}

.login-auth-column {
    display: grid;
    gap: 14px;
    align-content: center;
}

.login-panel {
    display: grid;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: clamp(22px, 4vw, 30px);
    background:
            linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)),
            rgba(14, 14, 18, 0.9);
    color: #ffffff;
    box-shadow: 0 28px 88px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(22px);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.login-panel:has(.login-form.is-submitting) {
    border-color: rgba(167, 139, 250, 0.44);
    box-shadow:
            0 24px 80px rgba(0, 0, 0, 0.26),
            0 0 42px rgba(139, 92, 246, 0.18);
    transform: translateY(-1px);
}

.login-panel h2 {
    margin: 6px 0 0;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.08;
}

.login-form {
    gap: 14px;
}

.login-form .form-error {
    margin: 0;
}

.field-hint,
.field-error {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    line-height: 1.3;
}

.field-hint {
    color: rgba(255, 255, 255, 0.5);
}

.birth-date-picker {
    display: grid;
    grid-template-columns: minmax(72px, 0.8fr) minmax(84px, 0.9fr) minmax(98px, 1fr);
    gap: 8px;
    width: 100%;
}

.birth-date-picker select {
    min-height: 46px;
    padding-inline: 11px;
}

.age-document-guidance {
    display: grid;
    gap: 8px;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
}

.age-document-guidance strong {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.84rem;
    line-height: 1.2;
}

.age-document-guidance ul {
    display: grid;
    gap: 5px;
    margin: 0;
    padding-left: 17px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.78rem;
    line-height: 1.35;
}

@media (max-width: 420px) {
    .birth-date-picker {
        grid-template-columns: 1fr;
    }
}

.field-error {
    color: #fecdd3;
    font-weight: 780;
}

.login-form button[type="submit"] {
    position: relative;
    display: inline-grid;
    place-items: center;
    justify-self: start;
    min-width: 112px;
    min-height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 9px 18px;
    background: rgba(139, 92, 246, 0.92);
    color: #ffffff;
    font-size: 0.92rem;
    box-shadow: 0 10px 24px rgba(139, 92, 246, 0.22);
    transition: background 160ms ease, box-shadow 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.login-form button[type="submit"]:hover {
    background: rgba(167, 139, 250, 0.96);
}

.login-form.is-submitting {
    pointer-events: none;
}

.login-form.is-submitting input,
.login-form.is-submitting select {
    opacity: 0.64;
}

.login-form.is-submitting button[type="submit"] {
    min-width: 142px;
    background: rgba(139, 92, 246, 0.72);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12), 0 14px 32px rgba(139, 92, 246, 0.24);
    color: transparent;
    transform: translateY(-1px);
}

.login-form.is-submitting button[type="submit"]::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 17px;
    height: 17px;
    margin-top: -8.5px;
    margin-left: -8.5px;
    border: 2px solid rgba(255, 255, 255, 0.34);
    border-top-color: #ffffff;
    border-radius: 999px;
    content: "";
    animation: authSubmitSpin 680ms linear infinite;
}

@keyframes authSubmitSpin {
    to {
        transform: rotate(360deg);
    }
}

.register-shell .login-form button[type="submit"] {
    min-width: 132px;
}

.signup-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.035);
}

.signup-callout p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.button-link.primary {
    width: fit-content;
    border-color: var(--accent);
    background: var(--accent);
    color: var(--ink);
    box-shadow: 0 14px 34px rgba(139, 92, 246, 0.26);
}

.auth-secondary-cta {
    display: inline-grid;
    min-height: 40px;
    place-items: center;
    border-radius: 999px;
    padding: 9px 18px;
    white-space: nowrap;
}

.legal-shell {
    width: min(860px, calc(100% - 32px));
    min-height: 100dvh;
    margin: 0 auto;
    padding: clamp(28px, 6vw, 64px) 0;
}

.legal-card {
    display: grid;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: clamp(22px, 5vw, 36px);
    background:
            linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)),
            rgba(14, 14, 18, 0.92);
    color: #ffffff;
    box-shadow: 0 28px 88px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(22px);
}

.legal-card h1,
.legal-card h2,
.legal-card p {
    margin: 0;
}

.legal-card h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1;
}

.legal-card h2 {
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.legal-card p {
    color: rgba(255, 255, 255, 0.72);
}

.checkbox-line a {
    color: #ddd6fe;
    font-weight: 850;
    text-decoration: none;
}

.terms-link-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: #ddd6fe;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.terms-link-button:hover,
.terms-link-button:focus-visible {
    color: #ffffff;
    text-decoration: underline;
}

.terms-dialog {
    width: min(620px, calc(100% - 28px));
    max-height: min(760px, calc(100dvh - 28px));
    border: 0;
    border-radius: 18px;
    padding: 0;
    background: transparent;
    color: #ffffff;
}

.terms-dialog::backdrop {
    background: rgba(3, 3, 7, 0.72);
    backdrop-filter: blur(12px);
}

.terms-dialog-panel {
    position: relative;
    display: grid;
    gap: 14px;
    max-height: min(760px, calc(100dvh - 28px));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    padding: clamp(20px, 4vw, 28px);
    background:
            radial-gradient(circle at 18% 0%, rgba(139, 92, 246, 0.28), transparent 34%),
            linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
            #111018;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.5);
}

.terms-dialog-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.terms-dialog-brand strong {
    font-size: 1.3rem;
}

.mini-orb {
    position: static;
    display: inline-block;
    width: 30px;
    height: 30px;
    animation: none;
}

.terms-dialog h2,
.terms-dialog h3,
.terms-dialog p {
    margin: 0;
}

.terms-dialog h2 {
    font-size: clamp(1.7rem, 6vw, 2.5rem);
    line-height: 1;
}

.terms-dialog-content {
    display: grid;
    gap: 14px;
    max-height: min(410px, 48dvh);
    overflow: auto;
    padding-right: 6px;
}

.terms-dialog-content section {
    display: grid;
    gap: 5px;
}

.terms-dialog-content h3 {
    font-size: 1rem;
}

.terms-dialog-content p {
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.55;
}

.terms-dialog-action {
    justify-self: start;
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    background: #ffffff;
    color: #111018;
    font-weight: 850;
    cursor: pointer;
}

.subtle-link {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 740;
    text-decoration: none;
}

.form-error {
    border: 1px solid rgba(255, 45, 85, 0.35);
    border-radius: 6px;
    margin: 0;
    padding: 10px 12px;
    background: rgba(255, 45, 85, 0.12);
    color: #ffd8df;
    font-size: 0.9rem;
    font-weight: 760;
}

.form-error small {
    display: block;
    margin-top: 4px;
    color: rgba(255, 216, 223, 0.72);
    font-size: 0.76rem;
    font-weight: 620;
}

.error-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    overflow: hidden;
}

.pwa-install-button {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    width: 100%;
    border: 1px solid rgba(167, 139, 250, 0.42);
    border-radius: 12px;
    padding: 12px 14px;
    background:
            linear-gradient(135deg, rgba(139, 92, 246, 0.28), rgba(109, 40, 217, 0.12)),
            rgba(255, 255, 255, 0.055);
    color: #ffffff;
    font: inherit;
    font-weight: 880;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 16px 38px rgba(91, 33, 182, 0.24);
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.pwa-install-button[hidden] {
    display: none;
}

.pwa-install-button:hover,
.pwa-install-button:focus-visible {
    border-color: rgba(221, 214, 254, 0.72);
    background:
            linear-gradient(135deg, rgba(139, 92, 246, 0.38), rgba(109, 40, 217, 0.18)),
            rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.pwa-install-button:disabled {
    cursor: progress;
    opacity: 0.72;
    transform: none;
}

.pwa-install-icon {
    position: relative;
    display: block;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background:
            radial-gradient(circle at 35% 26%, rgba(255, 255, 255, 0.95), transparent 13%),
            radial-gradient(circle at 55% 70%, rgba(139, 92, 246, 0.88), transparent 58%),
            #15111f;
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.34);
}

.pwa-install-icon::before,
.pwa-install-icon::after {
    position: absolute;
    left: 50%;
    content: "";
    transform: translateX(-50%);
}

.pwa-install-icon::before {
    top: 8px;
    width: 3px;
    height: 13px;
    border-radius: 999px;
    background: #ffffff;
}

.pwa-install-icon::after {
    top: 17px;
    width: 11px;
    height: 11px;
    border-right: 3px solid #ffffff;
    border-bottom: 3px solid #ffffff;
    transform: translateX(-50%) rotate(45deg);
}

.error-shell {
    display: grid;
    width: min(560px, calc(100% - 32px));
    min-height: 100vh;
    place-items: center;
    padding: 32px 0;
}

.error-card {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 14px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: clamp(26px, 7vw, 48px);
    background: rgba(14, 14, 18, 0.72);
    text-align: center;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(22px);
}

.error-card::before {
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.52), transparent 36%, rgba(247, 201, 72, 0.28));
    content: "";
    opacity: 0.28;
    pointer-events: none;
}

.error-card > * {
    position: relative;
}

.error-card .login-brand {
    margin-bottom: 4px;
}

.error-orb {
    width: clamp(112px, 26vw, 160px);
}

.error-card .eyebrow {
    margin: 4px 0 0;
    color: var(--accent-2);
}

.error-code {
    color: rgba(255, 255, 255, 0.22);
    font-size: clamp(4.6rem, 18vw, 7.4rem);
    line-height: 0.78;
}

.error-card h1 {
    margin: 0;
    font-size: clamp(1.8rem, 6vw, 3.15rem);
    line-height: 0.98;
}

.error-card p:not(.eyebrow) {
    max-width: 38ch;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

.error-feed-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    margin-top: 4px;
    padding: 10px 18px;
    background: rgba(139, 92, 246, 0.9);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 820;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(139, 92, 246, 0.22);
}

.form-success {
    border: 1px solid rgba(25, 245, 216, 0.34);
    border-radius: 6px;
    margin: 0;
    padding: 10px 12px;
    background: rgba(25, 245, 216, 0.1);
    color: #c7fff7;
    font-size: 0.9rem;
    font-weight: 760;
}

.resend-code-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
}

.link-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: #d8c7ff;
    font: inherit;
    font-weight: 820;
    cursor: pointer;
}

.link-button:hover,
.link-button:focus-visible {
    color: #ffffff;
    text-decoration: underline;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(9, 9, 11, 0.82);
    padding: 0 clamp(16px, 4vw, 44px);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 17px 0;
    color: #ffffff;
    font-size: 1.12rem;
    font-weight: 920;
    letter-spacing: 0;
    text-decoration: none;
}

.brand::before {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    background:
            radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.96) 0 7%, transparent 8%),
            radial-gradient(circle at 42% 34%, rgba(255, 255, 255, 0.34) 0 16%, transparent 17%),
            radial-gradient(circle at 68% 72%, rgba(254, 44, 85, 0.44), transparent 28%),
            radial-gradient(circle at 34% 76%, rgba(247, 201, 72, 0.34), transparent 24%),
            linear-gradient(135deg, #ede9fe 0%, #8b5cf6 28%, #7c3aed 62%, #12091f 100%);
    box-shadow:
            0 0 18px rgba(139, 92, 246, 0.52),
            0 0 38px rgba(124, 58, 237, 0.36),
            inset -8px -10px 16px rgba(0, 0, 0, 0.38),
            inset 7px 7px 14px rgba(255, 255, 255, 0.3);
    content: "";
}

.topbar nav {
    align-items: center;
    display: flex;
    gap: 8px;
}

.topbar nav a,
.button-link,
.nav-logout button {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 760;
    text-decoration: none;
}

.button-link.danger {
    border-color: rgba(251, 113, 133, 0.52);
    background: rgba(251, 113, 133, 0.14);
    color: #fecdd3;
}

.nav-logout {
    display: inline-flex;
}

.app-topbar {
    min-height: 60px;
}

.app-topbar nav {
    margin-left: auto;
}

.app-topbar nav a,
.app-topbar .nav-logout button {
    border-radius: 999px;
}

.topbar .feed-tabs a {
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.66);
}

.topbar .feed-tabs a.active,
.topbar .feed-tabs a:hover {
    color: #ffffff;
}

.social-feed-page {
    overflow: hidden;
    background: var(--ink);
    opacity: 0;
    transition: opacity 180ms ease;
}

.social-feed-page.page-ready {
    opacity: 1;
}

.social-feed-page.feed-tab-leaving {
    opacity: 0;
}

.feed-topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 20;
    border-bottom: 0;
    background: linear-gradient(180deg, rgba(5, 5, 7, 0.82), transparent);
}

.app-page .feed-topbar {
    border-bottom: 0;
    background: linear-gradient(180deg, rgba(5, 5, 7, 0.82), transparent);
}

.app-page .shell,
.app-page .case-layout {
    padding-top: 78px;
    padding-bottom: 56px;
}

.feed-tabs {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.admin-page .feed-tabs {
    display: none;
}

.feed-tabs a {
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.94rem;
}

.feed-tabs a.active {
    color: #ffffff;
    text-shadow: 0 0 22px rgba(139, 92, 246, 0.5);
}

.feed-tabs a.active::after {
    display: block;
    width: 24px;
    height: 3px;
    border-radius: 999px;
    margin: 5px auto 0;
    background: #ffffff;
    content: "";
}

.feed-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.bottom-nav {
    position: fixed;
    right: 50%;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 76;
    display: none;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: min(340px, calc(100% - 28px));
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 4px;
    background: rgba(11, 11, 16, 0.78);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
    transform: translateX(50%);
}

.desktop-nav-link {
    position: relative;
    display: none;
    min-width: auto;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 0;
    background: rgba(255, 255, 255, 0.045);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.admin-nav-link {
    display: inline-flex;
    width: 34px;
    min-width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(20, 184, 166, 0.24);
    border-radius: 6px;
    padding: 0;
    background: rgba(20, 184, 166, 0.08);
    color: #ccfbf1;
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.app-topbar nav a.admin-nav-link,
.feed-actions a.admin-nav-link {
    border-radius: 6px;
}

.admin-nav-link svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.admin-nav-link:hover,
.admin-nav-link:focus-visible {
    border-color: rgba(20, 184, 166, 0.42);
    background: rgba(20, 184, 166, 0.14);
    color: #ffffff;
}

.desktop-nav-link:hover,
.desktop-nav-link:focus-visible {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.desktop-nav-link.has-notifications::after,
.desktop-nav-link.has-messages::after,
.bottom-nav-link.has-notifications::after,
.bottom-nav-link.has-messages::after {
    position: absolute;
    border-radius: 999px;
    background: #d8b4fe;
    box-shadow: 0 0 0 2px rgba(11, 11, 16, 0.92), 0 0 12px rgba(216, 180, 254, 0.72);
    content: "";
}

.desktop-nav-link.has-notifications::after,
.desktop-nav-link.has-messages::after {
    top: 5px;
    right: 7px;
    width: 7px;
    height: 7px;
}

.desktop-nav-icon {
    display: grid;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    place-items: center;
}

.desktop-nav-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.desktop-nav-icon.profile {
    border: 1px solid currentColor;
    border-radius: 999px !important;
    font-size: 0.7rem;
    font-weight: 900;
}

.desktop-nav-icon:not(:has(svg)):not(.profile),
.bottom-nav-icon:not(:has(svg)):not(.profile) {
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1;
}

.desktop-nav-link small {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.bottom-nav-link {
    position: relative;
    display: grid;
    min-width: 0;
    place-items: center;
    border-radius: 999px;
    padding: 3px;
    color: rgba(255, 255, 255, 0.76);
    text-decoration: none;
}

.bottom-nav-link:hover,
.bottom-nav-link:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.bottom-nav-link.has-notifications::after,
.bottom-nav-link.has-messages::after {
    top: 5px;
    right: calc(50% - 14px);
    width: 7px;
    height: 7px;
}

.bottom-nav-icon {
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
}

.bottom-nav-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.bottom-nav-icon.profile {
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 900;
}

.bottom-nav-link small {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.feed-actions a,
.feed-actions .nav-logout button {
    display: grid;
    min-width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 1rem;
    line-height: 1;
}

.feed-actions .nav-logout button {
    min-width: auto;
    width: auto;
    padding: 0 12px;
    font-size: 0.78rem;
    font-weight: 850;
}

.feed-actions .nav-search-icon {
    font-size: 1.42rem;
}

.feed-actions .desktop-nav-link {
    display: none;
    min-width: 34px;
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 0.82rem;
}

.feed-actions .nav-profile-link,
.feed-actions .nav-messages-link {
    position: relative;
}

.feed-actions .nav-profile-link.has-notifications::after,
.feed-actions .nav-messages-link.has-notifications::after {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #d8b4fe;
    box-shadow: 0 0 0 2px rgba(8, 8, 12, 0.92), 0 0 12px rgba(216, 180, 254, 0.72);
    content: "";
}

.admin-page .app-topbar nav a,
.admin-page .app-topbar .nav-logout button,
.admin-page .feed-actions a,
.admin-page .feed-actions .nav-logout button,
.admin-page .desktop-nav-link,
.admin-page .admin-nav-link {
    border-radius: 6px;
}

.admin-page .desktop-nav-icon.profile {
    border-radius: 4px;
}

@media (min-width: 861px) {
    .feed-actions .desktop-nav-link {
        display: inline-flex;
    }
}

.feed-shell,
.shell,
.case-layout {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: 28px 0 56px;
}

.tiktok-shell {
    position: relative;
    width: 100%;
    height: 100dvh;
    padding: 0;
    overflow: hidden;
}

.shell.narrow {
    width: min(780px, calc(100% - 28px));
}

.feed-intro {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 22px;
}

.feed-overlay-intro {
    position: fixed;
    top: 72px;
    left: clamp(16px, 4vw, 44px);
    z-index: 4;
    max-width: min(520px, calc(100vw - 32px));
    margin: 0;
    pointer-events: none;
}

.feed-overlay-intro h1 {
    font-size: clamp(1.45rem, 3vw, 2.6rem);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
}

.feed-overlay-intro p:last-child {
    max-width: 430px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.96rem;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.feed-intro h1,
.form-panel h1,
.case-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 6vw, 4.6rem);
    line-height: 1.02;
}

.feed-intro p:last-child {
    max-width: 680px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.feed-overlay-intro h1 {
    font-size: clamp(1.45rem, 3vw, 2.6rem);
}

.feed-overlay-intro p:last-child {
    max-width: 430px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.96rem;
}

.eyebrow,
.meta-row span {
    margin: 0;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.vertical-feed {
    position: absolute;
    inset: var(--feed-topbar-height) 0 0;
    display: grid;
    height: calc(100dvh - var(--feed-topbar-height));
    margin-top: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scroll-behavior: auto;
    scroll-snap-type: y mandatory;
    gap: 0;
    touch-action: pan-y;
    overflow-anchor: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 150ms ease, transform 150ms ease;
}

.vertical-feed.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
    .vertical-feed {
        touch-action: auto;
    }
}

.vertical-feed.is-programmatic-scroll {
    scroll-snap-type: none;
}

.vertical-feed.is-programmatic-scroll .case-card.is-scroll-from,
.vertical-feed.is-programmatic-scroll .case-card.is-scroll-to,
.vertical-feed .case-card.is-gesture-from,
.vertical-feed .case-card.is-gesture-to {
    backface-visibility: hidden;
    transform-origin: center center;
    will-change: transform;
}

.feed-debug-overlay {
    position: fixed;
    right: 10px;
    bottom: calc(var(--bottom-nav-height, 0px) + 10px);
    z-index: 10000;
    display: grid;
    gap: 3px;
    width: min(360px, calc(100vw - 20px));
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    padding: 10px;
    background: rgba(5, 5, 7, 0.88);
    color: rgba(255, 255, 255, 0.86);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.68rem;
    line-height: 1.25;
    pointer-events: none;
    backdrop-filter: blur(14px);
}

.feed-debug-overlay strong {
    color: #ffffff;
    font-size: 0.74rem;
}

.feed-debug-overlay span,
.feed-debug-overlay small {
    overflow-wrap: anywhere;
}

.feed-debug-overlay small {
    color: rgba(255, 255, 255, 0.62);
}

.feed-virtual-spacer {
    display: block;
    width: 100%;
    pointer-events: none;
    scroll-snap-align: none;
}

.vertical-feed.is-comments-locked {
    height: var(--comments-feed-height, calc(100dvh - var(--feed-topbar-height)));
    scroll-behavior: auto;
    scroll-snap-type: none;
}

.vertical-feed.is-comments-locked .case-card {
    height: var(--comments-feed-height, calc(100dvh - var(--feed-topbar-height)));
    min-height: var(--comments-feed-height, calc(100dvh - var(--feed-topbar-height)));
}

.vertical-feed::before {
    position: fixed;
    top: calc(var(--feed-topbar-height) + 10px);
    left: 50%;
    z-index: 18;
    width: 92px;
    height: 4px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background:
            linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.92) 42%, #a78bfa 50%, transparent 64%)
            -64px 0 / 64px 100% no-repeat,
            rgba(255, 255, 255, 0.16);
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.2);
    content: "";
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -8px) scaleX(0.72);
    transform-origin: center;
    transition: opacity 180ms ease, transform 180ms ease;
}

.vertical-feed::after {
    display: none;
}

.vertical-feed.is-refreshing-top::before {
    opacity: 0.92;
    transform: translate(-50%, 0) scaleX(1);
    animation: feedRefreshGlow 980ms ease-in-out infinite;
}

.vertical-feed.is-refreshing-top::after {
    display: none;
}

.vertical-feed::-webkit-scrollbar {
    display: none;
}

.case-card {
    position: relative;
    display: grid;
    height: calc(100dvh - var(--feed-topbar-height));
    min-height: calc(100dvh - var(--feed-topbar-height));
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: var(--ink);
    animation: feedCardIn 180ms ease both;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

@keyframes feedCardIn {
    from {
        opacity: 0.88;
    }
    to {
        opacity: 1;
    }
}

.short-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
            linear-gradient(90deg, rgba(5, 5, 7, 0.24), transparent 34%),
            linear-gradient(0deg, rgba(5, 5, 7, 0.28), transparent 42%);
    pointer-events: none;
}

.sponsored-card::after {
    background:
            linear-gradient(90deg, rgba(5, 5, 7, 0.24), transparent 34%),
            linear-gradient(0deg, rgba(5, 5, 7, 0.3), transparent 42%);
}

.case-media {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    background: #15151a;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.case-media img,
.case-media video,
.case-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.case-media > img,
.case-media > video {
    display: none;
}

.case-media > img.is-active,
.case-media > video.is-active {
    display: block;
}

.media-carousel-zone {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 3;
    width: 42%;
    border: 0;
    padding: 0;
    background: transparent !important;
    color: transparent;
    box-shadow: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-y;
    user-select: none;
}

.media-carousel-zone:hover,
.media-carousel-zone:active,
.media-carousel-zone:focus,
.media-carousel-zone:focus-visible {
    background: transparent !important;
    color: transparent;
    box-shadow: none;
    outline: 0;
}

.media-carousel-zone.previous {
    left: 0;
}

.media-carousel-zone.next {
    right: 0;
}

.media-carousel-dots {
    position: absolute;
    right: 50%;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 4;
    display: flex;
    gap: 5px;
    transform: translateX(50%);
    pointer-events: none;
}

.media-carousel-dots span {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    transition: width 160ms ease, background 160ms ease;
}

.media-carousel-dots span.active {
    width: 16px;
    background: rgba(255, 255, 255, 0.92);
}

.video-card {
    grid-template-columns: minmax(300px, 32vw) minmax(320px, 1fr) minmax(76px, 8vw);
    align-items: center;
    column-gap: clamp(18px, 3vw, 52px);
    padding: clamp(12px, 2vh, 22px) clamp(20px, 5vw, 72px);
    background:
            radial-gradient(circle at 18% 50%, rgba(139, 92, 246, 0.12), transparent 34%),
            #050507;
}

.video-card.is-portrait-video {
    padding-top: 0;
    padding-bottom: 0;
}

.video-card .case-media {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    inset: auto;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: transparent;
    clip-path: inset(0 round 12px);
    transform: translateZ(0);
}

.video-card .case-media video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    object-fit: contain;
    object-position: center center;
    clip-path: inset(0 round 12px);
    transform: translateZ(0);
}

.social-feed-page .video-card.is-portrait-video .case-media {
    justify-self: center;
    width: auto;
    height: calc(100dvh - var(--feed-topbar-height) - 34px);
    max-width: 100%;
    max-height: calc(100dvh - var(--feed-topbar-height) - 34px);
    aspect-ratio: var(--video-aspect-ratio, 9 / 16);
}

.social-feed-page .video-card.is-portrait-video .case-media video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.social-feed-page .video-card.is-landscape-video .case-media,
.social-feed-page .video-card.is-landscape-video .case-media video {
    border-radius: 12px;
    clip-path: inset(0 round 12px);
}

.social-feed-page .video-card.is-landscape-video .case-media {
    align-self: center;
    height: auto;
    max-height: calc(100dvh - var(--feed-topbar-height) - 44px);
    aspect-ratio: var(--video-aspect-ratio, 16 / 9);
}

.social-feed-page .video-card.is-landscape-video .case-media video {
    display: block;
    object-fit: contain;
}

.video-card .case-card-body {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    width: min(430px, 34vw);
    padding: 0;
    transition: opacity 520ms ease, transform 520ms ease;
}

.video-card.text-faded .case-card-body {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-10px);
}

.video-card.text-revealing .case-card-body {
    pointer-events: none;
}

@media (min-width: 861px) {
    .video-card.text-faded .case-card-body {
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }
}

.media-placeholder {
    width: 100%;
    height: 100%;
    background:
            radial-gradient(circle at 35% 30%, rgba(139, 92, 246, 0.36), transparent 34%),
            radial-gradient(circle at 70% 18%, rgba(247, 201, 72, 0.2), transparent 30%),
            linear-gradient(135deg, #15151a, #050507);
}

.no-media-card::after {
    background:
            radial-gradient(circle at 18% 22%, rgba(139, 92, 246, 0.2), transparent 34%),
            linear-gradient(0deg, rgba(5, 5, 7, 0.86), rgba(5, 5, 7, 0.2) 58%, rgba(5, 5, 7, 0.72));
}

.no-media-card {
    align-items: center;
    padding: clamp(18px, 4vh, 44px) clamp(86px, 10vw, 132px) clamp(18px, 4vh, 44px) clamp(20px, 7vw, 96px);
}

.no-media-card .case-media {
    display: none;
}

.no-media-card .case-card-body {
    align-self: center;
    width: min(780px, 100%);
    padding: 0;
}

.case-card-body {
    position: relative;
    z-index: 4;
    display: grid;
    align-self: end;
    width: min(680px, calc(100% - 108px));
    gap: 12px;
    padding: 0 0 clamp(26px, 7vh, 72px) clamp(16px, 5vw, 72px);
    pointer-events: none;
}

.case-card-body a,
.case-card-body button {
    pointer-events: auto;
}

.case-card-body footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

@media (min-width: 861px) {
    .social-feed-page .case-card:not(.video-card):not(.no-media-card) {
        grid-template-columns: minmax(300px, 32vw) minmax(320px, 1fr) minmax(76px, 8vw);
        align-items: center;
        column-gap: clamp(18px, 3vw, 52px);
        padding: 0 clamp(20px, 5vw, 72px);
        background:
                radial-gradient(circle at 18% 50%, rgba(139, 92, 246, 0.1), transparent 34%),
                #050507;
    }

    .social-feed-page .case-card:not(.video-card):not(.no-media-card) .case-media {
        position: relative;
        grid-column: 2;
        grid-row: 1;
        inset: auto;
        display: grid;
        place-items: center;
        width: 100%;
        height: calc(100dvh - var(--feed-topbar-height));
        min-height: 0;
        overflow: hidden;
        border-radius: 12px;
        background: transparent;
        clip-path: inset(0 round 12px);
        transform: translateZ(0);
    }

    .social-feed-page .case-card:not(.video-card):not(.no-media-card) .case-media img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 12px;
        object-fit: contain;
        object-position: center center;
        clip-path: inset(0 round 12px);
        transform: translateZ(0);
    }

    .social-feed-page .case-card.is-portrait-image:not(.video-card):not(.no-media-card) .case-media {
        justify-self: center;
        width: auto;
        height: calc(100dvh - var(--feed-topbar-height) - 34px);
        max-width: 100%;
        max-height: calc(100dvh - var(--feed-topbar-height) - 34px);
        aspect-ratio: var(--image-aspect-ratio, 9 / 16);
    }

    .social-feed-page .case-card.is-portrait-image:not(.video-card):not(.no-media-card) .case-media img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .social-feed-page .case-card:not(.video-card):not(.no-media-card) .case-card-body {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
        width: min(430px, 34vw);
        padding: 0;
    }
}

.meta-row,
.case-card footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.meta-row span {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 6px 9px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.case-card h2 {
    margin: 0;
    max-width: 720px;
    color: #ffffff;
    font-size: clamp(1.9rem, 5.8vw, 4.45rem);
    line-height: 1;
    text-shadow: 0 4px 28px rgba(0, 0, 0, 0.62);
}

.detail-feed-card .case-card-body h1,
.feed-investigation-header h2 {
    overflow-wrap: anywhere;
}

.case-card p,
.compact-item p,
.case-hero p {
    margin: 0;
    color: var(--muted);
}

.case-card p {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 2vw, 1.18rem);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.62);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-row span {
    border: 1px solid rgba(247, 201, 72, 0.34);
    border-radius: 999px;
    padding: 4px 8px;
    background: rgba(247, 201, 72, 0.13);
    color: #ffe38a;
    font-size: 0.78rem;
    font-weight: 820;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
}

.social-signal-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.social-signal-row span {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 5px 8px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 760;
}

.case-card footer {
    justify-content: flex-start;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    gap: 12px;
}

.case-card footer .button-link {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--ink);
    box-shadow: 0 14px 34px rgba(139, 92, 246, 0.24);
}

.short-actions {
    position: absolute;
    right: clamp(12px, 4vw, 38px);
    top: 50%;
    z-index: 5;
    display: grid;
    gap: 18px;
    transform: translateY(-50%);
}

.short-actions a,
.short-actions form,
.short-actions button {
    display: grid;
    justify-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    padding: 0;
    color: #ffffff;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.short-actions a:hover,
.short-actions a:active,
.short-actions button:hover,
.short-actions button:active,
.short-actions button:focus {
    background: transparent;
    color: #ffffff;
}

.short-actions a:focus-visible,
.short-actions button:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.72);
    outline-offset: 4px;
}

.short-actions a > span,
.short-actions button > span,
.media-mute-toggle {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: linear-gradient(145deg, rgba(18, 16, 24, 0.86), rgba(38, 31, 55, 0.7));
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.25rem;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px) saturate(0.92);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.58);
}

.media-mute-toggle {
    color: #ffffff;
    cursor: pointer;
    font-size: 0.8rem;
}

.short-actions .media-mute-toggle {
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    font-size: inherit;
    font-weight: inherit;
}

.short-actions .sound-icon {
    display: none;
}

.short-actions .sound-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.short-actions .sound-icon svg path:first-child {
    fill: currentColor;
    stroke: none;
}

.short-actions .media-mute-toggle.is-muted .sound-icon-muted,
.short-actions .media-mute-toggle:not(.is-muted) .sound-icon-on {
    display: grid;
}

.short-actions .media-mute-toggle:disabled {
    cursor: default;
    opacity: 0.34;
}

.case-media {
    position: relative;
}

.case-media video[data-autoplay-video] {
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-y;
}

.video-audio-feedback {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 8;
    display: grid;
    min-width: 128px;
    place-items: center;
    gap: 8px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(5, 5, 7, 0.66);
    color: #ffffff;
    box-shadow: 0 22px 64px rgba(0, 0, 0, 0.4), 0 0 34px rgba(139, 92, 246, 0.24);
    backdrop-filter: blur(18px) saturate(1.1);
    pointer-events: none;
    text-align: center;
    transform: translate(-50%, -50%) scale(0.82);
    animation: video-audio-feedback-in 520ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.video-audio-feedback svg {
    width: 42px;
    height: 42px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.1;
}

.video-audio-feedback svg path:first-child {
    fill: currentColor;
    stroke: none;
}

.video-audio-feedback span {
    font-size: 0.78rem;
    font-weight: 900;
}

.video-audio-feedback.is-no-audio {
    box-shadow: 0 22px 64px rgba(0, 0, 0, 0.42), 0 0 30px rgba(251, 113, 133, 0.22);
}

.video-audio-feedback.is-leaving {
    animation: video-audio-feedback-out 360ms ease forwards;
}

@keyframes video-audio-feedback-in {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.72);
    }
    58% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.06);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes video-audio-feedback-out {
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.12);
    }
}

.short-actions a:first-child > span {
    border-color: rgba(255, 255, 255, 0.18);
    background: linear-gradient(145deg, rgba(18, 16, 24, 0.86), rgba(38, 31, 55, 0.7));
    color: rgba(255, 255, 255, 0.88);
}

.case-like-toggle > span {
    position: relative;
    overflow: visible;
    color: rgba(255, 255, 255, 0.88);
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.case-like-toggle.active > span {
    border-color: rgba(250, 204, 21, 0.42);
    background: linear-gradient(145deg, rgba(88, 67, 28, 0.88), rgba(39, 31, 21, 0.78));
    color: #f5d36f;
    transform: scale(1.06);
}

.case-like-toggle {
    position: relative;
    overflow: visible;
}

.case-like-toggle.is-sparkling > span {
    animation: case-like-star-pop 640ms cubic-bezier(0.16, 1, 0.3, 1);
}

.case-like-toggle.is-sparkling > span::before,
.case-like-toggle.is-sparkling > span::after {
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.case-like-toggle.is-sparkling > span::before {
    border: 1px solid rgba(253, 224, 71, 0.76);
    box-shadow:
            0 0 18px rgba(250, 204, 21, 0.5),
            0 0 46px rgba(251, 191, 36, 0.28),
            inset 0 0 16px rgba(255, 255, 255, 0.18);
    animation: case-like-golden-ring 720ms ease-out forwards;
}

.case-like-toggle.is-sparkling > span::after {
    background:
            linear-gradient(115deg, transparent 10%, rgba(255, 255, 255, 0.86) 42%, rgba(253, 224, 71, 0.78) 50%, transparent 62%),
            radial-gradient(circle at 50% 50%, rgba(253, 224, 71, 0.72), transparent 52%);
    filter: blur(1px);
    opacity: 0;
    transform: translateX(-42%) rotate(10deg);
    animation: case-like-shine-sweep 620ms ease-out forwards;
}

@keyframes case-like-star-pop {
    0% {
        transform: scale(1.02) rotate(0deg);
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.58);
    }
    34% {
        transform: scale(1.24) rotate(-8deg);
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.88), 0 0 28px rgba(250, 204, 21, 0.8);
    }
    62% {
        transform: scale(1.1) rotate(4deg);
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.56), 0 0 22px rgba(250, 204, 21, 0.68);
    }
    100% {
        transform: scale(1.06) rotate(0deg);
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.58);
    }
}

@keyframes case-like-golden-ring {
    0% {
        opacity: 0.95;
        transform: scale(0.78);
    }
    100% {
        opacity: 0;
        transform: scale(1.38);
    }
}

@keyframes case-like-shine-sweep {
    0% {
        opacity: 0;
        transform: translateX(-52%) rotate(10deg);
    }
    28% {
        opacity: 0.72;
    }
    64% {
        opacity: 0.28;
    }
    100% {
        opacity: 0;
        transform: translateX(48%) rotate(10deg);
    }
}

.drawer-save-toggle.active > span {
    border-color: rgba(250, 204, 21, 0.42);
    background: linear-gradient(145deg, rgba(88, 67, 28, 0.88), rgba(39, 31, 21, 0.78));
    color: #f5d36f;
    transform: scale(1.06);
}

.short-actions .text-reveal-toggle {
    display: none;
}

.short-actions .text-reveal-toggle > span {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: linear-gradient(145deg, rgba(18, 16, 24, 0.86), rgba(38, 31, 55, 0.7));
    color: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px) saturate(0.92);
    font-size: 1.35rem;
    line-height: 1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.62);
}

.short-actions small {
    max-width: 72px;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
    text-shadow:
            0 1px 2px rgba(0, 0, 0, 0.72),
            0 0 6px rgba(0, 0, 0, 0.28);
}

.onboarding-shell {
    min-height: 100dvh;
    align-content: center;
}

.onboarding-panel {
    max-width: 760px;
    margin-inline: auto;
}

.onboarding-panel .case-composer-intro {
    position: static;
    margin: -8px -8px 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px;
    background: rgba(17, 15, 23, 0.82);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
    -webkit-backdrop-filter: blur(18px) saturate(0.92);
    backdrop-filter: blur(18px) saturate(0.92);
}

.interest-grid,
.quick-contribution-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.interest-grid.compact {
    gap: 8px;
}

.interest-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.interest-chip span,
.quick-contribution-actions button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.interest-chip input:checked + span,
.quick-contribution-actions button:hover {
    border-color: var(--accent);
    background: rgba(139, 92, 246, 0.16);
    color: #ffffff;
}

.profile-toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 12px 13px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    cursor: pointer;
}

.profile-toggle input {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--accent);
}

.profile-toggle span {
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.profile-toggle:has(input:checked) {
    border-color: var(--accent);
    background: rgba(139, 92, 246, 0.14);
}

.quick-contribution-actions {
    margin: 0 0 16px;
}

.feed-comments-overlay[hidden] {
    display: none;
}

.feed-investigation-overlay[hidden] {
    display: none;
}

.social-drawer-overlay[hidden] {
    display: none;
}

.account-modal-overlay[hidden] {
    display: none;
}

.feed-investigation-overlay {
    position: fixed;
    inset: var(--feed-topbar-height) 0 0;
    z-index: 70;
    display: grid;
    pointer-events: none;
}

.social-drawer-overlay {
    position: fixed;
    inset: var(--feed-topbar-height) 0 0;
    z-index: 68;
    display: grid;
    pointer-events: none;
}

.account-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 92;
    display: grid;
    padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    place-items: center;
    background: rgba(0, 0, 0, 0.56);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    backdrop-filter: blur(16px);
}

.feed-investigation-overlay.is-open {
    pointer-events: auto;
}

.social-drawer-overlay.is-open {
    pointer-events: auto;
}

.account-modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.feed-investigation-panel {
    position: relative;
    width: 100%;
    height: 100%;
    margin-left: auto;
    overflow: hidden;
    background:
            linear-gradient(180deg, rgba(10, 10, 14, 0.97), rgba(10, 10, 14, 0.93)),
            rgba(10, 10, 14, 0.94);
    box-shadow: 0 0 58px rgba(0, 0, 0, 0.44);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 180ms ease, transform 220ms ease;
    backdrop-filter: blur(20px);
}

.social-drawer-panel {
    position: relative;
    width: 100%;
    height: 100%;
    margin-left: auto;
    overflow: hidden;
    background:
            linear-gradient(180deg, rgba(10, 10, 14, 0.98), rgba(10, 10, 14, 0.94)),
            rgba(10, 10, 14, 0.95);
    box-shadow: -18px 0 58px rgba(0, 0, 0, 0.44);
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 180ms ease, transform 220ms ease;
    backdrop-filter: blur(20px);
}

.account-modal-panel {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    width: min(100%, 980px);
    height: min(920px, calc(100dvh - 28px));
    max-height: calc(100dvh - 28px);
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background:
            linear-gradient(180deg, rgba(12, 12, 17, 0.98), rgba(12, 12, 17, 0.95)),
            rgba(12, 12, 17, 0.96);
    box-shadow: 0 28px 88px rgba(0, 0, 0, 0.54);
    opacity: 0;
    transform: translateY(16px) scale(0.985);
    transition: opacity 180ms ease, transform 220ms ease;
}

.feed-investigation-overlay.is-open .feed-investigation-panel {
    opacity: 1;
    transform: translateX(0);
}

.social-drawer-overlay.is-open .social-drawer-panel {
    opacity: 1;
    transform: translateX(0);
}

.account-modal-overlay.is-open .account-modal-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.feed-investigation-content {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    height: 100%;
    min-height: 0;
}

.social-drawer-content {
    display: grid;
    height: 100%;
    min-height: 0;
}

.feed-investigation-scroll {
    min-height: 0;
    overflow: auto;
    width: 100%;
    box-sizing: border-box;
    margin-inline: 0;
    padding: 28px clamp(18px, 4vw, 44px) 72px;
    overscroll-behavior: contain;
}

.social-drawer-scroll {
    min-height: 0;
    overflow: auto;
    width: 100%;
    box-sizing: border-box;
    margin-inline: 0;
    padding: 28px clamp(18px, 4vw, 44px) 72px;
    overscroll-behavior: contain;
}

.social-drawer-loading {
    display: grid;
    height: 100%;
    place-items: center;
}

.account-modal-loading {
    display: grid;
    min-height: 320px;
    place-items: center;
}

.social-drawer-scroll > main {
    width: 100%;
}

.social-drawer-scroll .shell,
.social-drawer-scroll .profile-page-shell,
.social-drawer-scroll .search-page-shell {
    width: 100%;
    max-width: none;
    padding: 0 0 40px;
}

.account-modal-scroll {
    min-height: 0;
    overflow: auto;
    box-sizing: border-box;
    padding: 30px clamp(16px, 3vw, 34px);
    overscroll-behavior: contain;
}

.account-modal-scroll .account-shell {
    width: 100%;
    max-width: none;
    padding: 0;
}

.feed-create-scroll {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
}

.feed-create-content .case-create-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0;
}

.feed-create-content .case-composer {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
    margin: 0;
}

.feed-create-content .case-create-form,
.feed-create-content .compose-preview {
    min-width: 0;
}

.feed-create-content .compose-preview-media {
    min-height: min(58vh, 560px);
}

.feed-create-content .compose-preview-media img,
.feed-create-content .compose-preview-media video,
.feed-create-content .compose-preview-video-frame {
    width: 100%;
    height: 100%;
    max-height: min(68vh, 680px);
    object-fit: contain;
    background: rgba(0, 0, 0, 0.18);
}

.feed-create-content .compose-preview-video-frame.is-cropped {
    width: min(100%, 280px);
    height: auto;
}

.feed-investigation-header {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.feed-investigation-header small {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.76rem;
    font-weight: 850;
    text-transform: uppercase;
}

.feed-investigation-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.45rem, 4vw, 2.1rem);
    line-height: 1.02;
}

.feed-investigation-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.45;
}

.feed-investigation-posts {
    display: grid;
    gap: 12px;
}

.investigation-drawer-actions,
.social-drawer-actions,
.account-modal-actions {
    position: fixed;
    top: 50%;
    right: max(clamp(12px, 4vw, 38px), env(safe-area-inset-right));
    z-index: 72;
    display: grid;
    gap: 14px;
    transform: translateY(-50%);
}

.investigation-drawer-actions form,
.social-drawer-actions form,
.account-modal-actions form {
    display: contents;
}

.investigation-drawer-actions.short-actions a,
.investigation-drawer-actions.short-actions button,
.social-drawer-actions.short-actions a,
.social-drawer-actions.short-actions button,
.account-modal-actions.short-actions a,
.account-modal-actions.short-actions button {
    width: auto;
    min-height: auto;
}

.drawer-contribution-box {
    margin: 0 0 18px;
}

.drawer-contribution-box .inline-form {
    display: grid;
    gap: 12px;
}

.drawer-post-preview {
    margin-top: 12px;
    padding: 12px;
}

.drawer-post-preview .compose-preview-media {
    min-height: 128px;
}

.drawer-post-preview .compose-preview-media img,
.drawer-post-preview .compose-preview-media video {
    max-height: 240px;
    object-fit: contain;
}

@media (min-width: 960px) {
    .drawer-contribution-box {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
        align-items: start;
        gap: 16px;
    }

    .drawer-contribution-box .inline-form {
        min-width: 0;
    }

    .drawer-post-preview {
        margin-top: 0;
        min-width: 0;
        position: sticky;
        top: 18px;
    }
}

.drawer-report-modal[hidden] {
    display: none;
}

.drawer-report-modal {
    position: fixed;
    inset: var(--feed-topbar-height) 0 0;
    z-index: 92;
    display: grid;
    place-items: center;
    padding: 18px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
}

.drawer-report-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.drawer-report-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(10px);
}

.drawer-report-card {
    position: relative;
    width: min(460px, calc(100vw - 28px));
    max-height: min(82dvh, 620px);
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    padding: 22px;
    background: rgba(13, 14, 20, 0.97);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.52);
    color: #ffffff;
    transform: translateY(10px) scale(0.985);
    transition: transform 180ms ease;
}

.drawer-report-modal.is-open .drawer-report-card {
    transform: translateY(0) scale(1);
}

.drawer-report-card h2 {
    margin: 4px 0 8px;
}

.drawer-report-card > p:not(.eyebrow):not(.form-error) {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.7);
}

.drawer-report-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.feed-comments-overlay {
    position: fixed;
    top: var(--visual-viewport-offset-top, 0);
    right: 0;
    bottom: auto;
    left: 0;
    z-index: 80;
    display: grid;
    align-items: end;
    width: 100dvw;
    height: var(--visual-viewport-height, 100dvh);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}

.feed-comments-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.feed-comments-overlay.is-closing {
    opacity: 0;
    pointer-events: none;
}

.feed-comments-backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
    transition: opacity 220ms ease;
}

.feed-comments-sheet {
    position: relative;
    max-height: min(78dvh, 740px);
    width: min(620px, 100dvw);
    max-width: 100dvw;
    margin-inline: auto;
    overflow: hidden;
    border: 0;
    border-radius: 26px 26px 0 0;
    background: rgba(10, 12, 18, 0.96);
    box-shadow: 0 -28px 80px rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(24px);
    transform: translateY(28px) scale(0.985);
    transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms ease;
    opacity: 0.92;
    touch-action: pan-y;
    will-change: transform;
}

.feed-comments-sheet.is-dragging {
    transition: none;
}

.feed-comments-overlay.is-open .feed-comments-sheet {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.feed-comments-overlay.is-closing .feed-comments-sheet {
    transform: translateY(22px) scale(0.985);
    opacity: 0.86;
}

.feed-comments-panel-content {
    position: relative;
    display: grid;
    max-height: min(78dvh, 740px);
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.feed-comments-drag-handle {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 6;
    display: block;
    width: 96px;
    height: 34px;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: grab;
    transform: translateX(-50%);
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}

.feed-comments-drag-handle::before {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    content: "";
    transform: translateX(-50%);
}

.feed-comments-drag-handle:active {
    cursor: grabbing;
}

@media (min-width: 861px) and (pointer: fine) {
    .feed-comments-drag-handle {
        display: none;
    }
}

.feed-comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 18px 8px;
}

.feed-comments-header small {
    color: var(--accent-2);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.feed-comments-header h2 {
    max-width: 44ch;
    margin: 3px 0 0;
    overflow: hidden;
    color: #ffffff;
    font-size: 0.98rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feed-comments-header button {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: transparent;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.feed-comments-header button:hover,
.feed-comments-header button:active,
.feed-comments-header button:focus {
    background: transparent;
    color: #ffffff;
}

.feed-comment-form {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 38px;
    gap: 8px;
    align-items: center;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 9px 14px calc(18px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.feed-comment-form .reply-context {
    grid-column: 1 / -1;
}

.comment-gif-upload {
    display: grid;
    width: 44px;
    height: 38px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0;
    cursor: pointer;
    user-select: none;
}

.comment-gif-upload input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.comment-gif-upload.is-selected {
    background: rgba(168, 85, 247, 0.24);
    color: #ffffff;
}

.feed-comment-form textarea {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    max-height: 92px;
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
    font-size: 16px;
    resize: none;
}

.feed-comment-form button {
    display: grid;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: var(--accent);
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 900;
}

.feed-comments-list {
    min-height: 0;
    overflow: auto;
    padding: 2px 16px 6px;
    overscroll-behavior: contain;
}

@media (max-width: 860px) {
    .feed-comments-sheet {
        max-height: min(calc(var(--visual-viewport-height, 100dvh) - var(--mobile-device-bottom-safe, max(14px, env(safe-area-inset-bottom))) - 42px), 80dvh);
        width: 100dvw;
        margin-bottom: var(--mobile-device-bottom-safe, max(14px, env(safe-area-inset-bottom)));
        border-radius: 22px 22px 0 0;
    }

    .feed-comments-panel-content {
        max-height: min(calc(var(--visual-viewport-height, 100dvh) - var(--mobile-device-bottom-safe, max(14px, env(safe-area-inset-bottom))) - 42px), 80dvh);
    }

    .feed-comment-form {
        grid-template-columns: 42px minmax(0, 1fr) 36px;
        gap: 7px;
        padding: 8px max(10px, env(safe-area-inset-right)) 14px max(10px, env(safe-area-inset-left));
    }

    .comment-gif-upload {
        width: 42px;
        height: 36px;
    }

    .feed-comment-form button {
        width: 36px;
        min-width: 36px;
        height: 36px;
        min-height: 36px;
    }

    .feed-investigation-overlay {
        inset: var(--mobile-feed-topbar) 0 var(--mobile-overlay-bottom-reserved, max(14px, env(safe-area-inset-bottom)));
        z-index: 82;
    }

    .social-drawer-overlay {
        inset: var(--mobile-feed-topbar) 0 var(--mobile-overlay-bottom-reserved, max(14px, env(safe-area-inset-bottom)));
        z-index: 82;
    }

    .feed-investigation-panel {
        width: 100%;
    }

    .social-drawer-panel {
        width: 100%;
    }

    .feed-investigation-scroll {
        width: 100%;
        margin-inline: 0;
        padding: 18px 12px 28px;
    }

    .social-drawer-scroll {
        width: 100%;
        margin-inline: 0;
        padding: 18px 12px 28px;
    }

    .account-modal-overlay {
        padding: 0;
    }

    .account-modal-panel {
        width: 100%;
        height: 100dvh;
        max-height: none;
        min-height: 0;
        border: 0;
        border-radius: 0;
    }

    .account-modal-scroll {
        padding: 18px 12px calc(var(--bottom-nav-height) + 28px + env(safe-area-inset-bottom));
    }

    .investigation-drawer-actions,
    .social-drawer-actions,
    .account-modal-actions {
        right: max(12px, env(safe-area-inset-right));
        gap: 12px;
    }
}

.feed-comments-loading {
    padding: 28px;
    color: rgba(255, 255, 255, 0.72);
}

.feed-comments-open .vertical-feed {
    pointer-events: none;
}

.feed-comments-sheet .comment-item {
    padding: 6px 0;
}

.feed-comments-sheet .comment-item + .comment-item {
    margin-top: 2px;
}

.feed-comments-sheet .comment-content header {
    margin-bottom: 2px;
}

.feed-comments-sheet .comment-content header strong {
    font-size: 0.82rem;
}

.feed-comments-sheet .comment-item p {
    margin: 3px 0;
    font-size: 0.88rem;
    line-height: 1.32;
}

.feed-comments-sheet .comment-reactions {
    gap: 5px;
    margin-top: 5px;
}

.feed-comments-sheet .comment-reactions button,
.feed-comments-sheet .comment-reply-action {
    padding: 5px 7px;
    font-size: 0.72rem;
}

.feed-comments-sheet .comment-replies {
    margin-top: 6px;
    padding-left: 10px;
}

.feed-comments-sheet .reply-comment {
    padding: 4px 0 4px 10px;
}

.feed-comments-sheet .comment-item {
    border: 0;
    border-radius: 0;
    padding: 7px 0;
    background: transparent;
}

.feed-comments-sheet .comment-item + .comment-item {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.feed-comments-sheet .comment-content {
    gap: 4px;
}

.feed-comments-sheet .comment-content header strong {
    color: #ffffff;
    font-size: 0.82rem;
}

.feed-comments-sheet .comment-content header small {
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.72rem;
}

.feed-comments-sheet .comment-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.88rem;
    line-height: 1.32;
}

.feed-comments-sheet .comment-reactions {
    gap: 4px;
}

.feed-comments-sheet .comment-reactions button {
    border: 0;
    padding: 5px 7px;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
}

.feed-comments-sheet .comment-reactions button.active {
    background: rgba(250, 204, 21, 0.14);
    color: #facc15;
}

.feed-comments-sheet .comment-reply-action {
    width: fit-content;
    border: 0;
    padding: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.54);
    font-size: 0.72rem;
    font-weight: 750;
    cursor: pointer;
}

.feed-comments-sheet .comment-load-replies {
    width: fit-content;
    border: 0;
    padding: 2px 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
}

.feed-comments-sheet .comment-reply-action:hover,
.feed-comments-sheet .comment-reply-action:focus,
.feed-comments-sheet .comment-reply-action:active {
    background: transparent;
    color: #ffffff;
}

.feed-comments-sheet .comment-load-replies:hover,
.feed-comments-sheet .comment-load-replies:focus,
.feed-comments-sheet .comment-load-replies:active {
    background: transparent;
    color: #ffffff;
}

.feed-comments-sheet .comment-load-replies:disabled {
    color: rgba(255, 255, 255, 0.34);
    cursor: wait;
}

.feed-comments-sheet .comment-replies {
    gap: 0;
    margin-top: 6px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 10px;
}

.feed-comments-sheet .reply-comment {
    padding: 5px 0;
    background: transparent;
}

.feed-login-comment {
    display: block;
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--accent-2);
    font-weight: 850;
    text-align: center;
    text-decoration: none;
}

.case-readable #overview {
    display: none;
}

.file-picker {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px;
    background: var(--surface);
}

.file-picker.is-invalid {
    border-color: rgba(251, 113, 133, 0.72);
    background: rgba(251, 113, 133, 0.08);
    box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.1);
}

.file-picker input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-picker-button {
    border-radius: 5px;
    padding: 9px 12px;
    background: var(--accent);
    color: var(--ink);
    font-weight: 850;
}

.file-picker-name {
    overflow: hidden;
    color: var(--muted);
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-picker-error:empty {
    display: none;
}

.empty-state,
.form-panel,
.case-hero,
.content-section {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.empty-state {
    padding: 24px;
}

.feed-loader {
    display: block;
    width: 1px;
    height: 1px;
    min-height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    scroll-snap-align: none;
}

.feed-loader strong,
.feed-loader .loader-spinner {
    display: none;
}

.loader-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.18);
    border-top-color: var(--accent);
    border-radius: 999px;
    animation: spin 0.8s linear infinite;
}

.upload-overlay-open {
    overflow: hidden;
}

.upload-progress-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100dvw;
    min-height: 100dvh;
    padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    overflow: hidden;
    background:
            radial-gradient(circle at 50% 28%, rgba(139, 92, 246, 0.24), transparent 34%),
            rgba(5, 5, 7, 0.84);
    backdrop-filter: blur(18px);
}

.upload-progress-panel {
    display: grid;
    justify-items: center;
    gap: 14px;
    width: min(420px, calc(100dvw - 32px));
    max-height: calc(100dvh - 36px);
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: clamp(24px, 7vw, 38px);
    background: rgba(16, 16, 20, 0.9);
    text-align: center;
    box-shadow: 0 28px 86px rgba(0, 0, 0, 0.42);
}

.upload-progress-panel h2,
.upload-progress-panel p {
    margin: 0;
}

.upload-progress-panel h2 {
    font-size: clamp(1.35rem, 5vw, 2rem);
    line-height: 1.05;
}

.upload-progress-track {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.upload-progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), #c4b5fd);
    transition: width 160ms ease;
}

.upload-progress-overlay.is-processing .upload-progress-track span {
    width: 62%;
    animation: uploadProcessing 1.2s ease-in-out infinite alternate;
}

.upload-progress-panel strong {
    min-height: 1.2em;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.86rem;
}

.upload-error-overlay {
    position: fixed;
    inset: 0;
    z-index: 1120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: rgba(5, 5, 7, 0.74);
    opacity: 0;
    backdrop-filter: blur(16px);
    transition: opacity 160ms ease;
}

.upload-error-overlay.is-open {
    opacity: 1;
}

.upload-error-dialog {
    display: grid;
    justify-items: center;
    gap: 14px;
    width: min(390px, calc(100dvw - 32px));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 24px;
    background:
            radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.2), transparent 38%),
            rgba(16, 16, 20, 0.96);
    text-align: center;
    box-shadow: 0 28px 86px rgba(0, 0, 0, 0.44);
    transform: translateY(10px) scale(0.98);
    transition: transform 160ms ease;
}

.upload-error-overlay.is-open .upload-error-dialog {
    transform: translateY(0) scale(1);
}

.upload-error-dialog h2,
.upload-error-dialog p {
    margin: 0;
}

.upload-error-dialog h2 {
    color: #ffffff;
    font-size: 1.35rem;
    line-height: 1.12;
}

.upload-error-dialog p {
    color: rgba(255, 255, 255, 0.72);
}

.upload-error-dialog button {
    min-width: 130px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 11px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 850;
    cursor: pointer;
}

.mysts-toast {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 1250;
    max-width: min(360px, calc(100dvw - 32px));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 13px 15px;
    background:
            linear-gradient(135deg, rgba(28, 22, 44, 0.96), rgba(14, 14, 18, 0.96)),
            rgba(14, 14, 18, 0.96);
    color: #ffffff;
    font-size: 0.94rem;
    font-weight: 760;
    line-height: 1.35;
    opacity: 0;
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.4);
    transform: translateY(10px);
    transition: opacity 160ms ease, transform 180ms ease;
}

.mysts-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.confirm-dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: rgba(5, 5, 7, 0.72);
    opacity: 0;
    backdrop-filter: blur(16px);
    transition: opacity 160ms ease;
}

.confirm-dialog-overlay.is-open {
    opacity: 1;
}

.confirm-dialog {
    display: grid;
    justify-items: center;
    gap: 14px;
    width: min(390px, calc(100dvw - 32px));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 24px;
    background:
            radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.2), transparent 38%),
            rgba(16, 16, 20, 0.94);
    text-align: center;
    box-shadow: 0 28px 86px rgba(0, 0, 0, 0.44);
    transform: translateY(10px) scale(0.98);
    transition: transform 160ms ease;
}

.confirm-dialog-overlay.is-open .confirm-dialog {
    transform: translateY(0) scale(1);
}

.confirm-dialog-orb {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background:
            radial-gradient(circle at 35% 26%, rgba(255, 255, 255, 0.9), transparent 12%),
            radial-gradient(circle at 50% 70%, rgba(139, 92, 246, 0.58), transparent 55%),
            #15111f;
    box-shadow: 0 0 34px rgba(139, 92, 246, 0.26);
}

.confirm-dialog h2,
.confirm-dialog p {
    margin: 0;
}

.confirm-dialog h2 {
    color: #ffffff;
    font-size: 1.35rem;
    line-height: 1.12;
}

.confirm-dialog p {
    color: rgba(255, 255, 255, 0.7);
}

.confirm-dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    margin-top: 4px;
}

.confirm-dialog-actions button {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 11px 14px;
    color: #ffffff;
    font-weight: 850;
    cursor: pointer;
}

.confirm-dialog-actions .secondary {
    background: rgba(255, 255, 255, 0.08);
}

.confirm-dialog-actions .danger {
    border-color: rgba(251, 113, 133, 0.42);
    background: rgba(251, 113, 133, 0.16);
    color: #fecdd3;
}

body.pwa-install-modal-open {
    overflow: hidden;
}

.pwa-launch-splash {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: grid;
    place-items: center;
    background: #050507;
    opacity: 1;
    pointer-events: none;
    transition: opacity 320ms ease;
}

.pwa-launch-splash.is-done {
    opacity: 0;
}

.pwa-launch-orb {
    position: relative;
    width: clamp(92px, 22vw, 148px);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    background:
            radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.96) 0 7%, transparent 8%),
            radial-gradient(circle at 42% 34%, rgba(255, 255, 255, 0.34) 0 16%, transparent 17%),
            radial-gradient(circle at 68% 72%, rgba(254, 44, 85, 0.44), transparent 28%),
            radial-gradient(circle at 34% 76%, rgba(247, 201, 72, 0.34), transparent 24%),
            linear-gradient(135deg, #ede9fe 0%, #8b5cf6 28%, #7c3aed 62%, #12091f 100%);
    box-shadow:
            0 0 22px rgba(139, 92, 246, 0.58),
            0 0 48px rgba(124, 58, 237, 0.34),
            inset -14px -18px 26px rgba(0, 0, 0, 0.42),
            inset 10px 10px 18px rgba(255, 255, 255, 0.34);
    animation: pwaOrbIntro 520ms ease-out both, pwaOrbPulse 1.08s ease-in-out 520ms infinite;
}

@keyframes pwaOrbIntro {
    from {
        opacity: 0;
        transform: scale(0.86);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pwaOrbPulse {
    0%,
    100% {
        filter: saturate(0.96) brightness(0.92);
        transform: scale(0.985);
        box-shadow:
                0 0 16px rgba(139, 92, 246, 0.44),
                0 0 34px rgba(124, 58, 237, 0.26),
                inset -14px -18px 26px rgba(0, 0, 0, 0.42),
                inset 10px 10px 18px rgba(255, 255, 255, 0.32);
    }
    50% {
        filter: saturate(1.08) brightness(1.08);
        transform: scale(1.035);
        box-shadow:
                0 0 28px rgba(139, 92, 246, 0.66),
                0 0 58px rgba(124, 58, 237, 0.4),
                inset -14px -18px 26px rgba(0, 0, 0, 0.4),
                inset 10px 10px 18px rgba(255, 255, 255, 0.38);
    }
}

.pwa-install-modal[hidden] {
    display: none;
}

.pwa-install-modal {
    position: fixed;
    inset: 0;
    z-index: 1120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: rgba(5, 5, 7, 0.74);
    opacity: 0;
    backdrop-filter: blur(18px);
    transition: opacity 160ms ease;
}

.pwa-install-modal.is-open {
    opacity: 1;
}

.pwa-install-dialog {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 14px;
    width: min(410px, calc(100dvw - 32px));
    border: 1px solid rgba(167, 139, 250, 0.24);
    border-radius: 14px;
    padding: 24px;
    background:
            radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.24), transparent 40%),
            rgba(16, 16, 20, 0.96);
    color: #ffffff;
    text-align: center;
    box-shadow: 0 28px 86px rgba(0, 0, 0, 0.48);
    transform: translateY(10px) scale(0.98);
    transition: transform 160ms ease;
}

.pwa-install-modal.is-open .pwa-install-dialog {
    transform: translateY(0) scale(1);
}

.pwa-install-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.pwa-install-close::before,
.pwa-install-close::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
    content: "";
}

.pwa-install-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.pwa-install-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.pwa-install-dialog h2,
.pwa-install-dialog p {
    margin: 0;
}

.pwa-install-dialog h2 {
    font-size: 1.34rem;
    line-height: 1.12;
}

.pwa-install-dialog p {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.42;
}

.pwa-install-dialog ol {
    display: grid;
    gap: 9px;
    width: 100%;
    margin: 2px 0 0;
    padding: 0;
    counter-reset: pwa-step;
    list-style: none;
    text-align: left;
}

.pwa-install-dialog li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.35;
    counter-increment: pwa-step;
}

.pwa-install-dialog li::before {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.24);
    color: #ddd6fe;
    font-size: 0.82rem;
    font-weight: 900;
    content: counter(pwa-step);
}

.pwa-install-primary {
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
}

@keyframes uploadProcessing {
    from {
        transform: translateX(-42%);
    }
    to {
        transform: translateX(104%);
    }
}

.feed-end {
    display: grid;
    min-height: 38vh;
    place-items: center;
    align-content: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
    scroll-snap-align: start;
}

.feed-end a {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-weight: 820;
    text-decoration: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes feedRefreshGlow {
    0% {
        background-position: -70px 0, 0 0;
    }
    100% {
        background-position: 98px 0, 0 0;
    }
}

.feed-empty {
    display: grid;
    gap: 12px;
    align-self: center;
    justify-self: center;
    width: min(460px, calc(100% - 32px));
    text-align: center;
    place-items: center;
    padding: 24px;
}

.feed-empty strong {
    font-size: clamp(1.15rem, 3vw, 1.6rem);
    color: #ffffff;
}

.feed-empty span {
    color: rgba(255, 255, 255, 0.68);
}

.feed-empty-create {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 999px;
    padding: 0 18px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.92), rgba(236, 72, 153, 0.82));
    color: #ffffff;
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.back-link {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--accent);
    font-weight: 820;
    text-decoration: none;
}

.form-panel,
.content-section {
    padding: clamp(18px, 3vw, 28px);
}

.case-create-shell {
    width: min(980px, calc(100% - 28px));
}

.case-composer {
    display: grid;
    grid-template-columns: minmax(250px, 0.82fr) minmax(320px, 1fr);
    gap: clamp(20px, 4vw, 48px);
    align-items: start;
    background:
            radial-gradient(circle at 8% 6%, rgba(139, 92, 246, 0.18), transparent 32%),
            radial-gradient(circle at 42% 100%, rgba(247, 201, 72, 0.08), transparent 34%),
            var(--surface);
}

.case-composer-intro {
    position: sticky;
    top: 108px;
    display: grid;
    gap: 14px;
}

.case-composer-intro p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
}

.composer-status {
    display: grid;
    width: fit-content;
    gap: 4px;
    border: 1px solid rgba(139, 92, 246, 0.28);
    border-radius: 8px;
    padding: 12px 14px;
    background: rgba(139, 92, 246, 0.08);
}

.composer-status span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 820;
    text-transform: uppercase;
}

.composer-status strong {
    color: #ffffff;
}

.case-create-form {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: clamp(16px, 3vw, 24px);
    background: rgba(255, 255, 255, 0.04);
}

.composer-advanced {
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.035);
}

.composer-advanced summary {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    font-weight: 820;
}

.composer-advanced[open] {
    display: grid;
    gap: 16px;
}

.collab-toggle-field {
    cursor: pointer;
}

.collab-toggle-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.collab-toggle-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(167, 139, 250, 0.26);
    border-radius: 8px;
    padding: 14px 15px;
    background:
            linear-gradient(135deg, rgba(167, 139, 250, 0.16), rgba(217, 70, 239, 0.08)),
            rgba(255, 255, 255, 0.045);
    color: var(--text);
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.collab-toggle-copy {
    display: grid;
    gap: 4px;
}

.collab-toggle-copy strong {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.94rem;
    line-height: 1.2;
}

.collab-toggle-copy small {
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.8rem;
    line-height: 1.35;
}

.collab-toggle-switch {
    display: inline-flex;
    align-items: center;
    width: 48px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 160ms ease, border-color 160ms ease;
}

.collab-toggle-switch span {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
    transform: translateX(0);
    transition: transform 160ms ease, background 160ms ease;
}

.collab-toggle-input:checked ~ .collab-toggle-card {
    border-color: rgba(196, 181, 253, 0.54);
    background:
            linear-gradient(135deg, rgba(167, 139, 250, 0.24), rgba(217, 70, 239, 0.12)),
            rgba(255, 255, 255, 0.055);
    box-shadow: 0 10px 34px rgba(139, 92, 246, 0.16);
}

.collab-toggle-input:checked ~ .collab-toggle-card .collab-toggle-switch {
    border-color: rgba(196, 181, 253, 0.58);
    background: rgba(139, 92, 246, 0.32);
}

.collab-toggle-input:checked ~ .collab-toggle-card .collab-toggle-switch span {
    background: #c4b5fd;
    transform: translateX(20px);
}

.collab-toggle-input:focus-visible ~ .collab-toggle-card {
    outline: 2px solid rgba(167, 139, 250, 0.7);
    outline-offset: 3px;
}

.video-edit-panel {
    display: grid;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.035);
}

.video-edit-panel[hidden] {
    display: none;
}

.video-edit-panel strong {
    display: block;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.94rem;
}

.video-edit-panel small {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.8rem;
    line-height: 1.35;
}

.video-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.video-edit-grid label {
    display: grid;
    gap: 8px;
    margin: 0;
}

.video-edit-grid label > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.video-edit-grid output {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    min-width: 56px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.22);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 850;
    text-align: center;
}

.video-edit-grid input[type="range"] {
    width: 100%;
    accent-color: #c4b5fd;
}

.video-crop-toggle {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    cursor: pointer;
}

.video-crop-toggle > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.video-crop-toggle-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 13px;
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.video-crop-toggle-card strong {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.video-crop-toggle-card small {
    margin-top: 3px;
}

.video-crop-toggle-switch {
    display: inline-flex;
    align-items: center;
    width: 44px;
    height: 26px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 160ms ease, border-color 160ms ease;
}

.video-crop-toggle-switch span {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    transform: translateX(0);
    transition: transform 160ms ease, background 160ms ease;
}

.video-crop-toggle input:checked + .video-crop-toggle-card {
    border-color: rgba(196, 181, 253, 0.52);
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.18), rgba(247, 201, 72, 0.08));
    box-shadow: 0 10px 28px rgba(139, 92, 246, 0.12);
}

.video-crop-toggle.is-active .video-crop-toggle-card,
.video-crop-toggle-card.is-active {
    border-color: rgba(196, 181, 253, 0.52);
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.18), rgba(247, 201, 72, 0.08));
    box-shadow: 0 10px 28px rgba(139, 92, 246, 0.12);
}

.video-crop-toggle input:checked + .video-crop-toggle-card .video-crop-toggle-switch,
.video-crop-toggle.is-active .video-crop-toggle-switch,
.video-crop-toggle-card.is-active .video-crop-toggle-switch {
    border-color: rgba(196, 181, 253, 0.58);
    background: rgba(139, 92, 246, 0.34);
}

.video-crop-toggle input:checked + .video-crop-toggle-card .video-crop-toggle-switch span,
.video-crop-toggle.is-active .video-crop-toggle-switch span,
.video-crop-toggle-card.is-active .video-crop-toggle-switch span {
    background: #c4b5fd;
    transform: translateX(18px);
}

.video-crop-toggle input:focus-visible + .video-crop-toggle-card {
    outline: 2px solid rgba(167, 139, 250, 0.7);
    outline-offset: 3px;
}

.video-crop-stage {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 260px;
    overflow: hidden;
    border: 1px solid rgba(167, 139, 250, 0.18);
    border-radius: 8px;
    background: #050507;
    place-items: center;
}

.compose-preview-media .video-crop-stage {
    min-height: inherit;
    height: 100%;
}

.video-crop-stage[hidden] {
    display: none;
}

.video-crop-stage video {
    width: 100%;
    max-height: min(62vh, 520px);
    object-fit: contain;
}

.video-crop-box[hidden] {
    display: none;
}

.video-crop-box {
    position: absolute;
    border: 2px solid #f7c948;
    background: rgba(247, 201, 72, 0.1);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.48);
    cursor: grab;
    touch-action: none;
}

.video-crop-box:active {
    cursor: grabbing;
}

.publish-reward-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: min(1060px, calc(100% - 28px));
    margin: 0 auto 16px;
    border: 1px solid rgba(247, 201, 72, 0.24);
    border-radius: 8px;
    padding: 13px 16px;
    background: linear-gradient(135deg, rgba(247, 201, 72, 0.14), rgba(139, 92, 246, 0.12));
}

.publish-reward-banner strong {
    color: #fff7d1;
}

.publish-reward-banner span {
    color: var(--muted);
    font-size: 0.92rem;
}

.compose-preview {
    display: grid;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.case-composer .compose-preview {
    grid-column: 2;
}

.case-create-form .compose-preview {
    grid-column: auto;
}

.compose-preview-inline {
    margin: 2px 0 4px;
}

@media (min-width: 861px) {
    .case-create-form .compose-preview-media {
        min-height: clamp(360px, 58vh, 620px);
    }

    .case-create-form .compose-preview-media img,
    .case-create-form .compose-preview-media video,
    .case-create-form .compose-preview-video-frame {
        max-height: clamp(360px, 58vh, 620px);
    }
}

.compose-preview-media {
    display: grid;
    min-height: 180px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    place-items: center;
}

.compose-preview-media:empty::before {
    width: 72px;
    height: 72px;
    border: 1px solid rgba(167, 139, 250, 0.28);
    border-radius: 999px;
    background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.72), rgba(167, 139, 250, 0.22) 34%, rgba(36, 18, 69, 0.72) 70%);
    content: "";
}

.compose-preview-media img,
.compose-preview-media video {
    width: 100%;
    max-height: min(66vh, 560px);
    object-fit: contain;
}

.compose-preview-video-frame {
    position: relative;
    display: grid;
    width: 100%;
    max-height: min(66vh, 560px);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.26);
    place-items: center;
}

.compose-preview-video-frame video {
    width: 100%;
    max-height: min(66vh, 560px);
    object-fit: contain;
}

.compose-preview-video-frame.is-cropped {
    display: block;
    width: min(100%, 240px);
    max-height: min(62vh, 420px);
    aspect-ratio: 9 / 16;
    justify-self: center;
}

.compose-preview-video-frame.is-cropped video {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--preview-crop-width, 100%);
    height: var(--preview-crop-height, 100%);
    max-width: none;
    max-height: none;
    object-fit: fill;
    transform: translate(var(--preview-crop-x, 0), var(--preview-crop-y, 0));
    transform-origin: top left;
}

.compose-preview-video-controls {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 2;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 8px;
    background: rgba(5, 5, 7, 0.72);
    backdrop-filter: blur(10px);
}

.compose-preview-video-controls[hidden] {
    display: none;
}

.compose-preview-video-controls button {
    min-height: 34px;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 0.74rem;
}

.compose-preview-video-controls input[type="range"] {
    width: 100%;
    min-width: 0;
    accent-color: #c4b5fd;
}

.compose-preview-video-controls output {
    min-width: 46px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.74rem;
    font-weight: 800;
    text-align: right;
}

.compose-preview strong {
    font-size: 1.1rem;
}

.compose-preview p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
}

.tag-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border: 0;
    margin: 0;
    padding: 0;
}

.tag-picker legend {
    width: 100%;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 780;
}

.tag-picker label {
    display: inline-flex;
    width: auto;
    cursor: pointer;
}

.tag-picker input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tag-picker span {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 8px 11px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.84rem;
    font-weight: 760;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.tag-picker input:checked + span {
    border-color: rgba(167, 139, 250, 0.7);
    background: rgba(139, 92, 246, 0.24);
    color: #ffffff;
    transform: translateY(-1px);
}

.form-panel h2 {
    margin: 0;
    font-size: 1.35rem;
}

form {
    display: grid;
    gap: 16px;
}

.inline-form {
    margin-bottom: 22px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 760;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px 13px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

@media (max-width: 860px) {
    input,
    select,
    textarea {
        font-size: 16px;
    }
}

textarea {
    resize: vertical;
}

.case-create-form .tag-picker,
.case-edit-form .tag-picker {
    min-width: 0;
    max-width: 100%;
}

.case-create-form .tag-picker label,
.case-edit-form .tag-picker label {
    display: inline-flex;
    width: auto;
    min-width: 0;
    gap: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.case-create-form .tag-picker input[type="checkbox"],
.case-edit-form .tag-picker input[type="checkbox"] {
    display: none;
}

.case-create-form .tag-picker span,
.case-edit-form .tag-picker span {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.case-create-form .tag-picker input[type="checkbox"]:disabled + span,
.case-edit-form .tag-picker input[type="checkbox"]:disabled + span {
    cursor: not-allowed;
    opacity: 0.42;
}

.tag-picker .tag-picker-error {
    display: none;
    grid-column: 1 / -1;
}

.tag-picker.is-missing-required-tags .tag-picker-error {
    display: block;
}

button {
    border: 0;
    border-radius: 6px;
    padding: 13px 16px;
    background: var(--accent);
    color: var(--ink);
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

button:hover {
    background: #a78bfa;
}

.case-hero {
    display: grid;
    grid-template-columns: minmax(260px, 38%) minmax(0, 1fr);
    gap: clamp(20px, 4vw, 34px);
    overflow: hidden;
    margin-bottom: 20px;
}

.case-hero > div {
    display: grid;
    align-content: center;
    gap: 18px;
    padding: clamp(22px, 4vw, 36px);
}

.case-hero img {
    min-height: 360px;
}

.case-readable {
    width: 100%;
}

.case-readable > .readable-section,
.case-readable > .back-link {
    width: min(900px, 100%);
    margin-inline: auto;
}

.investigation-hero {
    position: relative;
    margin-bottom: 22px;
    border-bottom: 0;
}

.detail-feed-card {
    width: 100vw;
    height: calc(100dvh - var(--feed-topbar-height));
    min-height: calc(100dvh - var(--feed-topbar-height));
    margin-inline: calc(50% - 50vw);
    border-radius: 0;
}

.detail-feed-card.video-card {
    height: calc(100dvh - var(--feed-topbar-height));
    min-height: calc(100dvh - var(--feed-topbar-height));
}

.detail-feed-card.no-media-card {
    min-height: 420px;
    height: auto;
}

.detail-feed-card .investigation-media {
    min-height: 0;
}

@media (min-width: 861px) {
    .detail-feed-card:not(.video-card):not(.no-media-card) {
        grid-template-columns: minmax(300px, 32vw) minmax(320px, 1fr) minmax(76px, 8vw);
        align-items: center;
        column-gap: clamp(18px, 3vw, 52px);
        padding: 0 clamp(20px, 5vw, 72px);
    }

    .detail-feed-card:not(.video-card):not(.no-media-card) .case-card-body {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
        width: min(430px, 34vw);
        padding: 0;
    }

    .detail-feed-card:not(.video-card):not(.no-media-card) .case-media {
        position: relative;
        grid-column: 2;
        grid-row: 1;
        inset: auto;
        display: grid;
        place-items: center;
        width: 100%;
        height: calc(100dvh - var(--feed-topbar-height));
        min-height: 0;
        overflow: hidden;
        border-radius: 12px;
        background: transparent;
        clip-path: inset(0 round 12px);
        transform: translateZ(0);
    }

    .detail-feed-card:not(.video-card):not(.no-media-card) .case-media img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 12px;
        object-fit: contain;
        object-position: center center;
        clip-path: inset(0 round 12px);
        transform: translateZ(0);
    }

    .detail-feed-card.is-portrait-image:not(.video-card):not(.no-media-card) .case-media {
        justify-self: center;
        width: auto;
        height: calc(100dvh - var(--feed-topbar-height) - 34px);
        max-width: 100%;
        max-height: calc(100dvh - var(--feed-topbar-height) - 34px);
        aspect-ratio: var(--image-aspect-ratio, 9 / 16);
    }

    .detail-feed-card.is-portrait-image:not(.video-card):not(.no-media-card) .case-media img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .detail-feed-card.video-card {
        grid-template-columns: minmax(300px, 32vw) minmax(0, 1fr) minmax(76px, 8vw);
    }

    .detail-feed-card.video-card.is-portrait-video .case-media {
        justify-self: center;
        width: auto;
        height: calc(100dvh - var(--feed-topbar-height) - 34px);
        max-width: 100%;
        max-height: calc(100dvh - var(--feed-topbar-height) - 34px);
        aspect-ratio: var(--video-aspect-ratio, 9 / 16);
    }

    .detail-feed-card.video-card.is-portrait-video .case-media video {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .detail-feed-card.video-card.is-landscape-video .case-media,
    .detail-feed-card.video-card.is-landscape-video .case-media video {
        border-radius: 12px;
        clip-path: inset(0 round 12px);
    }

    .detail-feed-card.video-card.is-landscape-video .case-media {
        align-self: center;
        height: auto;
        max-height: calc(100dvh - var(--feed-topbar-height) - 44px);
        aspect-ratio: var(--video-aspect-ratio, 16 / 9);
    }

    .detail-feed-card.video-card.is-landscape-video .case-media video {
        display: block;
        object-fit: contain;
    }
}

.investigation-summary {
    color: #ffffff;
}

.investigation-summary h1 {
    margin: 0;
    font-size: clamp(1.9rem, 5.8vw, 4.45rem);
    line-height: 1;
    text-shadow: 0 4px 28px rgba(0, 0, 0, 0.62);
}

.investigation-summary p,
.lead-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1rem, 2vw, 1.12rem);
}

.investigation-actions {
    display: grid;
}

.case-readable .investigation-actions {
    position: fixed;
    top: 50%;
    right: max(14px, calc((100vw - 1180px) / 2 + 14px));
    z-index: 28;
    transform: translateY(-50%);
}

.case-readable .investigation-actions a > span,
.case-readable .investigation-actions button > span,
.case-readable .investigation-actions .media-mute-toggle > span {
    border-color: rgba(255, 255, 255, 0.2);
    background: linear-gradient(145deg, rgba(18, 16, 24, 0.9), rgba(39, 32, 55, 0.74));
    color: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.short-actions .collab-action-icon svg,
.short-actions .ad-link-action-icon svg,
.short-actions .comment-action-icon svg,
.short-actions .share-action-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.case-readable .investigation-actions small b {
    color: inherit;
    font: inherit;
}

.investigation-actions form {
    justify-items: center;
    margin: 0;
}

.moderation-tag-select {
    display: grid;
    gap: 5px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.moderation-tag-select select {
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.short-actions .inline-action-form button {
    padding: 0;
}

.investigation-actions button.active > span {
    border-color: rgba(250, 204, 21, 0.42);
    background: linear-gradient(145deg, rgba(88, 67, 28, 0.88), rgba(39, 31, 21, 0.78));
    color: #f5d36f;
}

.investigation-actions button.danger > span {
    border-color: rgba(251, 113, 133, 0.34);
    background: linear-gradient(145deg, rgba(70, 31, 41, 0.82), rgba(33, 23, 28, 0.78));
    color: #fecdd3;
}

.icon-action-link {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-weight: 900;
    text-decoration: none;
}

.report-case-link {
    color: #ff8a8a;
}

.detail-mute-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
}

.inline-action-form {
    display: inline-flex;
    gap: 0;
}

.inline-action-form button {
    padding: 10px 13px;
}

.follow-flag-action {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.48);
    font-size: 1.2rem;
    line-height: 1;
}

.follow-flag-action.active {
    border-color: rgba(139, 92, 246, 0.78);
    background: rgba(139, 92, 246, 0.18);
    color: #ffffff;
    box-shadow: 0 0 22px rgba(139, 92, 246, 0.22);
}

.readable-section {
    display: grid;
    gap: 18px;
    margin-bottom: 16px;
    scroll-margin-top: 86px;
    border-bottom: 1px solid var(--line);
    padding: clamp(20px, 4vw, 30px) 0;
    background: transparent;
}

.investigation-drawer {
    border-bottom: 1px solid var(--line);
    margin-bottom: 16px;
    padding: 0 0 12px;
}

.investigation-drawer > summary {
    display: grid;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    cursor: pointer;
    font-weight: 850;
    list-style: none;
}

.investigation-drawer > summary::-webkit-details-marker {
    display: none;
}

.investigation-drawer > summary::after {
    justify-self: end;
    margin-top: -34px;
    color: var(--accent);
    content: "+";
    font-size: 1.25rem;
    font-weight: 900;
}

.investigation-drawer[open] > summary::after {
    content: "-";
}

.investigation-drawer > summary small {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 650;
}

.investigation-drawer .readable-section {
    margin-bottom: 0;
    padding: 18px 0;
}

.investigation-drawer .section-heading h2 {
    font-size: clamp(1.1rem, 3vw, 1.45rem);
}

.section-heading {
    display: grid;
    gap: 6px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.45rem, 4vw, 2.35rem);
    line-height: 1.05;
}

.simple-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.compact-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.compact-stats div {
    padding: 12px;
}

.pill-link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-weight: 850;
    text-decoration: none;
}

.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ad-admin-item h3 {
    margin-bottom: 4px;
}

.ad-report-link {
    margin: 2px 0 8px;
}

.ad-report-modal[hidden] {
    display: none;
}

.ad-report-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
}

.ad-report-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.ad-report-card {
    position: relative;
    display: grid;
    max-width: 420px;
    gap: 12px;
    transform: translateY(10px);
    transition: transform 160ms ease;
}

.ad-report-modal.is-open .ad-report-card {
    transform: translateY(0);
}

.ad-report-language-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.age-document-modal[hidden] {
    display: none;
}

.age-document-modal {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: grid;
    place-items: center;
    padding: max(18px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
}

.age-document-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.age-document-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 7, 0.78);
    backdrop-filter: blur(14px);
}

.age-document-panel {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
    width: min(1080px, calc(100dvw - 28px));
    height: min(88dvh, 860px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 16px;
    background: rgba(14, 15, 20, 0.96);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
    transform: translateY(10px) scale(0.985);
    transition: transform 160ms ease;
}

.age-document-modal.is-open .age-document-panel {
    transform: translateY(0) scale(1);
}

.age-document-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.age-document-header h2,
.age-document-header p {
    margin: 0;
}

.age-document-header h2 {
    color: #ffffff;
    font-size: 1.15rem;
    line-height: 1.2;
}

.age-document-header p:not(.eyebrow) {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.age-document-frame {
    display: grid;
    min-height: 0;
    place-items: center;
    overflow: auto;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.34);
}

.age-document-frame img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.inline-admin-form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px;
    margin: 4px 0 6px;
}

.inline-admin-form label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 750;
}

.inline-admin-form input {
    min-height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.inline-admin-form button {
    min-height: 40px;
    border: 0;
    border-radius: 8px;
    padding: 0 13px;
    background: var(--accent);
    color: #050507;
    font-weight: 850;
}

.simple-stats div {
    border-left: 3px solid var(--accent);
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
}

.simple-stats strong,
.simple-stats span {
    display: block;
}

.simple-stats strong {
    color: #ffffff;
    font-size: 1.7rem;
    line-height: 1;
}

.admin-moderation-panel.is-soft-refreshing {
    opacity: 0.96;
    transition: opacity 160ms ease;
}

.simple-stats span {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.9rem;
}

.evidence-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.evidence-group {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.evidence-group.counter {
    background: rgba(247, 201, 72, 0.08);
}

.evidence-group h3,
.evidence-item h4 {
    margin: 0;
}

.evidence-item {
    border-color: rgba(255, 255, 255, 0.1);
}

.inline-media-preview {
    width: 100%;
    max-height: min(68vh, 620px);
    border-radius: 8px;
    object-fit: contain;
    background: var(--ink);
}

.contribution-post video.inline-media-preview {
    display: block;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 10px;
}

.contribution-post img.inline-media-preview {
    display: block;
    max-width: 100%;
    margin: 0 auto;
}

.timeline-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline-list li {
    display: grid;
    gap: 6px;
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
}

.timeline-list time,
.timeline-list a {
    color: var(--muted);
    font-size: 0.88rem;
}

.contribution-box {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
}

.contribution-box summary {
    cursor: pointer;
    color: #ffffff;
    font-weight: 850;
}

.contribution-box form,
.contribution-box .button-link {
    margin-top: 16px;
}

.contribution-stream-section {
    gap: 20px;
}

.social-contribution-actions {
    justify-content: flex-start;
}

.social-contribution-box {
    width: min(720px, calc(100% - 92px));
}

.social-contribution-box h3 {
    margin: 0 0 14px;
    font-size: 1.02rem;
}

.contribution-stream {
    display: grid;
    gap: 12px;
}

.contribution-post {
    display: grid;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: clamp(14px, 3vw, 18px);
    background: rgba(255, 255, 255, 0.045);
}

.contribution-post header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 760;
}

.contribution-report-trigger {
    display: inline-flex;
    width: 32px;
    height: 32px;
    min-width: 32px;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(251, 113, 133, 0.42);
    border-radius: 999px;
    padding: 0;
    background: rgba(251, 113, 133, 0.14);
    color: #fecdd3;
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    flex-shrink: 0;
}

.contribution-report-trigger:hover,
.contribution-report-trigger:focus-visible {
    border-color: rgba(251, 113, 133, 0.72);
    background: rgba(251, 113, 133, 0.22);
    color: #fff1f2;
    outline: none;
}

.contribution-post header > span {
    border: 1px solid rgba(167, 139, 250, 0.22);
    border-radius: 999px;
    padding: 5px 9px;
    background: rgba(139, 92, 246, 0.12);
    color: rgba(255, 255, 255, 0.84);
}

.contribution-post header a {
    color: rgba(255, 255, 255, 0.74);
    text-decoration: none;
}

.contribution-post h3 {
    margin: 0;
    font-size: clamp(1.05rem, 3vw, 1.3rem);
}

.contribution-post p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.text-file-note {
    border-radius: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.06);
}

.comment-form {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
}

.reply-context {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 10px;
    border-radius: 999px;
    padding: 6px 9px;
    background: rgba(139, 92, 246, 0.14);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.8rem;
    font-weight: 750;
}

.reply-context[hidden] {
    display: none;
}

.reply-context button {
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: transparent;
    color: currentColor;
    line-height: 1;
}

.comment-gif {
    display: block;
    width: min(220px, 100%);
    max-height: 220px;
    object-fit: contain;
    border-radius: 12px;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: end;
    min-height: 44px;
}

.checkbox-line input {
    width: auto;
}

.status-vote-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.status-vote-form button {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    text-align: left;
}

.status-vote-form button strong {
    min-width: 30px;
    border-radius: 999px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.82rem;
    text-align: center;
}

.status-vote-form button.active {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--ink);
}

.status-vote-form button.active strong {
    background: rgba(0, 0, 0, 0.18);
    color: var(--ink);
}

.comments-list {
    display: grid;
    gap: 10px;
}

.comment-sort-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.comment-sort-tabs button {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 13px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.comment-sort-tabs button.active {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--ink);
}

.comment-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.comment-live-new {
    animation: liveCommentIn 360ms ease both;
}

@keyframes liveCommentIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reddit-comment {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.comment-score {
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 2px;
    border-right: 1px solid var(--line);
    padding-right: 12px;
    color: var(--muted);
}

.comment-score strong {
    color: #ffffff;
    font-size: 1.2rem;
}

.comment-score span {
    font-size: 0.72rem;
}

.comment-content {
    display: grid;
    gap: 10px;
}

.comment-content header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.comment-report-trigger {
    display: inline-flex;
    width: 26px;
    height: 26px;
    min-width: 26px;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(251, 113, 133, 0.38);
    border-radius: 999px;
    padding: 0;
    background: rgba(251, 113, 133, 0.1);
    color: #fecdd3;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.comment-report-trigger:hover,
.comment-report-trigger:focus-visible {
    border-color: rgba(251, 113, 133, 0.68);
    background: rgba(251, 113, 133, 0.2);
    color: #fff1f2;
    outline: none;
}

.comment-content header small {
    color: var(--muted);
}

.comment-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.comment-reactions form {
    display: inline-flex;
}

.comment-reactions button {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 9px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 0.82rem;
}

.comment-reactions button.active {
    border-color: rgba(250, 204, 21, 0.42);
    background: rgba(250, 204, 21, 0.16);
    color: #facc15;
}

.comment-reply-action {
    width: fit-content;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
}

.comment-load-replies {
    width: fit-content;
    border: 0;
    padding: 2px 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.comment-reply-action:hover,
.comment-reply-action:focus,
.comment-reply-action:active {
    background: transparent;
    color: #ffffff;
}

.comment-load-replies:hover,
.comment-load-replies:focus,
.comment-load-replies:active {
    background: transparent;
    color: #ffffff;
}

.comment-load-replies:disabled {
    color: rgba(255, 255, 255, 0.38);
    cursor: wait;
}

.comment-replies {
    display: grid;
    gap: 8px;
    margin-top: 4px;
    border-left: 2px solid var(--line);
    padding-left: 12px;
}

.reply-comment {
    border-radius: 6px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.035);
}

.comments-loader {
    padding: 18px;
    color: var(--muted);
    text-align: center;
}

.comment-item p {
    margin: 6px 0 0;
    color: var(--muted);
}

.empty-state.small {
    padding: 14px;
    color: var(--muted);
}

.case-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 20px;
    align-items: start;
}

.case-main,
.case-side {
    display: grid;
    gap: 20px;
}

.content-section h2 {
    margin: 0 0 16px;
    font-size: 1.1rem;
}

.content-section.counter {
    background: var(--danger-soft);
}

.compact-item {
    display: grid;
    gap: 7px;
    border-top: 1px solid var(--line);
    padding: 14px 0;
}

.compact-item.critical-item {
    border-color: rgba(251, 113, 133, 0.48);
    border-radius: 8px;
    padding-inline: 12px;
    background: rgba(251, 113, 133, 0.08);
}

.moderation-priority {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 4px 9px;
    background: rgba(251, 113, 133, 0.18);
    color: #fecdd3;
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.compact-item:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.compact-item h3 {
    margin: 0;
    font-size: 1rem;
}

.compact-item time,
.compact-item a,
.case-hero small {
    color: var(--muted);
    font-size: 0.86rem;
}

.account-shell {
    display: grid;
    gap: 20px;
}

.account-header {
    display: flex;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    padding: 12px 0 24px;
}

.account-header img,
.account-avatar-fallback {
    width: 82px;
    height: 82px;
    border-radius: 999px;
}

.account-header img {
    object-fit: cover;
}

.account-avatar-fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--ink);
    font-size: 2rem;
    font-weight: 900;
}

.account-header h1,
.account-header p {
    margin: 0;
}

.account-header h1 {
    font-size: clamp(2rem, 5vw, 3.7rem);
    line-height: 1;
}

.account-header p:last-child {
    margin-top: 8px;
    color: var(--muted);
}

.account-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 18px;
    align-items: start;
}

.account-feed-panel {
    grid-column: 1 / -1;
}

.account-feed-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 18px;
    align-items: start;
}

.account-feed-columns h3 {
    margin: 0 0 10px;
    font-size: 0.95rem;
}

@media (max-width: 860px) {
    :root {
        --mobile-device-bottom-safe: max(14px, env(safe-area-inset-bottom));
        --mobile-feed-bottom-reserved: var(--mobile-device-bottom-safe);
        --mobile-overlay-bottom-reserved: var(--mobile-device-bottom-safe);
        --mobile-feed-usable-height: calc(var(--visual-viewport-height, 100dvh) - var(--mobile-feed-topbar) - var(--mobile-feed-bottom-reserved));
        --mobile-feed-media-height: var(--mobile-feed-usable-height);
    }

    .topbar {
        align-items: center;
        gap: 8px;
        padding-bottom: 8px;
    }

    .app-topbar nav {
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .app-topbar .feed-tabs {
        width: 100%;
        margin-left: 0;
    }

    .app-topbar .feed-actions {
        width: auto;
        margin-left: 0;
    }

    .app-topbar nav::-webkit-scrollbar {
        display: none;
    }

    .case-card,
    .case-hero,
    .investigation-hero,
    .case-columns,
    .account-grid,
    .case-composer,
    .video-edit-grid,
    .form-grid,
    .login-shell,
    .login-how-it-works,
    .login-proof,
    .evidence-groups,
    .simple-stats {
        grid-template-columns: 1fr;
    }

    .account-feed-panel {
        grid-column: auto;
    }

    .account-feed-columns {
        grid-template-columns: 1fr;
    }

    .auth-feed-preview {
        grid-template-columns: 1fr;
    }

    .auth-feed-preview article:nth-child(2) {
        transform: none;
    }

    .signup-callout {
        align-items: stretch;
        flex-direction: column;
    }

    .auth-secondary-cta {
        width: fit-content;
    }

    .status-vote-form {
        grid-template-columns: 1fr;
    }

    .reddit-comment {
        grid-template-columns: 1fr;
    }

    .comment-score {
        justify-items: start;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 0 0 8px;
    }

    .readable-section {
        scroll-margin-top: 76px;
    }

    .case-composer-intro {
        position: static;
    }

    .case-composer .compose-preview {
        grid-column: auto;
    }

    .feed-create-content .case-composer {
        grid-template-columns: 1fr;
    }

    .feed-create-content .compose-preview {
        grid-column: auto;
    }

    .feed-create-content .compose-preview-media {
        min-height: min(72vh, 520px);
    }

    .feed-create-content .compose-preview-media img,
    .feed-create-content .compose-preview-media video,
    .feed-create-content .compose-preview-video-frame {
        max-height: min(72vh, 520px);
    }

    .login-shell {
        align-items: start;
        min-height: auto;
    }

    .case-card {
        min-height: auto;
    }

    .case-media,
    .case-hero img {
        min-height: 240px;
    }

    .social-feed-page .topbar,
    .app-page .feed-topbar {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        min-height: var(--mobile-feed-topbar);
        gap: 4px;
        padding: 4px 8px;
    }

    .social-feed-page .topbar nav a,
    .app-page .feed-topbar nav a {
        padding: 5px 6px;
        font-size: 0.74rem;
    }

    .social-feed-page .nav-logout button,
    .app-page .nav-logout button {
        min-width: 28px;
        height: 28px;
        padding: 5px 6px;
        font-size: 0.74rem;
    }

    .feed-tabs {
        position: absolute;
        left: 50%;
        order: initial;
        width: auto;
        justify-content: center;
        transform: translateX(-50%);
    }

    .app-page .feed-topbar {
        display: flex;
        width: 100%;
        max-width: 100vw;
        overflow: visible;
    }

    .app-page .feed-topbar .brand {
        flex: 0 0 auto;
        width: auto;
        min-width: 0;
        max-width: none;
        overflow: visible;
        padding: 0 4px 0 0;
        font-size: 0.94rem;
        white-space: nowrap;
    }

    .feed-actions {
        gap: 3px;
        margin-left: 0;
    }

    .desktop-nav-link {
        display: none;
    }

    .admin-nav-link {
        width: 30px;
        min-width: 30px;
        height: 30px;
        padding: 0;
        font-size: 0.7rem;
    }

    .bottom-nav {
        display: grid;
    }

    .feed-actions a {
        min-width: 32px;
        height: 32px;
        padding: 0 7px;
        font-size: 1.02rem;
    }

    .app-page .feed-actions {
        display: flex;
        min-width: 0;
        max-width: 44vw;
        margin-left: auto;
        justify-content: flex-end;
        overflow: visible;
        scrollbar-width: none;
    }

    .app-page .feed-actions::-webkit-scrollbar {
        display: none;
    }

    .app-page .feed-actions a,
    .app-page .feed-actions .nav-logout button {
        width: auto;
        min-width: 30px;
        height: 30px;
        padding: 0 7px;
        font-size: 0.7rem;
    }

    .app-page .feed-tabs {
        position: absolute;
        left: 50%;
        display: flex;
        width: auto;
        max-width: 42vw;
        justify-content: center;
        gap: 4px;
        transform: translateX(-50%);
    }

    .app-page .feed-tabs a {
        padding: 4px 5px;
        font-size: 0.72rem;
        white-space: nowrap;
    }

    .brand {
        gap: 5px;
        font-size: 0.94rem;
    }

    .brand::before {
        width: 22px;
        height: 22px;
        flex-basis: 22px;
    }

    .app-page .shell,
    .app-page .case-layout {
        padding-top: calc(var(--mobile-feed-topbar) + 24px);
        padding-bottom: calc(var(--bottom-nav-height) + 22px + env(safe-area-inset-bottom));
    }

    .feed-overlay-intro {
        top: 62px;
    }

    .feed-overlay-intro h1 {
        font-size: 1.32rem;
    }

    .feed-overlay-intro p:last-child {
        display: none;
    }

    .social-feed-page .tiktok-shell {
        height: 100dvh;
    }

    .social-feed-page .vertical-feed {
        height: var(--mobile-feed-usable-height);
    }

    .social-feed-page .vertical-feed {
        inset: var(--mobile-feed-topbar) 0 var(--mobile-feed-bottom-reserved);
        margin-top: 0;
    }

    .social-feed-page .case-card {
        height: var(--mobile-feed-usable-height);
        min-height: var(--mobile-feed-usable-height);
    }

    .detail-feed-card,
    .detail-feed-card.video-card {
        width: 100vw;
        height: var(--mobile-feed-usable-height);
        min-height: var(--mobile-feed-usable-height);
        margin-inline: calc(50% - 50vw);
        border-radius: 0;
    }

    .detail-feed-card .case-media {
        min-height: 100%;
    }

    .social-contribution-box {
        width: 100%;
    }

    .social-feed-page .case-media {
        min-height: 100%;
    }

    .social-feed-page .case-card:not(.video-card):not(.no-media-card) .case-media,
    .detail-feed-card:not(.video-card):not(.no-media-card) .case-media {
        position: absolute;
        inset: 0 0 auto;
        width: 100%;
        height: var(--mobile-feed-media-height);
        max-height: var(--mobile-feed-media-height);
        min-height: 0;
        display: grid;
        place-items: center;
        background: #050507;
    }

    .social-feed-page .case-card:not(.video-card):not(.no-media-card) .case-media img,
    .detail-feed-card:not(.video-card):not(.no-media-card) .case-media img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center center;
        background: #050507;
    }

    .video-card .case-media {
        position: absolute;
        grid-column: auto;
        grid-row: auto;
        inset: 6px 6px auto;
        width: calc(100% - 12px);
        height: calc(var(--mobile-feed-media-height) - 12px);
        max-height: calc(var(--mobile-feed-media-height) - 12px);
        overflow: hidden;
        border-radius: 14px;
        clip-path: inset(0 round 14px);
        background: #050507;
    }

    .video-card .case-media video {
        width: 100%;
        height: 100%;
        border-radius: 14px;
        object-fit: cover;
        clip-path: inset(0 round 14px);
        transform: translateZ(0);
    }

    .video-card.is-portrait-video .case-media video {
        object-fit: contain;
        object-position: center center;
    }

    .detail-feed-card.video-card.is-landscape-video .case-media {
        display: grid;
        place-items: center;
        height: var(--mobile-feed-media-height);
        max-height: var(--mobile-feed-media-height);
        overflow: hidden;
        border-radius: 14px;
        clip-path: inset(0 round 14px);
        background: #050507;
    }

    .detail-feed-card.video-card.is-landscape-video .case-media video {
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: 100%;
        border-radius: 14px;
        object-fit: contain;
        object-position: center center;
        clip-path: inset(0 round 14px);
    }

    .social-feed-page .video-card.is-portrait-video .case-media,
    .detail-feed-card.video-card.is-portrait-video .case-media {
        height: var(--mobile-feed-media-height);
        max-height: var(--mobile-feed-media-height);
    }

    .case-card-body {
        width: calc(100% - 92px);
        padding-left: 16px;
        padding-bottom: calc(var(--bottom-nav-height) + 70px + env(safe-area-inset-bottom));
    }

    .no-media-card {
        padding: 0 86px 0 16px;
    }

    .no-media-card .case-card-body {
        align-self: center;
        width: 100%;
        padding: 0;
    }

    .video-card .case-card-body {
        align-self: end;
        width: calc(100% - 92px);
        padding: 0 0 calc(var(--bottom-nav-height) + 70px + env(safe-area-inset-bottom)) 16px;
    }

    .media-carousel-dots {
        bottom: calc(var(--bottom-nav-height) + 14px + env(safe-area-inset-bottom));
    }

    .case-card h2 {
        max-width: min(100%, 340px);
        font-size: clamp(1.22rem, 6.4vw, 2.05rem);
        line-height: 1.04;
    }

    .case-card p {
        max-width: min(100%, 320px);
        font-size: 0.88rem;
        line-height: 1.32;
    }

    .meta-row span,
    .tag-row span,
    .case-card footer a {
        font-size: 0.72rem;
    }

    .tag-row {
        gap: 5px;
    }

    .short-actions {
        right: 12px;
        gap: 14px;
    }

    .short-actions a > span,
    .short-actions button > span,
    .media-mute-toggle {
        width: 46px;
        height: 46px;
    }

    .short-actions .media-mute-toggle {
        width: auto;
        height: auto;
    }

    .video-card .text-reveal-toggle {
        display: grid;
    }

    .short-actions .text-reveal-toggle > span {
        width: 46px;
        height: 46px;
    }
}
