:root {
    --bg: #050505;
    --panel: rgba(18, 18, 18, 0.9);
    --panel-strong: rgba(25, 25, 25, 0.95);
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.18);
    --text: #f6f6f6;
    --muted: #b4b4b4;
    --dim: #7f7f7f;
    --accent: #ffffff;
    --accent-soft: rgba(255, 255, 255, 0.08);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --font: "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
    --site-theme-page-rgb: 5, 5, 5;
    --site-theme-surface-rgb: 18, 18, 18;
    --site-theme-surface-strong-rgb: 25, 25, 25;
    --site-theme-accent-rgb: 255, 255, 255;
    --site-theme-accent: #ffffff;
    --site-theme-outline-rgb: 255, 255, 255;
    --site-theme-outline: #ffffff;
    --site-theme-secondary-rgb: 255, 255, 255;
    --site-theme-secondary: #ffffff;
    --site-theme-primary-action: #ffffff;
    --site-theme-button-text: #080808;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: #050505;
    color-scheme: dark;
}

html {
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
}

body {
    min-height: 100dvh;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.045), transparent 34%),
        radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.035), transparent 24%),
        linear-gradient(160deg, #0c0c0c 0%, #040404 45%, #0f0f0f 100%);
    background-color: #050505;
    color: var(--text);
    font-family: var(--font);
    overflow-x: hidden;
    overflow-y: visible;
    overscroll-behavior-x: none;
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.page-shell {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
    overflow-y: visible;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 34%),
        radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.03), transparent 24%),
        linear-gradient(160deg, #0c0c0c 0%, #040404 45%, #0f0f0f 100%);
}

.page-shell::before,
.page-shell::after,
.page-shell .dust-layer,
.page-shell .dust-layer::before,
.page-shell .dust-layer::after {
    content: "";
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 0;
}

.page-shell::before {
    inset: auto;
    width: 30rem;
    height: 30rem;
    top: -12rem;
    left: -8rem;
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.6;
    background: rgba(255, 255, 255, 0.05);
}

.page-shell::after {
    inset: auto;
    width: 26rem;
    height: 26rem;
    right: -10rem;
    bottom: -12rem;
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.6;
    background: rgba(255, 255, 255, 0.04);
}

.page-shell .dust-layer {
    z-index: 0;
    opacity: 0.6;
    background-image:
        radial-gradient(circle at 12% 24%, rgba(255, 255, 255, 0.16) 0, rgba(255, 255, 255, 0.16) 1px, transparent 2px),
        radial-gradient(circle at 28% 62%, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 1px, transparent 2px),
        radial-gradient(circle at 61% 18%, rgba(255, 255, 255, 0.11) 0, rgba(255, 255, 255, 0.11) 1.2px, transparent 2.4px),
        radial-gradient(circle at 82% 46%, rgba(255, 255, 255, 0.09) 0, rgba(255, 255, 255, 0.09) 1.2px, transparent 2.3px),
        radial-gradient(circle at 72% 78%, rgba(255, 255, 255, 0.14) 0, rgba(255, 255, 255, 0.14) 1px, transparent 2px),
        radial-gradient(circle at 41% 86%, rgba(255, 255, 255, 0.1) 0, rgba(255, 255, 255, 0.1) 1.2px, transparent 2px);
    background-size: 100% 100%;
    animation: dustFloatPrimary 24s linear infinite;
}

.page-shell .dust-layer::before {
    opacity: 0.45;
    background-image:
        radial-gradient(circle at 18% 72%, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0.12) 1px, transparent 2px),
        radial-gradient(circle at 34% 16%, rgba(255, 255, 255, 0.1) 0, rgba(255, 255, 255, 0.1) 1.1px, transparent 2px),
        radial-gradient(circle at 56% 58%, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 1px, transparent 2px),
        radial-gradient(circle at 77% 23%, rgba(255, 255, 255, 0.11) 0, rgba(255, 255, 255, 0.11) 1.3px, transparent 2.2px),
        radial-gradient(circle at 88% 84%, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 1px, transparent 2px);
    animation: dustFloatSecondary 34s linear infinite;
}

.page-shell .dust-layer::after {
    opacity: 0.3;
    background-image:
        radial-gradient(circle at 9% 44%, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0.18) 1.4px, transparent 2.4px),
        radial-gradient(circle at 47% 34%, rgba(255, 255, 255, 0.09) 0, rgba(255, 255, 255, 0.09) 1.2px, transparent 2px),
        radial-gradient(circle at 69% 67%, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0.12) 1.2px, transparent 2px),
        radial-gradient(circle at 91% 17%, rgba(255, 255, 255, 0.13) 0, rgba(255, 255, 255, 0.13) 1px, transparent 2px);
    filter: blur(0.2px);
    animation: dustFloatTertiary 42s linear infinite;
}

