:root {
    --navy: #0b3d91;
    --red: #bf0a30;
    --cream: #fff7ef;
    --white: #ffffff;
    --ink: #14213d;
    --slate: #5b6b8a;
    --line: rgba(11, 61, 145, 0.14);
    --shadow: 0 20px 45px rgba(11, 61, 145, 0.12);
    --shadow-soft: 0 12px 30px rgba(15, 38, 89, 0.12);
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --app-topbar-height: calc(var(--safe-top) + 3.7rem);
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --radius-card: 24px;
    --radius-control: 14px;
    --motion-fast: 140ms;
    --motion-medium: 220ms;
    --motion-spring: cubic-bezier(0.2, 0.9, 0.2, 1.18);
}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
    min-height: 100%;
    background: #eef4ff;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-width: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(191, 10, 48, 0.14), transparent 30%),
        radial-gradient(circle at top right, rgba(11, 61, 145, 0.16), transparent 25%),
        linear-gradient(180deg, #f7faff 0%, #eef4ff 55%, #fff7ef 100%);
    transition: opacity 180ms ease, transform 180ms ease;
}

body.app-body {
    height: 100dvh;
    overflow: hidden;
    padding-bottom: 0;
    width: 100%;
    max-width: 100vw;
}

body.page-is-transitioning {
    opacity: 1;
    transform: none;
}

body.page-is-transitioning main.content::after {
    opacity: 1;
}

main.content {
    position: relative;
}

main.content::after {
    content: "";
    position: fixed;
    left: 50%;
    top: calc(var(--app-topbar-height) + 0.8rem);
    z-index: 80;
    width: min(13rem, 54vw);
    height: 0.28rem;
    border-radius: 999px;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%);
    background: linear-gradient(90deg, rgba(11, 61, 145, 0), rgba(11, 61, 145, 0.64), rgba(191, 10, 48, 0.5), rgba(11, 61, 145, 0));
    background-size: 200% 100%;
    box-shadow: 0 8px 24px rgba(11, 61, 145, 0.18);
    transition: opacity var(--motion-fast) ease;
    animation: routeLoadingBar 0.82s linear infinite;
}

.screen-swap-enter {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: var(--shadow);
    }
    50% {
        box-shadow: 0 16px 40px rgba(11, 61, 145, 0.18);
    }
}

@keyframes routeLoadingBar {
    from {
        background-position: 140% 0;
    }
    to {
        background-position: -60% 0;
    }
}

@keyframes bubblyIn {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }
    72% {
        opacity: 1;
        transform: translateY(-2px) scale(1.012);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

body.guest-body {
    color: var(--white);
    background:
        radial-gradient(circle at top left, rgba(191, 10, 48, 0.3), transparent 28%),
        radial-gradient(circle at bottom left, rgba(11, 61, 145, 0.24), transparent 34%),
        linear-gradient(180deg, #090b12 0%, #050608 100%);
}

body.dark-mode {
    color: #eef4ff;
    background:
        radial-gradient(circle at top left, rgba(191, 10, 48, 0.18), transparent 26%),
        radial-gradient(circle at top right, rgba(11, 61, 145, 0.24), transparent 24%),
        linear-gradient(180deg, #0b1020 0%, #0a132b 52%, #121118 100%);
}

body.dark-mode,
html:has(body.dark-mode) {
    background: #0b1020;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 140ms ease, transform 140ms ease;
}

img {
    max-width: 100%;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

html,
body,
main,
.content,
.app-content,
.feed-list,
.profile-feed-list,
.messages-layout,
.conversation-log {
    scrollbar-width: none;
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--navy), #1e5cc8);
    color: var(--white);
    min-height: 46px;
    padding: 0.8rem 1.25rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform 160ms ease, box-shadow 180ms ease, background-color 180ms ease, color 160ms ease, border-color 180ms ease, opacity 160ms ease;
}

button:hover,
.button:hover,
button:focus-visible,
.button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(20, 33, 61, 0.16);
}

button:active,
.button:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 8px 18px rgba(20, 33, 61, 0.12);
}

.button.ghost,
.actions button,
.action-link,
summary {
    background: rgba(11, 61, 145, 0.08);
    color: var(--navy);
    box-shadow: none;
    border: 1px solid rgba(11, 61, 145, 0.08);
}

summary {
    list-style: none;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 180ms ease;
}

summary::-webkit-details-marker {
    display: none;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    padding: 0.82rem 0.95rem;
    background: var(--white);
    font: inherit;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: rgba(11, 61, 145, 0.24);
    box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.08);
}

input[type="file"] {
    padding: 0.55rem 0.7rem;
    background: rgba(255, 255, 255, 0.9);
}

input[type="file"]::file-selector-button {
    margin-right: 0.8rem;
    border: 0;
    border-radius: 999px;
    background: rgba(11, 61, 145, 0.1);
    color: var(--navy);
    padding: 0.6rem 0.9rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.18rem;
    height: 1.18rem;
    min-width: 1.18rem;
    flex: 0 0 1.18rem;
    margin: 0;
    padding: 0;
    border: 1.5px solid rgba(11, 61, 145, 0.2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(235, 241, 255, 0.92));
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.88), 0 2px 6px rgba(11, 61, 145, 0.08);
    display: inline-grid;
    place-content: center;
    vertical-align: middle;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
}

input[type="checkbox"] {
    border-radius: 0.42rem;
}

input[type="radio"] {
    border-radius: 50%;
}

input[type="checkbox"]:hover,
input[type="radio"]:hover {
    border-color: rgba(11, 61, 145, 0.34);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.88), 0 4px 10px rgba(11, 61, 145, 0.12);
}

input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
    outline: none;
    border-color: rgba(11, 61, 145, 0.42);
    box-shadow: 0 0 0 4px rgba(11, 61, 145, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.82);
}

input[type="checkbox"]:checked {
    border-color: rgba(11, 61, 145, 0.82);
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.3 6.45 11.4 12.8 4.95' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/0.82rem 0.82rem no-repeat,
        linear-gradient(135deg, #0b3d91, #2d66d4);
    box-shadow: 0 6px 14px rgba(11, 61, 145, 0.2);
}

input[type="radio"]:checked {
    border-color: rgba(11, 61, 145, 0.82);
    background:
        radial-gradient(circle at center, #0b3d91 0 36%, transparent 37%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(235, 241, 255, 0.92));
    box-shadow: 0 6px 14px rgba(11, 61, 145, 0.16);
}

label:has(> input[type="checkbox"]),
label:has(> input[type="radio"]) {
    display: flex;
    align-items: flex-start;
    gap: 0.68rem;
    line-height: 1.35;
    cursor: pointer;
}

label > input[type="checkbox"],
label > input[type="radio"] {
    margin-top: 0.12rem;
}

body.dark-mode input[type="checkbox"],
body.dark-mode input[type="radio"] {
    border-color: rgba(127, 164, 255, 0.24);
    background: linear-gradient(180deg, rgba(25, 37, 68, 0.98), rgba(18, 29, 55, 0.92));
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.04), 0 2px 8px rgba(5, 10, 24, 0.28);
}

body.dark-mode input[type="checkbox"]:hover,
body.dark-mode input[type="radio"]:hover {
    border-color: rgba(127, 164, 255, 0.42);
}

body.dark-mode input[type="radio"]:checked {
    background:
        radial-gradient(circle at center, #7fa4ff 0 36%, transparent 37%),
        linear-gradient(180deg, rgba(25, 37, 68, 0.98), rgba(18, 29, 55, 0.92));
}

body.dark-mode label:has(> input[type="checkbox"]),
body.dark-mode label:has(> input[type="radio"]) {
    color: #eef4ff;
}

textarea {
    resize: vertical;
}

.page-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    max-width: 1540px;
    min-height: 100dvh;
    margin: 0 auto;
    padding: var(--app-topbar-height) 1rem calc(1rem + var(--safe-bottom));
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
}

.app-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 55;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: calc(var(--safe-top) + 0.35rem) 1rem 0.35rem;
    backdrop-filter: blur(8px);
    background: linear-gradient(180deg, rgba(247, 250, 255, 0.92), rgba(247, 250, 255, 0.38) 72%, rgba(247, 250, 255, 0));
    border-bottom: 0;
    box-shadow: none;
}

body.dark-mode .app-topbar {
    background: linear-gradient(180deg, rgba(8, 14, 30, 0.94), rgba(8, 14, 30, 0.42) 72%, rgba(8, 14, 30, 0));
}

.topbar-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.topbar-home-placeholder {
    width: 76px;
    min-height: 1px;
}

.topbar-home-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.52rem;
    min-height: 38px;
    padding: 0.48rem 0.95rem 0.48rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(11, 61, 145, 0.1);
    box-shadow: var(--shadow-soft);
    font-weight: 800;
    color: var(--navy);
}

.topbar-home-logo {
    width: 30px;
    height: 30px;
    border-radius: 12px;
    object-fit: cover;
    flex: 0 0 auto;
    box-shadow: 0 6px 16px rgba(11, 61, 145, 0.16);
}

body.dark-mode .topbar-home-mark {
    background: rgba(18, 31, 63, 0.92);
    border-color: rgba(127, 164, 255, 0.14);
    color: #eef4ff;
}

.account-menu {
    position: relative;
}

