:root {
    color-scheme: dark;
    --bg: #050a0e;
    --bg-soft: #081018;
    --panel: #0b1218;
    --panel-strong: #0f1821;
    --text: #f4f7fb;
    --muted: #a8b3c2;
    --muted-strong: #c6ced9;
    --line: #1d2a36;
    --line-soft: #14212d;
    --accent: #1e8cff;
    --accent-strong: #0f6edb;
    --green: #49d485;
    --purple: #9b75ff;
    --yellow: #f5c84b;
    --shadow: 0 24px 90px rgba(0, 0, 0, 0.34);
    --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-heading: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-ui: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
    --font-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
    --font-brand: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
    --font-command: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --space-header-main: clamp(48px, 5.5vw, 64px);
    --space-section: clamp(42px, 5vw, 62px);
    --space-before-footer: clamp(64px, 7vw, 84px);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: #050a0e;
}

body::before {
    position: fixed;
    top: 13vh;
    right: max(24px, 5vw);
    z-index: 0;
    width: min(38rem, 46vw);
    color: rgba(166, 211, 245, 0.068);
    content: "> build notes\A { automation: true }\A prompt -> output\A AI / Code / Infra\A review && ship";
    font-family: var(--font-mono);
    font-size: clamp(0.72rem, 1vw, 0.9rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 2.15;
    pointer-events: none;
    text-align: left;
    text-transform: none;
    white-space: pre;
    transform: rotate(-4deg);
    animation: codeTextureDrift 48s ease-in-out infinite alternate;
}

.site-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at 14% 7%, rgba(30, 140, 255, 0.225), transparent 31rem),
        radial-gradient(circle at 82% 18%, rgba(85, 183, 255, 0.102), transparent 30rem),
        radial-gradient(circle at 54% 98%, rgba(73, 212, 133, 0.062), transparent 35rem),
        linear-gradient(180deg, #050a0e 0%, #05090d 44%, #070b0f 100%);
    background-size: 125% 125%, 118% 118%, 120% 120%, 100% 100%;
    animation: backgroundField 44s ease-in-out infinite alternate;
}

.site-background::before {
    position: absolute;
    inset: -22%;
    background:
        radial-gradient(circle at 24% 34%, rgba(30, 140, 255, 0.224), transparent 25rem),
        radial-gradient(circle at 76% 64%, rgba(85, 183, 255, 0.135), transparent 31rem),
        radial-gradient(circle at 48% 54%, rgba(155, 117, 255, 0.06), transparent 35rem);
    content: "";
    filter: blur(18px);
    opacity: 0.94;
    animation: backgroundGlow 38s ease-in-out infinite alternate;
}

.site-background::after {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(122, 170, 205, 0.043) 1px, transparent 1px),
        linear-gradient(90deg, rgba(122, 170, 205, 0.032) 1px, transparent 1px),
        radial-gradient(circle at 24% 28%, rgba(255, 255, 255, 0.078) 0 1px, transparent 1.4px);
    background-size: 80px 80px, 80px 80px, 5px 5px;
    content: "";
    opacity: 0.34;
    animation: gridDrift 42s linear infinite;
    mask-image:
        radial-gradient(circle at 50% 12%, rgba(0, 0, 0, 0.82), transparent 72%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.64), transparent 82%);
}

