/* ==========================================================================
   voicetocell · socle commun (polices, couleurs, base, marque, boutons)
   Noir profond. La seule lumière vient de la voix : l'orbe, ses rubans, et les
   reflets qu'ils laissent sur la transcription et les cellules du classeur.
   ========================================================================== */

/* Polices hébergées localement (assets/fonts) ----------------------------- */

@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/fraunces-latin-ext.woff2?v=2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/fraunces-latin.woff2?v=2') 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;
}
@font-face {
    font-family: 'Fraunces';
    font-style: italic;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/fraunces-italic-latin-ext.woff2?v=2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Fraunces';
    font-style: italic;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/fraunces-italic-latin.woff2?v=2') 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;
}
@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 400 800;
    font-stretch: 62% 125%;
    font-display: swap;
    src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 400 800;
    font-stretch: 62% 125%;
    font-display: swap;
    src: url('../fonts/archivo-latin.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;
}
@font-face {
    font-family: 'Martian Mono';
    font-style: normal;
    font-weight: 300 600;
    font-stretch: 75% 112.5%;
    font-display: swap;
    src: url('../fonts/martian-mono-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Martian Mono';
    font-style: normal;
    font-weight: 300 600;
    font-stretch: 75% 112.5%;
    font-display: swap;
    src: url('../fonts/martian-mono-latin.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;
}

/* Variables --------------------------------------------------------------- */

:root {
    color-scheme: dark;

    --void: #030308;
    --deep: #07070f;
    --deep-2: #0c0c18;
    --deep-3: #131326;
    --line: rgb(150 160 255 / .09);
    --line-2: rgb(150 160 255 / .17);

    --text: #eceeff;
    --text-2: #b3b7dc;
    --text-3: #7a7ea6;
    --text-4: #474a6c;

    --blue: #3b5bff;
    --indigo: #5b46ff;
    --violet: #9466ff;
    --lilac: #d2b8ff;
    --ice: #a9dcff;
    --glow: rgb(110 100 255 / .55);
    --light: linear-gradient(90deg, var(--blue), var(--violet) 55%, var(--lilac));

    --brand-purple: #73649e;
    --brand-lilac: #c19ef9;
    --brand-to: #b6a1de;
    --brand-white: #fbf8f8;

    --ok: #7fe8c0;
    --warn: #ffcf7a;
    --bad: #ff7a93;

    --voice-0: #8fb1ff;
    --voice-1: #d6a6ff;
    --voice-2: #7fe0e6;
    --voice-3: #ffa8d1;

    --serif: 'Fraunces', 'New York', 'Iowan Old Style', Georgia, serif;
    --sans: 'Archivo', -apple-system, 'Helvetica Neue', Arial, sans-serif;
    --mono: 'Martian Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Base -------------------------------------------------------------------- */

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

html, body { height: 100%; }

body {
    margin: 0;
    background: var(--void);
    color: var(--text);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Grain très léger : casse les aplats des dégradés lumineux */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    background-image: var(--grain);
    opacity: .03;
}

button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--indigo); color: #fff; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Texte qui défile verticalement quand il change (voir swapText) */
.swap { display: inline-grid; overflow: hidden; vertical-align: bottom; }
.swap > span { grid-area: 1 / 1; }
.swap__in { animation: swap-in .55s var(--ease-out) both; }
.swap__out { animation: swap-out .55s var(--ease-out) both; }

.eyebrow {
    margin: 0;
    font: 700 11px/1 var(--sans);
    font-stretch: 75%;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--text-3);
}

/* Marque --------------------------------------------------------------- */

.brand { display: flex; align-items: center; gap: 11px; min-width: 0; color: inherit; text-decoration: none; }

/* Pictogramme : trois anneaux qui ondulent, le lilas respire au rythme de l'orbe */
.brand__mark {
    flex: none;
    width: 38px;
    height: 38px;
    overflow: visible;
    fill: none;
    stroke-linejoin: round;
    transition: filter .6s var(--ease-out);
}

.brand__ring {
    stroke: var(--brand-purple);
    stroke-width: 27;
    transform-box: view-box;
    transform-origin: 50% 50%;
}

.brand__ring--outer { animation: ring-sway 13s ease-in-out infinite alternate; }
.brand__ring--middle { animation: ring-sway 10s ease-in-out -4s infinite alternate-reverse; }
.brand__ring--inner { stroke: var(--brand-lilac); stroke-width: 32; animation: ring-breathe 4.6s ease-in-out infinite; }

.app[data-state="recording"] .brand__mark { filter: drop-shadow(0 0 7px rgb(193 158 249 / .5)); }
.app[data-state="recording"] .brand__ring--inner { animation-duration: 1.6s; }

.brand__text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }

.brand__name {
    overflow: hidden;
    font: 400 21px/1 var(--serif);
    letter-spacing: -.02em;
    color: var(--brand-white);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.brand__name i { padding: 0 .04em; font-style: italic; color: var(--brand-to); }

.brand__by {
    display: flex;
    align-items: center;
    gap: 4px;
    font: 400 8.5px/1 var(--sans);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-3);
    white-space: nowrap;
}

.brand__by b { font-weight: 700; }
.brand__lbd { flex: none; height: 7px; width: auto; fill: currentColor; }

/* Bouton icône ---------------------------------------------------------- */

.icon-btn {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    background: none;
    color: var(--text-2);
    cursor: pointer;
    transition: color .2s, border-color .2s, background .2s, transform .15s var(--ease-out);
}

.icon-btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-btn:hover { color: var(--text); border-color: var(--text-3); background: var(--deep-3); }
.icon-btn:active { transform: scale(.92); }

/* Boutons ------------------------------------------------------------------ */

.btn {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 40px;
    padding: 0 20px;
    overflow: hidden;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: none;
    color: var(--text);
    font: 650 11px/1 var(--sans);
    font-stretch: 87.5%;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color .3s, border-color .3s, transform .15s var(--ease-out);
}

/* Remplissage qui monte depuis le bas au survol */
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--text);
    transform: translateY(101%);
    transition: transform .5s var(--ease-out);
}

/* Libellé qui roule : la copie (data-label) remplace l'original au survol */
.btn__roll { display: block; height: 1.3em; overflow: hidden; line-height: 1.3; }
.btn__label { position: relative; display: block; transition: transform .5s var(--ease-out); }
.btn__label::after { content: attr(data-label); position: absolute; top: 100%; left: 0; right: 0; text-align: center; }

.btn:hover .btn__label { transform: translateY(-100%); }
.btn:active { transform: scale(.97); }

.btn--ghost { background: rgb(8 8 20 / .75); color: var(--text-2); }
.btn--ghost:hover { color: var(--void); border-color: var(--text); }
.btn--ghost:hover::before { transform: none; }

.btn--small { height: 34px; padding: 0 16px; font-size: 10px; }

.btn--primary { border-color: var(--text); background: var(--text); color: var(--void); }
.btn--primary::before { background: linear-gradient(100deg, #b7c4ff, var(--lilac)); }
.btn--primary:hover::before { transform: none; }

.btn--danger { border-color: rgb(255 122 147 / .5); color: var(--bad); }
.btn--danger:hover { border-color: var(--bad); color: var(--void); }
.btn--danger:hover::before { background: var(--bad); transform: none; }

.btn--wide { width: 100%; }

.btn.is-active { color: var(--ok); border-color: rgb(127 232 192 / .5); }
.btn.is-active::after { content: ''; order: -1; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1s ease-in-out infinite; }
.btn.is-active:hover { color: var(--void); }

.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn:disabled .btn__label,
.btn:disabled::before { transform: none; transition: none; }
.btn:disabled::before { transform: translateY(101%); }

/* Formulaires ----------------------------------------------------------- */

.form { display: flex; flex-direction: column; gap: 20px; }

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
legend.field__label { margin-bottom: 8px; padding: 0; }

.field__label {
    font: 600 9.5px/1 var(--sans);
    font-stretch: 75%;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-3);
}

.field input,
.field textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: var(--void);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color .2s, box-shadow .2s;
}