.account-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.36rem 0.46rem 0.36rem 0.76rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(11, 61, 145, 0.1);
    box-shadow: var(--shadow-soft);
}

body.dark-mode .account-trigger {
    background: rgba(18, 31, 63, 0.92);
    border-color: rgba(127, 164, 255, 0.14);
}

.account-trigger-copy {
    display: grid;
    gap: 0.08rem;
    text-align: right;
}

.account-trigger-copy strong,
.account-trigger-copy span {
    margin: 0;
    line-height: 1.1;
}

.account-trigger-copy span {
    color: rgba(20, 33, 61, 0.62);
    font-size: 0.86rem;
}

body.dark-mode .account-trigger-copy span {
    color: rgba(222, 232, 255, 0.68);
}

.topbar-avatar {
    width: 40px;
    height: 40px;
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    width: min(280px, calc(100vw - 2rem));
    display: grid;
    gap: 0.25rem;
    padding: 0.7rem;
    border-radius: 24px;
    z-index: 65;
}

.account-dropdown a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.82rem 0.9rem;
    border-radius: 16px;
    font-weight: 700;
}

.account-dropdown a:hover {
    background: rgba(11, 61, 145, 0.08);
}

body.dark-mode .account-dropdown a:hover {
    background: rgba(127, 164, 255, 0.12);
}

.account-dropdown-group {
    display: grid;
    gap: 0.45rem;
    padding-top: 0.35rem;
    margin-top: 0.25rem;
    border-top: 1px solid rgba(11, 61, 145, 0.08);
}

.account-dropdown-group h4 {
    margin: 0;
    padding: 0 0.4rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(20, 33, 61, 0.56);
}

body.dark-mode .account-dropdown-group {
    border-top-color: rgba(127, 164, 255, 0.12);
}

body.dark-mode .account-dropdown-group h4 {
    color: rgba(222, 232, 255, 0.6);
}

.switcher-list {
    display: grid;
    gap: 0.35rem;
}

.switch-account-button {
    width: 100%;
    justify-content: flex-start;
    gap: 0.7rem;
    min-height: 44px;
    padding: 0.58rem 0.75rem;
    border-radius: 16px;
    background: rgba(11, 61, 145, 0.06);
    color: inherit;
    box-shadow: none;
}

.switch-account-button:hover {
    background: rgba(11, 61, 145, 0.1);
}

body.dark-mode .switch-account-button {
    background: rgba(127, 164, 255, 0.1);
}

body.dark-mode .switch-account-button:hover {
    background: rgba(127, 164, 255, 0.14);
}

.app-main-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    height: 100dvh;
    overflow: hidden;
}

body.dark-mode .card,
body.dark-mode .brand-card,
body.dark-mode .current-user-chip,
body.dark-mode .nav-links a,
body.dark-mode .feed-tabs,
body.dark-mode .story-tab,
body.dark-mode .trend,
body.dark-mode .notification-item,
body.dark-mode .message-bubble,
body.dark-mode .quote-card,
body.dark-mode .stat-card {
    background: rgba(12, 22, 46, 0.84);
    border-color: rgba(127, 164, 255, 0.14);
    color: #eef4ff;
}

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode input[type="file"] {
    background: rgba(11, 19, 39, 0.92);
    color: #eef4ff;
    border-color: rgba(127, 164, 255, 0.16);
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder,
body.dark-mode .muted,
body.dark-mode .user-row span,
body.dark-mode .post-meta,
body.dark-mode .post-stats,
body.dark-mode .reply-line,
body.dark-mode .notification-copy span,
body.dark-mode .trend-post p {
    color: rgba(222, 232, 255, 0.68);
}

body.dark-mode .button.ghost,
body.dark-mode .actions button,
body.dark-mode .action-link,
body.dark-mode summary,
body.dark-mode .icon-action {
    background: rgba(127, 164, 255, 0.12);
    color: #d9e7ff;
}

body.dark-mode .message-bubble {
    background: rgba(18, 31, 63, 0.96);
}

body.dark-mode .message-bubble.mine {
    background: linear-gradient(135deg, rgba(36, 79, 171, 0.92), rgba(24, 53, 119, 0.98));
}

body.dark-mode .flash.success {
    background: linear-gradient(135deg, #1b4fb0, #3472e4);
}

body.dark-mode .flash.error {
    background: linear-gradient(135deg, #a81334, #e24567);
}

body.dark-mode .profile-meta a:hover,
body.dark-mode a:hover {
    color: #ffffff;
}

body.dark-mode .feed-tab {
    color: rgba(222, 232, 255, 0.82);
}

body.dark-mode .feed-tab.active {
    background: rgba(18, 31, 63, 0.96);
    color: var(--white);
    box-shadow: 0 8px 18px rgba(6, 10, 22, 0.28);
}

body.dark-mode .feed-tabs {
    background: rgba(18, 31, 63, 0.66);
    box-shadow: inset 0 0 0 1px rgba(127, 164, 255, 0.1);
}

body.dark-mode .composer form {
    background: rgba(12, 22, 46, 0.84);
    border-color: rgba(127, 164, 255, 0.12);
    box-shadow: 0 16px 34px rgba(6, 10, 22, 0.28);
}

body.dark-mode .composer-file-input {
    background: rgba(15, 27, 54, 0.96);
    border-color: rgba(127, 164, 255, 0.12);
}

body.dark-mode .composer-file-input::file-selector-button {
    background: rgba(127, 164, 255, 0.12);
    color: #eef4ff;
}

body.dark-mode .post-actions {
    border-top-color: rgba(127, 164, 255, 0.1);
}

body.dark-mode .icon-action {
    color: rgba(222, 232, 255, 0.78);
    background: rgba(18, 31, 63, 0.72);
    border-color: rgba(127, 164, 255, 0.16);
    box-shadow: 0 10px 24px rgba(6, 10, 22, 0.24);
}

body.dark-mode .icon-action.quote-action {
    color: rgba(222, 232, 255, 0.52);
}

body.dark-mode .icon-action:hover,
body.dark-mode .icon-action:focus-visible,
body.dark-mode .icon-action.active {
    color: #eef4ff;
    background: rgba(21, 36, 70, 0.92);
    border-color: rgba(127, 164, 255, 0.22);
}

body.dark-mode .icon-action.active.like-action {
    color: #ff7c98;
    background: rgba(191, 10, 48, 0.16);
}

body.dark-mode .icon-action img {
    filter: grayscale(1) saturate(0) brightness(1.9);
    opacity: 0.82;
}

body.dark-mode .icon-action.active img,
body.dark-mode .icon-action:hover img,
body.dark-mode .icon-action:focus-visible img {
    filter: none;
    opacity: 1;
}

body.dark-mode .comment-thread-item {
    background: rgba(12, 22, 46, 0.82);
    border-color: rgba(127, 164, 255, 0.12);
    box-shadow: 0 12px 26px rgba(6, 10, 22, 0.24);
}

body.dark-mode .post-body,
body.dark-mode .comment-thread-body,
body.dark-mode .comment-body,
body.dark-mode .comment-author-link,
body.dark-mode .comments-inline-header h4,
body.dark-mode .post-detail-thread-head h2 {
    color: #eef4ff;
}

body.dark-mode .comment-thread-head span,
body.dark-mode .comment-author-link span,
body.dark-mode .comments-inline-header p,
body.dark-mode .comments-replying,
body.dark-mode .post-detail-thread-head p,
body.dark-mode .post-detail-back {
    color: rgba(222, 232, 255, 0.76);
}

body.dark-mode .comment-action-button,
body.dark-mode .comment-replies summary,
body.dark-mode .comments-inline-close {
    background: rgba(18, 31, 63, 0.74);
    color: rgba(222, 232, 255, 0.8);
    border-color: rgba(127, 164, 255, 0.14);
    box-shadow: 0 8px 18px rgba(6, 10, 22, 0.18);
}

body.dark-mode .comment-action-button:hover,
body.dark-mode .comment-action-button:focus-visible,
body.dark-mode .comment-replies summary:hover,
body.dark-mode .comments-inline-close:hover,
body.dark-mode .comments-inline-close:focus-visible {
    background: rgba(21, 36, 70, 0.92);
    color: #eef4ff;
    border-color: rgba(127, 164, 255, 0.22);
}

body.dark-mode .comment-action-button.active {
    background: rgba(127, 164, 255, 0.16);
    border-color: rgba(127, 164, 255, 0.24);
}

body.dark-mode .comment-delete-button {
    color: #ff9bb0;
    background: rgba(191, 10, 48, 0.14);
    border-color: rgba(255, 124, 152, 0.18);
}

body.dark-mode .nested-comment .comment-thread-main {
    border-left-color: rgba(127, 164, 255, 0.18);
}

body.dark-mode .connections-card {
    background: rgba(12, 22, 46, 0.88);
    border: 1px solid rgba(127, 164, 255, 0.14);
}

body.dark-mode .connections-head h2,
body.dark-mode .notification-copy strong {
    color: #eef4ff;
}

body.dark-mode .connection-row {
    background: rgba(127, 164, 255, 0.1);
}

.guest-shell {
    max-width: 1420px;
    margin: 0 auto;
    padding: calc(var(--safe-top) + 1.25rem) 2rem calc(3rem + var(--safe-bottom));
}

.landing-shell,
.auth-hero-shell {
    min-height: calc(100vh - 4rem);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 470px);
    gap: 3rem;
    align-items: center;
}

.landing-copy,
.auth-stack {
    display: grid;
    gap: 1.25rem;
}

.auth-brand-stage {
    display: grid;
    place-items: center;
    gap: 1rem;
    min-height: 72vh;
    align-content: center;
}

.auth-brand-mark {
    position: relative;
    width: min(40vw, 520px);
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
}

.auth-mark-logo {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 50px rgba(11, 61, 145, 0.2));
    animation: authLogoFloat 4.8s ease-in-out infinite;
}

.auth-orbit {
    position: absolute;
    z-index: 1;
    inset: 8%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(11, 61, 145, 0.1);
    pointer-events: none;
    animation: authOrbitPulse 2.8s ease-in-out infinite;
}

.auth-orbit-two {
    inset: 19%;
    border-color: rgba(191, 10, 48, 0.24);
    animation-delay: 0.48s;
}

.auth-live-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    max-width: min(88vw, 560px);
}