body.bg-debug .site-background {
    outline: 1px solid rgba(85, 183, 255, 0.35);
    background:
        radial-gradient(circle at 14% 7%, rgba(30, 140, 255, 0.34), transparent 32rem),
        radial-gradient(circle at 82% 18%, rgba(85, 183, 255, 0.2), transparent 30rem),
        radial-gradient(circle at 54% 98%, rgba(73, 212, 133, 0.12), transparent 35rem),
        linear-gradient(180deg, #050a0e 0%, #05090d 44%, #070b0f 100%);
}

body.bg-debug .site-background::before {
    opacity: 1;
}

body.bg-debug .site-background::after {
    opacity: 0.48;
}

body.bg-debug::before {
    color: rgba(166, 211, 245, 0.18);
}

body.intro-running {
    overflow: hidden;
}

.site {
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

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

.site a:hover {
    color: var(--accent);
}

.site button,
.site input,
.site textarea,
.site select {
    font: inherit;
}

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

.site {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.site > main {
    flex: 1;
}

.content.single {
    padding-top: var(--space-header-main);
}

.content-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 32px;
    align-items: start;
}

.content-main {
    min-width: 0;
}

.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #050a0e;
    opacity: 1;
    visibility: visible;
    transition: opacity 500ms ease, background 500ms ease, visibility 500ms ease;
}

.intro-overlay.intro-building {
    background: rgba(5, 10, 14, 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-overlay.intro-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-prompt-card {
    width: min(760px, 100%);
    padding: 24px;
    border: 1px solid #183048;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(12, 24, 36, 0.96), rgba(6, 12, 18, 0.96)),
        #081018;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: none;
    transition: opacity 400ms ease;
}

.intro-overlay.intro-active .intro-prompt-card {
    opacity: 1;
    transform: none;
}

.intro-overlay.intro-building .intro-prompt-card {
    opacity: 0;
    transform: none;
}

.intro-prompt-label {
    margin-bottom: 10px;
    color: var(--accent);
    font-family: var(--font-command);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.intro-prompt-text {
    min-height: 74px;
    padding: 16px;
    border: 1px solid #22364a;
    border-radius: 6px;
    background: #060c12;
    color: var(--text);
    font-family: var(--font-command);
    font-size: clamp(0.94rem, 2.5vw, 1.05rem);
    font-weight: 520;
    letter-spacing: 0;
}

.intro-prompt-text::after {
    display: inline-block;
    width: 9px;
    height: 1.1em;
    margin-left: 4px;
    vertical-align: -0.16em;
    background: var(--accent);
    content: "";
    animation: introBlink 0.8s steps(2, start) infinite;
}

.intro-status {
    display: grid;
    gap: 7px;
    min-height: 132px;
    margin-top: 16px;
    color: var(--muted);
    font-family: var(--font-command);
    font-size: 0.9rem;
}

.intro-status-line {
    opacity: 0;
    animation: statusLineIn 260ms ease forwards, introPulse 900ms ease-in-out infinite;
}

@keyframes introBlink {
    50% {
        opacity: 0;
    }
}

@keyframes statusLineIn {
    to {
        opacity: 1;
    }
}

@keyframes introPulse {
    50% {
        color: var(--muted-strong);
    }
}

@keyframes backgroundGlow {
    0% {
        transform: translate3d(-1.8%, -1.2%, 0) scale(1);
    }

    100% {
        transform: translate3d(2.4%, 1.7%, 0) scale(1.045);
    }
}

@keyframes backgroundField {
    0% {
        background-position: 0% 0%, 100% 12%, 48% 100%, 50% 50%;
    }

    100% {
        background-position: 8% 4%, 88% 18%, 52% 92%, 50% 50%;
    }
}

@keyframes gridDrift {
    0% {
        background-position: 0 0, 0 0, 0 0;
    }

    100% {
        background-position: 80px 40px, 40px 80px, 12px 8px;
    }
}

@keyframes codeTextureDrift {
    0% {
        opacity: 0.72;
        transform: translate3d(0, 0, 0) rotate(-4deg);
    }

    100% {
        opacity: 0.48;
        transform: translate3d(-18px, 24px, 0) rotate(-4deg);
    }
}

.site-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 34px;
    padding: 28px 0 24px;
    border-bottom: 1px solid var(--line-soft);
}

.site-title {
    display: inline-flex;
    align-items: center;
    max-width: max-content;
    color: var(--text);
    font-family: var(--font-brand);
    font-size: 1.42rem;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    display: inline-grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 2px;
    width: 36px;
    height: 30px;
    padding: 0 6px;
    border: 1px solid rgba(85, 183, 255, 0.34);
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(15, 24, 33, 0.94), rgba(7, 13, 19, 0.94)),
        #07101a;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
    color: #6fc3ff;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 900;
}

.brand-mark i {
    display: block;
    width: 9px;
    height: 3px;
    margin-top: 12px;
    border-radius: 2px;
    background: var(--text);
}

.brand-word {
    transform: translateY(-0.02em);
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: clamp(18px, 3vw, 42px);
    color: var(--muted-strong);
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 700;
}

.site-nav a {
    position: relative;
    padding: 8px 0;
}

.site-nav a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--accent);
    content: "";
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    min-width: 0;
}

.auth-link-button,
.account-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(11, 18, 24, 0.82);
    color: var(--muted-strong);
    font-family: var(--font-ui);
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
}

.auth-link-button:hover,
.account-chip:hover {
    border-color: var(--accent);
    color: var(--text);
}

.account-menu {
    position: relative;
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 15;
    display: grid;
    min-width: 220px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 14, 20, 0.98);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.account-dropdown a,
.account-dropdown button {
    padding: 10px 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted-strong);
    font-family: var(--font-ui);
    font-size: 0.88rem;
    text-align: left;
    cursor: pointer;
}

.account-dropdown a:hover,
.account-dropdown button:hover {
    background: rgba(30, 140, 255, 0.08);
    color: var(--text);
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border: 1px solid var(--line-soft);
    border-radius: 6px;
    background: rgba(7, 13, 19, 0.58);
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 800;
}

.language-switcher a {
    min-width: 30px;
    padding: 4px 6px;
    border-radius: 4px;
    color: var(--muted);
    text-align: center;
}

.language-switcher a.is-active {
    background: rgba(30, 140, 255, 0.12);
    color: var(--text);
}

.header-search {
    position: relative;
    min-width: 0;
    width: min(240px, 100%);
}

.header-search input {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 0 14px 0 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(11, 18, 24, 0.82);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 0.9rem;
}

.header-search input:focus {
    outline: 2px solid rgba(30, 140, 255, 0.3);
    border-color: var(--accent);
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 14px;
    height: 14px;
    border: 2px solid var(--muted-strong);
    border-radius: 999px;
    transform: translateY(-56%);
}

.search-icon::after {
    position: absolute;
    right: -5px;
    bottom: -4px;
    width: 7px;
    height: 2px;
    background: var(--muted-strong);
    content: "";
    transform: rotate(45deg);
}

.hero {
    padding: var(--space-header-main) 0 var(--space-section);
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 18px;
    color: #55b7ff;
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 700;
}

.site h1,
.site h2,
.site h3,
.site p {
    margin-top: 0;
}

h1 {
    max-width: 720px;
    margin-bottom: 22px;
    font-size: clamp(2.8rem, 7vw, 5.1rem);
    line-height: 1.05;
    letter-spacing: 0;
    font-family: var(--font-heading);
}

.hero h1,
.content.single > h1,
.post-list-card h2,
.post-article h1 {
    overflow-wrap: anywhere;
    hyphens: auto;
}

.hero h1 {
    font-size: clamp(2.7rem, 6.5vw, 5rem);
}

.content.single > h1,
.post-article h1 {
    font-size: clamp(2.15rem, 5vw, 3.7rem);
    line-height: 1.08;
}

h2,
h3 {
    font-family: var(--font-heading);
}