.field input:focus,
.field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgb(148 102 255 / .14); }

.field input:disabled,
.field textarea:disabled { color: var(--text-3); border-style: dashed; cursor: not-allowed; resize: none; }

.field__hint { font-size: 12px; color: var(--text-4); }

.segmented {
    display: inline-flex;
    align-self: flex-start;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: var(--void);
}

.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }

.segmented span {
    display: grid;
    place-items: center;
    min-width: 46px;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font: 500 12px/1 var(--mono);
    color: var(--text-3);
    transition: background .35s var(--ease-out), color .3s, box-shadow .35s;
}

.segmented label:hover span { color: var(--text); }
.segmented label:has(input:disabled),
.switch:has(input:disabled) { cursor: not-allowed; opacity: .55; }
.segmented label:has(input:disabled):hover span { color: var(--text-3); }
.segmented input:checked + span { background: linear-gradient(135deg, var(--blue), var(--violet)); color: #fff; box-shadow: 0 0 16px -4px var(--glow); }
.segmented input:focus-visible + span { outline: 2px solid var(--lilac); outline-offset: 2px; }

.switch { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }

.switch__track {
    position: relative;
    flex: none;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: var(--line-2);
    transition: background .3s, box-shadow .3s;
}

.switch__track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text-2);
    transition: transform .45s var(--ease-spring), background .3s;
}

.switch input:checked + .switch__track { background: linear-gradient(135deg, var(--blue), var(--violet)); box-shadow: 0 0 14px -4px var(--glow); }
.switch input:checked + .switch__track::after { background: #fff; transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--lilac); outline-offset: 3px; }

.form__actions { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.form__actions > .btn { flex-shrink: 0; }
.form__feedback { font-size: 13px; color: var(--text-3); }
.form__feedback.is-ok { color: var(--ok); }
.form__feedback.is-error { color: var(--bad); }

/* Notifications ------------------------------------------------------------ */

.toasts {
    position: fixed;
    right: calc(22px + env(safe-area-inset-right));
    bottom: calc(22px + env(safe-area-inset-bottom));
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}

.toast {
    --tone: var(--lilac);
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: min(420px, calc(100vw - 44px));
    padding: 14px 12px 16px 18px;
    overflow: hidden;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    background: var(--deep-2);
    box-shadow: 0 24px 48px -12px rgb(0 0 0 / .8);
    color: var(--text);
    font-size: 14px;
    line-height: 1.45;
    pointer-events: auto;
    animation: toast-in .55s var(--ease-spring) both;
}

.toast--error { --tone: var(--bad); }
.toast--success { --tone: var(--ok); }

.toast::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: var(--tone); box-shadow: 0 0 12px var(--tone); }
.toast__text { flex: 1; margin: 0; }

.toast__close {
    display: grid;
    place-items: center;
    flex: none;
    width: 24px;
    height: 24px;
    margin-top: -2px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--text-3);
    cursor: pointer;
}

.toast__close:hover { background: var(--line-2); color: var(--text); }
.toast__close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.toast__timer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--tone);
    opacity: .6;
    transform-origin: left;
    animation: toast-timer var(--ttl, 8s) linear forwards;
}

.toast.is-leaving { animation: toast-out .35s ease forwards; }

/* Boîte de dialogue ---------------------------------------------------------- */

.dialog {
    width: min(680px, calc(100vw - 32px));
    max-height: min(88vh, 920px);
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line-2);
    border-radius: 20px;
    background: var(--deep);
    box-shadow: 0 40px 90px -30px rgb(0 0 0 / .9);
    color: var(--text);
}

.dialog[open] { display: flex; animation: dialog-in .5s var(--ease-out) both; }
.dialog--confirm { width: min(460px, calc(100vw - 32px)); }
.dialog--confirm .dialog__head { border-bottom: 0; padding-bottom: 6px; }
.dialog::backdrop { background: rgb(3 3 8 / .72); backdrop-filter: blur(6px); }

