:root {
    color-scheme: only light;
    --bg: #f5f4f0;
    --bg-dots: rgba(66, 56, 44, 0.055);
    --bg-glow: radial-gradient(840px 320px at 50% -12%, rgba(212, 148, 92, 0.08), transparent 72%);
    --lamp-halo-bg: radial-gradient(640px 360px at 42% 0%, rgba(242, 181, 108, 0.16), rgba(242, 181, 108, 0.04) 48%, transparent 74%);
    --card-spot: rgba(214, 134, 72, 0.08);
    --surface: #ffffff;
    --surface-soft: #efede7;
    --surface-glass: rgba(255, 255, 255, 0.88);
    --border: rgba(38, 34, 28, 0.08);
    --border-strong: rgba(38, 34, 28, 0.16);
    --text: #23201d;
    --text-secondary: #5e5850;
    --text-muted: #8a8379;
    --accent: #c4623a;
    --accent-hover: #a94f2b;
    --accent-soft: rgba(196, 98, 58, 0.1);
    --accent-ring: rgba(196, 98, 58, 0.22);
    --accent-contrast: #fffdf9;
    --shadow-sm: 0 2px 10px rgba(38, 32, 24, 0.04);
    --shadow-md: 0 10px 28px rgba(38, 32, 24, 0.08);
    --shadow-lg: 0 22px 54px rgba(30, 24, 16, 0.14);
    --code-bg: #f6f4ef;
    --code-header: #ece9e1;
    --tok-cmt: #8b8072;
    --tok-str: #2f7a4d;
    --tok-kw: #a8422b;
    --tok-num: #9e6516;
    --tok-prop: #336790;
    --font-sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

html.dark,
html.dark-mode,
body.dark,
body.dark-mode {
    color-scheme: dark;
    --bg: #1c1d20;
    --bg-dots: rgba(242, 234, 220, 0.045);
    --bg-glow: radial-gradient(760px 340px at 50% -10%, rgba(235, 179, 108, 0.065), transparent 72%);
    --lamp-halo-bg: radial-gradient(720px 420px at 50% 0%, rgba(235, 174, 92, 0.17), rgba(235, 174, 92, 0.05) 48%, transparent 74%);
    --lamp-shade: #2c2f36;
    --lamp-bulb: #f5c372;
    --card-spot: rgba(228, 155, 86, 0.095);
    --surface: #25272b;
    --surface-soft: #2e3137;
    --surface-glass: rgba(37, 39, 43, 0.88);
    --border: rgba(255, 252, 245, 0.085);
    --border-strong: rgba(255, 252, 245, 0.17);
    --text: #f2efe9;
    --text-secondary: #bcb8b0;
    --text-muted: #8f8c86;
    --accent: #e49b56;
    --accent-hover: #efb072;
    --accent-soft: rgba(228, 155, 86, 0.16);
    --accent-ring: rgba(228, 155, 86, 0.28);
    --accent-contrast: #1c1d20;
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 14px 34px rgba(0, 0, 0, 0.34);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
    --code-bg: #1d1f23;
    --code-header: #2a2d33;
    --tok-cmt: #8a877f;
    --tok-str: #85c48e;
    --tok-kw: #e58e67;
    --tok-num: #e5b769;
    --tok-prop: #7eb8da;
}

* {
    box-sizing: border-box;
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 999px;
}

.reader-scroll,
.hover-preview-body {
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
}

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

body {
    overflow-x: clip;
    background-color: var(--bg);
    background-image:
        radial-gradient(var(--bg-dots) 1px, transparent 1px),
        var(--bg-glow);
    background-size: 24px 24px, 100% 100%;
    background-position: 0 0, 0 0;
    background-repeat: repeat, no-repeat;
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.25s ease, color 0.25s ease;
}

body.modal-open {
    overflow: hidden;
}

button,
input {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

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

[hidden] {
    display: none !important;
}

.lamp-halo {
    display: none;
    position: fixed;
    inset: 0 0 auto 0;
    height: 460px;
    background: var(--lamp-halo-bg);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

html.dark .lamp-halo,
html.dark-mode .lamp-halo {
    display: block;
}

html.dark[data-lamp="on"] .lamp-halo,
html.dark-mode[data-lamp="on"] .lamp-halo {
    opacity: 1;
}

.lamp-fixture {
    display: none;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    align-items: flex-start;
    justify-content: center;
    padding: 0 10px 8px;
    color: rgba(242, 239, 233, 0.42);
    transition: color 0.25s ease, transform 0.25s ease, filter 0.35s ease;
}

html.dark .lamp-fixture,
html.dark-mode .lamp-fixture {
    display: inline-flex;
}

html.dark[data-lamp="on"] .lamp-fixture,
html.dark-mode[data-lamp="on"] .lamp-fixture {
    color: rgba(235, 179, 108, 0.78);
    filter: drop-shadow(0 6px 14px rgba(235, 174, 92, 0.42));
}

html.dark[data-lamp="off"] .lamp-fixture,
html.dark-mode[data-lamp="off"] .lamp-fixture {
    --lamp-bulb: #2a2c31;
    color: rgba(188, 184, 176, 0.32);
}

.lamp-fixture:hover {
    color: #f5c372;
    transform: translateX(-50%) translateY(2px);
}

.lamp-fixture.is-pulled {
    animation: lampPull 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes lampPull {
    0% { transform: translateX(-50%) translateY(0); }
    45% { transform: translateX(-50%) translateY(5px); }
    100% { transform: translateX(-50%) translateY(0); }
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 48px;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.top-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 38px;
    padding: 0 13px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
    flex-shrink: 0;
}

.nav-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateX(-1px);
}

.brand-cluster {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    min-width: 0;
}

.fox-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 19px;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease;
}

.fox-btn:hover {
    background: var(--surface-soft);
    transform: rotate(-8deg) scale(1.08);
}

.fox-btn.is-hopping {
    animation: foxHop 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes foxHop {
    0% { transform: translateY(0) rotate(0deg); }
    35% { transform: translateY(-6px) rotate(-12deg) scale(1.14); }
    70% { transform: translateY(1px) rotate(7deg) scale(1.04); }
    100% { transform: translateY(0) rotate(0deg); }
}

.fox-bubble {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    z-index: 80;
    width: max-content;
    max-width: min(280px, calc(100vw - 48px));
    padding: 8px 13px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-md);
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text);
    animation: popFadeIn 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.fox-bubble::before {
    content: "";
    position: absolute;
    left: 12px;
    top: -5px;
    width: 8px;
    height: 8px;
    background: var(--surface);
    border-left: 1px solid var(--border-strong);
    border-top: 1px solid var(--border-strong);
    transform: rotate(45deg);
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 4px 6px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
    transition: color 0.18s ease;
}

.brand-link:hover {
    color: var(--accent);
}

.brand-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.icon-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-indicator {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-ring);
}

.desktop-search {
    width: 240px;
}

.search-icon {
    color: var(--text-muted);
    flex-shrink: 0;
    margin-right: 7px;
}

.search-input {
    width: 100%;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13.5px;
    color: var(--text);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.search-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-clear:hover {
    background: var(--surface-soft);
    color: var(--text);
}

.mobile-only,
.tablet-down-only {
    display: none;
}

.mobile-search-bar {
    margin-bottom: 14px;
}

.mobile-search-bar .search-box {
    width: 100%;
    height: 42px;
}

.welcome-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 4px 4px 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.welcome-copy {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}

.greeting-text {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.post-count-badge {
    font-size: 13px;
    color: var(--text-muted);
}

.active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12.5px;
    font-weight: 500;
    transition: background-color 0.16s ease;
}

.filter-chip:hover {
    background: var(--accent-ring);
}

.filter-chip-reset {
    background: var(--surface-soft);
    color: var(--text-secondary);
}

.filter-chip-reset:hover {
    color: var(--text);
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 292px;
    gap: 28px;
    align-items: start;
}

.post-stream {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
    padding-left: 24px;
}

.post-stream::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 10px;
    bottom: 10px;
    width: 1.5px;
    background: linear-gradient(to bottom, var(--accent-ring), var(--border) 65%, transparent);
}

.month-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.month-heading {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding-left: 2px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

.month-heading::before {
    content: "";
    position: absolute;
    left: -22px;
    top: 50%;
    transform: translateY(-50%);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent-soft);
}

.month-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.post-card {
    position: relative;
    overflow: hidden;
    padding: 20px 22px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.post-card-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.post-card.has-cover .post-card-inner {
    grid-template-columns: minmax(0, 1fr) 152px;
}

.post-card-main {
    min-width: 0;
}

.post-thumb {
    width: 152px;
    height: 104px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface-soft);
    flex-shrink: 0;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.post-card:hover .post-thumb img {
    transform: scale(1.05);
}

@media (hover: hover) and (pointer: fine) {
    html.dark[data-lamp="on"] .post-card::after,
    html.dark-mode[data-lamp="on"] .post-card::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), var(--card-spot), transparent 65%);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    html.dark[data-lamp="on"] .post-card:hover::after,
    html.dark-mode[data-lamp="on"] .post-card:hover::after {
        opacity: 1;
    }
}