.auth-live-strip span {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.landing-logo {
    width: 108px;
    height: 108px;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.landing-copy h1 {
    margin: 0;
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    line-height: 0.95;
}

.auth-copy-block h1 {
    margin: 0;
    font-size: clamp(3.6rem, 6vw, 5.8rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.auth-copy-block h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    letter-spacing: -0.03em;
}

.landing-lead {
    margin: 0;
    max-width: 56rem;
    font-size: 1.12rem;
    color: var(--slate);
}

.auth-subcopy,
.tiny-copy {
    color: rgba(255, 255, 255, 0.72);
}

.auth-subcopy {
    margin: 0;
    max-width: 34rem;
    font-size: 1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.feature-card,
.auth-panel-card {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
}

.feature-card {
    padding: 1.15rem;
    border-radius: 24px;
}

.feature-card p {
    margin-bottom: 0;
    color: var(--slate);
}

.auth-panel {
    display: grid;
    gap: 1rem;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.dark-tabs {
    max-width: 420px;
}

.auth-panel-card {
    padding: 1.5rem;
    border-radius: 32px;
}

.dark-card {
    max-width: 420px;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-soft);
}

.auth-panel-card h2 {
    margin-top: 0;
}

.auth-panel-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.auth-panel-card.dark-card input {
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.14);
}

.auth-panel-card.dark-card input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.terms-gate-card {
    max-width: 420px;
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(11, 61, 145, 0.1);
    box-shadow: var(--shadow-soft);
}

.terms-gate-card .tiny-copy,
.terms-gate-card label {
    color: var(--slate);
}

.terms-gate-card .tiny-copy a {
    color: var(--navy);
    font-weight: 700;
}

.auth-divider {
    display: grid;
    place-items: center;
    color: var(--slate);
    font-size: 0.92rem;
}

.auth-divider.dark {
    max-width: 420px;
    color: rgba(255, 255, 255, 0.52);
}

.auth-divider.dark span {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.9rem;
    align-items: center;
}

.auth-divider.dark span::before,
.auth-divider.dark span::after {
    content: "";
    height: 1px;
    background: rgba(255, 255, 255, 0.14);
}

.auth-cta-group,
.auth-login-block {
    display: grid;
    gap: 1rem;
    max-width: 420px;
}

.auth-login-block p {
    margin: 0;
    font-weight: 700;
}

.auth-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    width: 100%;
    padding: 0.9rem 1.2rem;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 140ms ease, border-color 140ms ease;
}

.auth-pill:hover {
    transform: translateY(-1px);
}

.auth-pill-primary {
    background: var(--white);
    color: #0b0f19;
    box-shadow: none;
}

.auth-pill-outline {
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: transparent;
    color: var(--white);
    box-shadow: none;
}

@keyframes authLogoFloat {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.012);
    }
}

@keyframes authOrbitPulse {
    0%,
    100% {
        opacity: 0.72;
        transform: scale(0.96);
    }
    50% {
        opacity: 0.24;
        transform: scale(1.08);
    }
}

.full-width {
    width: 100%;
}

.guest-flashes {
    max-width: 460px;
    margin-left: auto;
    margin-bottom: 1rem;
}

.sidebar {
    position: sticky;
    top: 0;
    height: auto;
    align-self: start;
    padding-bottom: 1rem;
}

.brand-card,
.card,
.profile-banner {
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 24px rgba(20, 33, 61, 0.06);
    animation: floatIn 240ms ease;
}

.brand-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.current-user-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(11, 61, 145, 0.08);
    margin-bottom: 1rem;
    transition: transform 140ms ease, border-color 140ms ease;
}

.current-user-chip:hover {
    transform: translateY(-1px);
    border-color: var(--line);
}

.card,
.post-card,
.notification-item,
.connection-row,
.suggested-user-row,
.search-row,
.message-bubble,
.story-ring,
.profile-pill,
.bottom-nav a,
.feed-tab,
button,
.button,
.icon-action,
summary.icon-action {
    -webkit-tap-highlight-color: transparent;
    transform-origin: center;
}

.card,
.post-card,
.notification-item,
.connection-row,
.suggested-user-row,
.search-row,
.message-bubble {
    transition:
        transform var(--motion-medium) var(--motion-spring),
        box-shadow var(--motion-medium) ease,
        background var(--motion-fast) ease,
        border-color var(--motion-fast) ease,
        opacity var(--motion-fast) ease;
    will-change: transform;
}

.card:hover,
.post-card:hover,
.notification-item:hover,
.connection-row:hover,
.suggested-user-row:hover,
.search-row:hover {
    transform: translateY(-2px) scale(1.006);
}

.card:active,
.post-card:active,
.notification-item:active,
.connection-row:active,
.suggested-user-row:active,
.search-row:active,
.story-ring:active,
.profile-pill:active {
    transform: translateY(1px) scale(0.985);
    transition-duration: 90ms;
}

button,
.button,
.feed-tab,
.bottom-nav a,
.icon-action,
summary.icon-action {
    transition:
        transform var(--motion-fast) var(--motion-spring),
        box-shadow var(--motion-fast) ease,
        background var(--motion-fast) ease,
        color var(--motion-fast) ease,
        opacity var(--motion-fast) ease;
}

button:active,
.button:active,
.feed-tab:active,
.bottom-nav a:active,
.icon-action:active,
summary.icon-action:active {
    transform: scale(0.94);
}

.screen-swap-enter,
.card-swap-enter {
    animation: bubblyIn 360ms var(--motion-spring) both;
}

.brand-card h1,
.hero h2,
.profile-summary h2 {
    margin: 0;
}

.brand-logo,
.user-avatar,
.profile-avatar,
.topbar-avatar,
.mention-option-avatar,
.story-ring img,
.comment-profile-link img,
.native-web-avatar-fix {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 3px solid rgba(255, 255, 255, 0.75);
    flex: 0 0 auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    contain: paint;
}

img.user-avatar,
img.profile-avatar,
img.topbar-avatar,
img.mention-option-avatar,
.story-ring img,
.comment-profile-link img {
    display: block;
    background: rgba(11, 61, 145, 0.08);
    max-width: none;
}

.user-avatar img,
.profile-avatar img,
.topbar-avatar img,
.story-ring img,
.comment-profile-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
    display: block;
}

img.user-avatar.avatar-loading,
img.profile-avatar.avatar-loading {
    background:
        linear-gradient(110deg,
            rgba(11, 61, 145, 0.08) 8%,
            rgba(255, 255, 255, 0.82) 18%,
            rgba(11, 61, 145, 0.08) 33%);
    background-size: 220% 100%;
    animation: avatarShimmer 1.15s linear infinite;
}

img.media-frame.image-loading,
img.comment-media.image-loading,
img.quote-media-frame.image-loading {
    background:
        linear-gradient(110deg,
            rgba(11, 61, 145, 0.08) 8%,
            rgba(255, 255, 255, 0.82) 18%,
            rgba(11, 61, 145, 0.08) 33%);
    background-size: 220% 100%;
    animation: avatarShimmer 1.15s linear infinite;
}

@keyframes avatarShimmer {
    from {
        background-position: 200% 0;
    }
    to {
        background-position: -20% 0;
    }
}

.emoji-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, rgba(11, 61, 145, 0.14), rgba(191, 10, 48, 0.16));
    color: var(--ink);
    font-size: 1.15rem;
    border: 1px solid rgba(11, 61, 145, 0.08);
    line-height: 1;
    text-align: center;
    padding: 0;
    overflow: hidden;
    flex: 0 0 auto;
    aspect-ratio: 1 / 1;
    contain: paint;
}

.emoji-avatar-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
    font-size: inherit;
    transform: translateY(0.02em);
    transform-origin: center;
}

.story-ring .emoji-avatar-glyph,
.profile-pill .emoji-avatar-glyph,
.post-head .emoji-avatar-glyph,
.messages-layout > .card:first-child .emoji-avatar-glyph,
.right-rail .emoji-avatar-glyph,
.suggested-user-row .emoji-avatar-glyph,
.search-row .emoji-avatar-glyph {
    transform: translateY(0.16em) scale(1.08);
}

