/* Nordic Emergency Solutions look & feel: Apple-inspired, as in vis-à-vis (NordicEmergency/vis-a-vis,
   src/ScreenVisit.Identity/wwwroot/site.css). System font, Apple's greys and blue, hairlines,
   translucent bars, pill buttons, light and dark theme. Nordic Emergency stays in the logo and the red.
   Identical copy in Evrt.FirstAid.WebPortal and Evrt.FirstAid.IdentityServer: keep them in sync.
   Loaded after Bootstrap 4 and site.css, so it overrides both; pages need no styling of their own.
   Theme: follows the OS, unless the header toggle stored 'light' or 'dark' in localStorage 'ne_theme'
   (shared with nordicemergency.dk and vis-à-vis), which the layout puts on <html data-theme>. */

:root {
    --bg: #f5f5f7;
    --surface: #ffffff;
    --text: #1d1d1f;
    --muted: #6e6e73;
    --border: #d2d2d7;
    --hairline: rgba(0, 0, 0, 0.08);
    --fill: #e8e8ed;
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --accent-text: #ffffff;
    --brand-red: #c8102e;
    --danger: #d70015;
    --ok: #248a3d;
    --warn: #b25000;
    --header-bg: rgba(251, 251, 253, 0.8);
    --glass: rgba(255, 255, 255, 0.72);
    --glass-shadow: 0 2px 12px rgba(0, 0, 0, 0.04), 0 12px 40px rgba(0, 0, 0, 0.08);
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
    --segment-on: #ffffff;
    --segment-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
    --focus-ring: 0 0 0 4px rgba(0, 113, 227, 0.3);
    --ease: cubic-bezier(.25, .1, .25, 1);
    --font-text: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', 'Segoe UI', Roboto, Arial, sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', 'Segoe UI', Roboto, Arial, sans-serif;
    --max-width: 1230px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) {
        --bg: #000000;
        --surface: #1c1c1e;
        --text: #f5f5f7;
        --muted: #a1a1a6;
        --border: #424245;
        --hairline: rgba(255, 255, 255, 0.1);
        --fill: #2c2c2e;
        --accent: #0a84ff;
        --accent-hover: #409cff;
        --accent-text: #ffffff;
        --brand-red: #ff6961;
        --danger: #ff453a;
        --ok: #30d158;
        --warn: #ff9f0a;
        --header-bg: rgba(22, 22, 23, 0.8);
        --glass: rgba(28, 28, 30, 0.72);
        --glass-shadow: 0 2px 12px rgba(0, 0, 0, 0.3), 0 12px 40px rgba(0, 0, 0, 0.4);
        --card-shadow: none;
        --segment-on: #636366;
        --segment-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
        --focus-ring: 0 0 0 4px rgba(10, 132, 255, 0.4);
        color-scheme: dark;
    }
}

:root[data-theme='dark'] {
    --bg: #000000;
    --surface: #1c1c1e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --border: #424245;
    --hairline: rgba(255, 255, 255, 0.1);
    --fill: #2c2c2e;
    --accent: #0a84ff;
    --accent-hover: #409cff;
    --accent-text: #ffffff;
    --brand-red: #ff6961;
    --danger: #ff453a;
    --ok: #30d158;
    --warn: #ff9f0a;
    --header-bg: rgba(22, 22, 23, 0.8);
    --glass: rgba(28, 28, 30, 0.72);
    --glass-shadow: 0 2px 12px rgba(0, 0, 0, 0.3), 0 12px 40px rgba(0, 0, 0, 0.4);
    --card-shadow: none;
    --segment-on: #636366;
    --segment-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    --focus-ring: 0 0 0 4px rgba(10, 132, 255, 0.4);
    color-scheme: dark;
}

/* Base: sticky header + footer that sits at the bottom of short pages. */
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font: 16px/1.5 var(--font-text);
    letter-spacing: -0.011em;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body > .page-content {
    flex: 1 0 auto;
    padding-top: 32px;
    padding-bottom: 48px;
}