.post-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.post-card.is-highlighted {
    border-color: var(--accent-ring);
    box-shadow: var(--shadow-md);
}

.post-card.is-highlighted::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 3.5px;
    border-radius: 0 4px 4px 0;
    background: var(--accent);
}

.post-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.post-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 8px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.post-date {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--accent);
}

.post-title {
    margin: 0 0 8px;
    font-size: 18.5px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
}

.post-summary {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--text-secondary);
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.tag-pill.tag-tone-0,
.tag-filter-btn.tag-tone-0 {
    background: rgba(196, 98, 58, 0.1);
    color: #a94c28;
}

.tag-pill.tag-tone-1,
.tag-filter-btn.tag-tone-1 {
    background: rgba(74, 130, 96, 0.11);
    color: #356d4c;
}

.tag-pill.tag-tone-2,
.tag-filter-btn.tag-tone-2 {
    background: rgba(68, 114, 152, 0.11);
    color: #33628a;
}

.tag-pill.tag-tone-3,
.tag-filter-btn.tag-tone-3 {
    background: rgba(174, 125, 48, 0.12);
    color: #8b6018;
}

.tag-pill.tag-tone-4,
.tag-filter-btn.tag-tone-4 {
    background: rgba(138, 96, 128, 0.11);
    color: #714968;
}

