html, body {
    margin: 0;
    min-height: 100%;
    background: var(--unitrix-bg);
    color: var(--unitrix-text);
    font-family: var(--unitrix-font);
    -webkit-font-smoothing: antialiased;
}

/* The last layer of the mockup (T-0402, "drawing to render, sky"): a sky from the top right corner down to white, crossed by
   faint drafting lines, fixed under the page so the glass has something to blur. */
body {
    background:
        repeating-linear-gradient(100deg, transparent 0 140px, color-mix(in srgb, var(--unitrix-text) 2%, transparent) 140px 141px),
        repeating-linear-gradient(10deg, transparent 0 220px, color-mix(in srgb, var(--unitrix-text) 2%, transparent) 220px 221px),
        radial-gradient(130% 95% at 100% 0%, var(--unitrix-sky) 0%, color-mix(in srgb, var(--unitrix-sky) 70%, var(--unitrix-surface)) 22%,
            color-mix(in srgb, var(--unitrix-sky) 40%, var(--unitrix-surface)) 42%, color-mix(in srgb, var(--unitrix-sky) 15%, var(--unitrix-surface)) 62%,
            var(--unitrix-bg) 80%, var(--unitrix-surface) 100%) fixed;
    min-height: 100vh;
}

/* Sharp corners, everywhere MudBlazor would round them; a status dot, a radio and an avatar stay round. */
body *,
.mud-popover *,
.mud-dialog,
.mud-snackbar {
    border-radius: 0 !important;
}

body [class*="dot"],
body .mud-avatar,
body .mud-radio-button,
body .mud-progress-circular,
body .mud-switch-thumb-small,
body .mud-switch-thumb-medium,
body .mud-switch-track {
    border-radius: 50% !important;
}

body .mud-switch-track {
    border-radius: 999px !important;
}

/* The mockup's captions: monospaced, upper case, wide. */
.unitrix-cap {
    font-family: var(--unitrix-mono);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--unitrix-text-secondary);
}

.unitrix-num {
    font-family: var(--unitrix-mono);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

/* The page under the floating top bar (E-200, 60 px at 12 px from the top) and over the dock: the spec's 96 px. */
.app-main {
    padding-top: 84px;
}

.app-main-bare {
    padding-top: 0;
}

@media (max-width: 760px) {
    .app-main {
        padding-top: 76px;
    }
}

h1:focus {
    outline: none;
}

/* The keyboard's place (WCAG 2.4.7, T-0510): one ring for the app's own buttons and links, whatever their other states do. MudBlazor
   draws its own on its controls. */
button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid var(--unitrix-accent);
    outline-offset: 2px;
}

/* The brand in the app bar and on the sign-in pages: the mark and the name, bold and tight like the logo. */
.brand {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--unitrix-space) * 2);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.blazor-error-boundary {
    padding: 1rem;
    background: var(--unitrix-error);
    color: var(--unitrix-bg);
}

/* The board with a unit card open on a wide screen (the Floova spec, S03): the board gives the card its room, 392 px and the
   margins, instead of lying under it. MudContainer is a component, so the class lives here, not in the page's scoped style. */
@media (min-width: 1180px) {
    .pb-page-card {
        padding-right: 432px !important;
    }
}