.container {
    max-width: var(--max-width);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}

h1, .h1 {
    font-size: 2rem;
    letter-spacing: -0.022em;
    line-height: 1.15;
    margin-bottom: 0.5em;
}

h2, .h2 {
    font-size: 1.25rem;
    letter-spacing: -0.016em;
}

h3, .h3 {
    font-size: 1.125rem;
    letter-spacing: -0.014em;
}

h4, .h4,
h5, .h5,
h6, .h6 {
    font-size: 1rem;
}

.display-4 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.022em;
}

strong, b {
    font-weight: 600;
}

/* Headings marked .blue were the old brand blue; now plain text colour. */
.blue {
    color: var(--text);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color .2s var(--ease);
}

a:hover {
    color: var(--accent-hover);
    text-decoration: none;
}

main a:not(.button):not(.btn):not(.nav-link):not(.dropdown-item):not(.list-group-item):hover {
    text-decoration: underline;
}

hr {
    border-top: 1px solid var(--hairline);
}

code {
    color: var(--brand-red);
}

.text-muted,
.form-text {
    color: var(--muted) !important;
}

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

.text-success {
    color: var(--ok) !important;
}

.text-warning {
    color: var(--warn) !important;
}

.text-primary {
    color: var(--accent) !important;
}

.text-dark {
    color: var(--text) !important;
}

/* Visible focus on everything interactive (site.css used to remove all outlines). */
:focus {
    outline: none;
}

:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

input[type=checkbox]:focus-visible,
input[type=radio]:focus-visible {
    box-shadow: none;
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Header. The translucent blur sits on ::before: a backdrop-filter on the header itself would
   stop the dropdown menus inside it from blurring the page behind them. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    border-bottom: 1px solid var(--hairline);
}

.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--header-bg);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 52px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.brand,
.brand:hover {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: -0.016em;
    white-space: nowrap;
    margin-right: auto;
    text-decoration: none;
}

.brand-mark {
    width: 24px;
    height: 24px;
}

.site-nav {
    max-width: 100%;
}

.site-nav ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav li:before {
    display: none;
}

.site-nav a {
    color: var(--muted);
    font-weight: 400;
    font-size: 0.8125rem;
    white-space: nowrap;
}

.site-nav a:hover {
    color: var(--text);
}

.site-nav a.active {
    color: var(--text);
    font-weight: 500;
}

.site-nav a.nav-icon {
    display: inline-flex;
    color: var(--muted);
}

.site-nav a.nav-icon:hover {
    color: var(--text);
}

.nav-search form {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-search-icon {
    position: absolute;
    left: 9px;
    display: flex;
    color: var(--muted);
    pointer-events: none;
}

.nav-search-input {
    width: 32px;
    height: 32px;
    padding: 0 10px 0 30px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--fill);
    color: var(--text);
    font-size: 13px;
    transition: width .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease);
}

.nav-search-input::placeholder {
    color: var(--muted);
}

.nav-search-input:focus,
.nav-search-input:not(:placeholder-shown) {
    width: 200px;
    background: var(--surface);
    border-color: var(--accent);
}

.nav-search-input:focus {
    box-shadow: var(--focus-ring);
}

/* Round icon button in the header (theme toggle). */
.header-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--fill);
    color: var(--text);
    cursor: pointer;
    transition: background .2s var(--ease);
}

.header-icon-btn:hover {
    background: var(--border);
    color: var(--text);
}

.header-icon-btn svg {
    width: 17px;
    height: 17px;
}

.theme-toggle .icon-moon {
    display: none;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) .theme-toggle .icon-sun {
        display: none;
    }

    :root:not([data-theme='light']) .theme-toggle .icon-moon {
        display: block;
    }
}

:root[data-theme='dark'] .theme-toggle .icon-sun {
    display: none;
}

:root[data-theme='dark'] .theme-toggle .icon-moon {
    display: block;
}

