:root {
    --bg-start: #f4f8ff;
    --bg-mid: #fdf5fb;
    --bg-end: #f6eefc;
    --surface: #ffffff;
    --surface-2: #fef9ff;
    --primary: #1959a8;
    --primary-strong: #103f79;
    --accent: #e64fa8;
    --accent-soft: #fce7f5;
    --text: #1f2933;
    --muted: #5f6f83;
    --border: #d7deeb;
    --danger: #a32020;
    --success: #1f7a43;
    --radius: 14px;
    --shadow: 0 10px 25px rgba(17, 24, 39, 0.09);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Avenir Next', 'Trebuchet MS', 'Gill Sans', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 10%, #dbeafe 0%, transparent 40%),
        radial-gradient(circle at 92% 8%, #fbcfe8 0%, transparent 35%),
        linear-gradient(140deg, var(--bg-start), var(--bg-mid) 55%, var(--bg-end));
    min-height: 100vh;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(25, 89, 168, 0.2);
    backdrop-filter: blur(8px);
    background: linear-gradient(120deg, rgba(243, 249, 255, 0.92), rgba(252, 237, 246, 0.9));
}

.brand h1 {
    margin: 0;
    font-size: 1.6rem;
    letter-spacing: 0.02em;
}

.brand p {
    margin: 0.2rem 0 0;
    color: var(--muted);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.nav a,
.nav button,
button,
.btn-secondary,
.btn-primary {
    border: 1px solid rgba(25, 89, 168, 0.35);
    background: #fff;
    color: var(--primary-strong);
    text-decoration: none;
    border-radius: 10px;
    padding: 0.56rem 0.9rem;
    cursor: pointer;
    font-weight: 700;
    transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.btn-primary,
button[type='submit'] {
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    border-color: transparent;
    color: #fff;
}

.btn-secondary {
    display: inline-block;
}

button:hover,
.nav a:hover,
.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(25, 89, 168, 0.22);
}

.container {
    max-width: 1180px;
    margin: 1.1rem auto;
    padding: 0 1rem 2.2rem;
}

.session-user {
    margin-bottom: 1rem;
    color: var(--muted);
    background: rgba(248, 245, 255, 0.9);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.5rem 0.7rem;
}

.card {
    background: linear-gradient(180deg, var(--surface), var(--surface-2));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem;
    box-shadow: var(--shadow);
    animation: card-in 240ms ease;
}

@keyframes card-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.narrow {
    max-width: 520px;
}

.grid-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.52rem;
}

.row-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.anonymous-toggle {
    margin-bottom: 0.75rem;
    padding: 0.65rem 0.7rem;
    border: 1px solid #e7c4de;
    border-radius: 10px;
    background: var(--accent-soft);
}

.anonymous-toggle label {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

label {
    font-size: 0.92rem;
    color: #233342;
    font-weight: 700;
}

input:not([type='checkbox']):not([type='radio']),
select {
    width: 100%;
    padding: 0.62rem 0.66rem;
    border: 1px solid #cfcbc0;
    border-radius: 10px;
    background: #fffeff;
    color: var(--text);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(25, 89, 168, 0.15);
}

.alert {
    padding: 0.78rem;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.alert-error {
    background: #ffe9e9;
    border: 1px solid #f6a3a3;
    color: var(--danger);
}

.alert-success {
    background: #e2f8e9;
    border: 1px solid #9eddaf;
    color: var(--success);
}

.item-row {
    border: 1px solid #d6dff1;
    border-left: 6px solid var(--accent);
    border-radius: 12px;
    padding: 0.85rem;
    margin-bottom: 0.75rem;
    background: #fffefb;
}

.item-kind {
    display: inline-block;
    margin-bottom: 0.45rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: #fde5f2;
    color: #8b1760;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.item-line {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0.6rem;
}

.sauces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 0.42rem;
    margin-top: 0.6rem;
    margin-bottom: 0.5rem;
}

.deposits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 0.42rem;
    margin-top: 0.6rem;
    margin-bottom: 0.5rem;
}

.sauces-grid label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    line-height: 1.25;
    font-weight: 500;
}

.deposits-grid label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    line-height: 1.25;
    font-weight: 500;
}

.deposit-block {
    margin: 0.55rem 0;
    padding: 0.55rem;
    border: 1px solid #d9e2f6;
    border-radius: 10px;
    background: #f6f9ff;
}

