/*
 * Styles of the app, from the prototype of phase 3A (removed; see the history of docs/design/geor24-pwa/prototipo.html). Colors, type and shapes come from
 * tokens.css; MudBlazor gets the same colors from GeOr24Theme.
 */

/*
 * Inter, embedded (decision 4 of phase 3A): it works offline and tells no third party who the customers are.
 * @fontsource-variable/inter 5.3.0, Latin subset, weights 100-900; license in fonts/LICENSE-Inter.txt (SIL OFL 1.1).
 */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Tokens of the app beyond those of phase 3A: the inverse surface of the messages at the bottom. */
:root {
    --inverse-bg: #1d1c47;
    --inverse-ink: #ffffff;
    --inverse-primary: #e6bde8;
    --bottom-nav-height: 72px;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --inverse-bg: #ecebf5;
        --inverse-ink: #1d1c47;
        --inverse-primary: #84328a;
    }
}

:root[data-theme="dark"] {
    --inverse-bg: #ecebf5;
    --inverse-ink: #1d1c47;
    --inverse-primary: #84328a;
}

/* ---------- Base ---------- */
/* touch-action: manipulation removes iOS Safari's double-tap-to-zoom (and the old 300ms tap delay) while
   keeping pinch-to-zoom, which WCAG 2.2 AA (decision 8, phase 3A) requires to stay available. */
html { box-sizing: border-box; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; }
*, *::before, *::after { box-sizing: inherit; }
body {
    margin: 0;
    min-height: 100dvh;
    background: var(--background);
    color: var(--ink);
    font: var(--text-body);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
h1:focus, h2:focus { outline: none; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Splash screen (index.html) ---------- */
.splash {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: var(--background);
    color: var(--ink);
}
.splash .emblem { width: 112px; height: 112px; color: var(--primary); }
.splash-name { font: 700 30px/36px var(--font); letter-spacing: -0.01em; }
.splash-progress { display: none; width: 120px; height: 3px; margin-top: 18px; overflow: hidden; border-radius: 2px; background: var(--divider); }
.first-visit .splash-progress { display: block; }
.splash-progress::after {
    content: "";
    display: block;
    width: var(--blazor-load-percentage, 0%);
    height: 100%;
    border-radius: 2px;
    background: var(--primary);
    transition: width var(--motion-base) var(--ease);
}

/* ---------- Shell and navigations ---------- */
/* Isolated: Layout\MainLayout.razor.css, BottomNavigation.razor.css and SideNavigation.razor.css. What the bars share stays here. */
@media (min-width: 960px) {
    .phone-only { display: none !important; }
    .bar .bar-emblem { display: none; }
}

/* ---------- Top bar of the pages ---------- */
.bar-wrap { position: sticky; top: 0; z-index: 5; }
.bar {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 60px;
    padding: calc(6px + env(safe-area-inset-top)) max(4px, env(safe-area-inset-right)) 6px max(12px, env(safe-area-inset-left));
    background: var(--surface);
    color: var(--ink);
    border-bottom: 1px solid var(--divider);
}
.bar .emblem { width: 36px; height: 36px; flex: none; margin-right: 8px; color: var(--primary); }
.bar-titles { flex: 1; min-width: 0; }
.bar h1 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 20px/26px var(--font); }
.bar-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: var(--text-secondary); color: var(--ink-muted); }

/* ---------- Content ---------- */
.content { flex: 1; }
.inner { max-width: 720px; margin: 0 auto; }
.inner.narrow { max-width: 640px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--radius-pill);
    font: 600 16px/22px var(--font);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover:not([disabled]) { background: var(--primary-strong); }
.btn-tonal { background: var(--primary-tint); color: var(--ink); }
.btn-outline { background: transparent; border: 1px solid var(--outline); color: var(--primary); }
.btn-text { background: transparent; color: var(--primary); padding: 0 12px; }
.btn-block { width: 100%; }
.btn-lg { min-height: 56px; font-size: 17px; }
.btn-danger { background: transparent; border: 1px solid var(--tone-error); color: var(--tone-error); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ---------- Empty states, system screens ---------- */
.empty, .state { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 24px; text-align: center; }
.empty h2, .state h2 { margin: 8px 0 0; font: var(--text-section); }
.state h1 { margin: 8px 0 0; font: var(--text-title); }
.empty p, .state p { margin: 0; max-width: 34ch; color: var(--ink-muted); }
.state { max-width: 440px; margin: 0 auto; }
.state .actions { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.ill { width: 88px; height: 88px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--primary-tint); color: var(--primary); }
.ill .mud-icon-root { width: 44px; height: 44px; }
.ill-error { background: var(--tone-error-bg); color: var(--tone-error); }

.error-screen, #blazor-error-ui {
    position: fixed;
    inset: 0;
    z-index: 2000;
    overflow-y: auto;
    padding: calc(40px + env(safe-area-inset-top)) 24px 24px;
    background: var(--background);
    color: var(--ink);
}
#blazor-error-ui { display: none; }