html.dark .tag-pill.tag-tone-0,
html.dark-mode .tag-pill.tag-tone-0,
html.dark .tag-filter-btn.tag-tone-0,
html.dark-mode .tag-filter-btn.tag-tone-0 {
    background: rgba(228, 155, 86, 0.14);
    color: #ebb072;
}

html.dark .tag-pill.tag-tone-1,
html.dark-mode .tag-pill.tag-tone-1,
html.dark .tag-filter-btn.tag-tone-1,
html.dark-mode .tag-filter-btn.tag-tone-1 {
    background: rgba(110, 178, 136, 0.14);
    color: #8fcfab;
}

html.dark .tag-pill.tag-tone-2,
html.dark-mode .tag-pill.tag-tone-2,
html.dark .tag-filter-btn.tag-tone-2,
html.dark-mode .tag-filter-btn.tag-tone-2 {
    background: rgba(114, 166, 208, 0.14);
    color: #96c3e6;
}

html.dark .tag-pill.tag-tone-3,
html.dark-mode .tag-pill.tag-tone-3,
html.dark .tag-filter-btn.tag-tone-3,
html.dark-mode .tag-filter-btn.tag-tone-3 {
    background: rgba(218, 174, 96, 0.15);
    color: #e6c27a;
}

html.dark .tag-pill.tag-tone-4,
html.dark-mode .tag-pill.tag-tone-4,
html.dark .tag-filter-btn.tag-tone-4,
html.dark-mode .tag-filter-btn.tag-tone-4 {
    background: rgba(182, 138, 172, 0.14);
    color: #cfb0c8;
}

.tag-pill:hover {
    border-color: currentColor;
}

