:root {
    --bg: #0a0a0b;
    --bg-elevated: #111113;
    --bg-transparent: rgba(10, 10, 11, 0);
    --surface: #161618;
    --surface-hover: #1c1c1f;
    --surface-active: #222226;
    --border: #242429;
    --border-hover: #333338;
    --text: #f1f1f3;
    --text-secondary: #9a9aa3;
    --text-tertiary: #63636c;
    --accent: #fafafa;
    --accent-dim: #d4d4d8;
    --glow-subtle: rgba(255, 255, 255, 0.025);
    --glow-card: rgba(255, 255, 255, 0.04);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.03);
    --shadow-card-hover: 0 2px 12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 40px rgba(255, 255, 255, 0.015);
    --shadow-modal: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 4px 24px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(255, 255, 255, 0.02);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-2xl: 22px;
    --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.16s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --navbar-bg: rgba(10, 10, 11, 0.72);
    --navbar-bg-scrolled: rgba(10, 10, 11, 0.88);
    --brand-hover: #fff;
    --brand-glow: 0 0 4px #fff, 0 0 8px #fff, 0 0 16px #fff, 0 0 32px #fff;
    --card-icon-bg: #1e1e22;
    --card-icon-border: #2a2a30;
    --card-icon-bg-hover: #25252b;
    --card-icon-border-hover: #3a3a42;
    --pill-bg: #1c1c20;
    --pill-border: #26262c;
    --toolbar-bg: #121215;
    --toolbar-border: #1f1f25;
    --address-bg: #1a1a1e;
    --address-border: #28282f;
    --muted-icon: #6a6a74;
    --muted-text-strong: #c0c0c8;
    --close-accent: #ee6b6b;
    --tooltip-bg: #2a2a30;
    --tooltip-text: #e0e0e8;
    --scrollbar-size: 10px;
    --scrollbar-track: rgba(255, 255, 255, 0.06);
    --scrollbar-thumb: rgba(255, 255, 255, 0.24);
    --scrollbar-thumb-hover: rgba(255, 255, 255, 0.34);
    --modal-stage-bg: #0d0d0f;
    --loader-track: #1f1f25;
    --loader-accent: #888;
    --error-text: #777;
    --error-link: #b0b0b8;
    --content-close-hover-bg: #3a1a1a;
    --nav-icon-filter: none;
    --nav-icon-hover-filter: drop-shadow(0 0 8px var(--brand-hover));
    --primary-button-bg: #2f2f33;
    --primary-button-bg-hover: #3a3a3f;
    --primary-button-text: #fff;
    --interactive-accent: #58a6ff;
    --interactive-accent-strong: #0969da;
    --interactive-accent-text: #fff;
    --interactive-accent-soft: rgba(255, 255, 255, 0.2);
    --notification-badge-bg: #ff4d4f;
    --notification-badge-text: #fff;
    --toast-info-bg: rgba(22, 22, 24, 0.96);
    --toast-info-border: rgba(255, 255, 255, 0.08);
    --toast-info-text: var(--text);
    --toast-success-bg: #1f8f4e;
    --toast-success-border: #28a25a;
    --toast-success-text: #ffffff;
    --toast-warning-bg: #d97706;
    --toast-warning-border: #f59e0b;
    --toast-warning-text: #ffffff;
    --toast-error-bg: #dc2626;
    --toast-error-border: #ef4444;
    --toast-error-text: #ffffff;
}

html[data-theme="light"] {
    color-scheme: light;
    --bg: #f5f7fb;
    --bg-elevated: #ffffff;
    --bg-transparent: rgba(245, 247, 251, 0);
    --surface: #ffffff;
    --surface-hover: #f8fafc;
    --surface-active: #eef2f7;
    --border: #d8dee8;
    --border-hover: #b9c4d4;
    --text: #18212f;
    --text-secondary: #556275;
    --text-tertiary: #7c8798;
    --accent: #111827;
    --accent-dim: #334155;
    --glow-subtle: rgba(17, 24, 39, 0.04);
    --glow-card: rgba(17, 24, 39, 0.05);
    --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(148, 163, 184, 0.12);
    --shadow-card-hover: 0 14px 36px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(100, 116, 139, 0.16);
    --shadow-modal: 0 18px 60px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(148, 163, 184, 0.18);
    --navbar-bg: rgba(245, 247, 251, 0.76);
    --navbar-bg-scrolled: rgba(245, 247, 251, 0.94);
    --brand-hover: #111827;
    --brand-glow: none;
    --card-icon-bg: #eef2f7;
    --card-icon-border: #d7dee8;
    --card-icon-bg-hover: #e6ebf2;
    --card-icon-border-hover: #bac5d5;
    --pill-bg: #f3f6fa;
    --pill-border: #d8e0ea;
    --toolbar-bg: #f8fafc;
    --toolbar-border: #d9e2ec;
    --address-bg: #ffffff;
    --address-border: #d6deea;
    --muted-icon: #64748b;
    --muted-text-strong: #334155;
    --close-accent: #dc2626;
    --tooltip-bg: #1f2937;
    --tooltip-text: #f8fafc;
    --scrollbar-track: rgba(15, 23, 42, 0.08);
    --scrollbar-thumb: rgba(100, 116, 139, 0.38);
    --scrollbar-thumb-hover: rgba(71, 85, 105, 0.52);
    --modal-stage-bg: #eef2f7;
    --loader-track: #d8dee8;
    --loader-accent: #475569;
    --error-text: #64748b;
    --error-link: #334155;
    --content-close-hover-bg: #fee2e2;
    --nav-icon-filter: brightness(0) saturate(100%) invert(10%) sepia(11%) saturate(1308%) hue-rotate(182deg) brightness(95%) contrast(91%);
    --nav-icon-hover-filter: brightness(0) saturate(100%) invert(10%) sepia(11%) saturate(1308%) hue-rotate(182deg) brightness(95%) contrast(91%);
    --primary-button-bg: #1f2937;
    --primary-button-bg-hover: #111827;
    --primary-button-text: #f8fafc;
    --interactive-accent: #2563eb;
    --interactive-accent-strong: #1d4ed8;
    --interactive-accent-text: #ffffff;
    --interactive-accent-soft: rgba(255, 255, 255, 0.22);
    --notification-badge-bg: #dc2626;
    --notification-badge-text: #ffffff;
    --toast-info-bg: rgba(255, 255, 255, 0.96);
    --toast-info-border: rgba(148, 163, 184, 0.28);
    --toast-info-text: var(--text);
    --toast-success-bg: #22c55e;
    --toast-success-border: #16a34a;
    --toast-success-text: #ffffff;
    --toast-warning-bg: #f59e0b;
    --toast-warning-border: #d97706;
    --toast-warning-text: #ffffff;
    --toast-error-bg: #ef4444;
    --toast-error-border: #dc2626;
    --toast-error-text: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    color-scheme: dark;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--bg);
    min-height: 100%;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    min-height: 100dvh;
    line-height: 1.55;
    letter-spacing: -0.008em;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

html.mapleup-iframe-mode .navbar,
html.mapleup-iframe-mode .nav-mobile-overlay,
html.mapleup-iframe-mode .nav-mobile-drawer,
html.mapleup-iframe-mode .site-footer,
html.mapleup-iframe-mode .deco-corner,
html.mapleup-iframe-mode .minimized-bar {
    display: none !important;
}

html.mapleup-iframe-mode body {
    min-height: auto;
}

html.mapleup-iframe-mode .main-container {
    padding-bottom: 0;
}

html.mapleup-page-loading .main-container,
html.mapleup-page-loading .content-area,
html.mapleup-page-loading .history-page-shell,
html.mapleup-page-loading .site-footer {
    opacity: 0;
}

html.mapleup-page-ready .main-container,
html.mapleup-page-ready .content-area,
html.mapleup-page-ready .history-page-shell,
html.mapleup-page-ready .site-footer,
html.mapleup-page-transitioning .main-container,
html.mapleup-page-transitioning .content-area,
html.mapleup-page-transitioning .history-page-shell,
html.mapleup-page-transitioning .site-footer {
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

html.mapleup-page-transitioning .main-container,
html.mapleup-page-transitioning .content-area,
html.mapleup-page-transitioning .history-page-shell,
html.mapleup-page-transitioning .site-footer {
    opacity: 0;
}

.mapleup-reveal-target {
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(0.985);
    filter: blur(14px);
    transition: opacity 0.68s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.82s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.82s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--mapleup-reveal-delay, 0ms);
    will-change: opacity, transform, filter;
}

.mapleup-reveal-target.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
}

html.mapleup-page-transitioning .mapleup-reveal-target.is-visible {
    opacity: 0;
    transform: translate3d(0, 16px, 0) scale(0.986);
    filter: blur(12px);
}

.mapleup-media-reveal {
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(0.985);
    filter: blur(10px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform, filter;
}

.mapleup-media-reveal.is-loaded {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
}

.page-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    pointer-events: none;
    opacity: 0;
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.08), transparent 42%),
        rgba(8, 8, 10, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: opacity 0.36s ease;
}

html[data-theme="light"] .page-transition-overlay {
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.84), transparent 38%),
        rgba(241, 245, 249, 0.7);
}

.page-transition-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.page-transition-panel {
    width: min(100%, 360px);
    padding: 1.2rem 1.2rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(14, 14, 18, 0.72);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transform: translate3d(0, 20px, 0) scale(0.97);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="light"] .page-transition-panel {
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

.page-transition-overlay.active .page-transition-panel {
    transform: translate3d(0, 0, 0) scale(1);
}

.page-transition-label {
    font-size: 0.74rem;
    color: var(--text-secondary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-transition-progress {
    position: relative;
    width: 100%;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .page-transition-progress {
    background: rgba(148, 163, 184, 0.22);
}

.page-transition-progress-bar {
    position: absolute;
    inset: 0 auto 0 -34%;
    width: 34%;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent 0%, var(--text) 50%, transparent 100%);
    animation: mapleup-page-progress 1.1s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
*::-webkit-scrollbar {
    width: var(--scrollbar-size);
    height: var(--scrollbar-size);
}
*::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 999px;
}
*::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
    background-clip: padding-box;
}
*::-webkit-scrollbar-corner {
    background: var(--scrollbar-track);
}

/* 全局微光背景 */
body::before {
    content: '';
    position: fixed;
    top: -40%;
    left: -25%;
    width: 70%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.012) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
body::after {
    content: '';
    position: fixed;
    bottom: -30%;
    right: -20%;
    width: 55%;
    height: 65%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.008) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 120;
    background: transparent;
    border-bottom: none;
    padding: 0 1.5rem;
}
.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    bottom: -60px;
    z-index: -1;
    background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 40%, var(--bg-transparent) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
    pointer-events: none;
    transition: background 0.4s ease;
}
.navbar.scrolled::before {
    background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 50%, var(--bg-transparent) 100%);
}
.navbar-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    min-height: 52px;
}
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}
.nav-brand strong {
    font-weight: 700;
}
.nav-brand:hover {
    color: var(--interactive-accent);
}
.nav-brand:hover .nav-icon {
    filter: var(--nav-icon-filter);
}
.nav-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
}
.nav-mobile-drawer {
    display: none;
}
.nav-links-list {
    display: flex;
    align-items: center;
    gap: 18px;
}
.nav-toolbar {
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 120;
}
.nav-mobile-drawer-header,
.nav-mobile-overlay,
.nav-menu-toggle {
    display: none;
}
.nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-left: 0;
    filter: var(--nav-icon-filter);
}
.nav-link {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
    background: transparent;
    border: none;
    padding: 0;
    line-height: 1;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.nav-link-label {
    position: relative;
    display: inline-block;
    line-height: 1;
}
.nav-link-label::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text);
    transition: width 0.25s ease;
}
.nav-link:hover {
    color: var(--text);
}
.nav-link:hover .nav-link-label::after {
    width: 100%;
}
.nav-donate-icon {
    width: 14px;
    height: 14px;
    vertical-align: middle;
}
.nav-theme-toggle {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease;
    background: transparent;
    border: none;
    padding: 0;
    line-height: 1;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
}
.nav-theme-toggle:hover {
    color: var(--text);
}
.nav-theme-drawer-toggle {
    gap: 8px;
    width: auto;
    min-width: 0;
}
.nav-theme-toggle-label {
    display: none;
}

