:root {
    --bg: #f8eef5;
    --panel: #fff7fc;
    --surface: #ffffff;
    --ink: #2d1e29;
    --meta: #7c6171;
    --accent: #d85d99;
    --accent-strong: #c54789;
    --accent-soft: #f6d6e7;
    --line: #e4bdd3;
    --body-gradient-start: #ffd7ea;
    --shadow: rgba(91, 34, 71, 0.14);
    --post-glass-bg: rgba(255, 255, 255, 0.24);
    --post-glass-border: rgba(228, 189, 211, 0.46);
    --hidden-bg: #2f2231;
    --hidden-ink: #ffffff;
    --lightbox-bg: rgba(30, 16, 24, 0.88);
    --lightbox-border: rgba(255, 255, 255, 0.4);
    --lightbox-shadow: rgba(0, 0, 0, 0.45);
    --edge-bg: rgba(255, 245, 252, 0.72);
    --edge-line: #ddb0cb;
    --edge-chip-bg: rgba(255, 255, 255, 0.78);
    --edge-chip-ink: #7f4c68;
    --bg-blob-a: rgba(216, 93, 153, 0.22);
    --bg-blob-b: rgba(96, 196, 255, 0.15);
    --bg-pattern-line: rgba(182, 132, 161, 0.08);
    --bg-pattern-dot: rgba(216, 93, 153, 0.16);
    --code-line-ink: rgba(126, 78, 109, 0.32);
    --code-line-glow: rgba(216, 93, 153, 0.14);
    --logo-glow: 0 0 0 rgba(0, 0, 0, 0);
    --logo-glow-strong: 0 0 0 rgba(0, 0, 0, 0);
    --paw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='16' cy='18' r='7' fill='%23d85d99'/%3E%3Ccircle cx='30' cy='12' r='7' fill='%23d85d99'/%3E%3Ccircle cx='44' cy='18' r='7' fill='%23d85d99'/%3E%3Cellipse cx='32' cy='39' rx='15' ry='12' fill='%23d85d99'/%3E%3C/svg%3E");
    --rabbit-badge-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cellipse cx='24' cy='18' rx='8' ry='14' transform='rotate(-8 24 18)' fill='%23c54789'/%3E%3Cellipse cx='40' cy='18' rx='8' ry='14' transform='rotate(8 40 18)' fill='%23c54789'/%3E%3Ccircle cx='32' cy='38' r='14' fill='%23c54789'/%3E%3Ccircle cx='27' cy='35' r='1.8' fill='white'/%3E%3Ccircle cx='37' cy='35' r='1.8' fill='white'/%3E%3Cellipse cx='32' cy='41' rx='3.2' ry='2.2' fill='white'/%3E%3C/svg%3E");
    --code-inline-bg: rgba(55, 28, 58, 0.14);
    --code-inline-border: rgba(156, 94, 132, 0.42);
    --code-inline-ink: #4d2a45;
    --code-block-bg: rgba(30, 16, 40, 0.5);
    --code-block-border: rgba(132, 88, 130, 0.66);
    --code-block-inset: rgba(216, 165, 199, 0.12);
    --code-block-ink: #170d1e;
    --code-block-shadow-inner: rgba(8, 4, 13, 0.42);
    --code-block-shadow-outer: rgba(26, 12, 34, 0.4);
    --code-token-comment: #6a5b73;
    --code-token-string: #6f2f6d;
    --code-token-number: #6e2f4b;
    --code-token-keyword: #5b2360;
    --code-token-builtin: #2f4d78;
    --code-token-operator: #61406f;
    --code-token-func: #3a5670;
    --code-scrollbar-track: rgba(71, 40, 78, 0.26);
    --code-scrollbar-thumb: rgba(170, 101, 146, 0.82);
    --code-scrollbar-thumb-hover: rgba(197, 116, 168, 0.95);
    --code-scrollbar-thumb-active: rgba(212, 118, 178, 1);
    --ui-scrollbar-track: rgba(85, 48, 80, 0.2);
    --ui-scrollbar-thumb: rgba(177, 105, 153, 0.78);
    --ui-scrollbar-thumb-hover: rgba(200, 120, 172, 0.92);
    --ui-scrollbar-thumb-active: rgba(214, 129, 184, 1);
    --echo-bg: rgba(255, 255, 255, 0.46);
    --echo-border: rgba(198, 127, 165, 0.42);
    --echo-label: #6c4a60;
    --echo-count: #5e2a57;
    --audio-shell-bg: rgba(255, 255, 255, 0.36);
    --audio-shell-border: rgba(199, 132, 170, 0.44);
    --audio-shell-shadow: rgba(91, 34, 71, 0.18);
    --audio-btn-bg: rgba(216, 93, 153, 0.18);
    --audio-btn-bg-hover: rgba(216, 93, 153, 0.28);
    --audio-btn-border: rgba(197, 71, 137, 0.46);
    --audio-btn-ink: #7b2f62;
    --audio-time-ink: #5d4453;
    --audio-seek-track: rgba(129, 84, 121, 0.22);
    --audio-seek-fill: rgba(216, 93, 153, 0.82);
    --audio-seek-thumb: #ffd3ea;
    --audio-seek-thumb-border: rgba(197, 71, 137, 0.66);
    --audio-volume-track: rgba(129, 84, 121, 0.18);
    --audio-volume-fill: rgba(216, 93, 153, 0.72);
    --audio-download-bg: rgba(216, 93, 153, 0.16);
    --audio-download-bg-hover: rgba(216, 93, 153, 0.26);
    --audio-download-border: rgba(197, 71, 137, 0.44);
    --audio-download-ink: #7b2f62;
}