.nav-links,
.stack-form,
.feed-list,
.conversation,
.compact-form {
    display: grid;
    gap: var(--space-3);
}

.app-body .flash-stack {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: min(340px, calc(100vw - 2rem));
    z-index: 60;
}

.nav-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid transparent;
}

.nav-links a:hover {
    border-color: var(--line);
    transform: translateX(2px);
}

.content {
    display: grid;
    gap: 0.9rem;
    padding-bottom: 6.6rem;
    min-height: 0;
    height: 100%;
    min-width: 0;
    align-content: start;
    transition: opacity 180ms ease, transform 180ms ease;
    overflow-x: hidden;
    touch-action: pan-y pinch-zoom;
}

.app-content {
    width: min(100%, 860px);
    margin: 0 auto;
    display: grid;
    align-content: start;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    overscroll-behavior-x: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(7.4rem + var(--safe-bottom));
    scrollbar-gutter: stable both-edges;
    background: transparent;
    contain: layout style;
}

.right-rail {
    display: grid;
    gap: var(--space-2);
}

.rail-button-stack {
    display: grid;
    gap: 0.6rem;
}

.home-flow {
    display: grid;
    gap: var(--space-3);
}

.feed-story-row {
    display: grid;
    gap: var(--space-2);
    padding-block: 0.2rem 0.35rem;
}

.stories-inline-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.stories-inline-head h3 {
    margin: 0;
    font-size: 1rem;
}

.stories-inline-head a {
    color: var(--navy);
    font-size: 0.84rem;
    font-weight: 700;
}

.stories-inline-scroll {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
    touch-action: pan-x pinch-zoom;
}

.stories-inline-scroll::-webkit-scrollbar {
    display: none;
}

.story-inline-chip {
    display: grid;
    gap: 0.42rem;
    justify-items: center;
    min-width: 72px;
    color: inherit;
}

.story-inline-chip span:last-child {
    max-width: 76px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.82rem;
}

.story-inline-add {
    margin: 0;
}

.story-inline-add-chip {
    cursor: pointer;
}

.story-add-badge {
    position: absolute;
    right: -2px;
    bottom: -2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--navy), #1e5cc8);
    color: var(--white);
    border: 2px solid var(--white);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1;
}

.story-inline-empty {
    display: inline-flex;
    align-items: center;
    min-height: 56px;
    padding: 0 0.25rem;
    color: rgba(20, 33, 61, 0.56);
    font-size: 0.84rem;
    white-space: nowrap;
}

.feed-tabs {
    display: inline-grid;
    grid-template-columns: repeat(3, minmax(0, auto));
    gap: 0.1rem;
    width: fit-content;
    align-self: start;
    padding: 0.18rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 0;
    box-shadow: inset 0 0 0 1px rgba(11, 61, 145, 0.06);
    backdrop-filter: blur(14px);
}

.feed-control-panel {
    display: grid;
    gap: var(--space-2);
    padding: 0.2rem 0 0.55rem;
    align-content: start;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.feed-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    min-height: 34px;
    padding: 0.3rem 0.78rem;
    border-radius: 999px;
    color: rgba(20, 33, 61, 0.64);
    font-weight: 700;
    font-size: 0.84rem;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.feed-tab:hover {
    transform: none;
}

.feed-tab.active {
    background: rgba(255, 255, 255, 0.98);
    color: var(--navy);
    box-shadow: 0 8px 18px rgba(20, 33, 61, 0.08);
}

.story-strip {
    display: grid;
    gap: 0.9rem;
}

.story-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.story-tab {
    min-height: 38px;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(11, 61, 145, 0.08);
    background: rgba(11, 61, 145, 0.06);
    color: rgba(20, 33, 61, 0.72);
    font-weight: 800;
    transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.story-tab:hover {
    transform: translateY(-1px);
}

.story-tab.active {
    background: linear-gradient(135deg, var(--navy), #2f56b8);
    color: var(--white);
}

.story-strip-list {
    display: flex;
    gap: 0.9rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
}

.story-chip-link {
    display: grid;
    gap: 0.4rem;
    justify-items: center;
    min-width: 72px;
    font-size: 0.85rem;
}

.story-chip-link span:last-child {
    max-width: 78px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.story-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    padding: 3px;
    background: rgba(11, 61, 145, 0.08);
}

.active-story-ring {
    background: conic-gradient(from 180deg, var(--red), var(--white), var(--navy), var(--red));
}

.story-ring .user-avatar,
.story-ring .emoji-avatar {
    width: 100%;
    height: 100%;
}

.story-ring .emoji-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    padding-top: 0;
}

.story-ring .emoji-avatar-glyph {
    position: absolute;
    left: 50%;
    top: 50%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    font-size: 1.42em;
}

.story-create-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px auto;
    gap: 0.75rem;
    align-items: center;
}

.side-story-strip .story-create-inline {
    grid-template-columns: 1fr;
}

.side-story-strip .story-create-inline button {
    width: 100%;
}

.story-strip-list-vertical {
    display: grid;
    gap: 0.8rem;
    overflow: visible;
}

.side-story-strip .story-chip-link {
    grid-template-columns: auto 1fr;
    justify-items: start;
    align-items: center;
    min-width: 0;
}

.side-story-strip .story-chip-link span:last-child {
    max-width: none;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: max(0.75rem, calc(var(--safe-bottom) + 0.35rem));
    transform: translateX(-50%);
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
    width: min(94vw, 560px);
    padding: 0.55rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(11, 61, 145, 0.1);
    box-shadow: 0 18px 40px rgba(11, 61, 145, 0.18);
    backdrop-filter: blur(18px);
}

body.native-tab-shell-enabled .bottom-nav {
    display: none;
}

body.dark-mode .bottom-nav {
    background: rgba(12, 22, 46, 0.92);
    border-color: rgba(127, 164, 255, 0.14);
}

.bottom-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 52px;
    padding: 0.75rem 0.8rem;
    border-radius: 20px;
    background: rgba(11, 61, 145, 0.06);
    color: var(--navy);
    font-weight: 800;
    transition: transform 140ms ease, background 140ms ease;
}

.bottom-nav-link:hover {
    transform: translateY(-1px);
    background: rgba(11, 61, 145, 0.1);
}

body.dark-mode .bottom-nav-link {
    background: rgba(127, 164, 255, 0.12);
    color: #eef4ff;
}

.profile-pill {
    justify-content: center;
}

.profile-pill .user-avatar,
.profile-pill .emoji-avatar {
    width: 28px;
    height: 28px;
}

.profile-pill .emoji-avatar {
    font-size: 0.8rem;
}

.story-create-inline textarea {
    min-height: 46px;
    resize: none;
}

[data-story-panel][hidden] {
    display: none !important;
}

.card,
.hero,
.profile-banner {
    padding: 1rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, rgba(11, 61, 145, 0.96), rgba(191, 10, 48, 0.92));
    color: var(--white);
    padding: 0.85rem 1rem;
}

.compact-hero {
    padding: 0.78rem 1rem;
}

.hero h2 {
    font-size: 1.9rem;
    line-height: 1.08;
}

.hero p {
    margin: 0.25rem 0 0;
    max-width: 42rem;
}

.hero .eyebrow {
    margin: 0 0 0.2rem;
}

.hero .muted,
.profile-summary p,
.flash.success,
.flash.error {
    color: inherit;
}

.hero-actions,
.form-row,
.actions,
.feed-header,
.post-head,
.post-stats,
.profile-meta,
.action-panel,
.messages-layout,
.stats-grid,
.admin-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.feed-header {
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
}

.feed-header h2,
.feed-header p {
    margin: 0;
}

.hero-actions {
    align-items: center;
    justify-content: flex-end;
}

.form-row {
    align-items: center;
    justify-content: space-between;
}

.form-row .file-input {
    flex: 1 1 260px;
}

.composer {
    display: grid;
    gap: var(--space-2);
    margin-top: 0.12rem;
}

body.native-compose-enabled .home-flow .composer {
    display: none;
}