/* Navbar — User Menu */
.nav-user-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.nav-user-toggle .theme-toggle-icon {
    font-size: 1rem !important;
}
.nav-user-menu-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    right: -10px;
    width: min(300px, calc(100vw - 32px));
    z-index: 260;
}
.nav-user-menu-dropdown[hidden] {
    display: none !important;
}
.nav-user-menu-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(140, 149, 159, 0.2);
}
.nav-user-menu-panel::before {
    display: none;
}
.nav-user-menu-link {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    color: var(--text);
    text-decoration: none;
    background: var(--bg-elevated);
    transition: background var(--transition-fast), color var(--transition-fast);
}
.nav-user-menu-link + .nav-user-menu-link {
    border-top: 1px solid var(--border);
}
.nav-user-menu-link:hover {
    background: var(--surface-hover);
    color: var(--text);
}
.nav-user-menu-link-primary {
    min-height: 104px;
}
.nav-user-menu-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: block;
    flex-shrink: 0;
    background: var(--surface);
}
.nav-user-menu-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.nav-user-menu-meta strong {
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.25;
    font-weight: 700;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav-user-menu-meta span {
    color: var(--text-secondary);
    font-size: 0.76rem;
    line-height: 1.4;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav-user-menu-text {
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 600;
}
.nav-user-menu-arrow {
    margin-left: auto;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--text-tertiary);
    border-right: 2px solid var(--text-tertiary);
    transform: rotate(45deg);
    flex-shrink: 0;
    transition: border-color var(--transition-fast);
}
.nav-user-menu-link:hover .nav-user-menu-arrow {
    border-color: var(--text);
}
.theme-toggle-icon {
    font-size: 1.08rem !important;
    line-height: 1;
    display: block;
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 0.8rem;
    }

    .navbar-inner {
        padding: 0.95rem 0;
        min-height: 58px;
    }

    .nav-brand {
        font-size: 1.05rem;
    }

    .nav-brand .nav-icon {
        width: 18px;
        height: 18px;
        margin-left: -6px;
    }

    .navbar-actions {
        gap: 14px;
    }

    .nav-toolbar {
        gap: 14px;
    }

    .nav-mobile-overlay {
        position: fixed;
        inset: 0;
        z-index: 118;
        display: block;
        background: rgba(0, 0, 0, 0.3);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.24s ease, visibility 0.24s ease;
    }

    .nav-mobile-overlay[hidden] {
        display: block !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    body.nav-drawer-open .nav-mobile-overlay {
        opacity: 1;
        visibility: visible;
    }

    .nav-menu-toggle {
        width: 26px;
        height: 26px;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--text);
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .nav-menu-toggle-line {
        position: absolute;
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
        transition: transform 0.22s ease, opacity 0.18s ease, top 0.22s ease;
    }

    .nav-menu-toggle-line:nth-child(1) {
        top: 7px;
    }

    .nav-menu-toggle-line:nth-child(2) {
        top: 12px;
    }

    .nav-menu-toggle-line:nth-child(3) {
        top: 17px;
    }

    .nav-menu-toggle.is-active .nav-menu-toggle-line:nth-child(1) {
        top: 12px;
        transform: rotate(45deg);
    }

    .nav-menu-toggle.is-active .nav-menu-toggle-line:nth-child(2) {
        opacity: 0;
    }

    .nav-menu-toggle.is-active .nav-menu-toggle-line:nth-child(3) {
        top: 12px;
        transform: rotate(-45deg);
    }

    .nav-links {
        display: none;
    }

    .nav-mobile-drawer {
        position: fixed;
        inset: 0;
        z-index: 119;
        display: flex;
        flex-direction: column;
        max-height: none;
        border: 0;
        border-radius: 0;
        background: var(--bg-elevated);
        box-shadow: none;
        transform: translateY(100%);
        pointer-events: none;
        transition: transform var(--transition);
        overflow: hidden;
    }

    .nav-mobile-drawer.is-open {
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-mobile-drawer-body {
        display: flex;
        flex-direction: column;
        gap: 0;
        min-height: 0;
        padding: calc(var(--mobile-nav-height, 64px) + 1rem) 1rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
        overflow: auto;
    }

    .nav-links-list {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
    }

    .nav-links-list .nav-link,
    .nav-links-list .nav-theme-drawer-toggle {
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
        padding: 0.9rem 0;
        color: var(--text);
        font-size: 1.04rem;
        font-weight: 700;
        letter-spacing: -0.02em;
    }

    .nav-links-list .nav-link-label,
    .nav-theme-toggle-label {
        display: inline-block;
        line-height: 1.25;
    }

    .nav-links-list .nav-link:hover .nav-link-label::after {
        width: 0;
    }

    .nav-links-list .nav-donate-icon,
    .nav-links-list .theme-toggle-icon {
        width: 18px;
        min-width: 18px;
        text-align: center;
    }

    .nav-user-menu-dropdown {
        top: calc(100% + 12px);
        right: -6px;
        width: min(272px, calc(100vw - 16px));
    }

    .nav-user-menu-panel {
        border-radius: 14px;
    }

    .nav-user-menu-panel::before {
        top: -5px;
        right: 14px;
        width: 10px;
        height: 10px;
    }

    .nav-user-menu-link {
        gap: 0.65rem;
        padding: 0.85rem 0.95rem;
    }

    .nav-user-menu-link-primary {
        min-height: 92px;
    }

    .nav-user-menu-avatar {
        width: 50px;
        height: 50px;
    }

    .nav-user-menu-meta {
        gap: 0.22rem;
    }

    .nav-user-menu-meta strong {
        font-size: 0.86rem;
    }

    .nav-user-menu-meta span,
    .nav-user-menu-text {
        font-size: 0.72rem;
    }
}

@media (max-width: 680px) {
    .nav-mobile-drawer-body {
        padding: calc(var(--mobile-nav-height, 64px) + 0.9rem) 0.9rem calc(1rem + env(safe-area-inset-bottom, 0px));
    }

    .nav-links-list .nav-link,
    .nav-links-list .nav-theme-drawer-toggle {
        padding: 0.78rem 0;
        font-size: 0.98rem;
    }
}

.main-container {
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
    padding: 2.8rem 1.5rem 3rem;
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-height: 0;
}
.page-header {
    margin-bottom: 2.8rem;
}
.page-eyebrow {
    display: inline-block;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 0.55rem;
}
.page-header h1 {
    font-size: 3.6rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 0.35rem;
    color: var(--text);
}
.page-header p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.65;
}
.typing-effect {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid transparent;
    animation: grow 4s steps(44) 1s normal both, blink-caret 0.8s step-end infinite;
    max-width: fit-content;
    line-height: 1.1;
    padding-right: 2px;
}
@keyframes grow {
    from { width: 0; }
    to { width: 100%; }
}
@keyframes blink-caret {
    from, to { border-right-color: transparent; }
    50% { border-right-color: var(--text-secondary); }
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 0.7rem;
}
.homepage-project-groups {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}
.homepage-project-group {
    display: flex;
    flex-direction: column;
    gap: 0.72rem;
    padding-bottom: 1.05rem;
    border-bottom: 1px solid var(--border);
}
.homepage-project-group:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}
.homepage-project-group-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
.homepage-project-group-title {
    font-size: 0.9rem;
    font-weight: 620;
    letter-spacing: -0.02em;
    color: var(--text);
}
.homepage-project-group-description {
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.15rem 1.2rem 1.05rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    box-shadow: var(--shadow-card);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    outline: none;
    overflow: hidden;
}
.mapleup-title-with-visibility {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    line-height: 1.5;
    vertical-align: middle;
}
.mapleup-visibility-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 16px;
    height: 20px;
    color: var(--text-tertiary);
    line-height: 1;
    vertical-align: middle;
}
.mapleup-visibility-icon .iconfont {
    font-size: 0.9em !important;
    line-height: 1;
}
.mapleup-post-state-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    min-width: 16px;
    height: 20px;
    color: var(--text-tertiary);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    line-height: 1;
    vertical-align: middle;
}
.mapleup-post-marker > .mapleup-post-state-badge {
    margin-right: auto;
    margin-left: auto;
}
.mapleup-post-state-badge .iconfont {
    display: block;
    font-size: 0.9rem !important;
    line-height: 1;
}
.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.025) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}
.project-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-1px);
    background: var(--surface-hover);
}
.project-card:hover::before {
    opacity: 1;
}
.project-card:active {
    transform: translateY(0);
    box-shadow: var(--shadow-card);
    transition: 0.06s ease;
    background: var(--surface-active);
}
.card-top {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    position: relative;
    z-index: 1;
}
.card-icon {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    background: var(--card-icon-bg);
    transition: var(--transition-fast);
    line-height: 1;
    border: 1px solid var(--card-icon-border);
    overflow: hidden;
    padding: 4px;
}
.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    border-radius: 2px;
    display: block;
}
.project-card:hover .card-icon {
    background: var(--card-icon-bg-hover);
    border-color: var(--card-icon-border-hover);
}
.card-info {
    flex: 1;
    min-width: 0;
}
.card-info h3 {
    font-size: 0.88rem;
    font-weight: 570;
    letter-spacing: -0.02em;
    margin-bottom: 2px;
    line-height: 1.3;
    color: var(--text);
}
.card-info p {
    font-size: 0.74rem;
    color: var(--text-secondary);
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-footer {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 0.1rem;
    font-size: 0.64rem;
    color: var(--text-tertiary);
    position: relative;
    z-index: 1;
}
.card-views {
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 0.62rem;
    font-weight: 480;
    letter-spacing: 0.01em;
    background: var(--pill-bg);
    color: var(--text-tertiary);
    border: 1px solid var(--pill-border);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.card-views .iconfont {
    font-size: 0.7rem;
}
.card-tag {
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 0.62rem;
    font-weight: 480;
    letter-spacing: 0.01em;
    background: var(--pill-bg);
    color: var(--text-tertiary);
    border: 1px solid var(--pill-border);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.card-tag .iconfont {
    font-size: 0.7rem;
}
.card-arrow {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 3px;
    opacity: 0;
    transform: translateX(-3px);
    transition: var(--transition);
    color: var(--text-secondary);
    font-size: 0.66rem;
    white-space: nowrap;
    font-weight: 460;
}
.project-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}
.card-arrow svg {
    width: 11px;
    height: 11px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.modal-overlay.minimized {
    visibility: visible;
    opacity: 1;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
    transition: none;
}
.modal-overlay.minimized .modal-dialog {
    position: fixed;
    top: -200vh;
    left: -200vw;
    pointer-events: none;
    transition: none;
}
.modal-dialog {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    width: 100%;
    max-width: 1050px;
    height: 90vh;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-modal);
    transform: translateY(16px) scale(0.968);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.active .modal-dialog {
    transform: translateY(0) scale(1);
}

/* Toolbar */
.modal-toolbar {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0.45rem 0.7rem;
    background: var(--toolbar-bg);
    border-bottom: 1px solid var(--toolbar-border);
    border-radius: 6px 6px 0 0;
    flex-shrink: 0;
}
.toolbar-dots {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}
.toolbar-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 0.7;
}
.dot-red { background: #ee5f5f; }
.dot-yellow { background: #f0b94b; }
.dot-green { background: #55c460; }

.address-bar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--address-bg);
    border: 1px solid var(--address-border);
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 0.68rem;
    color: var(--text-tertiary);
    min-width: 0;
    transition: var(--transition-fast);
}
.address-refresh-btn {
    margin-left: auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-icon);
    flex-shrink: 0;
    font-size: 0.55rem;
    transition: 0.16s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    line-height: 1;
}
.address-refresh-btn:hover {
    color: var(--text);
    text-shadow: none;
}
.address-bar .lock-icon {
    flex-shrink: 0;
    font-size: 0.55rem;
    opacity: 0.35;
    transition: opacity 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
}
.address-bar .lock-icon:hover {
    color: var(--text);
    opacity: 0.7;
    text-shadow: none;
}
.address-bar span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--muted-text-strong);
    font-weight: 400;
    font-size: 0.68rem;
}
.modal-actions {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}
.modal-action-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-icon);
    transition: var(--transition-fast);
    font-size: 0.55rem;
}
.modal-action-btn:hover {
    color: var(--text);
    text-shadow: none;
}
.modal-action-btn.close-btn:hover {
    color: var(--close-accent);
    text-shadow: none;
}
.modal-action-btn .iconfont,
.address-refresh-btn .iconfont,
.minimized-btn .iconfont,
.address-bar .lock-icon .iconfont {
    font-size: 0.72rem !important;
}

.minimized-bar {
    position: fixed;
    right: 16px;
    bottom: 72px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}
.minimized-bar.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.minimized-bar-item {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 8px 6px 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
    animation: minItemIn 0.25s ease;
}
@keyframes minItemIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.minimized-bar-url {
    font-size: 0.72rem;
    color: var(--text-secondary);
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
}
.minimized-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-icon);
    flex-shrink: 0;
    font-size: 0.55rem;
    transition: var(--transition-fast);
}
.minimized-btn:hover {
    color: var(--text);
    text-shadow: none;
}
.minimized-btn.restored-btn:hover {
    color: var(--text);
    text-shadow: none;
}
.minimized-btn.close-btn:hover {
    color: var(--close-accent);
    text-shadow: none;
}

[data-tip] {
    position: relative;
}
[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background: var(--tooltip-bg);
    color: var(--tooltip-text);
    font-size: 0.7rem;
    font-weight: 400;
    white-space: nowrap;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease;
    z-index: 9999;
    border: 1px solid var(--border-hover);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
[data-tip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    width: 8px;
    height: 8px;
    transform: translateX(-50%) rotate(45deg);
    background: var(--tooltip-bg);
    border-right: 1px solid var(--border-hover);
    border-bottom: 1px solid var(--border-hover);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease;
    z-index: 9999;
}
[data-tip]:hover::after,
[data-tip]:hover::before {
    opacity: 1;
}
[data-tip].tip-below::after {
    top: calc(100% + 8px);
    bottom: auto;
}
[data-tip].tip-below::before {
    top: calc(100% + 4px);
    bottom: auto;
    background: var(--tooltip-bg);
    border-right: none;
    border-bottom: none;
    border-left: 1px solid var(--border-hover);
    border-top: 1px solid var(--border-hover);
}
[data-tip].use-floating-tip::after,
[data-tip].use-floating-tip::before {
    display: none;
}
.floating-tip {
    position: fixed;
    left: 0;
    top: 0;
    padding: 5px 10px;
    background: var(--tooltip-bg);
    color: var(--tooltip-text);
    font-size: 0.7rem;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
    border-radius: 4px;
    border: 1px solid var(--border-hover);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(-9999px, -9999px, 0);
    transition: opacity 0.18s ease, visibility 0.18s ease;
    z-index: 10020;
}
.floating-tip::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 8px;
    height: 8px;
    transform: translateX(-50%) rotate(45deg);
    background: var(--tooltip-bg);
}
.floating-tip.visible {
    opacity: 1;
    visibility: visible;
}
.floating-tip[data-placement="top"]::before {
    top: calc(100% - 4px);
    border-right: 1px solid var(--border-hover);
    border-bottom: 1px solid var(--border-hover);
}
.floating-tip[data-placement="bottom"]::before {
    bottom: calc(100% - 4px);
    border-left: 1px solid var(--border-hover);
    border-top: 1px solid var(--border-hover);
}
body:not(.home) .minimized-bar {
    bottom: 16px;
}

/* Iframe area */
.modal-iframe-wrap {
    flex: 1;
    min-height: 0;
    position: relative;
    background: var(--modal-stage-bg);
    border-radius: 0 0 6px 6px;
    overflow: hidden;
}
.modal-iframe-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: var(--modal-stage-bg);
}

/* Loader */
.iframe-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--modal-stage-bg);
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 2;
}
.iframe-loader.hidden {
    opacity: 0;
    pointer-events: none;
}
.loader-ring {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2.5px solid var(--loader-track);
    border-top-color: var(--loader-accent);
    animation: spin 0.6s linear infinite;
}

/* Error state */
.iframe-error {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--modal-stage-bg);
    color: var(--error-text);
    font-size: 0.76rem;
    gap: 5px;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    padding: 1rem;
}
.iframe-error.show {
    opacity: 1;
    pointer-events: auto;
}
.iframe-error .err-icon {
    font-size: 1.4rem;
    margin-bottom: 2px;
    opacity: 0.7;
}
.iframe-error .err-link {
    pointer-events: auto;
    cursor: pointer;
    color: var(--error-link);
    text-decoration: underline;
    font-weight: 500;
    margin-top: 5px;
    font-size: 0.72rem;
    transition: color 0.2s;
}
.iframe-error .err-link:hover {
    color: var(--text);
}
.iframe-error-hint {
    font-size: 0.66rem;
    color: var(--text-tertiary);
}
.iframe-pool {
    position: absolute;
    inset: 0;
}

.modal-stage-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 0;
    opacity: 0;
    transform: scale(1.015);
    filter: blur(12px);
    transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.58s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.58s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-stage-frame.is-ready {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

.content-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.content-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.content-modal-dialog {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    width: 100%;
    max-width: 380px;
    box-shadow: var(--shadow-modal);
    transform: translateY(12px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
.content-modal-overlay.active .content-modal-dialog {
    transform: translateY(0) scale(1);
}
.content-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}
.content-modal-header h3 {
    font-size: 0.9rem;
    font-weight: 560;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0;
    line-height: 1.2;
}
.content-modal-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-icon);
    transition: var(--transition-fast);
    font-size: 1rem;
    flex-shrink: 0;
}
.content-modal-close .iconfont {
    font-size: 0.78rem !important;
    line-height: 1;
}
.content-modal-close:hover {
    background: var(--content-close-hover-bg);
    color: var(--close-accent);
}
.content-modal-body {
    padding: 1.2rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-height: 60vh;
    overflow-y: auto;
}
.content-modal-body p {
    margin-bottom: 0.8rem;
}
.content-modal-body a {
    color: var(--accent-dim);
    text-decoration: underline;
    transition: color 0.2s;
}
.content-modal-body a:hover {
    color: var(--text);
}
.content-modal-body .tag-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 2px;
    vertical-align: middle;
}
.content-modal-body .tag-item {
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 0.68rem;
    background: var(--pill-bg);
    color: var(--text-tertiary);
    border: 1px solid var(--pill-border);
    white-space: nowrap;
}
.content-modal-body .contact-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.6rem;
}
.contact-line-icon {
    font-size: 1rem;
    opacity: 0.7;
}
.mapleup-login-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.mapleup-login-intro {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-elevated);
}
.mapleup-login-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.14rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    background: rgba(37, 99, 235, 0.08);
    color: var(--interactive-accent-strong);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.mapleup-login-intro h4 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
    color: var(--text);
}
.mapleup-login-intro p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.7;
}
.mapleup-login-form-wrap .login-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.mapleup-login-form-wrap .login-form > p {
    margin: 0;
}
.mapleup-login-form-wrap label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text);
    font-size: 0.76rem;
    font-weight: 600;
}
.mapleup-login-form-wrap .login-remember label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
}
.mapleup-login-form-wrap input[type="text"],
.mapleup-login-form-wrap input[type="password"],
.mapleup-login-form-wrap input[type="email"] {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-elevated);
    color: var(--text);
    font: inherit;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}
.mapleup-login-form-wrap input[type="text"]:focus,
.mapleup-login-form-wrap input[type="password"]:focus,
.mapleup-login-form-wrap input[type="email"]:focus {
    outline: none;
    border-color: var(--interactive-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.mapleup-login-form-wrap input[type="checkbox"] {
    margin: 0;
}
.mapleup-login-form-wrap .login-submit {
    padding-top: 0.2rem;
}
.mapleup-login-form-wrap input[type="submit"] {
    width: 100%;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: var(--primary-button-bg);
    color: var(--primary-button-text);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
}
.mapleup-login-form-wrap input[type="submit"]:hover {
    background: var(--primary-button-bg-hover);
}
.mapleup-login-form-wrap input[type="submit"]:active {
    transform: translateY(1px);
}
.mapleup-login-links,
.mapleup-login-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}
.mapleup-login-links a,
.mapleup-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 0.9rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 600;
    transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}
.mapleup-login-links a:hover,
.mapleup-login-btn:hover {
    border-color: var(--border-hover);
    background: var(--surface-hover);
    color: var(--text);
}
.mapleup-login-btn-primary {
    border-color: var(--primary-button-bg);
    background: var(--primary-button-bg);
    color: var(--primary-button-text);
}
.mapleup-login-btn-primary:hover {
    border-color: var(--primary-button-bg-hover);
    background: var(--primary-button-bg-hover);
    color: var(--primary-button-text);
}
.mapleup-login-user-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
}
.mapleup-login-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: block;
    flex-shrink: 0;
}
.mapleup-login-user-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0.18rem;
}
.mapleup-login-user-meta strong {
    color: var(--text);
    font-size: 0.88rem;
    line-height: 1.3;
}
.mapleup-login-user-meta span {
    color: var(--text-secondary);
    font-size: 0.74rem;
    line-height: 1.4;
}

body {
    margin: 0;
    padding-bottom: 0;
}
body.home,
body.page-template-template-blog,
body.page-template-template-about {
    /* Fixed footer pages allow native body scrolling */
}
.main-container {
    flex: 1 0 auto;
    padding-bottom: 2rem;
    width: 100%;
}
body:not(.home):not(.page-template-template-blog):not(.page-template-template-about) .content-area {
    min-height: 0;
}
.site-footer {
    position: static;
    margin-top: auto;
}

