/* ==========================================================================
   RX GLASS THEME — design tokens + component dùng chung
   Mọi màn hình / tính năng mới PHẢI dùng token & class trong file này.
   Xem quy tắc ở CLAUDE.md (mục "Theme").
   ========================================================================== */

:root {
    /* ---- Typography ---- */
    --main-body-font: "Noto Sans", "Segoe UI", sans-serif;
    --char-name-font: "Dancing Script", cursive;
    --mono-font: ui-monospace, "Cascadia Code", Consolas, monospace;
    --rx-name-size: clamp(24px, 1.1rem + 1.9vw, 42px);
    --rx-name-scale: 1;
    --rx-date-size: 12px;

    /* ---- Glass ---- */
    --rx-glass-sheen: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015) 45%, rgba(255, 255, 255, 0.04));
    --rx-glass-ai: rgba(24, 24, 27, 0.6);
    --rx-glass-user: rgba(58, 58, 64, 0.55);
    --rx-glass-panel: rgba(20, 20, 23, 0.82);
    --rx-glass-border: rgba(255, 255, 255, 0.09);
    --rx-glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.10), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    --rx-glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 22px rgba(255, 255, 255, 0.05);
    --rx-glass-blur: blur(16px) saturate(150%);
    --blur-degree: 15px;
    --popup-bg: rgba(24, 24, 26, 0.98);

    /* ---- Banner (dải ảnh mờ dần ở đầu card) ---- */
    --banner-height: 170px;
    --banner-scale: 1;
    --banner-pos-x: 50%;
    --banner-pos-y: 50%;
    --banner-image:
        radial-gradient(120% 140% at 15% 0%, rgba(255, 255, 255, 0.16), transparent 55%),
        radial-gradient(90% 120% at 85% 10%, rgba(170, 176, 188, 0.18), transparent 60%),
        repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 14px);

    /* ---- Màu chữ ---- */
    --rx-text: rgb(226, 228, 232);
    --rx-text-soft: rgb(190, 193, 200);
    --rx-text-dim: rgb(160, 162, 170);
    --rx-text-strong: rgb(255, 255, 255);
    --rx-accent: rgba(228, 230, 235, 1);
    --rx-accent-muted: rgba(228, 230, 235, 0.6);
    --interactable-outline-color: rgb(255, 255, 255);

    /* ---- Màu trạng thái (luôn đi kèm icon/chữ, không dùng màu đơn lẻ) ---- */
    --rx-success: rgba(76, 217, 100, 1);
    --rx-error: rgba(255, 69, 58, 1);
    --rx-danger-text: rgba(255, 110, 110, 1);
    --rx-info: rgba(90, 200, 250, 1);
    --rx-warning: rgba(228, 230, 235, 1);

    /* ---- Nút hành động chính (xanh lá → xanh ngọc) ---- */
    --rx-cta: linear-gradient(135deg, rgba(52, 199, 89, 1), rgba(48, 176, 199, 1));
    --rx-cta-hover: linear-gradient(135deg, rgba(48, 209, 88, 1), rgba(64, 200, 224, 1));
    --rx-cta-border: rgba(52, 199, 89, 0.6);
    --rx-cta-glow: 0 4px 20px rgba(52, 199, 89, 0.5), 0 0 40px rgba(52, 199, 89, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    --rx-cta-glow-hover: 0 8px 30px rgba(52, 199, 89, 0.7), 0 0 60px rgba(52, 199, 89, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);

    /* ---- Input ---- */
    --rx-input-bg: rgba(16, 16, 18, 0.7);
    --rx-input-bg-focus: rgba(12, 12, 14, 0.85);
    --rx-input-border: rgba(255, 255, 255, 0.20);
    --rx-input-border-hover: rgba(255, 255, 255, 0.32);
    --rx-input-text: rgba(240, 241, 244, 1);
    --rx-input-focus: rgba(228, 230, 235, 0.85);
    --rx-input-ring: 0 0 0 3px rgba(255, 255, 255, 0.12), 0 0 12px rgba(255, 255, 255, 0.18);

    /* ---- Bo góc / khoảng cách / chuyển động ---- */
    --rx-radius-xl: 24px;
    --rx-radius-lg: 20px;
    --rx-radius-md: 12px;
    --rx-radius-sm: 8px;
    --rx-space-1: 4px;
    --rx-space-2: 8px;
    --rx-space-3: 12px;
    --rx-space-4: 16px;
    --rx-space-5: 24px;
    --rx-space-6: 32px;
    --rx-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --rx-ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --rx-fast: 0.15s;

    --rx-thumb-w: 12px;
    --rx-thumb-h: 10px;

    /* ---- Nền trang ---- */
    --rx-page-bg:
        radial-gradient(1100px 620px at 8% -12%, rgba(255, 255, 255, 0.075), transparent 60%),
        radial-gradient(900px 520px at 108% 8%, rgba(170, 176, 188, 0.09), transparent 62%),
        radial-gradient(800px 600px at 50% 120%, rgba(120, 124, 136, 0.10), transparent 60%),
        #0b0b0d;

    color-scheme: dark;
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100dvh;
    font-family: var(--main-body-font);
    font-size: 15px;
    line-height: 1.55;
    color: var(--rx-text);
    background: var(--rx-page-bg);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--rx-text-strong); }
img, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }
svg.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible {
    outline: 2px solid var(--interactable-outline-color);
    outline-offset: 2px;
}

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: fixed; left: 12px; top: -60px; z-index: 1000;
    padding: 8px 14px; border-radius: var(--rx-radius-md);
    background: var(--popup-bg); border: 1px solid var(--rx-glass-border);
    color: var(--rx-text-strong); text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ==========================================================================
   Glass surfaces
   ========================================================================== */

/* Panel cố định: sidebar, toolbar, drawer */
.glass-panel {
    background: var(--rx-glass-sheen), var(--rx-glass-panel);
    border: 1px solid var(--rx-glass-border);
    border-radius: var(--rx-radius-lg);
    box-shadow: var(--rx-glass-edge), var(--rx-glass-shadow);
    backdrop-filter: blur(var(--blur-degree)) saturate(140%);
    -webkit-backdrop-filter: blur(var(--blur-degree)) saturate(140%);
}

/* Card nội dung (giống bong bóng chat AI) */
.glass-card {
    position: relative;
    background: var(--rx-glass-sheen), var(--rx-glass-ai);
    border: 1px solid var(--rx-glass-border);
    border-radius: var(--rx-radius-xl);
    box-shadow: var(--rx-glass-edge), var(--rx-glass-shadow);
    backdrop-filter: var(--rx-glass-blur);
    -webkit-backdrop-filter: var(--rx-glass-blur);
}

/* Biến thể sáng hơn (giống bong bóng chat user) */
.glass-card--user { background: var(--rx-glass-sheen), var(--rx-glass-user); }

/* Banner mờ dần ở đầu card */
.glass-card--banner { isolation: isolate; }
.glass-card--banner::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: var(--banner-height);
    background-image: var(--banner-image);
    background-size: calc(100% * var(--banner-scale));
    background-position: var(--banner-pos-x) var(--banner-pos-y);
    background-repeat: no-repeat;
    mask-image: linear-gradient(to bottom, black 60%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, rgba(0, 0, 0, 0) 100%);
    border-radius: var(--rx-radius-xl) var(--rx-radius-xl) 0 0;
    pointer-events: none;
    z-index: -1;
    transition: background-size 0.3s ease, background-position 0.3s ease;
}

/* Popup / dialog */
.popup {
    color: var(--rx-text);
    background-color: rgba(24, 24, 27, 0.92);
    background-image: var(--rx-glass-sheen);
    border: 1px solid var(--rx-glass-border);
    border-radius: var(--rx-radius-lg);
    box-shadow: var(--rx-glass-edge), 0 16px 48px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(var(--blur-degree)) saturate(140%);
    -webkit-backdrop-filter: blur(var(--blur-degree)) saturate(140%);
    padding: 0;
}
.popup::backdrop {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.popup[open] { animation: popupIn 0.28s var(--rx-ease-spring); }

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

/* ==========================================================================
   Typography helpers
   ========================================================================== */

/* Tiêu đề kiểu "tên nhân vật": Dancing Script, gradient bạc, glow */
.rx-title {
    display: inline-flex;
    align-items: baseline;
    margin: 0;
    font-family: var(--char-name-font);
    font-weight: 700;
    font-size: calc(var(--rx-name-size) * var(--rx-name-scale));
    line-height: 1.2;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(170, 176, 188, 1));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.35));
}

/* Chữ nhấn (giống lời thoại trong ngoặc kép) */
.rx-quote {
    color: var(--rx-text-strong);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
}

/* Khối ghi chú (giống khung "reasoning") */
.rx-note {
    padding: 0 15px;
    border-left: 3px solid var(--rx-accent-muted);
    color: var(--rx-text-soft);
}
.rx-note-label {
    font-family: var(--mono-font);
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--rx-accent);
    opacity: 0.9;
}

/* Dòng tagline nghiêng căn phải */
.rx-tagline {
    margin: var(--rx-space-3) 0 0;
    text-align: right;
    font-size: 12px;
    font-style: italic;
    font-weight: 500;
    color: rgba(228, 230, 235, 0.7);
}

.rx-meta {
    font-size: var(--rx-date-size);
    letter-spacing: 0.02em;
    color: var(--rx-text-dim);
}