/* ---------- Messages at the bottom: snackbars (the bar of the new version is Components\UpdateBar.razor.css) ---------- */
#mud-snackbar-container.mud-snackbar-location-bottom-center { bottom: calc(var(--bottom-nav-height) + 12px + env(safe-area-inset-bottom)); }

@media (min-width: 960px) {
    #mud-snackbar-container.mud-snackbar-location-bottom-center { bottom: 24px; }
}

/* ---------- Lists of items: account, security panel, management ---------- */
.menu { list-style: none; margin: 16px; padding: 0; border: 1px solid var(--divider); border-radius: var(--radius-card); background: var(--surface); }
.menu > li + li { border-top: 1px solid var(--divider); }
.menu-btn { width: 100%; display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 12px 8px 16px; border: 0; background: none; text-align: left; }
.menu-btn > .mud-icon-root { flex: none; color: var(--ink-muted); }
.m-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.m-sub { font: var(--text-secondary); color: var(--ink-muted); }

/* Cards with a title, a text and actions: InstallCard, DraftBox, NoLinksNotice. */
.card-title { font: var(--text-body-strong); }
.card-sub { font: var(--text-secondary); color: var(--ink-muted); }
.card-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 8px; }

/* ---------- Panels: MudDialog from the bottom on phones, centered from 960 px ---------- */
.mud-dialog-container .mud-dialog.sheet {
    border-radius: var(--radius-sheet);
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow);
}
.mud-dialog.sheet .mud-dialog-content { padding: 16px 16px 20px; }
.sheet-scrim { background: var(--scrim) !important; }

@media (max-width: 959.98px) {
    .mud-dialog-container .mud-dialog.sheet {
        align-self: flex-end;
        width: 100%;
        max-width: none;
        max-height: 90dvh;
        margin: 0;
        border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
        padding-bottom: env(safe-area-inset-bottom);
        animation: up var(--motion-base) var(--ease);
    }
}

.sh-head { display: flex; align-items: flex-start; gap: 8px; }
.sh-head > div { flex: 1; min-width: 0; padding-top: 6px; }
.sh-head h2 { margin: 0; font: var(--text-title); overflow-wrap: anywhere; }
.sh-sub { margin: 2px 0 0; font: var(--text-secondary); color: var(--ink-muted); }
.sh-sec { margin-top: 18px; }
.sh-sec h3 { margin: 0 0 10px; font: 600 14px/20px var(--font); color: var(--ink-muted); }
.sh-text { margin: 12px 0 0; color: var(--ink-muted); }

/* Privacy notice and terms of use (PrivacyNotice, TermsOfUse): the same rules for both documents. */
.legal { font: var(--text-secondary); color: var(--ink); overflow-wrap: anywhere; }
.legal h3 { margin: 24px 0 8px; font: var(--text-body-strong); }
.legal p, .legal ul { margin: 8px 0 0; }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 6px; }
.legal-scroll { margin-top: 8px; overflow-x: auto; }
.legal table { width: 100%; min-width: 480px; border-collapse: collapse; }
.legal th, .legal td { padding: 8px 10px; border: 1px solid var(--divider); text-align: left; vertical-align: top; }
.legal th { background: var(--surface-2); font-weight: 600; }
.sh-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.sh-actions .btn-primary { flex: 1; }

.opt-list { display: flex; flex-direction: column; gap: 8px; }
.opt {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 14px 16px;
    border: 1px solid var(--divider);
    border-radius: var(--radius-card);
    background: var(--surface);
    cursor: pointer;
}
.opt input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--primary); }
.opt:has(input:checked) { border: 2px solid var(--primary); padding: 13px 15px; background: var(--primary-tint); }
.opt:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }
.opt input:focus-visible { outline: none; }
.opt-body { display: flex; flex-direction: column; min-width: 0; }
.opt-title { font: var(--text-body-strong); }
.opt-sub { font: var(--text-secondary); color: var(--ink-muted); }

.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-card); background: var(--tone-error-bg); font: var(--text-secondary); }
.alert > .mud-icon-root { flex: none; color: var(--tone-error); }
.alert-info { background: var(--tone-info-bg); }
.alert-info > .mud-icon-root { color: var(--tone-info); }
.alert p { margin: 0; }