.cursor-block {
    display: inline-block;
    width: 13px;
    height: 0.85em;
    margin-left: 12px;
    background: var(--accent);
    vertical-align: -0.08em;
}

.lead {
    max-width: 660px;
    margin-bottom: 28px;
    color: var(--muted-strong);
    font-size: clamp(1.05rem, 2vw, 1.22rem);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px 28px;
}

.button-primary,
.button-secondary,
.button-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 6px;
    font-family: var(--font-ui);
    font-size: 0.91rem;
    font-weight: 750;
}

.button-primary {
    padding: 0 22px;
    background: var(--accent-strong);
    color: white;
}

.button-primary:hover {
    background: var(--accent);
    color: white;
}

.button-secondary {
    min-width: min(260px, 100%);
    padding: 0 24px;
    border: 1px solid var(--line);
    color: var(--text);
}

.button-secondary:hover {
    border-color: var(--accent);
    background: rgba(30, 140, 255, 0.08);
}

.button-text {
    gap: 10px;
    color: var(--text);
}

.button-text span,
.post-meta a span,
.about-card a span {
    color: var(--accent);
}

.page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 32px;
}

.posts-section {
    grid-column: 1;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.posts-section h2 {
    margin-bottom: 18px;
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}

.post-feed {
    grid-column: 1;
    border-top: 1px solid var(--line);
}

.tag-feed {
    margin-top: 28px;
}

.post-list-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 34px 0;
    border-bottom: 1px solid var(--line-soft);
}

[data-more-item][hidden] {
    display: none;
}

.featured-image-frame {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #07101a;
}

.featured-image-trigger {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.featured-image-frame img,
.image-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-image {
    display: grid;
    place-items: center;
}

.post-image::before {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, transparent 0 30%, rgba(255, 255, 255, 0.05) 30% 31%, transparent 31% 100%),
        linear-gradient(90deg, rgba(30, 140, 255, 0.16), transparent),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 22px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 22px);
    content: "";
}

.post-image::after {
    position: absolute;
    inset: auto 16px 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(85, 183, 255, 0.8), transparent);
    content: "";
}

.post-image span {
    position: relative;
    color: white;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 1.8rem;
    letter-spacing: 0.16em;
}

.post-image-blue {
    background: radial-gradient(circle at 65% 70%, rgba(30, 140, 255, 0.32), transparent 46%), #06101b;
}

.post-image-green {
    background: radial-gradient(circle at 50% 48%, rgba(73, 212, 133, 0.18), transparent 44%), #06130f;
}

.post-image-purple {
    background: radial-gradient(circle at 65% 42%, rgba(155, 117, 255, 0.2), transparent 46%), #0b0b17;
}

.post-body,
.post-heading,
.post-item-body {
    min-width: 0;
}

.post-item-main {
    display: grid;
    gap: 16px;
}

.post-item-top {
    display: grid;
    grid-template-columns: minmax(210px, 310px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(20px, 3vw, 34px);
}

.post-heading {
    padding-top: 2px;
}

.post-item-body {
    display: grid;
    gap: 14px;
}

.tag {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 3px 8px;
    border-radius: 5px;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.4;
    text-transform: uppercase;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.motto {
    color: var(--muted-strong);
    font-weight: 650;
}

.tag-blue {
    background: rgba(30, 140, 255, 0.12);
    color: #4fb2ff;
}

.tag-green {
    background: rgba(73, 212, 133, 0.12);
    color: var(--green);
}

.tag-purple {
    background: rgba(155, 117, 255, 0.13);
    color: var(--purple);
}

.post-list-card h2 {
    max-width: 620px;
    margin-bottom: 10px;
    font-size: clamp(1.35rem, 2.05vw, 1.76rem);
    line-height: 1.18;
}

.post-list-card h2 a {
    overflow-wrap: anywhere;
    hyphens: auto;
}

.post-list-card p:not(.tag) {
    max-width: 700px;
    margin-bottom: 18px;
    color: var(--muted);
}

.post-list-card .post-motto {
    max-width: 760px;
    margin-bottom: 0;
    color: var(--muted-strong);
}

.post-list-card .post-excerpt {
    max-width: 760px;
    margin-bottom: 0;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-family: var(--font-ui);
    font-size: 0.9rem;
}

.post-meta a {
    margin-left: auto;
    color: #4fb2ff;
    font-weight: 700;
}

.feed-footer {
    display: flex;
    justify-content: center;
    padding: 34px 0 24px;
}

.sidebar {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: grid;
    align-content: start;
    gap: 18px;
}

.sidebar-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(11, 18, 24, 0.82);
}

.sidebar-card h2,
.site-footer h2 {
    margin-bottom: 18px;
    color: var(--text);
    font-size: 1.05rem;
}

.sidebar-card p,
.sidebar-card li,
.sidebar-card small {
    color: var(--muted);
}

.sidebar-card a {
    color: #59b7ff;
}

.form-feedback {
    min-height: 1.5rem;
    margin: 0;
    font-family: var(--font-ui);
    font-size: 0.9rem;
}

.form-feedback.is-success {
    color: var(--green);
}

.form-feedback.is-error {
    color: #ff8c8c;
}

.large-topic-list {
    margin-top: 28px;
}

.search-empty-state {
    margin-top: 28px;
}

.avatar {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(155, 117, 255, 0.45), rgba(30, 140, 255, 0.16)),
        #141c26;
    color: white;
    font-size: 1.6rem;
    font-weight: 800;
}

.about-card {
    display: grid;
    gap: 22px;
}

.about-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.about-heading h2 {
    margin: 0 0 18px;
}

.about-tagline {
    margin: 0;
    color: var(--muted-strong);
    font-family: var(--font-ui);
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.45;
}