.composer form {
    display: grid;
    gap: var(--space-2);
    padding: 1rem;
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(11, 61, 145, 0.06);
    box-shadow: 0 10px 24px rgba(20, 33, 61, 0.06);
    backdrop-filter: blur(18px);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.composer textarea {
    min-height: 52px;
    max-height: 220px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 1rem;
    line-height: 1.45;
    overflow-y: auto;
    resize: none;
}

.composer textarea:focus {
    outline: none;
}

.composer-toolbar {
    gap: 0.55rem;
    flex-wrap: nowrap;
    align-items: center;
}

.composer-file-input {
    min-height: 38px;
    padding: 0.36rem 0.55rem;
    border-radius: 999px;
    border-color: rgba(11, 61, 145, 0.08);
    background: rgba(245, 248, 255, 0.92);
}

.composer-file-input::file-selector-button {
    padding: 0.45rem 0.8rem;
    background: rgba(11, 61, 145, 0.08);
}

.composer-submit {
    min-width: 78px;
    min-height: 40px;
    padding: 0.65rem 1rem;
    box-shadow: none;
}

.composer.is-focused form,
.composer:focus-within form {
    border-color: rgba(11, 61, 145, 0.1);
    box-shadow: 0 20px 38px rgba(20, 33, 61, 0.12);
}

.composer.is-submitting form {
    opacity: 0.9;
}

.user-row {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    min-width: 0;
}

.user-copy {
    min-width: 0;
    display: grid;
    align-content: center;
}

.user-row span,
.muted,
.post-meta,
.post-stats,
.reply-line {
    color: rgba(20, 33, 61, 0.66);
}

.user-row > div {
    min-width: 0;
}

.user-row strong,
.user-row span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-card {
    display: grid;
    gap: var(--space-2);
    padding: 1rem 1.1rem;
}

.repost-card {
    gap: 0.4rem;
    padding-top: 0.5rem;
}

.post-head {
    justify-content: space-between;
    align-items: center;
}

.post-head .user-row {
    align-items: center;
}

.post-head .user-avatar,
.post-head .emoji-avatar {
    align-self: center;
}

.post-body {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.58;
}

.post-meta {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    font-size: 0.8rem;
}

.profile-summary {
    display: grid;
    gap: 0.22rem;
    align-self: center;
    min-width: 0;
}

.profile-summary h2 {
    font-size: 1.12rem;
    line-height: 1.08;
    font-weight: 800;
}

.profile-summary p {
    margin: 0;
    font-size: 0.87rem;
}

.name-line {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 0.98rem;
    height: 0.98rem;
    flex: 0 0 auto;
    vertical-align: middle;
    border-radius: 50%;
    background: linear-gradient(135deg, #41c8ff, #1894ee);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 2px 6px rgba(24, 148, 238, 0.18);
}

.verified-badge::before {
    content: "";
    width: 0.28rem;
    height: 0.5rem;
    border-right: 0.14rem solid var(--white);
    border-bottom: 0.14rem solid var(--white);
    transform: translateY(-0.03rem) rotate(45deg);
}

.name-line .verified-badge {
    transform: translateY(0.01rem);
}

.pill {
    padding: 0.25rem 0.55rem;
    background: rgba(11, 61, 145, 0.12);
    color: var(--navy);
    border-radius: 999px;
    font-size: 0.8rem;
}

.pill.creator {
    background: rgba(191, 10, 48, 0.14);
    color: var(--red);
}

.quote-card,
.message-bubble,
.trend,
.story-chip,
.stat-card {
    background: rgba(11, 61, 145, 0.05);
    border-radius: 18px;
    padding: 0.9rem;
}

.quote-media-frame {
    width: 100%;
    max-height: 280px;
    margin-top: 0.7rem;
    object-fit: contain;
    background: rgba(11, 61, 145, 0.05);
    border-radius: 16px;
    border: 1px solid var(--line);
    display: block;
}

.media-frame {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    background: rgba(11, 61, 145, 0.05);
    border-radius: 20px;
    border: 1px solid var(--line);
}

.flash {
    padding: 0.8rem 0.95rem;
    border-radius: 16px;
    color: var(--white);
    box-shadow: var(--shadow-soft);
}

.flash.success {
    background: linear-gradient(135deg, var(--navy), #3c74d3);
}

.flash.error {
    background: linear-gradient(135deg, var(--red), #e24567);
}

.profile-banner {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    height: auto;
    min-height: 188px;
    max-height: none;
    overflow: visible;
    background-size: cover;
    background-position: center;
    background-color: rgba(11, 61, 145, 0.88);
    padding: 0.85rem 0.9rem 1rem;
    isolation: isolate;
}

.profile-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(9, 18, 40, 0.18) 0%, rgba(9, 18, 40, 0.62) 100%);
    z-index: 0;
}

.profile-page {
    display: grid;
    gap: 0.72rem;
    min-height: calc(100dvh - var(--safe-top) - 8.5rem);
    align-content: start;
    grid-template-rows: auto auto auto;
}

.back-link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(11, 61, 145, 0.08);
    font-weight: 700;
}

.profile-back-link {
    margin-bottom: 0.18rem;
    padding: 0.34rem 0.6rem;
    font-size: 0.84rem;
    line-height: 1;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--white);
}

.profile-hero-card {
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.profile-banner-content {
    display: grid;
    gap: 0.42rem;
    width: 100%;
    max-width: min(100%, 720px);
    position: relative;
    z-index: 1;
}

.profile-timeline-card {
    display: grid;
    gap: 0.5rem;
    padding: 0.42rem 0.8rem 0.72rem;
    align-content: start;
    margin-top: 0.15rem;
}

.profile-timeline-head {
    padding-bottom: 0.15rem;
    border-bottom: 1px solid rgba(11, 61, 145, 0.08);
}

.profile-feed-list .post-card {
    border: 1px solid rgba(11, 61, 145, 0.08);
    box-shadow: none;
}

.profile-header-main {
    display: flex;
    align-items: flex-start;
    gap: 0.92rem;
    min-width: 0;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    font-size: 1.62rem;
}

.profile-summary {
    display: grid;
    gap: 0.22rem;
    min-width: 0;
    text-shadow: 0 2px 12px rgba(9, 18, 40, 0.24);
}

.profile-summary h2 {
    font-size: 1.95rem;
    line-height: 1.02;
}

.profile-summary p {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.28;
}

.compact-meta {
    display: flex;
    gap: 0.8rem;
    font-size: 1.02rem;
    align-items: center;
    margin-top: 0.22rem;
    flex-wrap: wrap;
    line-height: 1.24;
}

.profile-actions-card {
    display: grid;
    gap: 0.5rem;
    padding: 0.62rem 0.72rem;
    position: relative;
    z-index: 30;
}

.profile-actions-row {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    align-items: center;
    min-width: 0;
}

.profile-actions-row .button,
.profile-actions-row button {
    min-height: 38px;
    padding: 0.56rem 0.84rem;
    min-width: 0;
    box-shadow: 0 8px 18px rgba(20, 33, 61, 0.08);
}

.profile-actions-row a.button {
    width: auto;
}

.profile-message-button {
    min-height: 38px;
    padding: 0.56rem 0.84rem;
    line-height: 1;
    box-shadow: none;
}

.profile-actions-row form,
.profile-report-form {
    margin: 0;
    flex: 0 0 auto;
}

.profile-report-details {
    margin-left: auto;
    position: relative;
}

.profile-report-details[open] summary {
    background: transparent;
}

.admin-tabs {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-bottom: 0.7rem;
}

.admin-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(11, 61, 145, 0.08);
    color: var(--navy);
    font-weight: 800;
    box-shadow: var(--shadow-soft);
}

