/* The portal's own rules: the brand pieces the MudBlazor palette has no slot for. Copied from the staff console's
   app.css, where each is explained, rather than shared (2026-10-20). Self-hosted type: no third party on load. */

@font-face {
    font-family: "Space Grotesk";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
}

@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
}

:root {
    --portal-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
    --portal-orange: #FF9440;
    --portal-orange-text: #D26A0C;
}

html {
    background: var(--mud-palette-background, #F7F8FC);
}

.portal-appbar {
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.wm {
    font-weight: 700;
    letter-spacing: -.022em;
    font-size: 25px;
    line-height: 1;
    white-space: nowrap;
}

.wm-omni { color: var(--portal-orange-text); }
.wm-fix { color: var(--mud-palette-appbar-text); }

/* Navy on orange, not white: white on #FF9440 is about 2:1. */
.portalbadge {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
    padding: 3px 9px;
    border-radius: 5px;
    background: var(--portal-orange);
    color: #061750;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .06em;
    line-height: 1;
}

.appbar-button {
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-secondary);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 999px;
    padding: 6px 14px;
}

.appbar-button:hover {
    color: var(--mud-palette-text-primary);
    border-color: var(--mud-palette-text-secondary);
}

.appbar-user {
    margin-right: 14px;
    color: var(--mud-palette-text-secondary);
}

@media (max-width: 760px) {
    .appbar-user,
    .portalbadge {
        display: none;
    }
}

/* A raw key on screen: selectable in one gesture when the clipboard API is refused, which is exactly when it matters. */
.rawkey {
    font-family: var(--portal-mono);
    font-size: .95rem;
    background: var(--mud-palette-background-gray);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 6px;
    padding: .75rem;
    margin: .5rem 0;
    overflow-x: auto;
    user-select: all;
}

.keyid {
    font-family: var(--portal-mono);
}

#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: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

.loading-progress circle {
    fill: none;
    stroke: #D3D9E8;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #FF9440;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    font-family: "Space Grotesk", system-ui, "Segoe UI", sans-serif;
    color: #455177;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}