[v-cloak] {
    display: none;
}

* {
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
    --bg: #050814;
    --text: #edf2ff;
    --sidebar-bg: #070b16;
    --sidebar-border: rgba(148, 163, 184, 0.08);
    --muted: rgba(203, 213, 225, 0.46);
    --muted-strong: rgba(226, 232, 240, 0.8);
    --sidebar-strong: rgba(241, 245, 249, 0.9);
    --sidebar-icon-color: rgba(203, 213, 225, 0.72);
    --sidebar-icon-active: #cbd5e1;
    --card-bg: #0b1020;
    --card-radius: 18px;
    --topbar-icon-bg: #0a1020;
    --topbar-icon-border: rgba(148, 163, 184, 0.12);
    --topbar-icon-color: rgba(203, 213, 225, 0.78);
    --login-bg: linear-gradient(135deg, #111827, #1f2937);
    --login-border: rgba(148, 163, 184, 0.14);
    --login-text: rgba(255, 255, 255, 0.92);
    --search-bg: #0a1020;
    --search-border: rgba(148, 163, 184, 0.1);
    --search-text: rgba(203, 213, 225, 0.38);
    --search-btn-bg: #111827;
    --tab-text: rgba(203, 213, 225, 0.56);
    --tab-active: #f8fafc;
    --tab-line: #94a3b8;
    --auth-overlay: rgba(1, 4, 15, 0.62);
    --auth-panel-bg: #07101f;
    --auth-visual-fallback: linear-gradient(135deg, #0a1024, #2b1d67, #062f3a);
    --auth-form-bg: #060a16;
    --auth-card-bg: rgba(8, 13, 30, 0.92);
    --auth-card-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
    --auth-title: #f3f7ff;
    --auth-desc: rgba(205, 215, 255, 0.7);
    --auth-close-bg: rgba(34, 211, 238, 0.1);
    --auth-close-color: rgba(180, 230, 255, 0.82);
    --auth-field-bg: rgba(10, 16, 35, 0.95);
    --auth-field-border: rgba(34, 211, 238, 0.16);
    --auth-field-focus: #22d3ee;
    --auth-field-shadow: rgba(34, 211, 238, 0.22);
    --auth-submit-bg: linear-gradient(135deg, #7c3aed, #22d3ee);
    --auth-link: #22d3ee;
    --auth-text-muted: rgba(205, 215, 255, 0.72);
    --auth-agreement: rgba(205, 215, 255, 0.74);
}

:root[data-theme="light"], body.theme-light {
    color-scheme: light;
    --bg: #f4f5f8;
    --text: #1f1f1f;
    --sidebar-bg: #ffffff;
    --sidebar-border: rgba(15, 23, 42, 0.08);
    --muted: rgba(15, 23, 42, 0.52);
    --muted-strong: rgba(15, 23, 42, 0.78);
    --sidebar-strong: rgba(15, 23, 42, 0.8);
    --sidebar-icon-color: rgba(15, 23, 42, 0.58);
    --sidebar-icon-active: #cbd5e1;
    --card-bg: #ffffff;
    --topbar-icon-bg: #ffffff;
    --topbar-icon-border: rgba(15, 23, 42, 0.1);
    --topbar-icon-color: rgba(15, 23, 42, 0.72);
    --login-bg: linear-gradient(135deg, #111827, #1f2937);
    --login-border: transparent;
    --login-text: #ffffff;
    --search-bg: #ffffff;
    --search-border: rgba(15, 23, 42, 0.1);
    --search-text: rgba(15, 23, 42, 0.38);
    --search-btn-bg: #f1f5f9;
    --tab-text: rgba(15, 23, 42, 0.55);
    --tab-active: #111827;
    --tab-line: #94a3b8;
    --auth-overlay: rgba(15, 23, 42, 0.5);
    --auth-panel-bg: #ffffff;
    --auth-visual-fallback: linear-gradient(135deg, #0f172a, #111827);
    --auth-form-bg: #f8fafc;
    --auth-card-bg: #ffffff;
    --auth-card-shadow: 0 18px 55px rgba(15, 23, 42, 0.14);
    --auth-title: #1e293b;
    --auth-desc: #64748b;
    --auth-close-bg: rgba(15, 23, 42, 0.06);
    --auth-close-color: #334155;
    --auth-field-bg: #ffffff;
    --auth-field-border: #cbd5e1;
    --auth-field-focus: #22d3ee;
    --auth-field-shadow: rgba(34, 211, 238, 0.18);
    --auth-submit-bg: linear-gradient(135deg, #7c3aed, #22d3ee);
    --auth-link: #0ea5e9;
    --auth-text-muted: #64748b;
    --auth-agreement: #334155;
}

html, body {
    margin: 0;
    width: 100%;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(91, 33, 182, 0.45) transparent;
}

body::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

body::-webkit-scrollbar-thumb {
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
    background: linear-gradient(180deg, rgba(91, 33, 182, 0.50), rgba(6, 182, 212, 0.42));
}

body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(91, 33, 182, 0.78), rgba(6, 182, 212, 0.62));
}

:root[data-theme="light"] body,
body.theme-light {
    scrollbar-color: rgba(37, 99, 235, 0.42) transparent;
}

:root[data-theme="light"] body::-webkit-scrollbar-thumb,
body.theme-light::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.40), rgba(14, 165, 233, 0.34));
}

:root[data-theme="light"] body::-webkit-scrollbar-thumb:hover,
body.theme-light::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.68), rgba(14, 165, 233, 0.58));
}