/* Avatar có vòng sáng */
.rx-avatar {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-family: var(--char-name-font);
    font-size: 26px;
    color: var(--rx-text-strong);
    background: radial-gradient(circle at 30% 25%, rgba(90, 90, 98, 1), rgba(30, 30, 34, 1));
    box-shadow:
        0 0 0 2px rgba(18, 18, 20, 0.95),
        0 0 0 3.5px rgba(228, 230, 235, 0.95),
        0 0 0 8px rgba(228, 230, 235, 0.08),
        0 0 18px rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--rx-space-2);
    min-height: 40px;
    padding: 8px 16px;
    border-radius: var(--rx-radius-md);
    border: 1px solid var(--rx-glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--rx-text);
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    touch-action: manipulation;
    transition: background-color var(--rx-fast) ease, border-color var(--rx-fast) ease, box-shadow var(--rx-fast) ease, transform var(--rx-fast) ease;
}
.btn:hover, .btn:focus-visible {
    background-color: rgba(228, 230, 235, 0.10);
    border-color: rgba(228, 230, 235, 0.45);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.18);
}
.btn:active { background-color: rgba(228, 230, 235, 0.16); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

.btn--sm { min-height: 32px; padding: 5px 12px; font-size: 13px; border-radius: 10px; }
.btn--block { width: 100%; }

/* Nút hành động chính — mỗi màn hình chỉ nên có 1 */
.btn--primary {
    overflow: hidden;
    color: #fff;
    background: var(--rx-cta);
    border: 2px solid var(--rx-cta-border);
    box-shadow: var(--rx-cta-glow);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.4s var(--rx-ease-spring);
}
.btn--primary > * { position: relative; z-index: 1; }
.btn--primary::before {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}
.btn--primary::after {
    content: "";
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    animation: shimmer 3s infinite;
    pointer-events: none;
}
.btn--primary:hover, .btn--primary:focus-visible {
    background: var(--rx-cta-hover);
    border-color: rgba(48, 209, 88, 0.9);
    box-shadow: var(--rx-cta-glow-hover);
    transform: translateY(-2px) scale(1.03);
}
.btn--primary:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 4px 15px rgba(52, 199, 89, 0.6), 0 0 30px rgba(52, 199, 89, 0.4), inset 0 3px 8px rgba(0, 0, 0, 0.3);
}
.btn--primary:active::before { width: 400px; height: 400px; }
.btn--primary:disabled { transform: none; filter: grayscale(0.4); }

@keyframes shimmer {
    0%   { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Hành động nguy hiểm (xoá, đăng xuất) */
.btn--danger { color: var(--rx-danger-text); border-color: rgba(255, 110, 110, 0.35); }
.btn--danger:hover, .btn--danger:focus-visible {
    background-color: rgba(255, 69, 58, 0.12);
    border-color: rgba(255, 110, 110, 0.7);
    box-shadow: 0 0 12px rgba(255, 69, 58, 0.25);
}

/* Nút chỉ có icon — luôn cần aria-label */
.icon-btn {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--rx-radius-md);
    border: 1px solid transparent;
    background: transparent;
    color: var(--rx-accent);
    text-decoration: none;
    touch-action: manipulation;
    transition: background-color var(--rx-fast) ease, border-color var(--rx-fast) ease, color var(--rx-fast) ease, transform var(--rx-fast) ease;
}
.icon-btn:hover, .icon-btn:focus-visible {
    background: rgba(228, 230, 235, 0.10);
    border-color: rgba(228, 230, 235, 0.35);
    color: #fff;
}
.icon-btn:active { transform: scale(0.94); }
.icon-btn[aria-pressed="true"] {
    background: rgba(228, 230, 235, 0.16);
    border-color: rgba(228, 230, 235, 0.45);
    color: #fff;
}
.icon-btn--danger:hover, .icon-btn--danger:focus-visible {
    color: var(--rx-danger-text);
    background: rgba(255, 69, 58, 0.12);
    border-color: rgba(255, 110, 110, 0.5);
}

/* Spinner trong nút khi đang xử lý */
.btn.is-loading > span { opacity: 0; }
.btn.is-loading::after {
    content: "";
    position: absolute;
    inset: auto;
    width: 18px; height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    transform: none;
    background: none;
}
@keyframes spin { to { rotate: 360deg; } }

/* ==========================================================================
   Badge / chip
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 8px;
    border-radius: var(--rx-radius-sm);
    border: 1px solid rgba(228, 230, 235, 0.35);
    background: rgba(228, 230, 235, 0.12);
    color: var(--rx-input-text);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.badge svg.icon { width: 12px; height: 12px; }
.badge--success { border-color: rgba(76, 217, 100, 0.55); background: rgba(76, 217, 100, 0.12); color: rgb(160, 240, 175); }
.badge--error { border-color: rgba(255, 69, 58, 0.55); background: rgba(255, 69, 58, 0.12); color: rgb(255, 160, 155); }
.badge--muted { opacity: 0.75; }

/* ==========================================================================
   Form controls
   ========================================================================== */

.input,
select.input,
textarea.input {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    background-color: var(--rx-input-bg);
    border: 1px solid var(--rx-input-border);
    border-radius: 10px;
    color: var(--rx-input-text);
    font-weight: 500;
    transition: border-color var(--rx-fast) ease, box-shadow var(--rx-fast) ease, background-color var(--rx-fast) ease;
}
.input:hover { border-color: var(--rx-input-border-hover); }
.input:focus {
    border-color: var(--rx-input-focus);
    box-shadow: var(--rx-input-ring);
    background-color: var(--rx-input-bg-focus);
    outline: none;
}
.input::placeholder { color: rgba(255, 255, 255, 0.38); font-weight: 400; }
.input[aria-invalid="true"] { border-color: rgba(255, 110, 110, 0.75); }
select.input { cursor: pointer; }
select.input option { background: rgba(28, 28, 31, 1); }

.field { display: grid; gap: 6px; }
.field > label { font-size: 13px; font-weight: 600; color: var(--rx-text); }
.field-hint { margin: 0; font-size: 12px; color: var(--rx-text-dim); }
.field-error { margin: 0; font-size: 12.5px; color: var(--rx-danger-text); min-height: 0; }
.field-error:empty { display: none; }

/* Thanh trượt: thumb hình tam giác */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.16);
    border-radius: 3px;
    cursor: ew-resize;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: var(--rx-thumb-w);
    height: var(--rx-thumb-h);
    border: none;
    border-radius: 0;
    background: var(--rx-accent);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transition: transform var(--rx-fast) ease;
}
input[type="range"]::-moz-range-thumb {
    width: var(--rx-thumb-w);
    height: var(--rx-thumb-h);
    border: none;
    border-radius: 0;
    background: var(--rx-accent);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}
