/* Quiet shell: blur and infinite shimmer do not carry information.
   Loaded after style.css so these overrides win without !important. */

.mobile-topbar,
.mobile-sidebar-overlay,
.page-header,
.compare-page-shell,
.charts-section,
.analysis-type-card,
.quick-stat-card,
.stat-card,
.auth-card,
.landing-hero,
.landing-viz__panel,
.landing-section,
.landing-feature,
.landing-compare__card,
body.layout-self-directed.page-landing .landing-viz__panel,
body.layout-self-directed.page-landing .landing-feature,
body.layout-self-directed.page-landing .landing-compare__card,
body.layout-self-directed.page-landing .landing-compare__matrix-wrap,
.layout-controls-fab,
.layout-controls-panel,
#output-container:has(.analysis-output-part) {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.sidebar {
    background: #121a28;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

section::before,
section::after,
.page-header::before,
.page-header::after,
.compare-page-shell::before,
.compare-page-shell::after,
.charts-section::before,
.charts-section::after,
.analysis-type-card::before,
.analysis-type-card::after,
.quick-stat-card::before,
.charts-section-header::after,
.mobile-topbar::before,
.mobile-topbar::after,
#output-container:has(.analysis-output-part)::before,
#output-container:has(.analysis-output-part)::after {
    animation: none;
    content: none;
}

@media (max-width: 900px) {
    .mobile-topbar {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
    }

    .mobile-topbar::after {
        animation: none;
        content: none;
    }
}

.dashboard-stats--primary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-stats--primary .stat-card {
    background: rgba(12, 18, 32, 0.72);
    box-shadow: none;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 12px;
}

.dashboard-stats--primary .stat-label {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.layout-auth .sidebar,
body.layout-auth .mobile-topbar,
body.layout-auth .mobile-sidebar-overlay {
    display: none;
}

body.layout-auth .container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

body.layout-auth .main-content {
    width: min(440px, 100%);
}

body.layout-auth .auth-home {
    display: inline-block;
    margin-top: 12px;
    color: var(--text-secondary, #cbd5e1);
    font-size: 0.9rem;
}

/* One rhythm: the main grid gap already separates direct children. */
.main-content > .page-header {
    margin-bottom: 0;
}

.main-content > .page-breadcrumb {
    margin-bottom: 0;
}

.main-content > .page-breadcrumb + .page-header {
    margin-top: -16px;
}

/* Inline actions stay content-sized. Form submits keep the full-width rule. */
.stocks-jump-row > .btn-primary,
.compare-empty-actions .btn-primary,
.page-header-actions-bar .btn-primary,
.error-page-actions .btn-primary,
.error-page-actions .btn-secondary,
.btn-inline-icon.btn-primary {
    width: auto;
    margin-top: 0;
}

.compare-workspace-toolbar:not(:has(.compare-ticker-pill)) {
    display: none;
}

.compare-page-shell {
    padding: 0;
    margin-bottom: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.visualization-container {
    padding: 0;
    max-width: none;
    margin: 0;
    animation: none;
}

.visualization-container .page-header,
.page-header--viz {
    padding: 32px;
    margin-bottom: var(--layout-section-gap, 32px);
    border-bottom: none;
}

.visualization-container .page-header h1,
.page-header--viz .page-title {
    background: none;
    -webkit-text-fill-color: currentColor;
    background-clip: border-box;
    -webkit-background-clip: border-box;
    color: var(--text-primary, #f1f5f9);
}

.chart-placeholder {
    height: auto;
    min-height: 220px;
    padding: 48px 24px;
}

.viz-action-buttons .btn {
    width: auto;
    margin-top: 0;
    text-transform: none;
    letter-spacing: 0;
}

.help-section #help-content p,
.help-section #help-content li {
    max-width: 68ch;
}

.layout-controls-fab--labeled {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
}

.layout-controls-fab-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
