:root {
    --sc-app-bg: #090c12;
    --sc-header-bg: #0b1018;
    --sc-sidebar-bg: #0b1018;
    --sc-surface: #0e131c;
    --sc-surface-hover: #171e2d;
    --sc-surface-input: #121824;
    --sc-border: #202735;
    --sc-text: #f4f5f8;
    --sc-text-muted: #929bad;
    --sc-accent: #7068ff;
    --sc-accent-alt: #8177ff;
    --sc-success: #45c68a;
    --sc-danger: #ff7272;
    --sc-warning: #e4b454;
    --sc-header-height: 64px;
    --sc-sidebar-width: 220px;
    --sc-page-width: 1180px;
    --sc-radius-control: 8px;
    --sc-radius-card: 12px;
    --sc-space-page: 24px;
    --sc-motion-fast: 180ms;
}

.smartcard-app-shell {
    min-height: 100dvh;
    color: var(--sc-text);
    background: var(--sc-app-bg);
}

.smartcard-app-shell > .topbar {
    height: var(--sc-header-height);
    padding: 0 20px;
    border-bottom: 1px solid var(--sc-border);
    background: var(--sc-header-bg);
    backdrop-filter: none;
}

.smartcard-app-shell > .account-layout {
    height: calc(100dvh - var(--sc-header-height));
    grid-template-columns: var(--sc-sidebar-width) minmax(0, 1fr) !important;
}

.smartcard-app-shell .page-shell {
    width: min(var(--sc-page-width), calc(100% - (var(--sc-space-page) * 2)));
    margin: 28px auto 40px;
}

.smartcard-app-shell .app-shell-page-header {
    min-height: 64px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.smartcard-app-shell .app-shell-page-header h1 {
    margin: 0;
    color: var(--sc-text);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.smartcard-app-shell .app-shell-page-header p {
    margin: 6px 0 0;
    color: var(--sc-text-muted);
    font-size: 13px;
}

.app-shell-content-enter { animation: app-shell-content-enter var(--sc-motion-fast) ease-out both; }
@keyframes app-shell-content-enter { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
    .smartcard-app-shell > .account-layout { display: block !important; }
    .smartcard-app-shell .page-shell {
        width: 100%;
        margin: 0;
        padding: 16px 14px calc(88px + env(safe-area-inset-bottom, 0px));
    }
    .smartcard-app-shell .app-shell-page-header { align-items: stretch; flex-direction: column; }
    .smartcard-app-shell .app-shell-page-header h1 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .app-shell-content-enter { animation: none; }
}