.tag-pill.is-active {
    background: var(--accent);
    color: var(--accent-contrast);
}

.post-read-hint {
    font-size: 12.5px;
    color: var(--text-muted);
    transition: color 0.18s ease, transform 0.18s ease;
}

.post-card:hover .post-read-hint {
    color: var(--accent);
    transform: translateX(2px);
}

.state-card {
    padding: 42px 24px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px dashed var(--border-strong);
    text-align: center;
    color: var(--text-secondary);
    font-size: 14.5px;
}

.state-card-btn {
    margin-top: 14px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
}

.sidebar-host {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar-host::-webkit-scrollbar {
    display: none;
}

.mobile-profile-host {
    display: none;
}

.widget-card.profile-card {
    position: relative;
    overflow: hidden;
    padding: 0;
    flex-shrink: 0;
}

.profile-banner {
    position: relative;
    height: 80px;
    background-color: var(--surface-soft);
    background-image: linear-gradient(135deg, rgba(196, 98, 58, 0.16), rgba(228, 155, 86, 0.08));
    background-size: cover;
    background-position: center;
}

.profile-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 28%, var(--surface) 100%);
}

.profile-body {
    position: relative;
    z-index: 1;
    padding: 0 18px 14px;
}

.profile-head {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 10px;
}

.profile-avatar {
    width: 56px;
    height: 56px;
    margin-top: -28px;
    border-radius: 50%;
    border: 3px solid var(--surface);
    background: var(--surface-soft);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.profile-card:hover .profile-avatar {
    transform: rotate(-3deg) scale(1.04);
}

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

.profile-avatar-fallback {
    font-size: 26px;
    line-height: 1;
}

.profile-identity {
    min-width: 0;
    padding-top: 6px;
}

.profile-name {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
}

.profile-subtitle {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-bio {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.62;
    color: var(--text-secondary);
}

.profile-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.profile-stats {
    font-size: 12px;
    color: var(--text-muted);
}

.profile-email-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease, transform 0.14s cubic-bezier(0.22, 1, 0.36, 1);
}

.profile-email-link .email-icon-check {
    display: none;
}

.profile-email-link.is-copied .email-icon-mail {
    display: none;
}

.profile-email-link.is-copied .email-icon-check {
    display: block;
}

.profile-email-link:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
    transform: translateY(-1px);
}

.profile-email-link:active {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
    transform: scale(0.9);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.14);
    transition-duration: 0.08s;
}

.profile-email-link.is-copied {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-ring);
    animation: emailCopiedPop 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes emailCopiedPop {
    0% { transform: scale(0.9); }
    55% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.sidebar-widgets {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-shrink: 0;
}

.widget-card {
    padding: 18px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 12px;
}

.cal-header-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cal-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: var(--text-secondary);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.cal-nav-btn:hover {
    background: var(--surface-soft);
    color: var(--text);
}

.cal-month-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.cal-month-btn:hover {
    background: var(--surface-soft);
    color: var(--accent);
}

.cal-latest-btn {
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-soft);
}

.cal-month-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: var(--surface-soft);
}

.month-pill {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--surface);
    border: 1px solid var(--border);
}

.month-pill.is-active,
.month-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 6px;
    text-align: center;
    font-size: 11.5px;
    color: var(--text-muted);
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-cell {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 36px;
    border-radius: 10px;
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.cal-cell.in-month {
    color: var(--text-secondary);
}

.cal-cell.is-outside {
    opacity: 0.5;
}

.cal-cell.is-today {
    box-shadow: inset 0 0 0 1.5px var(--text-muted);
}

.cal-cell.has-posts {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
}

.cal-cell.has-posts:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1.5px var(--accent);
}

.cal-cell.is-selected {
    background: var(--accent);
    color: var(--accent-contrast);
    box-shadow: 0 4px 12px var(--accent-ring);
}

.cal-dots {
    display: flex;
    gap: 2px;
    margin-top: 1px;
    height: 4px;
}

.cal-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}

.cal-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 11.5px;
    color: var(--text-muted);
}