.page {
    min-height: 100vh;
    overflow: hidden;
}

.page-header {
    position: sticky;
    top: 0;
    z-index: 30;
    height: 64px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--sidebar-bg);
    border-bottom: 1px solid var(--sidebar-border);
}

.page-header .mobile-toggle {
    display: none;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.header-right {
    flex-shrink: 0;
}

.page-header .brand-row {
    padding: 0;
    min-height: 0;
}

.page-header .brand-title {
    font-size: 18px;
}

.page-header .brand-subtitle {
    color: var(--muted);
}

.shell {
    display: block;
    min-height: calc(100vh - 64px);
    height: calc(100vh - 64px);
    transition: margin-left 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.shell.collapsed .left-rail {
    width: 64px;
}

.shell.collapsed .contact-card,
.shell.collapsed .sidebar-title,
.shell.collapsed .collapse-text {
    display: none;
}

.left-rail {
    position: fixed;
    left: 0;
    top: 64px;
    bottom: 0;
    width: 212px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    overflow: hidden;
    transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1), transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease;
    z-index: 20;
    display: flex;
    flex-direction: column;
}

.left-rail .sidebar {
    position: relative;
    top: auto;
    left: auto;
    bottom: auto;
    width: 100%;
    flex: 1;
    background: transparent;
    padding: 0 8px 12px;
    border-right: 0;
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 12px 10px;
    min-height: 58px;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand-text-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.15;
}

.brand-subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.2;
}

.brand-dot {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, #6d28d9, #a21caf);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
}

.brand-dot-text {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.sidebar-actions {
    flex: 0 0 auto;
    gap: 8px;
}

.sidebar-actions .login-btn {
    white-space: nowrap;
}

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

.collapse-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 10px 10px;
    cursor: pointer;
    user-select: none;
    color: var(--sidebar-strong, rgba(255, 255, 255, 0.8));
    transition: padding 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.shell.collapsed .collapse-toggle {
    justify-content: center;
    padding: 12px 0;
}

.collapse-arrow {
    font-size: 18px;
    line-height: 1;
    color: inherit;
    min-width: 18px;
    text-align: center;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.shell.collapsed .collapse-arrow {
    transform: rotate(180deg);
}

.collapse-text {
    font-size: 15px;
    font-weight: 700;
    color: inherit;
    white-space: nowrap;
    transition: opacity 0.2s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.sidebar-body {
    display: flex;
    flex-direction: column;
    height: calc(100% - 50px);
}

.sidebar-scroll {
    flex: 1;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.sidebar-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--sidebar-strong);
    padding: 8px 12px 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 10px 10px;
    border-radius: 16px;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
    contain: layout paint;
    text-decoration: none;
    color: var(--sidebar-strong);
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border: 1px solid transparent;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.menu-item:link,
.menu-item:visited,
.menu-item:hover,
.menu-item:active {
    text-decoration: none;
    color: var(--sidebar-strong);
}

.menu-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(91, 33, 182, 0.0), rgba(6, 182, 212, 0.0));
    opacity: 0;
    transition: opacity 0.22s ease, background 0.22s ease;
}

.menu-item::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: transparent;
    transition: background 0.28s ease, box-shadow 0.28s ease;
}

.menu-item.active::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(91, 33, 182, 0.18), rgba(6, 182, 212, 0.14));
}