.dialog__frame { display: flex; flex-direction: column; flex: 1; min-height: 0; margin: 0; }
.dialog__head { position: relative; padding: 24px 68px 18px 28px; border-bottom: 1px solid var(--line); }

.dialog__eyebrow {
    margin: 0 0 10px;
    font: 600 9.5px/1 var(--sans);
    font-stretch: 75%;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--lilac);
}

.dialog__title { margin: 0; font: 400 24px/1.2 var(--serif); letter-spacing: -.02em; overflow-wrap: anywhere; }
.dialog__lead { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: var(--text-2); }
.dialog__close { position: absolute; top: 18px; right: 18px; }
.dialog__body { display: flex; flex-direction: column; flex: 1; gap: 20px; min-height: 0; padding: 20px 28px; overflow-y: auto; }
.dialog__body:empty { display: none; }
.dialog__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 16px 28px 20px; border-top: 1px solid var(--line); }

/* Vérification d'un classeur */

.wb-check__issues { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }

.wb-check__issue {
    --tone: var(--warn);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px 12px 18px;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    background: var(--deep-2);
}

.wb-check__issue::before { content: ''; position: absolute; top: 12px; bottom: 12px; left: 0; width: 3px; border-radius: 0 3px 3px 0; background: var(--tone); }
.wb-check__issue--error,
.wb-check__issue--blocking { --tone: var(--bad); }
.wb-check__message { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-2); }

.wb-check__tag {
    align-self: flex-start;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgb(127 232 192 / .1);
    color: var(--ok);
    font: 600 9.5px/1.2 var(--sans);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.wb-check__plan { display: flex; flex-direction: column; gap: 12px; }
.wb-check__summary { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--text-2); }
.wb-check__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.wb-check__count { font: 500 11px/1 var(--mono); color: var(--lilac); }
.wb-check__note { margin: 0; font-size: 12.5px; color: var(--text-3); }

.wb-check__rows,
.wb-check__questions { margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; list-style: none; }

.wb-check__row {
    display: grid;
    grid-template-columns: 3.2em minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 7px 8px 7px 14px;
    border-top: 1px solid var(--line);
}

.wb-check__row:first-child,
.wb-check__questions li:first-child { border-top: 0; }
.wb-check__ref { font: 500 10px/1 var(--mono); color: var(--text-4); }
.wb-check__text { overflow: hidden; font-size: 13px; color: var(--text-2); white-space: nowrap; text-overflow: ellipsis; }
.wb-check__row[data-kind="group"] .wb-check__text { font-weight: 650; color: var(--lilac); }
.wb-check__row[data-kind="skip"] .wb-check__text { color: var(--text-4); text-decoration: line-through; text-decoration-color: rgb(122 126 166 / .5); }

.segmented--tiny { padding: 2px; }
.segmented--tiny span { min-width: 0; height: 24px; padding: 0 9px; font-size: 10px; }

.wb-check__questions li { display: flex; flex-direction: column; gap: 5px; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.45; color: var(--text-2); }
.wb-check__group { font: 600 9.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--lilac); }

@media (max-width: 560px) {
    .dialog__head { padding: 20px 60px 16px 20px; }
    .dialog__body { padding: 16px 20px; }
    .dialog__foot { padding: 14px 20px 18px; }
    .wb-check__row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .wb-check__ref { display: none; }
}

/* Animations partagées -------------------------------------------------- */

@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; scale: .85; } }
@keyframes swap-in { from { opacity: 0; transform: translateY(90%); } }
@keyframes swap-out { to { opacity: 0; transform: translateY(-90%); } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }
@keyframes toast-timer { to { transform: scaleX(0); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes ring-sway {
    from { transform: rotate(-5deg); }
    to { transform: rotate(5deg); }
}
@keyframes ring-breathe {
    0%, 100% { transform: scale(.95); }
    50% { transform: scale(1.03); }
}

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

