/* MW Autos IMS - design tokens, components, motion, responsive and print styles.
   Mobile first. Breakpoints: 576, 768, 992, 1200 px.
   ASCII only (rule 8). */

/* ---------- 1. Tokens (light) ---------- */
:root {
    /* brand */
    --brand: #1f5fbf;
    --brand-hover: #174b99;
    --brand-soft: #e7f0fc;
    --brand-ring: rgba(31, 95, 191, 0.28);
    --accent: #d9822b;

    /* status */
    --success: #1e7d4f;
    --success-soft: #e3f4ea;
    --danger: #b42318;
    --danger-soft: #fdeaea;
    --warning: #9a6700;
    --warning-soft: #fff4d6;
    --info: #1763a6;
    --info-soft: #e5f1fb;

    /* DR / CR (ledger sign: DR = customer owes us, CR = we owe) */
    --dr: #1e7d4f;
    --dr-soft: #e3f4ea;
    --cr: #b42318;
    --cr-soft: #fdeaea;

    /* surfaces */
    --surface-page: #f4f6fa;
    --surface-card: #ffffff;
    --surface-muted: #eef1f6;
    --surface-header: rgba(255, 255, 255, 0.9);

    /* text */
    --text-primary: #16202e;
    --text-secondary: #5b6779;
    --text-muted: #8a94a6;
    --text-on-brand: #ffffff;

    /* borders and shadows */
    --border: #dfe4ec;
    --border-strong: #c5cdd9;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
    --shadow-md: 0 6px 16px rgba(16, 24, 40, 0.10);
    --shadow-lg: 0 18px 40px rgba(16, 24, 40, 0.18);

    /* radii */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-pill: 999px;

    /* spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;

    /* motion */
    --dur-fast: 150ms;
    --dur: 250ms;
    --dur-slow: 450ms;
    --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* type and layout */
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    --header-h: 56px;
    --touch-min: 44px;
}

/* ---------- 2. Tokens (dark) ---------- */
:root[data-theme="dark"],
:root[data-bs-theme="dark"] {
    color-scheme: dark;
    --brand: #6ea8ff;
    --brand-hover: #8dbaff;
    --brand-soft: rgba(110, 168, 255, 0.14);
    --brand-ring: rgba(110, 168, 255, 0.35);
    --accent: #f0a04b;

    --success: #4ade80;
    --success-soft: rgba(74, 222, 128, 0.14);
    --danger: #ff7a70;
    --danger-soft: rgba(255, 122, 112, 0.14);
    --warning: #fbbf24;
    --warning-soft: rgba(251, 191, 36, 0.14);
    --info: #7dd3fc;
    --info-soft: rgba(125, 211, 252, 0.14);

    --dr: #4ade80;
    --dr-soft: rgba(74, 222, 128, 0.14);
    --cr: #ff7a70;
    --cr-soft: rgba(255, 122, 112, 0.14);

    --surface-page: #0f1420;
    --surface-card: #171e2c;
    --surface-muted: #1e2636;
    --surface-header: rgba(15, 20, 32, 0.9);

    --text-primary: #e7ecf3;
    --text-secondary: #a3afc2;
    --text-muted: #7a8599;
    --text-on-brand: #0b1220;

    --border: #2c3648;
    --border-strong: #3d4a60;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.55);
}

/* Fallback when no data-theme is set: follow the operating system. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --brand: #6ea8ff;
        --brand-hover: #8dbaff;
        --brand-soft: rgba(110, 168, 255, 0.14);
        --brand-ring: rgba(110, 168, 255, 0.35);
        --accent: #f0a04b;
        --success: #4ade80;
        --success-soft: rgba(74, 222, 128, 0.14);
        --danger: #ff7a70;
        --danger-soft: rgba(255, 122, 112, 0.14);
        --warning: #fbbf24;
        --warning-soft: rgba(251, 191, 36, 0.14);
        --info: #7dd3fc;
        --info-soft: rgba(125, 211, 252, 0.14);
        --dr: #4ade80;
        --dr-soft: rgba(74, 222, 128, 0.14);
        --cr: #ff7a70;
        --cr-soft: rgba(255, 122, 112, 0.14);
        --surface-page: #0f1420;
        --surface-card: #171e2c;
        --surface-muted: #1e2636;
        --surface-header: rgba(15, 20, 32, 0.9);
        --text-primary: #e7ecf3;
        --text-secondary: #a3afc2;
        --text-muted: #7a8599;
        --text-on-brand: #0b1220;
        --border: #2c3648;
        --border-strong: #3d4a60;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
        --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.35);
        --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.55);
    }
}

/* ---------- 3. Base and typography ---------- */
html {
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--surface-page);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.text-secondary-app { color: var(--text-secondary) !important; }
.text-muted-app { color: var(--text-muted) !important; }
.font-mono { font-family: var(--font-mono); }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- 4. Layout: sticky header, sidebar, main ---------- */
.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    min-height: var(--header-h);
    background: var(--surface-header);
    border-bottom: 1px solid var(--border);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
}