.site-header {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.1rem 0 0;
}

.site-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.brand-mark {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #1a1a1a 0%, #0b0b0b 100%);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.brand-text {
    min-width: 0;
}

.brand-text strong,
.brand-text span {
    display: block;
}

.brand-text strong {
    font-size: 0.97rem;
    font-weight: 700;
}

.brand-text span {
    color: var(--muted);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link {
    color: var(--muted);
    padding: 0.68rem 0.9rem;
    border-radius: 999px;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
    border: 1px solid transparent;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.nav-link.is-current {
    color: var(--bg);
    background: var(--accent);
    border-color: rgba(255, 255, 255, 0.25);
}

.nav-link.is-hidden {
    display: none;
}

[hidden] {
    display: none !important;
}

select,
select option {
    background: #080808;
    color: var(--text);
}

select:disabled,
select option:disabled {
    color: #777;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-main {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 1.6rem;
    align-items: stretch;
}

.hero-card,
.content-card,
.mini-card,
.news-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.9), rgba(10, 10, 10, 0.95));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-card {
    padding: 2rem;
}

.hero-card h1,
.page-heading {
    margin: 0;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.hero-card h1 span,
.page-heading span {
    display: block;
    color: #a8a8a8;
}

.lead {
    margin: 1.15rem 0 0;
    max-width: 40rem;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.15rem;
    padding: 0.95rem 1.2rem;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button-link:hover,
.button-link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.28);
}

.button-link.primary {
    background: linear-gradient(180deg, #ffffff 0%, #d7d7d7 100%);
    color: #050505;
    font-weight: 700;
}

.button-link.secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.pill-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.48rem 0.82rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
}

.pill::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

.content-card,
.mini-card,
.news-card {
    padding: 1.5rem;
}

.stack {
    display: grid;
    gap: 1.2rem;
}