:root[data-theme="dark"] {
    --bg: #140f17;
    --panel: #211827;
    --surface: #2a1f31;
    --ink: #f6e6f2;
    --meta: #cfadc3;
    --accent: #f083bd;
    --accent-strong: #ff9ecf;
    --accent-soft: #4a2c45;
    --line: #6a4c66;
    --body-gradient-start: #382337;
    --shadow: rgba(0, 0, 0, 0.35);
    --post-glass-bg: rgba(42, 31, 49, 0.24);
    --post-glass-border: rgba(120, 89, 117, 0.44);
    --hidden-bg: #f8dff0;
    --hidden-ink: #2a1730;
    --lightbox-bg: rgba(0, 0, 0, 0.9);
    --lightbox-border: rgba(255, 255, 255, 0.3);
    --lightbox-shadow: rgba(0, 0, 0, 0.7);
    --edge-bg: rgba(33, 24, 39, 0.8);
    --edge-line: #6c4f69;
    --edge-chip-bg: rgba(56, 36, 57, 0.9);
    --edge-chip-ink: #efc7df;
    --bg-blob-a: rgba(240, 131, 189, 0.18);
    --bg-blob-b: rgba(93, 227, 255, 0.13);
    --bg-pattern-line: rgba(132, 96, 130, 0.2);
    --bg-pattern-dot: rgba(240, 131, 189, 0.18);
    --code-line-ink: rgba(246, 205, 231, 0.3);
    --code-line-glow: rgba(240, 131, 189, 0.24);
    --logo-glow: 0 0 16px rgba(240, 131, 189, 0.32);
    --logo-glow-strong: 0 0 28px rgba(240, 131, 189, 0.5);
    --paw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='16' cy='18' r='7' fill='%23f083bd'/%3E%3Ccircle cx='30' cy='12' r='7' fill='%23f083bd'/%3E%3Ccircle cx='44' cy='18' r='7' fill='%23f083bd'/%3E%3Cellipse cx='32' cy='39' rx='15' ry='12' fill='%23f083bd'/%3E%3C/svg%3E");
    --rabbit-badge-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cellipse cx='24' cy='18' rx='8' ry='14' transform='rotate(-8 24 18)' fill='%23ff9ecf'/%3E%3Cellipse cx='40' cy='18' rx='8' ry='14' transform='rotate(8 40 18)' fill='%23ff9ecf'/%3E%3Ccircle cx='32' cy='38' r='14' fill='%23ff9ecf'/%3E%3Ccircle cx='27' cy='35' r='1.8' fill='%232a1f31'/%3E%3Ccircle cx='37' cy='35' r='1.8' fill='%232a1f31'/%3E%3Cellipse cx='32' cy='41' rx='3.2' ry='2.2' fill='%232a1f31'/%3E%3C/svg%3E");
    --code-inline-bg: rgba(21, 12, 28, 0.74);
    --code-inline-border: rgba(129, 88, 123, 0.62);
    --code-inline-ink: #f4d8e9;
    --code-block-bg: rgba(12, 8, 18, 0.72);
    --code-block-border: rgba(126, 92, 129, 0.72);
    --code-block-inset: rgba(204, 152, 190, 0.14);
    --code-block-ink: #f2deed;
    --code-block-shadow-inner: rgba(0, 0, 0, 0.58);
    --code-block-shadow-outer: rgba(0, 0, 0, 0.52);
    --code-token-comment: #9887a7;
    --code-token-string: #ffb2d8;
    --code-token-number: #ffc790;
    --code-token-keyword: #d9b1ff;
    --code-token-builtin: #9dd5ff;
    --code-token-operator: #d6bfd9;
    --code-token-func: #b8f0ff;
    --code-scrollbar-track: rgba(47, 28, 50, 0.56);
    --code-scrollbar-thumb: rgba(183, 125, 173, 0.9);
    --code-scrollbar-thumb-hover: rgba(219, 152, 205, 0.98);
    --code-scrollbar-thumb-active: rgba(235, 164, 219, 1);
    --ui-scrollbar-track: rgba(58, 38, 63, 0.72);
    --ui-scrollbar-thumb: rgba(203, 147, 194, 0.72);
    --ui-scrollbar-thumb-hover: rgba(224, 165, 214, 0.9);
    --ui-scrollbar-thumb-active: rgba(240, 181, 230, 1);
    --echo-bg: rgba(20, 13, 26, 0.58);
    --echo-border: rgba(137, 94, 139, 0.5);
    --echo-label: #d0aac6;
    --echo-count: #f3c7e2;
    --audio-shell-bg: rgba(18, 12, 26, 0.62);
    --audio-shell-border: rgba(132, 93, 139, 0.62);
    --audio-shell-shadow: rgba(0, 0, 0, 0.36);
    --audio-btn-bg: rgba(240, 131, 189, 0.18);
    --audio-btn-bg-hover: rgba(240, 131, 189, 0.3);
    --audio-btn-border: rgba(240, 131, 189, 0.54);
    --audio-btn-ink: #f9d5ea;
    --audio-time-ink: #d6b2cb;
    --audio-seek-track: rgba(112, 82, 123, 0.4);
    --audio-seek-fill: rgba(240, 131, 189, 0.95);
    --audio-seek-thumb: #f7d5e9;
    --audio-seek-thumb-border: rgba(255, 171, 216, 0.82);
    --audio-volume-track: rgba(112, 82, 123, 0.32);
    --audio-volume-fill: rgba(240, 131, 189, 0.9);
    --audio-download-bg: rgba(240, 131, 189, 0.2);
    --audio-download-bg-hover: rgba(240, 131, 189, 0.34);
    --audio-download-border: rgba(240, 131, 189, 0.52);
    --audio-download-ink: #f9d5ea;
}

* {
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--ui-scrollbar-thumb) var(--ui-scrollbar-track);
}

::-webkit-scrollbar {
    width: 11px;
    height: 11px;
}

::-webkit-scrollbar-track {
    background: var(--ui-scrollbar-track);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb {
    background: var(--ui-scrollbar-thumb);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ui-scrollbar-thumb-hover);
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:active {
    background: var(--ui-scrollbar-thumb-active);
    background-clip: padding-box;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--ink);
    background-color: var(--bg);
    background-image: radial-gradient(circle at top, var(--body-gradient-start) 0, var(--bg) 45%);
    background-repeat: no-repeat;
    background-size: 100% 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: -18vmax;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(40vmax 28vmax at 8% 18%, var(--bg-blob-a), transparent 72%),
        radial-gradient(35vmax 25vmax at 91% 81%, var(--bg-blob-b), transparent 74%),
        radial-gradient(28vmax 20vmax at 84% 10%, var(--bg-blob-a), transparent 76%);
    opacity: 0.9;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            0deg,
            transparent 0 31px,
            var(--bg-pattern-line) 31px 32px
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0 31px,
            var(--bg-pattern-line) 31px 32px
        );
    opacity: 0.5;
}