.site-footer {
    left: 0;
    right: 0;
    z-index: 40;
    width: 100%;
    border-top: 1px solid var(--border);
    background: transparent;
    padding: 1.2rem 1.5rem;
}
.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: var(--text-tertiary);
    letter-spacing: 0.01em;
}
.footer-copyright {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.footer-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.footer-menu .footer-menu-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.footer-menu a,
.footer-beian a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.footer-menu a:hover,
.footer-beian a:hover {
    color: var(--text-secondary);
}
.footer-copyright span {
    white-space: nowrap;
}
.footer-copyright a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}
.footer-copyright a:hover {
    color: var(--text-secondary);
}
.footer-divider {
    width: 1px;
    height: 10px;
    background: var(--border);
    margin: 0 0.2rem;
}
.footer-beian {
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.footer-beian-icon {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    display: block;
}
.footer-beian-icon-police {
    width: 1.05rem;
    height: 1.05rem;
}

.deco-corner {
    position: fixed;
    bottom: 0;
    z-index: 0;
    width: 600px;
    height: auto;
    opacity: 0.45;
    pointer-events: none;
    user-select: none;
    right: -80px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes mapleup-page-progress {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(420%, 0, 0);
    }
}

.content-area {
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
    padding: 2.8rem 1.5rem 3rem;
    position: relative;
    z-index: 1;
    flex: 1;
}
body.single .content-area {
    z-index: 50;
}
.content-card,
.history-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: none;
}
.content-card {
    max-width: 860px;
    margin: 0 auto;
    padding: 1.5rem;
}
.archive-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}
.archive-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.archive-card {
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
}
.archive-card-title {
    margin-bottom: 10px;
    font-size: 1.2rem;
}
.archive-card-link {
    color: var(--text);
    text-decoration: none;
}
.archive-card-link:hover {
    color: var(--text-secondary);
    text-decoration: none;
}
.archive-card-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.archive-pagination {
    margin-top: 30px;
    margin-bottom: 0;
}
.single-post .content-card.single-post-card {
    max-width: 1120px;
    padding: 0;
    border-radius: 6px;
    overflow: hidden;
}
.single-post-actions {
    position: fixed;
    left: 60px;
    top: 50%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 45;
    transform: translateY(-50%);
}
.single-post-action-btn {
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: none;
    transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
    cursor: pointer;
}
.single-post-comment-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: var(--notification-badge-bg);
    color: var(--notification-badge-text);
    font-size: 10px;
    font-weight: 600;
    line-height: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 18px;
    /* padding: 0 4px; */
    text-align: center;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.single-post-action-btn i {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1;
}
.single-post-action-btn:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
    color: var(--text);
}
.single-post-action-btn:focus-visible,
.single-post-comments-close:focus-visible,
.single-post-comment-submit:focus-visible,
.single-post-comment-field input:focus,
.single-post-comment-field textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.32);
}
.single-post-header {
    padding: 12px 16px;
}
.single-post-main {
    min-width: 0;
}
.single-post-main .gh-commit-msg {
    font-weight: 700;
    color: var(--text);
}
.single-post-author-name {
    color: var(--text);
    font-weight: 600;
    flex-shrink: 0;
}
.single-post-separator {
    width: 1px;
    height: 14px;
    background: var(--border);
    flex-shrink: 0;
}
.single-post-meta {
    gap: 16px;
}
.single-post .entry-content {
    padding: 24px 22px 28px;
    font-size: 0.88rem;
    line-height: 1.8;
}
.single-post-comments-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.22);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
    z-index: 10030;
}
.single-post-comments-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(440px, 100vw);
    height: 100dvh;
    background: var(--bg);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 10031;
    display: flex;
    flex-direction: column;
    font-size: 0.92rem;
}
.single-post-comments-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.single-post-comments-drawer.active {
    transform: translateX(0);
}
.single-post-comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}
.single-post-comments-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}
.single-post-comments-close {
    width: 20px;
    height: 20px;
    border: 0;
    background: transparent;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.single-post-comments-close i {
    font-size: 0.9rem;
}
.single-post-comments-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px 24px;
}
.single-post-comment-form-wrap,
.single-post-comment-card,
.single-post-comments-status,
.single-post-comments-empty {
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
}
.single-post-comment-form-wrap {
    margin-bottom: 12px;
    padding: 16px;
}
.single-post-reply-target {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text-secondary);
    font-size: 0.76rem;
    line-height: 1.4;
}
.single-post-reply-target[hidden] {
    display: none !important;
}
.single-post-reply-target-label {
    flex-shrink: 0;
}
.single-post-reply-target-name {
    display: inline-flex;
    align-items: center;
    gap: 0;
    flex: 1;
    min-width: 0;
    color: var(--text);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.single-post-reply-target-cancel {
    border: 0;
    background: transparent;
    color: var(--accent-dim);
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
}
.single-post-reply-target-cancel:hover {
    color: var(--text);
}
.single-post-comment-form-title {
    display: none;
}
.single-post-comment-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.single-post-comment-profile-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    position: relative;
    overflow: visible;
}
.single-post-comment-profile-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: block;
    flex-shrink: 0;
    image-rendering: pixelated;
}
.single-post-comment-emoji {
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: auto;
}
.single-post-comment-emoji .iconfont {
    font-size: 1rem;
    line-height: 1;
}
.single-post-comment-profile-meta {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.2;
    min-height: 30px;
}
.single-post-comment-profile-greeting {
    min-width: 0;
    display: inline-flex;
    align-items: center;
}
.single-post-comment-profile-name {
    color: var(--text);
    font-weight: 600;
}
.single-post-comment-profile-extra {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
}
.single-post-comment-profile-extra .profile-extra-info {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.72rem;
    color: var(--text-tertiary);
    background: var(--bg-soft);
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid var(--border-soft);
}
.single-post-comment-profile-extra i {
    font-size: 0.8rem;
}
.single-post-comment-profile-extra i.icon-QQ {
    color: #12b7f5;
}
.single-post-comment-profile-extra i.icon-icon-bilibili {
    color: #fb7299;
}
.single-post-comment-profile-toggle {
    border: 0;
    background: transparent;
    color: var(--accent-dim);
    font: inherit;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}
.single-post-comment-profile-toggle:hover {
    color: var(--text);
}
.single-post-comment-profile-field {
    display: none;
}
.single-post-comment-form-wrap.profile-expanded .single-post-comment-profile-field {
    display: block;
}
.single-post-comment-field,
.single-post-comment-cookies,
.single-post-comment-submit,
.single-post-comment-submit-wrap {
    margin: 0;
}
.single-post-comment-field-full,
.single-post-comment-cookies,
.single-post-comment-submit-wrap {
    grid-column: 1 / -1;
}
.single-post-comment-submit-wrap {
    order: 20;
}
.single-post-comment-cookies {
    order: 21;
}
.single-post-comment-field input,
.single-post-comment-field textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg);
    color: var(--text);
    font: inherit;
    padding: 10px 12px;
}
.single-post-comment-editor-wrap {
    position: relative;
    cursor: text;
}
.single-post-comment-editor {
    min-height: 100px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg);
    color: var(--text);
    font: inherit;
    line-height: 1.55;
    padding: 10px 12px;
    white-space: pre-wrap;
    word-break: break-word;
    outline: none;
    cursor: text;
    user-select: text;
    -webkit-user-select: text;
    pointer-events: auto;
}
.single-post-comment-editor:empty::before {
    content: attr(data-placeholder);
    color: var(--text-tertiary);
}
.single-post-comment-textarea-native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.single-post-comment-editor-emoji,
.single-post-comment-inline-emoji {
    display: inline-block;
    width: 1.4em;
    height: 1.4em;
    margin: 0 1px;
    vertical-align: text-bottom;
}
.single-post-comment-emoji-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 12;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(34px, 1fr));
    gap: 8px;
    max-height: 196px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    box-shadow: var(--shadow-modal);
}
.single-post-comment-emoji-panel[hidden] {
    display: none !important;
}
.single-post-comment-emoji-item {
    width: 34px;
    height: 34px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}
.single-post-comment-emoji-item:hover {
    border-color: var(--border);
    background: var(--surface-hover);
}
.single-post-comment-emoji-item img {
    width: 24px;
    height: 24px;
    display: block;
}
.single-post-comment-field input {
    height: 30px;
    padding: 0 12px;
}
.single-post-comment-field textarea {
    height: 100px;
    min-height: 100px;
    resize: vertical;
}
.single-post-comment-field input::placeholder,
.single-post-comment-field textarea::placeholder {
    color: var(--text-tertiary);
}
.single-post-comment-cookies {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.45;
}
.single-post-comment-cookies[hidden] {
    display: none !important;
}
.single-post-comment-form-wrap .comment-form-cookies-consent {
    display: none !important;
}
.single-post-comment-cookies input {
    margin: 2px 0 0;
    flex-shrink: 0;
}
.single-post-comment-cookies label {
    display: block;
    margin: 0;
}
.single-post-comment-submit {
    width: 100%;
    max-width: none;
    height: 30px;
    border: 0;
    border-radius: 4px;
    padding: 0 16px;
    background: var(--primary-button-bg);
    color: var(--primary-button-text);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}