.menu-item.active::after {
    background: linear-gradient(90deg, rgba(168, 85, 247, 1), rgba(34, 211, 238, 1));
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.35);
}

.shell:not(.collapsed) .menu-item:hover {
    background: linear-gradient(135deg, rgba(91, 33, 182, 0.12), rgba(6, 182, 212, 0.08));
    border-color: rgba(34, 211, 238, 0.16);
    box-shadow: 0 10px 24px rgba(7, 12, 24, 0.18);
    transform: translateY(-1px);
}

.shell:not(.collapsed) .menu-item:hover .menu-icon {
    transform: scale(1.08) rotate(-4deg);
    color: #e2e8f0;
}

.menu-item.collapsed {
    justify-content: center;
    padding: 12px 12px;
    min-height: 58px;
}

.menu-item.collapsed .menu-content,
.menu-item.collapsed .menu-badge {
    display: none;
}

.sidebar-body .menu-item.collapsed .menu-icon {
    display: inline-flex;
    margin-top: 0;
}

.menu-item.collapsed .menu-icon {
    margin-top: 0;
}

.menu-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--sidebar-icon-color);
    position: relative;
    z-index: 1;
    transition: transform 0.22s ease, color 0.22s ease, filter 0.22s ease;
}

.menu-item.active .menu-icon {
    color: #f8fafc;
    filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.28));
}

.menu-icon::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: currentColor;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
}

.icon-home::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M9 20v-6h6v6'/%3E%3C/svg%3E"); }
.icon-assets::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16v12H4z'/%3E%3Cpath d='M4 11h16'/%3E%3Cpath d='M9 7V5h6v2'/%3E%3C/svg%3E"); }
.icon-dream::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19V5'/%3E%3Cpath d='M4 19h16'/%3E%3Cpath d='M8 15l3-3 2 2 4-5 3 4'/%3E%3Ccircle cx='8' cy='8' r='1.5'/%3E%3C/svg%3E"); }
.icon-grok::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l2.8 5.7L21 9l-4.5 4.4L17.6 20 12 17l-5.6 3 1.1-6.6L3 9l6.2-1.3L12 2z'/%3E%3C/svg%3E"); }
.icon-video::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='14' height='12' rx='2'/%3E%3Cpath d='M17 10l4-2v8l-4-2'/%3E%3C/svg%3E"); }
.icon-sora::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 16l5-6 4 4 7-8'/%3E%3Cpath d='M4 20h16'/%3E%3C/svg%3E"); }
.icon-wanxiang::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 4v16M4 12h16'/%3E%3C/svg%3E"); }
.icon-banana::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 15c4 5 11 5 14-2-5 2-8-2-9-7-3 2-5 5-5 9z'/%3E%3C/svg%3E"); }
.icon-image::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.5'/%3E%3Cpath d='M20 16l-5-5-7 7'/%3E%3C/svg%3E"); }
.icon-qwen::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.7 5.5L20 9l-4 4 1 5.5L12 16l-5 2.5L8 13 4 9l5.3-.5L12 3z'/%3E%3C/svg%3E"); }
.icon-ai-image::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='14' rx='2'/%3E%3Cpath d='M8 14l2.5-3 2 2 3-4 2.5 3'/%3E%3Ccircle cx='9' cy='10' r='1.2'/%3E%3C/svg%3E"); }
.icon-ai-video::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='14' height='12' rx='2'/%3E%3Cpath d='M17 10l4-2v8l-4-2'/%3E%3Cpath d='M8 9.5l5 3-5 3z'/%3E%3C/svg%3E"); }
.icon-portrait::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 21v-2a5 5 0 0 1 10 0v2'/%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3C/svg%3E"); }
.icon-layout::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='2'/%3E%3Cpath d='M8 4v16M4 10h16'/%3E%3C/svg%3E"); }
.icon-clone::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='7' width='12' height='12' rx='2'/%3E%3Cpath d='M5 17V5h12'/%3E%3C/svg%3E"); }
.icon-cut::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h10l6 5-6 5H4z'/%3E%3Cpath d='M4 7l8 10'/%3E%3Cpath d='M12 17l3 4'/%3E%3C/svg%3E"); }
.icon-edit::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5l4 4L8 20l-4 1 1-4z'/%3E%3C/svg%3E"); }

.menu-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.18s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    z-index: 1;
}

.menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.menu-text {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-desc {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.3;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-badge {
    flex-shrink: 0;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #ff4d4f;
    font-size: 14px;
    line-height: 22px;
    color: #fff;
    opacity: 1;
    transition: opacity 0.18s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.shell.collapsed .menu-content,
.shell.collapsed .menu-badge {
    opacity: 0;
    transform: translateX(-8px);
    pointer-events: none;
}

.shell:not(.collapsed) .menu-content,
.shell:not(.collapsed) .menu-badge {
    transition-delay: 0.12s;
}

.shell.collapsed .menu-item::after {
    height: 4px;
}

.menu-badge {
    flex-shrink: 0;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #ff4d4f;
    font-size: 14px;
    line-height: 22px;
    color: #fff;
}

.contact-card {
    margin-top: 10px;
    padding: 14px 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, #5b21b6, #9333ea);
    flex-shrink: 0;
}

.contact-title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.contact-desc {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.contact-btn {
    margin-top: 14px;
    height: 34px;
    border-radius: 999px;
    background: #fff;
    color: #5b21b6;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main {
    margin-left: 236px;
    padding: 14px 16px 18px;
    height: calc(100vh - 64px);
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(91, 33, 182, 0.45) transparent;
    transition: margin-left 0.28s ease;
}

.main::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

.main::-webkit-scrollbar-thumb {
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
    background: linear-gradient(180deg, rgba(91, 33, 182, 0.50), rgba(6, 182, 212, 0.42));
}

.main::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(91, 33, 182, 0.78), rgba(6, 182, 212, 0.62));
}

:root[data-theme="light"] .main,
body.theme-light .main {
    scrollbar-color: rgba(37, 99, 235, 0.42) transparent;
}

:root[data-theme="light"] .main::-webkit-scrollbar-thumb,
body.theme-light .main::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.40), rgba(14, 165, 233, 0.34));
}

:root[data-theme="light"] .main::-webkit-scrollbar-thumb:hover,
body.theme-light .main::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.68), rgba(14, 165, 233, 0.58));
}

.home-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 0;
}

.platform-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 18px;
    padding: 28px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top left, rgba(124, 58, 237, 0.34), transparent 30%),
        radial-gradient(circle at bottom right, rgba(6, 182, 212, 0.24), transparent 28%),
        linear-gradient(135deg, rgba(8, 12, 24, 0.95), rgba(10, 16, 35, 0.90));
    border: 1px solid rgba(148, 163, 184, 0.10);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
    margin-bottom: 18px;
}

.platform-hero::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(6, 182, 212, 0.12), rgba(168, 85, 247, 0.12));
    opacity: 0.55;
    pointer-events: none;
}

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

body.theme-light .platform-hero {
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.12), transparent 26%),
        linear-gradient(135deg, rgba(255,255,255,0.98), rgba(244,247,255,0.96));
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.platform-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #93c5fd;
    margin-bottom: 12px;
}

.platform-kicker::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #22d3ee, #7c3aed);
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.55);
}

body.theme-light .platform-kicker {
    color: #2563eb;
}

.platform-hero h1 {
    margin: 0 0 10px;
    font-size: 36px;
    letter-spacing: 0.02em;
}

.platform-hero p {
    margin: 0;
    color: rgba(255,255,255,0.74);
    line-height: 1.8;
    max-width: 62ch;
}

body.theme-light .platform-hero p {
    color: rgba(17,24,39,0.74);
}

.platform-hero-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.platform-mini-card,
.platform-feature-card {
    position: relative;
    border-radius: 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    padding: 16px;
    overflow: hidden;
}

.platform-mini-card::after,
.platform-feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.06), transparent 38%, rgba(255,255,255,0.03));
    pointer-events: none;
}

body.theme-light .platform-mini-card,
body.theme-light .platform-feature-card {
    background: rgba(255,255,255,0.88);
    border-color: rgba(15,23,42,0.08);
    box-shadow: 0 14px 30px rgba(15,23,42,0.06);
}

.platform-mini-label {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.54);
    margin-bottom: 6px;
}

body.theme-light .platform-mini-label {
    color: rgba(15,23,42,0.52);
}

.platform-mini-card strong,
.platform-feature-card h3 {
    display: block;
    font-size: 16px;
    margin: 0 0 6px;
}

.platform-mini-card small,
.platform-feature-card p {
    display: block;
    color: rgba(255,255,255,0.72);
    line-height: 1.6;
}

