/* Loaded after page CSS: shared typography and page chrome. */
body {
    background: var(--ui-bg);
    color: var(--ui-text);
    font-family: var(--ui-font);
    font-size: var(--ui-text-body);
    line-height: 1.45;
}
body :is(button, input, select, textarea) { font-family: var(--ui-font); }
body :is(.topbar, .home-header, .charts-header, .profile-header, .sandbox-header, .login-header) {
    min-height: var(--ui-header-height);
    border-bottom-color: var(--ui-line);
}
body .site-header { height: var(--ui-header-height); }
body .login-header { height: auto; }
body :is(.topbar h1, .home-header h1, .status-header h1, .recommendations-header h1) {
    font-size: var(--ui-text-title);
    line-height: 1.2;
    text-transform: none;
}
body :is(.charts-header > a, .profile-header > a, .sandbox-header > a, .login-brand, .brand) {
    font-size: var(--ui-text-title);
    font-weight: 800;
}
body :is(.subtitle, .home-header time, .profile-header small, .charts-toolbar > small) {
    color: var(--ui-muted);
    font-size: var(--ui-text-small);
}
body :is(.charts-shell, .profile-shell) {
    padding-inline: 0;
}
body :is(.controls, .period-controls, .period-presets, .status-actions) { gap: var(--ui-space-2); }
body :is(.notification-dialog-head h2, .onboarding-card h2, .resource-section h2) {
    font-size: var(--ui-text-section);
    line-height: 1.3;
}
body :is(.onboarding-card, .notification-dialog, .asset-detail-dialog, .tutorial-settings, .service-card) {
    border-radius: var(--ui-panel-radius);
    border-color: var(--ui-line);
}
body :is(.period-form label, .asset-select, .sandbox-controls label) {
    gap: var(--ui-space-1);
    font: 500 var(--ui-text-small)/1.4 var(--ui-font);
    color: var(--ui-muted);
}
body :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--ui-accent); }
body :is(a, button, input, select, textarea, summary):focus-visible {
    outline: 2px solid var(--ui-accent);
    outline-offset: 3px;
}
@media (max-width: 760px) {
    body :is(.topbar, .home-header, .charts-header, .profile-header, .sandbox-header, .login-header) {
        gap: var(--ui-space-2);
    }
    body :is(.topbar h1, .home-header h1, .status-header h1, .recommendations-header h1) { font-size: 20px; }
}
