/* =====================================================================
   Hyrporten base styles: fonts, design tokens, base elements, forms,
   admin pages, photo gallery. The public site and its site styles are
   in site.css. Tenant colors and fonts arrive as --brand-* custom
   properties on <body> (ThemeCss), never as raw values.
   ===================================================================== */

/* ---------- Self-hosted fonts (SIL Open Font License, see wwwroot/fonts) ---------- */

@font-face {
    font-family: "Inter";
    src: url("fonts/inter.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Source Serif 4";
    src: url("fonts/source-serif-4.woff2") format("woff2");
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Nunito";
    src: url("fonts/nunito.woff2") format("woff2");
    font-weight: 200 1000;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Outfit";
    src: url("fonts/outfit.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ---------- Tokens ---------- */

/* Platform defaults; a tenant's theme overrides the --brand-* values on <body> (see ThemeCss). */
:root {
    --brand-primary: #2b5c8a;
    --brand-on-primary: #ffffff;
    --brand-secondary: #edf3f8;
    --brand-on-secondary: #111111;
    --brand-accent: #5aa0a8;
    --brand-on-accent: #111111;
    --brand-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --brand-font-heading: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --text: #1c2127;
    --text-muted: #5b6470;
    --border: #dde2e8;
    --border-strong: #c3cad3;
    --surface: #ffffff;
    --surface-alt: #f6f8fa;
    --danger: #b32121;
    --success: #1f7a3a;

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4.5rem;

    --radius-sm: 0.375rem;
    --radius: 0.625rem;
    --radius-lg: 1rem;
    --radius-button: 0.5rem;

    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
    --shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 4px 12px rgba(16, 24, 40, 0.06);
    --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.14);

    --heading-weight: 700;
    --heading-tracking: -0.015em;

    --container: 72rem;
    --gutter: clamp(1rem, 4vw, 2rem);
    --header-height: 4.25rem;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
    margin: 0;
    font-family: var(--brand-font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
    font-family: var(--brand-font-heading);
    font-weight: var(--heading-weight);
    letter-spacing: var(--heading-tracking);
    line-height: 1.2;
    margin: 0 0 var(--space-3);
    text-wrap: balance;
}

h1 {
    font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem);
}

h2 {
    font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.75rem);
}

h3 {
    font-size: 1.15rem;
}

p {
    margin: 0 0 var(--space-4);
}

h1:focus,
main:focus {
    outline: none;
}

a {
    color: var(--brand-primary);
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
}

a:hover {
    text-decoration-thickness: 2px;
}

img {
    max-width: 100%;
}

.icon {
    width: 1.15em;
    height: 1.15em;
    flex: none;
    vertical-align: -0.2em;
}

:focus-visible {
    outline: 3px solid var(--brand-accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* ---------- Buttons ---------- */

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.65rem 1.1rem;
    border: 1px solid transparent;
    border-radius: var(--radius-button);
    background: var(--brand-primary);
    color: var(--brand-on-primary);
    cursor: pointer;
    text-decoration: none;
    transition: filter 0.15s, background-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

button:hover,
.button:hover {
    filter: brightness(1.08);
}

button:active,
.button:active {
    transform: translateY(1px);
}

button:disabled {
    opacity: 0.6;
    cursor: default;
}

.button-lg {
    padding: 0.85rem 1.4rem;
    font-size: 1.05rem;
}

.button-block {
    width: 100%;
}

.button-secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border-strong);
}

.button-ghost {
    background: transparent;
    color: var(--brand-primary);
    border-color: currentColor;
}

.button-danger {
    background: var(--danger);
    color: #fff;
}

.button-danger-outline {
    background: var(--surface);
    color: var(--danger);
    border-color: #e3a6a6;
}

.link-button {
    background: none;
    color: var(--brand-primary);
    padding: 0;
    border: 0;
    font-weight: inherit;
    text-decoration: underline;
}

/* ---------- Forms ---------- */

.simple-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    max-width: 24rem;
}

