:root {
    --accent: #1f5f8b;
    --accent-dark: #174a6d;
    --accent-strong: #174a6d;
    --accent-soft: #e6eff6;
    --accent-on: #ffffff;
    --bg: #f2f4f8;
    --card: #ffffff;
    --card-2: #f6f8fb;
    --text: #16202b;
    --muted: #5f6b7a;
    --border: #e1e6ed;
    --input-bg: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.9);
    --tabbar-bg: rgba(255, 255, 255, 0.92);
    --tab-on: var(--card);
    --danger: #b3261e;
    --danger-soft: #fbe9e7;
    --ok: #166534;
    --ok-soft: #dcfce7;
    --warn: #7a4b00;
    --warn-soft: #fff4dc;
    --warn-border: #f2d38a;
    --done-bg: #f3faf5;
    --hero-a: #1f5f8b;
    --hero-b: #3a86bf;
    --hero-done-a: #167a4a;
    --hero-done-b: #24a56a;
    --hero-wait-a: #9a5b00;
    --hero-wait-b: #c98a1f;
    --pad-border: #b7c0cc;
    --backdrop: rgba(16, 24, 40, 0.5);
    --toast-bg: #16202b;
    --toast-text: #ffffff;
    --toast-action: #8ec5ff;
    --shadow-1: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 3px rgba(16, 24, 40, 0.06);
    --shadow-2: 0 10px 30px rgba(16, 24, 40, 0.12);
    --ring: 0 0 0 3px rgba(31, 95, 139, 0.22);
    --radius: var(--pg-radius);
    --radius-sm: var(--pg-radius-sm);
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    color-scheme: light dark;

    /* Bandeau du Bored Dev Playground (css/playground.css) aux couleurs de l'appli */
    --pg-bg: var(--bg);
    --pg-surface: var(--card);
    --pg-text: var(--text);
    --pg-muted: var(--muted);
    --pg-line: var(--border);
    --pg-accent: var(--accent);
}

@media (prefers-color-scheme: dark) {
    :root {
        --accent: #7ab8ea;
        --accent-dark: #5a9dd6;
        --accent-strong: #a9d1f3;
        --accent-soft: #1a2b3b;
        --accent-on: #0b1620;
        --bg: #0c1117;
        --card: #151c25;
        --card-2: #1a232e;
        --text: #e7ecf2;
        --muted: #98a4b3;
        --border: #263140;
        --input-bg: #10161d;
        --header-bg: rgba(21, 28, 37, 0.9);
        --tabbar-bg: rgba(21, 28, 37, 0.92);
        --tab-on: #243446;
        --danger: #f28b82;
        --danger-soft: #3a1f1d;
        --ok: #86efac;
        --ok-soft: #12351f;
        --warn: #f2d07a;
        --warn-soft: #33290f;
        --warn-border: #6b5416;
        --done-bg: #14201a;
        --hero-a: #1b4c70;
        --hero-b: #2a6f9e;
        --hero-done-a: #145e3c;
        --hero-done-b: #1c7a50;
        --hero-wait-a: #6b3f04;
        --hero-wait-b: #8a5510;
        --pad-border: #55606e;
        --backdrop: rgba(0, 0, 0, 0.65);
        --toast-bg: #e7ecf2;
        --toast-text: #0c1117;
        --toast-action: #1f5f8b;
        --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
        --shadow-2: 0 10px 30px rgba(0, 0, 0, 0.5);
        --ring: 0 0 0 3px rgba(122, 184, 234, 0.35);
    }
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--pg-font);
    font-size: 17px;
    line-height: 1.45;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

body {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
    min-height: 100vh;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 5;
    border-bottom: 1px solid var(--border);
    padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
}

/* Fond flouté sur un pseudo-élément : un backdrop-filter sur l'en-tête lui-même
   ancrerait la barre d'onglets (position: fixed, dans l'en-tête) à l'en-tête au lieu de l'écran. */