input[type="range"]:hover::-webkit-slider-thumb,
input[type="range"]:active::-webkit-slider-thumb {
    transform: scale(1.2);
    background: rgba(160, 166, 178, 1);
}

input[type="checkbox"] {
    accent-color: var(--rx-accent);
    width: 16px; height: 16px;
}

/* ==========================================================================
   Scrollbar
   ========================================================================== */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background-color: transparent; }
::-webkit-scrollbar-thumb {
    background-color: rgba(228, 230, 235, 0.45);
    border: 1px solid transparent;
    background-clip: content-box;
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:active { background-color: rgba(228, 230, 235, 0.85); }
@supports not selector(::-webkit-scrollbar) {
    * { scrollbar-width: thin; scrollbar-color: rgba(228, 230, 235, 0.5) transparent; }
}

/* ==========================================================================
   Toast
   ========================================================================== */

/* Container là popover="manual" để toast nổi trên cả dialog đang mở */
#toast-container {
    position: fixed;
    inset: 16px 16px auto auto;
    z-index: 2000;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 32px));
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    overflow: visible;
    pointer-events: none;
}

.toast {
    position: relative;
    overflow: hidden;
    padding: 12px 16px;
    background: rgba(28, 28, 30, 0.98);
    border-radius: 16px;
    border-left: 4px solid var(--rx-info);
    box-shadow:
        0 0 0 1px rgba(80, 80, 85, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: toastBounceIn 0.6s var(--rx-ease-bounce);
    pointer-events: auto;
}
.toast::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(228, 230, 235, 0.3), transparent);
    animation: toastShine 2.5s ease-in-out infinite;
    border-radius: 16px;
    pointer-events: none;
}
.toast.is-leaving { animation: toastOut 0.25s ease forwards; }
.toast-success { border-left-color: var(--rx-success); }
.toast-error   { border-left-color: var(--rx-error); }
.toast-info    { border-left-color: var(--rx-info); }
.toast-warning { border-left-color: var(--rx-warning); }

.toast-title {
    position: relative;
    display: inline-block;
    color: rgba(220, 220, 225, 1);
    font-weight: 600;
    animation: titleSlide 3s ease-in-out infinite;
}
.toast-message {
    position: relative;
    margin: 2px 0 0;
    font-size: 13.5px;
    color: rgba(180, 180, 185, 1);
    overflow-wrap: anywhere;
}

@keyframes toastBounceIn {
    0%   { transform: translateY(-100%) scale(0.5) rotate(-5deg); opacity: 0; }
    50%  { transform: translateY(10px) scale(1.05) rotate(2deg); }
    70%  { transform: translateY(-5px) scale(0.98) rotate(-1deg); }
    100% { transform: translateY(0) scale(1) rotate(0deg); opacity: 1; }
}
@keyframes toastShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}
@keyframes titleSlide {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}
@keyframes toastOut {
    to { opacity: 0; transform: translateX(24px); }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@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;
    }
}