.single-post-comment-submit:hover {
    background: var(--primary-button-bg-hover);
}
.mapleup-toast-stack,
.single-post-comment-toast-stack {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10060;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    width: min(92vw, 420px);
}
.mapleup-toast,
.single-post-comment-toast {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid transparent;
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    transform: translateY(-14px) scale(0.96);
    transform-origin: top center;
    opacity: 0;
    filter: blur(3px);
    will-change: opacity, transform, filter;
    transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), filter 0.22s ease;
}
.mapleup-toast.is-visible,
.single-post-comment-toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}
.mapleup-toast.is-refreshing,
.single-post-comment-toast.is-refreshing {
    animation: mapleup-toast-refresh 0.24s ease;
}
.mapleup-toast-info,
.single-post-comment-toast-info {
    background: var(--toast-info-bg);
    border-color: var(--toast-info-border);
    color: var(--toast-info-text);
}
.mapleup-toast-success,
.single-post-comment-toast-success {
    background: var(--toast-success-bg);
    border-color: var(--toast-success-border);
    color: var(--toast-success-text);
}
.mapleup-toast-warning,
.single-post-comment-toast-warning {
    background: var(--toast-warning-bg);
    border-color: var(--toast-warning-border);
    color: var(--toast-warning-text);
}
.mapleup-toast-error,
.single-post-comment-toast-error {
    background: var(--toast-error-bg);
    border-color: var(--toast-error-border);
    color: var(--toast-error-text);
}
.mapleup-toast-compact,
.single-post-comment-toast.mapleup-toast-compact {
    width: auto;
    min-width: 150px;
    max-width: min(72vw, 240px);
    align-self: center;
    padding: 18px 28px;
    border-radius: 16px;
    text-align: center;
}
@keyframes mapleup-toast-refresh {
    0% {
        transform: translateY(0) scale(1);
    }
    40% {
        transform: translateY(2px) scale(0.992);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}
.single-post-comments-status,
.single-post-comments-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 96px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding: 16px;
}
.single-post-comments-status i,
.single-post-comments-empty i {
    font-size: 1.2rem;
}
.single-post-comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.single-post-comment-card {
    padding: 12px 14px;
}
.single-post-comment-entry {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.single-post-comment-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0;
    position: relative;
    padding-right: 96px;
}
.single-post-comment-card-head-main {
    margin-bottom: 0;
}
.single-post-comment-card-head-reply {
    margin-bottom: 0;
}
.single-post-comment-side {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 8px;
    min-width: 96px;
}
.single-post-comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}
.single-post-comment-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.single-post-comment-summary {
    display: flex;
    align-items: center;
    min-width: 0;
    line-height: 1.4;
}
.single-post-comment-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    color: var(--text);
}
.single-post-comment-author .gh-badge {
    padding: 0 5px;
    font-size: 0.62rem;
    /* line-height: 1.2; */
    color: var(--text-secondary);
    background: var(--surface);
    border-color: var(--border);
    vertical-align: middle;
}
.single-post-comment-author .mapleup-comment-admin-badge-icon-only {
    padding: 2px;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: none;
}
.mapleup-comment-admin-badge-icon {
    width: 15px;
    height: 15px;
    display: block;
    image-rendering: auto;
}
.single-post-comment-time {
    margin-top: 0;
    color: var(--text-tertiary);
}
.single-post-comment-reply-action {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 0;
    background: transparent;
    color: var(--accent-dim);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease, color 0.18s ease;
}
.single-post-comment-entry:hover .single-post-comment-reply-action,
.single-post-comment-entry:focus-within .single-post-comment-reply-action {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.single-post-comment-reply-action:hover {
    color: var(--text);
}
.single-post-comment-desc-inline {
    font-size: 0.75rem;
    line-height: 1.4;
}
.single-post-comment-desc {
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
}
.single-post-comment-reply-to {
    display: inline-flex;
    align-items: center;
    gap: 0;
    color: var(--text);
    font-weight: 600;
    margin-right: 4px;
}
.single-post-reply-target-name .iconfont,
.single-post-comment-reply-action .iconfont,
.single-post-comment-reply-to .iconfont {
    font-size: 1em;
    line-height: 1;
}
.single-post-comment-replies {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.single-post-comment-reply {
    padding-left: 18px;
}
.single-post-comment-reply .single-post-comment-avatar {
    width: 28px;
    height: 28px;
}
.single-post-comment-reply .single-post-comment-card-head {
    margin-bottom: 0;
}
.single-post-comment-reply .single-post-comment-side {
    min-width: 88px;
}
.single-post-comment-content {
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.55;
    padding-left: 44px;
    padding-right: 96px;
    margin-top: -8px;
    white-space: normal;
    word-break: break-word;
}
.single-post-comment-content > :last-child {
    margin-bottom: 0;
}
.single-post-comment-content p {
    margin: 0;
}
.single-post-comment-reply .single-post-comment-content {
    padding-left: 40px;
    padding-right: 88px;
    margin-top: -8px;
}
.mapleup-screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
body.single-comments-open {
    position: fixed;
    top: var(--single-comments-scroll-top, 0);
    left: 0;
    right: 0;
    width: 100%;
    padding-right: var(--single-comments-scrollbar-width, 0px);
    overflow: hidden;
}
body.single-comments-open .deco-corner {
    right: calc(-80px + var(--single-comments-scrollbar-width, 0px));
}
@media (max-width: 768px) {
    .single-post-actions {
        position: fixed;
        left: 50%;
        top: auto;
        bottom: calc(22px + env(safe-area-inset-bottom, 0px));
        flex-direction: row;
        justify-content: center;
        max-width: none;
        margin: 0;
        padding: 4px 10px;
        gap: 2px;
        transform: translateX(-50%);
        z-index: 10080;
        background: var(--navbar-bg);
        border: 1px solid var(--border);
        border-radius: 999px;
        box-shadow: var(--shadow-modal);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .single-post-action-btn {
        /* width: 46px;
        min-width: 46px; */
        height: 42px;
        padding: 0;
        border: 0;
        /* border-radius: 6px; */
        background: transparent;
        box-shadow: none;
    }

    .single-post-action-btn:hover {
        transform: none;
        background: transparent;
        border-color: transparent;
    }

    .single-post-action-btn i {
        font-size: 1.6rem;
    }

    .single-post-comment-badge {
        top: 3px;
        right: 3px;
    }

    .single-post-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .single-post-meta {
        gap: 16px;
        flex-wrap: wrap;
        white-space: normal;
    }

    .single-post-comments-drawer {
        width: 100vw;
        height: 100dvh;
        max-height: none;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        border-left: 0;
        border-top: 0;
        border-radius: 0;
        box-shadow: none;
        transform: translateY(100%);
    }

    .single-post-comments-drawer.active {
        transform: translateY(0);
    }

    .single-post-comment-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .single-post-comment-profile-bar,
    .single-post-comment-profile-meta {
        align-items: center;
    }

    .single-post-comment-profile-avatar {
        width: 30px;
        height: 30px;
    }

    .single-post-comment-emoji-panel {
        left: 0;
        right: 0;
        max-height: 180px;
    }

    .mapleup-toast-stack,
    .single-post-comment-toast-stack {
        top: 12px;
        width: min(94vw, 360px);
    }

    .mapleup-toast,
    .single-post-comment-toast {
        padding: 12px 14px;
        border-radius: 12px;
        font-size: 0.9rem;
    }

    .mapleup-toast-compact,
    .single-post-comment-toast.mapleup-toast-compact {
        min-width: 132px;
        max-width: min(74vw, 220px);
        padding: 16px 22px;
    }

    .single-post-comment-side {
        min-width: 74px;
        min-height: 40px;
    }

    .single-post-reply-target {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mapleup-reveal-target,
    .mapleup-media-reveal,
    .page-transition-overlay,
    .page-transition-panel,
    .modal-stage-frame,
    .iframe-loader,
    .content-modal-dialog,
    .modal-dialog,
    .image-lightbox-overlay {
        transition: none !important;
        animation: none !important;
    }
}
.content-title,
.history-container .page-title {
    font-size: 2rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 0.6rem;
}
.entry-content,
.history-container .page-subtitle {
    color: var(--text-secondary);
}
.entry-content {
    font-size: 0.92rem;
    line-height: 1.85;
}
.entry-content p,
.entry-content ul,
.entry-content ol {
    margin-bottom: 1rem;
}
.entry-content hr,
.gh-readme-content hr {
    border: 0;
    border-bottom: 1px solid var(--border);
    margin: 1rem 0;
}
.entry-content ul {
    padding-left: 1.5rem;
    list-style-type: circle;
}
.entry-content ol {
    padding-left: 1.5rem;
    list-style-type: decimal;
}
.entry-content ul li {
    list-style-type: circle;
}
.entry-content ol li {
    list-style-type: decimal;
}
.entry-content h1,
.gh-readme-content h1 {
    font-size: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.3em;
    margin-bottom: 16px;
    font-weight: 700;
    color: var(--text);
}
.entry-content h2,
.gh-readme-content h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.3em;
    margin-top: 24px;
    margin-bottom: 16px;
    font-weight: 700;
    color: var(--text);
}
.entry-content h3,
.gh-readme-content h3 {
    font-size: 1.25rem;
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--text);
}
.entry-content h4,
.gh-readme-content h4 {
    font-size: 1rem;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text);
}
.entry-content h5,
.gh-readme-content h5,
.entry-content h6,
.gh-readme-content h6 {
    font-size: 0.875rem;
    margin-top: 18px;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text);
}
.entry-content a,
.gh-readme-content a {
    position: relative;
    display: inline-block;
    color: #8ea6ff;
    text-decoration: none;
    transition: color 0.2s ease;
}
.entry-content a::after,
.gh-readme-content a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.25s ease;
}
.entry-content a:hover,
.gh-readme-content a:hover {
    color: #c3d0ff;
}
.entry-content a:hover::after,
.gh-readme-content a:hover::after {
    width: 100%;
}
.entry-content .iconfont[data-mapleup-icon],
.gh-readme-content .iconfont[data-mapleup-icon] {
    display: inline;
    line-height: inherit;
    vertical-align: baseline;
    white-space: nowrap;
}
.entry-content .mapleup-inline-icon,
.gh-readme-content .mapleup-inline-icon {
    font-family: "iconfont" !important;
    font-style: normal;
    font-weight: normal;
    cursor: text;
    user-select: text;
    -webkit-user-select: text;
    text-rendering: auto;
}
.entry-content .iconfont[data-mapleup-icon]::before,
.gh-readme-content .iconfont[data-mapleup-icon]::before {
    content: none !important;
}
.entry-content img {
    max-width: 100%;
    height: auto;
    /* border-radius: 12px; */
    cursor: zoom-in;
}
.entry-content .wp-block-group,
.entry-content .wp-block-cover,
.entry-content .wp-block-columns,
.entry-content .wp-block-media-text,
.entry-content .wp-block-image,
.entry-content .wp-block-gallery,
.entry-content .wp-block-quote,
.entry-content .wp-block-pullquote,
.entry-content .wp-block-table,
.entry-content .wp-block-buttons,
.entry-content .wp-block-button,
.entry-content .wp-block-file,
.entry-content .wp-block-details,
.entry-content .wp-block-embed,
.entry-content .wp-block-audio,
.entry-content .wp-block-video,
.entry-content .wp-block-code,
.entry-content .wp-block-preformatted,
.entry-content .wp-block-verse,
.entry-content .wp-block-separator,
.entry-content .wp-block-latest-posts,
.entry-content .wp-block-latest-comments,
.entry-content .wp-block-archives,
.entry-content .wp-block-categories,
.entry-content .wp-block-page-list,
.entry-content .wp-block-rss,
.entry-content .wp-block-search,
.entry-content .wp-block-calendar,
.entry-content .wp-block-tag-cloud,
.entry-content .wp-block-social-links,
.entry-content .wp-block-navigation {
    margin: 1.25rem 0;
}
.entry-content .wp-block-list,
.entry-content .wp-block-archives-list,
.entry-content .wp-block-categories-list,
.entry-content .wp-block-page-list,
.entry-content .wp-block-latest-posts,
.entry-content .wp-block-rss,
.entry-content .wp-block-latest-comments {
    padding-left: 1.5rem;
}
.entry-content ul.wp-block-list,
.entry-content .wp-block-archives-list,
.entry-content .wp-block-categories-list,
.entry-content .wp-block-page-list,
.entry-content .wp-block-latest-posts,
.entry-content .wp-block-rss,
.entry-content .wp-block-latest-comments {
    list-style-type: circle;
}
.entry-content ol.wp-block-list {
    list-style-type: decimal;
}
.entry-content .wp-block-latest-posts li,
.entry-content .wp-block-archives-list li,
.entry-content .wp-block-categories-list li,
.entry-content .wp-block-page-list li,
.entry-content .wp-block-rss li,
.entry-content .wp-block-latest-comments li {
    margin-bottom: 0.45rem;
}
.entry-content .wp-block-heading {
    margin: 1.5rem 0 0.8rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
}
.entry-content .wp-block-heading strong {
    color: inherit;
}
.entry-content .wp-block-image figure,
.entry-content .wp-block-gallery {
    margin: 0;
}
.entry-content .wp-block-image img,
.entry-content .wp-block-gallery img,
.entry-content .wp-block-media-text img,
.entry-content .wp-block-cover img {
    border-radius: 10px;
}
.entry-content .wp-block-image figcaption,
.entry-content .wp-block-gallery figcaption {
    margin-top: 0.65rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
    text-align: center;
}
.entry-content .wp-block-quote,
.entry-content .wp-block-pullquote {
    margin: 0 0 16px;
    padding: 0 1em;
    border: 0;
    border-left: 0.25em solid var(--border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--text-secondary);
}
.entry-content blockquote {
    margin: 0 0 16px;
    padding: 0 1em;
    border: 0;
    border-left: 0.25em solid var(--border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--text-secondary);
}
.entry-content blockquote p:last-child {
    margin-bottom: 0;
}
.entry-content blockquote cite {
    display: block;
    margin-top: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-style: normal;
}
.entry-content .wp-block-quote p:last-child,
.entry-content .wp-block-pullquote p:last-child {
    margin-bottom: 0;
}
.entry-content .wp-block-quote cite,
.entry-content .wp-block-pullquote cite {
    display: block;
    margin-top: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-style: normal;
}
.entry-content .wp-block-pullquote {
    padding: 1rem 0;
    border-left: 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.entry-content .wp-block-table {
    overflow-x: auto;
}
.entry-content .wp-block-table table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}
.entry-content .wp-block-table th,
.entry-content .wp-block-table td {
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border);
    text-align: left;
}
.entry-content .wp-block-table th {
    color: var(--text);
    background: var(--surface-hover);
    font-weight: 600;
}
.entry-content .wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.entry-content .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 12px;
    background: var(--surface);
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.entry-content .wp-block-button__link:hover {
    border-color: var(--border-hover);
    background: var(--surface-hover);
    color: var(--text);
}
.entry-content .wp-block-button.is-style-outline .wp-block-button__link {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
}
.entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover {
    border-color: var(--border-hover);
    background: var(--surface-hover);
    color: var(--text);
}
.entry-content .wp-block-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    box-shadow: none;
}
.entry-content .wp-block-file a:first-child {
    min-width: 0;
    word-break: break-word;
}
.entry-content .wp-block-file__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.46rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 500;
}
.entry-content .wp-block-file__button:hover {
    background: var(--surface-hover);
}
.entry-content .wp-block-separator {
    width: 100%;
    max-width: 120px;
    margin: 1.5rem auto;
    border: 0;
    border-bottom: 2px solid var(--border);
    opacity: 1;
}
.entry-content .wp-block-details {
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: transparent;
    box-shadow: none;
}
.entry-content .wp-block-details summary {
    cursor: pointer;
    color: var(--text);
    font-weight: 600;
}
.entry-content .wp-block-details > :not(summary) {
    margin-top: 0.8rem;
}
.entry-content .wp-block-media-text {
    display: grid;
    gap: 1.25rem;
    align-items: center;
}
.entry-content .wp-block-media-text__content {
    padding: 0;
}
.entry-content .wp-block-media-text__content > :first-child {
    margin-top: 0;
}
.entry-content .wp-block-media-text__content > :last-child {
    margin-bottom: 0;
}
.entry-content .wp-block-cover,
.entry-content .wp-block-cover-image {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 6px;
}
.entry-content .wp-block-cover__inner-container {
    padding: 1.4rem;
}
.entry-content .wp-block-cover :is(h1, h2, h3, h4, h5, h6, p, a, li) {
    color: inherit;
}
.entry-content .wp-block-gallery {
    gap: 10px;
}
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image {
    margin: 0;
}
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
    margin-top: 0.5rem;
}
.entry-content .wp-block-code,
.entry-content .wp-block-preformatted,
.entry-content .wp-block-verse {
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-elevated);
    box-shadow: none;
    color: var(--text);
    overflow-x: auto;
}
.entry-content .wp-block-code code,
.entry-content .wp-block-preformatted,
.entry-content .wp-block-verse {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 0.88rem;
    line-height: 1.75;
}
.entry-content .wp-block-embed iframe,
.entry-content .wp-block-video video,
.entry-content .wp-block-audio audio {
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
}
.entry-content .wp-block-social-links {
    padding-left: 0;
}
.entry-content .wp-block-social-links li {
    list-style: none;
}
.entry-content .wp-block-search__inside-wrapper {
    display: flex;
    gap: 0.75rem;
}
.entry-content .wp-block-search__input {
    width: 100%;
    min-width: 0;
    padding: 0.72rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-elevated);
    color: var(--text);
}
.entry-content .wp-block-search__button {
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 20px;
}
.entry-content .wp-block-search__button:hover {
    border-color: var(--border-hover);
    background: var(--surface-hover);
}
.entry-content .wp-block-calendar table {
    width: 100%;
    border-collapse: collapse;
}
.entry-content .wp-block-calendar caption {
    margin-bottom: 0.75rem;
    color: var(--text);
    font-weight: 600;
    text-align: left;
}
.entry-content .wp-block-calendar th,
.entry-content .wp-block-calendar td {
    padding: 0.55rem;
    border: 1px solid var(--border);
    text-align: center;
}
.entry-content .wp-block-calendar th {
    background: var(--surface-hover);
    color: var(--text);
    font-weight: 600;
}
.entry-content .wp-block-calendar td {
    color: var(--text-secondary);
}
.entry-content .wp-block-calendar a {
    color: var(--interactive-accent);
    text-decoration: none;
}
.entry-content .wp-block-calendar nav {
    margin-top: 0.75rem;
}
.entry-content .wp-block-calendar nav a {
    color: var(--text-secondary);
}
.entry-content .wp-block-tag-cloud a {
    display: inline-flex;
    align-items: center;
    margin: 0 0.5rem 0.5rem 0;
    padding: 2px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--interactive-accent);
    font-size: 0.75rem !important;
    font-weight: 500;
}
.entry-content .wp-block-tag-cloud a:hover {
    background: var(--interactive-accent);
    border-color: var(--interactive-accent);
    color: var(--interactive-accent-text);
}
.entry-content .wp-block-latest-posts,
.entry-content .wp-block-latest-comments,
.entry-content .wp-block-archives-list,
.entry-content .wp-block-categories-list,
.entry-content .wp-block-page-list,
.entry-content .wp-block-rss {
    margin-bottom: 16px;
}
.entry-content .wp-block-latest-posts li,
.entry-content .wp-block-latest-comments li,
.entry-content .wp-block-archives-list li,
.entry-content .wp-block-categories-list li,
.entry-content .wp-block-page-list li,
.entry-content .wp-block-rss li {
    margin-bottom: 0.55rem;
}
.entry-content .wp-block-latest-posts a,
.entry-content .wp-block-latest-comments a,
.entry-content .wp-block-archives-list a,
.entry-content .wp-block-categories-list a,
.entry-content .wp-block-page-list a,
.entry-content .wp-block-rss a {
    color: var(--interactive-accent);
    text-decoration: none;
}
.entry-content .wp-block-latest-posts__post-date,
.entry-content .wp-block-latest-comments__comment-date,
.entry-content .wp-block-rss__item-publish-date,
.entry-content .wp-block-rss__item-author {
    display: block;
    margin-top: 0.2rem;
    color: var(--text-tertiary);
    font-size: 0.78rem;
}
.entry-content .wp-block-latest-comments article,
.entry-content .wp-block-rss__item-title {
    margin: 0;
}
.entry-content .wp-block-rss__item-excerpt {
    margin-top: 0.35rem;
    color: var(--text-secondary);
}
.entry-content .wp-block-social-links.is-style-logos-only li a,
.entry-content .wp-block-social-links:not(.is-style-logos-only) li a {
    color: var(--text-secondary);
}
.entry-content .wp-block-social-links.is-style-logos-only li a:hover,
.entry-content .wp-block-social-links:not(.is-style-logos-only) li a:hover {
    color: var(--text);
}
.entry-content .alignleft {
    float: left;
    margin: 0.35rem 1.2rem 1rem 0;
}
.entry-content .alignright {
    float: right;
    margin: 0.35rem 0 1rem 1.2rem;
}
.entry-content .aligncenter {
    display: block;
    margin-right: auto;
    margin-left: auto;
}
.entry-content .alignwide,
.entry-content .alignfull {
    width: 100%;
}
.entry-content > * + .alignwide,
.entry-content > * + .alignfull {
    margin-top: 1.4rem;
}
.entry-content pre,
.mapleup-code-block pre {
    margin: 1.2rem 0;
    border: 1px solid #30363d;
    border-radius: 6px;
    background: #0d1117 !important;
    box-shadow: none;
    max-height: 540px;
    overflow: auto;
    font-size: 12px;
    line-height: 20px;
    white-space: pre;
}
.entry-content pre code,
.mapleup-code-block code {
    font-family: ui-monospace, SFMono-Regular, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    white-space: inherit;
    word-break: normal;
    word-wrap: normal;
}
.entry-content :not(pre) > code {
    padding: 0.16em 0.38em;
    border: 1px solid rgba(110, 118, 129, 0.4);
    border-radius: 6px;
    background: rgba(110, 118, 129, 0.16);
    color: #c9d1d9;
    font-size: 85%;
}
.mapleup-code-block {
    margin: 1.2rem 0;
    position: relative;
    border: 1px solid #30363d;
    border-radius: 6px;
    background: #0d1117;
    box-shadow: none;
    overflow: hidden;
}
.mapleup-code-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid #30363d;
    background: #161b22;
}
.mapleup-code-block.has-no-code-title .mapleup-code-header {
    justify-content: flex-end;
}
.mapleup-code-scroller {
    max-height: 540px;
    overflow: auto;
    padding-top: 0;
}
.mapleup-code-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}
.mapleup-code-table td {
    vertical-align: top;
}
.mapleup-code-gutter {
    width: 1%;
    min-width: 52px;
    padding: 0 16px 0 16px;
    border-right: 1px solid #21262d;
    background: #0d1117;
    color: #6e7681;
    text-align: right;
    font-family: ui-monospace, SFMono-Regular, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    line-height: 20px;
    user-select: none;
    white-space: nowrap;
}
.mapleup-code-line {
    padding: 0 16px;
}
.mapleup-code-line-inner {
    display: block;
    min-width: max-content;
    color: #c9d1d9;
    font-family: ui-monospace, SFMono-Regular, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    line-height: 20px;
    white-space: pre;
}
.mapleup-code-token-comment {
    color: #8b949e;
}
.mapleup-code-token-string {
    color: #a5d6ff;
}
.mapleup-code-token-number {
    color: #79c0ff;
}
.mapleup-code-token-keyword {
    color: #ff7b72;
}
.mapleup-code-token-type {
    color: #ffa657;
}
.mapleup-code-token-selector {
    color: #d2a8ff;
}
.mapleup-code-token-property {
    color: #79c0ff;
}
.mapleup-code-token-tag {
    color: #7ee787;
}
.mapleup-code-token-attr {
    color: #79c0ff;
}
.mapleup-code-title {
    min-width: 0;
    max-width: min(50%, 320px);
    color: #c9d1d9;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
}
.mapleup-code-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    z-index: 2;
    pointer-events: auto;
}
.mapleup-code-block.has-no-code-title .mapleup-code-toolbar {
    margin-left: auto;
}
.mapleup-code-block:hover .mapleup-code-title,
.mapleup-code-block:focus-within .mapleup-code-title,
.mapleup-code-block:hover .mapleup-code-toolbar,
.mapleup-code-block:focus-within .mapleup-code-toolbar {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mapleup-code-lang,
.mapleup-code-copy {
    height: 28px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid #30363d;
    background: #21262d;
    color: #c9d1d9;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mapleup-code-copy {
    cursor: pointer;
}
.mapleup-code-copy .iconfont {
    font-size: 14px;
    line-height: 1;
}
.mapleup-code-copy:hover {
    background: #30363d;
}
.mapleup-code-copy.is-copied {
    border-color: #238636;
    background: #1f6feb;
    color: #ffffff;
}
.mapleup-code-block pre[class*="language-"],
.entry-content pre[class*="language-"] {
    margin: 0;
}
.mapleup-code-block pre.line-numbers,
.entry-content pre.line-numbers {
    padding-left: 4rem;
    position: relative;
}
.mapleup-code-block .line-numbers .line-numbers-rows,
.entry-content .line-numbers .line-numbers-rows {
    width: 3.2rem;
    top: 0;
    bottom: 0;
    border-right: 1px solid #21262d;
    background: #0d1117;
}
.mapleup-code-block .line-numbers-rows > span:before,
.entry-content .line-numbers-rows > span:before {
    color: #6e7681;
}
.mapleup-code-block code[class*="language-"],
.entry-content code[class*="language-"],
.mapleup-code-block pre[class*="language-"],
.entry-content pre[class*="language-"] {
    color: #c9d1d9;
    text-shadow: none;
    background: transparent;
}
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #8b949e;
}
.token.punctuation {
    color: #c9d1d9;
}
.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
    color: #79c0ff;
}
.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: #a5d6ff;
}
.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
    color: #79c0ff;
}
.token.atrule,
.token.attr-value,
.token.keyword {
    color: #ff7b72;
}
.token.function,
.token.class-name {
    color: #d2a8ff;
}
.token.regex,
.token.important,
.token.variable {
    color: #ffa657;
}
@media (max-width: 768px) {
    .entry-content pre,
    .mapleup-code-block pre {
        padding-top: 0;
    }

    .mapleup-code-scroller {
        padding-top: 0;
    }

    .mapleup-code-header {
        padding: 8px 12px;
    }

    .mapleup-code-title {
        font-size: 11px;
    }

    .mapleup-code-lang,
    .mapleup-code-copy {
        height: 26px;
        padding: 0 8px;
        font-size: 11px;
    }

    .mapleup-code-gutter {
        min-width: 48px;
        padding-left: 12px;
        padding-right: 10px;
    }

    .mapleup-code-line {
        padding: 0 14px;
    }

    .mapleup-code-block .line-numbers .line-numbers-rows,
    .entry-content .line-numbers .line-numbers-rows {
        top: 0;
    }
}
.image-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 12, 0.94);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 10040;
}
.image-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}
.image-lightbox-toolbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    z-index: 2;
}
.image-lightbox-toolbar-left {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}
.image-lightbox-counter {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    min-width: 90px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
}
.image-lightbox-close,
.image-lightbox-nav {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
}
.image-lightbox-close {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.image-lightbox-close .iconfont {
    font-size: 1.15rem;
}
.image-lightbox-stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 44px 32px;
}
.image-lightbox-figure {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: min(1240px, calc(100vw - 180px));
    max-height: calc(100vh - 120px);
}
.image-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 120px);
    width: auto;
    height: auto;
    object-fit: contain;
}
.image-lightbox-nav {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}
.image-lightbox-nav .iconfont {
    font-size: 1.3rem;
    font-weight: 700;
}
.image-lightbox-toolbar-left .image-lightbox-nav + .image-lightbox-counter,
.image-lightbox-toolbar-left .image-lightbox-counter + .image-lightbox-nav {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.image-lightbox-nav:disabled {
    opacity: 0.28;
    cursor: default;
}
body.image-lightbox-open {
    position: fixed;
    top: var(--image-lightbox-scroll-top, 0);
    left: 0;
    right: 0;
    width: 100%;
    padding-right: var(--image-lightbox-scrollbar-width, 0px);
    overflow: hidden;
}
body.image-lightbox-open .deco-corner {
    right: calc(-80px + var(--image-lightbox-scrollbar-width, 0px));
}
@media (max-width: 768px) {
    .image-lightbox-toolbar {
        padding: 12px 14px;
    }

    .image-lightbox-counter {
        font-size: 0.9rem;
        min-width: 78px;
        height: 40px;
        padding: 0 14px;
    }

    .image-lightbox-stage {
        padding: 56px 10px 18px;
    }

    .image-lightbox-figure {
        max-width: calc(100vw - 20px);
    }

    .image-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }

    .image-lightbox-nav .iconfont {
        font-size: 1.05rem;
    }
}
.mapleup-history-body {
    padding: 2rem 2.5rem;
}
.history-page-shell {
    display: block;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
}
.history-readme-box {
    width: 100%;
    margin-bottom: 0;
}
.history-content {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
}
.history-content .history-heading {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.history-content .page-title {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0.6rem;
}
.history-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 2rem;
}
.history-content .page-subtitle,
.history-container .page-subtitle {
    font-size: 0.82rem;
    margin-bottom: 0;
    line-height: 1.7;
}
.history-content .history-empty,
.history-container .history-empty {
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 1rem 0 0;
}
.history-content .timeline,
.history-container .timeline {
    position: relative;
    padding-left: 2rem;
}
.history-content .timeline::before,
.history-container .timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: var(--border);
}
.history-content .timeline-item,
.history-container .timeline-item {
    position: relative;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 20px;
    align-items: start;
}
.history-content .timeline-item:last-child,
.history-container .timeline-item:last-child {
    margin-bottom: 0;
}
.history-content .timeline-main,
.history-container .timeline-main {
    min-width: 0;
}
.history-content .timeline-side,
.history-container .timeline-side {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}
.history-content .timeline-image,
.history-container .timeline-image {
    width: 96px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 4px;
}
.history-content .timeline-image img,
.history-container .timeline-image img {
    max-width: 96px;
    max-height: 72px;
    width: auto;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    display: block;
}
.history-content .timeline-dot,
.history-container .timeline-dot {
    position: absolute;
    left: -2rem;
    top: 6px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--border);
}
.history-content .timeline-dot.major,
.history-container .timeline-dot.major {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}
.history-content .timeline-year,
.history-container .timeline-year {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-tertiary);
    letter-spacing: 0.04em;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}
