/* Generated from scripts/script_manifest_source.js by scripts/generate_script_manifest.js. */
/* CSS bundle entry: assets/styles/platform-shell.css */
/* Source: assets/styles/platform-shell-header.css */
/* 平台壳层：基础与顶栏 */

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    min-height: 100%;
    background: #f0f2f5;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #f0f2f5;
    color: #333;
    font-size: 12px;
    min-height: 100dvh;
}

.header {
    background: linear-gradient(135deg, #1a3a6b, #2563eb);
    color: #fff;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    min-height: 64px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
    position: sticky;
    top: 0;
    z-index: 50;
    gap: 12px;
    flex-wrap: wrap;
}

.header h1 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .5px;
    white-space: nowrap;
}

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

.header-brand-logo {
    display: block;
    width: auto;
    height: 34px;
    max-width: 128px;
    object-fit: contain;
    flex: 0 0 auto;
}

.header-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.header-brand-sub {
    font-size: 11px;
    color: rgba(255,255,255,.82);
    line-height: 1.5;
}

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

body.app-booting .header-actions {
    display: none !important;
}

.auth-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
    position: relative;
}

.auth-chip {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
}

.auth-user-wrap {
    position: relative;
}

.is-hidden-by-default {
    display: none;
}

.auth-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

.auth-user-btn::after {
    content: '▾';
    font-size: 10px;
    opacity: .75;
}
/* Source: assets/styles/platform-shell-nav.css */
/* 平台壳层：导航 */

.tabs {
    margin-left: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.tab {
    padding: 5px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, .35);
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.tab:hover {
    background: rgba(255, 255, 255, .15);
}

.tab.active {
    background: #fff;
    color: #2563eb;
    font-weight: 700;
}

.mode-tab {
    min-height: 40px;
    min-width: 120px;
    padding: 4px 12px 4px 8px;
    border-radius: 14px;
    background: rgba(255,255,255,.08);
}

.mode-tab-logo {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.18);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 10px;
    letter-spacing: 1.4px;
    font-weight: 700;
    flex-shrink: 0;
}

.mode-tab-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1;
}

.mode-tab-title {
    font-size: 12px;
    font-weight: 700;
}

.mode-tab-subtitle {
    font-size: 9px;
    letter-spacing: 1.3px;
    opacity: .78;
    text-transform: uppercase;
}

.utility-tab {
    min-height: 34px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    gap: 6px;
}

.utility-tab-icon {
    font-size: 12px;
}

.platform-tab {
    min-height: 36px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
}

.mobile-secondary-nav {
    display: none;
    min-width: 0;
}

.mobile-secondary-nav-btn {
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .10);
    color: rgba(255, 255, 255, .84);
    min-height: 34px;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    touch-action: manipulation;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.mobile-secondary-nav-btn.is-active {
    border-color: rgba(255, 255, 255, .92);
    background: #ffffff;
    color: #5f3fa0;
    box-shadow: 0 8px 18px rgba(43, 29, 78, .16);
}

.mobile-secondary-nav-btn:disabled {
    opacity: .46;
    cursor: not-allowed;
}

.upload-btn {
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .4);
    color: #fff;
    padding: 5px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all .2s;
    white-space: nowrap;
}