.section-block {
    margin-top: 1.6rem;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-header h2 {
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    letter-spacing: -0.04em;
}

.section-header p {
    margin: 0;
    color: var(--muted);
}

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

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

.mini-card h3,
.content-card h3,
.news-card h3 {
    margin: 0;
    font-size: 1.1rem;
}

.mini-card p,
.content-card p,
.news-card p,
.stat-label,
.meta {
    margin: 0.75rem 0 0;
    color: var(--muted);
    line-height: 1.7;
}

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

.stat {
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.stat-label {
    margin-top: 0.35rem;
    font-size: 0.9rem;
}

.list {
    margin: 0.9rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.7rem;
}

.list li {
    position: relative;
    padding-left: 1.1rem;
    color: var(--muted);
    line-height: 1.7;
}

.list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: #ffffff;
}

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

.news-card .meta {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.shell-footer {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 0 0 2rem;
    color: var(--dim);
    font-size: 0.9rem;
}

.shell-footer-inner {
    border-top: 1px solid var(--line);
    padding-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

@keyframes dustFloatPrimary {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-1.4%, 1.2%, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

@keyframes dustFloatSecondary {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(1.6%, -1.2%, 0) scale(1.01); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes dustFloatTertiary {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-1.2%, -1.4%, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

@media (max-width: 900px) {
    .site-header-bar {
        flex-direction: column;
        align-items: stretch;
        border-radius: 28px;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .hero-grid,
    .card-grid,
    .news-grid,
    .two-grid {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .site-header {
        width: min(100% - 1rem, 1200px);
    }

    .site-header-bar {
        padding: 0.85rem;
    }

    .brand-text span {
        font-size: 0.7rem;
    }

    .site-main {
        width: min(100% - 1rem, 1200px);
        padding-top: 1.25rem;
    }

    .hero-card,
    .content-card,
    .mini-card,
    .news-card {
        padding: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-shell .dust-layer,
    .page-shell .dust-layer::before,
    .page-shell .dust-layer::after {
        animation: none;
    }
}

.nav-link.is-hidden {
    display: none;
}

.nav-account-shell {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 0.15rem;
}

.nav-account-button {
    min-height: 3rem;
    padding: 0.35rem 0.55rem 0.35rem 0.4rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.nav-account-button:hover,
.nav-account-button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.05);
}

.nav-avatar,
.account-avatar-preview {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, #1d1d1d 0%, #0a0a0a 100%);
    display: inline-grid;
    place-items: center;
    overflow: hidden;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text);
    flex: 0 0 auto;
}

.nav-avatar img,
.account-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nav-account-copy {
    display: grid;
    text-align: left;
    min-width: 0;
}

.nav-account-copy strong,
.nav-account-copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-account-copy strong {
    font-size: 0.9rem;
    font-weight: 700;
}

.nav-account-copy span {
    color: var(--muted);
    font-size: 0.78rem;
}

.nav-account-menu {
    position: absolute;
    top: calc(100% + 0.7rem);
    right: 0;
    width: min(320px, calc(100vw - 2rem));
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.98), rgba(8, 8, 8, 0.98));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    z-index: 5;
}

.nav-account-menu[hidden] {
    display: none;
}

.nav-menu-profile {
    display: grid;
    gap: 0.25rem;
    padding: 0.35rem 0.35rem 0.75rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 0.65rem;
}

.nav-menu-profile strong {
    font-size: 1rem;
}

.nav-menu-profile span {
    color: var(--muted);
    font-size: 0.9rem;
}

.nav-menu-role {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.3rem;
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.nav-menu-role::before {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: #ffffff;
}

.nav-menu-actions {
    display: grid;
    gap: 0.45rem;
}

.nav-role-emulation {
    display: grid;
    gap: 0.65rem;
    padding: 0.75rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.025);
}

.nav-role-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

.nav-role-option {
    min-height: 2.35rem;
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font: inherit;
    font-size: 0.84rem;
    cursor: pointer;
}

.nav-role-option:hover,
.nav-role-option:focus-visible,
.nav-role-option.is-active {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
}

.role-emulation-bar {
    position: fixed;
    top: 0.8rem;
    left: 50%;
    z-index: 80;
    transform: translateX(-50%);
    padding: 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(8, 8, 8, 0.92);
    box-shadow: var(--shadow);
}

.site-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.74);
    backdrop-filter: blur(10px);
}

.site-dialog {
    width: min(100%, 28rem);
    padding: 1.4rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(22, 22, 22, 0.98), rgba(8, 8, 8, 0.98));
    box-shadow: var(--shadow);
}

.site-dialog h2 {
    margin: 0;
    font-size: 1.45rem;
    letter-spacing: -0.03em;
}

.site-dialog p {
    margin: 1rem 0 1.2rem;
    color: var(--text);
    line-height: 1.55;
}

.site-dialog-button {
    min-height: 3rem;
    padding: 0.85rem 1.05rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, #ffffff 0%, #d8d8d8 100%);
    color: #050505;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.nav-menu-link,
.nav-menu-button {
    min-height: 2.9rem;
    padding: 0.8rem 0.95rem;
    border-radius: 16px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.nav-menu-link:hover,
.nav-menu-button:hover,
.nav-menu-link:focus-visible,
.nav-menu-button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
}

.nav-menu-button {
    font: inherit;
}

.nav-menu-kicker {
    color: var(--dim);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.nav-notifications-link {
    position: relative;
}

.nav-notifications-link.has-unread {
    padding-right: 2.9rem;
}

.nav-notification-count {
    position: absolute;
    top: 0.3rem;
    right: 0.35rem;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.28rem;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: #ffffff;
    color: #080808;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
}

.nav-notification-count[hidden] {
    display: none;
}

.page-status {
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    line-height: 1.65;
}

.page-status[hidden] {
    display: none;
}

.page-status[data-state="success"] {
    border-color: rgba(92, 214, 159, 0.35);
    background: rgba(92, 214, 159, 0.08);
    color: #d7f8e8;
}

.page-status[data-state="error"] {
    border-color: rgba(255, 122, 122, 0.35);
    background: rgba(255, 122, 122, 0.08);
    color: #ffd6d6;
}

.page-status[data-state="info"] {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #d8d8d8;
}

@media (max-width: 900px) {
    .nav-account-shell {
        margin-left: 0;
    }
}

@media (max-width: 560px) {
    .nav-account-copy {
        display: none;
    }

    .nav-account-button {
        padding-right: 0.45rem;
    }
}

.nav-link.is-hidden {
    display: none;
}

.nav-account-shell {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 0.15rem;
}

.nav-account-button {
    min-height: 3rem;
    padding: 0.35rem 0.55rem 0.35rem 0.4rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.nav-account-button:hover,
.nav-account-button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.05);
}

.nav-avatar,
.account-avatar-preview {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, #1d1d1d 0%, #0a0a0a 100%);
    display: inline-grid;
    place-items: center;
    overflow: hidden;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text);
    flex: 0 0 auto;
}

.nav-avatar img,
.account-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nav-account-copy {
    display: grid;
    text-align: left;
    min-width: 0;
}

.nav-account-copy strong,
.nav-account-copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-account-copy strong {
    font-size: 0.9rem;
    font-weight: 700;
}

.nav-account-copy span {
    color: var(--muted);
    font-size: 0.78rem;
}

.nav-account-menu {
    position: absolute;
    top: calc(100% + 0.7rem);
    right: 0;
    width: min(320px, calc(100vw - 2rem));
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.98), rgba(8, 8, 8, 0.98));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    z-index: 5;
}