/* ---------- Public pages: sign-in and the links of the emails (the frame is Layout\PublicLayout.razor.css, the logo Components\Brand.razor.css) ---------- */
.sec-title { margin: 0 0 6px; font: var(--text-section); }
.sec-text { margin: 0; font: var(--text-secondary); color: var(--ink-muted); }
.public-foot { margin: auto 0 0; text-align: center; font: var(--text-secondary); color: var(--ink-muted); }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.form > .btn-text { align-self: center; }
.tf { display: flex; flex-direction: column; gap: 6px; }
.tf > label { font: var(--text-body-strong); }
.tf-box {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 4px 0 14px;
    border: 1px solid var(--outline);
    border-radius: var(--radius-card);
    background: var(--surface);
}
.tf-box:focus-within { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
/* 16 px: below that Safari on iPhone zooms the page when the field is touched. */
.tf-box input { flex: 1; min-width: 0; height: 48px; border: 0; outline: none; background: transparent; font-size: 16px; }
.tf.invalid .tf-box { border-color: var(--tone-error); }
.tf .err, .form-err { margin: 0; font: var(--text-secondary); color: var(--tone-error); }
.icon-btn {
    width: 48px;
    height: 48px;
    flex: none;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink-muted);
}
.icon-btn:hover { background: color-mix(in srgb, currentColor 9%, transparent); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.switch-row small { display: block; font: var(--text-secondary); color: var(--ink-muted); }
.sw {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    flex: none;
    width: 52px;
    height: 32px;
    margin: 0;
    border: 2px solid var(--outline);
    border-radius: 16px;
    background: var(--surface-2);
    cursor: pointer;
}
.sw::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--outline); transition: left var(--motion-fast) var(--ease); }
.sw:checked { border-color: var(--primary); background: var(--primary); }
.sw:checked::after { left: 24px; background: var(--on-primary); }
.linkish { padding: 0; border: 0; background: none; color: var(--primary); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.spin {
    width: 20px;
    height: 20px;
    flex: none;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-right-color: transparent;
    animation: spin 0.8s linear infinite;
}

/* ---------- Outcomes ---------- */
.ill-info { background: var(--tone-info-bg); color: var(--tone-info); }
.ill-success { background: var(--tone-success-bg); color: var(--tone-success); }
.ill-warning { background: var(--tone-warning-bg); color: var(--tone-warning); }
.check { width: 96px; height: 96px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; animation: pop 0.5s var(--ease); }
.check .mud-icon-root { width: 56px; height: 56px; }
.state .install-card { width: 100%; margin-top: 8px; }

/* ---------- Avatar and hints of the panels ---------- */
.avatar { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--primary-tint); color: var(--primary); font: 600 20px/1 var(--font); }
.menu-btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.sh-form { margin-top: 16px; }
.sh-hint { margin: 0; font: var(--text-secondary); color: var(--ink-muted); }

/* ---------- Notices on the pages ---------- */
.home-notice { padding: 0 16px; }
.home-notice .notice { margin: 4px 0 12px; }
.notice {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
    padding: 14px 16px;
    border: 1px solid var(--divider);
    border-radius: var(--radius-card);
    background: var(--surface);
    text-align: left;
}
.notice > .mud-icon-root { grid-row: span 2; margin-top: 2px; color: var(--tone-warning); }

/* ---------- Confirmations: a centered dialog at every width ---------- */
.mud-dialog-container .mud-dialog.confirm { border-radius: var(--radius-sheet); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.mud-dialog.confirm .mud-dialog-content { padding: 20px 20px 12px; }

/* ---------- Status of a request: color, icon and text ---------- */
.st {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px 4px 8px;
    border-radius: var(--radius-pill);
    background: var(--tbg);
    color: var(--tfg);
    font: 600 13px/18px var(--font);
    white-space: nowrap;
}
.st .mud-icon-root { width: 18px; height: 18px; }
.st-lg { padding: 6px 14px 6px 10px; font-size: 15px; line-height: 20px; }
.st-lg .mud-icon-root { width: 20px; height: 20px; }
.t-success { --tfg: var(--tone-success); --tbg: var(--tone-success-bg); }
.t-warning { --tfg: var(--tone-warning); --tbg: var(--tone-warning-bg); }
.t-error { --tfg: var(--tone-error); --tbg: var(--tone-error-bg); }
.t-info { --tfg: var(--tone-info); --tbg: var(--tone-info-bg); }
.t-neutral { --tfg: var(--tone-neutral); --tbg: var(--tone-neutral-bg); }

/* ---------- Composition of a request: what more than one component uses ---------- */
/* The page, the groups and the review are isolated: Pages\NewRequest.razor.css and Components\Compose\*.razor.css; the panels, Components\Sheets\*.razor.css. */
.pane { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.pane-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.skeletons { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.placeholder { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; color: var(--ink-muted); }
.placeholder p { margin: 0; max-width: 28ch; }

.bottom-bar {
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: var(--surface);
    border-top: 1px solid var(--divider);
}
.bottom-hint { margin: 0; font: var(--text-secondary); color: var(--ink-muted); text-align: center; }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chip {
    position: relative;
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--outline);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--ink);
    font: 500 14px/20px var(--font);
}
.chip::before { content: ""; position: absolute; inset: -4px 0; }
.chip .mud-icon-root { width: 18px; height: 18px; }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--primary-tint); border-color: var(--primary); }