.upload-btn:hover { background: rgba(255, 255, 255, .25); }
.upload-btn.danger { background: #ef4444; border-color: #ef4444; }
.upload-btn.warning { background: #f59e0b; border-color: #f59e0b; }
.upload-btn[disabled] { opacity: .45; cursor: not-allowed; }

.mobile-bottom-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid #dbe3f0;
    box-shadow: 0 -10px 30px rgba(15, 23, 42, .08);
    grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
    gap: 8px;
    backdrop-filter: blur(16px);
}

.mobile-nav-btn {
    border: none;
    background: transparent;
    color: #64748b;
    min-height: 54px;
    padding: 6px 4px;
    border-radius: 16px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all .2s ease;
}

.mobile-nav-btn.active,
.mobile-nav-btn.more-open {
    background: #eff6ff;
    color: #1d4ed8;
}

.mobile-nav-icon {
    font-size: 16px;
    line-height: 1;
}

.mobile-nav-label {
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}
/* Source: assets/styles/platform-shell-overlays.css */
/* 平台壳层：弹层与浮层 */

.header-menu {
    position: relative;
}

.header-menu.open .header-menu-panel {
    display: block;
}

.header-menu-panel {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 230px;
    padding: 10px;
    border-radius: 16px;
    background: #fff;
    color: #0f172a;
    border: 1px solid #dbe3f0;
    box-shadow: 0 22px 48px rgba(15, 23, 42, .22);
    z-index: 90;
}

.header-menu-title {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.header-menu-subtitle {
    font-size: 11px;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 10px;
}

.header-menu-list {
    display: grid;
    gap: 8px;
}

.menu-action-btn {
    width: 100%;
    border: 1px solid #dbe3f0;
    background: #f8fafc;
    color: #0f172a;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    transition: all .2s;
}

.menu-action-btn:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.menu-action-btn[disabled] {
    opacity: .45;
    cursor: not-allowed;
}

.menu-action-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.menu-action-title {
    font-size: 12px;
    font-weight: 700;
}

.menu-action-subtitle {
    font-size: 11px;
    color: #64748b;
}

.auth-user-wrap.open .auth-user-popover,
.auth-user-wrap:hover .auth-user-popover {
    display: block;
}

.auth-user-popover {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 260px;
    border-radius: 16px;
    background: #fff;
    color: #0f172a;
    border: 1px solid #dbe3f0;
    box-shadow: 0 22px 48px rgba(15, 23, 42, .22);
    padding: 14px;
    z-index: 95;
}

.auth-popover-name {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.auth-popover-meta {
    font-size: 11px;
    color: #64748b;
    line-height: 1.7;
}

.auth-popover-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.auth-role-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 11px;
    font-weight: 700;
}

.auth-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    text-align: center;
}

.auth-link-btn:hover {
    background: rgba(255, 255, 255, .16);
}

.auth-login-overlay {
    display: none;
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .55);
    z-index: 500;
}

.auth-login-overlay.is-open {
    display: flex;
}

.auth-login-card {
    width: min(560px, 100%);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .35);
    overflow: hidden;
}

.auth-login-hero {
    padding: 24px 26px 18px;
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    color: #fff;
}

.auth-login-brand {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-login-copy {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .82);
}

.auth-login-body {
    padding: 22px 26px 26px;
}

.auth-login-methods,
.auth-dev-list {
    display: grid;
    gap: 10px;
}

.auth-login-action,
.auth-dev-user-btn {
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
    transition: all .18s ease;
}

.auth-login-action {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid transparent;
}

.auth-login-action.primary {
    border: none;
    background: #07c160;
    color: #fff;
    font-size: 15px;
}

.auth-login-action.primary:hover {
    background: #06ad56;
}

