/* ====================================================
   Retagly · Armenia Import Calculator — shared styles
   Theme: dark (default) · light (alt) — driven by [data-theme]
   ==================================================== */

:root {
    --color-bg:           #0A1628;
    --color-bg-elevated:  #0F1F36;
    --color-surface:      #14253F;
    --color-surface-2:    #0F1A2E;
    --color-border:       #1f2f4a;
    --color-border-soft:  #1a2740;
    --color-text:         #E5E7EB;
    --color-text-muted:   #94a3b8;
    --color-text-subtle:  #64748b;
    --color-text-strong:  #ffffff;

    --color-accent:       #2083f4;
    --color-accent-hover: #3b94f8;
    --color-accent-soft:  rgba(32, 131, 244, 0.15);
    --color-accent-ring:  rgba(32, 131, 244, 0.4);

    --color-positive:     #10b981;
    --color-negative:     #f43f5e;
    --color-warning:      #f59e0b;

    --shadow-card:        0 1px 2px rgba(0,0,0,0.4), 0 8px 24px -8px rgba(0,0,0,0.5);
    --shadow-popover:     0 8px 32px -8px rgba(0,0,0,0.6), 0 4px 12px rgba(0,0,0,0.3);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-pill: 9999px;

    --header-h: 64px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

[data-theme="light"] {
    --color-bg:           #F8FAFC;
    --color-bg-elevated:  #FFFFFF;
    --color-surface:      #FFFFFF;
    --color-surface-2:    #F1F5F9;
    --color-border:       #E2E8F0;
    --color-border-soft:  #EDF2F7;
    --color-text:         #0F172A;
    --color-text-muted:   #475569;
    --color-text-subtle:  #64748B;
    --color-text-strong:  #0B1220;

    --color-accent:       #2563EB;
    --color-accent-hover: #1D4ED8;
    --color-accent-soft:  rgba(37, 99, 235, 0.10);
    --color-accent-ring:  rgba(37, 99, 235, 0.35);

    --color-positive:     #059669;
    --color-negative:     #E11D48;
    --color-warning:      #B45309;

    --shadow-card:        0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px -4px rgba(15, 23, 42, 0.06);
    --shadow-popover:     0 8px 32px -8px rgba(15, 23, 42, 0.18), 0 4px 12px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { margin: 0; padding: 0; }

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color .2s ease, color .2s ease;
}

img, svg { display: block; max-width: 100%; }

a {
    color: var(--color-accent);
    text-decoration: none;
}
a:hover { color: var(--color-accent-hover); text-decoration: underline; }
a:focus-visible {
    outline: 2px solid var(--color-accent-ring);
    outline-offset: 2px;
    border-radius: 2px;
}

button { font-family: inherit; }
button:focus-visible {
    outline: 2px solid var(--color-accent-ring);
    outline-offset: 2px;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/* ----- Skip link (a11y) ----- */
.skip-link {
    position: absolute;
    left: 0;
    top: -40px;
    background: var(--color-accent);
    color: #fff;
    padding: 8px 14px;
    border-radius: 0 0 var(--radius-md) 0;
    z-index: 200;
    font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ----- Header ----- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--color-bg) 88%, transparent);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--color-border-soft);
    height: var(--header-h);
    display: flex;
    align-items: center;
}
.site-header-inner {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    color: var(--color-text-strong);
}
.brand:hover { text-decoration: none; }
.brand-logo { height: 26px; width: auto; }
.brand-logo--dark { display: block; }
.brand-logo--light { display: none; }
[data-theme="light"] .brand-logo--dark { display: none; }
[data-theme="light"] .brand-logo--light { display: block; }

.tagline {
    font-size: 13px;
    color: var(--color-text-muted);
    border-left: 1px solid var(--color-border);
    padding-left: 16px;
    line-height: 1.3;
    max-width: 280px;
}
@media (max-width: 900px) { .tagline { display: none; } }

.header-spacer { flex: 1; }

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-link {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    transition: color .15s ease, background .15s ease;
}
.nav-link:hover { color: var(--color-text-strong); text-decoration: none; background: var(--color-surface-2); }
.nav-link[aria-current="page"] {
    color: var(--color-text-strong);
    background: var(--color-surface-2);
}

/* ----- Lang switch ----- */
.lang-switch {
    display: inline-flex;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    padding: 3px;
    gap: 2px;
}
.lang-switch button {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-muted);
    background: transparent;
    border: 0;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all .15s ease;
    letter-spacing: 0.04em;
}
.lang-switch button:hover { color: var(--color-text-strong); }
.lang-switch button.active {
    background: var(--color-accent);
    color: #fff;
}