body.theme-light .platform-mini-card small,
body.theme-light .platform-feature-card p {
    color: rgba(17,24,39,0.70);
}

.platform-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.platform-feature-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    min-height: 150px;
}

.platform-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.32);
}

.ai-entry-wrap {
    width: 100%;
    height: calc(100vh - 64px - 32px);
    min-height: calc(100vh - 64px - 32px);
    overflow: hidden;
}

.ai-entry-frame {
    width: 100%;
    height: 100%;
    min-height: 100%;
    border: 0;
    border-radius: 20px;
    background: transparent;
    overflow: auto;
    display: block;
    -webkit-overflow-scrolling: touch;
}

.shell.collapsed .main {
    margin-left: 72px;
}

.main::-webkit-scrollbar {
    width: 8px;
}

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

.main::-webkit-scrollbar-thumb {
    background: rgba(91, 33, 182, 0.35);
    border-radius: 999px;
}

.shell.collapsed .sidebar-scroll {
    padding-top: 8px;
}

.page-hero {
    margin-bottom: 14px;
}

.page-hero-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hero-search-bar-wrap {
    margin-bottom: 0;
    flex: 0 0 420px;
    max-width: 520px;
    width: 100%;
}

.hero-search-bar-wrap .search-box {
    width: 100%;
}

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

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.title-wrap {
    display: flex;
    flex-direction: column;
}

.hamburger {
    font-size: 24px;
    color: var(--topbar-icon-color);
    transition: transform 0.28s ease, color 0.28s ease;
}

.mobile-toggle {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--topbar-icon-bg);
    border: 1px solid var(--topbar-icon-border);
}

.shell.mobileOpen .mobile-toggle {
    color: var(--topbar-icon-color);
    transform: rotate(90deg);
}

.page-title {
    display: block;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
}

.page-subtitle {
    display: block;
    margin-top: 4px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.42);
}

.theme-light .page-subtitle,
:root[data-theme="light"] .page-subtitle {
    color: rgba(15, 23, 42, 0.52);
}

.page-subtitle.theme-accent {
    color: var(--tab-line);
    transition: color 0.28s ease;
}

/* hero background removed */

.topbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 1;
}

.icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--topbar-icon-border);
    background: var(--topbar-icon-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

.icon-svg {
    display: inline-block;
    width: 16px;
    height: 16px;
    color: var(--topbar-icon-color);
}

.icon-svg::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: currentColor;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
}

.bell-icon::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 17H5a2 2 0 0 1-2-2v-5a9 9 0 0 1 18 0v5a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='M13 21a2 2 0 0 1-4 0'/%3E%3C/svg%3E");
}

.sun-icon::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41'/%3E%3C/svg%3E");
}

.moon-icon::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6.5 6.5 0 0 0 9 9 9 9 0 1 1-9-9Z'/%3E%3C/svg%3E");
}

.login-btn {
    height: 34px;
    padding: 0 18px;
    border-radius: 8px;
    background: var(--login-bg);
    border: 1px solid var(--login-border);
    font-size: 16px;
    line-height: 34px;
    color: var(--login-text);
    font-weight: 700;
    cursor: pointer;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
    min-width: 0;
    max-width: 100%;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #22c55e, #0ea5e9);
    color: #fff;
    font-weight: 700;
    flex: 0 0 auto;
}

.user-name-desktop {
    display: inline-block;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.logout-btn {
    height: 34px;
    padding: 0 16px;
    border: 1px solid rgba(248, 113, 113, 0.28);
    border-radius: 8px;
    background: rgba(248, 113, 113, 0.08);
    color: #fb7185;
    font-weight: 700;
    cursor: pointer;
    flex: 0 0 auto;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.auth-modal-mask {
    position: absolute;
    inset: 0;
    background: var(--auth-overlay);
    backdrop-filter: blur(8px);
}

.auth-modal-panel {
    position: relative;
    z-index: 1;
    width: 100vw;
    height: 100vh;
    display: flex;
    overflow: hidden;
    background: var(--auth-panel-bg);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    border-radius: 0;
}

.auth-modal-visual,
.auth-modal-form-wrap {
    flex: 1;
    position: relative;
}

.auth-modal-visual {
    background: var(--auth-visual-fallback);
    overflow: hidden;
}

.auth-modal-visual::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle, rgba(255,255,255,0.22), transparent 55%);
    animation: auth-spin 16s linear infinite;
    opacity: 0.45;
}