.history-content .timeline-item.major .timeline-year,
.history-container .timeline-item.major .timeline-year {
    color: var(--accent);
}
.history-content .timeline-title,
.history-container .timeline-title {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--text);
    margin-top: 6px;
    margin-bottom: 0.25rem;
}
.history-content .timeline-desc,
.history-container .timeline-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.history-content .timeline-desc p:last-child,
.history-container .timeline-desc p:last-child {
    margin-bottom: 0;
}
.history-content .timeline-extra,
.history-container .timeline-extra {
    margin-top: 0.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.history-content .timeline-tag,
.history-container .timeline-tag {
    font-size: 0.66rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}
.history-content .section-tabs,
.history-container .section-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
}
.history-content .section-tab,
.history-container .section-tab {
    padding: 6px 16px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}
.history-content .section-tab:hover,
.history-container .section-tab:hover {
    border-color: var(--border-hover);
    color: var(--text);
}
.history-content .section-tab.active,
.history-container .section-tab.active {
    background: var(--surface-hover);
    border-color: var(--accent);
    color: var(--text);
    font-weight: 500;
}
.history-content .sort-toggle,
.history-container .sort-toggle {
    margin-left: auto;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}
.history-content .sort-toggle:hover,
.history-container .sort-toggle:hover {
    border-color: var(--border-hover);
    color: var(--text);
}
.history-content .sort-toggle .arrow,
.history-container .sort-toggle .arrow {
    font-size: 0.64rem;
    transition: transform 0.2s ease;
}
.history-content .sort-toggle.desc .arrow,
.history-container .sort-toggle.desc .arrow {
    transform: rotate(180deg);
}
.history-content .timeline-section,
.history-container .timeline-section {
    display: none;
}
.history-content .timeline-section.active,
.history-container .timeline-section.active {
    display: block;
}

.mapleup-character-page {
    width: 100%;
}
.mapleup-character-readme-box {
    margin-bottom: 0;
}
.mapleup-character-builder {
    width: 100%;
    color: var(--text);
}
.mapleup-character-builder-inner {
    display: grid;
    gap: 1.5rem;
}
.mapleup-character-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10.5rem;
    padding: 0.35rem 0 0.15rem;
}
.mapleup-character-step {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: rgba(148, 163, 184, 0.92);
    font-size: 0.96rem;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    white-space: nowrap;
}
.mapleup-character-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: calc(100% + 1.8rem);
    width: 5.6rem;
    border-top: 3px dotted rgba(148, 163, 184, 0.58);
    transform: translateY(-50%);
}
.mapleup-character-step-label {
    display: inline-block;
    padding: 0;
    background: transparent;
    box-shadow: none;
}
.mapleup-character-step.is-active {
    color: #ff8a1f;
    font-weight: 700;
}
.mapleup-character-step:not(.is-active) .mapleup-character-step-label {
    color: rgba(148, 163, 184, 0.92);
}
.mapleup-character-heading {
    display: grid;
    gap: 0.45rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.mapleup-character-title {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.2;
}
.mapleup-character-subtitle {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
}
.mapleup-character-searchbar {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.mapleup-character-searchfield {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0 1rem;
    min-height: 36px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface);
}
.mapleup-character-searchfield .iconfont {
    color: var(--text-tertiary);
    font-size: 0.95rem;
}
.mapleup-character-searchfield input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    outline: none;
}
.mapleup-character-searchfield input::placeholder {
    color: var(--text-tertiary);
}
.mapleup-character-search-button {
    min-width: 88px;
    min-height: 36px;
    height: 36px;
    padding: 0 1rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.mapleup-character-workbench {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
}
.mapleup-character-step-panel {
    min-width: 0;
}
.mapleup-character-step-panel[hidden] {
    display: none !important;
}
.mapleup-character-sidebar,
.mapleup-character-panel {
    height: 100%;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}
.mapleup-character-sidebar {
    padding: 0.95rem;
    display: grid;
    align-content: start;
    gap: 1rem;
}
.mapleup-character-panel {
    display: flex;
    flex-direction: column;
}
.mapleup-character-preview-card {
    padding: 0.95rem;
    border-radius: 6px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}
.mapleup-character-preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1rem;
}
.mapleup-character-preview-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.mapleup-character-gender-switch {
    padding: 2px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
}
.mapleup-character-gender-button {
    min-width: 34px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.mapleup-character-gender-button .iconfont {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
}
.mapleup-character-gender-button.is-active {
    background: var(--surface-hover);
    color: var(--text);
}
.mapleup-character-tool {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    cursor: pointer;
    font: inherit;
}
.mapleup-character-tool .iconfont {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
}
#mapleupCharacterAction .iconfont {
    width: 17px;
    height: 17px;
    font-size: 17px;
}
.mapleup-character-tool-accent {
    color: var(--accent);
}
.mapleup-character-tool.is-active {
    background: var(--surface-hover);
    border-color: var(--accent);
    color: var(--text);
}
.mapleup-character-stage {
    min-height: 245px;
    padding: 1.25rem 1rem 0.9rem;
    border-radius: 6px;
    background: linear-gradient(180deg, var(--surface-hover) 0%, var(--bg-elevated) 100%);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    position: relative;
    overflow: hidden;
}
.mapleup-character-stage::before,
.mapleup-character-stage::after {
    content: '';
    position: absolute;
    inset: auto;
    pointer-events: none;
}
.mapleup-character-stage[data-theme="sunset"]::before {
    width: 170px;
    height: 170px;
    top: -48px;
    right: -42px;
    background: radial-gradient(circle, rgba(247, 181, 0, 0.16) 0%, rgba(247, 181, 0, 0) 72%);
}
.mapleup-character-stage[data-theme="mint"]::before {
    width: 180px;
    height: 180px;
    top: -54px;
    right: -34px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.16) 0%, rgba(45, 212, 191, 0) 72%);
}
.mapleup-character-stage[data-theme="night"]::before {
    width: 190px;
    height: 190px;
    top: -56px;
    right: -28px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.16) 0%, rgba(99, 102, 241, 0) 72%);
}
.mapleup-character-avatar {
    width: 168px;
    height: 168px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mapleup-character-avatar img {
    display: block;
    width: auto;
    max-width: 120px;
    height: 118px;
    max-height: 118px;
    object-fit: contain;
    image-rendering: pixelated;
    transform-origin: center center;
    transition: transform 0.15s ease, opacity 0.2s ease, filter 0.2s ease;
}
.mapleup-character-stage.is-preview-loading .mapleup-character-avatar img {
    opacity: 0.3;
    filter: blur(1px);
}
.mapleup-character-preview-loading {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.75rem;
    background: rgba(10, 12, 20, 0.42);
    backdrop-filter: blur(1px);
    z-index: 2;
}
.mapleup-character-stage.is-preview-loading .mapleup-character-preview-loading {
    display: flex;
}
.mapleup-character-preview-loading-dots {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.mapleup-character-preview-loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    animation: mapleup-character-preview-bounce 0.9s ease-in-out infinite;
}
.mapleup-character-preview-loading-dots span:nth-child(2) {
    animation-delay: 0.12s;
}
.mapleup-character-preview-loading-dots span:nth-child(3) {
    animation-delay: 0.24s;
}
.mapleup-character-preview-loading-text {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.04em;
}
.mapleup-character-layer {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    user-select: none;
}
.mapleup-character-layer-hat {
    top: 10px;
    font-size: 2.4rem;
}
.mapleup-character-layer-hair {
    top: 36px;
    font-size: 2rem;
}
.mapleup-character-layer-face {
    top: 60px;
    font-size: 2rem;
}
.mapleup-character-layer-skin {
    top: 78px;
    font-size: 1.25rem;
}
.mapleup-character-layer-top {
    top: 90px;
    font-size: 2.1rem;
}
.mapleup-character-layer-set {
    top: 114px;
    font-size: 1.8rem;
}
.mapleup-character-layer-weapon {
    right: 8px;
    bottom: 12px;
    font-size: 1.55rem;
    transform: rotate(-12deg);
}
.mapleup-character-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}
.mapleup-character-default-button {
    border: 0;
    background: transparent;
    color: var(--text-tertiary);
    font: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.mapleup-character-equipment-card {
    display: grid;
    gap: 0.9rem;
}
.mapleup-character-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    padding: 0 0.15rem;
}
.mapleup-character-equipment-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
}
.mapleup-character-equipped-item {
    position: relative;
    min-height: 82px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-elevated);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55rem 0.4rem;
    cursor: pointer;
    color: var(--text-secondary);
    font: inherit;
}
.mapleup-character-equipped-item.is-empty {
    color: var(--text-tertiary);
    background: var(--surface);
}
.mapleup-character-equipped-remove {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ef4444;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    line-height: 1;
    padding: 0;
}
.mapleup-character-equipped-remove .iconfont {
    font-size: 8px;
    line-height: 1;
    display: block;
}
.mapleup-character-equipped-icon {
    width: 28px;
    height: 28px;
    font-size: 1.45rem;
    line-height: 1;
}
.mapleup-character-equipped-icon img {
    width: 28px;
    height: 28px;
    display: block;
    object-fit: contain;
    image-rendering: pixelated;
}
.mapleup-character-equipped-item.is-empty .mapleup-character-equipped-icon {
    display: none;
}
.mapleup-character-equipped-item.is-empty .mapleup-character-equipped-remove {
    display: none;
}
.mapleup-character-equipped-label {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    text-align: center;
    line-height: 1.35;
}
.mapleup-character-equipped-item:not(.is-empty) .mapleup-character-equipped-label {
    color: var(--text-secondary);
}
.mapleup-character-panel {
    min-height: 588px;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}
.mapleup-character-panel-toolbar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.mapleup-character-tabs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.mapleup-character-tabs::-webkit-scrollbar {
    display: none;
}
.mapleup-character-tab {
    flex: 0 0 auto;
    height: 36px;
    min-height: 36px;
    padding: 0 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text-tertiary);
    font: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.mapleup-character-tab.is-active {
    background: var(--surface-hover);
    border-color: var(--accent);
    color: var(--text);
}
.mapleup-character-tab-nav {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text-secondary);
    font: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    line-height: 1;
    box-sizing: border-box;
}
.mapleup-character-tab-nav .iconfont {
    font-size: 14px;
    line-height: 1;
}
.mapleup-character-tab-nav-next .iconfont {
    transform: rotate(180deg);
}
.mapleup-character-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, 56px);
    gap: 0.65rem;
    height: min(62vh, 560px);
    max-height: min(62vh, 560px);
    flex: 1 1 auto;
    min-height: 0;
    align-content: start;
    align-items: start;
    justify-content: start;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    padding: 0.3rem 0.2rem 0.2rem 0.15rem;
}
.mapleup-character-results.is-loading {
    opacity: 0.78;
}
.mapleup-character-result-card {
    width: 56px;
    height: 56px;
    padding: 0;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    font: inherit;
    transition: none;
}
.mapleup-character-result-card.is-skeleton {
    cursor: default;
    pointer-events: none;
}
.mapleup-character-result-icon {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    background: var(--bg-elevated);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    box-shadow: inset 0 0 0 1px var(--border);
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.mapleup-character-result-card:hover .mapleup-character-result-icon {
    transform: scale(1.04);
    background: var(--surface-hover);
    box-shadow: inset 0 0 0 1px var(--border-hover);
}
.mapleup-character-result-card.is-active .mapleup-character-result-icon {
    background: var(--surface-hover);
    box-shadow: inset 0 0 0 1px var(--accent);
}
.mapleup-character-result-icon-skeleton {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}
.mapleup-character-result-icon-skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0) 100%);
    animation: mapleup-character-skeleton-shimmer 1.15s ease-in-out infinite;
}
.mapleup-character-result-icon img {
    width: 34px;
    height: 34px;
    display: block;
    object-fit: contain;
    image-rendering: pixelated;
}
.mapleup-character-result-desc {
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-tertiary);
}
.mapleup-character-empty {
    grid-column: 1 / -1;
    width: 100%;
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    color: var(--text-tertiary);
    gap: 0.5rem;
    padding: 1rem 0 0;
}
.mapleup-character-empty[hidden] {
    display: none !important;
}
.mapleup-character-empty strong {
    color: var(--text);
    font-size: 1.1rem;
}
@keyframes mapleup-character-skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}
@keyframes mapleup-character-preview-bounce {
    0%, 80%, 100% {
        transform: scale(0.78);
        opacity: 0.55;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}
.mapleup-character-empty p {
    max-width: 360px;
    margin: 0;
    line-height: 1.7;
}
.mapleup-character-cover-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}
.mapleup-character-cover-preview-card,
.mapleup-character-cover-selector-card {
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-card);
    min-height: 588px;
    max-height: 588px;
}
.mapleup-character-cover-preview-card {
    padding: 1.1rem;
    display: grid;
    grid-template-rows: auto auto;
    gap: 0.7rem;
    justify-items: center;
    align-items: start;
    align-content: start;
    overflow: visible;
}
.mapleup-character-cover-selector-card {
    overflow: hidden;
}
.mapleup-character-cover-expression-panel {
    width: auto;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    flex-wrap: nowrap;
    justify-self: center;
    align-self: center;
}
.mapleup-character-cover-control {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    flex: 0 1 auto;
}
.mapleup-character-cover-expression-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    padding: 0 0.15rem;
    white-space: nowrap;
    flex: 0 0 auto;
}
.mapleup-character-cover-expression-field {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    position: relative;
    z-index: 24;
}
.mapleup-character-cover-expression-trigger {
    width: 138px;
    max-width: 138px;
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-elevated);
    color: var(--text);
    font: inherit;
    line-height: 1.4;
    padding: 0 0.85rem;
    outline: none;
    box-sizing: border-box;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: pointer;
}
.mapleup-character-cover-expression-trigger:hover {
    border-color: var(--border-hover);
    background: var(--surface-hover);
}
.mapleup-character-cover-expression-trigger:focus,
.mapleup-character-cover-expression-field.is-open .mapleup-character-cover-expression-trigger {
    border-color: var(--text-secondary);
    box-shadow: 0 0 0 1px var(--text-secondary);
}
.mapleup-character-cover-expression-current {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mapleup-character-cover-expression-trigger .iconfont {
    flex: 0 0 auto;
    font-size: 0.62rem;
    color: var(--text-tertiary);
    transition: transform 0.18s ease, color 0.18s ease;
}
.mapleup-character-cover-expression-field.is-open .mapleup-character-cover-expression-trigger .iconfont {
    transform: rotate(180deg);
    color: var(--text-secondary);
}
.mapleup-character-cover-expression-menu {
    position: fixed;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    max-height: 240px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.35rem 0;
    z-index: 10050;
}
.mapleup-character-cover-expression-field.is-open-upward .mapleup-character-cover-expression-menu {
    top: auto;
    bottom: calc(100% + 6px);
}
.mapleup-character-cover-expression-option {
    width: 100%;
    min-height: 36px;
    padding: 0.45rem 0.85rem;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}
.mapleup-character-cover-expression-option:hover {
    background: var(--surface-hover);
    color: var(--text);
}
.mapleup-character-cover-expression-option.is-active {
    background: rgba(255, 138, 31, 0.12);
    color: #ff8a1f;
}
.mapleup-character-cover-selector-card {
    padding: 1.1rem;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 1rem;
}
.mapleup-character-cover-stage {
    position: relative;
    width: 360px;
    max-width: 100%;
    height: 480px;
    min-height: 480px;
    border-radius: 16px;
    overflow: hidden;
    background-color: #10131b;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    transition: background-color 0.28s ease, box-shadow 0.2s ease;
}
.mapleup-character-cover-stage::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(255, 255, 255, 0) 16%, rgba(255, 255, 255, 0.07) 46%, rgba(255, 255, 255, 0) 72%);
    transform: translateX(-130%);
    opacity: 0;
    pointer-events: none;
    z-index: 3;
}
.mapleup-character-cover-stage.is-export-loading::after {
    opacity: 1;
    animation: mapleup-character-cover-export-sheen 1.35s ease-in-out infinite;
}
.mapleup-character-cover-bottom-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 0;
}
.mapleup-character-cover-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 0;
}
.mapleup-character-cover-solid-deco {
    position: absolute;
    right: -100px;
    bottom: -60px;
    width: 420px;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    opacity: 0.92;
    z-index: 0;
}
.mapleup-character-cover-default-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 1;
}
.mapleup-character-cover-equipped-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: flex-start;
    align-content: flex-start;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px;
    max-width: calc(100% - 36px);
    overflow: visible;
    z-index: 3;
    pointer-events: none;
}
.mapleup-character-cover-equipped-badge-item {
    position: relative;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border-radius: 999px;
    isolation: isolate;
}
.mapleup-character-cover-equipped-badge-bg {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 0;
    pointer-events: none;
}
.mapleup-character-cover-equipped-badge-item img {
    position: relative;
    z-index: 1;
    display: block;
    width: auto;
    height: auto;
    max-width: 72%;
    max-height: 72%;
    flex: 0 0 auto;
    image-rendering: pixelated;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.18));
}
.mapleup-character-cover-brand-tag {
    position: absolute;
    left: 22px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 27px;
    padding: 0 9px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 8px 20px rgba(7, 10, 18, 0.22);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1;
    z-index: 3;
    pointer-events: none;
}
.mapleup-character-cover-brand-tag-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
.mapleup-character-cover-brand-tag-word {
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
}
.mapleup-character-cover-brand-tag-maple {
    font-weight: 400;
}
.mapleup-character-cover-brand-tag-up {
    font-weight: 700;
}
.mapleup-character-cover-character {
    position: absolute;
    left: 50%;
    bottom: var(--mapleup-cover-character-bottom, 48px);
    transform: translate(
        calc(-50% + var(--mapleup-cover-character-offset-x, 0px)),
        var(--mapleup-cover-character-offset-y, 0px)
    );
    z-index: 2;
    width: auto;
    max-width: calc(100% - 2rem);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    transition: transform 0.24s ease, opacity 0.22s ease, filter 0.22s ease;
}
.mapleup-character-cover-stage.is-export-loading .mapleup-character-cover-character {
    animation: mapleup-character-cover-float 1.45s ease-in-out infinite;
}
.mapleup-character-cover-stage.is-solid-cover .mapleup-character-cover-character {
    top: 50%;
    bottom: auto;
    transform: translate(
        calc(-50% + var(--mapleup-cover-character-offset-x, 0px)),
        calc(-50% + var(--mapleup-cover-character-offset-y, 0px))
    );
}
.mapleup-character-cover-character img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    image-rendering: pixelated;
    transform: scale(0.6);
    transform-origin: center bottom;
    transition: opacity 0.22s ease, filter 0.22s ease, transform 0.18s ease;
}
.mapleup-character-cover-stage.is-solid-cover .mapleup-character-cover-character img {
    transform-origin: center center;
}
.mapleup-character-cover-stage.is-preview-loading .mapleup-character-cover-character img {
    opacity: 0.3;
    filter: blur(1px);
}
.mapleup-character-cover-stage.is-export-loading .mapleup-character-cover-character img {
    opacity: 0.42;
    filter: saturate(0.82) blur(0.8px);
}
.mapleup-character-cover-preview-loading {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.75rem;
    background: rgba(10, 12, 20, 0.28);
    backdrop-filter: blur(1px);
    z-index: 4;
    pointer-events: none;
}
.mapleup-character-cover-stage.is-preview-loading .mapleup-character-cover-preview-loading {
    display: flex;
}
.mapleup-character-cover-stage.is-export-loading .mapleup-character-cover-preview-loading {
    display: flex;
    background: rgba(10, 12, 20, 0.22);
    backdrop-filter: blur(1.5px);
}
.mapleup-character-cover-stage.is-export-loading .mapleup-character-preview-loading-dots span {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.28);
}
.mapleup-character-cover-stage.is-export-loading .mapleup-character-preview-loading-text {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}
.mapleup-character-cover-stage.is-layered-cover .mapleup-character-cover-card-bg {
    z-index: 2;
}
.mapleup-character-cover-stage.is-layered-cover .mapleup-character-cover-character {
    z-index: 1;
}
.mapleup-character-cover-mode-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid var(--border);
}
.mapleup-character-cover-mode-tab {
    position: relative;
    padding: 0.25rem 0 0.8rem;
    border: 0;
    background: transparent;
    color: var(--text-tertiary);
    font: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
}
.mapleup-character-cover-mode-tab::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: transparent;
}
.mapleup-character-cover-mode-tab.is-active {
    color: #ff8a1f;
}
.mapleup-character-cover-mode-tab.is-active::after {
    background: #ff8a1f;
}
.mapleup-character-cover-mode-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}
.mapleup-character-cover-mode-panel[hidden] {
    display: none !important;
}
.mapleup-character-cover-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: calc((100% - 1.7rem) / 3);
    gap: 0.85rem;
    align-content: start;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    padding-right: 0.1rem;
}
.mapleup-character-cover-option {
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-elevated);
    padding: 0.25rem;
    cursor: pointer;
    display: flex;
    width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 0;
    align-items: center;
    justify-content: center;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    overflow: hidden;
}
.mapleup-character-cover-option img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}
.mapleup-character-cover-color-controls {
    display: grid;
    gap: 0.95rem;
    align-content: start;
}
.mapleup-character-cover-color-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 136px;
    gap: 0.75rem;
}
.mapleup-character-cover-color-field {
    display: grid;
    gap: 0.42rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}
