@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Manrope:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&family=Source+Serif+4:wght@400;500;600;700&display=swap");

:root {
    color-scheme: light dark;
    --font-ui: "Manrope", "Segoe UI", Tahoma, sans-serif;
    --font-heading: "Outfit", "Manrope", "Segoe UI", Tahoma, sans-serif;
    --font-reading: "Source Serif 4", Georgia, "Times New Roman", serif;
    --font-mono: "JetBrains Mono", Consolas, "Courier New", monospace;
    --theme-bg: #f4f7fc;
    --theme-text: #1f2d41;
    --theme-surface: #ffffff;
    --theme-surface-soft: #f8fafd;
    --theme-border: #d9e0eb;
    --theme-muted: #4a5f84;
    --theme-link: #344560;
    --theme-link-hover-bg: #eef3fb;
    --theme-link-hover: #1e3356;
    --theme-link-active-bg: #dbe7fb;
    --theme-link-active: #183a7c;
    --theme-accent: #2d6deb;
    --theme-accent-hover: #2258bd;
    --theme-on-accent: #ffffff;
    --theme-overlay: rgba(8, 13, 22, 0.48);
    --theme-danger: #b30021;
    --theme-success: #06763e;
    --theme-positive: #1f7a4f;
    --theme-positive-hover: #186340;
    --theme-scrollbar-track: #e5ecf8;
    --theme-scrollbar-thumb: #8ba2c7;
    --theme-scrollbar-thumb-hover: #6b87b3;
    --theme-code-bg: #f5f8ff;
    --theme-code-surface: #ffffff;
    --theme-code-text: #11284a;
    --theme-code-border: #d2dff2;
    --theme-code-gutter-bg: #ebf1fc;
    --theme-code-gutter-text: #5e779f;
    --theme-code-overlay: rgba(242, 246, 253, 0.82);
}

@media (prefers-color-scheme: dark) {
    :root {
        --theme-bg: #0f141c;
        --theme-text: #e7eefc;
        --theme-surface: #151c27;
        --theme-surface-soft: #1a2331;
        --theme-border: #283549;
        --theme-muted: #a8b8d6;
        --theme-link: #c2d2ef;
        --theme-link-hover-bg: #223248;
        --theme-link-hover: #eef3ff;
        --theme-link-active-bg: #2a4362;
        --theme-link-active: #d9e9ff;
        --theme-accent: #5b9bff;
        --theme-accent-hover: #3f81eb;
        --theme-on-accent: #071a39;
        --theme-overlay: rgba(2, 6, 12, 0.78);
        --theme-danger: #ff8a9b;
        --theme-success: #3bd48e;
        --theme-positive: #2e9b66;
        --theme-positive-hover: #248253;
        --theme-scrollbar-track: #182335;
        --theme-scrollbar-thumb: #4b668f;
        --theme-scrollbar-thumb-hover: #6488bc;
        --theme-code-bg: #0d1117;
        --theme-code-surface: #0d1117;
        --theme-code-text: #e6edf3;
        --theme-code-border: #2f3e55;
        --theme-code-gutter-bg: #0b1018;
        --theme-code-gutter-text: #7e8ba0;
        --theme-code-overlay: rgba(8, 12, 20, 0.78);
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--theme-bg);
    color: var(--theme-text);
    font-family: var(--font-ui);
    line-height: 1.55;
    position: relative;
    overflow-x: hidden;
}

input,
select,
textarea,
button {
    font-family: var(--font-ui);
}

select {
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    background-color: var(--theme-surface-soft);
    color: var(--theme-text);
    padding: 0.52rem 2rem 0.52rem 0.62rem;
    font: inherit;
}

select:not([multiple]):not([size]) {
    -webkit-appearance: none;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--theme-muted) 50%),
        linear-gradient(135deg, var(--theme-muted) 50%, transparent 50%),
        linear-gradient(to right, color-mix(in srgb, var(--theme-border) 70%, transparent), color-mix(in srgb, var(--theme-border) 70%, transparent));
    background-position:
        calc(100% - 14px) calc(50% - 2px),
        calc(100% - 9px) calc(50% - 2px),
        calc(100% - 2.1rem) 50%;
    background-size:
        6px 6px,
        6px 6px,
        1px 1.2rem;
    background-repeat: no-repeat;
}

select:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--theme-accent) 55%, transparent);
    outline-offset: 1px;
}

.site-ambient-bg {
    position: fixed;
    inset: -20vmax;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.site-ambient-bg__orb {
    position: absolute;
    width: 52vmax;
    height: 52vmax;
    border-radius: 50%;
    filter: blur(64px);
    opacity: 0.56;
    animation: site-orb-float 14s ease-in-out infinite alternate;
}

.site-ambient-bg__orb--a {
    background: radial-gradient(circle at 35% 40%, rgba(72, 135, 255, 0.62), rgba(72, 135, 255, 0) 72%);
    left: -16vmax;
    top: -10vmax;
    animation-duration: 13s;
}

.site-ambient-bg__orb--b {
    background: radial-gradient(circle at 65% 55%, rgba(70, 184, 142, 0.52), rgba(70, 184, 142, 0) 70%);
    right: -16vmax;
    top: 8vmax;
    animation-duration: 17s;
}

.site-ambient-bg__orb--c {
    background: radial-gradient(circle at 55% 60%, rgba(242, 124, 162, 0.45), rgba(242, 124, 162, 0) 72%);
    right: -12vmax;
    bottom: -14vmax;
    animation-duration: 20s;
}

.site-ambient-bg__shape {
    position: absolute;
    width: 24vmax;
    height: 24vmax;
    opacity: 0.24;
    border: 1px solid rgba(53, 98, 167, 0.25);
    background: linear-gradient(135deg, rgba(85, 142, 255, 0.28), rgba(70, 184, 142, 0.2));
    animation: site-shape-drift 26s linear infinite, site-shape-pulse 8s ease-in-out infinite;
    transform-origin: center;
}

.site-ambient-bg__shape--one {
    left: 6vmax;
    bottom: 8vmax;
    border-radius: 31% 69% 74% 26% / 36% 38% 62% 64%;
}

.site-ambient-bg__shape--two {
    right: 12vmax;
    top: 6vmax;
    border-radius: 62% 38% 30% 70% / 42% 61% 39% 58%;
    animation-duration: 31s, 10s;
    animation-delay: -4s, -1s;
}

.site-ambient-bg__shape--three {
    width: 18vmax;
    height: 18vmax;
    left: 37vmax;
    top: -4vmax;
    border-radius: 58% 42% 47% 53% / 39% 63% 37% 61%;
    animation-duration: 34s, 11s;
    animation-delay: -12s, -3s;
}

.site-ambient-bg__shape--four {
    width: 15vmax;
    height: 15vmax;
    right: 29vmax;
    bottom: 2vmax;
    border-radius: 21% 79% 69% 31% / 33% 37% 63% 67%;
    animation-duration: 23s, 9s;
    animation-delay: -7s, -2s;
}

.site-ambient-bg__code-layer {
    position: absolute;
    inset: -14vh 0 -12vh;
    overflow: hidden;
    opacity: 0.22;
    mask-image: linear-gradient(to bottom, transparent 0%, #000000 11%, #000000 88%, transparent 100%);
}

.site-ambient-bg__code-stream {
    --code-speed: 30s;
    --code-delay: 0s;
    --code-opacity: 0.5;
    --code-left: 0%;
    position: absolute;
    left: var(--code-left);
    top: -58vh;
    width: min(24vw, 240px);
    white-space: pre;
    color: color-mix(in srgb, var(--theme-link) 72%, transparent);
    font-family: var(--font-mono);
    font-size: clamp(0.58rem, 0.76vw, 0.74rem);
    line-height: 1.23;
    letter-spacing: 0.01em;
    opacity: var(--code-opacity);
    text-shadow: 0 0 10px color-mix(in srgb, var(--theme-accent) 30%, transparent);
    animation: site-code-fall var(--code-speed) linear infinite;
    animation-delay: var(--code-delay);
    transform: translateY(-120%);
}

.site-ambient-bg__code-stream::before {
    content: "const feed = await loadPosts();\Aif (!feed.length) return;\Afor (const post of feed) {\A  render(post.title);\A}\A";
}

.site-ambient-bg__code-stream--1 {
    --code-left: 3%;
    --code-speed: 28s;
    --code-delay: -2s;
    --code-opacity: 0.54;
}

.site-ambient-bg__code-stream--2 {
    --code-left: 14%;
    --code-speed: 34s;
    --code-delay: -17s;
    --code-opacity: 0.4;
}

.site-ambient-bg__code-stream--2::before {
    content: "function syncUser(user) {\A  return api.patch(user.id);\A}\A// profile update\A";
}

.site-ambient-bg__code-stream--3 {
    --code-left: 28%;
    --code-speed: 31s;
    --code-delay: -9s;
    --code-opacity: 0.48;
}

.site-ambient-bg__code-stream--3::before {
    content: "SELECT id, title FROM discussion_posts\AORDER BY created_at DESC;\A-- paginated feed\A";
}

.site-ambient-bg__code-stream--4 {
    --code-left: 43%;
    --code-speed: 37s;
    --code-delay: -22s;
    --code-opacity: 0.38;
}

.site-ambient-bg__code-stream--4::before {
    content: "const isDark = matchMedia('(prefers-color-scheme: dark)');\Adocument.body.classList.toggle('is-dark', isDark.matches);\A";
}

.site-ambient-bg__code-stream--5 {
    --code-left: 57%;
    --code-speed: 30s;
    --code-delay: -11s;
    --code-opacity: 0.5;
}

.site-ambient-bg__code-stream--5::before {
    content: "if (post.isSticky) {\A  badges.push('Sticky');\A}\Acomments.enable();\A";
}

.site-ambient-bg__code-stream--6 {
    --code-left: 70%;
    --code-speed: 35s;
    --code-delay: -26s;
    --code-opacity: 0.4;
}

.site-ambient-bg__code-stream--6::before {
    content: "fetch('/discussionApi', { method: 'POST' })\A  .then(handleResponse)\A  .catch(showError);\A";
}

.site-ambient-bg__code-stream--7 {
    --code-left: 82%;
    --code-speed: 33s;
    --code-delay: -6s;
    --code-opacity: 0.46;
}

.site-ambient-bg__code-stream--7::before {
    content: "const tags = parseTags(input);\Astate.search = query.trim();\ArenderFilters(tags);\A";
}

.site-ambient-bg__code-stream--8 {
    --code-left: 91%;
    --code-speed: 39s;
    --code-delay: -30s;
    --code-opacity: 0.34;
}

.site-ambient-bg__code-stream--8::before {
    content: "return view('discussion', data);\A// background process\A";
}

@keyframes site-orb-float {
    0% {
        transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    }
    50% {
        transform: translate3d(5vmax, -3vmax, 0) scale(1.08) rotate(4deg);
    }
    100% {
        transform: translate3d(-4vmax, 5vmax, 0) scale(0.94) rotate(-4deg);
    }
}

@keyframes site-shape-drift {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate3d(2vmax, -1.5vmax, 0) rotate(55deg) scale(1.06);
    }
    50% {
        transform: translate3d(-1vmax, -3vmax, 0) rotate(120deg) scale(0.95);
    }
    75% {
        transform: translate3d(-3vmax, 1vmax, 0) rotate(220deg) scale(1.05);
    }
    100% {
        transform: translate3d(0, 0, 0) rotate(360deg) scale(1);
    }
}

@keyframes site-shape-pulse {
    0% {
        opacity: 0.18;
        filter: saturate(105%);
    }
    50% {
        opacity: 0.34;
        filter: saturate(150%);
    }
    100% {
        opacity: 0.2;
        filter: saturate(115%);
    }
}

@keyframes site-code-fall {
    0% {
        transform: translate3d(0, -130%, 0);
    }
    100% {
        transform: translate3d(0, 235vh, 0);
    }
}

:where(body) > :where(:not(.site-ambient-bg)) {
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .site-ambient-bg__orb {
        animation: none;
    }

    .site-ambient-bg__shape {
        animation: none;
    }

    .site-ambient-bg__code-stream {
        animation: none;
    }
}

@media (prefers-color-scheme: dark) {
    .site-ambient-bg__orb {
        opacity: 0.46;
    }

    .site-ambient-bg__shape {
        opacity: 0.3;
        border-color: rgba(120, 166, 238, 0.24);
        background: linear-gradient(135deg, rgba(109, 164, 255, 0.3), rgba(89, 211, 174, 0.22));
    }

    .site-ambient-bg__code-layer {
        opacity: 0.3;
    }

    .site-ambient-bg__code-stream {
        color: color-mix(in srgb, #98c0ff 82%, transparent);
        text-shadow: 0 0 12px rgba(72, 142, 255, 0.45);
    }
}

@media (max-width: 760px) {
    .site-ambient-bg__code-layer {
        opacity: 0.16;
    }

    .site-ambient-bg__code-stream--6,
    .site-ambient-bg__code-stream--7,
    .site-ambient-bg__code-stream--8 {
        display: none;
    }
}

.wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem;
}

.wrapper > .card + .card {
    margin-top: 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--theme-text);
    line-height: 1.2;
    font-family: var(--font-heading);
    letter-spacing: 0.01em;
}

p {
    margin-top: 0;
    color: var(--theme-muted);
    font-family: var(--font-ui);
}

a {
    color: var(--theme-accent);
}

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

hr {
    border: 0;
    border-top: 1px solid var(--theme-border);
}

ul,
ol {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

.card {
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 6px 20px rgba(6, 11, 22, 0.08);
}

.home-page {
    display: grid;
    gap: 1rem;
}

.home-hero {
    text-align: left;
    position: relative;
    overflow: hidden;
    border-color: color-mix(in srgb, var(--theme-accent) 34%, var(--theme-border));
    background:
        linear-gradient(130deg, color-mix(in srgb, var(--theme-accent) 12%, transparent), transparent 44%),
        radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--theme-accent) 16%, transparent), transparent 56%),
        var(--theme-surface);
    padding: 1.3rem 1.35rem;
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(
        to right,
        color-mix(in srgb, var(--theme-border) 20%, transparent) 1px,
        transparent 1px
    );
    background-size: 26px 26px;
    opacity: 0.18;
    pointer-events: none;
}

.home-hero > * {
    position: relative;
    z-index: 1;
}

.home-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.55rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--theme-accent) 30%, var(--theme-border));
    background: color-mix(in srgb, var(--theme-accent) 10%, transparent);
    color: var(--theme-link);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-hero__title {
    margin-bottom: 0.45rem;
    font-size: clamp(2rem, 5.5vw, 3.35rem);
    letter-spacing: -0.01em;
    font-weight: 880;
    text-transform: none;
}