.g-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border-block: 1px solid var(--divider); }
.g-name { font: var(--text-body-strong); }
.g-parent { font: 500 12px/16px var(--font); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); }

/* Review */
.card { margin: 16px; background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius-card); }
.sum-row { display: flex; align-items: center; gap: 14px; padding: 12px 8px 12px 16px; }
.sum-row + .sum-row { border-top: 1px solid var(--divider); }
.sum-row > .mud-icon-root { flex: none; color: var(--ink-muted); }
.sum-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sum-l { font: 500 12px/16px var(--font); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); }
.sum-v { font: var(--text-body-strong); }
.sum-s { font: var(--text-secondary); color: var(--ink-muted); }
.sec-title small { font: var(--text-secondary); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.rv-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rv-qty { font: 600 16px/24px var(--font); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rv-note { font: var(--text-secondary); color: var(--ink-muted); overflow-wrap: anywhere; }
.field { display: flex; flex-direction: column; gap: 6px; padding: 0 16px; }
.field > label { font: 500 14px/20px var(--font); }
.field textarea, .sheet textarea {
    min-height: 88px;
    padding: 12px 14px;
    border: 1px solid var(--outline);
    border-radius: var(--radius-card);
    background: var(--surface);
    font-size: 16px;
    resize: vertical;
}
.field textarea:focus, .sheet textarea:focus { outline: none; border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.sheet .field { padding: 0; margin-top: 8px; }
.counter { align-self: flex-end; font: var(--text-label); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.callout { display: flex; gap: 10px; margin: 16px; padding: 12px 14px; border-radius: var(--radius-card); background: var(--tone-info-bg); font: var(--text-secondary); }
.callout > .mud-icon-root { flex: none; color: var(--tone-info); }
.callout.warn { background: var(--tone-warning-bg); }
.callout.warn > .mud-icon-root { color: var(--tone-warning); }
.callout.flush { margin: 0; }
.callout p { margin: 0; }

/* Outcome */
.rc-date { font: var(--text-body-strong); }
.rc-meta { font: var(--text-secondary); color: var(--ink-muted); }

/* Panels */
.handle { width: 36px; height: 4px; margin: 0 auto 10px; border-radius: 2px; background: var(--outline); opacity: 0.6; }
.seg { display: flex; gap: 4px; margin: 18px 0 4px; padding: 4px; border-radius: var(--radius-pill); background: var(--surface-2); }
.seg button { flex: 1; min-height: 44px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink-muted); font: 600 15px/20px var(--font); }
.seg button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.seg button[disabled] { opacity: 0.6; cursor: not-allowed; }

@media (min-width: 960px) {
    .handle { display: none; }
}

/* ---------- History: what more than one component uses ---------- */
/* The rest of the history is isolated: Pages\Requests.razor.css, Components\History\*.razor.css, Components\Sheets\RequestFiltersSheet.razor.css. */
.stale { margin: 12px 16px 0; align-items: center; }
.stale p { flex: 1; }
.d-end { height: 32px; }

/* ---------- Management of the company (Admins): what more than one component uses ---------- */
/* The page and its parts are isolated: Pages\Company.razor.css and Components\Management\*.razor.css. */
a.menu-btn { color: inherit; text-decoration: none; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--tone-error); color: var(--surface); font: 600 12px/20px var(--font); text-align: center; font-variant-numeric: tabular-nums; }
.tab-intro { margin: 16px 16px 0; font: var(--text-secondary); color: var(--ink-muted); }
.u-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.u-name { display: flex; align-items: center; gap: 8px; font: var(--text-body-strong); overflow-wrap: anywhere; }
.u-main .m-sub { overflow-wrap: anywhere; }
.lk { display: flex; flex-direction: column; gap: 6px; padding: 16px; }
.lk > .st { align-self: flex-start; }
.lk-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lk-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 6px; }

/* ---------- Motion ---------- */
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } }
.spinning { animation: spin 0.9s linear infinite; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