.admin-tab.is-active {
    background: linear-gradient(135deg, var(--navy), #1e5cc8);
    color: var(--white);
    border-color: transparent;
}

.admin-search-form {
    margin: 0 0 0.85rem;
}

.admin-create-user-form {
    margin-top: 0.55rem;
}

.admin-eula-reset {
    display: grid;
    gap: 0.65rem;
    align-items: start;
}

.admin-eula-reset p {
    margin: 0;
    max-width: 44rem;
}

.mention-chip {
    display: inline-flex;
    align-items: center;
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
    border-radius: 999px;
    padding: 0 0.08rem;
    transition: color 140ms ease, background-color 140ms ease;
}

.mention-chip:hover,
.mention-chip:focus-visible {
    color: #1e5cc8;
    background: rgba(11, 61, 145, 0.08);
}

.post-body .mention-chip,
.comment-body .mention-chip,
.comment-thread-body .mention-chip,
.story-caption .mention-chip,
.quote-card .mention-chip {
    color: #1e5cc8;
}

.post-body .mention-chip:active,
.comment-body .mention-chip:active,
.comment-thread-body .mention-chip:active,
.story-caption .mention-chip:active,
.quote-card .mention-chip:active {
    background: rgba(11, 61, 145, 0.14);
}

.mentions-dropdown {
    position: absolute;
    z-index: 120;
    display: grid;
    gap: 0.2rem;
    max-height: 280px;
    overflow-y: auto;
    padding: 0.45rem;
    border: 1px solid rgba(11, 61, 145, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 36px rgba(20, 33, 61, 0.14);
    backdrop-filter: blur(16px);
}

.mentions-loading,
.mentions-empty {
    padding: 0.7rem 0.8rem;
    color: rgba(20, 33, 61, 0.64);
    font-size: 0.88rem;
}

.mention-option {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    min-height: 52px;
    padding: 0.55rem 0.65rem;
    border-radius: 14px;
    background: transparent;
    color: var(--ink);
    box-shadow: none;
}

.mention-option:hover,
.mention-option:focus-visible {
    background: rgba(11, 61, 145, 0.08);
    transform: none;
}

.mention-option-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.mention-option-copy {
    display: grid;
    justify-items: start;
    gap: 0.08rem;
    min-width: 0;
}

.mention-option-copy strong,
.mention-option-copy span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mention-option-copy span {
    color: rgba(20, 33, 61, 0.62);
    font-size: 0.84rem;
}

.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.profile-report-popover {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    width: min(280px, 70vw);
    display: grid;
    gap: 0.55rem;
    padding: 0.75rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    z-index: 80;
}

body.dark-mode .profile-report-popover {
    background: rgba(12, 22, 46, 0.98);
    border-color: rgba(127, 164, 255, 0.16);
}

.messages-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: start;
}

.dm-sidebar {
    gap: 0.2rem;
}

.dm-user-row {
    padding: 0.55rem 0.1rem;
    border-radius: 16px;
    transition: background 140ms ease, transform 140ms ease;
    align-items: flex-start;
}

.dm-user-row:hover {
    background: rgba(11, 61, 145, 0.05);
    transform: translateX(2px);
}

.dm-user-row.active {
    background: rgba(11, 61, 145, 0.08);
}

.dm-user-row .user-copy {
    gap: 0.08rem;
}

.dm-user-row .name-line {
    display: flex;
    align-items: flex-start;
    gap: 0.2rem;
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
    line-height: 1.18;
}

.dm-user-row strong.name-line {
    overflow: visible;
    text-overflow: initial;
    white-space: normal;
}

.dm-user-row .name-line .verified-badge {
    margin-top: 0.14rem;
    flex: 0 0 auto;
}

.dm-panel {
    display: grid;
    gap: 1rem;
    height: calc(100vh - 180px);
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.dm-panel-head {
    display: grid;
    gap: 0.2rem;
}

.dm-panel-head h2,
.dm-sidebar h2 {
    margin: 0;
}

.messages-layout > .card:first-child .user-avatar,
.messages-layout > .card:first-child .emoji-avatar,
.right-rail .user-avatar,
.right-rail .emoji-avatar,
.post-head .user-avatar,
.post-head .emoji-avatar {
    width: 40px;
    height: 40px;
}

.messages-layout > .card:first-child .emoji-avatar,
.right-rail .emoji-avatar,
.post-head .emoji-avatar {
    font-size: 1rem;
}

.post-head .emoji-avatar-glyph {
    position: absolute;
    left: 50%;
    top: 50%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    font-size: 1.12em;
}

.suggested-user-row {
    padding: 0.14rem 0;
    align-items: center;
}

.suggested-user-row .user-avatar,
.suggested-user-row .emoji-avatar {
    width: 36px;
    height: 36px;
}

.suggested-user-row .emoji-avatar {
    font-size: 0.9rem;
}

.suggested-user-row .name-line {
    gap: 0.14rem;
    display: flex;
    align-items: center;
    width: fit-content;
}

.suggested-user-row .verified-badge {
    width: 0.82rem;
    height: 0.82rem;
    margin-top: 0;
}

.search-row > div {
    min-width: 0;
}

.conversation-log {
    display: grid;
    align-content: start;
    gap: 0.65rem;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.25rem;
    scroll-behavior: smooth;
}

.message-bubble {
    justify-self: start;
    width: fit-content;
    max-width: 72%;
    padding: 0.8rem 0.95rem;
    border-radius: 18px;
    background: rgba(11, 61, 145, 0.06);
    animation: floatIn 220ms ease;
    overflow-wrap: anywhere;
    word-break: break-word;
}

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

.message-bubble p {
    margin-top: 0.35rem;
    line-height: 1.45;
}

.message-bubble span {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.85rem;
    color: rgba(20, 33, 61, 0.56);
}

.message-bubble.mine {
    justify-self: end;
    background: linear-gradient(135deg, rgba(11, 61, 145, 0.11), rgba(11, 61, 145, 0.18));
}

.dm-compose {
    gap: 0.75rem;
}

.dm-compose textarea {
    min-height: 86px;
}

.dm-compose-actions {
    display: flex;
    justify-content: flex-end;
}

.dm-compose-actions button {
    min-height: 40px;
    padding: 0.65rem 1.1rem;
    width: auto;
    box-shadow: none;
    animation: glowPulse 2.6s ease-in-out infinite;
}

.repost-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    margin: 0 0 -0.15rem;
    color: rgba(20, 33, 61, 0.58);
    font-size: 0.8rem;
    font-weight: 700;
}

.repost-label::before {
    content: "↻";
    color: var(--navy);
    font-size: 0.9rem;
}

.story-view-shell {
    display: grid;
    gap: 1rem;
}

.story-frame {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(11,61,145,.12), rgba(191,10,48,.12));
    min-height: 60vh;
    display: grid;
    place-items: center;
}

.story-caption {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(9, 12, 24, 0.55);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.admin-row,
.trend {
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
}

.trend-post {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 0.55rem;
    align-items: start;
    overflow: hidden;
}

.trend-post > div {
    min-width: 0;
    overflow: hidden;
}

.trend-post strong,
.trend-post p {
    margin: 0;
}

.trend-post p {
    margin-top: 0.18rem;
    color: rgba(20, 33, 61, 0.66);
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trend-post span {
    font-weight: 800;
    color: var(--navy);
    justify-self: end;
    text-align: right;
    min-width: 2.4rem;
}

.notifications-card {
    display: grid;
    gap: 0.75rem;
    align-content: start;
}

.notifications-head {
    display: grid;
    gap: 0.15rem;
    margin-bottom: 0.05rem;
}

.notifications-head p {
    margin: 0;
}

.connections-card {
    display: grid;
    gap: 0.75rem;
    align-content: start;
}

.connections-tabs {
    margin-bottom: 0.1rem;
}

.connections-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.connections-head h2,
.connections-head p {
    margin: 0;
}

.connection-row {
    padding: 0.72rem 0.9rem;
}

.suggested-user-row .name-line,
.search-row .name-line {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    white-space: nowrap;
}

.suggested-user-row .verified-badge,
.search-row .verified-badge {
    flex: 0 0 auto;
    transform: translateY(0);
    margin-left: 0.05rem;
}

.notification-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: start;
    padding: 0.72rem 0.9rem;
    border-radius: 20px;
    background: rgba(11, 61, 145, 0.05);
    transition: transform 140ms ease, background 140ms ease;
}

.notification-item:hover {
    transform: translateY(-1px);
    background: rgba(11, 61, 145, 0.08);
}

.notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(11, 61, 145, 0.12);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.82rem;
}

.notification-copy {
    display: grid;
    gap: 0.18rem;
}

.notification-copy strong {
    font-size: 1rem;
}

.notification-copy span {
    color: rgba(20, 33, 61, 0.58);
    font-size: 0.88rem;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }

    .card:hover,
    .post-card:hover,
    .notification-item:hover,
    .connection-row:hover,
    .suggested-user-row:hover,
    .search-row:hover,
    button:active,
    .button:active,
    .feed-tab:active,
    .bottom-nav a:active,
    .icon-action:active,
    summary.icon-action:active {
        transform: none !important;
    }
}

.empty-state-card {
    padding: 0.95rem 1rem;
    min-height: 0;
    align-content: start;
}

.empty-state-card p {
    margin: 0;
}

.admin-audit-head {
    display: grid;
    gap: 0.2rem;
}

.audit-thread {
    grid-template-columns: 1fr;
}

.audit-messages {
    display: grid;
    gap: 0.6rem;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.profile-meta a {
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}

.profile-meta a:hover {
    color: var(--white);
    text-decoration: underline;
}

.actions {
    align-items: center;
}

.actions form {
    margin: 0;
}

.actions form button,
.actions .action-link,
.actions summary {
    min-width: 92px;
}

.post-actions {
    display: flex;
    gap: 0.45rem 0.6rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(11, 61, 145, 0.08);
}

.inline-comments-host {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(20, 33, 61, 0.08);
}

.comments-loading {
    padding: 0.95rem 0;
    color: rgba(20, 33, 61, 0.62);
    font-weight: 600;
}

.post-detail-page {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.post-detail-shell {
    display: grid;
    gap: 1rem;
}

.post-detail-back {
    width: fit-content;
}

.post-detail-focus {
    gap: var(--space-2);
    align-content: start;
}

.post-detail-thread {
    display: grid;
    gap: 1rem;
    padding: 1.1rem;
}

.post-detail-thread-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.post-detail-thread-head h2,
.post-detail-thread-head p {
    margin: 0;
}

.post-detail-thread-head p {
    color: rgba(20, 33, 61, 0.62);
    font-size: 0.92rem;
}

.post-detail-comments {
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.post-detail-composer {
    margin-top: 0;
}

.post-actions form {
    margin: 0;
}

.post-card {
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
    cursor: pointer;
}

.post-card:focus-visible,
.post-card:hover {
    box-shadow: 0 18px 36px rgba(20, 33, 61, 0.1);
}

.post-card [data-comments-host],
.post-card .post-actions,
.post-card .user-row,
.post-card .reply-line,
.post-card details,
.post-card form,
.post-card video,
.post-card summary,
.post-card button,
.post-card a {
    position: relative;
    z-index: 1;
}

.card-swap-enter {
    opacity: 0;
    transform: translateY(10px);
}

.post-actions details {
    display: inline-flex;
}

.icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 0.42rem;
    width: auto;
    min-width: 0;
    min-height: 2.15rem;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    background: rgba(245, 247, 255, 0.95);
    border: 1px solid rgba(11, 61, 145, 0.08);
    color: rgba(20, 33, 61, 0.72);
    box-shadow: 0 8px 18px rgba(20, 33, 61, 0.08);
    font-size: 0.8rem;
    line-height: 1;
    vertical-align: middle;
    font-weight: 700;
    transition: color 140ms ease, opacity 140ms ease, transform 140ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 180ms ease;
}

.icon-action:hover,
.icon-action:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(11, 61, 145, 0.14);
    box-shadow: 0 12px 22px rgba(20, 33, 61, 0.1);
    color: var(--navy);
}

.icon-action:active {
    transform: translateY(0) scale(0.98);
}

.icon-action img {
    width: 0.96rem;
    height: 0.96rem;
    display: block;
    opacity: 0.72;
    filter: grayscale(1) saturate(0) brightness(0.38);
}

.action-count {
    min-width: 1ch;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
}

.icon-action.active {
    border-color: transparent;
}

.icon-action.active.like-action {
    color: var(--red);
    background: rgba(191, 10, 48, 0.11);
}

.icon-action.active.repost-action {
    color: var(--navy);
    background: rgba(11, 61, 145, 0.12);
}

.icon-action.active.save-action {
    color: var(--navy);
    background: rgba(11, 61, 145, 0.12);
}

.icon-action.quote-action {
    color: rgba(20, 33, 61, 0.5);
}

.icon-action.active img,
.icon-action:hover img,
.icon-action:focus-visible img {
    opacity: 1;
    filter: none;
}

.inline-form textarea,
.inline-form input[type="text"] {
    min-width: 240px;
}

.icon-action[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.45rem);
    transform: translateX(-50%) translateY(0.2rem);
    padding: 0.35rem 0.5rem;
    border-radius: 10px;
    background: rgba(20, 33, 61, 0.94);
    color: var(--white);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 120ms ease, transform 120ms ease;
    z-index: 20;
}