.home-hero__lead {
    margin: 0;
    max-width: 760px;
    font-size: 1.03rem;
    color: var(--theme-muted);
}

.home-now-building {
    margin: 0.95rem 0 0;
    max-width: 760px;
    padding: 0.58rem 0.78rem;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--theme-accent) 26%, var(--theme-border));
    background: color-mix(in srgb, var(--theme-accent) 8%, var(--theme-surface-soft));
    color: var(--theme-text);
    font-weight: 700;
}

.home-now-building__label {
    display: inline-block;
    margin-right: 0.5rem;
    padding: 0.15rem 0.42rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--theme-accent) 26%, transparent);
    color: var(--theme-link-hover);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.home-tech-row {
    margin-top: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
}

.home-tech-row .chip {
    margin: 0;
}

.home-cta-row {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    flex-wrap: wrap;
}

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

.home-feature-card {
    border-color: color-mix(in srgb, var(--theme-accent) 24%, var(--theme-border));
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--theme-accent) 8%, transparent), transparent 50%),
        var(--theme-surface);
}

.home-feature-card h1,
.home-feature-card h2,
.home-feature-card h3,
.home-feature-card h4 {
    margin-bottom: 0.4rem;
}

.home-feature-card p {
    margin-bottom: 0.55rem;
}

.home-feature-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.home-feature-card__tags .chip {
    margin: 0;
}

.home-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.4rem;
}

.home-tag-row .chip {
    margin: 0;
}

@media (max-width: 760px) {
    .home-hero {
        text-align: center;
    }

    .home-hero__lead,
    .home-now-building {
        margin-left: auto;
        margin-right: auto;
    }

    .home-tech-row,
    .home-cta-row {
        justify-content: center;
    }

    .home-feature-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.home-popular {
    margin-top: 1rem;
    border-color: color-mix(in srgb, var(--theme-accent) 24%, var(--theme-border));
}

.home-popular h2 {
    margin-bottom: 0.65rem;
}

.home-popular-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.25rem 0.6rem;
    padding: 0.62rem 0;
    text-decoration: none;
    color: inherit;
    border-top: 1px solid var(--theme-border);
}

.home-popular-item:first-of-type {
    border-top: 0;
}

.home-popular-item__title {
    font-weight: 800;
    color: var(--theme-text);
}

.home-popular-item__meta {
    justify-self: end;
    align-self: center;
    font-size: 0.78rem;
    color: var(--theme-link);
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--theme-border);
    background: var(--theme-surface-soft);
}

.home-popular-item__desc {
    grid-column: 1 / span 2;
    color: var(--theme-muted);
}

.stack > * + * {
    margin-top: 0.65rem;
}

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

.status-error {
    color: var(--theme-danger);
    font-weight: 600;
}

.status-success {
    color: var(--theme-success);
    font-weight: 600;
}

.chip {
    display: inline-block;
    margin-right: 0.35rem;
    margin-bottom: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--theme-border);
    background: var(--theme-surface-soft);
    color: var(--theme-link);
    font-size: 0.78rem;
    font-weight: 600;
}

.chip.tag-tone-1 {
    border-color: #d28a8a;
    background: #f9e9e9;
    color: #7d2d2d;
}

.chip.tag-tone-2 {
    border-color: #d6a36b;
    background: #fff0dd;
    color: #7c4a18;
}

.chip.tag-tone-3 {
    border-color: #b8be69;
    background: #f8f9df;
    color: #5c631a;
}

.chip.tag-tone-4 {
    border-color: #7ab889;
    background: #e8f8ee;
    color: #1f6b33;
}

.chip.tag-tone-5 {
    border-color: #78b8c1;
    background: #e6f9fc;
    color: #1f5f67;
}

.chip.tag-tone-6 {
    border-color: #7c9fd3;
    background: #e7effd;
    color: #284879;
}

.chip.tag-tone-7 {
    border-color: #9e87c8;
    background: #efe9f9;
    color: #4b2f80;
}

.chip.tag-tone-8 {
    border-color: #c68ab2;
    background: #fae8f2;
    color: #7a2853;
}

@media (prefers-color-scheme: dark) {
    .chip.tag-tone-1 {
        border-color: #8c4f4f;
        background: #311f1f;
        color: #f1c3c3;
    }

    .chip.tag-tone-2 {
        border-color: #926235;
        background: #332716;
        color: #ffd7a6;
    }

    .chip.tag-tone-3 {
        border-color: #747a2e;
        background: #272b16;
        color: #e5ec9f;
    }

    .chip.tag-tone-4 {
        border-color: #3d8550;
        background: #182b1d;
        color: #b7ebc3;
    }

    .chip.tag-tone-5 {
        border-color: #3b7f86;
        background: #16282b;
        color: #b2e9ef;
    }

    .chip.tag-tone-6 {
        border-color: #466ca3;
        background: #192233;
        color: #bdd2f7;
    }

    .chip.tag-tone-7 {
        border-color: #6f5a96;
        background: #231d31;
        color: #d8c8f2;
    }

    .chip.tag-tone-8 {
        border-color: #8a4c75;
        background: #301d2a;
        color: #f0c4e0;
    }
}

.post-list {
    display: grid;
    gap: 0.9rem;
}

.post-item {
    border: 1px solid var(--theme-border);
    background: var(--theme-surface-soft);
    border-radius: 12px;
    padding: 0.8rem;
}

.post-item h3 {
    margin: 0 0 0.25rem;
}

.post-content {
    white-space: pre-wrap;
}

.discussion-list {
    display: grid;
    gap: 0.8rem;
}

.discussion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.discussion-header h1 {
    margin-bottom: 0;
}

.discussion-board-toolbar__title,
.discussion-category-toggle,
.discussion-row__title-link {
    font-family: var(--font-heading);
    letter-spacing: 0.01em;
}

.discussion-btn {
    border: 1px solid var(--theme-accent);
    border-radius: 10px;
    background: var(--theme-accent);
    color: var(--theme-on-accent);
    font-weight: 700;
    padding: 0.5rem 0.8rem;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
}

.discussion-btn:hover,
.discussion-btn:focus-visible {
    background: var(--theme-accent-hover);
    color: var(--theme-on-accent);
}

.discussion-btn:visited {
    color: var(--theme-on-accent);
}

.discussion-btn--danger {
    border-color: #ba2036;
    background: #ba2036;
    color: #ffffff;
}

.discussion-btn--danger:hover {
    background: #9a1b2d;
    color: #ffffff;
}

.discussion-btn--danger-lite {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-danger);
}

.discussion-btn--danger-lite:hover {
    background: var(--theme-surface-soft);
    color: var(--theme-danger);
}

.discussion-btn--danger-lite:visited {
    color: var(--theme-danger);
}

.discussion-inline-form {
    margin: 0.55rem 0 0;
}

.discussion-row {
    border: 1px solid var(--theme-border);
    background: var(--theme-surface-soft);
    border-radius: 12px;
    padding: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.discussion-row__main {
    flex: 1;
    min-width: 0;
}

.discussion-row__title {
    margin: 0;
    font-size: 1.03rem;
}

.discussion-row__title-link {
    color: var(--theme-link);
    text-decoration: none;
}

.discussion-row__title-link:hover {
    color: var(--theme-link-hover);
    text-decoration: underline;
}

.discussion-row__description {
    margin: 0.3rem 0 0.5rem;
    color: var(--theme-muted);
}

.discussion-row__description,
.discussion-detail__content,
.discussion-comment__text {
    font-family: var(--font-reading);
    line-height: 1.62;
}

.discussion-row__reactions {
    margin-top: 0.45rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.discussion-row__reaction-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.12rem;
    padding: 0.12rem 0.35rem 0.12rem 0.28rem;
    border-radius: 999px;
    border: 1px solid var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-link);
    font-size: 0.74rem;
    font-weight: 700;
}

.discussion-row__reaction-emoji {
    font-size: 0.9rem;
    line-height: 1;
}

.discussion-row__reaction-count {
    min-width: 1.05rem;
    height: 1.05rem;
    padding: 0 0.2rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--theme-accent) 20%, var(--theme-surface-soft));
    color: var(--theme-link);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 800;
}

.discussion-reaction-widget {
    margin-top: 0.9rem;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    position: relative;
    --discussion-reaction-picker-trigger-left: 0px;
    --discussion-reaction-picker-trigger-right: 0px;
    --discussion-reaction-picker-trigger-mid: 50%;
    --discussion-reaction-picker-gap: 0.4rem;
}

.discussion-reaction-widget--inline {
    margin-top: 0.55rem;
}

.discussion-reaction-widget[data-loading="1"] {
    opacity: 0.72;
}

.discussion-reaction-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    font-size: 0.78rem;
    line-height: 1.2;
    padding: 0.28rem 0.55rem;
}

.discussion-reaction-trigger.is-active {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--theme-accent) 28%, transparent);
}

.discussion-reaction-widget__picker {
    position: absolute;
    left: calc(var(--discussion-reaction-picker-trigger-right) + var(--discussion-reaction-picker-gap));
    top: var(--discussion-reaction-picker-trigger-mid);
    bottom: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    padding: 0.1rem 0.24rem;
    --discussion-reaction-picker-border: color-mix(in srgb, var(--theme-accent) 25%, var(--theme-border));
    border: 1px solid var(--discussion-reaction-picker-border);
    border-radius: 999px;
    background: var(--theme-surface);
    box-shadow: 0 12px 30px rgba(10, 20, 34, 0.2);
    opacity: 0;
    transform: translateY(-50%) scale(0.96);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 5;
}

.discussion-reaction-widget:hover .discussion-reaction-widget__picker,
.discussion-reaction-widget:focus-within .discussion-reaction-widget__picker {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    pointer-events: auto;
}

.discussion-reaction-widget--inline .discussion-reaction-widget__picker {
    left: auto;
    right: calc(100% - var(--discussion-reaction-picker-trigger-left) + var(--discussion-reaction-picker-gap));
}

.discussion-reaction-widget__picker::before {
    content: "";
    position: absolute;
    right: 100%;
    top: 50%;
    width: 10px;
    height: 10px;
    border-top: 1px solid var(--discussion-reaction-picker-border);
    border-left: 1px solid var(--discussion-reaction-picker-border);
    background: var(--theme-surface);
    transform: translate(58%, -50%) rotate(45deg);
    pointer-events: none;
}

.discussion-reaction-widget--inline .discussion-reaction-widget__picker::before {
    right: auto;
    left: 100%;
    border-top: 1px solid var(--discussion-reaction-picker-border);
    border-left: 0;
    border-right: 1px solid var(--discussion-reaction-picker-border);
    transform: translate(-58%, -50%) rotate(45deg);
}

.discussion-reaction-option {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid var(--theme-border);
    background: var(--theme-surface-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.discussion-reaction-option:hover,
.discussion-reaction-option:focus-visible {
    transform: translateY(-3px) scale(1.08);
    background: color-mix(in srgb, var(--theme-accent) 12%, var(--theme-surface-soft));
    border-color: color-mix(in srgb, var(--theme-accent) 36%, var(--theme-border));
}

.discussion-reaction-option.is-active {
    border-color: color-mix(in srgb, var(--theme-accent) 44%, var(--theme-border));
    background: color-mix(in srgb, var(--theme-accent) 18%, var(--theme-surface-soft));
}

.discussion-reaction-option__emoji {
    font-size: 0.88rem;
    line-height: 1;
}

.discussion-reaction-summary {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    flex-wrap: wrap;
}

.discussion-reaction-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.12rem;
    padding: 0.12rem 0.35rem 0.12rem 0.25rem;
    border-radius: 999px;
    border: 1px solid var(--theme-border);
    background: var(--theme-surface-soft);
    color: var(--theme-link);
    font-size: 0.74rem;
    font-weight: 700;
}

.discussion-reaction-pill[data-count="0"] {
    display: none;
}

.discussion-reaction-pill__emoji {
    font-size: 0.9rem;
    line-height: 1;
}

.discussion-reaction-pill__count {
    min-width: 1.04rem;
    height: 1.04rem;
    padding: 0 0.2rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--theme-accent) 24%, var(--theme-surface));
    color: var(--theme-link);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.67rem;
    font-weight: 800;
}

.discussion-row__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.discussion-row__chips .chip {
    margin-right: 0;
    margin-bottom: 0;
}

.chip--category {
    background: var(--theme-link-active-bg);
    color: var(--theme-link-active);
}

.discussion-row__meta {
    flex: 0 0 auto;
    min-width: 132px;
    text-align: right;
}

.discussion-row__time,
.discussion-row__views,
.discussion-pagination__meta,
.discussion-category-toggle__meta,
.discussion-row__reaction-count,
.discussion-reaction-pill__count,
.discussion-attachment-meta,
.discussion-view-pill {
    font-family: var(--font-mono);
}

.discussion-row__time {
    display: block;
    color: var(--theme-link);
    font-weight: 700;
    font-size: 0.88rem;
}

.discussion-row__views {
    display: block;
    margin-top: 0.16rem;
    color: var(--theme-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.discussion-row__view-link {
    display: inline-block;
    margin-top: 0.35rem;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
}

.discussion-row__view-link:hover {
    text-decoration: underline;
}

.discussion-page .discussion-list {
    gap: 0;
}

.discussion-page .discussion-row {
    border: 0;
    border-bottom: 1px solid var(--theme-border);
    border-radius: 0;
    background: transparent;
    padding: 0.9rem 0;
}

.discussion-page .discussion-row:first-child {
    padding-top: 0;
}

.discussion-page .discussion-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.discussion-detail__back {
    margin-bottom: 0.35rem;
}

.discussion-detail__title {
    margin-bottom: 0.45rem;
}

.discussion-detail__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.discussion-view-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.18rem 0.52rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--theme-accent) 26%, var(--theme-border));
    background: color-mix(in srgb, var(--theme-accent) 9%, var(--theme-surface-soft));
    color: var(--theme-link);
    font-size: 0.78rem;
    font-weight: 800;
}

.discussion-detail__tags {
    margin: 0.5rem 0;
}

.discussion-detail__content > :first-child {
    margin-top: 0;
}

.discussion-detail__content > :last-child {
    margin-bottom: 0;
}

.discussion-comment-form {
    margin: 0.7rem 0 1rem;
}

.discussion-comment-form--textbox-only {
    margin: 0.85rem 0 0;
}

.discussion-comment-form--textbox-only input[type="text"] {
    width: 100%;
}

.discussion-comment-list {
    display: grid;
    gap: 0.7rem;
}

.discussion-comment {
    border: 1px solid var(--theme-border);
    background: var(--theme-surface-soft);
    border-radius: 10px;
    padding: 0.75rem;
}

.discussion-comment__line {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.discussion-comment__author-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    color: var(--theme-link);
    font-weight: 700;
}