.mapleup-character-cover-color-field span {
    font-weight: 600;
}
.mapleup-character-cover-color-field input[type="text"],
.mapleup-character-cover-percent-input {
    width: 100%;
    min-height: 42px;
    padding: 0 0.85rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-elevated);
    color: var(--text);
    font: inherit;
}
.mapleup-character-cover-percent-input {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding-right: 0.7rem;
}
.mapleup-character-cover-percent-input input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    outline: none;
    appearance: textfield;
}
.mapleup-character-cover-percent-input input::-webkit-outer-spin-button,
.mapleup-character-cover-percent-input input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}
.mapleup-character-cover-percent-input em {
    font-style: normal;
    color: var(--text-secondary);
    font-size: 0.84rem;
}
.mapleup-character-cover-color-panel {
    position: relative;
    min-height: 230px;
    border-radius: 6px;
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: crosshair;
    background: hsl(74, 100%, 50%);
}
.mapleup-character-cover-color-panel-white,
.mapleup-character-cover-color-panel-black {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.mapleup-character-cover-color-panel-white {
    background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}
.mapleup-character-cover-color-panel-black {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 100%);
}
.mapleup-character-cover-color-thumb {
    position: absolute;
    left: 100%;
    top: 0;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.95) 28%, rgba(233, 236, 241, 0.98) 28%, rgba(214, 219, 228, 0.98) 62%, rgba(160, 170, 186, 0.95) 100%);
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.3),
        0 6px 16px rgba(0, 0, 0, 0.28),
        0 0 10px rgba(255, 255, 255, 0.14);
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.mapleup-character-cover-slider {
    position: relative;
}
.mapleup-character-cover-slider input[type="range"] {
    width: 100%;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    height: 16px;
    border-radius: 999px;
    outline: none;
    cursor: pointer;
    background: transparent;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.mapleup-character-cover-slider-hue input[type="range"] {
    background: linear-gradient(90deg, #ff0000 0%, #ffff00 16.66%, #00ff00 33.33%, #00ffff 50%, #0000ff 66.66%, #ff00ff 83.33%, #ff0000 100%);
}
.mapleup-character-cover-slider-alpha input[type="range"] {
    background:
        linear-gradient(45deg, rgba(255, 255, 255, 0.14) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.14) 75%, rgba(255, 255, 255, 0.14) 100%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.14) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.14) 75%, rgba(255, 255, 255, 0.14) 100%),
        linear-gradient(90deg, rgba(219, 223, 205, 0) 0%, rgba(219, 223, 205, 1) 100%);
    background-size: 10px 10px, 10px 10px, 100% 100%;
    background-position: 0 0, 5px 5px, 0 0;
}
.mapleup-character-cover-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.92);
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 28%, rgba(235, 238, 244, 0.98) 28%, rgba(216, 221, 229, 0.98) 62%, rgba(164, 173, 188, 0.94) 100%);
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.3),
        0 8px 18px rgba(0, 0, 0, 0.26),
        0 0 12px rgba(255, 255, 255, 0.14);
}
.mapleup-character-cover-slider input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.92);
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 28%, rgba(235, 238, 244, 0.98) 28%, rgba(216, 221, 229, 0.98) 62%, rgba(164, 173, 188, 0.94) 100%);
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.3),
        0 8px 18px rgba(0, 0, 0, 0.26),
        0 0 12px rgba(255, 255, 255, 0.14);
}
.mapleup-character-cover-slider input[type="range"]::-moz-range-track {
    height: 16px;
    border-radius: 999px;
    border: 0;
}
.mapleup-character-cover-option:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
}
.mapleup-character-cover-option.is-active {
    border-color: var(--accent);
    background: var(--surface-hover);
    box-shadow: inset 0 0 0 1px var(--accent);
}
.mapleup-character-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.7rem;
}
.mapleup-character-publish {
    width: min(100%, 240px);
    min-height: 52px;
    border: 1px solid var(--primary-button-bg);
    border-radius: 6px;
    background: var(--primary-button-bg);
    color: var(--primary-button-text);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.mapleup-character-publish:hover {
    border-color: var(--primary-button-bg-hover);
    background: var(--primary-button-bg-hover);
}
.mapleup-character-publish:focus-visible {
    outline: none;
    border-color: var(--interactive-accent);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.18);
}
.mapleup-character-publish:disabled {
    border-color: var(--primary-button-bg);
    background: var(--primary-button-bg);
    color: var(--primary-button-text);
    cursor: not-allowed;
    opacity: 0.56;
}
.mapleup-character-publish-secondary {
    border-color: var(--border);
    background: var(--surface);
    color: var(--text);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 10px 24px rgba(0, 0, 0, 0.14);
}
.mapleup-character-publish-secondary:hover {
    border-color: var(--border-hover);
    background: var(--surface-hover);
}
.mapleup-character-publish-secondary:disabled {
    border-color: var(--border);
    background: var(--surface);
    color: var(--text);
}
@keyframes mapleup-character-cover-export-sheen {
    0% {
        transform: translateX(-130%);
    }
    100% {
        transform: translateX(130%);
    }
}
@keyframes mapleup-character-cover-float {
    0%, 100% {
        transform: translate(
            calc(-50% + var(--mapleup-cover-character-offset-x, 0px)),
            var(--mapleup-cover-character-offset-y, 0px)
        );
    }
    50% {
        transform: translate(
            calc(-50% + var(--mapleup-cover-character-offset-x, 0px)),
            calc(var(--mapleup-cover-character-offset-y, 0px) - 5px)
        );
    }
}
.mapleup-character-cover-stage.is-solid-cover.is-export-loading .mapleup-character-cover-character {
    animation: mapleup-character-cover-float-solid 1.45s ease-in-out infinite;
}
@keyframes mapleup-character-cover-float-solid {
    0%, 100% {
        transform: translate(
            calc(-50% + var(--mapleup-cover-character-offset-x, 0px)),
            calc(-50% + var(--mapleup-cover-character-offset-y, 0px))
        );
    }
    50% {
        transform: translate(
            calc(-50% + var(--mapleup-cover-character-offset-x, 0px)),
            calc(-50% + var(--mapleup-cover-character-offset-y, 0px) - 5px)
        );
    }
}
@media (max-width: 680px) {
    .navbar {
        padding: 0 0.8rem;
    }
    .main-container {
        padding: 1.6rem 0.8rem 2rem;
    }
    .content-area,
    .history-container {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }
    .content-card,
    .history-container {
        padding: 1.2rem;
        border-radius: 6px;
    }
    .card-grid {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }
    .page-header h1 {
        font-size: 1.5rem;
    }
    .content-title,
    .history-container .page-title {
        font-size: 1.4rem;
    }
    .mapleup-history-body {
        padding: 1.2rem;
    }
    .mapleup-character-page {
        max-width: 100%;
        padding-left: 0.4rem;
        padding-right: 0.4rem;
    }
    .mapleup-character-searchbar {
        gap: 0.55rem;
    }
    .mapleup-character-steps {
        gap: 4.8rem;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .mapleup-character-steps::-webkit-scrollbar {
        display: none;
    }
    .mapleup-character-step {
        font-size: 0.84rem;
    }
    .mapleup-character-step:not(:last-child)::after {
        left: calc(100% + 0.95rem);
        width: 2.4rem;
    }
    .mapleup-character-searchfield {
        min-height: 36px;
        padding: 0 0.95rem;
    }
    .mapleup-character-search-button {
        min-width: 80px;
        min-height: 36px;
        height: 36px;
    }
    .mapleup-character-workbench {
        grid-template-columns: 1fr;
    }
    .mapleup-character-steps {
        width: 100%;
        justify-content: center;
        gap: 5.25rem;
        padding-inline: 0.5rem;
    }
    .mapleup-character-step:not(:last-child)::after {
        left: calc(100% + 1rem);
        width: 3.25rem;
    }
    .mapleup-character-cover-layout {
        grid-template-columns: 1fr;
    }
    .mapleup-character-cover-preview-card {
        min-height: 0;
        max-height: none;
        grid-template-rows: auto auto;
        gap: 0.65rem;
        align-content: start;
    }
    .mapleup-character-cover-selector-card {
        max-height: none;
        min-height: 0;
    }
    .mapleup-character-cover-expression-panel {
        width: 100%;
        justify-content: center;
        align-items: center;
        flex-wrap: nowrap;
    }
    .mapleup-character-cover-control {
        flex: 1 1 0;
        min-width: 0;
    }
    .mapleup-character-cover-expression-field {
        width: auto;
        flex: 1 1 auto;
        max-width: none;
    }
    .mapleup-character-cover-expression-trigger {
        width: 100%;
        max-width: none;
    }
    .mapleup-character-cover-stage {
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 3 / 4;
    }
    .mapleup-character-cover-character img {
        max-width: 100%;
        height: auto;
        max-height: none;
    }
    .mapleup-character-cover-color-topbar {
        grid-template-columns: 1fr;
    }
    .mapleup-character-cover-color-panel {
        min-height: 190px;
    }
    .mapleup-character-sidebar,
    .mapleup-character-panel {
        border-radius: 6px;
    }
    .mapleup-character-equipment-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .mapleup-character-results {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        justify-content: stretch;
    }
    .mapleup-character-result-card {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }
    .mapleup-character-result-icon {
        width: 100%;
        height: 100%;
    }
    .mapleup-character-results,
    .mapleup-character-empty {
        min-height: 0;
    }
    .mapleup-character-panel {
        min-height: 0;
    }
    .mapleup-character-panel-toolbar {
        align-items: center;
    }
    .mapleup-character-preview-toolbar {
        align-items: stretch;
    }
    .mapleup-character-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0;
    }
    .mapleup-character-tab {
        white-space: nowrap;
    }
    .mapleup-character-tab-nav {
        width: 36px;
        min-width: 36px;
        height: 36px;
        min-height: 36px;
        padding: 0;
    }
    .mapleup-character-cover-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: calc((100% - 1.7rem) / 3);
        width: 100%;
        aspect-ratio: 1 / 1;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
    }
    .mapleup-character-cover-option {
        height: 100%;
        min-height: 0;
    }
    .history-content .timeline-item,
    .history-container .timeline-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .history-content .timeline-side,
    .history-container .timeline-side {
        justify-content: flex-start;
    }
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-copyright {
        justify-content: center;
    }
    .footer-meta,
    .footer-menu .footer-menu-list,
    .footer-beian {
        justify-content: center;
    }
    /* Modal fullscreen on mobile */
    .modal-dialog {
        max-width: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        height: 100% !important;
    }
    .content-modal-dialog {
        width: 90vw !important;
        max-width: 90vw !important;
    }
    .mapleup-login-links,
    .mapleup-login-actions {
        flex-direction: column;
    }
    .mapleup-login-links a,
    .mapleup-login-btn {
        width: 100%;
    }
}

.gh-blog-container {
    max-width: 1120px;
    padding-top: 2rem;
}

.mapleup-protected-layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.mapleup-protected-card {
    width: 100%;
    max-width: 640px;
}
.mapleup-protected-entry {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    align-items: center;
}
.mapleup-protected-intro {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 420px;
}
.mapleup-protected-intro p {
    margin: 0;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.8;
}
.mapleup-protected-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}
.mapleup-password-error {
    width: 100%;
    max-width: 420px;
    padding: 0.8rem 0.95rem;
    border: 1px solid rgba(248, 81, 73, 0.35);
    border-radius: 12px;
    background: rgba(248, 81, 73, 0.08);
    color: #ffb4ae;
}
.mapleup-password-error p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.6;
}
.mapleup-password-panel .mapleup-login-intro p + p {
    margin-top: -0.2rem;
}

/* Blog Page — Repo Header */
.gh-repo-header-wrap {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 20;
}