.page-header {
    position: sticky;
    top: var(--header-h);
    z-index: 1010;
    padding: var(--space-3) 0;
    background: var(--surface-header);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.page-header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.app-main {
    padding: var(--space-4);
}

.app-shell {
    display: flex;
    align-items: stretch;
    min-height: calc(100vh - var(--header-h));
}

.app-workspace {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.app-footer {
    margin-top: auto;
    padding: var(--space-4);
    border-top: 1px solid var(--border);
}

/* Sidebar becomes an offcanvas drawer below 992 px (Bootstrap offcanvas-lg). Same markup for both. */
.app-sidebar {
    --bs-offcanvas-width: 260px;
    background: var(--surface-card);
    border-right: 1px solid var(--border);
    width: 260px;
}

.app-nav-group + .app-nav-group {
    margin-top: var(--space-3);
}

.app-nav-heading {
    padding: var(--space-2) var(--space-3);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    white-space: nowrap;
}

.app-nav .nav-link.disabled {
    opacity: 0.55;
}

.nav-badge {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 600;
}

.app-sidebar .offcanvas-header {
    border-bottom: 1px solid var(--border);
}

.app-sidebar .nav-link {
    min-width: 0;
    max-width: 100%;
    min-height: var(--touch-min);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.app-sidebar .nav-link:hover {
    background: var(--surface-muted);
    color: var(--text-primary);
}

.app-sidebar .nav-link.active {
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 600;
}

/* ---------- 5. Cards, KPI tiles, badges ---------- */
.app-card {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-4);
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

@media (hover: hover) {
    .app-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }
}

.kpi-tile {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.kpi-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.kpi-value {
    font-size: 1.6rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
}

.kpi-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--brand-soft);
    color: var(--brand);
}

.badge-dr,
.badge-cr,
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-dr { background: var(--dr-soft); color: var(--dr); }
.badge-cr { background: var(--cr-soft); color: var(--cr); }
.badge-status.is-open { background: var(--info-soft); color: var(--info); }
.badge-status.is-closed { background: var(--success-soft); color: var(--success); }
.badge-status.is-pending { background: var(--warning-soft); color: var(--warning); }
.badge-status.is-muted { background: var(--surface-muted); color: var(--text-secondary); }

/* ---------- 6. Tables (DataTables with Bootstrap 5) ---------- */
.table-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-card table.dataTable,
.table-card .table {
    color: var(--text-primary);
    margin-bottom: 0;
}

.table-card table.dataTable thead th,
.table-card .table thead th {
    background: var(--surface-muted);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    border-bottom: 1px solid var(--border-strong) !important;
}

.table-card table.dataTable tbody td,
.table-card .table tbody td {
    border-color: var(--border);
    vertical-align: middle;
    transition: background var(--dur-fast) var(--ease-out);
}

.table-card table.dataTable tbody tr:hover td {
    background: var(--brand-soft);
}

.table-card .dataTables_wrapper .dataTables_length select,
.table-card .dataTables_wrapper .dataTables_filter input {
    min-height: var(--touch-min);
}

.table-card .dataTables_wrapper .dataTables_info,
.table-card .dataTables_wrapper .dataTables_paginate {
    color: var(--text-secondary);
}

.table-card .dataTables_wrapper .page-link {
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.table-card .dataTables_empty {
    padding: var(--space-6) var(--space-4) !important;
    color: var(--text-muted);
}

/* ---------- 7. Forms: floating labels with focus ring ---------- */
.form-control,
.form-select {
    min-height: var(--touch-min);
    background-color: var(--surface-card);
    color: var(--text-primary);
    border-color: var(--border-strong);
    border-radius: var(--radius-sm);
    transition: box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.25rem var(--brand-ring);
    background-color: var(--surface-card);
    color: var(--text-primary);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--brand);
}

.form-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ---------- 8. Buttons: press scale and ripple ---------- */
.btn {
    position: relative;
    overflow: hidden;
    min-height: var(--touch-min);
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur) var(--ease-out), background-color var(--dur-fast);
}