.discussion-comment__author-link:hover {
    color: var(--theme-link-hover);
    text-decoration: underline;
}

.discussion-comment__avatar {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid var(--theme-border);
    background: var(--theme-link-active-bg);
    color: var(--theme-link-active);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

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

.discussion-comment__dash {
    color: var(--theme-muted);
    font-weight: 700;
    margin-top: 0.1rem;
}

.discussion-comment__text {
    color: var(--theme-text);
    flex: 1 1 220px;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.discussion-comment__time {
    color: var(--theme-muted);
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 0.1rem;
}

.discussion-comment__inline-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.42rem;
    flex: 0 0 auto;
}

.discussion-comment__actions {
    margin-top: 0;
    margin-bottom: 0;
}

.discussion-author-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.08rem;
    height: 1.08rem;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--theme-accent) 62%, var(--theme-border));
    background: var(--theme-accent);
    color: var(--theme-on-accent);
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--theme-surface) 72%, transparent);
    flex: 0 0 auto;
}

.discussion-author-verified > span {
    transform: translateY(-0.02em);
}

.discussion-reply-toggle {
    margin-top: 0.55rem;
    border: 1px solid var(--theme-border);
    border-radius: 9px;
    background: var(--theme-surface);
    color: var(--theme-link);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.55rem;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.discussion-reply-toggle--inline {
    margin-top: 0;
    margin-left: auto;
    flex: 0 0 auto;
}

.discussion-reply-toggle:hover,
.discussion-reply-toggle:focus-visible {
    background: var(--theme-link-hover-bg);
    color: var(--theme-link-hover);
}

.discussion-reply-toggle__triangle {
    display: inline-flex;
    width: 0.78rem;
    justify-content: center;
    transform-origin: center;
    transition: transform 0.2s ease;
}

.discussion-reply-toggle__triangle::before {
    content: "\25B6";
    font-size: 0.72rem;
    line-height: 1;
}

.discussion-reply-toggle.is-open .discussion-reply-toggle__triangle {
    transform: rotate(90deg);
}

.discussion-reply-toggle.is-closed .discussion-reply-toggle__triangle {
    transform: rotate(0deg);
}

.discussion-reply-list {
    margin-top: 0.55rem;
    margin-left: 0.5rem;
    padding-left: 0.6rem;
    border-left: 2px solid color-mix(in srgb, var(--theme-border) 70%, transparent);
    display: grid;
    gap: 0.45rem;
    overflow: hidden;
    max-height: 9999px;
    opacity: 1;
    transform: translateY(0);
    transition: max-height 0.24s ease, opacity 0.2s ease, transform 0.2s ease, margin 0.2s ease;
}

.discussion-reply-list.is-collapsed {
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    margin-top: 0.25rem;
    pointer-events: none;
}

.discussion-reply {
    border: 1px solid color-mix(in srgb, var(--theme-border) 88%, transparent);
    border-radius: 9px;
    background: color-mix(in srgb, var(--theme-surface) 90%, var(--theme-surface-soft));
    padding: 0.55rem 0.6rem;
}

.discussion-reply__line {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.discussion-reply__actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.42rem;
    flex: 0 0 auto;
}

.discussion-comment__inline-actions .discussion-reaction-widget--inline,
.discussion-reply__actions .discussion-reaction-widget--inline {
    margin-top: 0;
}

.discussion-report-actions.discussion-report-actions--inline {
    margin-top: 0;
}

.discussion-reply-form {
    margin-top: 0.55rem;
}

.discussion-reply-form input[type="text"] {
    width: 100%;
}

.discussion-modal {
    position: fixed;
    inset: 0;
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.4rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.discussion-modal.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.discussion-modal__backdrop {
    position: absolute;
    inset: 0;
    background: var(--theme-overlay);
}

.discussion-modal__panel {
    position: relative;
    width: min(720px, 100%);
    max-height: 92vh;
    overflow: auto;
    border: 1px solid var(--theme-border);
    border-radius: 16px;
    background: var(--theme-surface);
    color: var(--theme-text);
    padding: 1rem 1rem 1.2rem;
    box-shadow: 0 24px 70px rgba(13, 20, 34, 0.28);
}

.discussion-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    background: var(--theme-surface-soft);
    color: var(--theme-link);
    cursor: pointer;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.85rem;
}

.project-card {
    border: 1px solid var(--theme-border);
    background: var(--theme-surface-soft);
    border-radius: 12px;
    padding: 0.85rem;
    display: grid;
    gap: 0.55rem;
    min-width: 0;
    align-content: start;
}

.project-card__title {
    margin: 0;
    font-size: 1.02rem;
}

.project-card__description {
    margin: 0;
    color: var(--theme-muted);
}

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: flex-start;
}

.project-card__tags .chip {
    margin-right: 0;
    margin-bottom: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.project-card__updated {
    margin: 0;
    font-size: 0.85rem;
    color: var(--theme-link);
}

.project-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.project-source-modal {
    position: fixed;
    inset: 0;
    z-index: 9700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.project-source-modal.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.project-source-modal__backdrop {
    position: absolute;
    inset: 0;
    background: var(--theme-overlay);
}

.project-source-modal__panel {
    position: relative;
    width: min(1100px, 100%);
    height: min(88vh, 860px);
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    background: var(--theme-surface);
    color: var(--theme-text);
    padding: 0.9rem;
    box-shadow: 0 24px 70px rgba(13, 20, 34, 0.28);
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 0.7rem;
}

.project-source-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    background: var(--theme-surface-soft);
    color: var(--theme-link);
    cursor: pointer;
}

.project-source-modal__header h2 {
    margin: 0 2.3rem 0.2rem 0;
}

.project-source-modal__header p {
    margin: 0;
}

.project-source-modal__layout {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 0.75rem;
}

.project-source-modal__tree {
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    background: var(--theme-surface-soft);
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 0;
}

.project-source-modal__tree-head {
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid var(--theme-border);
    color: var(--theme-link);
    font-weight: 700;
}

.project-source-modal__tree-list {
    min-height: 0;
    overflow: auto;
    padding: 0.45rem;
    display: grid;
    gap: 0.25rem;
}

.project-source-modal__tree-list .site-spinner {
    border-color: color-mix(in srgb, var(--theme-accent) 24%, transparent);
    border-top-color: var(--theme-accent);
    vertical-align: middle;
    margin-right: 0.25rem;
}

.project-tree-item {
    display: grid;
    gap: 0.25rem;
}

.project-tree-item__button-main {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.project-tree-item__arrow {
    display: inline-flex;
    width: 0.8rem;
    justify-content: center;
    color: var(--theme-muted);
    transition: transform 0.18s ease;
}

.project-tree-item__button[data-entry-type="dir"][aria-expanded="true"] .project-tree-item__arrow {
    transform: rotate(90deg);
}

.project-tree-item__icon {
    display: inline-flex;
    width: 1rem;
    justify-content: center;
}

.project-tree-item__button {
    width: 100%;
    text-align: left;
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    background: var(--theme-surface);
    color: var(--theme-link);
    padding: 0.35rem 0.45rem;
    font-size: 0.84rem;
    cursor: pointer;
}

.project-tree-item__button:hover {
    background: var(--theme-link-hover-bg);
    color: var(--theme-link-hover);
}

.project-tree-item__children {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    display: block;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-5px);
    transition: max-height 0.22s ease, opacity 0.22s ease, transform 0.22s ease, margin 0.22s ease, padding 0.22s ease;
}

.project-tree-item__children.is-open {
    max-height: 1200px;
    opacity: 1;
    transform: translateY(0);
    margin-left: 0.55rem;
    padding-left: 0.45rem;
    border-left: 1px dashed var(--theme-border);
    display: grid;
    gap: 0.25rem;
}

.project-source-modal__code {
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.project-source-modal__loading {
    position: absolute;
    inset: 2.35rem 0 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    background: var(--theme-code-overlay);
    color: var(--theme-code-text);
    font-weight: 700;
    z-index: 3;
    backdrop-filter: blur(2px);
}

.project-source-modal__loading.is-hidden {
    display: none;
}

.project-source-modal__loading .site-spinner {
    border-color: color-mix(in srgb, var(--theme-accent) 28%, transparent);
    border-top-color: var(--theme-accent);
}

.project-source-modal__code-head {
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid var(--theme-border);
    background: var(--theme-surface-soft);
    color: var(--theme-link);
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-source-modal__code-wrap {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    min-height: 0;
    overflow: auto;
    scrollbar-gutter: stable;
    background: var(--theme-code-surface);
    color: var(--theme-code-text);
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
}

.project-source-modal__line-numbers {
    display: block;
    margin: 0;
    min-height: 100%;
    padding: 0.75rem 0.52rem 1.1rem;
    background: var(--theme-code-gutter-bg);
    border-right: 1px solid var(--theme-code-border);
    color: var(--theme-code-gutter-text);
    text-align: right;
    white-space: pre;
    user-select: none;
    line-height: 1.5;
    font-size: 0.9rem;
}

.project-source-modal__code-wrap #project-source-code,
.project-source-modal__code-wrap .project-source-code {
    display: block;
    min-height: 100%;
    min-width: 100%;
    margin: 0;
    padding: 0.75rem 0.75rem 1.1rem;
    line-height: 1.5;
    font-size: 0.9rem;
    white-space: pre;
    overflow-wrap: normal;
    word-break: normal;
    tab-size: 4;
}

.project-source-modal__code-wrap.is-hidden {
    display: none;
}

.project-source-modal__rendered {
    min-height: 0;
    overflow: auto;
    background: var(--theme-code-bg);
    color: var(--theme-code-text);
    padding: 0.85rem;
}

.project-source-modal__rendered.is-hidden {
    display: none;
}

.project-source-modal__rendered img,
.project-source-modal__rendered video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--theme-code-border);
    display: block;
    margin: 0 auto;
}

.project-source-modal__rendered video {
    width: min(100%, 980px);
    max-height: 70vh;
    background: color-mix(in srgb, var(--theme-code-bg) 88%, black);
}

.project-source-modal__rendered .markdown-body {
    background: transparent;
    color: var(--theme-code-text);
}

.project-source-modal__rendered .markdown-body pre {
    background: var(--theme-code-surface);
    border-color: var(--theme-code-border);
}

.profile-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.9rem;
    align-items: start;
}

.profile-header__avatar {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    border: 1px solid var(--theme-border);
    background: var(--theme-link-active-bg);
    color: var(--theme-link-active);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-transform: uppercase;
    font-size: 1.2rem;
}

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

.profile-header__meta h1 {
    margin-bottom: 0.25rem;
}

.profile-header__meta p {
    margin-bottom: 0.35rem;
}

.profile-bio-markdown {
    margin-top: 0.35rem;
}

.profile-bio-markdown .markdown-body {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
}

.profile-bio-markdown .markdown-body > :last-child {
    margin-bottom: 0;
}

.profile-stat-links {
    margin-top: 0.82rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.48rem;
}

.profile-stat-link {
    border: 1px solid var(--theme-border);
    border-radius: 999px;
    background: var(--theme-surface-soft);
    color: var(--theme-link);
    padding: 0.34rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.12s ease, border-color 0.12s ease;
}

.profile-stat-link:hover {
    background: var(--theme-link-hover-bg);
    color: var(--theme-link-hover);
    border-color: color-mix(in srgb, var(--theme-accent) 40%, var(--theme-border));
    transform: translateY(-1px);
}

.profile-module-modal__panel {
    width: min(760px, 100%);
    max-height: min(84vh, 900px);
}

.profile-module-view {
    margin-top: 0.8rem;
    display: grid;
    gap: 0.52rem;
}

.profile-module-view.is-hidden {
    display: none;
}

.profile-module-posts,
.profile-module-links {
    display: grid;
    gap: 0.48rem;
}

.profile-module-post,
.profile-module-link {
    border: 1px solid var(--theme-border);
    border-radius: 11px;
    background: var(--theme-surface-soft);
    padding: 0.52rem 0.62rem;
    text-decoration: none;
    display: grid;
    gap: 0.22rem;
}

.profile-module-post {
    color: var(--theme-link);
}

.profile-module-post:hover,
.profile-module-link:hover {
    border-color: color-mix(in srgb, var(--theme-accent) 42%, var(--theme-border));
    background: var(--theme-link-hover-bg);
}

.profile-module-post__title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--theme-link);
}

.profile-module-post__desc {
    font-size: 0.78rem;
    color: var(--theme-muted);
}

.profile-module-post__meta {
    font-size: 0.7rem;
    color: var(--theme-muted);
}

.profile-module-link__label {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--theme-link);
}

.profile-module-link__url {
    font-size: 0.72rem;
    color: var(--theme-muted);
    word-break: break-all;
}

.profile-module-link__source {
    font-size: 0.68rem;
    color: var(--theme-muted);
    opacity: 0.86;
}

.discussion-modal__panel,
.panel-modal__panel,
.auth-modal__panel,
.project-source-modal__panel,
.site-cookie-modal__panel,
.site-contact-modal__panel,
.site-error-modal__panel,
.project-source-modal__tree-list,
.project-source-modal__code-wrap,
.discussion-detail__content,
.discussion-comment-list {
    scrollbar-width: thin;
    scrollbar-color: var(--theme-scrollbar-thumb) var(--theme-scrollbar-track);
}

.discussion-modal__backdrop,
.panel-modal__backdrop,
.auth-modal__backdrop,
.project-source-modal__backdrop,
.site-cookie-modal__backdrop,
.site-contact-modal__backdrop,
.site-error-modal__backdrop {
    opacity: 1;
    backdrop-filter: blur(1px);
    transition: opacity 0.22s ease;
}

.discussion-modal.is-hidden .discussion-modal__backdrop,
.panel-modal.is-hidden .panel-modal__backdrop,
.auth-modal.is-hidden .auth-modal__backdrop,
.project-source-modal.is-hidden .project-source-modal__backdrop,
.site-cookie-modal.is-hidden .site-cookie-modal__backdrop,
.site-contact-modal.is-hidden .site-contact-modal__backdrop,
.site-error-modal.is-hidden .site-error-modal__backdrop {
    opacity: 0;
}

.discussion-modal__panel,
.panel-modal__panel,
.auth-modal__panel,
.project-source-modal__panel,
.site-cookie-modal__panel,
.site-contact-modal__panel,
.site-error-modal__panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.discussion-modal.is-hidden .discussion-modal__panel,
.panel-modal.is-hidden .panel-modal__panel,
.auth-modal.is-hidden .auth-modal__panel,
.project-source-modal.is-hidden .project-source-modal__panel,
.site-cookie-modal.is-hidden .site-cookie-modal__panel,
.site-contact-modal.is-hidden .site-contact-modal__panel,
.site-error-modal.is-hidden .site-error-modal__panel {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
}