.app-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--header-bg);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.app-header__inner {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.app-header h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.app-header__logo {
    display: none;
}

.app-header__sub {
    font-size: 14px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

main {
    padding: 16px;
    max-width: 640px;
    margin: 0 auto;
}

/* Lien discret vers le playground, sous le contenu de chaque onglet */
.app-foot {
    max-width: 640px;
    margin: 8px auto 0;
    padding: 0 16px;
    text-align: center;
}

[data-view] {
    animation: view-in 0.24s var(--ease);
}

h2 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin: 22px 0 8px 4px;
}

h2:first-child {
    margin-top: 0;
}

h3 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 700;
}

p {
    margin: 0 0 8px;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 14px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-1);
}

.card--compact {
    padding: 10px 16px;
}

.empty {
    text-align: center;
    padding: 32px 16px;
}

.empty p:first-child {
    font-size: 17px;
    font-weight: 600;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 12px;
}

label > input,
label > select,
label > textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 11px 13px;
    font: inherit;
    font-size: 17px;
    font-weight: 400;
    color: var(--text);
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    min-height: 48px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

label > textarea {
    resize: vertical;
}

label > input:focus,
label > select:focus,
label > textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: var(--ring);
}

.row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.row2--civility {
    grid-template-columns: 112px 1fr;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 16px;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s var(--ease), background 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

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

.btn:focus-visible,
.link:focus-visible,
.segmented button:focus-visible,
.tabbar button:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

.btn-primary {
    color: var(--accent-on);
    background: var(--accent);
}

.btn-primary:active {
    background: var(--accent-dark);
}

.btn-danger {
    color: var(--danger);
    background: var(--danger-soft);
}

.btn-ghost {
    color: var(--text);
    background: transparent;
    border-color: var(--border);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-small {
    min-height: 38px;
    padding: 6px 13px;
    font-size: 15px;
    border-radius: 10px;
}

.btn-hero {
    color: var(--hero-a);
    background: #fff;
}

.btn-hero-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
}

.btn[disabled] {
    opacity: 0.5;
    cursor: default;
}

.btn-file {
    margin-bottom: 0;
    font-size: 16px;
    color: var(--accent);
}

.link {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    font-weight: 600;
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.link.small {
    font-size: 14px;
}

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, var(--hero-a), var(--hero-b));
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-2);
    animation: fade-up 0.3s var(--ease);
}

.hero::after {
    content: "";
    position: absolute;
    right: -50px;
    top: -60px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.hero--done {
    background: linear-gradient(135deg, var(--hero-done-a), var(--hero-done-b));
}

.hero--wait {
    background: linear-gradient(135deg, var(--hero-wait-a), var(--hero-wait-b));
}

.hero__eyebrow {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.8;
}

.hero__title {
    margin: 2px 0 6px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: none;
    color: #fff;
}

.hero__lead {
    margin: 0;
    font-size: 16px;
    opacity: 0.95;
}

.hero__note {
    margin: 6px 0 0;
    font-size: 14px;
    opacity: 0.85;
}

.hero .chips {
    margin-top: 12px;
}

.hero .chips li {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.hero__actions {
    position: relative;
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chips li,
.chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 11px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    background: var(--accent-soft);
    color: var(--accent);
}

.chip--ok {
    background: var(--ok-soft);
    color: var(--ok);
}

.chip--warn {
    background: var(--warn-soft);
    color: var(--warn);
}

.chip--muted {
    background: var(--card-2);
    color: var(--muted);
    border: 1px solid var(--border);
}

.segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    padding: 4px;
    margin-bottom: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-1);
}

.segmented button {
    min-height: 42px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
    background: none;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease, color 0.2s ease;
}

.segmented button[aria-pressed="true"] {
    color: var(--accent-strong);
    background: var(--accent-soft);
}

[data-form="new"],
[data-form="batch"] {
    animation: view-in 0.22s var(--ease);
}

.pick {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card-2);
    margin-bottom: 8px;
    overflow: hidden;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.pick.is-on {
    border-color: var(--accent);
    background: var(--card);
}