.code-float-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.code-float-line {
    position: absolute;
    top: 110vh;
    left: 0;
    margin: 0;
    white-space: nowrap;
    font-family: "Consolas", "Fira Code", "JetBrains Mono", monospace;
    font-size: 12px;
    letter-spacing: 0.2px;
    color: var(--code-line-ink);
    text-shadow: 0 0 12px var(--code-line-glow);
    opacity: var(--line-opacity, 0.14);
    transform: translate3d(var(--start-x, 0vw), 12vh, 0);
    animation: floatCodeLine var(--duration, 34s) linear infinite;
    animation-delay: var(--delay, 0s);
    will-change: transform, opacity;
}

.code-float-line.is-multiline {
    white-space: pre;
    line-height: 1.25;
    letter-spacing: 0.15px;
}

@keyframes floatCodeLine {
    from {
        transform: translate3d(var(--start-x, 0vw), 12vh, 0);
    }

    to {
        transform: translate3d(calc(var(--start-x, 0vw) + var(--drift-x, 10vw)), -132vh, 0);
    }
}

.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 24px 16px 40px;
    position: relative;
    z-index: 2;
}

h1,
h2,
h3 {
    margin: 0 0 12px;
    line-height: 1.24;
    letter-spacing: 0.2px;
    text-wrap: balance;
}

h1 {
    font-size: clamp(1.58rem, 1.34rem + 0.9vw, 2rem);
}

h2 {
    font-size: clamp(1.3rem, 1.17rem + 0.45vw, 1.56rem);
}

p {
    margin: 0 0 12px;
}

.edge-rail {
    position: fixed;
    top: 16px;
    bottom: 16px;
    width: min(14vw, 168px);
    border-radius: 16px;
    border: 1px solid var(--edge-line);
    background: linear-gradient(180deg, var(--edge-bg) 0%, transparent 100%);
    box-shadow: 0 8px 24px var(--shadow);
    backdrop-filter: blur(2px);
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edge-rail::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background: repeating-linear-gradient(
        180deg,
        transparent 0 14px,
        var(--edge-line) 14px 15px,
        transparent 15px 30px
    );
}

.edge-rail-left {
    left: 16px;
}

.edge-rail-right {
    right: 16px;
}

.edge-rail-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 10px;
}