.nav-account-menu[hidden] {
    display: none;
}

.nav-menu-profile {
    display: grid;
    gap: 0.25rem;
    padding: 0.35rem 0.35rem 0.75rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 0.65rem;
}

.nav-menu-profile strong {
    font-size: 1rem;
}

.nav-menu-profile span {
    color: var(--muted);
    font-size: 0.9rem;
}

.nav-menu-role {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.3rem;
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.nav-menu-role::before {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: #ffffff;
}

.nav-menu-actions {
    display: grid;
    gap: 0.45rem;
}

.nav-menu-link,
.nav-menu-button {
    min-height: 2.9rem;
    padding: 0.8rem 0.95rem;
    border-radius: 16px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.nav-menu-link:hover,
.nav-menu-button:hover,
.nav-menu-link:focus-visible,
.nav-menu-button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
}

.nav-menu-button {
    font: inherit;
}

.nav-menu-kicker {
    color: var(--dim);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.page-status {
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    line-height: 1.65;
}

.page-status[hidden] {
    display: none;
}

.page-status[data-state="success"] {
    border-color: rgba(92, 214, 159, 0.35);
    background: rgba(92, 214, 159, 0.08);
    color: #d7f8e8;
}

.page-status[data-state="error"] {
    border-color: rgba(255, 122, 122, 0.35);
    background: rgba(255, 122, 122, 0.08);
    color: #ffd6d6;
}

.page-status[data-state="info"] {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #d8d8d8;
}

@media (max-width: 900px) {
    .nav-account-shell {
        margin-left: 0;
    }
}

@media (max-width: 560px) {
    .nav-account-copy {
        display: none;
    }

    .nav-account-button {
        padding-right: 0.45rem;
    }
}

.nav-account-handle.nav-account-handle,
.identity-line.identity-line {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    flex-wrap: nowrap;
}

.verification-badge.verification-badge {
    --verification-fill: #ffffff;
    width: 17px;
    min-width: 17px;
    max-width: 17px;
    height: 17px;
    min-height: 17px;
    max-height: 17px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
    line-height: 1;
    vertical-align: middle;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
    flex: 0 0 17px;
}

.verification-badge > .verification-icon {
    width: 100%;
    height: 100%;
    display: block;
}

.verification-circle {
    fill: var(--verification-fill);
    stroke: rgba(255, 255, 255, 0.72);
    stroke-width: 1;
}

.verification-check {
    fill: none;
    stroke: #050505;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.verification-badge[data-mode="automatic"] {
    --verification-fill: #f2f2f2;
}

.count-muted {
    color: var(--muted);
}

.post-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-feed > .post-card {
    flex: 0 0 auto;
}

.post-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.92), rgba(10, 10, 10, 0.96));
    border-radius: var(--radius-lg);
    padding: 1.35rem;
    box-shadow: var(--shadow);
    min-width: 0;
}

.post-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.post-author-copy {
    min-width: 0;
}

.post-author-copy strong,
.post-author-copy span {
    display: block;
}

.post-author-copy span {
    color: var(--muted);
}

.post-date {
    color: var(--dim);
    font-size: 0.84rem;
    white-space: nowrap;
}

.post-title {
    margin: 1rem 0 0;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.post-summary,
.post-body,
.post-empty,
.comment-card p {
    margin: 0.85rem 0 0;
    color: var(--muted);
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.post-summary {
    color: var(--text);
}

.post-media-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.post-media-item {
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    padding: 0;
    cursor: zoom-in;
    display: block;
    width: 100%;
}

.post-media-item img,
.post-media-item video {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.image-viewer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    place-items: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.86);
}

.image-viewer-frame {
    max-width: min(1100px, 92vw);
    max-height: 86vh;
    overflow: auto;
    display: grid;
    place-items: center;
}

.image-viewer-frame img {
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    transform-origin: center;
    cursor: zoom-in;
    transition: transform 160ms ease;
}

.image-viewer-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: #050505;
    font-weight: 800;
    cursor: pointer;
    z-index: 72;
}