.discussion-modal__panel::-webkit-scrollbar,
.panel-modal__panel::-webkit-scrollbar,
.auth-modal__panel::-webkit-scrollbar,
.project-source-modal__panel::-webkit-scrollbar,
.site-cookie-modal__panel::-webkit-scrollbar,
.site-contact-modal__panel::-webkit-scrollbar,
.site-error-modal__panel::-webkit-scrollbar,
.project-source-modal__tree-list::-webkit-scrollbar,
.project-source-modal__code-wrap::-webkit-scrollbar,
.discussion-detail__content::-webkit-scrollbar,
.discussion-comment-list::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.discussion-modal__panel::-webkit-scrollbar-track,
.panel-modal__panel::-webkit-scrollbar-track,
.auth-modal__panel::-webkit-scrollbar-track,
.project-source-modal__panel::-webkit-scrollbar-track,
.site-cookie-modal__panel::-webkit-scrollbar-track,
.site-contact-modal__panel::-webkit-scrollbar-track,
.site-error-modal__panel::-webkit-scrollbar-track,
.project-source-modal__tree-list::-webkit-scrollbar-track,
.project-source-modal__code-wrap::-webkit-scrollbar-track,
.discussion-detail__content::-webkit-scrollbar-track,
.discussion-comment-list::-webkit-scrollbar-track {
    background: var(--theme-scrollbar-track);
    border-radius: 999px;
}

.discussion-modal__panel::-webkit-scrollbar-thumb,
.panel-modal__panel::-webkit-scrollbar-thumb,
.auth-modal__panel::-webkit-scrollbar-thumb,
.project-source-modal__panel::-webkit-scrollbar-thumb,
.site-cookie-modal__panel::-webkit-scrollbar-thumb,
.site-contact-modal__panel::-webkit-scrollbar-thumb,
.site-error-modal__panel::-webkit-scrollbar-thumb,
.project-source-modal__tree-list::-webkit-scrollbar-thumb,
.project-source-modal__code-wrap::-webkit-scrollbar-thumb,
.discussion-detail__content::-webkit-scrollbar-thumb,
.discussion-comment-list::-webkit-scrollbar-thumb {
    background: var(--theme-scrollbar-thumb);
    border-radius: 999px;
    border: 2px solid var(--theme-scrollbar-track);
}

.discussion-modal__panel::-webkit-scrollbar-thumb:hover,
.panel-modal__panel::-webkit-scrollbar-thumb:hover,
.auth-modal__panel::-webkit-scrollbar-thumb:hover,
.project-source-modal__panel::-webkit-scrollbar-thumb:hover,
.site-cookie-modal__panel::-webkit-scrollbar-thumb:hover,
.site-contact-modal__panel::-webkit-scrollbar-thumb:hover,
.site-error-modal__panel::-webkit-scrollbar-thumb:hover,
.project-source-modal__tree-list::-webkit-scrollbar-thumb:hover,
.project-source-modal__code-wrap::-webkit-scrollbar-thumb:hover,
.discussion-detail__content::-webkit-scrollbar-thumb:hover,
.discussion-comment-list::-webkit-scrollbar-thumb:hover {
    background: var(--theme-scrollbar-thumb-hover);
}

.discussion-modal__close,
.panel-modal__close,
.project-source-modal__close,
.site-contact-modal__close,
.site-error-modal__close,
.auth-modal__close {
    font-size: 0;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.discussion-modal__close::before,
.panel-modal__close::before,
.project-source-modal__close::before,
.site-contact-modal__close::before,
.site-error-modal__close::before,
.auth-modal__close::before {
    content: "\2715";
    font-size: 0.95rem;
    line-height: 1;
    font-weight: 800;
    color: inherit;
}

.discussion-modal__panel::before,
.panel-modal__panel::before,
.auth-modal__panel::before,
.project-source-modal__panel::before,
.site-contact-modal__panel::before,
.site-error-modal__panel::before,
.site-cookie-modal__panel::before,
.discussion-modal__panel::after,
.panel-modal__panel::after,
.auth-modal__panel::after,
.project-source-modal__panel::after,
.site-contact-modal__panel::after,
.site-error-modal__panel::after,
.site-cookie-modal__panel::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease;
}

.discussion-modal__panel::before,
.panel-modal__panel::before,
.auth-modal__panel::before,
.project-source-modal__panel::before,
.site-contact-modal__panel::before,
.site-error-modal__panel::before,
.site-cookie-modal__panel::before {
    background: var(--theme-overlay);
    z-index: 30;
}

.discussion-modal__panel::after,
.panel-modal__panel::after,
.auth-modal__panel::after,
.project-source-modal__panel::after,
.site-contact-modal__panel::after,
.site-error-modal__panel::after,
.site-cookie-modal__panel::after {
    inset: auto;
    left: calc(50% - 11px);
    top: calc(50% - 11px);
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    animation: site-spinner-rotate 0.75s linear infinite;
    z-index: 31;
}

.discussion-modal[data-modal-loading="1"] .discussion-modal__panel::before,
.panel-modal[data-modal-loading="1"] .panel-modal__panel::before,
.auth-modal[data-modal-loading="1"] .auth-modal__panel::before,
.project-source-modal[data-modal-loading="1"] .project-source-modal__panel::before,
.site-contact-modal[data-modal-loading="1"] .site-contact-modal__panel::before,
.site-error-modal[data-modal-loading="1"] .site-error-modal__panel::before,
.site-cookie-modal[data-modal-loading="1"] .site-cookie-modal__panel::before,
.discussion-modal[data-modal-loading="1"] .discussion-modal__panel::after,
.panel-modal[data-modal-loading="1"] .panel-modal__panel::after,
.auth-modal[data-modal-loading="1"] .auth-modal__panel::after,
.project-source-modal[data-modal-loading="1"] .project-source-modal__panel::after,
.site-contact-modal[data-modal-loading="1"] .site-contact-modal__panel::after,
.site-error-modal[data-modal-loading="1"] .site-error-modal__panel::after,
.site-cookie-modal[data-modal-loading="1"] .site-cookie-modal__panel::after {
    opacity: 1;
}

.panel-tabs,
.panel-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.7rem 0 0.9rem;
}

.panel-tab-button,
.panel-subtab-button {
    border: 1px solid var(--theme-border);
    background: var(--theme-surface-soft);
    color: var(--theme-link);
    border-radius: 9px;
    padding: 0.45rem 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.panel-tab-button.is-active,
.panel-subtab-button.is-active {
    border-color: var(--theme-accent);
    background: var(--theme-accent);
    color: var(--theme-on-accent);
}

.panel-tab-panel,
.panel-subtab-panel {
    display: none;
}

.panel-tab-panel.is-active,
.panel-subtab-panel.is-active {
    display: block;
}

.panel-metric {
    margin-bottom: 0.65rem;
}

.panel-table-wrap {
    overflow-x: auto;
}

.panel-action-group {
    display: grid;
    gap: 0.38rem;
}

.panel-inline-form {
    display: grid;
    gap: 0.38rem;
    margin: 0 0 0.55rem;
}

.panel-inline-form:last-child {
    margin-bottom: 0;
}

.panel-inline-form input[type="text"],
.panel-inline-form input[type="email"],
.panel-inline-form select {
    min-width: 160px;
    max-width: 280px;
    width: 100%;
    font-size: 0.86rem;
    padding: 0.42rem 0.5rem;
}

.panel-action-btn {
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    background: var(--theme-surface-soft);
    color: var(--theme-link);
    font-weight: 700;
    padding: 0.42rem 0.55rem;
    cursor: pointer;
    font-size: 0.82rem;
}

.panel-action-btn:hover {
    background: var(--theme-link-hover-bg);
    color: var(--theme-link-hover);
}

.panel-action-btn--primary {
    border-color: var(--theme-accent);
    background: var(--theme-accent);
    color: var(--theme-on-accent);
}

.panel-action-btn--primary:hover {
    background: var(--theme-accent-hover);
}

.panel-action-btn--warn {
    border-color: #bf5a12;
    background: #bf5a12;
    color: #ffffff;
}

.panel-action-btn--warn:hover {
    background: #a34d10;
}

.panel-action-btn--danger {
    border-color: #ba2036;
    background: #ba2036;
    color: #ffffff;
}

.panel-action-btn--danger:hover {
    background: #9a1b2d;
}

.panel-home-builder {
    display: grid;
    gap: 0.7rem;
}

.panel-source-view-builder {
    display: grid;
    gap: 0.78rem;
}

.panel-source-view-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.62rem 0.72rem;
}

.panel-source-view-grid .muted {
    grid-column: 1 / -1;
    margin: -0.1rem 0 0.1rem;
}

.panel-source-view-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
    color: var(--theme-link);
    margin: 0;
    min-height: 2.2rem;
}

.panel-source-view-checkbox input[type="checkbox"] {
    margin: 0;
}

.panel-home-builder textarea,
.panel-home-builder input[type="text"],
.panel-home-builder select {
    width: 100%;
}

.panel-source-view-builder input[type="number"] {
    width: 100%;
}

.panel-home-section {
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    padding: 0.7rem;
    background: var(--theme-surface-soft);
    display: grid;
    gap: 0.6rem;
}

.panel-home-section__head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    justify-content: space-between;
}

.panel-home-section__head h3 {
    margin: 0;
}

.panel-home-list,
.panel-home-panels {
    display: grid;
    gap: 0.55rem;
}

.panel-home-row {
    display: grid;
    grid-template-columns: 1fr 1fr minmax(110px, 160px) auto;
    gap: 0.45rem;
    align-items: center;
}

.panel-home-row--panel-button {
    grid-template-columns: 1fr 1fr minmax(110px, 160px);
}

.panel-home-panel {
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    padding: 0.65rem;
    background: var(--theme-surface);
    display: grid;
    gap: 0.5rem;
}

.panel-home-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
}

.panel-home-builder__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.panel-modal {
    position: fixed;
    inset: 0;
    z-index: 9600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.panel-modal.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.panel-modal__backdrop {
    position: absolute;
    inset: 0;
    background: var(--theme-overlay);
}

.panel-modal__panel {
    position: relative;
    width: min(700px, 100%);
    max-height: 92vh;
    overflow: auto;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    background: var(--theme-surface);
    color: var(--theme-text);
    padding: 1rem 1rem 1.2rem;
    box-shadow: 0 24px 70px rgba(13, 20, 34, 0.28);
}

.panel-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    background: var(--theme-surface-soft);
    color: var(--theme-link);
    cursor: pointer;
}

@media (max-width: 720px) {
    .home-feature-grid {
        grid-template-columns: 1fr;
    }

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

    .home-popular-item__meta {
        justify-self: start;
    }

    .home-popular-item__desc {
        grid-column: 1;
    }

    .discussion-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .discussion-row {
        flex-direction: column;
        gap: 0.7rem;
    }

    .discussion-row__meta {
        min-width: 0;
        text-align: left;
    }

    .project-source-modal__panel {
        height: 92vh;
    }

    .project-source-modal__layout {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(180px, 40%) 1fr;
    }

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

    .panel-home-row,
    .panel-home-row--panel-button,
    .panel-source-view-grid {
        grid-template-columns: 1fr;
    }
}

label {
    display: block;
    color: var(--theme-link);
    font-weight: 600;
    font-size: 0.92rem;
}

label + :is(
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    input[type="tel"],
    input[type="url"],
    input[type="number"],
    input[type="date"],
    input[type="datetime-local"],
    input[type="time"],
    select,
    textarea
) {
    margin-top: 0.24rem;
}

:is(
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    input[type="tel"],
    input[type="url"],
    input[type="number"],
    input[type="date"],
    input[type="datetime-local"],
    input[type="time"],
    select,
    textarea
) + label {
    margin-top: 0.64rem;
}

.site-floating-field {
    position: relative;
    margin-top: 0.55rem;
}

.site-floating-field + .site-floating-field {
    margin-top: 0.6rem;
}

.site-floating-field .site-floating-field__control {
    padding-top: 1.15rem;
    padding-bottom: 0.45rem;
}

.site-floating-field .site-floating-field__label {
    position: absolute;
    top: 50%;
    left: 0.7rem;
    transform: translateY(-50%);
    pointer-events: none;
    background: var(--theme-surface);
    padding: 0 0.26rem;
    margin: 0;
    color: var(--theme-muted);
    font-weight: 600;
    font-size: 0.84rem;
    line-height: 1.1;
    transition: transform 0.16s ease, top 0.16s ease, color 0.16s ease, font-size 0.16s ease;
    max-width: calc(100% - 1.45rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-floating-field .site-floating-field__control::placeholder {
    color: transparent;
}

.site-floating-field.is-focused .site-floating-field__label,
.site-floating-field.has-value .site-floating-field__label {
    top: 0.18rem;
    transform: translateY(0);
    color: var(--theme-accent);
    font-size: 0.72rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="time"],
select,
textarea {
    width: 100%;
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    padding: 0.62rem 0.72rem;
    background: var(--theme-surface);
    color: var(--theme-text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea {
    resize: vertical;
}

.discussion-markdown-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.36rem;
    margin: 0.2rem 0 0.5rem;
}

.discussion-markdown-toolbar__btn {
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    background: var(--theme-surface-soft);
    color: var(--theme-link);
    padding: 0.28rem 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.discussion-markdown-toolbar__btn:hover,
.discussion-markdown-toolbar__btn:focus-visible {
    background: var(--theme-link-hover-bg);
    color: var(--theme-link-hover);
    border-color: color-mix(in srgb, var(--theme-accent) 52%, var(--theme-border));
}

input::placeholder,
textarea::placeholder {
    color: var(--theme-muted);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--theme-accent);
    box-shadow: 0 0 0 3px rgba(45, 109, 235, 0.2);
}

/* Keep custom combobox visuals on every single-select control site-wide. */
select:not([multiple]):not([size]) {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    padding-right: 2rem;
    background-color: var(--theme-surface);
    background-image:
        linear-gradient(45deg, transparent 50%, var(--theme-muted) 50%),
        linear-gradient(135deg, var(--theme-muted) 50%, transparent 50%),
        linear-gradient(
            to right,
            color-mix(in srgb, var(--theme-border) 70%, transparent),
            color-mix(in srgb, var(--theme-border) 70%, transparent)
        );
    background-position:
        calc(100% - 14px) calc(50% - 2px),
        calc(100% - 9px) calc(50% - 2px),
        calc(100% - 2.1rem) 50%;
    background-size:
        6px 6px,
        6px 6px,
        1px 1.2rem;
    background-repeat: no-repeat;
}

.site-combobox {
    position: relative;
    width: 100%;
}

.site-combobox__native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    inset: 0 auto auto 0;
}

.site-combobox__trigger {
    width: 100%;
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    padding: 0.62rem 2rem 0.62rem 0.72rem;
    background: var(--theme-surface);
    color: var(--theme-text);
    font-size: 0.95rem;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    position: relative;
}

.site-combobox__trigger::after {
    content: "";
    position: absolute;
    right: 0.75rem;
    top: 50%;
    width: 0.48rem;
    height: 0.48rem;
    border-right: 2px solid var(--theme-muted);
    border-bottom: 2px solid var(--theme-muted);
    transform: translateY(-62%) rotate(45deg);
    pointer-events: none;
}

.site-combobox.is-open .site-combobox__trigger {
    border-color: var(--theme-accent);
    box-shadow: 0 0 0 3px rgba(45, 109, 235, 0.2);
}

.site-combobox:focus-within .site-combobox__trigger {
    border-color: var(--theme-accent);
    box-shadow: 0 0 0 3px rgba(45, 109, 235, 0.2);
}

.site-combobox.is-open .site-combobox__trigger::after,
.site-combobox:focus-within .site-combobox__trigger::after {
    transform: translateY(-38%) rotate(-135deg);
}

.site-combobox__trigger:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.site-combobox__trigger-text {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-combobox__menu {
    display: grid;
    gap: 0.2rem;
    position: absolute;
    top: calc(100% + 0.32rem);
    left: 0;
    right: 0;
    z-index: 1400;
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    background: var(--theme-surface);
    box-shadow: 0 14px 28px rgba(8, 14, 28, 0.2);
    overflow: auto;
    max-height: 240px;
    padding: 0.24rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scaleY(0.96);
    transform-origin: top center;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.site-combobox.is-open .site-combobox__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scaleY(1);
}

.site-combobox:focus-within .site-combobox__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scaleY(1);
}

.site-combobox__option {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--theme-link);
    padding: 0.42rem 0.52rem;
    text-align: left;
    font-size: 0.88rem;
    cursor: pointer;
}

.site-combobox__option:hover {
    background: var(--theme-link-hover-bg);
    color: var(--theme-link-hover);
}

.site-combobox__option.is-selected {
    border-color: color-mix(in srgb, var(--theme-accent) 48%, var(--theme-border));
    background: color-mix(in srgb, var(--theme-accent) 10%, var(--theme-surface));
    color: var(--theme-link-hover);
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--theme-accent);
}