.edge-chip {
    width: 100%;
    border-radius: 999px;
    border: 1px solid var(--edge-line);
    background: var(--edge-chip-bg);
    color: var(--edge-chip-ink);
    text-align: center;
    font-family: "Consolas", "Fira Code", "JetBrains Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.15px;
    line-height: 1.15;
    padding: 6px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.edge-chip.live {
    font-weight: 600;
}

.edge-chip.live .chip-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 70%, transparent);
    animation: chipPulse 1.35s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes chipPulse {
    0%,
    100% {
        transform: scale(0.85);
        opacity: 0.75;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.header-divider {
    position: relative;
    height: 1px;
    margin-bottom: 24px;
    background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.header-divider::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--panel) var(--paw-icon) center/13px 13px no-repeat;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    text-decoration: none;
}

@keyframes logoGlowPulse {
    0%,
    100% {
        box-shadow: 0 6px 18px var(--shadow), var(--logo-glow);
    }

    50% {
        box-shadow: 0 7px 21px var(--shadow), var(--logo-glow-strong);
    }
}

.brand-logo {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 7px;
    box-shadow: 0 6px 18px var(--shadow), var(--logo-glow);
    transition: box-shadow 0.22s ease, transform 0.22s ease;
}

:root[data-theme="dark"] .brand-logo {
    animation: logoGlowPulse 4.8s ease-in-out infinite;
}

.brand:hover .brand-logo {
    box-shadow: 0 10px 24px var(--shadow), var(--logo-glow-strong);
    transform: translateY(-1px);
}

:root[data-theme="dark"] .brand:hover .brand-logo {
    animation: none;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.brand-title {
    font-size: 25px;
    line-height: 1.08;
    font-weight: 760;
    letter-spacing: 0.2px;
}

.brand-subtitle {
    font-size: 12px;
    color: var(--meta);
    letter-spacing: 0.5px;
    text-transform: lowercase;
}

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

.links a {
    position: relative;
    text-decoration: none;
    color: var(--accent);
    font-weight: 620;
    transition: color 0.2s ease;
}

.links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.2s ease;
}

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

.links a:hover::after,
.links a:focus-visible::after {
    transform: scaleX(1);
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 16px;
    box-shadow: 0 7px 20px var(--shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.meta {
    color: var(--meta);
    font-size: 14px;
}

p.meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

p.meta::before {
    content: "";
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    background: var(--paw-icon) center/contain no-repeat;
    opacity: 0.95;
}

.button {
    display: inline-block;
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    text-decoration: none;
    background: var(--accent);
    color: #fff;
    font-weight: 630;
    cursor: pointer;
    transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
    box-shadow: 0 5px 14px var(--shadow);
}

.button.secondary {
    background: var(--accent-soft);
    color: var(--ink);
}

.theme-toggle {
    border: 1px solid var(--line);
    min-width: 124px;
}

.scroll-nav {
    position: fixed;
    right: calc(16px + min(14vw, 168px) + 12px);
    bottom: clamp(12px, 2.8vh, 30px);
    z-index: 42;
    display: none;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.scroll-nav.is-visible {
    display: flex;
}

.scroll-nav-button {
    pointer-events: auto;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--post-glass-border) 90%, transparent);
    background: color-mix(in srgb, var(--post-glass-bg) 86%, transparent);
    color: var(--ink);
    font-family: "Consolas", "Fira Code", "JetBrains Mono", monospace;
    font-size: 24px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 10px 22px -12px var(--shadow);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.scroll-nav-button:active {
    transform: translateY(1px) scale(0.98);
}

input[type="text"],
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    color: inherit;
    background: var(--surface);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea {
    min-height: 420px;
    resize: vertical;
    scrollbar-gutter: stable;
}

.post-form textarea {
    scrollbar-color: var(--ui-scrollbar-thumb-hover) color-mix(in srgb, var(--surface) 88%, var(--ui-scrollbar-track) 12%);
}

.post-form textarea::-webkit-scrollbar {
    width: 12px;
}

.post-form textarea::-webkit-scrollbar-track {
    background: color-mix(in srgb, var(--surface) 88%, var(--ui-scrollbar-track) 12%);
    border-radius: 999px;
}

.post-form textarea::-webkit-scrollbar-thumb {
    background: var(--ui-scrollbar-thumb-hover);
}

.post-form textarea::-webkit-scrollbar-thumb:hover {
    background: var(--ui-scrollbar-thumb-active);
}

.editor-drop-target {
    border-style: dashed;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.editor-drop-target.is-dragover {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent-soft) 32%, var(--surface) 68%);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

input[type="file"] {
    width: 100%;
    color: inherit;
}

.post-content {
    line-height: 1.62;
    word-break: break-word;
}

.post-content .post-link {
    color: var(--accent-strong);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
    text-decoration-color: color-mix(in srgb, var(--accent) 72%, transparent);
    word-break: break-word;
}

.post-content .post-link:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

.post-content .post-inline-code {
    /* display: inline-block; */
    padding: 2px 8px;
    border-radius: 8px;
    max-width: 100%;
    border: 1px solid var(--code-inline-border);
    background: var(--code-inline-bg);
    color: var(--code-inline-ink);
    font-family: "Consolas", "Fira Code", "JetBrains Mono", monospace;
    font-size: 0.9em;
    line-height: 1.35;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
    overflow-x: auto;
    overflow-y: hidden;
    vertical-align: baseline;
}

.post-content .post-code-block {
    margin: 14px 0;
    padding: 12px 14px;
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid var(--code-block-border);
    background: var(--code-block-bg);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        inset 0 0 0 1px var(--code-block-inset),
        inset 0 12px 24px var(--code-block-shadow-inner),
        0 10px 22px -14px var(--code-block-shadow-outer);
    overflow-x: auto;
    overflow-y: hidden;
    backdrop-filter: blur(6px) brightness(0.68) saturate(112%);
    -webkit-backdrop-filter: blur(6px) brightness(0.68) saturate(112%);
    scrollbar-width: thin;
    scrollbar-color: var(--code-scrollbar-thumb) var(--code-scrollbar-track);
}

.post-content .post-code-block code {
    display: block;
    width: max-content;
    min-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--code-block-ink);
    font-family: "Consolas", "Fira Code", "JetBrains Mono", monospace;
    font-size: 0.93rem;
    line-height: 1.55;
    white-space: pre;
    word-break: normal;
    overflow-wrap: normal;
}

.post-content .post-code-block[data-code-lang]::before {
    content: attr(data-code-lang);
    display: inline-block;
    margin: 0 0 8px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--code-block-border) 76%, transparent);
    background: color-mix(in srgb, var(--code-block-bg) 78%, transparent);
    color: var(--meta);
    font-family: "Consolas", "Fira Code", "JetBrains Mono", monospace;
    font-size: 0.74rem;
    line-height: 1.3;
    letter-spacing: 0.02em;
    text-transform: lowercase;
}

.post-content .post-code-block .tok-comment {
    color: var(--code-token-comment);
    font-style: italic;
}

.post-content .post-code-block .tok-string {
    color: var(--code-token-string);
}

.post-content .post-code-block .tok-number {
    color: var(--code-token-number);
}

.post-content .post-code-block .tok-keyword {
    color: var(--code-token-keyword);
    font-weight: 600;
}

.post-content .post-code-block .tok-builtin {
    color: var(--code-token-builtin);
    font-weight: 600;
}

.post-content .post-code-block .tok-operator {
    color: var(--code-token-operator);
}

.post-content .post-code-block .tok-func {
    color: var(--code-token-func);
    font-weight: 600;
}

.post-content .post-code-block::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

.post-content .post-code-block::-webkit-scrollbar-track {
    background: var(--code-scrollbar-track);
    border-radius: 999px;
}

.post-content .post-code-block::-webkit-scrollbar-thumb {
    background: var(--code-scrollbar-thumb);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.post-content .post-code-block::-webkit-scrollbar-thumb:hover {
    background: var(--code-scrollbar-thumb-hover);
    background-clip: padding-box;
}

.post-content .post-code-block::-webkit-scrollbar-thumb:active {
    background: var(--code-scrollbar-thumb-active);
    background-clip: padding-box;
}

.clipboard-history-content {
    margin: 0 0 12px;
    width: 100%;
    max-width: 100%;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden;
    font-family: "Consolas", "Fira Code", "JetBrains Mono", monospace;
    font-size: 0.94rem;
    line-height: 1.55;
}

.post-content .post-separator {
    margin: 22px 0;
    width: 100%;
    height: 1px;
    border: 0;
    background: linear-gradient(90deg, transparent 0%, var(--line) 18%, var(--line) 82%, transparent 100%);
    opacity: 0.95;
}

.post-content .post-align-left {
    text-align: left;
}

.post-content .post-align-center {
    text-align: center;
}

.post-content .post-align-right {
    text-align: right;
}

.post-content .post-align-justify {
    text-align: justify;
    text-justify: inter-word;
}

.post-content .post-size-small {
    font-size: 0.9em;
}

.post-content .post-size-normal {
    font-size: 1em;
}

.post-content .post-size-large {
    font-size: 1.15em;
}

.post-content .post-size-x-large {
    font-size: 1.3em;
}

.post-content .post-preface {
    margin: 6px 0 14px auto;
    max-width: 82%;
    color: var(--meta);
    font-style: italic;
    line-height: 1.5;
}

.post-content .post-quote {
    margin: 12px 0;
    padding: 10px 14px;
    border-left: 3px solid var(--accent);
    border-radius: 0 10px 10px 0;
    background: linear-gradient(90deg, var(--accent-soft), transparent 75%);
    color: var(--ink);
}

.post-content .post-wide {
    display: block;
    margin: 8px 0 14px;
}

.post-content .post-wide .post-image.inline-image {
    display: block;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
}

.post-content .post-wide .post-image.inline-image img {
    width: auto;
    max-width: 100%;
    margin-inline: auto;
}

.post-content .post-align-left .post-wide .post-image.inline-image {
    margin-left: 0;
    margin-right: auto;
}

.post-content .post-align-right .post-wide .post-image.inline-image {
    margin-left: auto;
    margin-right: 0;
}

.post-content .post-image-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 8px 0 14px;
    align-items: start;
}