.simple-form.wide {
    max-width: 36rem;
}

.simple-form input:not([type=checkbox]):not([type=color]):not([type=file]):not([type=radio]),
.simple-form select,
.simple-form textarea {
    font: inherit;
    font-size: 1rem;
    width: 100%;
    padding: 0.65rem 0.8rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.simple-form textarea {
    resize: vertical;
    min-height: 8rem;
}

.simple-form input:focus,
.simple-form select:focus,
.simple-form textarea:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 18%, transparent);
    outline: none;
}

.simple-form label {
    font-weight: 600;
    margin-top: var(--space-3);
}

.simple-form label.checkbox {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-weight: normal;
}

.simple-form label.checkbox input {
    margin-top: 0.3rem;
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--brand-primary);
}

.hint {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.input-suffix {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.input-suffix input {
    flex: 1;
    min-width: 0;
}

.input-suffix span {
    color: var(--text-muted);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.form-error {
    color: var(--danger);
}

.form-success {
    color: var(--success);
}

.valid.modified:not([type=checkbox]) {
    border-color: #26b050 !important;
}

.invalid {
    border-color: var(--danger) !important;
}

.validation-message {
    color: var(--danger);
    font-size: 0.9rem;
}

/* Honeypot field: off-screen rather than display:none, which some bots detect. */
.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Utilities ---------- */

.muted {
    color: var(--text-muted);
}

.plain-text {
    white-space: pre-line;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.status {
    font-size: 0.85rem;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
}

.status-on {
    background: #dcf3e3;
    color: #1f5f33;
}

.status-off {
    background: #eceff2;
    color: #4b5563;
}

.status-new {
    background: #fff1c2;
    color: #6b4e00;
}

.notice {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
    border-left: 4px solid var(--brand-accent);
    background: var(--brand-secondary);
    color: var(--brand-on-secondary);
    padding: var(--space-3) var(--space-4);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.notice .icon {
    margin-top: 0.2rem;
}

.notice a {
    color: inherit;
    font-weight: 600;
}

/* ---------- Admin pages (owner and platform) ---------- */

.admin-main,
.site-platform main {
    width: 100%;
    max-width: 60rem;
    margin: 0 auto;
    padding: var(--space-6) var(--gutter) var(--space-8);
}

.admin-nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.admin-nav-inner {
    display: flex;
    gap: var(--space-1);
    padding-block: var(--space-2);
    overflow-x: auto;
    scrollbar-width: thin;
}

.admin-nav a {
    flex: none;
    padding: 0.45rem 0.8rem;
    border-radius: var(--radius-sm);
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
}

.admin-nav a:hover {
    background: var(--surface-alt);
}

.admin-nav a.active {
    background: var(--brand-primary);
    color: var(--brand-on-primary);
}

.admin-nav a:last-child {
    margin-left: auto;
}

.page-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.page-head h1 {
    margin: 0;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-2) var(--space-5) var(--space-5);
    margin: var(--space-5) 0;
    box-shadow: var(--shadow-sm);
}

.danger-zone {
    border-color: #f0c8c8;
}

table.list {
    width: 100%;
    border-collapse: collapse;
}

table.list th,
table.list td {
    text-align: left;
    padding: 0.7rem 0.5rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

table.list th {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.owner-list {
    padding-left: 1.25rem;
}

/* Owner dashboard tiles */
.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: var(--space-3);
    margin: var(--space-5) 0;
}

.tile {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.tile:hover {
    border-color: var(--brand-primary);
}

.tile-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--brand-primary);
    line-height: 1.1;
}

.tile-title {
    font-weight: 600;
    color: var(--brand-primary);
}

.tile-highlight {
    border-color: var(--brand-primary);
    background: var(--brand-secondary);
}

.checklist {
    list-style: none;
    padding: 0;
    display: grid;
    gap: var(--space-2);
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.checklist .check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    border: 2px solid var(--border-strong);
    border-radius: 50%;
    font-size: 0.85rem;
}

.checklist li.done {
    color: var(--text-muted);
}

.checklist li.done .check {
    border-color: var(--success);
    background: var(--success);
    color: #fff;
}

.row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
}

.field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    gap: var(--space-2) var(--space-4);
}

.field-row > div {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.confirm {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: var(--space-4) 0;
    border-bottom: 1px solid var(--border);
}

.tabs button {
    background: none;
    color: var(--text);
    border: 0;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    border-bottom: 3px solid transparent;
    font-weight: 500;
}

.tabs button.active {
    border-bottom-color: var(--brand-primary);
    font-weight: 700;
}

.count {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: var(--brand-primary);
    color: var(--brand-on-primary);
    font-size: 0.8rem;
}

.message {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--brand-primary);
    border-radius: var(--radius);
    padding: var(--space-3) var(--space-5);
    margin: var(--space-4) 0;
}

.message.handled {
    border-left-color: var(--border);
}

.message.handled h2,
.message.handled .plain-text {
    color: var(--text-muted);
}

.message-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-1) var(--space-3);
}