.about-avatar {
    position: relative;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid rgba(96, 122, 146, 0.36);
    background: #141c26;
}

.about-card > p {
    max-width: 32rem;
    margin-bottom: 0;
}

.about-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-avatar img:not([hidden]) + span {
    opacity: 0;
}

.topic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.topic-list a {
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: var(--muted-strong);
    font-family: var(--font-ui);
    font-size: 0.9rem;
}

.topic-list a:hover {
    border-color: var(--accent);
    background: rgba(30, 140, 255, 0.08);
}

.resource-list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.resource-list a {
    display: block;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line-soft);
}

.subscribe-card form {
    display: grid;
    gap: 12px;
    margin: 18px 0 10px;
}

.subscribe-card input,
.subscribe-card button {
    width: 100%;
    min-height: 46px;
    border-radius: 6px;
}

.subscribe-card input {
    border: 1px solid var(--line);
    background: #070d13;
    color: var(--text);
    padding: 0 14px;
    font-family: var(--font-ui);
    font-size: 0.9rem;
}

.subscribe-card input:focus {
    outline: 2px solid rgba(30, 140, 255, 0.35);
    border-color: var(--accent);
}

.subscribe-card button {
    border: 0;
    background: var(--accent-strong);
    color: white;
    font-weight: 800;
    cursor: pointer;
    font-family: var(--font-ui);
}

.site-footer {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    margin-top: var(--space-before-footer);
    padding: 34px 28px 38px;
    border: 1px solid rgba(29, 42, 54, 0.55);
    border-right-color: rgba(29, 42, 54, 0.28);
    border-left-color: rgba(29, 42, 54, 0.28);
    border-radius: 8px 8px 0 0;
    background:
        radial-gradient(circle at 18% 0%, rgba(30, 140, 255, 0.085), transparent 24rem),
        linear-gradient(180deg, rgba(11, 18, 24, 0.72), rgba(6, 11, 16, 0.86));
    color: var(--muted);
    box-shadow: 0 -18px 80px rgba(30, 140, 255, 0.045);
}

.site-footer::before {
    position: absolute;
    right: 28px;
    top: -1px;
    left: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(85, 183, 255, 0.5), transparent);
    content: "";
}

.site-footer nav {
    display: grid;
    align-content: start;
    gap: 8px;
}

.footer-brand-block {
    max-width: 26rem;
}

.footer-nav-groups {
    grid-template-columns: repeat(2, minmax(0, auto));
    gap: 22px;
    justify-content: end;
}

.footer-link-group {
    display: grid;
    gap: 8px;
}

.footer-link-group-legal {
    padding-left: 18px;
    border-left: 1px solid var(--line);
}

.footer-group-label {
    color: var(--muted);
    font-family: var(--font-ui);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer h2 {
    margin-bottom: 4px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.social-links > * + *::before {
    margin-right: 9px;
    color: var(--muted);
    content: "·";
}

.legal-links a,
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted-strong);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.legal-links a:hover,
.social-links a:hover {
    color: var(--accent);
}

.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 32px;
    align-items: start;
    width: 100%;
    padding: var(--space-header-main) 0 0;
}

.post-article {
    min-width: 0;
    width: 100%;
}

.post-article h1 {
    overflow-wrap: anywhere;
}

.featured-image {
    display: block;
    width: 100%;
    max-width: 780px;
    margin: 28px 0;
}

.article-body {
    width: 100%;
    max-width: 780px;
    color: var(--muted-strong);
    font-size: 1.05rem;
}

.article-body > * + * {
    margin-top: 1.15rem;
}

.article-inline-block {
    width: 100%;
    margin: 28px 0;
}

.article-body h2,
.resources-section h2,
.interaction-row h2 {
    color: var(--text);
}

.article-body pre,
.text-resource pre {
    overflow-x: auto;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #060c12;
}

.resources-section {
    width: 100%;
    max-width: 780px;
    margin-top: 42px;
}

.resources-intro,
.resource-meta,
.muted-note,
.admin-table-note {
    color: var(--muted);
}

.featured-image-guidance {
    margin-top: -8px;
}

.featured-image-guidance.is-ok {
    color: var(--green);
}

.featured-image-guidance.is-warning {
    color: #f5c84b;
}

.resource-grid {
    display: grid;
    gap: 16px;
}

.resource-list-compact {
    display: grid;
    gap: 10px;
    max-width: 780px;
    padding: 0;
    margin: 14px 0 0;
    list-style: none;
}

.resource-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    padding: 14px 0;
    border-top: 1px solid var(--line-soft);
}

.resource-item:last-child {
    border-bottom: 0;
}

.resource-item-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
}

.resource-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 26px;
    padding: 0 8px;
    border: 1px solid rgba(30, 140, 255, 0.24);
    border-radius: 5px;
    background: rgba(30, 140, 255, 0.08);
    color: #70c2ff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.resource-item-copy h3 {
    margin-bottom: 3px;
    font-size: 1rem;
    line-height: 1.35;
}

.resource-item-copy p,
.resource-file {
    color: var(--muted);
    font-size: 0.9rem;
}

.resource-item-copy p {
    margin-bottom: 2px;
}

.resource-file {
    font-family: var(--font-mono);
}

.resource-item-actions {
    display: flex;
    justify-content: flex-end;
}

.resource-item-actions a,
.resource-item-actions button {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: rgba(7, 13, 19, 0.76);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 0.86rem;
    font-weight: 750;
    cursor: pointer;
}

.resource-item-actions a:hover,
.resource-item-actions button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.resource-viewer {
    position: relative;
    grid-column: 1 / -1;
    justify-self: stretch;
    min-width: 0;
    max-width: 100%;
    margin-top: -10px;
}