.mapleup-donate-layout {
    display: flex;
    align-items: center;
}
.mapleup-donate-frame {
    max-width: 1120px;
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius-sm);
}
.mapleup-donate-topbar {
    border-bottom: 1px solid var(--border);
}
.mapleup-donate-topbar-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    min-width: 0;
}
.mapleup-donate-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 620px;
}
.mapleup-donate-layout ~ .page-transition-overlay,
body:has(.mapleup-donate-layout) .page-transition-overlay {
    pointer-events: none;
}
.mapleup-donate-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1.4rem;
    background: var(--bg-elevated);
    border-right: 1px solid var(--border);
}
.mapleup-donate-hero-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.mapleup-donate-hero h1 {
    margin: 0;
    font-size: clamp(1.85rem, 3vw, 2.8rem);
    line-height: 1.08;
    color: var(--text);
    letter-spacing: -0.03em;
}
.mapleup-donate-intro {
    color: var(--text-secondary);
}
.mapleup-donate-intro > :first-child {
    margin-top: 0;
}
.mapleup-donate-intro > :last-child {
    margin-bottom: 0;
}
.mapleup-donate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.2rem;
}
.mapleup-donate-actions .gh-btn,
.mapleup-donate-actions .gh-btn:hover,
.mapleup-donate-actions .gh-btn:focus-visible {
    text-decoration: none;
    white-space: nowrap;
}
.mapleup-donate-more-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.8rem;
}
.mapleup-donate-panel {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--bg-elevated);
}
.mapleup-donate-section {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02) inset;
}
.mapleup-donate-form-panel,
.mapleup-donate-records-panel,
.mapleup-donate-hero-group,
.mapleup-donate-goal-card {
    padding: 1rem;
}
.mapleup-donate-hero-group,
.mapleup-donate-goal-card,
.mapleup-donate-records-panel,
.mapleup-donate-form-panel {
    display: flex;
    flex-direction: column;
}
.mapleup-donate-hero-group,
.mapleup-donate-goal-card {
    min-height: 132px;
    height: 132px;
}
.mapleup-donate-records-panel,
.mapleup-donate-form-panel {
    flex: 1;
}
.mapleup-donate-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}
.mapleup-donate-section-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
}
.mapleup-donate-form-note {
    margin-bottom: 0.9rem;
    min-height: calc(0.78rem * 1.7 * 2);
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.7;
}
.mapleup-donate-hero-note {
    margin-bottom: 0;
}
.mapleup-donate-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.mapleup-donate-quick-selector {
    display: block;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-elevated);
}
.mapleup-donate-quick-caption {
    margin-top: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.76rem;
    line-height: 1.6;
}
.mapleup-donate-quick-caption span {
    color: var(--text);
    font-weight: 600;
}
.mapleup-donate-quick-amounts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}
.mapleup-donate-quick-amount {
    width: 100%;
    min-height: 82px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.6rem 0.4rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    overflow: hidden;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.mapleup-donate-quick-amount:hover,
.mapleup-donate-quick-amount.is-active {
    border-color: var(--border-hover);
    color: var(--text);
    background: var(--surface-hover);
}
.mapleup-donate-quick-amount-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}
.mapleup-donate-quick-amount .mapleup-donate-quick-amount-image {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mapleup-donate-quick-amount .mapleup-donate-quick-amount-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.mapleup-donate-quick-amount-name {
    display: block;
    max-width: 100%;
    color: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mapleup-donate-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.mapleup-donate-field span {
    color: var(--text);
    font-size: 0.76rem;
    font-weight: 600;
}
.mapleup-donate-field input {
    width: 100%;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-elevated);
    color: var(--text);
    padding: 0 12px;
    font: inherit;
}
.mapleup-donate-field input:focus {
    outline: none;
    border-color: var(--border-hover);
    box-shadow: 0 0 0 1px var(--border-hover);
}
.mapleup-donate-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.8rem;
    flex-wrap: wrap;
}
.mapleup-donate-goal-progress {
    margin-top: 0;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-hover);
    overflow: hidden;
}
.mapleup-donate-goal-progress-bar {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--primary-button-bg);
}
.mapleup-donate-goal-meta {
    margin-top: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
}
.mapleup-donate-goal-note {
    margin: 0.7rem 0 0;
    color: var(--text-secondary);
    font-size: 0.76rem;
    line-height: 1.7;
}
.mapleup-donate-goal-badges {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}
.mapleup-donate-goal-period-badge {
    color: var(--text-secondary);
}
.mapleup-donate-goal-period {
    margin: 0.7rem 0 0;
    color: var(--text-secondary);
    font-size: 0.74rem;
}
.mapleup-donate-records,
.mapleup-donate-form {
    flex: 1;
}
.mapleup-donate-submit {
    min-height: 40px;
    padding: 0 1rem;
    border: 0;
    border-radius: 10px;
    background: var(--primary-button-bg);
    color: var(--primary-button-text);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.mapleup-donate-submit:hover {
    background: var(--primary-button-bg-hover);
    color: var(--primary-button-text);
}
.mapleup-donate-submit:disabled {
    cursor: not-allowed;
    opacity: 0.56;
}
.mapleup-donate-status {
    color: var(--text-secondary);
    font-size: 0.76rem;
}
.mapleup-donate-status.is-error {
    color: #ff7b72;
}
.mapleup-donate-records {
    display: flex;
    flex-direction: column;
}
.mapleup-donate-record {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 0;
    border-top: 1px solid var(--border);
}
.mapleup-donate-record:first-child {
    padding-top: 0.2rem;
    border-top: 0;
}
.mapleup-donate-record-main {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}
.mapleup-donate-record-summary {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    min-width: 0;
    color: var(--text-secondary);
    font-size: 0.76rem;
    line-height: 1.65;
}
.mapleup-donate-record-main strong {
    color: var(--text);
    font-size: 0.82rem;
    flex-shrink: 0;
}
.mapleup-donate-record-summary span {
    min-width: 0;
}
.mapleup-donate-record-main p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.76rem;
    line-height: 1.65;
}
.mapleup-donate-record-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    white-space: nowrap;
}
.mapleup-donate-record-side span {
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 600;
}
.mapleup-donate-record-side time,
.mapleup-donate-empty {
    color: var(--text-tertiary);
    font-size: 0.74rem;
}
.mapleup-donate-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.mapleup-donate-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.mapleup-donate-modal-dialog {
    width: min(100%, 720px);
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    box-shadow: var(--shadow-modal);
    overflow: hidden;
    transform: translateY(12px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mapleup-donate-modal-overlay.active .mapleup-donate-modal-dialog {
    transform: translateY(0) scale(1);
}
.mapleup-donate-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border);
}
.mapleup-donate-modal-header h2 {
    margin: 0;
    font-size: 1rem;
    color: var(--text);
}
.mapleup-donate-modal-header p {
    margin: 0.28rem 0 0;
    color: var(--text-secondary);
    font-size: 0.78rem;
}
.mapleup-donate-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--muted-icon);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
}
.mapleup-donate-modal-close:hover {
    background: var(--content-close-hover-bg);
    color: var(--close-accent);
}
.mapleup-donate-modal-body {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    gap: 1rem;
    padding: 1.2rem;
    align-items: center;
}
.mapleup-donate-payment-qr {
    padding: 0.9rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    min-height: 258px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mapleup-donate-payment-qr img {
    display: block;
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
    height: auto;
}
.mapleup-donate-payment-qr img[hidden],
.mapleup-donate-payment-success-visual[hidden],
.mapleup-donate-payment-tip[hidden],
.mapleup-donate-payment-success-copy[hidden] {
    display: none !important;
}
.mapleup-donate-payment-success-visual {
    width: 100%;
    min-height: 220px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0.06) 100%);
    color: #15803d;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    text-align: center;
}
.mapleup-donate-payment-success-visual strong {
    font-size: 1.45rem;
    line-height: 1.2;
}
.mapleup-donate-payment-success-visual span {
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.75;
}
.mapleup-donate-payment-content {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.mapleup-donate-payment-tip {
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.7;
}
.mapleup-donate-payment-success-copy {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.mapleup-donate-payment-success-copy h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.05rem;
}
.mapleup-donate-payment-success-copy p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.8;
}
.mapleup-donate-payment-meta {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.mapleup-donate-payment-meta div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.mapleup-donate-payment-meta span {
    color: var(--text-tertiary);
    font-size: 0.72rem;
}
.mapleup-donate-payment-meta strong {
    color: var(--text);
    font-size: 0.82rem;
    word-break: break-all;
}
.mapleup-donate-payment-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.mapleup-donate-payment-action {
    min-height: 38px;
    justify-content: center;
}
.mapleup-donate-payment-actions [hidden] {
    display: none !important;
}
.mapleup-donate-payment-cancel {
    width: 100%;
    border-color: rgba(248, 113, 113, 0.4);
    color: #fca5a5;
}
.mapleup-donate-payment-cancel:hover {
    border-color: rgba(248, 113, 113, 0.7);
    background: rgba(248, 113, 113, 0.08);
    color: #fecaca;
}
.mapleup-donate-payment-cancel:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}
.mapleup-donate-supporters-modal-dialog {
    width: min(100%, 580px);
}
.mapleup-donate-supporters-modal-header {
    position: relative;
    justify-content: center;
    padding: 1.4rem 1.5rem 1.1rem;
}
.mapleup-donate-supporters-modal-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    text-align: center;
}
.mapleup-donate-supporters-modal-count {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.mapleup-donate-supporters-modal-laurel {
    width: 29px;
    height: 47px;
    color: var(--text-tertiary);
    opacity: 0.45;
    flex-shrink: 0;
}
.mapleup-donate-supporters-modal-laurel svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}
.mapleup-donate-supporters-modal-laurel-right {
    transform: scaleX(-1);
}
.mapleup-donate-supporters-modal-count-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}
.mapleup-donate-supporters-modal-count-number {
    color: var(--text);
    font-size: 1.9rem;
    font-weight: 700;
}
.mapleup-donate-supporters-modal-total-amount {
    margin-top: 0.18rem;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.35;
}
.mapleup-donate-supporters-modal-subtitle {
    margin: 0;
    color: var(--text-tertiary);
    font-size: 0.76rem;
    line-height: 1.5;
}
.mapleup-donate-supporters-modal-header .mapleup-donate-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
}
.mapleup-donate-supporters-modal-body {
    padding: 1.2rem;
    max-height: min(72vh, 760px);
    overflow-y: auto;
}
.mapleup-donate-supporters-modal-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.mapleup-donate-record-modal {
    padding: 1.1rem 0;
}
.mapleup-donate-record-modal:first-child {
    padding-top: 0;
}
.mapleup-donate-record-modal:last-child {
    padding-bottom: 0;
}
body.mapleup-donate-modal-open {
    overflow: hidden;
}