.post-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.post-action,
.composer-button {
    min-height: 2.85rem;
    padding: 0.82rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font: inherit;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.post-action:hover,
.post-action:focus-visible,
.composer-button:hover,
.composer-button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.05);
}

.post-action.is-active {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.08);
}

.download-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}

.download-tab {
    min-height: 3rem;
    padding: 0.82rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font: inherit;
    cursor: pointer;
}

.download-tab.is-active {
    background: linear-gradient(180deg, #ffffff 0%, #d8d8d8 100%);
    color: #050505;
    font-weight: 700;
}

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

.download-card {
    display: grid;
    gap: 0.8rem;
}

.download-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    border: 1px solid var(--line);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.download-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.platform-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.platform-icon {
    width: 1.45rem;
    height: 1.45rem;
    opacity: 0.95;
}

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

.screenshot-grid button {
    padding: 0;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
}

.screenshot-grid img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.download-card h3 {
    margin: 0;
}

.download-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.download-empty {
    color: var(--muted);
    line-height: 1.7;
}

.media-editor-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.72);
}

.media-editor-card {
    width: min(520px, 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #151515 0%, #080808 100%);
    box-shadow: var(--shadow);
    padding: 1.2rem;
}

.media-editor-card h3 {
    margin: 0;
}

.media-editor-card p {
    color: var(--muted);
    line-height: 1.6;
}

.media-editor-stage {
    position: relative;
    width: min(360px, 100%);
    aspect-ratio: 1;
    margin: 1rem auto;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #050505;
    touch-action: none;
}

.media-editor-stage[data-shape="circle"] {
    border-radius: 50%;
}

.media-editor-stage[data-shape="rect"] {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-md);
}

.media-editor-stage img {
    position: absolute;
    left: 50%;
    top: 50%;
    max-width: none;
    transform-origin: center;
    user-select: none;
    pointer-events: none;
}

.media-editor-controls {
    display: grid;
    gap: 0.85rem;
}

.media-editor-controls label {
    color: var(--muted);
}

.media-editor-controls input[type="range"] {
    width: 100%;
}