button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
    border: 1px solid var(--theme-accent);
    border-radius: 10px;
    background: var(--theme-accent);
    color: var(--theme-on-accent);
    font-weight: 700;
    padding: 0.62rem 0.9rem;
    cursor: pointer;
    font-family: inherit;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover {
    background: var(--theme-accent-hover);
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    overflow: hidden;
}

th,
td {
    border-bottom: 1px solid var(--theme-border);
    padding: 0.62rem 0.72rem;
    text-align: left;
}

th {
    color: var(--theme-link);
    background: var(--theme-surface-soft);
}

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

code,
pre {
    font-family: var(--font-mono);
}

pre {
    background: var(--theme-surface-soft);
    color: var(--theme-text);
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    padding: 0.75rem;
    overflow: auto;
}

blockquote {
    margin: 0 0 1rem;
    padding: 0.6rem 0.85rem;
    border-left: 4px solid var(--theme-accent);
    background: var(--theme-surface-soft);
    color: var(--theme-muted);
}

.markdown-body {
    color: var(--theme-text);
    line-height: 1.6;
    font-family: var(--font-reading);
}

.markdown-body > :first-child {
    margin-top: 0;
}

.markdown-body > :last-child {
    margin-bottom: 0;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    margin-top: 1.1rem;
    margin-bottom: 0.45rem;
}

.markdown-body p,
.markdown-body ul,
.markdown-body ol {
    margin-bottom: 0.8rem;
}

.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0.8rem;
}

.markdown-body th,
.markdown-body td {
    border: 1px solid var(--theme-border);
    padding: 0.45rem 0.55rem;
}

.markdown-body .markdown-table__left {
    text-align: left;
}

.markdown-body .markdown-table__center {
    text-align: center;
}

.markdown-body .markdown-table__right {
    text-align: right;
}

.markdown-body dl {
    margin: 0 0 0.85rem;
}

.markdown-body dt {
    font-weight: 800;
    margin-top: 0.46rem;
}

.markdown-body dd {
    margin: 0.2rem 0 0.42rem 1rem;
    color: var(--theme-muted);
}

.markdown-body .markdown-task-list {
    list-style: none;
    padding-left: 0;
}

.markdown-body .markdown-task-list__item {
    margin-bottom: 0.36rem;
}

.markdown-body .markdown-task-list__label {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.52rem;
}

.markdown-body .markdown-task-list__label input[type="checkbox"] {
    margin-top: 0.15rem;
}

.markdown-body .markdown-callout {
    margin: 0 0 0.9rem;
    border: 1px solid var(--theme-border);
    border-left-width: 4px;
    border-radius: 10px;
    padding: 0.58rem 0.72rem;
    background: var(--theme-surface-soft);
}

.markdown-body .markdown-callout__title {
    margin: 0 0 0.32rem;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.markdown-body .markdown-callout--note {
    border-left-color: color-mix(in srgb, var(--theme-accent) 72%, #67b3ff);
}

.markdown-body .markdown-callout--warning {
    border-left-color: color-mix(in srgb, var(--theme-danger) 72%, #ff7a7a);
    background: color-mix(in srgb, var(--theme-danger) 8%, var(--theme-surface-soft));
}

.markdown-body .markdown-footnote-ref a {
    font-size: 0.78em;
    text-decoration: none;
}

.markdown-body .markdown-footnotes {
    margin-top: 1rem;
    padding-top: 0.2rem;
}

.markdown-body .markdown-footnotes ol {
    padding-left: 1.12rem;
}

.markdown-body .markdown-footnote-backref {
    text-decoration: none;
    font-weight: 700;
}

.markdown-body pre.mermaid {
    padding: 0.75rem;
    overflow: auto;
}

.markdown-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--theme-border);
}

.markdown-body .markdown-mention {
    font-weight: 700;
    text-decoration: none;
}

.markdown-body .markdown-mention:hover {
    text-decoration: underline;
}

.markdown-body .markdown-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.15rem 0.64rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--theme-accent) 38%, var(--theme-border));
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--theme-accent) 16%, transparent), transparent 66%),
        color-mix(in srgb, var(--theme-accent) 10%, var(--theme-surface-soft));
    color: color-mix(in srgb, var(--theme-link) 84%, var(--theme-text));
    font-size: 0.74em;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.2;
    vertical-align: middle;
    white-space: nowrap;
    box-shadow:
        inset 0 1px 0 color-mix(in srgb, var(--theme-surface) 72%, transparent),
        0 0 0 1px color-mix(in srgb, var(--theme-accent) 6%, transparent);
}

.markdown-body .markdown-tag::before {
    content: "#";
    font-family: var(--font-mono);
    font-size: 0.92em;
    font-weight: 700;
    color: color-mix(in srgb, var(--theme-accent) 68%, var(--theme-link));
}

.markdown-body .markdown-media {
    margin: 0 0 0.9rem;
    padding: 0.55rem;
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--theme-surface-soft) 82%, transparent);
}

.markdown-body .markdown-media video,
.markdown-body .markdown-media iframe {
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: #000;
    aspect-ratio: 16 / 9;
}

.markdown-body .markdown-media figcaption {
    margin-top: 0.45rem;
    font-size: 0.82rem;
}

.markdown-body .markdown-github-source {
    margin: 0 0 0.9rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid color-mix(in srgb, var(--theme-accent) 34%, var(--theme-border));
    border-radius: 12px;
    background: color-mix(in srgb, var(--theme-accent) 8%, var(--theme-surface-soft));
}

.markdown-body .markdown-github-source__badge {
    display: inline-flex;
    margin-bottom: 0.4rem;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--theme-accent) 38%, var(--theme-border));
    color: var(--theme-link);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.markdown-body .markdown-github-source__path {
    display: block;
    margin: 0 0 0.4rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.markdown-body .markdown-github-tree {
    margin: 0 0 0.9rem;
    padding: 0.82rem 0.88rem;
    border: 1px solid color-mix(in srgb, var(--theme-accent) 32%, var(--theme-border));
    border-radius: 12px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--theme-accent) 8%, transparent), transparent 45%),
        var(--theme-surface-soft);
}

.markdown-body .markdown-github-tree__badge {
    display: inline-flex;
    margin-bottom: 0.42rem;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--theme-accent) 38%, var(--theme-border));
    color: var(--theme-link);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.markdown-body .markdown-github-tree__title {
    margin: 0;
    color: var(--theme-text);
    font-weight: 800;
}

.markdown-body .markdown-github-tree__path {
    margin: 0.18rem 0 0;
    color: var(--theme-muted);
    font-size: 0.84rem;
}

.markdown-body .markdown-github-tree__layout {
    margin-top: 0.62rem;
    min-height: min(70vh, 520px);
}

.markdown-body .markdown-github-tree .project-source-modal__layout {
    grid-template-columns: minmax(190px, 300px) 1fr;
    gap: 0.62rem;
}

.markdown-body .markdown-github-tree .project-source-modal__tree-list,
.markdown-body .markdown-github-tree .project-source-modal__code-wrap,
.markdown-body .markdown-github-tree .project-source-modal__rendered {
    max-height: min(62vh, 470px);
}

.markdown-body .markdown-github-tree .project-source-modal__code-head {
    font-size: 0.84rem;
}

.markdown-body .markdown-github-tree .project-tree-item__button.is-active {
    border-color: color-mix(in srgb, var(--theme-accent) 48%, var(--theme-border));
    background: color-mix(in srgb, var(--theme-accent) 15%, var(--theme-surface));
    color: var(--theme-link-active);
}

.markdown-body .markdown-github-tree__status {
    margin: 0.56rem 0 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--theme-link);
    font-size: 0.84rem;
    font-weight: 700;
}

.markdown-body .markdown-github-tree__status .site-spinner {
    border-color: color-mix(in srgb, var(--theme-accent) 24%, transparent);
    border-top-color: var(--theme-accent);
}

.markdown-body .markdown-github-tree__footer {
    margin: 0.52rem 0 0;
    font-size: 0.84rem;
    font-weight: 700;
}

.markdown-body .markdown-github-tree[data-github-tree-error="1"] .markdown-github-tree__status {
    color: var(--theme-danger);
}

.markdown-body[data-content-loading="1"] {
    position: relative;
}

.markdown-body[data-content-loading="1"]::before {
    content: "";
    position: absolute;
    left: calc(50% - 11px);
    top: calc(50% - 11px);
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 3px solid color-mix(in srgb, var(--theme-accent) 22%, transparent);
    border-top-color: var(--theme-accent);
    animation: site-spinner-rotate 0.75s linear infinite;
    z-index: 3;
    pointer-events: none;
}

.markdown-body[data-content-loading="1"]::after {
    content: "";
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--theme-surface) 76%, transparent);
    border-radius: 10px;
    z-index: 2;
    pointer-events: none;
}

.markdown-body [data-asset-loading="1"] {
    opacity: 0.72;
}

.markdown-body .markdown-media {
    position: relative;
}

.markdown-body .markdown-media__loading {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: color-mix(in srgb, var(--theme-code-bg) 82%, transparent);
    color: var(--theme-code-text);
    font-weight: 700;
    border-radius: 8px;
    z-index: 2;
    pointer-events: none;
}

.markdown-body .markdown-media[data-media-loading="1"] .markdown-media__loading {
    display: inline-flex;
}

.markdown-body .markdown-media__loading .site-spinner,
.markdown-tabs__preview-loading .site-spinner {
    border-color: color-mix(in srgb, var(--theme-accent) 24%, transparent);
    border-top-color: var(--theme-accent);
}

.markdown-body .markdown-poll {
    margin: 0 0 0.9rem;
    padding: 0.82rem;
    border: 1px solid color-mix(in srgb, var(--theme-accent) 34%, var(--theme-border));
    border-radius: 14px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--theme-accent) 8%, transparent), transparent 45%),
        var(--theme-surface-soft);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--theme-link) 9%, transparent);
}

.markdown-body .markdown-poll__header {
    margin: 0 0 0.62rem;
}

.markdown-body .markdown-poll__eyebrow {
    margin: 0 0 0.26rem;
    display: inline-flex;
    align-items: center;
    gap: 0.24rem;
    padding: 0.1rem 0.48rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--theme-accent) 34%, var(--theme-border));
    color: var(--theme-link);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.markdown-body .markdown-poll__question {
    margin: 0 0 0.22rem;
    font-size: 1rem;
    font-weight: 800;
}

.markdown-body .markdown-poll__deadline {
    margin: 0;
    color: var(--theme-muted);
    font-size: 0.82rem;
}

.markdown-body .markdown-poll__options {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 0.52rem;
}

.markdown-body .markdown-poll__option {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.44rem;
    width: 100%;
    padding: 0.58rem 0.62rem 2rem;
    border: 1px solid color-mix(in srgb, var(--theme-border) 86%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--theme-surface) 76%, var(--theme-surface-soft));
    color: var(--theme-text);
    cursor: pointer;
    text-align: left;
    overflow: hidden;
    transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.markdown-body .markdown-poll__option:disabled {
    cursor: default;
}

.markdown-body .markdown-poll__option:not(:disabled):hover,
.markdown-body .markdown-poll__option:not(:disabled):focus-visible {
    border-color: color-mix(in srgb, var(--theme-accent) 54%, var(--theme-border));
    transform: translateY(-1px);
    box-shadow: 0 8px 16px color-mix(in srgb, var(--theme-link) 14%, transparent);
}

.markdown-body .markdown-poll__option.is-selected {
    border-color: color-mix(in srgb, var(--theme-accent) 86%, var(--theme-border));
    background: color-mix(in srgb, var(--theme-accent) 14%, var(--theme-surface));
}

.markdown-body .markdown-poll__option.is-winner {
    border-color: color-mix(in srgb, var(--theme-success) 48%, var(--theme-border));
}

.markdown-body .markdown-poll__option-label {
    position: relative;
    z-index: 2;
    font-weight: 700;
}

.markdown-body .markdown-poll__option-meta {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.46rem;
    font-size: 0.78rem;
    color: var(--theme-muted);
}

.markdown-body .markdown-poll__option-votes {
    font-weight: 700;
}

.markdown-body .markdown-poll__option-percent {
    min-width: 2.2rem;
    text-align: right;
}

.markdown-body .markdown-poll__option-progress {
    position: absolute;
    left: 0.6rem;
    right: 0.6rem;
    bottom: 0.38rem;
    height: 1.02rem;
    border-radius: 999px;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
    background: color-mix(in srgb, var(--theme-surface) 74%, var(--theme-border));
    border: 1px solid color-mix(in srgb, var(--theme-accent) 18%, var(--theme-border));
}