.post-content .post-image-row.post-image-row--one {
    grid-template-columns: 1fr;
}

.post-content .post-image-row.post-image-row--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-content .post-image-row.post-image-row--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-content .post-image-row .post-image.inline-image {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.post-content .post-image-row .post-image.inline-image img {
    width: 100%;
    max-height: 340px;
}

.post-content .post-image-row.post-image-row--one .post-image.inline-image img {
    max-height: 540px;
}

.post-content .post-image-row.post-image-row--two .post-image.inline-image img {
    max-height: 460px;
}

.post-content .post-image-row .post-image.inline-image figcaption {
    text-align: center;
}

.post-content .post-gallery {
    position: relative;
    margin: 10px 0 14px;
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.post-content .post-gallery-track {
    position: relative;
    width: 100%;
    min-height: 24px;
}

.post-content .post-gallery .post-image.inline-image {
    display: none;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.post-content .post-gallery .post-image.inline-image.is-active {
    display: block;
}

.post-content .post-gallery .post-image.inline-image img {
    width: 100%;
    max-height: min(76vh, 640px);
    border-radius: 0;
    border: none;
    object-fit: contain;
}

.post-content .post-gallery .post-image.inline-image figcaption {
    display: none;
}

.post-gallery::before,
.post-gallery::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 64px;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.post-gallery::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg) 0%, transparent 100%);
}

.post-gallery::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg) 0%, transparent 100%);
}

.post-gallery-controls {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.post-gallery-controls[hidden] {
    display: none !important;
}

.post-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 54px;
    border-radius: 8px;
    border: none;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    font-weight: 700;
    font-family: "Consolas", "Fira Code", "JetBrains Mono", monospace;
    line-height: 1;
    letter-spacing: -0.18em;
    cursor: pointer;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.25s ease, background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-gallery-nav--prev {
    left: 6px;
}

.post-gallery-nav--next {
    right: 6px;
}

.post-gallery:hover .post-gallery-nav,
.post-gallery-nav:focus-visible {
    opacity: 1;
}

.post-gallery-nav:hover {
    background: rgba(0, 0, 0, 0.55);
}

.post-gallery-nav:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--accent) 78%, white 22%);
    outline-offset: 2px;
    opacity: 1;
}

.post-gallery-meta {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-family: "Consolas", "Fira Code", "JetBrains Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.12px;
    color: rgba(255, 255, 255, 0.88);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.post-gallery:hover .post-gallery-meta {
    opacity: 1;
}

.post-content details {
    margin: 12px 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    padding: 8px 10px;
}

.post-content details summary {
    cursor: pointer;
    font-weight: 600;
}

.post-content .hidden-text {
    background: var(--hidden-bg);
    color: transparent;
    border-radius: 4px;
    padding: 0 4px;
    transition: color 0.2s ease;
}

.post-content .hidden-text:hover {
    color: var(--hidden-ink);
}

.post-content .post-checklist {
    margin: 12px 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

.post-content .post-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.post-content .post-checklist-checkbox {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    margin: 0.15em 0 0;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid var(--accent);
    border-radius: 50%;
    background: transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.post-content .post-checklist-checkbox:checked {
    background: var(--accent);
    border-color: var(--accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.post-content .post-checklist-text {
    line-height: 1.5;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.post-content .post-checklist-item.is-done .post-checklist-text {
    text-decoration: line-through;
    text-decoration-color: var(--meta);
    color: var(--meta);
}

.post-images {
    margin-top: 16px;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.post-audios {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

.post-audio {
    margin: 0;
    max-width: 100%;
}

.post-content .post-audio.inline-audio {
    display: block;
    margin: 10px 0 14px;
    max-width: 100%;
}

.post-content .post-align-center .post-audio.inline-audio .post-audio-shell {
    margin-left: auto;
    margin-right: auto;
}

.post-content .post-align-right .post-audio.inline-audio .post-audio-shell {
    margin-left: auto;
    margin-right: 0;
}

.post-audio-shell {
    width: min(100%, 560px);
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.post-audio-shell.is-enhanced {
    padding: 6px 8px 5px;
    border-radius: 12px;
    border: 1px solid var(--audio-shell-border);
    background: linear-gradient(135deg, var(--audio-shell-bg), color-mix(in srgb, var(--audio-shell-bg) 70%, transparent));
    box-shadow: 0 8px 20px var(--audio-shell-shadow);
    backdrop-filter: blur(8px);
}

.post-audio-title {
    margin: 0;
    padding: 0 2px;
    font-size: 12px;
    line-height: 1.12;
    color: var(--meta);
    word-break: break-word;
    min-height: 14px;
}

.post-audio-player {
    display: block;
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
    background: transparent;
    appearance: auto;
    -webkit-appearance: auto;
    pointer-events: auto;
    position: relative;
    z-index: 1;
    touch-action: auto;
}

.post-audio-shell.is-enhanced .post-audio-player {
    display: none;
}

.post-audio-ui {
    display: none;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 0;
    margin-top: 0;
}

.post-audio-shell.is-enhanced .post-audio-ui {
    display: grid;
    grid-template-columns: auto auto minmax(44px, 1fr) auto auto minmax(52px, 90px) auto auto;
    align-items: center;
}

.post-audio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid var(--audio-btn-border);
    background: var(--audio-btn-bg);
    color: var(--audio-btn-ink);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    padding: 0;
}

.post-audio-btn:hover {
    background: var(--audio-btn-bg-hover);
    transform: translateY(-1px);
}

.post-audio-btn--repeat.is-active {
    background: color-mix(in srgb, var(--accent) 42%, transparent);
    border-color: color-mix(in srgb, var(--accent) 70%, var(--audio-btn-border));
    color: color-mix(in srgb, var(--accent-strong) 72%, var(--audio-btn-ink));
}

.post-audio-btn:focus-visible,
.post-audio-seek:focus-visible,
.post-audio-volume:focus-visible,
.post-audio-download:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--accent) 78%, white 22%);
    outline-offset: 2px;
}

.post-audio-time {
    min-width: 32px;
    font-family: "Consolas", "Fira Code", "JetBrains Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.15px;
    color: var(--audio-time-ink);
    text-align: center;
    user-select: none;
}

.post-audio-seek,
.post-audio-volume {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 14px;
    accent-color: var(--accent);
    cursor: pointer;
}

.post-audio-seek {
    min-width: 0;
}

.post-audio-seek::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--audio-seek-fill) var(--seek-progress, 0%), var(--audio-seek-track) var(--seek-progress, 0%));
}

.post-audio-seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: -4px;
    background: var(--audio-seek-thumb);
    border: 1px solid var(--audio-seek-thumb-border);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.22);
}