@media (max-width: 760px) {
    .download-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    body {
        background:
            radial-gradient(circle at 50% -18%, rgba(255, 255, 255, 0.025), transparent 28%),
            linear-gradient(180deg, #070707 0%, #030303 48%, #090909 100%);
        background-color: #050505;
    }

    .page-shell {
        background:
            radial-gradient(circle at 50% -18%, rgba(255, 255, 255, 0.024), transparent 28%),
            linear-gradient(180deg, #070707 0%, #030303 48%, #090909 100%);
    }

    .page-shell::before,
    .page-shell::after {
        opacity: 0.22;
    }

    .page-shell .dust-layer {
        opacity: 0.38;
    }

    .site-header {
        padding-top: 0.75rem;
        padding-top: calc(0.75rem + env(safe-area-inset-top));
    }

    .site-header-bar {
        width: 100%;
        padding: 0.75rem;
        align-items: flex-start;
        border-radius: 24px;
    }

    .brand {
        width: 100%;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
        gap: 0.35rem;
    }

    .nav-link {
        padding: 0.58rem 0.72rem;
        font-size: 0.9rem;
    }

    .nav-account-shell {
        width: 100%;
        margin-left: 0;
    }

    .nav-account-button {
        max-width: 100%;
    }

    .site-main,
    .account-main {
        width: min(100% - 1rem, 1200px);
        padding-top: 1rem;
    }

    .hero-grid,
    .account-layout,
    .account-form-grid,
    .composer-grid,
    .post-edit-grid,
    .news-featured-card,
    .news-article-layout {
        grid-template-columns: 1fr;
    }

    .hero-card,
    .content-card,
    .mini-card,
    .news-card,
    .account-card,
    .composer-card {
        padding: 1rem;
        border-radius: 22px;
    }

    .hero-card h1,
    .page-heading,
    .account-header h1 {
        font-size: clamp(2.2rem, 13vw, 3.8rem);
        letter-spacing: -0.04em;
    }

    .lead,
    .account-header p {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .hero-actions,
    .account-actions,
    .post-actions {
        align-items: stretch;
    }

    .button-link,
    .account-button,
    .post-action {
        width: 100%;
    }

    .profile-stats,
    .post-media-grid,
    .stat-grid,
    .card-grid {
        grid-template-columns: 1fr;
    }

    .media-editor-card {
        padding: 1rem;
    }

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

    .post-date {
        white-space: normal;
    }

    .post-card,
    .comment-card,
    .comment-input-row,
    .post-author-copy {
        min-width: 0;
        max-width: 100%;
    }

    .comment-card.is-reply {
        margin-left: min(0.75rem, 3vw);
    }

    .comment-media-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 260px;
    }
}

.comment-list {
    margin-top: 1rem;
    display: grid;
    gap: 0.8rem;
}

.comment-card {
    position: relative;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.comment-card.is-reply {
    margin-left: min(2rem, 6vw);
}

.comment-card.is-hidden-comment {
    border-style: dashed;
    background: rgba(255, 255, 255, 0.02);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.88rem;
}

.comment-author-avatar {
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
}

.comment-author-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.comment-author-copy {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.comment-author-link {
    color: var(--muted);
    text-decoration: none;
}

.comment-author-avatar:hover,
.comment-author-avatar:focus-visible,
.comment-author-link:hover,
.comment-author-link:focus-visible {
    color: var(--text);
    text-decoration: underline;
}

.comment-date {
    margin-left: auto;
    color: var(--dim);
}

.post-card.is-notification-target {
    border-color: var(--site-theme-outline) !important;
    box-shadow: 0 0 0 3px rgba(var(--site-theme-outline-rgb), 0.28), var(--shadow);
}

@media (max-width: 560px) {
    .comment-date {
        width: 100%;
        margin-left: 2.9rem;
    }
}

.comment-actions {
    margin-top: 0.75rem;
    padding-right: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.comment-action {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

.comment-action:hover,
.comment-action:focus-visible,
.comment-action.is-active {
    color: var(--text);
    text-decoration: underline;
}

.comment-media-grid {
    margin-top: 0.85rem;
    display: grid;
    grid-template-columns: minmax(0, 260px);
    gap: 0.65rem;
}

.comment-media-item {
    padding: 0;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    cursor: zoom-in;
}

.comment-media-item img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    display: block;
}

.comment-hidden-copy {
    color: var(--muted);
    font-style: italic;
}

.comment-delete-button {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    width: 2rem;
    height: 2rem;
    padding: 0.42rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.comment-delete-button:hover,
.comment-delete-button:focus-visible {
    border-color: rgba(255, 122, 122, 0.45);
    background: rgba(255, 122, 122, 0.08);
}

.comment-delete-button img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.composer-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.92), rgba(10, 10, 10, 0.96));
    border-radius: var(--radius-lg);
    padding: 1.35rem;
    box-shadow: var(--shadow);
}

.composer-form {
    display: grid;
    gap: 0.95rem;
}

.composer-textarea {
    min-height: 10rem;
    resize: vertical;
}

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

.composer-note,
.file-hint {
    color: var(--dim);
    font-size: 0.88rem;
    line-height: 1.7;
}

.comment-form {
    display: grid;
    gap: 0.7rem;
    margin-top: 1rem;
}

.comment-input-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem;
    align-items: start;
}

.comment-image-button {
    width: 3.2rem;
    height: 3.2rem;
    padding: 0.68rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.comment-image-button:hover,
.comment-image-button:focus-visible {
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.07);
}

.comment-image-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.comment-file-name {
    color: var(--dim);
    font-size: 0.85rem;
}

.comment-form textarea,
.composer-form textarea {
    min-height: 5.4rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    outline: none;
    font: inherit;
    resize: vertical;
}

.comment-form textarea:focus,
.composer-form textarea:focus {
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

@media (max-width: 900px) {
    .post-media-grid,
    .composer-grid {
        grid-template-columns: 1fr;
    }

    .comment-input-row {
        grid-template-columns: 1fr;
    }

    .comment-image-button {
        width: 3rem;
        height: 3rem;
    }
}

.news-featured-card,
.news-summary-card,
.news-body-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.92), rgba(10, 10, 10, 0.96));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.news-featured-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 1rem;
    padding: 1.35rem;
}

.news-featured-copy {
    display: grid;
    gap: 0.9rem;
    min-width: 0;
}