.markdown-body .markdown-poll__option-progress-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--theme-accent) 60%, transparent), color-mix(in srgb, var(--theme-accent) 30%, transparent));
    transition: width 0.22s ease;
}

.markdown-body .markdown-poll__option-voters {
    position: absolute;
    left: 0.74rem;
    right: 0.74rem;
    bottom: 0.38rem;
    min-height: 1.02rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0;
    pointer-events: none;
}

.markdown-body .markdown-poll__voter-avatar {
    position: relative;
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--theme-surface) 85%, var(--theme-border));
    background: color-mix(in srgb, var(--theme-accent) 16%, var(--theme-surface));
    color: var(--theme-link);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.58rem;
    font-weight: 800;
    overflow: hidden;
    box-shadow: 0 2px 5px color-mix(in srgb, var(--theme-link) 18%, transparent);
    margin-right: -0.24rem;
}

.markdown-body .markdown-poll__voter-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    border: 0;
}

.markdown-body .markdown-poll__voter-avatar-initials {
    line-height: 1;
}

.markdown-body .markdown-poll__voter-avatar.is-current-user {
    border-color: color-mix(in srgb, var(--theme-accent) 88%, #ffffff);
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--theme-accent) 45%, transparent),
        0 2px 5px color-mix(in srgb, var(--theme-link) 18%, transparent);
}

.markdown-body .markdown-poll__voter-avatar--more {
    width: auto;
    min-width: 1.2rem;
    padding: 0 0.22rem;
    font-size: 0.56rem;
    margin-left: 0.2rem;
    margin-right: 0;
}

.markdown-body .markdown-poll__status {
    margin: 0;
    color: var(--theme-link);
    font-size: 0.84rem;
    font-weight: 700;
}

.markdown-body .markdown-poll[data-poll-loading="1"] .markdown-poll__status::before {
    content: "• ";
    opacity: 0.74;
}

.markdown-body .markdown-poll.is-closed .markdown-poll__status {
    color: var(--theme-muted);
}

.markdown-tabs {
    margin: 0 0 0.9rem;
    border: 1px solid color-mix(in srgb, var(--theme-accent) 28%, var(--theme-border));
    border-radius: 14px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--theme-accent) 8%, transparent), transparent 36%),
        var(--theme-surface-soft);
    box-shadow: 0 12px 28px color-mix(in srgb, var(--theme-link) 10%, transparent);
    overflow: hidden;
}

.markdown-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.58rem 0.58rem 0.52rem;
    border-bottom: 1px solid color-mix(in srgb, var(--theme-border) 72%, transparent);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--theme-surface) 96%, transparent), color-mix(in srgb, var(--theme-surface-soft) 84%, transparent));
}

.markdown-tabs__tab {
    border: 1px solid color-mix(in srgb, var(--theme-accent) 26%, var(--theme-border));
    border-radius: 999px;
    background: color-mix(in srgb, var(--theme-surface) 62%, var(--theme-surface-soft));
    color: var(--theme-link);
    padding: 0.34rem 0.78rem;
    font-size: 0.79rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--theme-surface) 70%, transparent);
}

.markdown-tabs__tab:hover,
.markdown-tabs__tab:focus-visible {
    background: color-mix(in srgb, var(--theme-link-hover-bg) 78%, var(--theme-surface));
    color: var(--theme-link-hover);
    border-color: color-mix(in srgb, var(--theme-accent) 42%, var(--theme-border));
    transform: translateY(-1px);
}

.markdown-tabs__tab.is-active {
    border-color: color-mix(in srgb, var(--theme-accent) 86%, var(--theme-border));
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--theme-accent) 82%, #ffffff), color-mix(in srgb, var(--theme-accent) 98%, #000000));
    color: var(--theme-on-accent);
    box-shadow:
        0 7px 14px color-mix(in srgb, var(--theme-accent) 24%, transparent),
        inset 0 1px 0 color-mix(in srgb, #ffffff 28%, transparent);
    transform: translateY(-1px);
}

.markdown-tabs__panel {
    display: none;
    padding: 0.78rem;
    background: color-mix(in srgb, var(--theme-surface) 76%, transparent);
}

.markdown-tabs__panel.is-active {
    display: block;
}

.markdown-tabs__panel pre {
    margin: 0;
}

.markdown-tabs__preview-host {
    position: relative;
    min-height: 260px;
    border: 1px solid color-mix(in srgb, var(--theme-code-border) 84%, var(--theme-border));
    border-radius: 12px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--theme-accent) 12%, transparent), transparent 52%),
        var(--theme-surface);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--theme-surface) 58%, transparent);
}

.markdown-tabs__preview-frame {
    width: 100%;
    min-height: 260px;
    border: 0;
    display: block;
}

.markdown-tabs__preview-loading {
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    color: var(--theme-link);
    font-weight: 700;
    background: color-mix(in srgb, var(--theme-surface-soft) 88%, transparent);
}

.markdown-tabs__preview-host.is-ready .markdown-tabs__preview-loading {
    display: none;
}

.markdown-body .markdown-code-block {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: stretch;
    margin: 0 0 0.8rem;
    border: 1px solid var(--theme-code-border);
    border-radius: 10px;
    background: var(--theme-code-surface);
    overflow: auto;
}

.markdown-body .markdown-code-gutter {
    display: block;
    margin: 0;
    padding: 0.75rem 0.5rem;
    white-space: pre;
    text-align: right;
    user-select: none;
    line-height: 1.5;
    color: var(--theme-code-gutter-text);
    background: var(--theme-code-gutter-bg);
    border-right: 1px solid var(--theme-code-border);
    font-size: 0.9rem;
}

.markdown-body pre.markdown-code-pre {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0.75rem;
    overflow: visible;
    min-width: 100%;
    font-size: 0.9rem;
}

.markdown-body pre.markdown-code-pre code {
    display: block;
    min-width: max-content;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre;
    overflow-wrap: normal;
    word-break: normal;
}

.markdown-body pre.markdown-code-pre code.hljs {
    padding: 0;
}

.markdown-body pre {
    background: var(--theme-code-surface);
    color: var(--theme-code-text);
    border-color: var(--theme-code-border);
}

.site-code-copy-host {
    position: relative;
}

.site-code-copy-btn {
    position: absolute;
    top: 0.46rem;
    right: 0.46rem;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--theme-code-border);
    border-radius: 8px;
    background: color-mix(in srgb, var(--theme-surface) 82%, var(--theme-surface-soft));
    color: var(--theme-link);
    cursor: pointer;
    font-size: 0;
    line-height: 0;
    z-index: 6;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.site-code-copy-btn::before,
.site-code-copy-btn::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border: 1.6px solid currentColor;
    border-radius: 2px;
    left: 50%;
    top: 50%;
    box-sizing: border-box;
}

.site-code-copy-btn::before {
    transform: translate(-32%, -32%);
}

.site-code-copy-btn::after {
    transform: translate(-68%, -68%);
}

.site-code-copy-btn:hover {
    background: var(--theme-link-hover-bg);
    color: var(--theme-link-hover);
    transform: translateY(-1px);
}

.site-code-copy-btn:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--theme-accent) 55%, transparent);
    outline-offset: 1px;
}

.site-code-copy-btn.is-copied {
    border-color: color-mix(in srgb, var(--theme-success) 58%, var(--theme-border));
    background: color-mix(in srgb, var(--theme-success) 88%, var(--theme-surface));
    color: #ffffff;
}

.site-sourceview-host {
    position: relative;
}

.site-sourceview-code {
    background-color: transparent !important;
}

.site-sourceview-indent-guides .site-sourceview-code {
    background-image: repeating-linear-gradient(
        to right,
        transparent 0,
        transparent calc((var(--site-sourceview-tab-size, 4) * 1ch) - 1px),
        color-mix(in srgb, var(--theme-code-border) 50%, transparent) calc((var(--site-sourceview-tab-size, 4) * 1ch) - 1px),
        color-mix(in srgb, var(--theme-code-border) 50%, transparent) calc(var(--site-sourceview-tab-size, 4) * 1ch)
    );
    background-size: calc(var(--site-sourceview-tab-size, 4) * 1ch) 100%;
    background-repeat: repeat;
    background-origin: content-box;
}

.site-sourceview-code--wrap {
    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.site-sourceview-fold-active .site-sourceview-code,
.site-sourceview-fold-active .site-sourceview-code--wrap {
    white-space: pre !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

.project-source-modal__code-wrap.site-sourceview-wrap {
    grid-template-columns: 1fr;
}

.project-source-modal__code-wrap.site-sourceview-wrap .project-source-modal__line-numbers {
    display: none !important;
}

.markdown-body .markdown-code-block.site-sourceview-wrap-mode {
    grid-template-columns: 1fr;
}

.project-source-modal__line-numbers.site-source-gutter-hidden,
.markdown-code-gutter.site-source-gutter-hidden {
    display: none !important;
}

.project-source-modal__line-numbers.site-source-gutter-rows,
.markdown-code-gutter.site-source-gutter-rows {
    white-space: normal;
    position: relative;
    overflow: visible;
    z-index: 3;
}

.project-source-modal__code-wrap .project-source-code,
.markdown-body pre.markdown-code-pre code {
    position: relative;
    z-index: 1;
}

.site-source-gutter-row {
    display: grid;
    grid-template-columns: auto 1rem;
    align-items: center;
    min-height: 1.5em;
    line-height: 1.5;
    position: relative;
    gap: 0.28rem;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.site-source-gutter-row::before {
    content: none;
}

.site-source-gutter-fold,
.site-source-gutter-spacer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1.5em;
    line-height: 1;
}

.site-source-gutter-spacer {
    opacity: 0;
}

.site-source-gutter-fold {
    border: 0;
    background: transparent;
    color: color-mix(in srgb, var(--theme-code-gutter-text) 92%, #d6e6ff);
    font-weight: 900;
    padding: 0;
    cursor: pointer;
    transition: color 0.16s ease;
    transform-origin: center;
    font-family: var(--font-mono);
    position: relative;
    font-size: 0;
}

.site-source-gutter-fold::before {
    content: ">";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    transform-origin: center;
    transition: transform 0.2s ease;
    font-size: 0.88rem;
    line-height: 1;
    font-weight: 900;
}

.site-source-gutter-fold[aria-expanded="true"]::before {
    transform: translate(-50%, -50%) rotate(90deg);
}

.site-source-gutter-fold[aria-expanded="false"]::before {
    transform: translate(-50%, -50%) rotate(0deg);
}

.site-source-gutter-fold:hover {
    color: #e9f3ff;
}

.site-source-gutter-fold:focus-visible {
    outline: 1px solid color-mix(in srgb, var(--theme-accent) 55%, transparent);
    outline-offset: 1px;
    border-radius: 3px;
}

.site-source-line-number {
    display: inline-flex;
    align-items: center;
    min-width: 1.3rem;
    text-align: right;
    padding-right: 0.08rem;
    line-height: 1.5;
}

.site-sourceview-code {
    line-height: 1.5;
}

.site-sourceview-code * {
    line-height: inherit;
}

.site-source-code-line {
    display: block;
    min-height: 1.5em;
    line-height: 1.5;
    white-space: pre;
    overflow: hidden;
}

.site-source-inline-fold-toggle {
    margin-left: 0.58rem;
    border: 1px solid color-mix(in srgb, var(--theme-code-border) 62%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--theme-accent) 16%, var(--theme-code-surface));
    color: color-mix(in srgb, var(--theme-code-text) 92%, #d7e7ff);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 0.08rem 0.45rem;
    cursor: pointer;
    vertical-align: middle;
    white-space: nowrap;
}

.site-source-inline-fold-toggle:hover {
    background: color-mix(in srgb, var(--theme-accent) 26%, var(--theme-code-surface));
}

.site-source-inline-fold-toggle:focus-visible {
    outline: 1px solid color-mix(in srgb, var(--theme-accent) 55%, transparent);
    outline-offset: 1px;
}

.site-source-code-line--expanding {
    animation: site-source-line-expand 0.2s ease;
    transform-origin: top;
}

.site-source-code-line--collapsing {
    animation: site-source-line-collapse 0.16s ease forwards;
    transform-origin: top;
}

@keyframes site-source-line-expand {
    0% {
        opacity: 0;
        max-height: 0;
        transform: translateY(-3px);
    }
    100% {
        opacity: 1;
        max-height: 2.2em;
        transform: translateY(0);
    }
}

@keyframes site-source-line-collapse {
    0% {
        opacity: 1;
        max-height: 2.2em;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        max-height: 0;
        transform: translateY(-3px);
    }
}

img {
    max-width: 100%;
    height: auto;
}

.site-error-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    font-family: var(--font-ui);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.site-error-modal.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.site-error-modal__backdrop {
    position: absolute;
    inset: 0;
    background: var(--theme-overlay);
    backdrop-filter: blur(1px);
}

.site-error-modal__panel {
    position: relative;
    width: min(540px, 100%);
    background: var(--theme-surface);
    color: var(--theme-text);
    border: 1px solid var(--theme-border);
    border-radius: 16px;
    padding: 1rem 1rem 1.1rem;
    box-shadow: 0 24px 70px rgba(13, 20, 34, 0.28);
}

.site-error-modal__close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    width: 32px;
    height: 32px;
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    background: var(--theme-surface-soft);
    color: var(--theme-link);
    cursor: pointer;
}

.site-error-modal__title {
    margin: 0 2.2rem 0.45rem 0;
    color: var(--theme-danger);
}

.site-error-modal__message {
    margin: 0 0 0.85rem;
    color: var(--theme-text);
    white-space: pre-line;
}

.site-error-modal__button {
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    background: var(--theme-surface-soft);
    color: var(--theme-link);
    padding: 0.55rem 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.site-error-modal__button:hover {
    background: var(--theme-link-hover-bg);
}

.site-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 10055;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    font-family: var(--font-ui);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.site-confirm-modal.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.site-confirm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: var(--theme-overlay);
    backdrop-filter: blur(1px);
}

.site-confirm-modal__panel {
    position: relative;
    width: min(520px, 100%);
    background: var(--theme-surface);
    color: var(--theme-text);
    border: 1px solid var(--theme-border);
    border-radius: 16px;
    padding: 1rem 1rem 1.1rem;
    box-shadow: 0 24px 70px rgba(13, 20, 34, 0.28);
}

.site-confirm-modal__close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    width: 32px;
    height: 32px;
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    background: var(--theme-surface-soft);
    color: var(--theme-link);
    cursor: pointer;
}

.site-confirm-modal__title {
    margin: 0 2.2rem 0.45rem 0;
}

.site-confirm-modal__message {
    margin: 0;
    color: var(--theme-text);
    white-space: pre-line;
}

.site-confirm-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

.site-confirm-modal__cancel {
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    background: var(--theme-surface-soft);
    color: var(--theme-link);
    padding: 0.55rem 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.site-confirm-modal__cancel:hover {
    background: var(--theme-link-hover-bg);
    color: var(--theme-link-hover);
}

.site-confirm-modal__confirm {
    border: 1px solid color-mix(in srgb, var(--theme-danger) 42%, var(--theme-border));
    border-radius: 10px;
    background: color-mix(in srgb, var(--theme-danger) 88%, var(--theme-surface));
    color: #ffffff;
    padding: 0.55rem 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.site-confirm-modal__confirm:hover {
    background: color-mix(in srgb, var(--theme-danger) 96%, black 4%);
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    font-family: var(--font-ui);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.auth-modal.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.auth-modal__backdrop {
    position: absolute;
    inset: 0;
    background: var(--theme-overlay);
    backdrop-filter: blur(1px);
}

.auth-modal__panel {
    position: relative;
    width: min(580px, 100%);
    max-height: 92vh;
    overflow: auto;
    background: var(--theme-surface);
    color: var(--theme-text);
    border: 1px solid var(--theme-border);
    border-radius: 16px;
    padding: 1rem 1rem 1.3rem;
    box-shadow: 0 24px 70px rgba(13, 20, 34, 0.28);
}

.auth-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    background: var(--theme-surface-soft);
    color: var(--theme-link);
    cursor: pointer;
}

.auth-modal__header {
    margin: 0 2.35rem 0.8rem 0;
}

.auth-modal__eyebrow {
    margin: 0;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--theme-muted);
    font-weight: 700;
}

.auth-modal__title {
    margin: 0.24rem 0 0;
    font-size: 1.22rem;
    line-height: 1.28;
}

.auth-modal__subtitle {
    margin: 0.24rem 0 0;
    color: var(--theme-muted);
    font-size: 0.9rem;
}

.auth-modal__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.auth-modal__tab {
    border: 1px solid var(--theme-border);
    background: var(--theme-surface-soft);
    color: var(--theme-link);
    border-radius: 10px;
    padding: 0.65rem 0.8rem;
    cursor: pointer;
    font-weight: 700;
    transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.auth-modal__tab.is-active {
    border-color: var(--theme-accent);
    background: var(--theme-accent);
    color: var(--theme-on-accent);
}

.auth-modal__status {
    min-height: 0;
    margin: 0.25rem 0 0.7rem;
    font-size: 0.92rem;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 0;
    display: none;
}

.auth-modal__status.is-error {
    color: var(--theme-danger);
    border-color: color-mix(in srgb, var(--theme-danger) 34%, var(--theme-border));
    background: color-mix(in srgb, var(--theme-danger) 9%, var(--theme-surface-soft));
    padding: 0.5rem 0.62rem;
    display: block;
}

.auth-modal__status.is-success {
    color: var(--theme-success);
    border-color: color-mix(in srgb, var(--theme-success) 34%, var(--theme-border));
    background: color-mix(in srgb, var(--theme-success) 9%, var(--theme-surface-soft));
    padding: 0.5rem 0.62rem;
    display: block;
}

.auth-modal__form {
    display: none;
}

.auth-modal__form.is-active {
    display: grid;
    gap: 0.6rem;
}

.auth-modal__field label {
    display: block;
    margin: 0 0 0.22rem;
    font-size: 0.84rem;
    color: var(--theme-muted);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.auth-modal__form input:not([type="checkbox"]):not([type="radio"]),
.auth-modal__form textarea {
    width: 100%;
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    padding: 0.62rem 0.7rem;
    font-size: 0.94rem;
    background: var(--theme-surface);
    color: var(--theme-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.auth-modal__form input:not([type="checkbox"]):not([type="radio"]):focus,
.auth-modal__form textarea:focus {
    outline: 0;
    border-color: var(--theme-accent);
    box-shadow: 0 0 0 3px rgba(45, 109, 235, 0.2);
}

.auth-modal__form textarea {
    min-height: 84px;
}

.auth-modal__grid {
    display: grid;
    gap: 0.6rem;
}

.auth-modal__grid--two {
    grid-template-columns: 1fr 1fr;
}

.auth-modal__section-title {
    margin: 0.15rem 0 0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--theme-muted);
}

.auth-modal__human {
    margin-top: 0.2rem;
    padding: 0.82rem;
    border: 1px dashed color-mix(in srgb, var(--theme-accent) 32%, var(--theme-border));
    border-radius: 12px;
    background: color-mix(in srgb, var(--theme-surface-soft) 86%, var(--theme-surface));
}

.auth-modal__human-title {
    margin: 0;
    font-size: 0.9rem;
    color: var(--theme-link-hover);
    font-weight: 800;
}

.auth-modal__human-note {
    margin: 0.2rem 0 0.68rem;
    font-size: 0.82rem;
    color: var(--theme-muted);
}

.auth-modal__checkbox {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.92rem;
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.auth-modal__checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin: 0;
    padding: 0;
    flex: 0 0 1rem;
    accent-color: var(--theme-accent);
}

.auth-modal__checkbox input[type="checkbox"]:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--theme-accent) 62%, transparent);
    outline-offset: 2px;
}

.auth-modal__checkbox--compact {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 700;
}

.auth-modal__row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.auth-modal__row--between {
    justify-content: space-between;
    flex-wrap: wrap;
}

.auth-modal__question-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-bottom: 0.42rem;
}

.auth-modal__question {
    margin: 0;
    font-size: 0.9rem;
    color: var(--theme-text);
    font-weight: 700;
}

.auth-modal__link {
    margin-top: 0;
    border: 0;
    background: transparent;
    color: var(--theme-accent);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0;
}

.auth-modal__forgot-link {
    font-weight: 700;
}

.auth-modal__forgot-send {
    margin-top: -0.2rem;
    margin-bottom: 0.15rem;
    justify-self: start;
}

.auth-modal__forgot-verify {
    font-weight: 700;
}

.auth-modal__forgot-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--theme-success) 36%, var(--theme-border));
    background: color-mix(in srgb, var(--theme-success) 10%, var(--theme-surface-soft));
    color: var(--theme-success);
    font-size: 0.78rem;
    font-weight: 800;
}