/* ----- Theme toggle (icon button) ----- */
.theme-toggle {
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-pill);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .15s ease;
}
.theme-toggle:hover { color: var(--color-text-strong); background: var(--color-surface); }
.theme-toggle svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: inherit;
    stroke: currentColor;
    fill: none;
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline-block; }
[data-theme="light"] .theme-toggle .icon-sun { display: inline-block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ----- Save button ----- */
.btn-save {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--color-accent);
    border: 0;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background .15s ease, transform .1s ease;
    white-space: nowrap;
}
.btn-save:hover { background: var(--color-accent-hover); }
.btn-save:active { transform: translateY(1px); }
.btn-save[hidden] { display: none; }

/* ----- Main layout ----- */
main { flex: 1; }

.page {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 28px 20px 48px;
}

.page-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 1280px) {
    .page-content-grid:has(> .aside) {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 32px;
    }
}

.content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.aside {
    display: none;
}
@media (min-width: 1280px) {
    .aside {
        display: block;
        position: sticky;
        top: calc(var(--header-h) + 24px);
        align-self: start;
    }
}

/* ----- Ad slots ----- */
.ad-slot {
    background: var(--color-surface-2);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-subtle);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
}
.ad-slot[data-size="300x600"] {
    width: 300px;
    height: 600px;
}
.ad-slot[data-size="300x250"] {
    width: 300px;
    height: 250px;
    margin-top: 16px;
    margin-bottom: 16px;
}

/* ----- Hero ----- */
.hero {
    text-align: left;
    padding: 8px 0 4px;
}
.hero h1 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--color-text-strong);
    margin: 0 0 10px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.hero p.lede {
    font-size: 16px;
    color: var(--color-text-muted);
    margin: 0;
    max-width: 680px;
}

/* ----- Cards / surfaces ----- */
.surface {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 18px;
    box-shadow: var(--shadow-card);
}
[data-theme="dark"] .surface,
:root:not([data-theme="light"]) .surface {
    background: linear-gradient(180deg, #14253F 0%, #0F1F36 100%);
}

.section-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--color-text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 10px;
}
.section-h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text-strong);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.section-h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-strong);
    margin: 0 0 6px;
}

/* ----- Form inputs ----- */
.input,
input.settings-input,
input.usd-input,
input.sale-input,
input.qty-input {
    width: 100%;
    padding: 9px 12px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: 14px;
    font-family: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus,
input.settings-input:focus,
input.usd-input:focus,
input.sale-input:focus,
input.qty-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-soft);
}
.input::placeholder { color: var(--color-text-subtle); }

label.field-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-bottom: 5px;
}

/* iOS-style toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 22px;
    flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--color-border);
    border-radius: var(--radius-pill);
    transition: background .2s ease;
}
.switch .slider::before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.switch input:checked + .slider { background: var(--color-accent); }
.switch input:checked + .slider::before { transform: translateX(16px); }

/* ----- Calc rows ----- */
.row { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.row .lbl { color: var(--color-text-muted); font-size: 11px; line-height: 1.35; }
.row .val { color: var(--color-text); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row .lbl-strong { color: var(--color-text-strong); font-weight: 500; }
.row .lbl-hint { color: var(--color-text-subtle); font-size: 10px; }
.card-section { display: flex; flex-direction: column; gap: 4px; }
.card-section + .card-section { padding-top: 10px; border-top: 1px solid var(--color-border-soft); }
.card-section .section-title { margin: 0; }

/* Collapsible section header (button replaces the static .section-title div) */
.section-toggle {
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    margin: -2px -6px 2px;
    padding: 6px 8px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font: inherit;
    color: var(--color-text);
    text-align: left;
    user-select: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.section-toggle:hover {
    background: var(--color-surface);
    border-color: var(--color-border);
    color: var(--color-text-strong);
}
.section-toggle:active { transform: translateY(0.5px); }
.section-toggle:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}
.section-toggle .section-title {
    color: inherit;
    font-weight: 600;
    flex: 1;
}
.section-toggle .chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 999px;
    background: var(--color-surface);
    border: 1px solid var(--color-border-soft);
    color: var(--color-text);
    font-size: 12px;
    line-height: 1;
    transition: transform .2s ease, background .15s ease, color .15s ease;
}
.section-toggle:hover .chevron {
    background: var(--color-accent-soft, var(--color-surface-2));
    color: var(--color-accent, var(--color-text-strong));
}
.card-section.collapsed .section-toggle .chevron {
    transform: rotate(-90deg);
}
.card-section.collapsed .row.collapsible {
    display: none;
}

.pos { color: var(--color-positive) !important; }
.neg { color: var(--color-negative) !important; }
.warn { color: var(--color-warning) !important; }
.accent { color: var(--color-accent) !important; }

.divider-row {
    border-top: 1px solid var(--color-border-soft);
    padding-top: 6px;
}

/* ----- Editable card title ----- */
.card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text-strong);
    border: 1px solid transparent;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    cursor: text;
    outline: none;
    margin: -4px -8px 4px;
    min-height: 28px;
    transition: background .15s ease, border-color .15s ease;
}
.card-title:hover { background: var(--color-surface-2); }
.card-title:focus { background: var(--color-surface-2); border-color: var(--color-accent); }
.card-title:empty::before {
    content: attr(data-placeholder);
    color: var(--color-text-subtle);
}