.no-sauce-note {
    margin: 0.6rem 0;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    background: #eef4ff;
    border: 1px solid #c8d9fb;
    color: #1f4b8f;
    font-size: 0.9rem;
    font-weight: 600;
}

#recipe-form-feedback,
#drink-form-feedback,
#user-form-feedback,
#sauce-form-feedback,
#deposit-form-feedback {
    margin-bottom: 0.7rem;
}

.inline-input {
    width: 100%;
    padding: 0.4rem 0.5rem;
    border: 1px solid #cfd7ea;
    border-radius: 8px;
    background: #ffffff;
}

input[type='checkbox'],
input[type='radio'] {
    width: 1rem;
    height: 1rem;
    margin: 0;
    flex: 0 0 auto;
    accent-color: var(--accent);
}

.total-box {
    margin: 0.55rem 0 1rem;
    padding: 0.82rem;
    background: linear-gradient(90deg, #ecf4ff, #fde7f4);
    border: 1px solid #cddaf5;
    border-radius: 10px;
    color: #263f66;
}

.product-count {
    margin-top: 0.35rem;
    font-size: 0.95rem;
}

.payment-box {
    margin: 0.5rem 0 1rem;
    padding: 0.85rem;
    border: 1px solid #cddaf5;
    border-radius: 10px;
    background: #f6f9ff;
}

.payment-box h3 {
    margin-top: 0;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.pay-option {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid #c8d9fb;
    border-radius: 10px;
    background: #fff;
    font-weight: 700;
    cursor: pointer;
}

.cash-block {
    margin-top: 0.5rem;
}

.change-box {
    margin-top: 0.5rem;
    padding: 0.6rem 0.7rem;
    border-radius: 10px;
    background: #e2f8e9;
    border: 1px solid #9eddaf;
    font-size: 1.15rem;
}

.change-box .change-negative {
    color: var(--danger);
}

.deposit-return-link {
    margin-top: 0.8rem;
}

.revenue-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
}

.revenue-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.revenue-card {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.9rem;
    border: 1px solid #d6deef;
    border-radius: 12px;
    background: #fffdf8;
}

.revenue-card-strong {
    border-color: #1f7a43;
    background: #f0fbf4;
}

.revenue-label {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 700;
}

.revenue-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-strong);
}

.revenue-sub {
    font-size: 0.85rem;
    color: var(--muted);
}

.revenue-note {
    color: var(--muted);
    font-size: 0.9rem;
}

.order-card {
    border: 1px solid #d7def0;
    border-left: 8px solid var(--accent);
    border-radius: 12px;
    margin-bottom: 0.8rem;
    padding: 0.85rem;
    background: #fffdf9;
}

.order-card h3,
.order-card h4 {
    margin: 0 0 0.4rem;
}

.order-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.order-column {
    border: 1px solid #d6deef;
    border-radius: 12px;
    padding: 0.8rem;
    background: #fffdf8;
}

.order-column h3 {
    margin-top: 0;
    margin-bottom: 0.8rem;
    border-bottom: 1px dashed #d4deef;
    padding-bottom: 0.5rem;
}

.inline-form {
    margin: 0;
}

.admin-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.hidden-block {
    display: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    border: 1px solid #d6deef;
    border-radius: 12px;
    overflow: hidden;
}

thead {
    background: #eef4ff;
}

th,
td {
    text-align: left;
    border-bottom: 1px solid #e1e8f6;
    padding: 0.58rem;
}

@media (max-width: 900px) {
    .row-2,
    .item-line,
    .order-columns {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 0.65rem 1.8rem;
    }

    .brand h1 {
        font-size: 1.35rem;
    }
}

/* ====== Suivi cuisine (tactile, mobile-first) ====== */
.board-hint {
    color: var(--muted);
    margin-top: 0;
}

.kitchen-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.kitchen-column {
    border: 1px solid #d6deef;
    border-radius: 12px;
    padding: 0.8rem;
    background: #fffdf8;
}

.kitchen-column h3 {
    margin: 0 0 0.7rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed #d4deef;
}

.kitchen-empty {
    color: var(--muted);
    text-align: center;
    padding: 0.6rem 0;
}

.kitchen-card {
    margin: 0 0 0.8rem;
}

.kitchen-card .kitchen-card-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid transparent;
    border-left: 10px solid #ffd166;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #ffffff;
    font-weight: 500;
    cursor: pointer;
}