.post-audio-seek::-moz-range-track {
    height: 4px;
    border-radius: 999px;
    background: var(--audio-seek-track);
}

.post-audio-seek::-moz-range-progress {
    height: 4px;
    border-radius: 999px;
    background: var(--audio-seek-fill);
}

.post-audio-seek::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--audio-seek-thumb);
    border: 1px solid var(--audio-seek-thumb-border);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.22);
}

.post-audio-volume::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--audio-volume-fill) var(--vol-progress, 100%), var(--audio-volume-track) var(--vol-progress, 100%));
}

.post-audio-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: -3px;
    background: var(--audio-seek-thumb);
    border: 1px solid var(--audio-seek-thumb-border);
}

.post-audio-volume::-moz-range-track {
    height: 4px;
    border-radius: 999px;
    background: var(--audio-volume-track);
}

.post-audio-volume::-moz-range-progress {
    height: 4px;
    border-radius: 999px;
    background: var(--audio-volume-fill);
}

.post-audio-volume::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--audio-seek-thumb);
    border: 1px solid var(--audio-seek-thumb-border);
}

.post-audio-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid var(--audio-download-border);
    background: var(--audio-download-bg);
    color: var(--audio-download-ink);
    text-decoration: none;
    font-size: 16px;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.post-audio-download:hover {
    background: var(--audio-download-bg-hover);
    transform: translateY(-1px);
}

@media (max-width: 720px) {
    .post-audio-shell.is-enhanced {
        padding: 6px 7px 5px;
    }

    .post-audio-ui {
        gap: 6px;
        padding: 0;
        margin-top: 0;
    }

    .post-audio-shell.is-enhanced .post-audio-ui {
        grid-template-columns: auto auto minmax(38px, 1fr) auto auto minmax(44px, 72px) auto auto;
    }

    .post-audio-btn,
    .post-audio-download {
        width: 28px;
        height: 28px;
    }

    .post-audio-time {
        min-width: 28px;
        font-size: 10px;
    }
}

.post-audio-player--editor {
    width: min(100%, 520px);
}

.post-file {
    margin: 0;
    max-width: 100%;
}

.post-content .post-file.inline-file {
    display: block;
    margin: 10px 0 14px;
}

.post-file-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--surface) 80%, var(--accent) 8%);
    border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
    text-decoration: none;
    color: inherit;
    max-width: min(100%, 480px);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.post-file-card:hover {
    background: color-mix(in srgb, var(--surface) 70%, var(--accent) 14%);
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
    transform: translateY(-1px);
}

.post-file-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.post-file-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.post-file-name {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-file-size {
    font-size: 0.82em;
    opacity: 0.7;
}

.post-file-action {
    flex-shrink: 0;
    font-size: 0.88em;
    font-weight: 500;
    color: var(--accent);
    margin-left: auto;
}

@media (max-width: 720px) {
    .post-file-card {
        gap: 8px;
        padding: 8px 12px;
    }

    .post-file-icon {
        font-size: 20px;
    }

    .post-file-name {
        font-size: 0.92em;
    }
}

.post-image {
    margin: 0;
    max-width: 100%;
}

.post-content .post-image.inline-image {
    display: inline-flex;
    flex-direction: column;
    vertical-align: top;
    width: clamp(170px, 31%, 260px);
    max-width: 100%;
    margin: 8px 10px 12px 0;
}

.post-content .post-align-center .post-image.inline-image {
    margin-left: 6px;
    margin-right: 6px;
}

.post-content .post-align-right .post-image.inline-image {
    margin-left: 10px;
    margin-right: 0;
}

.post-image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 540px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: transparent;
    object-fit: contain;
}

.post-image figcaption {
    margin-top: 6px;
    font-size: 14px;
    color: var(--meta);
}

.post-content .post-image.inline-image figcaption {
    text-align: center;
}

img[data-lightbox] {
    cursor: zoom-in;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--lightbox-bg);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    justify-items: center;
    gap: 12px;
    padding: 14px;
}

.lightbox[hidden] {
    display: none !important;
}

.lightbox-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: min(96vw, 1480px);
    min-width: 0;
}

.lightbox img {
    max-width: min(96vw, 1440px);
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--lightbox-border);
    box-shadow: 0 20px 50px var(--lightbox-shadow);
    background: transparent;
    cursor: default;
}

.lightbox-nav {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--line) 70%, var(--accent) 30%);
    background: color-mix(in srgb, var(--surface) 58%, transparent);
    color: var(--ink);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.lightbox-nav:hover {
    transform: translateY(-1px);
    background: color-mix(in srgb, var(--accent-soft) 58%, var(--surface) 42%);
    border-color: color-mix(in srgb, var(--accent) 70%, var(--line) 30%);
}