.cal-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cal-legend-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.cal-legend-today {
    width: 10px;
    height: 10px;
    border-radius: 4px;
    border: 1.5px solid var(--text-muted);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-size: 12.5px;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tag-filter-btn:hover {
    border-color: currentColor;
}

.tag-filter-btn.is-active {
    background: var(--accent);
    color: var(--accent-contrast);
    font-weight: 600;
}

.tag-count {
    font-size: 11px;
    opacity: 0.72;
}

.widget-divider {
    height: 1px;
    background: var(--border);
    margin: 14px 0 12px;
}

.random-post-btn {
    width: 100%;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 12px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.random-post-btn:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
    transform: translateY(-1px);
}

.blog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 38px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

.back-top-btn {
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 12.5px;
    transition: border-color 0.16s ease, color 0.16s ease;
}

.back-top-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.calendar-tooltip {
    position: fixed;
    z-index: 600;
    max-width: 240px;
    padding: 8px 11px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-md);
    font-size: 12px;
    line-height: 1.5;
    color: var(--text);
    pointer-events: none;
}

.hover-preview {
    position: fixed;
    z-index: 420;
    width: 440px;
    max-width: calc(100vw - 32px);
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: popFadeIn 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes popFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hover-preview-header {
    padding: 15px 18px 12px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-soft);
    cursor: pointer;
}

.hover-preview-meta {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 4px;
}

.hover-preview-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
}

.hover-preview-body {
    position: relative;
    padding: 14px 18px 20px;
    max-height: min(390px, 60vh);
    overflow-y: auto;
    font-size: 14.5px;
    line-height: 1.78;
    mask-image: linear-gradient(to bottom, #000 84%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent 100%);
}

.hover-preview-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    border-top: 1px solid var(--border);
    background: var(--surface);
    color: var(--accent);
    font-size: 12.5px;
    font-weight: 600;
}

.hover-preview-footer:hover {
    background: var(--accent-soft);
}

.sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 480;
    background: rgba(15, 12, 9, 0.48);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.sheet-panel {
    width: 100%;
    max-width: 560px;
    max-height: 84dvh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    border-top: 1px solid var(--border-strong);
    box-shadow: var(--shadow-lg);
    padding: 10px 16px calc(18px + env(safe-area-inset-bottom));
    animation: slideSheetUp 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.sheet-handle {
    width: 38px;
    height: 4px;
    margin: 0 auto 10px;
    border-radius: 999px;
    background: var(--border-strong);
}

.sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.sheet-title {
    font-size: 15px;
    font-weight: 700;
}

.sheet-body {
    overflow-y: auto;
    padding-bottom: 8px;
}

.reader-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reader-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 14, 10, 0.56);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.reader-sheet {
    position: relative;
    z-index: 1;
    width: min(780px, calc(100vw - 44px));
    max-height: calc(100vh - 44px);
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: popFadeIn 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reader-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--accent);
    z-index: 5;
    transition: width 0.08s linear;
}