.resource-viewer summary {
    margin-left: 56px;
    padding: 4px 0;
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.resource-viewer summary:hover {
    color: var(--accent);
}

.resource-viewer[open] {
    justify-self: stretch;
}

.resource-viewer pre {
    width: 100%;
    max-width: 100%;
    max-height: 360px;
    margin: 12px 0 0;
    overflow: auto;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #060c12;
    color: var(--muted-strong);
    font-size: 0.88rem;
}

.resource-viewer[open] summary {
    width: max-content;
}

.resource-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(11, 18, 24, 0.82);
}

.resource-description,
.resource-filename {
    color: var(--muted);
}

.resource-inline-actions,
.contact-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.resource-card h3 {
    margin-top: 0;
}

.image-preview {
    display: block;
    width: min(420px, 100%);
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: transparent;
    cursor: pointer;
}

.article-inline-block .image-preview {
    width: min(100%, 680px);
}

.resource-actions {
    display: flex;
    gap: 10px;
    margin: 12px 0;
}

.resource-actions button,
.resource-actions a,
.admin-actions button,
.admin-actions a {
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #070d13;
    color: var(--text);
    font-family: var(--font-ui);
    cursor: pointer;
}


.article-interaction {
    display: grid;
    gap: 18px;
    width: 100%;
    max-width: 780px;
    margin-top: 46px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.article-interaction__comments-header h3 {
    margin-bottom: 10px;
    color: var(--text);
}

.article-interaction__identity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--muted-strong);
    font-size: 0.94rem;
}

.article-interaction__identity p {
    margin-bottom: 0;
}

.article-interaction__top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.article-interaction__top .button-secondary {
    min-width: 0;
    padding: 0 18px;
    border-color: rgba(96, 122, 146, 0.44);
    background: rgba(10, 18, 26, 0.72);
    color: var(--text);
}

.article-interaction__top .button-secondary:hover {
    border-color: rgba(85, 183, 255, 0.62);
    background: rgba(16, 30, 43, 0.84);
}

.article-interaction__top .like-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.like-button__symbol {
    display: none;
    color: #9fb0bd;
    font-size: 0.95rem;
    line-height: 1;
}

.article-interaction__top .like-button.is-active {
    border-color: rgba(82, 211, 139, 0.72);
    background: rgba(18, 111, 70, 0.24);
    color: #dff8e9;
}

.article-interaction__top .like-button.is-active:hover {
    border-color: rgba(82, 211, 139, 0.86);
    background: rgba(18, 111, 70, 0.32);
}

.like-button.is-active .like-button__symbol {
    display: inline-flex;
    align-items: center;
    color: #52d38b;
}

.article-comment-trigger {
    color: var(--muted-strong);
}

.article-interaction__form,
.article-interaction__comments {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.article-interaction__form {
    margin-bottom: 0;
    display: grid;
    gap: 12px;
}

.article-interaction__comment-note {
    margin-bottom: 0;
}

.article-interaction__feedback {
    min-height: 1.25rem;
    margin: -4px 0 0;
}

.article-interaction__comments {
    display: grid;
    gap: 14px;
    padding-top: 10px;
}

.article-interaction__comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.article-interaction__comments-header h3 {
    margin-bottom: 0;
    font-size: 1.06rem;
}

.article-interaction__comments-header span {
    color: var(--muted-strong);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 700;
}

.engagement-card,
.comments-card,
.privacy-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(11, 18, 24, 0.82);
}

.engagement-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.engagement-copy {
    max-width: 38rem;
}

.engagement-copy .eyebrow {
    margin-bottom: 10px;
}

.engagement-controls {
    display: grid;
    justify-items: end;
    gap: 10px;
}

.like-button {
    gap: 10px;
    min-width: 132px;
    align-items: center;
}

.like-button [data-like-label],
.like-button strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1em;
    line-height: 1;
}

.like-button strong {
    font-size: 1rem;
}

.like-button.is-active {
    border-color: rgba(30, 140, 255, 0.6);
    background: rgba(30, 140, 255, 0.12);
    color: var(--text);
}

.like-button[data-auth-required="1"] {
    border-style: solid;
}

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

.interaction-account-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.interaction-account-links a {
    color: #59b7ff;
    font-family: var(--font-ui);
    font-size: 0.88rem;
    font-weight: 700;
}

.inline-auth-action {
    min-height: 34px;
    padding: 0 12px;
}

.interaction-account-state {
    display: grid;
    gap: 6px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid var(--line-soft);
    border-radius: 7px;
    background: rgba(7, 13, 19, 0.54);
}

.interaction-account-state p {
    margin-bottom: 0;
}

.comment-auth-panel {
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
    padding: 18px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: rgba(7, 13, 19, 0.56);
}

.inline-auth-provider-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 2px;
}

.article-auth-provider-button {
    width: 100%;
}

.comments-header h2 {
    margin-bottom: 0;
}

.comment-form {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.comment-form label {
    display: grid;
    gap: 8px;
    color: var(--muted-strong);
    font-family: var(--font-ui);
    font-size: 0.88rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #070d13;
    color: var(--text);
    font-family: var(--font-body);
}

.comment-list {
    display: grid;
    gap: 14px;
}

.comment-item {
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
}

.comment-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: var(--muted);
    font-family: var(--font-ui);
    font-size: 0.84rem;
}

.comment-item p {
    margin-bottom: 0;
    color: var(--muted-strong);
}

.privacy-page {
    display: grid;
    gap: 18px;
}

.legal-page {
    width: min(100%, 860px);
    padding-bottom: 8px;
}