.kitchen-card.is-ready .kitchen-card-btn {
    border-left-color: #6ee7a8;
    background: linear-gradient(135deg, #1f9e57, var(--success));
}

.kitchen-head {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    margin-bottom: 0.5rem;
}

.kitchen-number {
    font-size: 2.1rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.kitchen-name {
    font-size: 1.15rem;
    font-weight: 700;
}

.kitchen-items {
    list-style: none;
    margin: 0 0 0.6rem;
    padding: 0;
}

.kitchen-items li {
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 1.05rem;
}

.kitchen-qty {
    font-weight: 800;
    color: #ffd166;
    margin-right: 0.2rem;
}

.kitchen-sauces {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #dce9ff;
}

.kitchen-card.is-ready .kitchen-qty {
    color: #fff3c4;
}

.kitchen-card.is-ready .kitchen-sauces {
    color: #e4ffee;
}

.kitchen-action {
    display: block;
    text-align: center;
    margin-top: 0.4rem;
    padding: 0.55rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.kitchen-card.is-ready .kitchen-action {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 720px) {
    .kitchen-columns {
        grid-template-columns: 1fr;
    }
}

/* ====== Ecran TV public (theme clair, lisible de nuit) ====== */
.tv-body {
    margin: 0;
    background: #ffffff;
    color: #14233a;
    min-height: 100vh;
}

.tv-header {
    text-align: center;
    padding: 1.2rem 1rem 0.6rem;
    background: #103f79;
    color: #ffffff;
}

.tv-header h1 {
    margin: 0;
    font-size: 2.8rem;
    letter-spacing: 0.04em;
}

.tv-header p {
    margin: 0.3rem 0 0;
    font-size: 1.5rem;
    color: #dce8fb;
}

.tv-main {
    padding: 1rem 1.5rem 2rem;
}

.tv-loading {
    text-align: center;
    font-size: 1.8rem;
    color: #44597a;
}

.tv-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.tv-column {
    background: #f4f7fc;
    border: 3px solid #103f79;
    border-radius: 18px;
    padding: 1rem 1.2rem 1.4rem;
}

.tv-column h2 {
    margin: 0 0 1rem;
    text-align: center;
    font-size: 2.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 3px solid #103f79;
    color: #103f79;
}

.tv-col-ready {
    background: #e7f9ee;
    border-color: #1f7a43;
}

.tv-col-ready h2 {
    color: #156c39;
    border-bottom-color: #1f7a43;
}

.tv-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.tv-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    background: #ffffff;
    border: 2px solid #c7d5ec;
    border-radius: 14px;
    padding: 1.1rem 0.8rem;
}

.tv-col-ready .tv-card {
    background: #ffffff;
    border-color: #1f7a43;
}

.tv-number {
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1;
    color: #0d2c52;
}

.tv-col-ready .tv-number {
    color: #156c39;
}

.tv-name {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    color: #14233a;
}

.tv-empty {
    text-align: center;
    font-size: 1.5rem;
    color: #6b7c95;
}

@media (max-width: 720px) {
    .tv-columns {
        grid-template-columns: 1fr;
    }

    .tv-header h1 {
        font-size: 2rem;
    }
}

/* ====== Accueil caisse (3 gros boutons) ====== */
.home-card h2 {
    text-align: center;
}

.home-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.home-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-decoration: none;
    text-align: center;
    padding: 1.8rem 1rem;
    border-radius: 18px;
    border: 2px solid transparent;
    color: #ffffff;
    min-height: 170px;
    box-shadow: var(--shadow);
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(16, 63, 121, 0.25);
}

.home-btn-drinks {
    background: linear-gradient(135deg, #1e88c7, #115d8a);
}

.home-btn-meal {
    background: linear-gradient(135deg, #e64fa8, #b5246f);
}

.home-btn-deposit {
    background: linear-gradient(135deg, #1f9e57, #136c3a);
}

.home-btn-icon {
    font-size: 2.6rem;
    line-height: 1;
}

.home-btn-title {
    font-size: 1.35rem;
    font-weight: 800;
}

.home-btn-sub {
    font-size: 0.95rem;
    opacity: 0.92;
}

.back-link {
    margin: 0 0 0.4rem;
}

.back-link a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
}

/* ====== Ticket / recapitulatif commande ====== */
.ticket-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 0.4rem;
}

.ticket-number {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--primary-strong);
    line-height: 1;
}

.ticket-name {
    font-size: 1.4rem;
    font-weight: 700;
}

.ticket-status {
    margin-left: auto;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    background: #eef4ff;
    color: var(--primary-strong);
    border: 1px solid #cddaf5;
}

.ticket-status.status-ready {
    background: #e2f8e9;
    color: var(--success);
    border-color: #9eddaf;
}

.ticket-status.status-delivered {
    background: #eef1f5;
    color: var(--muted);
    border-color: #d7deeb;
}

.ticket-meta {
    margin: 0 0 0.9rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.ticket-items {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.ticket-items li {
    padding: 0.55rem 0;
    border-bottom: 1px solid #e7edf8;
}

.ti-main {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.ti-qty {
    font-weight: 800;
    color: var(--accent);
}

.ti-name {
    font-weight: 600;
}

.ti-price {
    margin-left: auto;
    font-weight: 700;
}

.ti-extra {
    margin-top: 0.2rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #8b1760;
}

.ticket-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    background: linear-gradient(90deg, #ecf4ff, #fde7f4);
    border: 1px solid #cddaf5;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.ticket-total strong {
    font-size: 1.6rem;
    color: var(--primary-strong);
}

.ticket-pay {
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-2);
    margin-bottom: 0.9rem;
}

.ticket-pay-line {
    margin-bottom: 0.3rem;
}

.ticket-change {
    margin-top: 0.4rem;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    background: #fff7d6;
    border: 1px solid #f0d98a;
    font-size: 1.3rem;
}

.ticket-change strong {
    font-size: 1.9rem;
    color: #8a6d00;
}

.ticket-hint {
    color: var(--muted);
    margin: 0 0 0.7rem;
}

.ticket-delivered-note {
    margin: 0.4rem 0 0.9rem;
    font-weight: 700;
    color: var(--success);
}

.ticket-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.btn-deliver {
    flex: 1 1 240px;
    padding: 1rem 1.2rem;
    font-size: 1.3rem;
    font-weight: 800;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #1f9e57, var(--success));
    color: #fff;
    cursor: pointer;
}

.ticket-deliver-form {
    flex: 1 1 240px;
    margin: 0;
}

.ticket-deliver-form .btn-deliver {
    width: 100%;
}

.ticket-edit,
.ticket-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.2rem;
    font-size: 1.1rem;
}

@media (max-width: 720px) {
    .home-actions {
        grid-template-columns: 1fr;
    }
}

/* ====== Historique des commandes ====== */
.history-filter {
    display: flex;
    align-items: flex-end;
    gap: 0.6rem;
    margin: 0.5rem 0 1rem;
}

.history-filter input[type='date'] {
    max-width: 200px;
}

.history-summary {
    margin: 0 0 1rem;
    padding: 0.6rem 0.8rem;
    background: #eef4ff;
    border: 1px solid #c8d9fb;
    border-radius: 10px;
}

.history-card {
    border: 1px solid #d7def0;
    border-left: 8px solid var(--muted);
    border-radius: 12px;
    margin-bottom: 0.9rem;
    padding: 0.9rem;
    background: #ffffff;
}

.history-card.status-pending {
    border-left-color: #c47f17;
}

.history-card.status-preparing {
    border-left-color: #1e88c7;
}

.history-card.status-ready {
    border-left-color: #1f7a43;
}

.history-card.status-delivered {
    border-left-color: #8a93a5;
}

.history-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.history-head h3 {
    margin: 0;
}

.history-badge {
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: #eef4ff;
    border: 1px solid #c8d9fb;
    font-weight: 700;
    font-size: 0.85rem;
}

.history-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.1rem;
    margin: 0.5rem 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.history-items {
    list-style: none;
    margin: 0.4rem 0;
    padding: 0;
}

.history-items li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid #eef2fa;
}

.hi-qty {
    font-weight: 800;
    color: var(--accent);
}

.hi-tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
}

.hi-food {
    background: #fde5f2;
    color: #8b1760;
}

.hi-drink {
    background: #e0f0fb;
    color: #115d8a;
}

.hi-extra {
    font-size: 0.85rem;
    color: var(--muted);
}

.hi-price {
    margin-left: auto;
    font-weight: 700;
}

.history-pay {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.1rem;
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.history-timeline {
    margin: 0.4rem 0;
}

.history-timeline summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--primary);
}

.history-timeline ul {
    margin: 0.4rem 0 0;
    padding-left: 1.1rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.history-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

@media (max-width: 720px) {
    .history-head {
        align-items: flex-start;
    }
}