.reader-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 18px;
    background: var(--surface-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.reader-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reader-action-btn {
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: border-color 0.16s ease, color 0.16s ease;
}

.reader-action-btn:hover,
.reader-action-btn.is-active {
    border-color: var(--accent);
    color: var(--accent);
}

.reader-scroll {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    padding: 28px 34px 44px;
}

.reader-inner {
    width: 100%;
    min-width: 0;
    max-width: 680px;
    margin: 0 auto;
}

.reader-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.reader-title {
    margin: 0 0 14px;
    font-size: clamp(1.45rem, 2.8vw, 1.9rem);
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
}

.reader-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.md-prose {
    min-width: 0;
    font-size: 16.5px;
    line-height: 1.88;
    color: var(--text);
    overflow-wrap: anywhere;
}

.md-prose > :first-child {
    margin-top: 0;
}

.md-prose p {
    margin: 0 0 1.15em;
}

.md-prose h1,
.md-prose h2,
.md-prose h3,
.md-prose h4 {
    position: relative;
    margin: 1.7em 0 0.7em;
    line-height: 1.38;
    font-weight: 700;
    color: var(--text);
}

.md-prose h2 {
    font-size: 1.32em;
    padding-bottom: 0.35em;
    border-bottom: 1px solid var(--border);
}

.md-prose h3 {
    font-size: 1.14em;
}

.heading-anchor {
    margin-right: 6px;
    color: var(--text-muted);
    text-decoration: none;
    opacity: 0.45;
    font-weight: 500;
}

.md-prose h2:hover .heading-anchor,
.md-prose h3:hover .heading-anchor {
    opacity: 1;
    color: var(--accent);
}

.md-prose a {
    color: var(--accent);
    text-underline-offset: 3px;
}

.md-prose blockquote {
    margin: 1.25em 0;
    padding: 0.75em 1.1em;
    border-left: 3px solid var(--accent);
    border-radius: 0 12px 12px 0;
    background: var(--surface-soft);
    color: var(--text-secondary);
}

.md-prose blockquote > :last-child {
    margin-bottom: 0;
}

.md-prose ul,
.md-prose ol {
    margin: 0 0 1.15em;
    padding-left: 1.5em;
}

.md-prose li {
    margin-bottom: 0.35em;
}

.md-prose hr {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 1.8em 0;
}

.md-prose :not(pre) > code {
    padding: 0.16em 0.42em;
    border-radius: 6px;
    background: var(--code-bg);
    font-family: var(--font-mono);
    font-size: 0.87em;
}

.code-block {
    max-width: 100%;
    margin: 1.25em 0;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--code-bg);
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    background: var(--code-header);
    border-bottom: 1px solid var(--border);
    font-size: 11.5px;
    color: var(--text-muted);
}

.code-lang {
    font-family: var(--font-mono);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.code-copy-btn {
    padding: 3px 9px;
    border-radius: 7px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 11.5px;
}

.code-copy-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.code-block pre {
    margin: 0;
    padding: 14px 16px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 13.5px;
    line-height: 1.6;
}

.tok-cmt { color: var(--tok-cmt); font-style: italic; }
.tok-str { color: var(--tok-str); }
.tok-kw { color: var(--tok-kw); font-weight: 600; }
.tok-num { color: var(--tok-num); }
.tok-prop { color: var(--tok-prop); }

.table-wrap {
    max-width: 100%;
    margin: 1.25em 0;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92em;
    min-width: 360px;
}

.table-wrap th,
.table-wrap td {
    padding: 9px 13px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.table-wrap th {
    background: var(--surface-soft);
    font-weight: 600;
}

.table-wrap tr:last-child td {
    border-bottom: none;
}

.md-figure {
    margin: 1.4em 0;
    text-align: center;
}

.md-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    cursor: zoom-in;
}

.md-figure figcaption {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.callout {
    margin: 1.3em 0;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    background: var(--surface-soft);
}

.callout-tip {
    border-left-color: #2f7a4d;
}

.callout-warning,
.callout-caution {
    border-left-color: #c2633a;
}

.callout-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--accent);
}

.callout-tip .callout-title {
    color: #2f7a4d;
}

html.dark .callout-tip .callout-title,
html.dark-mode .callout-tip .callout-title {
    color: #79c292;
}

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

.reader-pager {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.pager-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    width: 100%;
    padding: 13px 15px;
    border-radius: 14px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    text-align: left;
    transition: border-color 0.16s ease, transform 0.16s ease;
}

.pager-btn.pager-next {
    text-align: right;
    grid-column: 2;
}

.pager-btn:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.pager-dir {
    font-size: 12px;
    color: var(--text-muted);
}