.message-head h2 {
    font-size: 1.15rem;
    margin: 0;
}

.message-head .muted {
    margin-left: auto;
    font-size: 0.9rem;
}

.message-facts {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: var(--space-1) var(--space-4);
    margin: var(--space-3) 0;
}

.message-facts dt {
    font-weight: 600;
}

.message-facts dd {
    margin: 0;
}

.message-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-3);
}

.message-actions .muted {
    font-size: 0.85rem;
}

/* Theme editor (platform admin) */
.preset-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: var(--space-3) 0;
}

.preset {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 0.4rem 0.6rem;
    font-weight: 500;
}

.swatch {
    width: 1rem;
    height: 1rem;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.color-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-5);
}

.color-row label {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.color-row input[type=color] {
    width: 4rem;
    height: 2.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.1rem;
    background: var(--surface);
}

.style-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: var(--space-3);
    margin: var(--space-2) 0 var(--space-3);
}

.style-option {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    padding: var(--space-3);
    text-align: left;
    background: var(--surface);
    color: var(--text);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-weight: 400;
}

.style-option:hover {
    filter: none;
    border-color: var(--border-strong);
}

.style-option[aria-pressed="true"] {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 18%, transparent);
}

.style-option strong {
    font-size: 1rem;
}

.style-option small {
    color: var(--text-muted);
    line-height: 1.4;
}

/* Miniature drawing of each style's home page (header, hero, cards). */
.style-mini {
    display: grid;
    grid-template-rows: 0.6rem 2.6rem 1.2rem;
    gap: 0.25rem;
    height: 5rem;
    padding: 0.3rem;
    border-radius: 0.3rem;
    background: var(--surface-alt);
    overflow: hidden;
}

.style-mini i {
    display: block;
    background: var(--brand-primary);
    opacity: 0.85;
}

.style-mini .mini-header {
    background: var(--border-strong);
}

.style-mini .mini-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.2rem;
    background: none;
    opacity: 1;
}

.style-mini .mini-cards b {
    background: var(--border-strong);
}

.style-mini-clean .mini-hero {
    border-radius: 0.15rem;
}

.style-mini-classic .mini-header {
    width: 40%;
    justify-self: center;
}

.style-mini-classic .mini-hero {
    width: 55%;
    justify-self: end;
    border-radius: 0;
}

.style-mini-warm .mini-hero {
    width: 60%;
    justify-self: end;
    border-radius: 0.7rem;
}

.style-mini-warm .mini-cards b {
    border-radius: 0.3rem;
}

.style-mini-bold .mini-header {
    background: var(--brand-primary);
}

.style-mini-bold .mini-hero {
    opacity: 1;
}