@media (max-width: 960px) {
    .mapleup-donate-shell {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .mapleup-donate-shell > .mapleup-donate-panel:not(.mapleup-donate-hero) {
        order: 1;
    }

    .mapleup-donate-shell > .mapleup-donate-hero {
        order: 2;
    }

    .mapleup-donate-hero,
    .mapleup-donate-panel {
        padding: 1rem;
    }

    .mapleup-donate-hero {
        border-right: none;
        border-top: 1px solid var(--border);
        border-bottom: none;
    }

    .mapleup-donate-quick-selector {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .mapleup-donate-modal-body {
        grid-template-columns: 1fr;
    }

    .mapleup-donate-record-modal {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .mapleup-donate-record-modal .mapleup-donate-record-main {
        flex: 1 1 auto;
        min-width: 0;
    }

    .mapleup-donate-record-modal .mapleup-donate-record-summary {
        flex-wrap: wrap;
    }

    .mapleup-donate-record-modal .mapleup-donate-record-side {
        flex: 0 0 auto;
        align-items: flex-end;
        text-align: right;
        white-space: nowrap;
    }

    .mapleup-donate-record-modal .mapleup-donate-record-side time {
        text-align: right;
    }

    .mapleup-donate-supporters-modal-dialog {
        width: min(100%, 620px);
    }
}

@media (max-width: 680px) {
    .mapleup-donate-topbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.6rem;
    }

    .mapleup-donate-topbar .gh-commit-info,
    .mapleup-donate-topbar-meta {
        width: auto;
        min-width: 0;
    }

    .mapleup-donate-topbar .gh-commit-msg {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mapleup-donate-topbar-meta {
        flex: 0 0 auto;
        gap: 0.5rem;
        justify-content: flex-end;
    }

    .mapleup-donate-hero,
    .mapleup-donate-panel {
        padding: 0.9rem;
    }

    .mapleup-donate-supporters-modal-header {
        padding: 1.15rem 1rem 1rem;
    }

    .mapleup-donate-supporters-modal-count {
        gap: 0.75rem;
    }

    .mapleup-donate-supporters-modal-laurel {
        width: 24px;
        height: 39px;
    }

    .mapleup-donate-supporters-modal-count-number {
        font-size: 1.65rem;
    }

    .mapleup-donate-form-panel,
    .mapleup-donate-records-panel,
    .mapleup-donate-hero-group,
    .mapleup-donate-goal-card {
        padding: 0.9rem;
    }

    .mapleup-donate-goal-card,
    .mapleup-donate-hero-group {
        min-height: 0;
        height: auto;
    }

    .mapleup-donate-goal-card .mapleup-donate-section-header {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .mapleup-donate-form-actions {
        align-items: stretch;
    }

    .mapleup-donate-goal-meta {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .mapleup-donate-goal-meta span:first-child {
        flex: 1 1 auto;
        min-width: 0;
        white-space: normal;
    }

    .mapleup-donate-goal-meta span:last-child {
        flex: 0 0 auto;
        white-space: nowrap;
        text-align: right;
    }

    .mapleup-donate-goal-note {
        margin-top: 0.6rem;
    }

    .mapleup-donate-quick-selector {
        padding: 0.9rem;
        gap: 0.75rem;
    }

    .mapleup-donate-quick-amounts {
        justify-content: center;
    }

    .mapleup-donate-submit {
        width: 100%;
    }

    .mapleup-donate-record {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .mapleup-donate-record-main {
        flex: 1 1 auto;
        min-width: 0;
    }

    .mapleup-donate-record-summary {
        flex-wrap: wrap;
    }

    .mapleup-donate-record-side {
        flex: 0 0 auto;
        align-items: flex-end;
        text-align: right;
        white-space: nowrap;
    }

    .mapleup-donate-record-side time {
        text-align: right;
    }

    .mapleup-donate-modal-overlay {
        padding: 0.75rem;
    }

    .mapleup-donate-modal-header,
    .mapleup-donate-modal-body {
        padding: 1rem;
    }
}
.gh-repo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 20;
}
.gh-repo-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
}
.gh-repo-avatar {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: block;
}
.gh-repo-name {
    color: var(--text);
    font-weight: 600;
    font-size: 1.25rem;
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.2s;
}
.gh-repo-name:hover {
    color: var(--text-secondary); /* Darken slightly on hover instead of blue */
    text-decoration: none;
}
.gh-badge {
    font-size: 0.75rem;
    padding: 0 7px;
    border: 1px solid var(--border);
    border-radius: 2em;
    color: var(--text-secondary);
    line-height: 1.5;
    font-weight: 500;
}

/* Blog Page — Header Actions */
.gh-repo-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 25;
}
.gh-btn-group {
    display: flex;
    align-items: stretch;
    transition: background 0.16s, border-color 0.16s;
    border-radius: 6px;
}
.gh-btn-group:hover .gh-btn {
    border-color: var(--text-secondary); /* Highlight both borders on hover */
}
.gh-btn-group .gh-btn {
    border-radius: 0;
    margin-left: -1px; /* Overlap the borders */
}
.gh-btn-group .gh-btn:first-of-type {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    margin-left: 0;
}
.gh-btn-group .gh-btn:last-of-type {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    padding: 0 8px;
}
.gh-btn {
    position: relative; /* Required for z-index overlap on hover */
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.16s, border-color 0.16s, color 0.16s; /* Avoid transitioning z-index */
    line-height: 20px;
}
.gh-btn:hover {
    background: var(--surface-hover);
    z-index: 10; /* Bring hovered button to front so all 4 borders are visible */
}
.gh-btn .iconfont {
    color: var(--text-secondary);
    font-size: 0.85rem;
}
.gh-btn-dropdown .icon-xiala {
    font-size: 0.6rem; /* Make the dropdown arrow smaller */
    transform: scale(0.8);
    display: inline-block;
}
.gh-count {
    background: rgba(128, 136, 148, 0.12);
    padding: 0 6px;
    border-radius: 1em;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 4px;
    display: inline-block;
    line-height: 1.4;
}

/* Blog Page — Dropdown Menu */
.gh-dropdown-wrapper {
    position: relative;
    z-index: 30;
}
.gh-dropdown-wrapper:hover,
.gh-dropdown-wrapper:focus-within {
    z-index: 35;
}
.gh-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 300px;
    max-width: 500px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}
.gh-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.gh-dropdown-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    transition: background 0.2s;
}
.gh-dropdown-item:last-child {
    border-bottom: none;
}
.gh-dropdown-item:hover {
    background: var(--surface-hover);
    text-decoration: none;
}
.gh-dropdown-item-center {
    justify-content: center;
    color: var(--text-secondary);
    padding: 4px 16px;
    font-size: 0.75rem;
}
.gh-dropdown-item-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex: 1;
    min-width: 0;
}
.gh-dropdown-title {
    font-weight: normal;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gh-dropdown-desc {
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.4;
    white-space: nowrap;
    margin-left: 12px;
}

/* Blog Page — Comment Dropdown Item */
.gh-comment-item {
    justify-content: space-between;
    align-items: flex-start;
}
.gh-comment-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.gh-comment-left img {
    /* border-radius: 50%; */
    flex-shrink: 0;
}
.gh-comment-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.gh-comment-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
}
.gh-comment-desc {
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gh-comment-time {
    color: var(--text-tertiary);
    font-size: 0.7rem;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 12px;
    padding-top: 2px;
}

/* Blog Page — Main Layout */
.gh-repo-content {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}
.gh-repo-content-static {
    display: block;
}
.gh-main-col {
    flex: 1;
    min-width: 0;
}
.gh-side-col {
    width: 296px;
    flex-shrink: 0;
}

/* Blog Page — Branch Bar / Search */
.gh-branch-bar {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 22;
}
.gh-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    background: var(--surface);
    border-radius: 6px;
    border: 1px solid var(--border);
    overflow: hidden;
}
.gh-category-tabs .gh-branch-btn {
    border: none;
    border-radius: 0;
    border-right: 1px solid var(--border);
    background: transparent;
    text-decoration: none;
}
.gh-category-tabs .gh-branch-btn:last-child {
    border-right: none;
}
.gh-category-tabs .gh-branch-btn.active {
    background: var(--interactive-accent-strong);
    color: var(--interactive-accent-text);
    border-color: var(--interactive-accent-strong);
}
.gh-category-tabs .gh-branch-btn.active .iconfont {
    color: var(--interactive-accent-text);
    font-weight: normal;
}
.gh-category-tabs .gh-branch-btn.active .gh-count {
    background: var(--interactive-accent-soft);
    color: var(--interactive-accent-text);
}
.gh-branch-btn {
    font-weight: 600;
}
.gh-branch-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
}
.gh-branch-stats a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}
.gh-branch-stats a:hover {
    color: var(--text);
}
.gh-branch-stats strong {
    color: var(--text);
}
.gh-search-file {
    margin-left: auto;
    position: relative;
    display: flex;
    align-items: center;
    z-index: 36;
}
.gh-search-form {
    margin: 0;
    padding: 0;
    display: inline;
}
.gh-search-icon {
    position: absolute;
    left: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    pointer-events: none;
}
.gh-search-shortcut {
    position: absolute;
    right: 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0 5px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.3;
    pointer-events: none;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
.gh-input {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0 28px 0 30px;
    border-radius: 6px;
    font-size: 0.85rem;
    width: 200px;
    height: 34px;
    box-sizing: border-box;
}
.gh-input:focus {
    outline: none;
    border-color: var(--text-secondary);
}

/* Blog Page — File Box / Header Post */
.gh-file-box {
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.gh-file-header {
    background: var(--surface);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 10px;
}
.gh-commit-info {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    min-height: 20px;
}
.mapleup-post-title-grid {
    display: grid;
    grid-template-columns: var(--mapleup-post-marker-width, 48px) var(--mapleup-post-visibility-width, 16px) minmax(0, 1fr);
    align-items: center;
    column-gap: 6px;
    row-gap: 0;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}
.mapleup-post-marker {
    display: flex;
    align-items: center;
    min-width: 0;
    width: 100%;
    min-height: 20px;
    overflow: visible;
}
.mapleup-post-visibility-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--mapleup-post-visibility-width, 16px);
    min-height: 20px;
}
.mapleup-post-visibility-slot.is-empty {
    color: transparent;
}
.mapleup-visibility-icon-placeholder {
    opacity: 0;
    pointer-events: none;
}
.mapleup-post-title-link {
    min-width: 0;
}
.gh-avatar {
    border-radius: 50%;
    width: 24px;
    height: 24px;
}
.gh-file-status {
    flex: 0 0 auto;
    color: var(--interactive-accent-strong);
    border-color: rgba(37, 99, 235, 0.22);
    background: rgba(37, 99, 235, 0.08);
    line-height: 1.45;
}
.gh-commit-author {
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.gh-commit-author:hover {
    color: var(--text-secondary);
    text-decoration: none;
}
.gh-commit-msg {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 20px;
}
.gh-commit-msg:hover {
    color: var(--text);
    text-decoration: none;
}
.gh-commit-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}
.gh-commit-hash {
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
.gh-commit-history {
    display: flex;
    align-items: center;
    gap: 4px;
}
.gh-commit-history:hover {
    color: var(--text);
    cursor: pointer;
}

/* Blog Page — File List */
.gh-file-list {
    background: var(--bg-elevated);
}
.gh-file-row {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    gap: 20px;
    transition: background 0.16s;
}
.gh-file-row:last-child {
    border-bottom: none;
}
.gh-file-row[data-href] {
    cursor: pointer;
}
.gh-file-row:hover,
.gh-file-row:focus-visible {
    background: var(--surface-hover);
}
.gh-file-row:focus-visible {
    outline: 2px solid var(--interactive-accent);
    outline-offset: -2px;
}
.gh-file-icon {
    color: var(--text-tertiary);
    flex-shrink: 0;
}
.gh-file-name a:hover {
    color: var(--interactive-accent);
    text-decoration: underline;
}
.gh-file-title-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    min-height: 20px;
}
.gh-commit-info.mapleup-post-title-grid,
.gh-file-title-group.mapleup-post-title-grid {
    display: grid;
    grid-template-columns: var(--mapleup-post-marker-width, 48px) var(--mapleup-post-visibility-width, 16px) minmax(0, 1fr);
    align-items: center;
    column-gap: 6px;
    row-gap: 0;
}
.gh-file-title-group.mapleup-post-title-grid-no-marker {
    grid-template-columns: var(--mapleup-post-visibility-width, 16px) minmax(0, 1fr);
}
.gh-commit-info.mapleup-post-title-grid-no-visibility,
.gh-file-title-group.mapleup-post-title-grid-no-visibility {
    grid-template-columns: var(--mapleup-post-marker-width, 48px) minmax(0, 1fr);
}
.gh-file-title-group.mapleup-post-title-grid-no-marker.mapleup-post-title-grid-no-visibility {
    grid-template-columns: minmax(0, 1fr);
}
.gh-file-cat {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    min-height: 20px;
    white-space: nowrap;
    min-width: 0;
    width: 100%;
}
.gh-file-cat a,
.gh-file-cat .gh-cat-label {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    margin: 0;
    display: inline-flex;
    align-items: center;
    height: 20px;
    box-sizing: border-box;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 18px;
}
.mapleup-file-category-label {
    max-width: 100%;
    padding-right: 6px;
    padding-left: 6px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    background: transparent;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gh-file-cat a:hover {
    color: var(--text);
    border-color: var(--text-tertiary);
}
.gh-file-name {
    flex: 1 1 auto;
    min-width: 0; /* Important to allow text truncation inside flex child */
    min-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gh-file-name a {
    display: block;
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: normal;
    height: 20px;
    line-height: 20px;
}
.gh-file-name a:hover {
    color: var(--text-secondary);
    text-decoration: none;
}
.gh-title-link {
    overflow: hidden;
    text-overflow: ellipsis;
}
.gh-file-msg {
    display: none;
}
.gh-file-date {
    text-align: right;
    color: var(--text-secondary);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}
.gh-file-meta-item {
    display: inline-block;
}
.gh-file-row-empty {
    padding: 20px;
    text-align: center;
}

/* Blog Page — Readme Box */
.gh-readme-box {
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 2rem;
}
.gh-readme-header {
    background: var(--surface);
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.gh-readme-content {
    background: var(--bg-elevated);
    padding: 32px;
    line-height: 1.6;
}
.gh-readme-content h1 {
    font-size: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.3em;
    margin-bottom: 16px;
}
.gh-readme-content h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.3em;
    margin-top: 24px;
    margin-bottom: 16px;
}
.gh-readme-content p {
    margin-bottom: 16px;
}
.gh-readme-content ul,
.entry-content ul {
    padding-left: 2em;
    list-style-type: circle;
    margin-bottom: 16px;
}
.gh-readme-content ol,
.entry-content ol {
    padding-left: 2em;
    list-style-type: decimal;
    margin-bottom: 16px;
}
.gh-readme-content li,
.entry-content li {
    padding-bottom: 0.25rem;
}
.gh-readme-content ul > li,
.gh-readme-content ol ul > li,
.entry-content ul > li,
.entry-content ol ul > li {
    list-style-type: circle;
}
.gh-readme-content ol > li,
.gh-readme-content ul ol > li,
.entry-content ol > li,
.entry-content ul ol > li {
    list-style-type: decimal;
}

/* Blog Page — Sidebar Widgets */
.gh-side-widget {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
}
.gh-side-widget:last-child {
    border-bottom: none;
}
.gh-widget-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.gh-about-desc {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.5;
}
.gh-about-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}
.gh-about-link a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.gh-about-link a:hover {
    color: var(--interactive-accent);
    text-decoration: none;
}

.gh-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1rem;
}
.gh-topic-tag {
    background: rgba(128,136,148,0.12);
    color: var(--text-secondary);
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.16s, color 0.16s;
    border: 1px solid transparent;
    line-height: 1.5;
}
.gh-topic-tag:hover {
    background: var(--interactive-accent);
    color: var(--interactive-accent-text);
    border-color: var(--interactive-accent);
}

.gh-about-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
}
.gh-about-stats a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.gh-about-stats a:hover {
    color: var(--interactive-accent);
}
.gh-about-stats a .iconfont {
    width: 16px;
    text-align: center;
}

.gh-empty-state {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.gh-sponsor-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.gh-sponsor-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-fast);
}
.gh-sponsor-links a:hover {
    background: var(--surface-hover);
    border-color: var(--text-secondary);
}

/* Blog Page — Pagination */
.gh-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 2rem;
}
.gh-pagination a, .gh-pagination span {
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text);
    text-decoration: none;
    background: var(--surface);
}
.gh-pagination a:hover {
    background: var(--surface-hover);
    border-color: var(--text-secondary);
}
.gh-pagination .current {
    background: var(--interactive-accent);
    color: var(--interactive-accent-text);
    border-color: var(--interactive-accent);
}

/* Blog Page Responsive */
@media (max-width: 768px) {
    .gh-blog-container {
        padding-top: 1.35rem;
    }

    .gh-repo-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .gh-main-col,
    .gh-side-col {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .gh-repo-header {
        align-items: flex-start;
    }

    .gh-repo-title {
        width: 100%;
        min-width: 0;
        flex-wrap: wrap;
    }

    .gh-repo-name {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .gh-repo-actions {
        width: 100%;
        gap: 10px;
    }

    .gh-repo-actions .gh-btn-group {
        flex: 1 1 0;
        min-width: 0;
    }

    .gh-repo-actions .gh-btn-group .gh-btn:first-of-type {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: space-between;
    }

    .gh-branch-bar {
        align-items: stretch;
        gap: 0.8rem;
    }

    .gh-category-tabs {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .gh-category-tabs .gh-branch-btn {
        flex-shrink: 0;
    }

    .gh-branch-stats {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.8rem 1rem;
        font-size: 0.8rem;
    }

    .gh-search-file {
        width: 100%;
        margin-left: 0;
    }

    .gh-search-form {
        display: block;
        width: 100%;
    }

    .gh-input {
        width: 100%;
    }

    #ghSearchWrapper .gh-dropdown-menu {
        left: 0;
        right: 0;
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }

    #ghSearchWrapper .gh-dropdown-item {
        padding: 10px 12px;
    }

    #ghSearchWrapper .gh-dropdown-item-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    #ghSearchWrapper .gh-dropdown-title,
    #ghSearchWrapper .gh-dropdown-desc {
        width: 100%;
        margin-left: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #ghSearchWrapper .gh-dropdown-desc {
        font-size: 0.72rem;
    }

    .gh-file-header:not(.mapleup-donate-topbar):not(.mapleup-store-topbar) {
        flex-direction: column;
        align-items: flex-start;
    }

    .gh-file-header:not(.mapleup-donate-topbar):not(.mapleup-store-topbar) .gh-commit-info {
        width: 100%;
        min-width: 0;
    }

    .gh-file-header:not(.mapleup-donate-topbar):not(.mapleup-store-topbar) .gh-commit-msg {
        flex: 1 1 auto;
        min-width: 0;
    }

    .gh-file-header .gh-file-date {
        width: 100%;
        justify-content: flex-start;
        gap: 10px;
        flex-wrap: wrap;
    }

    .gh-file-row {
        flex-wrap: wrap;
    }

    .gh-file-msg {
        flex-basis: 100%;
        order: 3;
        margin-top: 5px;
        padding: 0;
    }
}
.error-page-card {
    max-width: 980px;
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius-sm);
}
.error-page-topbar {
    border-bottom: 1px solid var(--border);
}
.error-page-topbar-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    min-width: 0;
}
.error-page-layout {
    display: flex;
    align-items: center;
}
.error-page-shell {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    min-height: 520px;
}
.error-page-hero {
    position: relative;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), transparent 38%),
        linear-gradient(180deg, var(--surface) 0%, var(--bg-elevated) 100%);
    border-right: 1px solid var(--border);
}
.error-page-hero-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto 0.5rem;
    object-fit: contain;
}
.error-page-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}
.error-page-stat {
    padding: 0.9rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.error-page-stat strong {
    font-size: 1rem;
    color: var(--text);
}
.error-page-stat span {
    font-size: 0.72rem;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.error-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.error-page-actions .gh-btn,
.error-page-actions .gh-btn:hover,
.error-page-actions .gh-btn:focus-visible {
    text-decoration: none;
    white-space: nowrap;
}
.error-page-panel {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--bg-elevated);
}
.error-page-search-form {
    position: relative;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.error-page-search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    pointer-events: none;
}
.error-page-search-input {
    width: 100%;
    max-width: none;
    flex: 1 1 auto;
    padding-left: 34px;
}
.error-page-search-form .gh-btn {
    flex: 0 0 auto;
    min-width: 68px;
    justify-content: center;
    white-space: nowrap;
    text-decoration: none;
}
.error-page-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.error-page-section {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02) inset;
}
.error-page-section-header {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.error-page-section-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
}
.error-page-list {
    display: flex;
    flex-direction: column;
}
.error-page-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition-fast), color var(--transition-fast);
}
.error-page-list-item:last-child {
    border-bottom: none;
}
.error-page-list-item:hover {
    background: var(--surface-hover);
    color: var(--text);
}
.error-page-list-main {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 600;
}
.error-page-list-main .iconfont {
    flex-shrink: 0;
    color: var(--text-secondary);
}
.error-page-list-main span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.error-page-list-meta {
    flex-shrink: 0;
    color: var(--text-secondary);
    font-size: 0.76rem;
}
.error-page-empty {
    padding: 1rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

@media (max-width: 768px) {
    .error-page-layout {
        align-items: stretch;
    }
    .error-page-shell {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .error-page-hero {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 1.4rem;
    }
    .error-page-panel {
        padding: 1rem;
    }
    .error-page-topbar {
        align-items: flex-start;
    }
    .error-page-stats {
        grid-template-columns: 1fr;
    }
    .error-page-search-form {
        flex-direction: column;
        align-items: stretch;
    }
    .error-page-grid {
        grid-template-columns: 1fr;
    }
    .error-page-list-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.45rem;
    }
    .gh-repo-content {
        flex-direction: column;
        align-items: stretch;
    }
    .gh-main-col,
    .gh-side-col {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    .gh-repo-header {
        align-items: flex-start;
    }
    .gh-repo-title {
        flex-wrap: wrap;
    }
    .gh-repo-actions {
        width: 100%;
        gap: 10px;
    }
    .gh-repo-actions .gh-btn-group {
        flex: 1 1 0;
        min-width: 0;
    }
    .gh-repo-actions .gh-btn-group .gh-btn:first-of-type {
        flex: 1;
        justify-content: space-between;
    }
    .gh-repo-actions .gh-dropdown-menu {
        left: 0;
        right: 0;
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }
    .gh-repo-actions .gh-dropdown-item {
        padding: 10px 12px;
    }
    .gh-repo-actions .gh-dropdown-item-content {
        width: 100%;
    }
    .gh-repo-actions .gh-dropdown-title,
    .gh-repo-actions .gh-dropdown-desc {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .gh-repo-actions .gh-comment-desc {
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: normal;
        margin-left: 0;
    }
    .gh-repo-actions .gh-comment-item {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        align-items: start;
        column-gap: 12px;
        row-gap: 6px;
    }
    .gh-repo-actions .gh-comment-left {
        display: contents;
    }
    .gh-repo-actions .gh-comment-left img {
        grid-column: 1;
        grid-row: 1 / span 2;
    }
    .gh-repo-actions .gh-comment-info {
        grid-column: 2;
        grid-row: 1;
    }
    .gh-repo-actions .gh-comment-name {
        display: block;
        line-height: 1.35;
        word-break: break-word;
    }
    .gh-repo-actions .gh-comment-time {
        display: none;
    }
    .gh-branch-bar {
        align-items: stretch;
        gap: 0.8rem;
    }
    .gh-category-tabs {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .gh-category-tabs .gh-branch-btn {
        flex-shrink: 0;
    }
    .gh-branch-stats {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.8rem 1rem;
        font-size: 0.8rem;
    }
    .gh-search-file {
        width: 100%;
        margin-left: 0;
    }
    .gh-search-form {
        display: block;
        width: 100%;
    }
    .gh-input {
        width: 100%;
    }
    #ghSearchWrapper .gh-dropdown-menu {
        left: 0;
        right: 0;
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }
    #ghSearchWrapper .gh-dropdown-item {
        padding: 10px 12px;
    }
    #ghSearchWrapper .gh-dropdown-item-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    #ghSearchWrapper .gh-dropdown-title,
    #ghSearchWrapper .gh-dropdown-desc {
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-left: 0;
    }
    #ghSearchWrapper .gh-dropdown-desc {
        font-size: 0.72rem;
    }
    .gh-side-col {
        width: 100%;
    }
    .gh-file-header:not(.mapleup-donate-topbar):not(.mapleup-store-topbar) {
        flex-direction: column;
        align-items: flex-start;
    }
    .gh-file-header:not(.mapleup-donate-topbar):not(.mapleup-store-topbar) .gh-commit-info {
        width: 100%;
        min-width: 0;
    }
    .gh-file-header:not(.mapleup-donate-topbar):not(.mapleup-store-topbar) .gh-commit-msg {
        flex: 1 1 auto;
        min-width: 0;
    }
    .gh-file-header .gh-file-date {
        width: 100%;
        justify-content: flex-start;
        gap: 10px;
        flex-wrap: wrap;
    }
    .gh-file-row {
        flex-wrap: wrap;
    }
    .gh-file-msg {
        flex-basis: 100%;
        order: 3;
        margin-top: 5px;
        padding: 0;
    }
}