.icon-action[data-tooltip]:hover::after,
.icon-action[data-tooltip]:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.post-actions summary.icon-action {
    padding: 0.42rem 0.72rem;
}

.post-stats {
    align-items: center;
    gap: 0.65rem;
    font-size: 0.8rem;
    line-height: 1.3;
}

.report-action,
.delete-action,
.danger-icon {
    color: var(--red);
    background: rgba(191, 10, 48, 0.08);
    border-color: rgba(191, 10, 48, 0.12);
}

.report-action:hover,
.report-action:focus-visible,
.delete-action:hover,
.delete-action:focus-visible,
.danger-icon:hover,
.danger-icon:focus-visible {
    color: var(--red);
    background: rgba(191, 10, 48, 0.12);
    border-color: rgba(191, 10, 48, 0.18);
}

.inline-form {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.simple-feed-page {
    display: grid;
    gap: var(--space-3);
}

.content-start-page {
    align-content: start;
}

.search-page {
    display: grid;
    gap: var(--space-3);
    align-content: start;
}

.search-discover-grid {
    display: grid;
    gap: var(--space-3);
}

.discover-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.discover-card-head h2 {
    margin: 0;
}

.discover-card-head a {
    color: var(--navy);
    font-size: 0.84rem;
    font-weight: 700;
}

.search-discover-link {
    display: grid;
    gap: 0.2rem;
    padding: 0.2rem 0;
}

.search-discover-link strong {
    font-size: 0.95rem;
}

.search-discover-link span {
    color: rgba(20, 33, 61, 0.62);
    line-height: 1.35;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    max-width: none;
}

.search-topbar {
    display: grid;
    margin-bottom: 0.1rem;
}

.search-topbar input {
    flex: 1 1 auto;
    min-height: 44px;
    padding: 0.72rem 0.95rem;
    border-radius: var(--radius-control);
}

.search-topbar button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
    box-shadow: none;
}

.compact-list-card {
    display: grid;
    gap: var(--space-2);
    align-content: start;
    align-self: start;
    padding: 1rem;
}

.search-row {
    padding: 0.6rem 0;
    align-items: center;
}

.search-row .emoji-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    font-size: 0.94rem;
}

.search-row .emoji-avatar-glyph {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(0.22em);
}

.search-page .feed-list,
.search-page .empty-state-card {
    align-content: start;
}

.user-row .name-line {
    display: inline-flex;
    align-items: center;
    gap: 0.14rem;
    min-width: 0;
}

.user-row .name-line .verified-badge {
    display: inline-flex;
    align-self: center;
    margin-left: 0.02rem;
}

.reply-line {
    margin: -0.1rem 0 0;
    font-size: 0.88rem;
}

.highlighted-quote {
    border: 1px solid rgba(191, 10, 48, 0.14);
    background: linear-gradient(135deg, rgba(11, 61, 145, 0.05), rgba(191, 10, 48, 0.08));
}

.quote-label {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 0.3rem;
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    background: rgba(191, 10, 48, 0.12);
    color: var(--red);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.comment-thread {
    gap: 0.45rem;
}

.comments-inline-shell {
    display: grid;
    gap: 0.8rem;
}

.comments-inline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.comments-inline-header h4 {
    margin: 0;
    font-size: 1rem;
}

.comments-inline-header p {
    margin: 0.12rem 0 0;
    font-size: 0.84rem;
    color: rgba(20, 33, 61, 0.58);
}

.comments-inline-close {
    min-height: 34px;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(20, 33, 61, 0.1);
    background: rgba(255, 255, 255, 0.88);
    color: var(--navy);
    font-size: 0.83rem;
    font-weight: 700;
}

.comments-inline-list {
    display: grid;
    gap: 0.9rem;
    max-height: 24rem;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.comment-thread-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.78rem;
    align-items: start;
    width: 100%;
    padding: 0.9rem 0.95rem;
    border: 1px solid rgba(11, 61, 145, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 22px rgba(20, 33, 61, 0.06);
}

.comment-thread-avatar {
    padding-top: 0.12rem;
}

.comment-profile-link {
    display: inline-flex;
}

.comment-thread-main {
    display: grid;
    gap: 0.52rem;
    min-width: 0;
}

.comment-thread-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.92rem;
}

.comment-author-link {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.34rem;
    min-width: 0;
    color: var(--ink);
}

.comment-thread-head span {
    color: rgba(20, 33, 61, 0.62);
}

.comment-thread-time {
    margin-left: auto;
    font-size: 0.78rem;
}

.comment-thread-body {
    margin: 0;
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.comment-thread-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.comment-like-form {
    margin: 0;
}

.comment-action-button {
    min-height: 34px;
    padding: 0.42rem 0.78rem;
    border-radius: 999px;
    border: 1px solid rgba(11, 61, 145, 0.08);
    background: rgba(245, 247, 255, 0.92);
    color: rgba(20, 33, 61, 0.78);
    box-shadow: 0 6px 14px rgba(20, 33, 61, 0.05);
    font-size: 0.81rem;
    font-weight: 700;
    transition: transform 140ms ease, background-color 160ms ease, border-color 160ms ease, color 140ms ease, box-shadow 180ms ease;
}

.comment-action-button:hover,
.comment-action-button:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(11, 61, 145, 0.14);
    color: var(--navy);
    box-shadow: 0 10px 18px rgba(20, 33, 61, 0.08);
}

.comment-action-button:active {
    transform: translateY(0) scale(0.98);
}

.comment-action-button.active {
    color: var(--navy);
    background: rgba(11, 61, 145, 0.1);
    border-color: rgba(11, 61, 145, 0.14);
}

.comment-delete-button {
    color: var(--red);
    background: rgba(191, 10, 48, 0.08);
    border-color: rgba(191, 10, 48, 0.12);
}

.comment-delete-button:hover,
.comment-delete-button:focus-visible {
    color: var(--red);
    background: rgba(191, 10, 48, 0.12);
    border-color: rgba(191, 10, 48, 0.18);
}

.comment-replies {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.18rem;
}

.comment-replies summary {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 34px;
    padding: 0.42rem 0.78rem;
    border-radius: 999px;
    background: rgba(11, 61, 145, 0.07);
    border: 1px solid rgba(11, 61, 145, 0.08);
    box-shadow: none;
    cursor: pointer;
    color: rgba(20, 33, 61, 0.74);
    font-size: 0.8rem;
    font-weight: 700;
    list-style: none;
}

.comment-replies summary:hover {
    color: var(--navy);
    background: rgba(11, 61, 145, 0.11);
    border-color: rgba(11, 61, 145, 0.13);
}

.comment-replies summary::-webkit-details-marker {
    display: none;
}

.comment-replies-list {
    display: grid;
    gap: 0.65rem;
    padding-top: 0.2rem;
}

.nested-comment {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.nested-comment .comment-thread-avatar {
    display: none;
}

.nested-comment .comment-thread-main {
    padding-left: 0.8rem;
    border-left: 2px solid rgba(11, 61, 145, 0.12);
}

.inline-comments-composer {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.65rem;
    align-items: center;
    margin-top: 0.15rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(20, 33, 61, 0.08);
}

.comments-compose-main {
    display: grid;
    gap: 0.35rem;
}

.comments-compose-main input[type="text"] {
    min-height: 42px;
    padding: 0.7rem 0.85rem;
    border-radius: 14px;
}

.comments-post-button {
    min-height: 42px;
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
}

.comments-replying {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    color: rgba(20, 33, 61, 0.7);
}

.comments-replying button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--red);
    font-size: 0.8rem;
    font-weight: 700;
}

.comment-item {
    display: grid;
    gap: 0.7rem;
    padding: 0.8rem 0.95rem;
}

.comment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.comment-time {
    color: rgba(20, 33, 61, 0.58);
    font-size: 0.84rem;
    white-space: nowrap;
}

.comment-body {
    margin: 0;
    line-height: 1.5;
}

.comment-media {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    background: rgba(11, 61, 145, 0.05);
    border-radius: 16px;
    border: 1px solid var(--line);
}