.theme-preview {
    margin-top: var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    font-family: var(--brand-font);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: var(--space-3) var(--space-4);
    background: var(--brand-secondary);
    color: var(--brand-on-secondary);
    border-bottom: 3px solid var(--brand-primary);
}

.preview-header strong {
    font-family: var(--brand-font-heading);
}

.preview-header img {
    max-height: 2rem;
    max-width: 8rem;
}

.preview-body {
    padding: var(--space-4);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
}

.preview-body h3 {
    width: 100%;
    margin: 0;
    font-size: 1.4rem;
}

.preview-body p {
    width: 100%;
    margin: 0;
}

.preview-link {
    color: var(--brand-primary);
    text-decoration: underline;
}

.preview-button {
    background: var(--brand-primary);
    color: var(--brand-on-primary);
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.preview-accent {
    background: var(--brand-accent);
    color: var(--brand-on-accent);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.logo-editor,
.cover-editor {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    align-items: flex-start;
}

.logo-preview {
    max-height: 4rem;
    max-width: 16rem;
    border: 1px dashed var(--border);
    padding: var(--space-2);
}

.cover-preview {
    width: 100%;
    max-width: 28rem;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.photo-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-4);
    display: grid;
    gap: var(--space-4);
}

.photo-item {
    display: grid;
    grid-template-columns: 9rem 1fr;
    gap: var(--space-4);
    align-items: start;
}

.photo-item img {
    width: 9rem;
    height: 6.75rem;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: #eee;
}

.photo-controls {
    display: grid;
    gap: 0.35rem;
    justify-items: start;
}

.photo-controls input[type="text"] {
    width: 100%;
}

@media (max-width: 40rem) {
    table.list thead {
        display: none;
    }

    table.list tr {
        display: block;
        border-bottom: 1px solid var(--border);
        padding: var(--space-2) 0;
    }

    table.list td {
        display: block;
        border: 0;
        padding: 0.15rem 0;
    }

    .admin-nav a:last-child {
        margin-left: 0;
    }

    .photo-item {
        grid-template-columns: 1fr;
    }
}

/* ---------- Photo gallery (public cards and apartment page) ---------- */

.gallery {
    margin: 0;
}

.gallery-main {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--brand-secondary);
}

.gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    list-style: none;
    margin: var(--space-2) 0 0;
    padding: 0;
}

.gallery-thumbs img {
    display: block;
    width: 5rem;
    height: 3.75rem;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.gallery-figure {
    margin: 0;
}

.gallery-caption {
    margin-top: var(--space-2);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.gallery a[data-gallery] {
    display: block;
    cursor: zoom-in;
    border-radius: var(--radius);
}

.gallery a[data-gallery]:hover img {
    filter: brightness(1.04);
}

/* In-page photo viewer (wwwroot/js/gallery.js) */

html.lightbox-open {
    overflow: hidden;
}

.lightbox {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
}

.lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox::backdrop {
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    max-width: 92vw;
}

.lightbox-img {
    display: block;
    max-width: 92vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-text {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1rem;
    text-align: center;
    font-family: var(--brand-font);
    white-space: pre-line;
}

.lightbox-counter {
    opacity: 0.75;
}

.lightbox-btn {
    position: fixed;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-btn[hidden] {
    display: none;
}

.lightbox-close {
    top: 1rem;
    right: 1rem;
    font-size: 1.3rem;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

@media (max-width: 640px) {
    .lightbox-img {
        max-height: 70vh;
    }

    .lightbox-prev,
    .lightbox-next {
        top: auto;
        bottom: 1rem;
        transform: none;
    }

    .lightbox-prev {
        left: calc(50% - 3.75rem);
    }

    .lightbox-next {
        right: calc(50% - 3.75rem);
    }
}

/* ---------- Blazor ---------- */

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 1.25rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "Något gick fel.";
}

/* Blazor's error banner (in both layouts). Hidden until the framework shows it after an unhandled error. */
#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;
}