.pager-name {
    display: block;
    max-width: 100%;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 700;
    background: rgba(12, 10, 8, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox-close {
    position: fixed;
    top: 16px;
    right: 18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
}

.lightbox-figure {
    margin: 0;
    max-width: min(92vw, 1080px);
    max-height: 88vh;
    text-align: center;
}

.lightbox-figure img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
}

.lightbox-figure figcaption {
    margin-top: 10px;
    font-size: 13.5px;
    color: #e6dfd5;
}

.blog-toast {
    position: fixed;
    left: 50%;
    bottom: calc(22px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 800;
    max-width: calc(100% - 32px);
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-md);
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    animation: toastSlideUp 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes toastSlideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@media (max-width: 1023px) {
    .content-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .sidebar-host {
        display: none;
    }

    .mobile-profile-host {
        display: block;
        margin-bottom: 18px;
    }

    .mobile-profile-host .widget-card.profile-card {
        padding: 13px 16px;
    }

    .mobile-profile-host .profile-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: var(--profile-banner-img, none);
        background-size: cover;
        background-position: center;
        opacity: 0.16;
        pointer-events: none;
    }

    html.dark .mobile-profile-host .profile-card::before,
    html.dark-mode .mobile-profile-host .profile-card::before {
        opacity: 0.13;
    }

    .mobile-profile-host .profile-banner {
        display: none;
    }

    .mobile-profile-host .profile-body {
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .mobile-profile-host .profile-head {
        margin-bottom: 0;
        align-items: center;
        min-width: 0;
        flex: 1;
    }

    .mobile-profile-host .profile-avatar {
        width: 46px;
        height: 46px;
        margin-top: 0;
        border-width: 2px;
    }

    .mobile-profile-host .profile-identity {
        padding-top: 0;
    }

    .mobile-profile-host .profile-bio {
        display: none;
    }

    .mobile-profile-host .profile-foot {
        padding-top: 0;
        border-top: none;
        flex-shrink: 0;
    }

    .mobile-profile-host .profile-stats {
        display: none;
    }

    .mobile-profile-host .profile-email-link {
        width: 38px;
        height: 38px;
    }

    .tablet-down-only {
        display: inline-flex;
    }

    .desktop-search {
        width: 200px;
    }

    .cal-cell {
        height: 42px;
        font-size: 13.5px;
    }
}

@media (max-width: 767px) {
    .page-shell {
        width: calc(100% - 24px);
        padding: 14px 0 48px;
    }

    html.dark .page-shell,
    html.dark-mode .page-shell {
        padding-top: 26px;
    }

    .lamp-svg {
        width: 44px;
        height: 26px;
    }

    .desktop-search {
        display: none;
    }

    .mobile-only {
        display: inline-flex;
    }

    .search-input {
        font-size: 16px;
    }

    .top-bar {
        gap: 8px;
    }

    .top-left,
    .top-right {
        gap: 6px;
    }

    .nav-pill {
        height: 38px;
        padding: 0 10px;
    }

    .icon-btn {
        width: 38px;
        height: 38px;
    }

    .brand-link {
        font-size: 15.5px;
    }

    .welcome-strip {
        padding: 2px 2px 12px;
        margin-bottom: 14px;
    }

    .post-stream {
        padding-left: 18px;
    }

    .post-stream::before {
        left: 4px;
    }

    .month-heading::before {
        left: -17px;
        width: 8px;
        height: 8px;
    }

    .post-card {
        padding: 16px 16px;
        border-radius: 16px;
    }

    .post-card.has-cover .post-card-inner {
        grid-template-columns: minmax(0, 1fr) 104px;
        gap: 12px;
    }

    .post-thumb {
        width: 104px;
        height: 78px;
    }

    .post-card:hover {
        transform: none;
    }

    .post-title {
        font-size: 17px;
    }

    .reader-sheet {
        width: 100%;
        max-height: 100dvh;
        height: 100dvh;
        border-radius: 0;
        border: none;
    }

    .reader-topbar {
        padding: 10px 14px;
    }

    .reader-close-btn {
        display: none;
    }

    .reader-scroll {
        padding: 20px 16px calc(36px + env(safe-area-inset-bottom));
    }

    .md-prose {
        font-size: 16px;
    }

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

    .pager-btn.pager-next {
        grid-column: 1;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .post-card.has-cover .post-card-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .post-thumb {
        width: 100%;
        height: 152px;
        order: -1;
    }

    .reader-actions {
        gap: 6px;
    }

    .reader-action-btn {
        padding: 0 9px;
        font-size: 12.5px;
        white-space: nowrap;
    }
}