.feed-tabs {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    padding: 0.28rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    width: fit-content;
}

.feed-tab {
    min-height: 42px;
    padding: 0.66rem 1rem;
    border-radius: 14px;
    font-size: 0.94rem;
    font-weight: 800;
}

.feed-tab.active {
    border-radius: 14px;
}

.search-page .feed-list {
    margin-top: 0;
}

.search-page .compact-list-card + .feed-list,
.search-page .compact-list-card + .empty-state-card {
    margin-top: -0.05rem;
}

.danger-link {
    color: var(--red);
}

.danger-button {
    background: linear-gradient(135deg, #9f1737, #d83a5f);
}

.danger-zone-card {
    border-color: rgba(159, 23, 55, 0.18);
}

.stack-list {
    display: grid;
    gap: 0.75rem;
}

.settings-user-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
    padding: 0.2rem 0;
}

.settings-user-row > .user-row {
    min-width: 0;
}

.settings-user-copy {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.settings-user-copy span {
    color: rgba(20, 33, 61, 0.66);
}

.legal-card {
    max-width: 860px;
    margin: 0 auto;
    padding: 1.4rem;
}

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

.legal-card h2 {
    margin-top: 1.6rem;
}

.legal-list {
    margin: 1rem 0;
    padding-left: 1.25rem;
    display: grid;
    gap: 0.65rem;
}

.site-footer {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1rem calc(1rem + var(--safe-bottom));
    color: rgba(20, 33, 61, 0.62);
    font-size: 0.92rem;
    flex-wrap: wrap;
}

.site-footer a {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(11, 61, 145, 0.08);
}

body.dark-mode .site-footer {
    color: rgba(222, 232, 255, 0.7);
}

body.dark-mode .site-footer a {
    background: rgba(12, 22, 46, 0.78);
    border-color: rgba(127, 164, 255, 0.14);
}

.admin-edit-form {
    min-width: min(320px, 80vw);
    padding-top: 0.65rem;
}

.badge {
    display: inline-grid;
    place-items: center;
    min-width: 1.4rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--red);
    color: var(--white);
    font-size: 0.8rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
}

.eyebrow.light {
    color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 1100px) {
    .page-shell {
        grid-template-columns: 1fr;
        gap: 0.9rem;
        padding: var(--app-topbar-height) 0.85rem 1rem;
    }

    .landing-shell,
    .auth-hero-shell,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .right-rail {
        order: 3;
    }

    .content {
        gap: 0.55rem;
        padding-bottom: 6.8rem;
    }

    .story-create-inline,
    .messages-layout {
        grid-template-columns: 1fr;
    }

    .dm-panel {
        height: auto;
        grid-template-rows: auto auto auto;
    }

    .conversation-log {
        max-height: 55vh;
    }
}

@media (max-width: 720px) {
    .page-shell {
        padding: var(--app-topbar-height) 0.65rem 1rem;
        gap: 0.7rem;
    }

    .app-topbar {
        padding: calc(var(--safe-top) + 0.28rem) 0.7rem 0.32rem;
    }

    .topbar-home-mark {
        min-height: 40px;
        padding: 0.62rem 0.92rem;
    }

    .account-trigger {
        padding: 0.34rem 0.4rem 0.34rem 0.6rem;
    }

    .account-trigger-copy {
        display: none;
    }

    .topbar-avatar {
        width: 36px;
        height: 36px;
    }

    .hero,
    .messages-layout,
    .profile-banner {
        grid-template-columns: 1fr;
        display: grid;
    }

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

    .guest-shell {
        padding-inline: 1rem;
    }

    .right-rail {
        display: none;
    }

    .feed-control-panel {
        padding: 0.12rem 0 0.38rem;
        gap: 0.62rem;
    }

    .feed-tabs {
        padding: 0.18rem;
        border-radius: 999px;
    }

    .feed-tab {
        min-height: 36px;
        min-width: 0;
        padding: 0.56rem 0.86rem;
        border-radius: 999px;
    }

    .feed-story-row {
        gap: 0.5rem;
    }

    .stories-inline-scroll {
        gap: 0.75rem;
    }

    .story-inline-chip {
        min-width: 68px;
    }

    .story-ring {
        width: 60px;
        height: 60px;
    }

    .story-inline-empty {
        min-height: 60px;
    }

    .composer form {
        padding: 0.82rem 0.82rem 0.85rem;
        border-radius: 22px;
    }

    .composer-toolbar {
        gap: 0.42rem;
    }

    .composer-file-input {
        min-width: 0;
    }

    .icon-action {
        gap: 0.34rem;
        font-size: 0.8rem;
    }

    .bottom-nav {
        width: min(96vw, 520px);
        padding: 0.42rem;
        gap: 0.35rem;
        border-radius: 24px;
    }

    .bottom-nav-link {
        min-height: 48px;
        padding: 0.68rem 0.55rem;
        border-radius: 18px;
        font-size: 0.88rem;
    }

    .profile-pill .bottom-nav-label {
        display: none;
    }

    .profile-banner {
        min-height: 168px;
        padding: 0.8rem 0.85rem 0.92rem;
        border-radius: 22px;
    }

    .profile-banner-content {
        max-width: 100%;
    }

    .profile-header-main {
        gap: 0.72rem;
    }

    .profile-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.52rem;
    }

    .profile-summary h2 {
        font-size: 1.72rem;
    }

    .profile-summary p {
        font-size: 1rem;
    }

    .compact-meta {
        gap: 0.5rem;
        font-size: 0.92rem;
    }

    .profile-timeline-card {
        margin-top: 0.05rem;
        padding: 0.28rem 0.72rem 0.72rem;
    }

    .feed-header,
    .profile-timeline-head {
        gap: 0.35rem;
    }

    .empty-state-card {
        padding: 0.85rem 0.9rem;
    }

    .auth-brand-mark {
        width: min(72vw, 320px);
    }

    .post-head,
    .feed-header {
        align-items: flex-start;
    }

    .search-page {
        gap: 0.55rem;
    }

    .search-topbar {
        margin-bottom: 0;
    }

    .search-discover-grid {
        gap: 0.55rem;
    }

    .comments-inline-list {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .comment-thread-item {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 0.6rem;
    }

    .comment-thread-avatar .user-avatar,
    .comment-thread-avatar .emoji-avatar {
        width: 32px;
        height: 32px;
    }

    .comment-thread-avatar .emoji-avatar {
        font-size: 0.82rem;
    }

    .comment-thread-head {
        align-items: flex-start;
        gap: 0.24rem 0.4rem;
    }

    .comment-thread-time {
        width: 100%;
        margin-left: 0;
        font-size: 0.76rem;
    }

    .comment-thread-actions {
        flex-wrap: wrap;
        gap: 0.5rem 0.75rem;
    }

    .comment-replies summary {
        display: inline-flex;
        width: fit-content;
        max-width: 100%;
        white-space: normal;
        line-height: 1.25;
    }

    .comment-replies-list {
        gap: 0.6rem;
    }

    .nested-comment {
        padding: 0;
    }

    .nested-comment .comment-thread-main {
        padding-left: 0.72rem;
    }

    .inline-comments-composer {
        grid-template-columns: 32px minmax(0, 1fr) auto;
        gap: 0.55rem;
    }

    .inline-comments-composer .user-avatar,
    .inline-comments-composer .emoji-avatar {
        width: 32px;
        height: 32px;
    }

    .comments-compose-main {
        min-width: 0;
    }

    .comments-compose-main input[type="text"] {
        min-width: 0;
        padding: 0.68rem 0.8rem;
    }

    .comments-post-button {
        min-height: 38px;
        padding: 0.6rem 0.78rem;
    }
}

@media (min-width: 1101px) {
    .page-shell {
        padding-bottom: calc(8.25rem + var(--safe-bottom));
    }

    .app-main-shell {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }

    .bottom-nav {
        width: min(430px, calc(100vw - 2.5rem));
        bottom: max(1rem, calc(var(--safe-bottom) + 0.55rem));
        padding: 0.42rem;
        gap: 0.32rem;
        border-radius: 26px;
        box-shadow: 0 18px 42px rgba(11, 61, 145, 0.16);
    }

    .bottom-nav-link {
        min-height: 46px;
        padding: 0.62rem 0.45rem;
        border-radius: 18px;
        font-size: 0.92rem;
    }

    .profile-page {
        gap: 0.9rem;
    }

    .profile-banner-content {
        width: 100%;
        max-width: 100%;
    }

    .profile-banner {
        min-height: 196px;
        padding: 0.78rem 1rem 0.9rem;
    }

    .profile-actions-card {
        padding: 0.72rem 0.9rem;
    }

    .profile-actions-row {
        display: grid;
        grid-template-columns: repeat(4, max-content) minmax(0, 1fr);
        align-items: center;
        column-gap: 0.6rem;
        row-gap: 0.55rem;
    }

    .profile-actions-row .button,
    .profile-actions-row button,
    .profile-actions-row a.button {
        min-height: 40px;
        padding: 0.6rem 0.92rem;
    }

    .profile-report-details {
        justify-self: end;
        margin-left: 0;
    }

    .profile-timeline-card {
        padding-bottom: 1rem;
    }
}