.auth-login-action.secondary {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.auth-login-action.secondary:hover {
    border-color: #93c5fd;
    background: #dbeafe;
}

.auth-login-hint {
    font-size: 12px;
    color: #64748b;
    margin-top: 10px;
    line-height: 1.7;
}

.auth-dev-section {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.auth-dev-section.separated {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

.auth-dev-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.auth-dev-user-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #dbe3f0;
    background: #f8fafc;
    text-align: left;
}

.auth-dev-user-btn:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.auth-dev-user-btn[disabled],
.auth-dev-user-btn.is-loading {
    opacity: .72;
    cursor: wait;
}

.auth-dev-user-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.auth-dev-user-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.auth-dev-user-desc {
    display: block;
    font-size: 12px;
    color: #64748b;
}

.auth-dev-user-action {
    font-size: 12px;
    color: #2563eb;
    font-weight: 700;
}

.auth-login-warning {
    padding: 14px 16px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fff1f2;
    color: #9f1239;
    line-height: 1.7;
}

.mobile-more-backdrop,
.mobile-more-sheet {
    display: none;
}

.mobile-more-backdrop {
    position: fixed;
    inset: 0;
    z-index: 75;
    background: rgba(15, 23, 42, .42);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}

.mobile-more-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    padding: 12px 16px calc(18px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    background: #fff;
    box-shadow: 0 -14px 42px rgba(15, 23, 42, .2);
    transform: translateY(calc(100% + 24px));
    transition: transform .24s ease;
    max-height: min(78vh, 720px);
    overflow: auto;
    pointer-events: none;
}

body.mobile-more-open .mobile-more-backdrop {
    opacity: 1;
    pointer-events: auto;
}

body.mobile-more-open .mobile-more-sheet {
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-more-handle {
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: #cbd5e1;
    margin: 0 auto 14px;
}

.mobile-more-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.mobile-more-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.mobile-more-subtitle {
    font-size: 12px;
    line-height: 1.6;
    color: #64748b;
}

.mobile-more-close {
    border: 1px solid #dbe3f0;
    background: #f8fafc;
    color: #475569;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

.mobile-more-group {
    margin-top: 14px;
}

.mobile-more-group-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .4px;
    color: #64748b;
    margin-bottom: 10px;
}

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

.mobile-more-action {
    width: 100%;
    border: 1px solid #dbe3f0;
    background: #f8fafc;
    color: #0f172a;
    padding: 12px 14px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    cursor: pointer;
}

.mobile-more-action.secondary {
    background: #fff;
}

.mobile-more-action.danger {
    border-color: #fecaca;
    background: #fff5f5;
    color: #b91c1c;
}

.mobile-more-action[disabled] {
    opacity: .45;
    cursor: not-allowed;
}

.mobile-more-action-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.mobile-more-action-title {
    font-size: 13px;
    font-weight: 700;
}

.mobile-more-action-subtitle {
    font-size: 11px;
    color: #64748b;
    line-height: 1.5;
}
/* Source: assets/styles/platform-shell-responsive.css */
/* 平台壳层：移动端响应式 */

@media (max-width: 900px) {
    body {
        padding-left: 0;
        padding-top: 0;
    }

    .header,
    body.phone-shell .header {
        display: none;
    }

    body .workspace-topbar,
    body.phone-shell .workspace-topbar {
        position: sticky;
        top: 0;
        z-index: 80;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto auto;
        align-items: center;
        gap: 6px;
        min-height: 44px;
        padding: 5px 8px;
        background: linear-gradient(135deg, #7050a0, #4d3b91);
        box-shadow: 0 8px 26px rgba(57, 35, 101, .18);
    }

    .header-brand-copy,
    body.phone-shell .header-brand-copy {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        min-width: 0;
        flex: 0 0 auto;
    }

    .workspace-topbar .header-brand-logo,
    body.phone-shell .workspace-topbar .header-brand-logo {
        width: 104px;
        height: 28px;
        max-width: 104px;
        filter: brightness(0) invert(1);
    }

    .mobile-secondary-nav.is-visible,
    body.phone-shell .mobile-secondary-nav.is-visible {
        display: flex;
        align-items: center;
        gap: 5px;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 2px 1px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-secondary-nav.is-visible::-webkit-scrollbar,
    body.phone-shell .mobile-secondary-nav.is-visible::-webkit-scrollbar {
        display: none;
    }

    .header h1,
    body.phone-shell .header h1 {
        font-size: 17px;
        letter-spacing: .2px;
    }

    .header-brand-sub,
    .tabs,
    .header-actions,
    .auth-chip,
    body.phone-shell .header-brand-sub,
    body.phone-shell .tabs,
    body.phone-shell .header-actions,
    body.phone-shell .auth-chip {
        display: none !important;
    }

    .auth-bar,
    body.phone-shell .auth-bar {
        margin-left: auto;
        gap: 4px;
        flex-shrink: 0;
    }

    .workspace-search,
    .workspace-topbar-date,
    .workspace-topbar-chip,
    body.phone-shell .workspace-search,
    body.phone-shell .workspace-topbar-date,
    body.phone-shell .workspace-topbar-chip {
        display: none !important;
    }

    .workspace-menu-toggle,
    body.phone-shell .workspace-menu-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: 34px;
        height: 34px;
        border: 1px solid rgba(255, 255, 255, .22);
        border-radius: 11px;
        background: rgba(255, 255, 255, .10);
        color: #fff;
        font-size: 18px;
        cursor: pointer;
        touch-action: manipulation;
    }

    .workspace-menu-toggle.more-open,
    .workspace-menu-toggle[aria-expanded="true"],
    body.phone-shell .workspace-menu-toggle.more-open,
    body.phone-shell .workspace-menu-toggle[aria-expanded="true"] {
        border-color: rgba(255, 255, 255, .92);
        background: #fff;
        color: #5f3fa0;
        box-shadow: 0 8px 18px rgba(43, 29, 78, .16);
    }

    .header-menu-panel,
    .auth-user-popover,
    body.phone-shell .header-menu-panel,
    body.phone-shell .auth-user-popover {
        right: 0;
        left: auto;
        width: min(280px, calc(100vw - 24px));
    }

    .auth-user-btn,
    .auth-link-btn,
    body.phone-shell .auth-user-btn,
    body.phone-shell .auth-link-btn {
        height: 34px;
        padding: 0 7px;
        font-size: 11px;
    }

    .auth-user-btn,
    body.phone-shell .auth-user-btn {
        max-width: 70px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-bottom-nav,
    body.phone-shell .mobile-bottom-nav {
        display: grid;
    }

    .mobile-more-backdrop,
    .mobile-more-sheet,
    body.phone-shell .mobile-more-backdrop,
    body.phone-shell .mobile-more-sheet {
        display: block;
    }

    .main,
    body.phone-shell .main {
        padding: 10px 12px calc(86px + env(safe-area-inset-bottom));
        min-height: calc(100dvh - 44px);
    }

    #module-outlet,
    .section.active,
    body.phone-shell #module-outlet,
    body.phone-shell .section.active {
        min-height: calc(100dvh - 44px - 86px - env(safe-area-inset-bottom));
    }

    .module-placeholder,
    body.phone-shell .module-placeholder {
        min-height: calc(100dvh - 44px - 86px - env(safe-area-inset-bottom) - 20px);
    }
}
/* Source: assets/styles/platform-shell-ui-theme.css */
/* 平台壳层分片：UI 支线侧栏视觉覆盖 */

.workspace-topbar {
    display: none;
}

@media (min-width: 901px) {
    body:not(.phone-shell) {
        min-height: 100dvh;
        padding-left: 184px;
        padding-top: 56px;
        background:
            radial-gradient(circle at 12% 8%, rgba(112, 80, 160, .10), transparent 28%),
            linear-gradient(180deg, #fbfaff 0%, #f3f5fb 100%);
    }

    body:not(.phone-shell) .workspace-topbar {
        position: fixed;
        inset: 0 0 auto 0;
        z-index: 80;
        display: grid;
        grid-template-columns: 184px 32px minmax(300px, 460px) 1fr auto auto auto;
        align-items: center;
        gap: 12px;
        min-height: 56px;
        padding: 0;
        background: linear-gradient(135deg, #5f3fa0 0%, #4d378c 58%, #3e327f 100%);
        color: #ffffff;
        box-shadow: 0 10px 28px rgba(43, 29, 78, .22);
    }

    body:not(.phone-shell) .workspace-topbar .header-brand-copy {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 184px;
        min-height: 0;
        padding: 0;
        border: 0;
        min-width: 0;
    }

    body:not(.phone-shell) .workspace-topbar .header-brand-logo {
        width: 168px;
        max-height: 34px;
        filter: brightness(0) invert(1);
    }

    body:not(.phone-shell) .workspace-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: rgba(255, 255, 255, .90);
        font-size: 20px;
        cursor: default;
    }

    body:not(.phone-shell) .workspace-topbar h1 {
        margin: 0;
        color: #ffffff;
        font-size: 15px;
        letter-spacing: 0;
        white-space: nowrap;
    }

    body:not(.phone-shell) .workspace-topbar .header-brand-sub {
        color: rgba(255, 255, 255, .72);
        font-size: 11px;
    }

    body:not(.phone-shell) .workspace-search {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        min-width: 0;
        height: 34px;
        padding: 0 10px;
        border: 1px solid rgba(255, 255, 255, .18);
        border-radius: 8px;
        background: rgba(255, 255, 255, .10);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
        color: rgba(255, 255, 255, .92);
    }

    body:not(.phone-shell) .workspace-search input {
        width: 100%;
        border: 0;
        outline: 0;
        background: transparent;
        color: #ffffff;
        font: inherit;
    }

    body:not(.phone-shell) .workspace-search input::placeholder {
        color: rgba(255, 255, 255, .72);
    }

    body:not(.phone-shell) .workspace-search kbd {
        height: 22px;
        min-width: 42px;
        padding: 0 8px;
        border: 1px solid rgba(255, 255, 255, .18);
        border-radius: 6px;
        background: rgba(38, 28, 70, .34);
        color: rgba(255, 255, 255, .80);
        font: 700 11px/20px 'PingFang SC', 'Microsoft YaHei', sans-serif;
        text-align: center;
    }

    body:not(.phone-shell) .workspace-topbar-date,
    body:not(.phone-shell) .workspace-topbar-chip {
        min-height: 34px;
        border: 1px solid rgba(255, 255, 255, .22);
        border-radius: 8px;
        background: rgba(255, 255, 255, .10);
        color: #ffffff;
        font-size: 12px;
        font-weight: 700;
        white-space: nowrap;
    }

    body:not(.phone-shell) .workspace-topbar-date,
    body:not(.phone-shell) .workspace-topbar-chip {
        display: inline-flex;
        align-items: center;
        padding: 0 12px;
    }

    body:not(.phone-shell) .workspace-topbar-date {
        justify-self: end;
        color: rgba(255, 255, 255, .88);
        font-size: 13px;
        font-weight: 800;
    }

    body:not(.phone-shell) .header {
        position: fixed;
        inset: 56px auto 0 0;
        z-index: 60;
        width: 184px;
        min-height: calc(100dvh - 56px);
        align-items: stretch;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 14px;
        padding: 16px 10px;
        border-right: 1px solid #ece8f5;
        background: #ffffff;
        color: #3f3654;
        box-shadow: 10px 0 30px rgba(43, 29, 78, .05);
    }

    body:not(.phone-shell) .main {
        min-height: calc(100dvh - 56px);
        padding: 22px 24px 42px;
        background: #f7f8fb;
    }

    body:not(.phone-shell) .header > .header-brand-copy {
        display: none;
    }

    body:not(.phone-shell) .header-brand-copy {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 8px;
        min-height: 78px;
        padding: 0 4px 16px;
        border-bottom: 1px solid rgba(112, 80, 160, .12);
    }

    body:not(.phone-shell) .header-brand-logo {
        width: 136px;
        height: auto;
        max-width: 100%;
    }

    body:not(.phone-shell) .header-brand-text {
        gap: 4px;
    }

    body:not(.phone-shell) .header h1 {
        color: #3a2b55;
        font-size: 15px;
        letter-spacing: 0;
    }

    body:not(.phone-shell) .header-brand-sub {
        color: #7c6a9f;
    }

    body:not(.phone-shell) .tabs {
        flex: 1 1 auto;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        margin-left: 0;
    }

    body:not(.phone-shell) .tab {
        width: 100%;
        min-height: 42px;
        justify-content: flex-start;
        border: 1px solid transparent;
        border-radius: 12px;
        background: transparent;
        color: #615273;
    }

    body:not(.phone-shell) .tab:hover {
        border-color: rgba(112, 80, 160, .10);
        background: rgba(112, 80, 160, .08);
    }

    body:not(.phone-shell) .tab.active {
        border-color: #7050a0;
        background: #7050a0;
        color: #ffffff;
        box-shadow: 0 12px 30px rgba(112, 80, 160, .22);
    }

    body:not(.phone-shell) .platform-tab {
        position: relative;
        min-height: 40px;
        padding: 0 10px 0 12px;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 800;
        gap: 10px;
    }

    body:not(.phone-shell) .platform-tab.active {
        border-color: #f2ebff;
        background: #f2ebff;
        color: #5f3fa0;
        box-shadow: none;
    }

    body:not(.phone-shell) .platform-tab.active::before {
        content: '';
        position: absolute;
        left: 0;
        top: 9px;
        bottom: 9px;
        width: 3px;
        border-radius: 999px;
        background: #7050a0;
    }

    body:not(.phone-shell) .platform-subnav {
        display: none;
        margin: -2px 0 5px 30px;
        padding: 2px 0 2px 9px;
        border-left: 1px solid #eee8f7;
    }

    body:not(.phone-shell) .platform-subnav.is-open {
        display: grid;
        gap: 4px;
    }

    body:not(.phone-shell) .platform-subtab {
        width: 100%;
        min-height: 28px;
        padding: 0 8px;
        border: 0;
        border-radius: 7px;
        background: transparent;
        color: #746a84;
        text-align: left;
        font-size: 11px;
        font-weight: 700;
        cursor: pointer;
        transition: background .16s ease, color .16s ease, transform .16s ease;
    }

    body:not(.phone-shell) .platform-subtab:hover,
    body:not(.phone-shell) .platform-subtab.is-active {
        background: #f8f5fd;
        color: #5f3fa0;
    }

    body:not(.phone-shell) .platform-subtab:active {
        transform: translateX(1px);
    }

    body:not(.phone-shell) .platform-subtab:disabled {
        cursor: not-allowed;
        opacity: .42;
    }

    body:not(.phone-shell) .platform-subtab.danger {
        color: #b4233c;
    }

    body:not(.phone-shell) .platform-subnav-label {
        margin: 7px 0 2px;
        color: #a196b2;
        font-size: 10px;
        font-weight: 900;
    }

    body:not(.phone-shell) .utility-tab-icon {
        width: 16px;
        text-align: center;
        font-size: 15px;
    }

    body:not(.phone-shell) .sidebar-mascot-card {
        position: relative;
        overflow: hidden;
        display: grid;
        align-content: center;
        gap: 7px;
        min-height: 96px;
        padding: 14px 14px 15px;
        border: 1px solid rgba(112, 80, 160, .14);
        border-radius: 16px;
        background:
            radial-gradient(circle at 100% 0%, rgba(243, 189, 53, .18), transparent 34%),
            linear-gradient(180deg, #ffffff 0%, #f7f2ff 100%);
        color: #4b3b68;
        box-shadow: 0 12px 26px rgba(57, 35, 101, .08);
    }

    body:not(.phone-shell) .sidebar-mascot-card strong,
    body:not(.phone-shell) .sidebar-mascot-card small {
        position: relative;
        z-index: 1;
    }

    body:not(.phone-shell) .sidebar-mascot-card strong {
        display: grid;
        gap: 3px;
        color: #33264f;
        font-size: 16px;
        font-weight: 950;
        letter-spacing: 0;
        line-height: 1.18;
    }

    body:not(.phone-shell) .sidebar-mascot-card strong span {
        display: block;
    }

    body:not(.phone-shell) .sidebar-mascot-card small {
        display: block;
        max-width: 118px;
        color: #7c6a9f;
        font-size: 11px;
        font-weight: 800;
        line-height: 1.35;
    }

    body:not(.phone-shell) .sidebar-mascot-orbs span {
        position: absolute;
        right: 12px;
        bottom: 12px;
        width: 28px;
        height: 28px;
        border-radius: 999px;
        background: #2f7cc0;
        box-shadow: -20px -10px 0 rgba(243, 189, 53, .78);
        opacity: .72;
    }

    body:not(.phone-shell) .sidebar-mascot-orbs span + span {
        right: 34px;
        bottom: 26px;
        width: 16px;
        height: 16px;
        background: #7050a0;
        box-shadow: none;
    }

    body:not(.phone-shell) .auth-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin: auto 0 0;
        padding-top: 16px;
        border-top: 1px solid rgba(112, 80, 160, .12);
    }

    body:not(.phone-shell) .auth-chip,
    body:not(.phone-shell) .auth-user-btn,
    body:not(.phone-shell) .auth-link-btn {
        width: 100%;
        justify-content: center;
        border-color: rgba(112, 80, 160, .18);
        background: #ffffff;
        color: #4b3b68;
        box-shadow: 0 8px 24px rgba(57, 35, 101, .06);
    }

    body:not(.phone-shell) .auth-user-popover {
        left: 0;
        right: auto;
        bottom: calc(100% + 8px);
        top: auto;
        width: 100%;
    }

    body:not(.phone-shell) .workspace-topbar .auth-bar {
        margin: 0;
        padding: 0;
        border: 0;
        flex-direction: row;
        align-items: center;
        gap: 6px;
    }

    body:not(.phone-shell) .workspace-topbar .header-actions {
        margin: 0;
        flex-wrap: nowrap;
        gap: 8px;
    }

    body:not(.phone-shell) .workspace-topbar .auth-chip {
        display: none;
    }

    body:not(.phone-shell) .workspace-topbar .auth-user-btn,
    body:not(.phone-shell) .workspace-topbar .auth-link-btn {
        width: auto;
        min-height: 34px;
        justify-content: center;
        border-color: rgba(255, 255, 255, .18);
        border-radius: 9px;
        background: rgba(255, 255, 255, .10);
        color: #ffffff;
        box-shadow: none;
        font-weight: 900;
    }

    body:not(.phone-shell) .workspace-topbar .auth-user-popover {
        left: auto;
        right: 0;
        top: calc(100% + 8px);
        bottom: auto;
        width: 220px;
    }

    body:not(.phone-shell) .mobile-bottom-nav,
    body:not(.phone-shell) .mobile-secondary-nav,
    body:not(.phone-shell) .mobile-more-backdrop,
    body:not(.phone-shell) .mobile-more-sheet {
        display: none !important;
    }
}

body.platform-standalone-research-library,
body.phone-shell.platform-standalone-research-library,
body:not(.phone-shell).platform-standalone-research-library {
    min-height: 100dvh;
    padding: 0 !important;
    background: #f7f8fb;
    overflow: hidden;
}

body.platform-standalone-research-library .workspace-topbar,
body.platform-standalone-research-library .header,
body.platform-standalone-research-library .mobile-secondary-nav,
body.platform-standalone-research-library .mobile-bottom-nav,
body.platform-standalone-research-library .mobile-more-backdrop,
body.platform-standalone-research-library .mobile-more-sheet {
    display: none !important;
}

body.platform-standalone-research-library .main,
body.phone-shell.platform-standalone-research-library .main,
body:not(.phone-shell).platform-standalone-research-library .main {
    width: 100vw;
    min-height: 100dvh;
    padding: 0 !important;
    background: #f7f8fb;
}

body.platform-standalone-research-library #module-outlet,
body.platform-standalone-research-library #sec-research-library,
body.platform-standalone-research-library #research-library-app {
    min-height: 100dvh !important;
}

body.platform-standalone-research-library #research-library-app > .research-workspace {
    min-height: 100dvh;
}

body.platform-standalone-tutorial-leaderboard,
body.phone-shell.platform-standalone-tutorial-leaderboard,
body:not(.phone-shell).platform-standalone-tutorial-leaderboard {
    min-height: 100dvh;
    padding: 0 !important;
    background: #08111f;
    overflow: hidden;
}

body.platform-standalone-tutorial-leaderboard .workspace-topbar,
body.platform-standalone-tutorial-leaderboard .header,
body.platform-standalone-tutorial-leaderboard .mobile-secondary-nav,
body.platform-standalone-tutorial-leaderboard .mobile-bottom-nav,
body.platform-standalone-tutorial-leaderboard .mobile-more-backdrop,
body.platform-standalone-tutorial-leaderboard .mobile-more-sheet {
    display: none !important;
}

body.platform-standalone-tutorial-leaderboard .main,
body.phone-shell.platform-standalone-tutorial-leaderboard .main,
body:not(.phone-shell).platform-standalone-tutorial-leaderboard .main {
    width: 100vw;
    min-height: 100dvh;
    padding: 0 !important;
    background: #08111f;
}

body.platform-standalone-tutorial-leaderboard #module-outlet,
body.platform-standalone-tutorial-leaderboard #sec-tutorial-leaderboard-screen,
body.platform-standalone-tutorial-leaderboard #tutorial-leaderboard-screen-app {
    min-height: 100dvh !important;
}

.platform-runtime-state {
    max-width: 520px;
    margin: 40px auto;
    padding: 28px 24px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 18px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 48px rgba(15, 23, 42, .08);
    color: #64748b;
    font-size: 14px;
    line-height: 1.8;
    text-align: center;
}

.platform-runtime-state.is-progress {
    text-align: left;
}

.platform-runtime-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
    color: #0f172a;
}

.platform-runtime-progress-head span {
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
}

.platform-runtime-progress-track {
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
}

.platform-runtime-progress-bar {
    display: block;
    width: var(--platform-runtime-progress, 10%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #38bdf8);
    transition: width .24s ease;
}

.platform-runtime-progress-message {
    margin-top: 10px;
    color: #64748b;
    font-size: 13px;
    text-align: center;
}

.platform-runtime-progress-stages {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.platform-runtime-progress-stage {
    position: relative;
    overflow: hidden;
    min-height: 28px;
    padding: 6px 8px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 999px;
    background: rgba(248, 250, 252, .92);
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.platform-runtime-progress-stage.is-active {
    border-color: rgba(37, 99, 235, .38);
    background: rgba(219, 234, 254, .78);
    color: #1d4ed8;
}

.platform-runtime-progress-stage.is-done {
    border-color: rgba(16, 185, 129, .28);
    background: rgba(209, 250, 229, .72);
    color: #047857;
}

.platform-runtime-state.is-error {
    border-color: #fecaca;
    background: #fff1f2;
    color: #9f1239;
}

.platform-runtime-retry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin-top: 14px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: #be123c;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(190, 18, 60, .18);
}

.platform-runtime-retry:hover {
    background: #9f1239;
}