/* User menu: avatar with the user's initials, opening a dropdown (My profile, Log out). */
.site-nav a.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .5px;
}

.site-nav a.nav-avatar:hover,
.site-nav a.nav-avatar:focus {
    color: var(--accent-text);
    background: var(--accent-hover);
}

/* As wide as the name/email need, within the screen; only wrap (anywhere) if that's not enough. */
.nav-user .dropdown-menu {
    width: max-content;
    min-width: 200px;
    max-width: min(360px, calc(100vw - 32px));
}

.nav-user .dropdown-header {
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Dropdown menus: translucent with blur, like the header. */
.dropdown-menu {
    padding: 6px;
    border: 1px solid var(--hairline);
    border-radius: 14px;
    background: var(--glass);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    box-shadow: var(--glass-shadow);
    color: var(--text);
    font-size: 13px;
}

/* Fade only: Popper positions the menu with transform. */
.dropdown-menu.show {
    animation: fade-in .2s var(--ease);
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.dropdown-header {
    padding: 6px 12px;
    color: var(--text);
    font-size: 13px;
}

.dropdown-divider {
    margin: 4px 0;
    border-top-color: var(--hairline);
}

.dropdown-item,
.site-nav .dropdown-item {
    padding: 7px 12px;
    border-radius: 8px;
    color: var(--text);
    font-size: 13px;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item:active,
.dropdown-item.active,
.site-nav .dropdown-item:hover,
.site-nav .dropdown-item:focus {
    background: var(--accent);
    color: var(--accent-text);
    text-decoration: none;
}

/* Footer */
.site-footer {
    flex-shrink: 0;
    padding: 28px 0;
    border-top: 1px solid var(--hairline);
    background: transparent;
    color: var(--muted);
    font-size: 0.75rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-inner p {
    margin: 0;
}

.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-inner a {
    color: var(--text);
    font-weight: 400;
}

.footer-inner a:hover {
    color: var(--text);
    text-decoration: underline;
}

.footer-icon-link {
    display: inline-flex;
    align-items: center;
}

.footer-icon-link:hover {
    opacity: 0.75;
}

/* Buttons. The portal's own: .button (filled, primary), .ghost (outlined blue, secondary),
   .ghost.red (outlined red, delete). Plain <button>s get the same, but not Bootstrap's .btn,
   .close or the header icon buttons, so they don't inherit the blue fill and hover. */
.button,
.hs-button,
button:where(:not(.btn, .close, .header-icon-btn, .navbar-toggler)) {
    display: inline-block;
    position: relative;
    height: 44px;
    line-height: 42px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 980px;
    background: var(--accent);
    color: var(--accent-text);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.011em;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .1s var(--ease);
}

.button:hover,
.hs-button:hover,
button:where(:not(.btn, .close, .header-icon-btn, .navbar-toggler)):hover {
    background: var(--accent-hover);
    color: var(--accent-text);
    text-decoration: none;
}

.button:active,
.hs-button:active,
button:where(:not(.btn, .close, .header-icon-btn, .navbar-toggler)):active,
.btn:not(:disabled):not(.disabled):active {
    transform: scale(.98);
}

.button.small,
.hs-button.small,
button.small {
    height: 36px;
    line-height: 34px;
    padding: 0 16px;
    font-size: 14px;
}

.button.ghost,
.hs-button.ghost,
button.ghost {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent);
}

.button.ghost:hover,
.hs-button.ghost:hover,
button.ghost:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-text);
}

.button.ghost.red,
.hs-button.ghost.red,
button.ghost.red {
    border-color: var(--danger);
    color: var(--danger);
}

.button.ghost.red:hover,
.hs-button.ghost.red:hover,
button.ghost.red:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.button:disabled,
.button.disabled,
button:disabled {
    opacity: .5;
    cursor: default;
    transform: none;
}

.button + .button {
    margin-left: 8px;
}

.row-actions .button.icon-only {
    width: 36px;
}

/* Bootstrap buttons as pills in the same roles. */
.btn {
    height: auto;
    padding: 8px 18px;
    border-radius: 980px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.011em;
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .1s var(--ease);
}

.btn-sm {
    padding: 4px 12px;
    font-size: 13px;
}

.btn:focus,
.btn.focus {
    box-shadow: none;
}

.btn:focus-visible,
.btn:not(:disabled):not(.disabled):active:focus {
    box-shadow: var(--focus-ring);
}

.btn-primary,
.btn-primary:disabled,
.btn-primary.disabled {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--accent-text);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--accent-text);
}