.pick__main {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    color: var(--text);
    cursor: pointer;
}

.pick__main > input {
    flex: none;
    width: 22px;
    height: 22px;
    min-height: 0;
    margin: 0;
    padding: 0;
    accent-color: var(--accent);
}

.pick__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pick__text .chip {
    align-self: flex-start;
    margin-top: 2px;
}

.pick__amount {
    font-weight: 700;
    color: var(--accent-strong);
    white-space: nowrap;
}

.pick__date {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 8px 14px 10px 48px;
    font-size: 14px;
    color: var(--muted);
    border-top: 1px dashed var(--border);
    animation: fade-in 0.2s ease;
}

.pick__date > input {
    width: auto;
    min-height: 40px;
    margin: 0;
    padding: 6px 10px;
    font-size: 15px;
}

.pick:not(.is-on) .pick__date {
    display: none;
}

.summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
    background: var(--card-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.summary div {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: var(--muted);
}

.summary strong {
    font-size: 20px;
    color: var(--accent-strong);
}

.notice {
    background: var(--warn-soft);
    border: 1px solid var(--warn-border);
    color: var(--warn);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    margin-bottom: 12px;
}

.notice .link {
    color: inherit;
    margin-left: 4px;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.list-item__main {
    min-width: 0;
    flex: 1;
}

.list-item__amount {
    font-weight: 700;
    white-space: nowrap;
    color: var(--accent-strong);
}

.item-meta {
    color: var(--muted);
    font-size: 15px;
    white-space: pre-line;
}

.item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.status-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 14px;
}

.history-queue {
    margin-bottom: 12px;
}

.signature-pad {
    display: block;
    width: 100%;
    height: 200px;
    background: #fff;
    border: 1px dashed var(--pad-border);
    border-radius: var(--radius-sm);
    touch-action: none;
}

.signature-current {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.signature-current img {
    max-height: 80px;
    max-width: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px;
}

.switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
}

.switch {
    -webkit-appearance: none;
    appearance: none;
    flex: none;
    width: 50px;
    height: 30px;
    margin: 0;
    border-radius: 999px;
    background: var(--border);
    position: relative;
    cursor: pointer;
    transition: background 0.22s ease;
}

.switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: transform 0.22s var(--ease);
}

.switch:checked {
    background: var(--accent);
}

.switch:checked::after {
    transform: translateX(20px);
}

.tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--tabbar-bg);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}

.tabbar button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 0 2px;
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    background: none;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease;
}

.tabbar svg {
    box-sizing: content-box;
    width: 23px;
    height: 23px;
    padding: 4px 16px;
    border-radius: 999px;
    fill: currentColor;
    transition: background 0.22s ease, transform 0.22s var(--ease);
}

.tabbar button[aria-current="page"] {
    color: var(--accent);
    font-weight: 600;
}

.tabbar button[aria-current="page"] svg {
    background: var(--accent-soft);
    transform: translateY(-1px);
}

/* Grand écran : barre de navigation en haut, sur une ligne, alignée sur le bandeau du playground :
   logo et titre à gauche, onglets en pastilles au milieu, bailleur à droite. */