.legal-page > .lead {
    max-width: 52rem;
    margin-bottom: 12px;
}

.legal-card {
    max-width: 860px;
}

.legal-card h2 {
    margin-bottom: 12px;
    font-size: 1.12rem;
}

.legal-card p:last-child {
    margin-bottom: 0;
}

.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(4, 8, 12, 0.82);
}

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

.auth-dialog {
    position: relative;
    width: min(460px, 100%);
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(12, 20, 28, 0.98), rgba(8, 12, 18, 0.98));
    box-shadow: var(--shadow);
}

.auth-provider-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.auth-provider-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(7, 13, 19, 0.76);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 800;
}

.auth-provider-button:hover {
    border-color: var(--accent);
    background: rgba(30, 140, 255, 0.08);
    color: var(--text);
}

.image-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 32px;
    background: rgba(0, 0, 0, 0.82);
}

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

.image-modal img {
    max-width: min(1000px, 92vw);
    max-height: 82vh;
    border: 1px solid var(--line);
    border-radius: 7px;
}

.image-modal button {
    position: fixed;
    top: 24px;
    right: 24px;
}

.video-frame {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #060c12;
}

.video-frame iframe {
    display: block;
    width: 100%;
    min-height: 360px;
    border: 0;
}

.inline-missing {
    border-style: dashed;
    background: rgba(11, 18, 24, 0.56);
}

.contact-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(4, 8, 12, 0.82);
}

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

.contact-dialog {
    position: relative;
    width: min(620px, 100%);
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(12, 20, 28, 0.98), rgba(8, 12, 18, 0.98));
    box-shadow: var(--shadow);
}

.contact-close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: 0;
    background: transparent;
    color: var(--muted-strong);
    font-size: 1.5rem;
    cursor: pointer;
}

.contact-form {
    display: grid;
    gap: 16px;
}

.contact-form label {
    display: grid;
    gap: 8px;
    color: var(--muted-strong);
    font-family: var(--font-ui);
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #070d13;
    color: var(--text);
    font-family: var(--font-body);
}

.contact-form textarea {
    resize: vertical;
}

.admin-shell {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.admin-header,
.admin-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.admin-header {
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--muted-strong);
    font-family: var(--font-ui);
}

.admin-main {
    padding: 42px 0;
}

.admin-auth-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.admin-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.admin-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--panel);
}

.admin-card strong {
    display: block;
    font-size: 2rem;
}

.admin-table {
    width: 100%;
    margin-top: 24px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-action-menu {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.admin-action-menu summary {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 128px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(96, 122, 146, 0.44);
    border-radius: 6px;
    background: rgba(10, 18, 26, 0.72);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1;
    list-style: none;
    cursor: pointer;
}

.admin-action-menu summary::-webkit-details-marker {
    display: none;
}

.admin-action-menu summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.admin-action-menu[open] summary {
    border-color: rgba(85, 183, 255, 0.62);
    background: rgba(16, 30, 43, 0.84);
}

.admin-action-menu[open] {
    z-index: 40;
}

.admin-action-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 50;
    display: grid;
    min-width: 210px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 14, 20, 0.98);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.admin-action-dropdown form {
    display: grid;
    gap: 2px;
}

.admin-action-dropdown a,
.admin-action-dropdown button {
    display: block;
    width: 100%;
    min-height: 0;
    padding: 10px 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted-strong);
    font-family: var(--font-ui);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.admin-action-dropdown a:hover,
.admin-action-dropdown button:hover {
    background: rgba(30, 140, 255, 0.08);
    color: var(--text);
    filter: none;
}

.admin-form {
    display: grid;
    gap: 18px;
    max-width: 880px;
}

.admin-helper {
    margin-bottom: 28px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--panel);
}

.admin-error-list {
    border-color: rgba(255, 140, 140, 0.36);
}

.admin-success-list {
    border-color: rgba(72, 187, 120, 0.36);
}

.admin-error-list li,
.translation-status.is-missing {
    color: #ff9a9a;
}

.admin-success-list p {
    color: var(--green);
}

.admin-upload-form {
    display: grid;
    gap: 14px;
}

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

.translation-panel {
    display: grid;
    gap: 14px;
    margin-bottom: 0;
}

.translation-panel h2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.translation-panel h2 span,
.translation-status {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 800;
}

.translation-status {
    display: inline-flex;
    margin-right: 8px;
}

.translation-status.is-ok {
    color: var(--green);
}