.auth-modal-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-modal-form-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: var(--auth-form-bg);
    overflow-y: auto;
}

.auth-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 18px;
    background: var(--auth-close-bg);
    color: var(--auth-close-color);
    font-size: 28px;
    line-height: 40px;
    cursor: pointer;
    z-index: 2;
}

.auth-form-block {
    width: 100%;
    max-width: 500px;
    background: var(--auth-card-bg);
    border-radius: 20px;
    box-shadow: var(--auth-card-shadow);
    padding: 40px 48px 32px;
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-header h2 {
    margin: 0 0 8px;
    font-size: 40px;
    line-height: 1.2;
    color: var(--auth-title);
    font-weight: 600;
}

.auth-header p {
    margin: 0;
    font-size: 14px;
    color: var(--auth-desc);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-field input {
    width: 100%;
    height: 48px;
    border: 1px solid var(--auth-field-border);
    border-radius: 12px;
    padding: 0 16px;
    font-size: 16px;
    outline: none;
    background: var(--auth-field-bg);
}

.auth-field input:focus {
    border-color: var(--auth-field-focus);
    box-shadow: 0 0 0 3px var(--auth-field-shadow);
}

.auth-submit-btn {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 12px;
    background: var(--auth-submit-bg);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.auth-submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.75;
}

.auth-error {
    margin-top: -6px;
    color: #f87171;
    font-size: 13px;
    line-height: 1.5;
}

.gi-task-empty-state,
.gv-task-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    border-radius: 24px;
    padding: 36px 24px;
    text-align: center;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.88));
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.22);
    position: relative;
    overflow: hidden;
}

.gi-task-empty-state::before,
.gv-task-empty-state::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(34, 211, 238, 0.18), transparent 38%), radial-gradient(circle at bottom right, rgba(99, 102, 241, 0.18), transparent 34%);
    pointer-events: none;
}

.gi-task-empty-icon-wrap,
.gv-task-empty-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(99, 102, 241, 0.18));
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    z-index: 1;
}

.gi-task-empty-icon,
.gv-task-empty-icon {
    font-size: 32px;
    line-height: 1;
}

.gi-task-empty-title,
.gv-task-empty-title {
    position: relative;
    z-index: 1;
    font-size: 22px;
    font-weight: 800;
    color: #f8fafc;
}

.gi-task-empty-desc,
.gv-task-empty-desc {
    position: relative;
    z-index: 1;
    margin-top: 10px;
    max-width: 360px;
    color: rgba(226, 232, 240, 0.82);
    line-height: 1.7;
}

.gi-task-empty-actions,
.gv-task-empty-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.gi-task-empty-btn,
.gv-task-empty-btn {
    min-width: 120px;
    height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    border: 0;
    font-weight: 800;
    cursor: pointer;
}

