html, body {
    font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Identity (account) pages — static SSR + Bootstrap dark */
.account-shell {
    min-height: 100vh;
    background-color: #0F1218;
    color: #E6E9EF;
}

.account-header {
    padding: 0.75rem 1.5rem;
    background-color: #131720;
    border-bottom: 1px solid #2A3040;
}

.account-brand {
    color: #E6E9EF;
    font-size: 1.25rem;
    font-weight: 500;
    text-decoration: none;
}

.account-content {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.account-content a {
    color: #4C9AFF;
}

/* Blazor error UI */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background-color: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

/* A date or time picker's Style (a narrow width for the field in a table or toolbar) is also applied to its
   popover, which then cuts the calendar off. The popover always takes the calendar's own width. */
.mud-picker-popover-paper {
    width: auto !important;
    max-width: none !important;
    min-width: 310px;
}

/* Context help: the "?" panel and the User guide (TradeView.UI/Help). */
.help-text p { margin: 0 0 0.5rem; }
.help-text ul { margin: 0 0 0.5rem; padding-left: 1.25rem; }
.help-text li { margin-bottom: 0.25rem; }
.help-text h4 { font-size: 0.95rem; font-weight: 600; margin: 0.75rem 0 0.25rem; }
.help-text a, .help-page a { color: var(--mud-palette-primary); }
.help-panel .help-scroll { overflow-y: auto; height: calc(100% - 48px); font-size: 0.9rem; }
.help-panel { color: var(--mud-palette-text-primary); }