.lightbox-nav:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--accent) 78%, white 22%);
    outline-offset: 2px;
}

.lightbox-nav[disabled] {
    opacity: 0.35;
    cursor: default;
    transform: none;
}

.lightbox-nav.is-hidden {
    visibility: hidden;
    pointer-events: none;
}

.post-card,
.post-detail,
.glass-panel {
    background: var(--post-glass-bg);
    border-color: var(--post-glass-border);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.status-panel {
    background: color-mix(in srgb, var(--post-glass-bg) 82%, transparent);
    border-color: color-mix(in srgb, var(--post-glass-border) 88%, transparent);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.post-card {
    padding: 24px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.post-card::before {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--line) 18%, var(--line) 82%, transparent 100%);
    opacity: 0.9;
    pointer-events: none;
}

.post-card-title {
    margin-bottom: 8px;
    font-size: clamp(1.34rem, 1.2rem + 0.44vw, 1.62rem);
    line-height: 1.26;
}

.post-card-link {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-card-link:hover,
.post-card-link:focus-visible {
    color: var(--accent-strong);
}

.post-card-meta {
    margin-bottom: 14px;
}

.post-card-full-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 650;
    color: var(--accent-strong);
    background: color-mix(in srgb, var(--accent-soft) 64%, var(--surface) 36%);
    letter-spacing: 0.16px;
}

.post-card-body {
    position: relative;
    margin-bottom: 14px;
}

.post-card-content {
    font-size: 1.03rem;
    line-height: 1.67;
}

.post-card-body--faded {
    max-height: 460px;
    overflow: hidden;
}

.post-card-body--faded::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 150px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        color-mix(in srgb, var(--post-glass-bg) 18%, transparent) 34%,
        color-mix(in srgb, var(--post-glass-bg) 54%, transparent) 68%,
        color-mix(in srgb, var(--post-glass-bg) 90%, transparent) 100%
    );
    pointer-events: none;
}

@supports ((-webkit-mask-image: linear-gradient(#000, transparent)) or (mask-image: linear-gradient(#000, transparent))) {
    .post-card-body--faded {
        -webkit-mask-image: linear-gradient(
            180deg,
            #000 0%,
            #000 72%,
            rgba(0, 0, 0, 0.95) 82%,
            rgba(0, 0, 0, 0.74) 90%,
            rgba(0, 0, 0, 0.45) 96%,
            transparent 100%
        );
        mask-image: linear-gradient(
            180deg,
            #000 0%,
            #000 72%,
            rgba(0, 0, 0, 0.95) 82%,
            rgba(0, 0, 0, 0.74) 90%,
            rgba(0, 0, 0, 0.45) 96%,
            transparent 100%
        );
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
    }

    .post-card-body--faded::after {
        display: none;
    }
}

.post-card .button.secondary {
    min-width: 160px;
    text-align: center;
}

.post-images--list {
    margin-top: 14px;
    margin-bottom: 0;
}

.pin-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 2px 10px 2px 7px;
    font-size: 12px;
    font-weight: 650;
    color: var(--accent-strong);
    background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface) 30%);
    letter-spacing: 0.2px;
}

.pin-badge::before {
    content: "";
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    background: var(--rabbit-badge-icon) center/contain no-repeat;
}

.pagination-panel {
    display: grid;
    gap: 12px;
}

.pagination-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
}

.post-detail .meta {
    margin-bottom: 14px;
}

.post-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
}

.post-detail-head h1 {
    margin-bottom: 0;
}

.post-reading-meta {
    margin: 3px 0 0;
    font-family: "Consolas", "Fira Code", "JetBrains Mono", monospace;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.02em;
    color: var(--meta);
    text-align: right;
    white-space: nowrap;
}

.post-echo {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 12px;
    border: 1px solid var(--echo-border);
    border-radius: 12px;
    background: var(--echo-bg);
    backdrop-filter: blur(1.5px);
}

.post-echo-count {
    margin: 0;
    font-family: "Consolas", "Fira Code", "JetBrains Mono", monospace;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--echo-count);
    font-weight: 650;
}

.post-echo-label {
    color: var(--echo-label);
    font-weight: 560;
}

.post-echo-form {
    margin: 0 0 0 auto;
}

.post-echo-button {
    min-width: auto;
    padding: 6px 11px;
    font-family: "Consolas", "Fira Code", "JetBrains Mono", monospace;
    font-size: 13px;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

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

.field {
    margin: 0;
    display: grid;
    gap: 8px;
}

.field label {
    color: var(--meta);
    font-size: 14px;
    font-weight: 620;
}

.field-checkbox {
    gap: 6px;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 620;
    color: var(--ink);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.editor-toolbar {
    display: grid;
    gap: 8px;
    margin: 8px 0 10px;
}

.editor-toolbar-track {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.editor-toolbar-track::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--line) 22%, var(--line) 78%, transparent 100%);
    pointer-events: none;
}

.editor-toolbar-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--panel) 84%, transparent);
}

.editor-toolbar-label {
    position: relative;
    padding-right: 7px;
    margin-right: 1px;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--meta);
    white-space: nowrap;
}

.editor-toolbar-label::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 13px;
    background: linear-gradient(180deg, transparent 0%, var(--line) 30%, var(--line) 70%, transparent 100%);
}

.editor-toolbar .button {
    padding: 7px 10px;
    font-size: 13px;
    box-shadow: none;
    white-space: nowrap;
}

.editor-toolbar--compact .editor-toolbar-track {
    padding: 9px 10px;
    gap: 8px;
}

.editor-toolbar--compact .editor-toolbar-group {
    gap: 5px;
    padding: 6px 8px;
}

.editor-toolbar--compact .editor-toolbar-label {
    font-size: 10px;
    letter-spacing: 0.07em;
}

.editor-toolbar--compact .button {
    padding: 6px 9px;
    font-size: 12px;
    border-radius: 8px;
}

.editor-help {
    display: block;
    margin: 1px 0 0;
    line-height: 1.4;
}