.btn-outline-primary,
.btn-outline-secondary {
    background-color: transparent;
    border-color: var(--accent);
    color: var(--accent);
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-secondary:not(:disabled):not(.disabled):active {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--accent-text);
}

.btn-secondary {
    background-color: var(--fill);
    border-color: var(--fill);
    color: var(--text);
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:not(:disabled):not(.disabled):active {
    background-color: var(--border);
    border-color: var(--border);
    color: var(--text);
}

.btn-link {
    color: var(--accent);
    font-weight: 400;
}

.btn-link:hover {
    color: var(--accent-hover);
}

/* .btn-light is only used on date inputs: style it as a field. */
.btn-light,
.btn-light:hover,
.btn-light:focus {
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background-color: var(--surface);
    color: var(--text);
    font-weight: 400;
    cursor: text;
}

.btn-light:active {
    transform: none;
}

.btn-light:focus {
    border-color: var(--accent);
    box-shadow: var(--focus-ring);
}

/* Buttons attached to a field keep the field's corners. */
.input-group-append .btn,
.input-group-prepend .btn {
    border-radius: 12px;
}

.input-group-append .btn:active,
.input-group-prepend .btn:active {
    transform: none;
}

.close {
    height: auto;
    line-height: 1;
    background: transparent;
    color: var(--text);
    text-shadow: none;
}

.close:hover {
    color: var(--text);
}

/* Fields */
label,
form label {
    font-weight: 500;
    font-size: 0.9375rem;
}

.form-control,
.custom-select {
    height: auto;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background-color: var(--surface);
    color: var(--text);
    font-size: 1rem;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.form-control::placeholder {
    color: var(--muted);
}

.form-control:focus,
.custom-select:focus {
    border-color: var(--accent);
    background-color: var(--surface);
    color: var(--text);
    box-shadow: var(--focus-ring);
}

.form-control:disabled,
.form-control[readonly] {
    background-color: var(--fill);
    color: var(--muted);
}

.form-control.is-invalid,
.was-validated .form-control:invalid,
.input-validation-error {
    border-color: var(--danger);
}

input[type=checkbox],
input[type=radio] {
    accent-color: var(--accent);
}

.form-check-label {
    font-weight: 400;
}

.input-group-text {
    border-color: var(--border);
    border-radius: 12px;
    background-color: var(--fill);
    color: var(--muted);
}

/* Cards and boxes */
.card,
.well {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 18px;
    box-shadow: var(--card-shadow);
    color: var(--text);
}

.card-header,
.card-footer {
    background: transparent;
    border-color: var(--hairline);
}

.list-group-item {
    background-color: var(--surface);
    border-color: var(--hairline);
    color: var(--text);
}

.list-group-item:first-child {
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

.list-group-item:last-child {
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
}

.list-group-item-action:hover,
.list-group-item-action:focus {
    background-color: var(--fill);
    color: var(--text);
}

.list-group-item.active {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--accent-text);
}

/* Tables: hairlines between rows, quiet column headers. */
.table {
    color: var(--text);
}

.table th,
.table td {
    padding: 10px 8px;
    border-top: 0;
    border-bottom: 1px solid var(--hairline);
}

.table thead th,
.table th {
    border-bottom: 1px solid var(--hairline);
    color: var(--muted);
    font-size: 0.8125rem;
    font-weight: 500;
    vertical-align: bottom;
}

.table tbody th {
    vertical-align: top;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: transparent;
}

.table-bordered,
.table-bordered th,
.table-bordered td {
    border: 1px solid var(--hairline);
}

/* Status badges: round, tinted with 15 % of the status colour. */
.badge {
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--fill);
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    vertical-align: middle;
}

.badge-success {
    background: color-mix(in srgb, var(--ok) 15%, transparent);
    color: var(--ok);
}

.badge-warning {
    background: color-mix(in srgb, var(--warn) 15%, transparent);
    color: var(--warn);
}

.badge-danger {
    background: color-mix(in srgb, var(--danger) 15%, transparent);
    color: var(--danger);
}

.badge-primary,
.badge-info {
    background: color-mix(in srgb, var(--accent) 15%, transparent);
    color: var(--accent);
}

.badge-secondary,
.badge-light,
.badge-dark {
    background: var(--fill);
    color: var(--muted);
}

/* Alerts: tinted boxes, text in the normal colour. */
.alert {
    border: 1px solid var(--hairline);
    border-radius: 14px;
    color: var(--text);
}

.alert-info {
    background: var(--surface);
    box-shadow: var(--card-shadow);
}

.alert-success {
    background: color-mix(in srgb, var(--ok) 12%, var(--surface));
}

.alert-warning {
    background: color-mix(in srgb, var(--warn) 12%, var(--surface));
}

.alert-danger {
    background: color-mix(in srgb, var(--danger) 12%, var(--surface));
}

.alert-primary {
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
}

.alert-dark,
.alert-secondary,
.alert-light {
    background: var(--fill);
}

.alert hr {
    border-top-color: var(--hairline);
}

.alert-link {
    color: var(--accent);
}

/* Tabs as a segmented control: grey track, the selected tab white (lighter grey in dark) with a small shadow. */
.nav-pills,
.nav-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 3px;
    border: 0;
    border-radius: 12px;
    background: var(--fill);
}