.auth-modal__forgot-reset-stage {
    display: grid;
    gap: 0.58rem;
}

.auth-modal__forgot-reset-stage.is-hidden {
    display: none;
}

.auth-modal__submit {
    width: 100%;
    margin-top: 0.75rem;
    border: 0;
    border-radius: 10px;
    background: var(--theme-positive);
    color: #ffffff;
    font-weight: 700;
    padding: 0.72rem 0.85rem;
    cursor: pointer;
    transition: background-color 0.16s ease, transform 0.16s ease;
}

.auth-modal__submit:hover {
    background: var(--theme-positive-hover);
    transform: translateY(-1px);
}

.auth-modal__submit:active {
    transform: translateY(0);
}

.auth-modal__submit--secondary {
    background: var(--theme-surface-soft);
    color: var(--theme-link);
    border: 1px solid var(--theme-border);
}

.auth-modal__submit--secondary:hover {
    background: color-mix(in srgb, var(--theme-surface-soft) 70%, var(--theme-link-hover-bg));
}

.auth-modal__forgot-actions {
    align-items: stretch;
}

.auth-modal__forgot-actions .auth-modal__submit {
    margin-top: 0.35rem;
}

.auth-modal__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

@media (max-width: 560px) {
    .auth-modal__grid--two {
        grid-template-columns: 1fr;
    }

    .auth-modal__tabs {
        grid-template-columns: 1fr;
    }
}

.site-spinner {
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    display: inline-flex;
    animation: site-spinner-rotate 0.75s linear infinite;
    flex: 0 0 1rem;
}

@keyframes site-spinner-rotate {
    to {
        transform: rotate(360deg);
    }
}

.site-page-loader {
    position: fixed;
    inset: 0;
    z-index: 10030;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-overlay);
    backdrop-filter: blur(3px);
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.site-page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.site-page-loader__inner {
    display: inline-flex;
    align-items: center;
    gap: 0.62rem;
    padding: 0.75rem 0.95rem;
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    background: var(--theme-surface);
    color: var(--theme-link);
    font-weight: 700;
    box-shadow: 0 14px 35px rgba(8, 14, 28, 0.22);
}

.site-page-loader__inner .site-spinner {
    border-color: rgba(45, 109, 235, 0.25);
    border-top-color: var(--theme-accent);
}

.site-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10040;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    font-family: var(--font-ui);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.site-cookie-modal.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.site-cookie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: var(--theme-overlay);
    backdrop-filter: blur(1px);
}

.site-cookie-modal__panel {
    position: relative;
    width: min(520px, 100%);
    max-height: 92vh;
    overflow: auto;
    background: var(--theme-surface);
    color: var(--theme-text);
    border: 1px solid var(--theme-border);
    border-radius: 16px;
    padding: 1rem 1rem 1.1rem;
    box-shadow: 0 24px 70px rgba(13, 20, 34, 0.28);
}

.site-cookie-modal__title {
    margin: 0 0 0.42rem;
}

.site-cookie-modal__text {
    margin: 0;
    color: var(--theme-muted);
}

.site-cookie-modal__actions {
    display: flex;
    gap: 0.55rem;
    margin-top: 0.85rem;
    flex-wrap: wrap;
}

.site-cookie-modal__actions button {
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    background: var(--theme-surface-soft);
    color: var(--theme-link);
    padding: 0.55rem 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.site-cookie-modal__actions button:hover {
    background: var(--theme-link-hover-bg);
    color: var(--theme-link-hover);
}

.site-cookie-modal__actions .site-cookie-modal__allow {
    border-color: var(--theme-accent);
    background: var(--theme-accent);
    color: var(--theme-on-accent);
}

.site-cookie-modal__actions .site-cookie-modal__allow:hover {
    background: var(--theme-accent-hover);
}

.site-contact-modal {
    position: fixed;
    inset: 0;
    z-index: 10045;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    font-family: var(--font-ui);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.site-contact-modal.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.site-contact-modal__backdrop {
    position: absolute;
    inset: 0;
    background: var(--theme-overlay);
    backdrop-filter: blur(1px);
}

.site-contact-modal__panel {
    position: relative;
    width: min(620px, 100%);
    max-height: 92vh;
    overflow: auto;
    background: var(--theme-surface);
    color: var(--theme-text);
    border: 1px solid var(--theme-border);
    border-radius: 16px;
    padding: 1rem 1rem 1.1rem;
    box-shadow: 0 24px 70px rgba(13, 20, 34, 0.28);
}

.site-contact-modal__close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    width: 32px;
    height: 32px;
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    background: var(--theme-surface-soft);
    color: var(--theme-link);
    cursor: pointer;
}

.site-contact-modal__title {
    margin: 0 2.2rem 0.4rem 0;
}

.site-contact-modal__text {
    margin: 0 0 0.75rem;
    color: var(--theme-muted);
}

.site-contact-modal__form {
    display: grid;
    gap: 0.45rem;
}

.site-contact-modal__form label {
    font-weight: 700;
    color: var(--theme-link);
}

.site-contact-modal__form input,
.site-contact-modal__form textarea {
    width: 100%;
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    background: var(--theme-surface-soft);
    color: var(--theme-text);
    padding: 0.56rem 0.64rem;
    font: inherit;
}

.site-contact-modal__form textarea {
    resize: vertical;
    min-height: 150px;
}

.site-contact-modal__status {
    margin: 0.1rem 0 0;
    font-weight: 700;
}

.site-contact-modal__status.is-error {
    color: var(--theme-danger);
}

.site-contact-modal__status.is-success {
    color: var(--theme-success);
}

.site-contact-modal__submit {
    justify-self: start;
    border: 1px solid var(--theme-accent);
    border-radius: 10px;
    background: var(--theme-accent);
    color: var(--theme-on-accent);
    padding: 0.58rem 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.site-contact-modal__submit:hover {
    background: var(--theme-accent-hover);
}

.site-contact-modal__submit:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.site-navbar__menu-item--button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
}

.site-navbar__notif-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.28rem;
    height: 1.28rem;
    border-radius: 999px;
    padding: 0 0.35rem;
    background: var(--theme-accent);
    color: var(--theme-on-accent);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.site-navbar__notif-badge.is-hidden {
    display: none;
}

.site-notification-modal__panel {
    width: min(700px, 100%);
}

.site-notification-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.2rem 0 0.2rem;
}

.site-notification-toolbar__btn {
    border: 1px solid var(--theme-border);
    border-radius: 9px;
    background: var(--theme-surface-soft);
    color: var(--theme-link);
    padding: 0.3rem 0.56rem;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.site-notification-toolbar__btn:hover {
    background: var(--theme-link-hover-bg);
    color: var(--theme-link-hover);
}

.site-notification-toolbar__btn--danger {
    border-color: color-mix(in srgb, var(--theme-danger) 55%, var(--theme-border));
    color: var(--theme-danger);
}

.site-notification-list {
    margin-top: 0.4rem;
    display: grid;
    gap: 0.48rem;
    max-height: 60vh;
    overflow: auto;
    padding-right: 0.2rem;
}

.site-mini-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--theme-border);
    background: var(--theme-surface-soft);
    color: var(--theme-link);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    overflow: hidden;
    flex: 0 0 32px;
    text-transform: uppercase;
}

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

.site-notification-item {
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    padding: 0.58rem 0.66rem;
    background: var(--theme-surface-soft);
}

.site-notification-item__head {
    display: flex;
    align-items: flex-start;
    gap: 0.52rem;
}

.site-notification-item__content {
    min-width: 0;
}

.site-notification-item__avatar {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
}

.site-notification-item.is-unread {
    border-color: color-mix(in srgb, var(--theme-accent) 44%, var(--theme-border));
    background: color-mix(in srgb, var(--theme-accent) 9%, var(--theme-surface-soft));
}

.site-notification-item a {
    color: var(--theme-link);
    text-decoration: none;
    font-weight: 700;
}

.site-notification-item a:hover {
    text-decoration: underline;
}

.site-notification-item__meta {
    margin-top: 0.24rem;
    font-size: 0.8rem;
    color: var(--theme-muted);
}

.site-notification-item__actions {
    margin-top: 0.42rem;
}

.site-notification-item__actions button {
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    background: var(--theme-surface-soft);
    color: var(--theme-link);
    padding: 0.22rem 0.46rem;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 700;
}

.site-notification-item__actions button:hover {
    background: var(--theme-link-hover-bg);
    color: var(--theme-link-hover);
}