.news-featured-copy h3,
.news-summary-card h3 {
    margin: 0;
    font-size: clamp(1.5rem, 2.6vw, 2.35rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.news-featured-copy .post-summary,
.news-featured-copy .post-body {
    margin: 0;
}

.news-featured-media {
    min-height: 100%;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    padding: 0;
    cursor: zoom-in;
    width: 100%;
    text-align: inherit;
}

.news-featured-media img,
.news-featured-media video {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
}

.news-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(320px, 440px);
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scroll-snap-type: x proximity;
}

.news-rail::-webkit-scrollbar {
    height: 0.8rem;
}

.news-rail::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.news-summary-card {
    display: grid;
    align-content: space-between;
    gap: 0.95rem;
    padding: 1.35rem;
    min-height: 21rem;
    scroll-snap-align: start;
}

.news-card-footer,
.news-card-buttons,
.news-card-meta {
    display: flex;
    gap: 0.75rem;
}

.news-card-footer {
    align-items: end;
    justify-content: space-between;
    flex-wrap: wrap;
}

.news-card-buttons {
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.news-card-meta {
    flex-direction: column;
    align-items: flex-start;
}

.news-card-date,
.news-author-line span:last-child {
    color: var(--muted);
    font-size: 0.88rem;
}

.news-author-line {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.news-view-link {
    min-height: 2.85rem;
    padding-inline: 1rem;
}

.news-card-actions {
    margin-top: 0;
}

.news-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.7fr);
    gap: 1rem;
    align-items: start;
}

.news-article-main,
.news-article-side {
    display: grid;
    gap: 1rem;
}

.news-post-title {
    font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.news-post-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.news-body-card {
    padding: 1.35rem;
}

.news-full-body {
    margin: 0;
    white-space: normal;
}

@media (max-width: 900px) {
    .news-featured-card,
    .news-article-layout {
        grid-template-columns: 1fr;
    }

    .news-featured-media img,
    .news-featured-media video {
        min-height: 220px;
    }

    .news-rail {
        grid-auto-columns: minmax(280px, 92vw);
    }
}

.news-edited-label {
    margin: 0;
    color: var(--dim);
    font-size: 0.88rem;
}

.post-owner-tools {
    display: grid;
    gap: 0.8rem;
}

.post-owner-actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.post-edit-form {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.post-edit-form[hidden] {
    display: none;
}

.post-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.post-edit-form label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.post-edit-form input,
.post-edit-form textarea {
    width: 100%;
    min-height: 3.15rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    outline: none;
    font: inherit;
}

.post-edit-form textarea {
    min-height: 8rem;
    resize: vertical;
}

.post-edit-form input:focus,
.post-edit-form textarea:focus {
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.post-action.is-danger {
    border-color: rgba(255, 122, 122, 0.28);
    background: rgba(255, 122, 122, 0.08);
}

body[data-site-theme="red"] {
    --site-theme-page-rgb: 34, 7, 11;
    --site-theme-surface-rgb: 52, 12, 18;
    --site-theme-surface-strong-rgb: 65, 16, 23;
    --site-theme-accent-rgb: 239, 100, 111;
    --site-theme-accent: #ef646f;
}

body[data-site-theme="purple"] {
    --site-theme-page-rgb: 25, 12, 40;
    --site-theme-surface-rgb: 43, 22, 65;
    --site-theme-surface-strong-rgb: 55, 28, 82;
    --site-theme-accent-rgb: 185, 132, 239;
    --site-theme-accent: #b984ef;
}

body[data-site-theme="white"] {
    --site-theme-page-rgb: 44, 44, 44;
    --site-theme-surface-rgb: 66, 66, 66;
    --site-theme-surface-strong-rgb: 80, 80, 80;
    --site-theme-accent-rgb: 245, 245, 245;
    --site-theme-accent: #f5f5f5;
}

body[data-site-theme="yellow"] {
    --site-theme-page-rgb: 37, 31, 6;
    --site-theme-surface-rgb: 59, 49, 9;
    --site-theme-surface-strong-rgb: 73, 61, 12;
    --site-theme-accent-rgb: 239, 207, 91;
    --site-theme-accent: #efcf5b;
}

body[data-site-theme="green"] {
    --site-theme-page-rgb: 7, 31, 19;
    --site-theme-surface-rgb: 11, 50, 31;
    --site-theme-surface-strong-rgb: 15, 64, 40;
    --site-theme-accent-rgb: 105, 210, 149;
    --site-theme-accent: #69d295;
}

body[data-site-theme="pink"] {
    --site-theme-page-rgb: 39, 12, 27;
    --site-theme-surface-rgb: 62, 20, 43;
    --site-theme-surface-strong-rgb: 77, 25, 53;
    --site-theme-accent-rgb: 239, 143, 190;
    --site-theme-accent: #ef8fbe;
}

body[data-site-theme="blue"] {
    --site-theme-page-rgb: 8, 20, 41;
    --site-theme-surface-rgb: 13, 34, 65;
    --site-theme-surface-strong-rgb: 17, 43, 81;
    --site-theme-accent-rgb: 111, 160, 230;
    --site-theme-accent: #6fa0e6;
}

body[data-site-theme="cyan"] {
    --site-theme-page-rgb: 5, 31, 34;
    --site-theme-surface-rgb: 9, 50, 54;
    --site-theme-surface-strong-rgb: 12, 63, 68;
    --site-theme-accent-rgb: 104, 215, 222;
    --site-theme-accent: #68d7de;
}

body[data-site-theme]:not([data-site-theme="black"]) {
    --line: rgba(var(--site-theme-outline-rgb), 0.3);
    --line-strong: rgba(var(--site-theme-outline-rgb), 0.48);
    --accent: var(--site-theme-accent);
    --accent-soft: rgba(var(--site-theme-accent-rgb), 0.16);
    --panel: rgba(var(--site-theme-surface-rgb), 0.94);
    --panel-strong: rgba(var(--site-theme-surface-strong-rgb), 0.97);
    background: rgb(var(--site-theme-page-rgb));
    background-color: rgb(var(--site-theme-page-rgb));
}

body[data-site-theme]:not([data-site-theme="black"]) .page-shell {
    background: rgb(var(--site-theme-page-rgb)) !important;
    background-color: rgb(var(--site-theme-page-rgb)) !important;
}

body[data-site-theme]:not([data-site-theme="black"]) .page-shell::before,
body[data-site-theme]:not([data-site-theme="black"]) .page-shell::after {
    background: rgba(var(--site-theme-accent-rgb), 0.08);
}

body[data-site-theme]:not([data-site-theme="black"]) .site-header-bar,
body[data-site-theme]:not([data-site-theme="black"]) .hero-card,
body[data-site-theme]:not([data-site-theme="black"]) .content-card,
body[data-site-theme]:not([data-site-theme="black"]) .mini-card,
body[data-site-theme]:not([data-site-theme="black"]) .news-card,
body[data-site-theme]:not([data-site-theme="black"]) .post-card,
body[data-site-theme]:not([data-site-theme="black"]) .download-card,
body[data-site-theme]:not([data-site-theme="black"]) .composer-card,
body[data-site-theme]:not([data-site-theme="black"]) .news-featured-card,
body[data-site-theme]:not([data-site-theme="black"]) .news-summary-card,
body[data-site-theme]:not([data-site-theme="black"]) .news-body-card,
body[data-site-theme]:not([data-site-theme="black"]) .nav-account-menu,
body[data-site-theme]:not([data-site-theme="black"]) .site-dialog,
body[data-site-theme]:not([data-site-theme="black"]) .media-editor-card {
    border-color: rgba(var(--site-theme-outline-rgb), 0.36) !important;
    background: rgb(var(--site-theme-surface-rgb)) !important;
}

body[data-site-theme]:not([data-site-theme="black"]) .comment-card,
body[data-site-theme]:not([data-site-theme="black"]) .post-edit-form,
body[data-site-theme]:not([data-site-theme="black"]) .nav-menu-link,
body[data-site-theme]:not([data-site-theme="black"]) .nav-menu-button {
    border-color: rgba(var(--site-theme-outline-rgb), 0.24) !important;
    background: rgba(0, 0, 0, 0.24) !important;
}

body[data-site-theme]:not([data-site-theme="black"]) input,
body[data-site-theme]:not([data-site-theme="black"]) textarea,
body[data-site-theme]:not([data-site-theme="black"]) select {
    border-color: rgba(var(--site-theme-outline-rgb), 0.28) !important;
    background-color: rgba(0, 0, 0, 0.28) !important;
}

body[data-site-theme]:not([data-site-theme="black"]) .button.primary,
body[data-site-theme]:not([data-site-theme="black"]) .auth-button,
body[data-site-theme]:not([data-site-theme="black"]) .site-dialog-button {
    border-color: var(--site-theme-outline) !important;
    background: var(--site-theme-primary-action) !important;
    color: var(--site-theme-button-text) !important;
}

body.has-secondary-theme {
    --line: rgba(var(--site-theme-outline-rgb), 0.3);
    --line-strong: rgba(var(--site-theme-outline-rgb), 0.48);
}

body.has-secondary-theme .button.primary,
body.has-secondary-theme .auth-button,
body.has-secondary-theme .site-dialog-button,
body.has-secondary-theme .account-button.primary,
body.has-secondary-theme .account-tab.is-active {
    border-color: var(--site-theme-outline) !important;
    background: var(--site-theme-primary-action) !important;
    color: var(--site-theme-secondary) !important;
}