.nav-pills .nav-link,
.nav-tabs .nav-link {
    padding: 6px 16px;
    border: 0;
    border-radius: 9px;
    background: none;
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 400;
    transition: background-color .2s var(--ease), box-shadow .2s var(--ease);
}

.nav-pills .nav-link:hover,
.nav-tabs .nav-link:hover {
    background: color-mix(in srgb, var(--surface) 50%, transparent);
    color: var(--text);
    text-decoration: none;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link,
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    background: var(--segment-on);
    color: var(--text);
    font-weight: 500;
    box-shadow: var(--segment-shadow);
}

.page-link {
    background-color: var(--surface);
    border-color: var(--hairline);
    color: var(--accent);
}

.page-item.active .page-link {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--accent-text);
}

.spinner-grow,
.spinner-border {
    color: var(--accent);
}

.tooltip-inner {
    border-radius: 8px;
}

/* Portal bits */
.default-workspace-mark {
    color: var(--accent);
}

/* The 2FA QR code always has dark modules on white with a quiet zone, also in dark mode,
   or some authenticator apps can't scan it. */
#qrCode img,
#qrCode canvas {
    box-sizing: content-box;
    padding: 8px;
    border-radius: 8px;
    background: #fff;
}

@media (max-width: 720px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 12px 16px;
    }

    h1, .h1 {
        font-size: 1.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Print on white whatever the theme. */
@media print {
    :root,
    :root[data-theme='dark'],
    :root:not([data-theme='light']) {
        --bg: #ffffff;
        --surface: #ffffff;
        --text: #1d1d1f;
        --muted: #6e6e73;
        --border: #d2d2d7;
        --hairline: rgba(0, 0, 0, 0.12);
        --fill: #e8e8ed;
        --accent: #0071e3;
        --danger: #d70015;
        --ok: #248a3d;
        --warn: #b25000;
        --card-shadow: none;
        color-scheme: light;
    }

    body {
        display: block;
        min-height: 0;
    }
}