.site-notification-toasts {
    position: fixed;
    right: 0.9rem;
    bottom: 0.95rem;
    z-index: 10070;
    display: grid;
    gap: 0.5rem;
    width: min(360px, calc(100vw - 1.4rem));
    pointer-events: none;
}

.site-notification-toast {
    pointer-events: auto;
    border: 1px solid color-mix(in srgb, var(--theme-accent) 34%, var(--theme-border));
    border-radius: 11px;
    background: color-mix(in srgb, var(--theme-surface) 90%, transparent);
    box-shadow: 0 14px 28px rgba(8, 14, 28, 0.24);
    color: var(--theme-text);
    padding: 0.62rem 0.74rem;
    transform: translateY(8px);
    opacity: 0;
    animation: site-notification-toast-in 0.2s ease forwards;
}

.site-notification-toast--message {
    border-color: color-mix(in srgb, var(--theme-success) 52%, var(--theme-border));
}

.site-notification-toast__title {
    margin: 0;
    font-size: 0.87rem;
    font-weight: 800;
}

.site-notification-toast__text {
    margin: 0.24rem 0 0;
    font-size: 0.82rem;
    color: var(--theme-link);
}

.site-notification-toast__actions {
    margin-top: 0.45rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.site-notification-toast__actions a,
.site-notification-toast__actions button {
    font-size: 0.76rem;
    font-weight: 700;
}

.site-notification-toast__actions button {
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    background: var(--theme-surface-soft);
    color: var(--theme-link);
    padding: 0.22rem 0.42rem;
    cursor: pointer;
}

.site-notification-toast__actions button:hover {
    background: var(--theme-link-hover-bg);
    color: var(--theme-link-hover);
}

@keyframes site-notification-toast-in {
    from {
        transform: translateY(8px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.site-private-message-modal__panel {
    width: min(980px, 100%);
}

.site-private-message-layout {
    margin-top: 0.5rem;
    display: grid;
    grid-template-columns: minmax(240px, 300px) 1fr;
    gap: 0.65rem;
    min-height: 450px;
}

.site-private-message-conversations {
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    background: var(--theme-surface-soft);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.site-private-message-label {
    font-size: 0.78rem;
    color: var(--theme-muted);
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.site-private-message-recipient-row {
    margin-bottom: 0.46rem;
}

.site-private-message-recipient-row input {
    width: 100%;
    border: 1px solid var(--theme-border);
    border-radius: 9px;
    background: var(--theme-surface);
    color: var(--theme-text);
    padding: 0.45rem 0.56rem;
    font: inherit;
}

.site-private-message-recipient-row select {
    width: 100%;
    border: 1px solid var(--theme-border);
    border-radius: 9px;
    background: var(--theme-surface);
    color: var(--theme-text);
    padding: 0.45rem 0.56rem;
    font: inherit;
}

.site-private-message-conversation-list {
    flex: 1;
    min-height: 0;
    overflow: auto;
    display: grid;
    gap: 0.4rem;
    padding-right: 0.15rem;
    align-content: start;
    grid-auto-rows: min-content;
}

.site-private-message-conversation {
    width: 100%;
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    background: var(--theme-surface);
    color: var(--theme-text);
    padding: 0.32rem 0.44rem;
    text-align: left;
    display: grid;
    gap: 0.08rem;
    cursor: pointer;
}

.site-private-message-conversation:hover {
    border-color: color-mix(in srgb, var(--theme-accent) 40%, var(--theme-border));
}

.site-private-message-conversation.is-active {
    border-color: color-mix(in srgb, var(--theme-accent) 62%, var(--theme-border));
    background: color-mix(in srgb, var(--theme-accent) 10%, var(--theme-surface));
}

.site-private-message-conversation__head {
    display: flex;
    align-items: flex-start;
    gap: 0.42rem;
}

.site-private-message-conversation__avatar {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
}

.site-private-message-conversation__identity {
    min-width: 0;
    display: grid;
    gap: 0.06rem;
}

.site-private-message-conversation__name {
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--theme-link);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.site-private-message-conversation__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.22rem;
    height: 1.22rem;
    border-radius: 999px;
    background: var(--theme-accent);
    color: var(--theme-on-accent);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.site-private-message-conversation__preview {
    font-size: 0.7rem;
    color: var(--theme-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-private-message-conversation__meta {
    font-size: 0.66rem;
    color: var(--theme-muted);
}

.site-private-message-thread {
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    background: var(--theme-surface-soft);
    padding: 0.55rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.site-private-message-thread-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.site-private-message-thread-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--theme-link);
}

.site-private-message-thread-head__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
}

.site-private-message-thread-head__btn {
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    background: var(--theme-surface);
    color: var(--theme-link);
    padding: 0.26rem 0.48rem;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 700;
}

.site-private-message-thread-head__btn:hover {
    background: var(--theme-link-hover-bg);
    color: var(--theme-link-hover);
}

.site-private-message-thread-head__btn:disabled {
    opacity: 0.62;
    cursor: not-allowed;
}

.site-private-message-thread-head__btn--danger {
    border-color: color-mix(in srgb, var(--theme-danger) 52%, var(--theme-border));
    color: var(--theme-danger);
}

.site-mute-modal__panel {
    width: min(480px, 100%);
}

.site-mute-modal__choices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.1rem;
}

.site-private-message-thread-list {
    flex: 1;
    min-height: 0;
    overflow: auto;
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    background: var(--theme-surface);
    padding: 0.48rem;
    display: grid;
    gap: 0.42rem;
}

.site-private-message-bubble {
    max-width: min(92%, 560px);
    border-radius: 11px;
    border: 1px solid var(--theme-border);
    padding: 0.46rem 0.55rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 0.45rem;
    row-gap: 0.2rem;
    background: var(--theme-surface-soft);
}

.site-private-message-bubble.is-outgoing {
    justify-self: end;
    grid-template-columns: minmax(0, 1fr) auto;
    border-color: color-mix(in srgb, var(--theme-accent) 52%, var(--theme-border));
    background: color-mix(in srgb, var(--theme-accent) 11%, var(--theme-surface-soft));
}

.site-private-message-bubble.is-incoming {
    justify-self: start;
}

.site-private-message-bubble.is-typing {
    border-color: color-mix(in srgb, var(--theme-accent) 30%, var(--theme-border));
    background: color-mix(in srgb, var(--theme-accent) 8%, var(--theme-surface-soft));
}

.site-private-message-bubble__avatar {
    grid-row: 1 / span 3;
    align-self: start;
    width: 28px;
    height: 28px;
    flex-basis: 28px;
}

.site-private-message-bubble.is-outgoing .site-private-message-bubble__avatar {
    grid-column: 2;
}

.site-private-message-bubble__text {
    grid-column: 2;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--theme-text);
    font-size: 0.86rem;
}

.site-private-message-bubble.is-outgoing .site-private-message-bubble__text {
    grid-column: 1;
}

.site-private-message-typing {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    color: var(--theme-muted);
    font-size: 0.8rem;
    font-style: italic;
}

.site-private-message-typing__dots {
    display: inline-flex;
    align-items: center;
    gap: 0.18rem;
    line-height: 1;
}

.site-private-message-typing__dots span {
    width: 0.34rem;
    height: 0.34rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--theme-accent) 62%, var(--theme-muted));
    opacity: 0.35;
    animation: site-private-message-typing-dot 1.1s ease-in-out infinite;
}

.site-private-message-typing__dots span:nth-child(2) {
    animation-delay: 0.14s;
}

.site-private-message-typing__dots span:nth-child(3) {
    animation-delay: 0.28s;
}

@keyframes site-private-message-typing-dot {
    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.35;
    }
    40% {
        transform: translateY(-0.16rem);
        opacity: 0.92;
    }
}

.site-private-message-bubble__meta {
    grid-column: 2;
    display: flex;
    align-items: center;
    gap: 0.44rem;
    font-size: 0.72rem;
    color: var(--theme-muted);
}

.site-private-message-bubble.is-outgoing .site-private-message-bubble__meta {
    grid-column: 1;
}

.site-private-message-bubble__status {
    font-weight: 700;
}

.site-private-message-bubble__actions {
    grid-column: 2;
    margin-top: 0.14rem;
    display: flex;
    justify-content: flex-end;
}

.site-private-message-bubble.is-outgoing .site-private-message-bubble__actions {
    grid-column: 1;
}

.site-private-message-bubble__actions button {
    border: 1px solid var(--theme-border);
    border-radius: 7px;
    background: var(--theme-surface);
    color: var(--theme-link);
    padding: 0.16rem 0.42rem;
    cursor: pointer;
    font-size: 0.68rem;
    font-weight: 700;
}

.site-private-message-bubble__actions button:hover {
    background: var(--theme-link-hover-bg);
    color: var(--theme-link-hover);
}

.site-private-message-form {
    margin-top: 0.5rem;
    display: grid;
    gap: 0.45rem;
}

.site-private-message-form textarea {
    width: 100%;
    min-height: 68px;
    max-height: 180px;
    resize: vertical;
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    background: var(--theme-surface);
    color: var(--theme-text);
    padding: 0.48rem 0.56rem;
    font: inherit;
}

@media (max-width: 860px) {
    .site-private-message-layout {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .site-private-message-conversations,
    .site-private-message-thread {
        min-height: 240px;
    }

    .site-private-message-thread-head {
        flex-wrap: wrap;
        align-items: flex-start;
    }
}

.profile-follow-form {
    margin: 0;
}

.profile-follow-panels {
    margin-top: 0.9rem;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-follow-panel {
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    background: var(--theme-surface-soft);
    padding: 0.62rem;
}

.profile-follow-panel h2 {
    margin: 0 0 0.55rem;
    font-size: 0.94rem;
}

.profile-follow-list {
    display: grid;
    gap: 0.42rem;
}

.profile-follow-item {
    display: flex;
    align-items: center;
    gap: 0.44rem;
    text-decoration: none;
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    background: var(--theme-surface);
    color: var(--theme-link);
    padding: 0.38rem 0.46rem;
}

.profile-follow-item:hover {
    background: var(--theme-link-hover-bg);
    color: var(--theme-link-hover);
}

.profile-follow-item__avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--theme-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--theme-link);
    background: var(--theme-surface-soft);
    flex: 0 0 30px;
}

.profile-follow-item__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-follow-item__name {
    font-size: 0.82rem;
    font-weight: 700;
    color: inherit;
}

@media (max-width: 860px) {
    .profile-follow-panels {
        grid-template-columns: 1fr;
    }
}

/* NuGet Modal */
.nuget-modal {
    z-index: 9700;
    padding: 1.2rem;
}

.nuget-modal__panel {
    position: relative;
    width: min(800px, 100%);
    max-height: min(88vh, 860px);
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    background: var(--theme-surface);
    color: var(--theme-text);
    padding: 0.9rem;
    box-shadow: 0 24px 70px rgba(13, 20, 34, 0.28);
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 0.7rem;
    overflow: hidden;
}

.nuget-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    background: var(--theme-surface-soft);
    color: var(--theme-link);
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nuget-modal__close:hover {
    background: var(--theme-link-hover-bg);
    color: var(--theme-link-hover);
}

.nuget-modal__close:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--theme-accent) 55%, transparent);
    outline-offset: 1px;
}

.nuget-modal__header h2 {
    margin: 0 2.3rem 0.2rem 0;
    font-size: 1.3rem;
}

.nuget-modal__header p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--theme-muted);
}

.nuget-modal__tabs {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 0.7rem;
    min-height: 0;
}

.nuget-modal__tab-buttons {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--theme-border);
    padding-bottom: 0;
}

.nuget-modal__tab-button {
    padding: 0.6rem 1rem;
    border: none;
    background: transparent;
    color: var(--theme-link);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nuget-modal__tab-button:hover {
    color: var(--theme-link-hover);
    background: var(--theme-link-hover-bg);
}

.nuget-modal__tab-button.is-active {
    color: var(--theme-accent);
    border-bottom-color: var(--theme-accent);
}

.nuget-modal__tab-content {
    display: grid;
    min-height: 0;
    overflow: auto;
}

.nuget-modal__tab-pane {
    display: none;
    padding: 1rem;
    overflow: auto;
    min-height: 0;
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    background: var(--theme-surface-soft);
}

.nuget-modal__tab-pane.is-active {
    display: block;
}

.nuget-modal__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 2rem;
    color: var(--theme-muted);
    font-weight: 600;
}

.nuget-modal__loading .site-spinner {
    border-color: color-mix(in srgb, var(--theme-accent) 28%, transparent);
    border-top-color: var(--theme-accent);
}

.nuget-modal__info-content {
    display: grid;
    gap: 1rem;
}

.nuget-modal__package-summary {
    display: grid;
    gap: 0.95rem;
}

.nuget-modal__package-title {
    margin: 0;
    font-size: 1.05rem;
    color: var(--theme-text);
}

.nuget-modal__stat-list {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    background: color-mix(in srgb, var(--theme-surface) 62%, var(--theme-surface-soft));
}

.nuget-modal__stat {
    margin: 0;
    line-height: 1.45;
}

.nuget-modal__stat-label {
    color: var(--theme-muted);
    font-weight: 700;
}

.nuget-modal__stat-value {
    color: var(--theme-text);
    font-weight: 600;
}

.nuget-modal__recent-versions {
    display: grid;
    gap: 0.48rem;
}

.nuget-modal__recent-label {
    margin: 0;
    font-size: 0.85rem;
    color: var(--theme-muted);
    font-weight: 700;
}

.nuget-modal__recent-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.nuget-modal__info-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.5rem;
    background: color-mix(in srgb, var(--theme-code-bg) 76%, var(--theme-surface-soft));
    border: 1px solid var(--theme-code-border);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--theme-code-text);
}

.nuget-modal__install-content {
    display: grid;
    gap: 1rem;
}

.nuget-modal__install-content h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--theme-link);
}

.nuget-modal__install-content h4 {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: var(--theme-text);
}

.nuget-modal__install-method {
    display: grid;
    gap: 0.5rem;
    padding: 0.8rem;
    background: var(--theme-surface-soft);
    border: 1px solid var(--theme-border);
    border-radius: 10px;
}

.nuget-modal__code-block {
    margin: 0;
    padding: 0.75rem;
    background: var(--theme-code-surface);
    border: 1px solid var(--theme-code-border);
    border-radius: 6px;
    color: var(--theme-code-text);
    font-size: 0.85rem;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre;
    word-break: break-all;
    font-family: var(--font-mono);
}

@media (max-width: 680px) {
    .nuget-modal__panel {
        width: 100%;
        max-height: 90vh;
    }

    .nuget-modal__tab-buttons {
        flex-wrap: wrap;
    }

    .nuget-modal__tab-button {
        flex: 1;
        min-width: 140px;
    }
}