/* ----- Calculator card ----- */
.calc-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
[data-theme="dark"] .calc-card,
:root:not([data-theme="light"]) .calc-card {
    background: linear-gradient(180deg, #14253F 0%, #0F1F36 100%);
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1280px) and (max-width: 1500px) {
    .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1500px) {
    .cards-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ----- Settings strip ----- */
.settings-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 640px) { .settings-strip { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .settings-strip { grid-template-columns: repeat(7, 1fr); } }
.settings-strip > div { min-width: 0; }
.markup-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
    height: 38px;
    padding: 0 8px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}
.markup-wrap input {
    flex: 1;
    min-width: 0;
    padding: 4px 6px;
    background: transparent;
    border: 0;
    color: var(--color-text);
    font-size: 13px;
}
.markup-wrap input:focus { outline: none; }
.markup-wrap input:disabled { opacity: 0.5; }

.grand-total {
    width: 100%;
    padding: 9px 12px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-accent-ring);
    border-radius: var(--radius-md);
    color: var(--color-accent);
    font-size: 14px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* ----- Aggregate insights ----- */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (min-width: 1100px) {
    .insights-grid { grid-template-columns: repeat(5, 1fr); }
}
.insight-tile .label {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}
.insight-tile .value {
    font-size: 16px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.insight-tile .hint {
    font-size: 10px;
    color: var(--color-text-subtle);
    margin-top: 2px;
}

/* ----- Static content ----- */
.prose {
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.7;
}
.prose h2 { font-size: 24px; font-weight: 700; margin: 32px 0 12px; color: var(--color-text-strong); letter-spacing: -0.01em; }
.prose h3 { font-size: 18px; font-weight: 600; margin: 24px 0 8px; color: var(--color-text-strong); }
.prose p { margin: 0 0 12px; color: var(--color-text); }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 24px; }
.prose li { margin: 4px 0; }
.prose strong { color: var(--color-text-strong); }
.prose code {
    font-family: var(--font-mono);
    font-size: 13px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    padding: 1px 6px;
    border-radius: 4px;
}

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 12px 0 4px;
}
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 14px;
}
.step .num {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-pill);
    background: var(--color-accent-soft);
    color: var(--color-accent);
    font-weight: 700;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
.step h4 { font-size: 14px; font-weight: 600; margin: 0 0 4px; color: var(--color-text-strong); }
.step p { font-size: 13px; color: var(--color-text-muted); margin: 0 0 6px; }
.step code { font-size: 11px; }

/* ----- FAQ accordion ----- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
[data-theme="dark"] .faq-item,
:root:not([data-theme="light"]) .faq-item {
    background: linear-gradient(180deg, #14253F 0%, #0F1F36 100%);
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 18px;
    font-weight: 600;
    color: var(--color-text-strong);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    color: var(--color-text-muted);
    font-size: 20px;
    line-height: 1;
    transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .answer {
    padding: 0 18px 16px;
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ----- Footer ----- */
.site-footer {
    border-top: 1px solid var(--color-border-soft);
    background: var(--color-bg);
    padding: 24px 0;
    margin-top: 48px;
}
.site-footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--color-text-muted);
    font-size: 13px;
}
.footer-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-logo { height: 22px; }
.footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.footer-links a { color: var(--color-text-muted); }
.footer-links a:hover { color: var(--color-text-strong); }

/* ----- Modal / Toast ----- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    padding: 20px;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 460px;
    width: 100%;
    box-shadow: var(--shadow-popover);
    transform: translateY(8px);
    transition: transform .2s ease;
}
.modal-backdrop.open .modal { transform: translateY(0); }
.modal h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-strong);
    margin: 0 0 8px;
}
.modal p {
    color: var(--color-text-muted);
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.55;
}
.modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.btn {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text);
    transition: background .15s ease;
}
.btn:hover { background: var(--color-surface-2); }
.btn-primary {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}
.btn-primary:hover { background: var(--color-accent-hover); }

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 80px);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--color-text);
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow-popover);
    transition: transform .25s ease, opacity .25s ease;
    opacity: 0;
    z-index: 150;
}
.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
    html { scroll-behavior: auto; }
}