.token-grid {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.token-snippet {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #070d13;
}

.token-snippet code {
    color: var(--muted-strong);
    font-family: var(--font-mono);
    white-space: pre-wrap;
}

.token-snippet button {
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #0b1218;
    color: var(--text);
    font-family: var(--font-ui);
    cursor: pointer;
}

.token-snippet-compact {
    padding: 8px 10px;
}

.admin-form label {
    display: grid;
    gap: 8px;
    color: var(--muted-strong);
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #070d13;
    color: var(--text);
}

.admin-form button[type="submit"] {
    position: relative;
    z-index: 1;
    justify-self: start;
}

body:has(.admin-shell) {
    background: #0b1116;
    color: #edf4f7;
}

body:has(.admin-shell)::before,
body:has(.admin-shell) .site-background {
    display: none;
}

.admin-shell {
    width: min(100% - 40px, 1680px);
    font-family: var(--font-ui);
}

.admin-header {
    position: sticky;
    top: 0;
    z-index: 10;
    margin: 0 -20px;
    padding: 18px 20px;
    background: rgba(11, 17, 22, 0.96);
    backdrop-filter: blur(16px);
}

.admin-header .site-title,
.admin-nav a,
.admin-card,
.admin-table a,
.admin-actions a {
    color: inherit;
    text-decoration: none;
}

.admin-header .site-title {
    font-weight: 800;
}

.admin-nav {
    gap: 8px;
}

.admin-nav a {
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #b7c5cc;
    font-size: 0.9rem;
}

.admin-nav a:hover,
.admin-nav a:focus-visible {
    border-color: #2c4250;
    background: #111b23;
    color: #ffffff;
}

.admin-main {
    padding: 32px 0 64px;
}

.admin-main > h1,
.admin-title-row h1 {
    margin: 0 0 20px;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: 0;
}

.admin-auth-note {
    display: none;
}

.admin-card,
.admin-helper,
.admin-panel {
    border: 1px solid #253743;
    border-radius: 8px;
    background: #101922;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.admin-card:hover,
.admin-card:focus-visible {
    border-color: #466272;
    background: #13202a;
}

.admin-card span,
.admin-table-note,
.admin-panel small {
    color: #9fb0b8;
}

.admin-card small {
    color: inherit;
}

.admin-table {
    overflow: visible;
    border: 1px solid #253743;
    border-radius: 8px;
    background: #101922;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table th {
    background: #16232d;
    color: #c9d7dd;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.admin-table td {
    color: #e6eef2;
}

.admin-row-new td {
    background: rgba(39, 85, 63, 0.22);
}

.admin-table tr:last-child td {
    border-bottom: 0;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 2px 8px;
    border: 1px solid #5da37f;
    border-radius: 999px;
    background: rgba(29, 95, 70, 0.2);
    color: #7ef0ac;
    font-size: 0.73rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-actions a,
.admin-actions button,
.admin-table button,
.admin-form button,
.admin-upload-form button,
.token-snippet button,
.asset-actions button,
.editor-toolbar button,
.button-primary,
.button-secondary {
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid #314957;
    border-radius: 6px;
    background: #162531;
    color: #eef6f8;
    font-family: var(--font-ui);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.button-primary,
.admin-form .button-primary,
.admin-upload-form .button-primary {
    border-color: #5da37f;
    background: #1d5f46;
    color: #ffffff;
}

.admin-actions a:hover,
.admin-actions button:hover,
.admin-table button:hover,
.admin-form button:hover,
.admin-upload-form button:hover,
.token-snippet button:hover,
.asset-actions button:hover,
.editor-toolbar button:hover,
.button-primary:hover,
.button-secondary:hover {
    filter: brightness(1.12);
}

.site .button-primary,
.site .button-secondary,
.site .auth-provider-button,
.site .auth-link-button,
.site .article-auth-provider-button,
.site .subscribe-card button,
.site .resource-actions button,
.site .resource-actions a,
.site .resource-item-actions button,
.site .resource-item-actions a,
.site .contact-actions button,
.admin-shell .admin-actions a,
.admin-shell .admin-actions button,
.admin-shell .admin-table button,
.admin-shell .admin-form button,
.admin-shell .admin-upload-form button,
.admin-shell .token-snippet button,
.admin-shell .asset-actions button,
.admin-shell .editor-toolbar button,
.admin-shell .button-primary,
.admin-shell .button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(96, 122, 146, 0.44);
    border-radius: 6px;
    background: rgba(10, 18, 26, 0.72);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    filter: none;
}

.site .button-primary:hover,
.site .button-secondary:hover,
.site .auth-provider-button:hover,
.site .auth-link-button:hover,
.site .article-auth-provider-button:hover,
.site .subscribe-card button:hover,
.site .resource-actions button:hover,
.site .resource-actions a:hover,
.site .resource-item-actions button:hover,
.site .resource-item-actions a:hover,
.site .contact-actions button:hover,
.admin-shell .admin-actions a:hover,
.admin-shell .admin-actions button:hover,
.admin-shell .admin-table button:hover,
.admin-shell .admin-form button:hover,
.admin-shell .admin-upload-form button:hover,
.admin-shell .token-snippet button:hover,
.admin-shell .asset-actions button:hover,
.admin-shell .editor-toolbar button:hover,
.admin-shell .button-primary:hover,
.admin-shell .button-secondary:hover {
    border-color: rgba(85, 183, 255, 0.62);
    background: rgba(16, 30, 43, 0.84);
    color: var(--text);
    filter: none;
}

.admin-shell .admin-action-dropdown a,
.admin-shell .admin-action-dropdown button {
    display: block;
    justify-content: flex-start;
    width: 100%;
    min-height: 0;
    padding: 10px 12px;
    border: 0;
    background: transparent;
    color: var(--muted-strong);
    line-height: 1.2;
    text-align: left;
}

.admin-shell .admin-action-dropdown a:hover,
.admin-shell .admin-action-dropdown button:hover {
    border-color: transparent;
    background: rgba(30, 140, 255, 0.08);
    color: var(--text);
}

.admin-form {
    max-width: none;
}

.admin-editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 22px;
    align-items: start;
}

.admin-editor-main {
    min-width: 0;
}

.admin-editor-side {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 16px;
}

.admin-panel {
    display: grid;
    gap: 16px;
    padding: 20px;
}

.admin-panel h2 {
    margin: 0;
    font-size: 1rem;
}

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

.translation-editor {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.translation-panel {
    align-content: start;
}

.admin-form label,
.admin-upload-form label {
    display: grid;
    gap: 8px;
    color: #c1d0d7;
    font-size: 0.86rem;
    font-weight: 700;
}

.admin-form input,
.admin-form textarea,
.admin-form select,
.admin-upload-form input,
.admin-upload-form select {
    width: 100%;
    border: 1px solid #314957;
    border-radius: 6px;
    background: #081016;
    color: #f0f7f9;
    font-family: var(--font-mono);
    font-size: 0.92rem;
}

.admin-form input,
.admin-form select,
.admin-upload-form input,
.admin-upload-form select {
    min-height: 42px;
}

.admin-form textarea {
    min-height: 92px;
    resize: vertical;
    line-height: 1.55;
}

.admin-form textarea[data-rich-editor] {
    min-height: 520px;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.editor-toolbar button {
    min-height: 30px;
    padding: 5px 9px;
}

.editor-field {
    display: grid;
    gap: 8px;
}

.editor-field-label {
    color: #c1d0d7;
    font-size: 0.86rem;
    font-weight: 700;
}

.editor-asset-picker {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid #253743;
    border-radius: 8px;
    background: #0b141b;
}

.editor-asset-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.editor-asset-picker input[readonly] {
    color: #9fd0ff;
}

.asset-list {
    display: grid;
    gap: 12px;
}

.asset-item {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid #253743;
    border-radius: 8px;
    background: #0b141b;
}

.asset-item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
    background: #05090d;
}

.asset-item strong {
    overflow-wrap: anywhere;
}

.asset-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.asset-item code,
.token-snippet code {
    overflow-wrap: anywhere;
}

.token-snippet {
    background: #0b141b;
}

@media (max-width: 1180px) {
    .admin-editor-layout,
    .translation-editor {
        grid-template-columns: 1fr;
    }

    .admin-editor-side {
        position: static;
    }

    .admin-field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

body.intro-running [data-intro-section] {
    opacity: 0;
    filter: blur(8px);
    pointer-events: none;
    transition: opacity 520ms ease, filter 520ms ease;
}

body.intro-running [data-intro-section].intro-visible {
    opacity: 1;
    filter: blur(0);
    pointer-events: auto;
}

body.intro-running .post-feed {
    border-top-color: transparent;
}

body.intro-running .feed-footer {
    opacity: 0;
    pointer-events: none;
}

body.intro-complete [data-intro-section],
body:not(.intro-running) [data-intro-section] {
    opacity: 1;
    filter: blur(0);
    pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
    .site-background,
    .site-background::before,
    .site-background::after,
    body::before {
        animation: none !important;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 980px) {
    .site-header {
        grid-template-columns: 1fr auto;
    }

    .site-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }

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

    .content-with-sidebar {
        grid-template-columns: 1fr;
    }

    .post-layout {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .post-article {
        max-width: none;
    }

    .posts-section,
    .post-feed,
    .sidebar {
        grid-column: auto;
        grid-row: auto;
    }

    .sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer {
        flex-direction: column;
    }

    .footer-nav-groups {
        justify-content: flex-start;
    }

    .admin-cards {
        grid-template-columns: 1fr;
    }

    .translation-editor {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    :root {
        --space-header-main: clamp(28px, 8vw, 40px);
        --space-section: clamp(34px, 9vw, 48px);
        --space-before-footer: clamp(48px, 11vw, 64px);
    }

    .site {
        width: min(100% - 28px, 1180px);
    }

    body::before {
        display: none;
    }

    .site-background::after {
        opacity: 0.14;
        background-size: 96px 96px, 96px 96px, 6px 6px;
    }

    .site-header {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-top: 22px;
    }

    .site-nav {
        grid-column: auto;
        grid-row: auto;
        width: 100%;
    }

    .site-title {
        font-size: 1.2rem;
    }

    .brand-mark {
        width: 32px;
        height: 28px;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
        flex-wrap: wrap;
    }

    .header-search {
        flex: 1 1 auto;
        width: auto;
    }

    .account-menu,
    .auth-link-button {
        margin-left: auto;
    }

    .hero {
        padding: var(--space-header-main) 0 var(--space-section);
    }

    .hero h1 {
        font-size: clamp(2rem, 9vw, 2.8rem);
    }

    .content.single > h1,
    .post-article h1 {
        font-size: clamp(1.7rem, 7.8vw, 2.35rem);
        line-height: 1.12;
    }

    .post-list-card h2 {
        font-size: clamp(1.1rem, 5.6vw, 1.4rem);
        line-height: 1.24;
    }

    .post-list-card {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .engagement-card,
    .comments-header,
    .comment-meta,
    .article-interaction__identity {
        grid-template-columns: 1fr;
        justify-content: flex-start;
    }

    .engagement-controls {
        width: 100%;
        justify-items: stretch;
    }

    .interaction-account-links {
        width: 100%;
    }

    .article-interaction__actions {
        grid-template-columns: 1fr;
    }

    .post-item-top {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .post-heading {
        padding-top: 0;
    }

    .post-meta {
        flex-wrap: wrap;
    }

    .post-meta a,
    .read-more {
        width: 100%;
        margin-left: 0;
    }

    .sidebar,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .site-footer {
        padding-right: 18px;
        padding-left: 18px;
    }

    .article-interaction {
        padding: 22px;
    }

    .footer-nav-groups {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer-link-group-legal {
        padding-left: 0;
        padding-top: 14px;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .resource-item {
        grid-template-columns: 1fr;
    }

    .resource-item-actions {
        justify-content: flex-start;
    }

    .admin-shell {
        width: min(100% - 28px, 1180px);
    }

    .admin-header,
    .admin-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-table,
    .admin-table thead,
    .admin-table tbody,
    .admin-table tr,
    .admin-table th,
    .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tr {
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
    }

    .admin-table td {
        padding: 8px 0;
        border-bottom: 0;
    }

    .admin-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .sidebar-card {
        padding: 22px;
    }

    .video-frame iframe {
        min-height: 220px;
    }
}