.gi-task-empty-btn.primary,
.gv-task-empty-btn.primary {
    color: #fff;
    background: linear-gradient(135deg, #06b6d4, #6366f1);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.26);
}

.gi-task-empty-btn.ghost,
.gv-task-empty-btn.ghost {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.auth-switch-row {
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
    color: var(--auth-text-muted);
}


.auth-link-btn {
    border: 0;
    background: transparent;
    color: var(--auth-link);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.auth-agreement {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--auth-agreement);
}

.auth-agreement input {
    margin: 0;
}

@keyframes auth-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.search-bar-wrap {
    margin-bottom: 12px;
}

.search-box {
    width: 320px;
    height: 32px;
    padding: 0 10px;
    border-radius: 6px;
    background: var(--search-bg);
    border: 1px solid var(--search-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-icon,
.search-placeholder {
    font-size: 16px;
    color: var(--search-text);
}

.search-placeholder {
    flex: 1;
}

.search-btn {
    height: 22px;
    padding: 0 12px;
    border-radius: 4px;
    background: var(--search-btn-bg);
    font-size: 14px;
    line-height: 22px;
    color: var(--text);
}

.tabs-wrap {
    overflow: hidden;
    margin-bottom: 14px;
}

.tabs {
    white-space: nowrap;
    overflow-x: auto;
}

.tab {
    display: inline-block;
    margin-right: 20px;
    font-size: 18px;
    color: var(--tab-text);
}

.tab.active {
    color: var(--tab-active);
    font-weight: 700;
}

.tab.active::after {
    content: '';
    display: block;
    margin-top: 7px;
    height: 2px;
    background: var(--tab-line);
}

.masonry-wrap {
    position: relative;
    min-height: 0;
}

.masonry {
    columns: 6 220px;
    column-gap: 10px;
    max-height: none;
    overflow: visible;
    min-height: 0;
}

.card {
    position: relative;
    display: inline-block;
    width: 100%;
    margin: 0 0 8px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--card-bg);
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

.card-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    opacity: 0;
    transform: translateY(8px) scale(0.985);
    filter: blur(6px);
    transition:
        opacity 0.55s ease,
        transform 0.55s ease,
        filter 0.55s ease;
}

.card.loaded .card-image {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.card:nth-child(5n+1) .card-image { transition-delay: 0ms; }
.card:nth-child(5n+2) .card-image { transition-delay: 80ms; }
.card:nth-child(5n+3) .card-image { transition-delay: 160ms; }
.card:nth-child(5n+4) .card-image { transition-delay: 240ms; }
.card:nth-child(5n+5) .card-image { transition-delay: 320ms; }

@media (max-width: 1600px) {
    .card:nth-child(4n+1) .card-image { transition-delay: 0ms; }
    .card:nth-child(4n+2) .card-image { transition-delay: 80ms; }
    .card:nth-child(4n+3) .card-image { transition-delay: 160ms; }
    .card:nth-child(4n+4) .card-image { transition-delay: 240ms; }
}

@media (max-width: 1280px) {
    .card:nth-child(3n+1) .card-image { transition-delay: 0ms; }
    .card:nth-child(3n+2) .card-image { transition-delay: 80ms; }
    .card:nth-child(3n+3) .card-image { transition-delay: 160ms; }
}

@media (max-width: 960px) {
    .card:nth-child(2n+1) .card-image { transition-delay: 0ms; }
    .card:nth-child(2n+2) .card-image { transition-delay: 110ms; }
}

.card.loaded .card-image {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.card-label {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    height: 18px;
    padding: 0 5px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.45);
    font-size: 11px;
    line-height: 18px;
    color: #fff;
}

.card-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px 10px 10px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.84));
}

.card-title {
    display: block;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    color: #fff;
}

.loading-state {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border-radius: 18px;
    background: var(--card-bg);
}

.loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    backdrop-filter: blur(4px);
}

.loading-spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.18);
    border-top-color: var(--theme-accent, #6c7cff);
    animation: spin 0.9s linear infinite;
}

.loading-text {
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 1920px) {
    .masonry {
        columns: 6 220px;
        column-gap: 10px;
    }
}

@media (max-width: 1920px) {
    .masonry {
        columns: 5 220px;
        column-gap: 10px;
    }
}

@media (max-width: 1600px) {
    .masonry {
        columns: 4 220px;
        column-gap: 10px;
    }
}

@media (max-width: 1280px) {
    .masonry {
        columns: 3 220px;
        column-gap: 10px;
    }
}