code {
    font-family: "Consolas", "Fira Code", "JetBrains Mono", monospace;
    font-size: 0.92em;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 1px 5px;
}

.images-panel {
    margin: 2px 0 0;
}

.images-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.images-panel-head h2 {
    margin-bottom: 0;
}

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

.image-form-row {
    padding: 12px;
    border: 1px dashed var(--line);
    border-radius: 10px;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    display: grid;
    gap: 10px;
}

.image-form-row.is-removed {
    display: none;
}

.image-slot-token {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.image-row-actions {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.slot-remove-button {
    box-shadow: none;
}

.image-delete-control {
    display: none;
}

.image-preview {
    max-width: min(100%, 220px);
    border-radius: 10px;
    border: 1px solid var(--line);
    display: block;
}

.form-actions {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.errorlist {
    list-style: none;
    margin: 0;
    padding: 0;
    color: #b22f71;
    font-size: 13px;
    line-height: 1.35;
}

:root[data-theme="dark"] .errorlist {
    color: #ffacdc;
}

.button:focus-visible,
.links a:focus-visible,
.scroll-nav-button:focus-visible,
input[type="text"]:focus-visible,
textarea:focus-visible,
input[type="file"]:focus-visible {
    outline: 2px solid var(--accent-strong);
    outline-offset: 2px;
}

input[type="text"]:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

@media (hover: hover) and (pointer: fine) {
    .panel:hover {
        transform: translateY(-1px);
        box-shadow: 0 11px 26px var(--shadow);
    }

    .button:hover {
        transform: translateY(-1px);
        filter: brightness(1.05);
        box-shadow: 0 8px 18px var(--shadow);
    }

    .scroll-nav-button:hover {
        transform: translateY(-1px);
        filter: brightness(1.08);
        box-shadow: 0 12px 24px -12px var(--shadow);
    }
}

@media (max-width: 600px) {
    .brand-title {
        font-size: 22px;
    }

    .brand-logo {
        width: 46px;
        height: 46px;
    }

    .theme-toggle {
        min-width: 112px;
    }

    .container {
        padding: 18px 12px 28px;
    }

    .scroll-nav {
        right: 10px;
        bottom: 10px;
        gap: 8px;
    }

    .scroll-nav-button {
        width: 42px;
        height: 42px;
        font-size: 21px;
    }

    .panel {
        padding: 16px;
        border-radius: 12px;
    }

    .images-panel-head {
        align-items: stretch;
    }

    .images-panel-head .button {
        width: 100%;
        text-align: center;
    }

    .links {
        width: 100%;
        justify-content: flex-start;
    }

    .form-actions .button {
        width: 100%;
        text-align: center;
    }

    .post-images {
        grid-template-columns: 1fr;
    }

    .post-content .post-image-row {
        grid-template-columns: 1fr;
    }

    .post-content .post-image.inline-image {
        display: block;
        width: 100%;
        margin: 8px 0 12px;
    }

    .post-card-body--faded {
        max-height: 360px;
    }

    .post-card-body--faded::after {
        height: 120px;
    }

    .post-card .button.secondary {
        width: 100%;
    }

    .editor-toolbar-track {
        padding: 10px;
        gap: 8px;
    }

    .editor-toolbar-group {
        width: 100%;
    }

    .editor-toolbar--compact .button {
        font-size: 13px;
        padding: 7px 10px;
    }

    .editor-toolbar-label {
        width: 100%;
        margin-right: 0;
        padding-right: 0;
    }

    .editor-toolbar-label::after {
        display: none;
    }

    textarea {
        min-height: 320px;
    }

    .post-detail-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .post-reading-meta {
        margin-top: 0;
        text-align: left;
        white-space: normal;
    }
}

@media (max-width: 900px) {
    .post-content .post-image-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1220px) {
    .edge-rail {
        display: none;
    }

    .scroll-nav {
        right: clamp(12px, 2.2vw, 30px);
    }
}

@media (max-width: 960px) {
    body::before {
        opacity: 0.72;
    }

    body::after {
        opacity: 0.3;
    }

    .code-float-line {
        font-size: 11px;
    }
}

@media (max-width: 760px) {
    .code-float-layer {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    :root[data-theme="dark"] .brand-logo {
        animation: none;
    }

    .brand-logo {
        transition: none;
    }

    .code-float-line {
        animation: none;
        transform: translate3d(var(--start-x, 0vw), 0, 0);
    }
}

.search-toggle {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
}

.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: min(22vh, 180px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.search-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.search-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 15, 23, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.search-panel {
    position: relative;
    width: min(520px, calc(100vw - 32px));
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 16px 48px var(--shadow), 0 0 0 1px var(--line);
    transform: translateY(-12px);
    transition: transform 0.18s ease;
}

.search-overlay.is-open .search-panel {
    transform: translateY(0);
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    font-size: 16px;
    font-family: inherit;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.search-input::placeholder {
    color: var(--meta);
    opacity: 0.7;
}

.search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(216, 93, 153, 0.18);
}

:root[data-theme="dark"] .search-input:focus {
    box-shadow: 0 0 0 3px rgba(240, 131, 189, 0.22);
}

.search-submit {
    flex-shrink: 0;
}

.search-hint {
    margin: 10px 0 0;
    text-align: center;
    font-size: 12px;
}

.search-page-form {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.search-page-input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    font-size: 16px;
    font-family: inherit;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.search-page-input::placeholder {
    color: var(--meta);
    opacity: 0.7;
}

.search-page-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(216, 93, 153, 0.18);
}

:root[data-theme="dark"] .search-page-input:focus {
    box-shadow: 0 0 0 3px rgba(240, 131, 189, 0.22);
}

.search-page-submit {
    flex-shrink: 0;
}

.search-results-meta {
    margin-top: 12px;
}

@media (max-width: 600px) {
    .search-overlay {
        padding-top: 16px;
    }

    .search-panel {
        width: calc(100vw - 24px);
        padding: 16px;
    }

    .search-form {
        flex-direction: column;
    }

    .search-page-form {
        flex-direction: column;
    }
}