@media (min-width: 720px) {
    body {
        padding-bottom: 48px;
    }

    .app-header {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 24px;
        min-height: 64px;
        padding: env(safe-area-inset-top) max(16px, calc((100% - var(--pg-max, 1120px)) / 2)) 0;
    }

    .app-header__inner {
        display: contents;
    }

    .app-header h1 {
        grid-column: 1;
        grid-row: 1;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 19px;
        white-space: nowrap;
    }

    .app-header__logo {
        display: block;
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }

    .app-header__sub {
        grid-column: 3;
        grid-row: 1;
        display: none;
        position: relative;
        max-width: 240px;
        padding-left: 40px;
        line-height: 30px;
        font-size: 14px;
        font-weight: 500;
    }

    /* Pastille « compte » devant le nom du bailleur */
    .app-header__sub::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: var(--accent-soft) no-repeat center / 18px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237a8696'%3E%3Cpath d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8m0 2c-2.7 0-8 1.3-8 4v2h16v-2c0-2.7-5.3-4-8-4'/%3E%3C/svg%3E");
    }

    .tabbar {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        position: static;
        display: flex;
        gap: 2px;
        padding: 4px;
        background: var(--card-2);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        border: 1px solid var(--border);
        border-radius: 999px;
    }

    .tabbar button {
        flex-direction: row;
        gap: 7px;
        padding: 7px 14px;
        font-size: 15px;
        line-height: 1.2;
        border-radius: 999px;
        transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    }

    .tabbar button:hover {
        color: var(--text);
    }

    .tabbar svg {
        display: none;
        width: 17px;
        height: 17px;
        padding: 0;
    }

    .tabbar button[aria-current="page"] {
        color: var(--accent);
        background: var(--tab-on);
        box-shadow: var(--shadow-1), 0 0 0 1px var(--border);
    }

    .tabbar button[aria-current="page"] svg {
        background: none;
        transform: none;
    }

    .tabbar button:focus-visible {
        box-shadow: var(--ring);
    }

    main {
        padding-top: 28px;
    }

    .toast {
        bottom: 24px;
    }
}

/* Assez de place pour les icônes des onglets et le nom du bailleur */
@media (min-width: 920px) {
    .tabbar svg {
        display: block;
    }

    .app-header__sub {
        display: block;
    }
}

/* Écran large : onglets exactement centrés, au-dessus de la colonne de contenu */
@media (min-width: 1100px) {
    .app-header {
        grid-template-columns: 1fr auto 1fr;
    }

    .app-header__sub {
        justify-self: end;
    }
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: var(--backdrop);
    animation: fade-in 0.22s ease-out;
}

.modal__card {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: 92vh;
    overflow: auto;
    background: var(--card);
    border-radius: 24px 24px 0 0;
    padding: 12px 16px calc(18px + env(safe-area-inset-bottom));
    box-shadow: var(--shadow-2);
    animation: modal-in 0.28s var(--ease);
}

.modal__card::before {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: var(--border);
}

.modal--closing .modal__backdrop {
    animation: fade-out 0.2s ease-in forwards;
}

.modal--closing .modal__card {
    animation: modal-out 0.2s ease-in forwards;
}

@media (min-width: 640px) {
    .modal {
        align-items: center;
    }

    .modal__card {
        border-radius: 20px;
        padding: 18px 20px;
    }

    .modal__card::before {
        display: none;
    }
}

@keyframes modal-in {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: none;
        opacity: 1;
    }
}

@keyframes modal-out {
    to {
        transform: translateY(40px);
        opacity: 0;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fade-out {
    to {
        opacity: 0;
    }
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes view-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translate(-50%, 12px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.result-total {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--accent-strong);
    margin: 4px 0 12px;
}

.result-actions {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.queue {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.queue-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card-2);
    transition: background 0.25s ease;
}

.queue-row--done {
    background: var(--done-bg);
}

.queue-row__main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.queue-row .chip {
    white-space: nowrap;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: calc(100px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 30;
    max-width: calc(100% - 32px);
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--toast-bg);
    color: var(--toast-text);
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 15px;
    box-shadow: var(--shadow-2);
    animation: toast-in 0.24s var(--ease);
}

.toast button {
    flex: none;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    color: var(--toast-action);
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    white-space: nowrap;
}

.android-card .btn {
    margin-bottom: 12px;
}

.update-card {
    margin-bottom: 12px;
}

.update-card .item-actions {
    margin-top: 8px;
}

.bar {
    height: 6px;
    border-radius: 999px;
    background: var(--accent-soft);
    overflow: hidden;
    margin: 4px 0 8px;
}

.bar > span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: var(--accent);
    transition: width 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

[hidden] {
    display: none !important;
}