.btn:active:not(:disabled) {
    transform: scale(0.97);
}

.btn:focus-visible {
    box-shadow: 0 0 0 0.25rem var(--brand-ring);
}

.btn-primary {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-hover);
    --bs-btn-hover-border-color: var(--brand-hover);
    --bs-btn-active-bg: var(--brand-hover);
    --bs-btn-active-border-color: var(--brand-hover);
    --bs-btn-color: var(--text-on-brand);
    --bs-btn-hover-color: var(--text-on-brand);
    --bs-btn-active-color: var(--text-on-brand);
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transform: scale(0);
    pointer-events: none;
    animation: ripple 0.6s var(--ease-out) forwards;
}

/* ---------- 8b. Searchable dropdowns (Tom Select, class js-searchable) ---------- */
.ts-wrapper {
    width: 100%;
}

.ts-wrapper .ts-control {
    min-height: var(--touch-min);
    background: var(--surface-card);
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 0.375rem 0.75rem;
    box-shadow: none;
}

.ts-wrapper.focus .ts-control {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.25rem var(--brand-ring);
}

.ts-wrapper .ts-control input {
    color: var(--text-primary);
}

.ts-wrapper .ts-control .item {
    color: var(--text-primary);
}

/* Lists scroll inside the screen on phones. */
.ts-dropdown {
    background: var(--surface-card);
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    max-height: min(50vh, 320px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1085;
}

.ts-dropdown .option {
    min-height: var(--touch-min);
    display: flex;
    align-items: center;
    color: var(--text-primary);
}

.ts-dropdown .option.active,
.ts-dropdown .option:hover {
    background: var(--brand-soft);
    color: var(--text-primary);
}

.ts-dropdown .ts-status,
.ts-dropdown .no-results {
    padding: 0.6rem 0.75rem;
    color: var(--text-muted);
}

/* Table rows fade in on each draw (drawCallback in datatable.js). */
.row-enter {
    animation: rowIn var(--dur) var(--ease-out) both;
}

@keyframes rowIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}

/* Modal scales in (Bootstrap fade class plus this scale). */
.modal.fade .modal-dialog {
    transform: scale(0.94);
    transition: transform var(--dur-slow) var(--ease-spring), opacity var(--dur) var(--ease-out);
}

.modal.show .modal-dialog {
    transform: none;
}

/* Chart containers: fixed height so Chart.js can size its canvas. */
.chart-box {
    position: relative;
    height: 260px;
}

/* ---------- 9. Empty states, skeletons, toasts, modals, loader ---------- */
.empty-state {
    text-align: center;
    padding: var(--space-6) var(--space-4);
    color: var(--text-muted);
}

.empty-state .bi {
    font-size: 2.4rem;
    color: var(--border-strong);
    display: block;
    margin-bottom: var(--space-3);
}

.skeleton {
    display: block;
    height: 1em;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, var(--surface-muted) 25%, var(--border) 37%, var(--surface-muted) 63%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease-in-out infinite;
}

.toast-host {
    position: fixed;
    right: var(--space-4);
    bottom: var(--space-4);
    z-index: 1090;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    max-width: calc(100vw - 2 * var(--space-4));
}

.toast-host .toast {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    animation: toastIn var(--dur-slow) var(--ease-spring) both;
}