@media (max-width: 960px) {
    .page-header {
        padding: 0 14px;
        height: 60px;
    }

    .page-header .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 12px;
        border: 1px solid var(--sidebar-border);
        background: var(--topbar-icon-bg);
        color: var(--topbar-icon-color);
        cursor: pointer;
        flex: 0 0 auto;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    .page-header .mobile-toggle:active {
        transform: scale(0.96);
    }

    .page-hero-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .hero-search-bar-wrap {
        flex: 1 1 auto;
        max-width: none;
        width: 100%;
    }

    .hero-search-bar-wrap .search-box {
        width: 100%;
    }

    .masonry {
        columns: 1 100%;
        column-gap: 0;
    }

    .card {
        margin-bottom: 12px;
    }

    .card-image {
        aspect-ratio: 3 / 4;
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .card-footer {
        padding: 18px 10px 10px;
    }

    .card-title {
        font-size: 14px;
        line-height: 1.3;
    }

    .shell {
        overflow-x: hidden;
    }

    .left-rail {
        width: 280px;
        top: 60px;
        transform: translateX(-100%);
        box-shadow: 8px 0 24px rgba(0, 0, 0, 0.35);
        background: var(--sidebar-bg);
        z-index: 35;
        pointer-events: none;
    }

    .shell.mobileOpen .left-rail {
        transform: translateX(0);
        pointer-events: auto;
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 60px 0 0 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 34;
    }

    .sidebar-header {
        min-height: 60px;
        padding: 12px 14px 10px;
    }

    .page-hero-inner {
        width: 100%;
        background: transparent;
        border: 0;
        box-shadow: none;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
    }

    .hero-copy {
        flex: 1 1 180px;
    }

    .hero-search-bar-wrap {
        flex: 1 1 280px;
        min-width: 0;
    }

    .auth-modal-panel {
        flex-direction: column;
    }

    .auth-modal-form-wrap {
        background: var(--auth-form-bg);
    }

    .auth-modal-visual {
        min-height: 220px;
    }

    .auth-modal-form-wrap {
        padding: 18px;
    }

    .auth-form-block {
        padding: 28px 20px 22px;
    }

    .auth-header h2 {
        font-size: 28px;
    }

    .sidebar-actions {
        gap: 6px;
    }

    .left-rail .sidebar {
        padding-top: 0;
    }

    .platform-hero,
    .platform-features {
        padding-left: 16px;
        padding-right: 16px;
    }

    .platform-hero {
        margin: 0 0 16px;
        border-radius: 20px;
    }

    .platform-hero h1 {
        font-size: 30px;
        line-height: 1.15;
    }

    .platform-hero p {
        font-size: 14px;
    }

    .platform-hero-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .platform-mini-card,
    .platform-feature-card {
        border-radius: 18px;
    }

    .platform-feature-card {
        padding: 16px;
    }

    .ai-entry-wrap {
        min-height: calc(100vh - 94px);
        padding: 10px 12px 16px;
    }

    .ai-entry-frame {
        border-radius: 18px;
    }

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

    .login-btn {
        height: 36px;
        line-height: 36px;
        font-size: 16px;
        padding: 0 16px;
    }

    .user-menu {
        width: 100%;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        min-width: 0;
    }

    .auth-quick-actions,
    .gi-task-empty-actions,
    .gv-task-empty-actions {
        flex-direction: column;
        width: 100%;
    }

    .auth-quick-btn,
    .gi-task-empty-btn,
    .gv-task-empty-btn {
        width: 100%;
    }

    .user-info {
        flex: 0 0 auto;
        justify-content: flex-start;
        min-width: 0;
        padding: 6px 8px;
    }

    .user-name-desktop {
        display: none;
    }

    .logout-btn {
        width: auto;
        padding: 0 10px;
        font-size: 12px;
        height: 32px;
    }

    .shell {
        flex-direction: column;
    }

    .main {
        margin-left: 0;
        width: 100%;
        padding: 14px 16px 18px;
    }

    .shell.collapsed .main {
        margin-left: 0;
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 15;
    }

    .desktop-toggle {
        display: none;
    }

    .masonry {
        columns: 1 100%;
        column-gap: 0;
    }

    .page-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        height: 60px;
        padding: 0 14px;
    }

    .page-hero-inner {
        padding: 10px 0 12px;
        background: transparent;
        border: 0;
        box-shadow: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 12px;
        flex-wrap: nowrap;
    }

    .hero-copy,
    .hero-search-bar-wrap {
        width: 100%;
        flex: 1 1 auto;
    }

    .hero-search-bar-wrap {
        min-width: 0;
    }

    .page-header .mobile-toggle {
        display: inline-flex;
        border: 1px solid var(--topbar-icon-border);
        background: var(--topbar-icon-bg);
    }

    .header-left {
        min-width: 0;
        gap: 10px;
    }

    .page-header .brand-title {
        font-size: 16px;
    }

    .page-header .brand-subtitle {
        font-size: 12px;
    }

    .sidebar-actions {
        flex-wrap: nowrap;
        justify-content: flex-end;
        flex: 0 0 auto;
    }

    .search-bar-wrap {
        margin-bottom: 12px;
    }

    .search-box {
        width: 100%;
        min-height: 44px;
        height: auto;
        padding: 8px 12px;
        align-items: center;
        gap: 8px;
    }

    .search-icon,
    .search-placeholder {
        font-size: 15px;
        line-height: 1.2;
    }

    .search-btn {
        flex: 0 0 auto;
        height: 28px;
        line-height: 28px;
        font-size: 14px;
        padding: 0 12px;
        margin-left: 8px;
    }

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

    .tabs {
        display: flex;
        flex-wrap: wrap;
        overflow: visible;
        white-space: normal;
        gap: 12px 20px;
    }

    .tab {
        margin-right: 0;
    }
}

@media (min-width: 961px) {
    .mobile-toggle,
    .sidebar-backdrop {
        display: none;
    }
}