.modal-content {
    background: var(--surface-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header,
.modal-footer {
    border-color: var(--border);
}

.modal.fade .modal-dialog {
    transition: transform var(--dur-slow) var(--ease-spring), opacity var(--dur) var(--ease-out);
}

.app-loader {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(16, 24, 40, 0.08);
}

.app-loader.is-visible {
    display: flex;
    animation: fadeIn var(--dur) var(--ease-out) both;
}

/* ---------- 10. Motion ---------- */
.page-enter {
    animation: pageEnter var(--dur-slow) var(--ease-out) both;
}

/* Staggered entrance: each child sets --i (app.js sets it when missing). */
.stagger > * {
    animation: cardIn var(--dur-slow) var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 70ms);
}

.countup {
    font-variant-numeric: tabular-nums;
}

@keyframes pageEnter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: none; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ---------- 11. Responsive (mobile first) ---------- */
@media (min-width: 576px) {
    .app-main { padding: var(--space-4) var(--space-4); }
    .kpi-value { font-size: 1.8rem; }
}

@media (min-width: 768px) {
    .app-main { padding: var(--space-5); }
    .page-header h1 { font-size: 1.4rem; }
    .toast-host { max-width: 420px; }
}

@media (min-width: 992px) {
    /* Sidebar is a fixed (sticky) column from here up. Bootstrap makes offcanvas-lg static here. */
    .app-main { padding: var(--space-5) var(--space-6); }
    .app-sidebar {
        position: sticky !important;
        top: var(--header-h);
        flex: 0 0 260px;
        width: 260px !important;
        height: calc(100vh - var(--header-h));
        background: var(--surface-card) !important;
        overflow-x: hidden;
        overflow-y: auto;
        transition: width var(--dur) var(--ease-out), flex-basis var(--dur) var(--ease-out);
    }
    /* Bootstrap turns .offcanvas-body into a row flex box at lg; the menu groups must stack vertically. */
    .app-sidebar .app-nav {
        display: block;
        flex-direction: column;
    }
    body.sidebar-collapsed .app-sidebar {
        flex-basis: 76px;
        width: 76px !important;
    }
    body.sidebar-collapsed .nav-label,
    body.sidebar-collapsed .app-nav-heading,
    body.sidebar-collapsed .nav-badge {
        display: none;
    }
    body.sidebar-collapsed .app-nav .nav-link {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (min-width: 1200px) {
    .app-main { max-width: none; margin: 0; }
    .kpi-value { font-size: 2rem; }
}

/* ---------- 12. Print: only .print-area on A4 ---------- */
@media print {
    @page {
        size: A4;
        margin: 15mm;
    }

    body * {
        visibility: hidden !important;
    }

    .print-area,
    .print-area * {
        visibility: visible !important;
    }

    .print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        color: #000;
        background: #fff;
    }

    .app-sidebar,
    .app-topbar,
    .page-header,
    .btn,
    .toast-host,
    .modal,
    .app-loader,
    .no-print {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
        font-size: 11pt;
    }

    .app-card {
        box-shadow: none;
        border: none;
        padding: 0;
    }

    .print-area table,
    .print-area th,
    .print-area td {
        border: 1px solid #000 !important;
        color: #000 !important;
        background: #fff !important;
    }

    /* Report tables are wide: smaller text and no clipping so every column fits the A4 width. */
    .print-area .table-responsive {
        overflow: visible !important;
    }

    .print-area .report-table {
        font-size: 8pt;
        width: 100%;
    }

    .print-area .report-table th,
    .print-area .report-table td {
        padding: 2px 4px;
        word-break: break-word;
    }

    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ---------- 13. Report index cards (Pages/Reports.aspx) ---------- */
.report-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.report-card:hover {
    transform: translateY(-2px);
    color: inherit;
}

.report-card-icon {
    font-size: 1.6rem;
    color: var(--bs-primary, #0d6efd);
}

.report-card-title {
    font-weight: 600;
}

.report-card-text {
    font-size: 0.9rem;
    color: var(--bs-secondary-color, #6c757d);
}

/* ---------- 14. Print-only blocks (summary and check inside the print area) ---------- */
.print-only {
    display: none;
}

@media print {
    .print-only {
        display: block !important;
    }

    .print-area .alert {
        background: #fff !important;
        color: #000 !important;
        border: 1px solid #000 !important;
    }
}

/* ---------- 15. Calculator keypad (Pages/Tools.aspx) ---------- */
.calc-keys {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.calc-keys .btn {
    min-height: 3rem;
    font-size: 1.15rem;
}

/* ---------- 16. PWA: install button and online/offline banner (Scripts/app/pwa.js) ---------- */
.pwa-enter {
    animation: pwa-rise 0.35s ease-out both;
}

.net-banner {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translate(-50%, 140%);
    z-index: 1080;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-on-brand, #ffffff);
    box-shadow: 0 8px 24px rgba(22, 32, 46, 0.2);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.net-banner-show {
    transform: translate(-50%, 0);
}

.net-banner-offline {
    background: var(--danger, #b42318);
}

.net-banner-online {
    background: var(--success, #1e7d4f);
}

@keyframes pwa-rise {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .pwa-enter,
    .net-banner {
        animation: none;
        transition: none;
    }
}
