@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/inter-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1c1d1a;
    background: #f1f0eb;
    line-height: 1.45;
    --admin-ink: #1c1d1a;
    --admin-muted: #6d6d65;
    --admin-paper: #f7f6f2;
    --admin-white: #fff;
    --admin-line: #dcd9d0;
    --admin-dark: #171815;
    --admin-amber: #f7b323;
    --admin-green: #397352;
    --admin-red: #a43d35;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(rgba(244, 243, 238, .92), rgba(244, 243, 238, .92)),
        url("/assets/img/texture-concrete-v1.webp") center / 760px auto;
}
.admin-skip-link {
    position: fixed;
    z-index: 100;
    top: 10px;
    left: 10px;
    padding: 10px 14px;
    border-radius: 5px;
    color: var(--admin-ink);
    background: var(--admin-amber);
    font-weight: 800;
    text-decoration: none;
    transform: translateY(-150%);
    transition: transform .18s ease;
}
.admin-skip-link:focus { transform: translateY(0); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(247, 179, 35, .55);
    outline-offset: 3px;
}

.admin-login-body {
    position: relative;
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 20px;
    background:
        linear-gradient(90deg, rgba(16, 17, 15, .94), rgba(16, 17, 15, .82)),
        url("/assets/img/texture-asphalt-v1.webp") center / 720px auto,
        #10110f;
}
.admin-login-body::before,
.admin-login-body::after {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(247, 179, 35, .28);
    content: "";
}
.admin-login-body::before { left: 9vw; }
.admin-login-body::after { right: 9vw; }
.login-card {
    position: relative;
    width: min(430px, 100%);
    padding: 38px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: rgba(250, 249, 246, .97);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .26);
}
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 34px; }
.login-brand > span { display: grid; }
.login-brand strong { font-size: 1rem; }
.login-brand small { color: var(--admin-muted); font-size: .72rem; }
.login-card h1 { margin: 5px 0 8px; font-size: 2rem; }
.login-card p { color: #716c63; }
.admin-kicker { margin: 0; color: #8a5810 !important; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.stack-form { display: grid; gap: 16px; margin: 24px 0 18px; }
label { display: grid; gap: 7px; font-weight: 650; }
input, select, textarea { width: 100%; padding: 11px 12px; border: 1px solid #cbc5bb; border-radius: 6px; background: #fff; }
textarea { resize: vertical; min-height: 130px; }
input:focus, select:focus, textarea:focus { border-color: #b5780c; outline: 2px solid rgba(247, 179, 35, .25); outline-offset: 1px; }
.back-link { color: #716c63; font-size: .92rem; }

.admin-topbar {
    position: sticky;
    z-index: 50;
    top: 0;
    display: grid;
    min-height: 70px;
    padding: 0 max(18px, calc((100vw - 1240px) / 2));
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    color: #fff;
    background:
        linear-gradient(rgba(24, 25, 22, .96), rgba(24, 25, 22, .96)),
        url("/assets/img/texture-asphalt-v1.webp") center / 680px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
}
.admin-topbar a { text-decoration: none; }
.admin-brand { display: flex; align-items: center; gap: 10px; }
.admin-brand > span { display: grid; }
.admin-brand strong { font-size: .92rem; }
.admin-brand small { color: rgba(255, 255, 255, .5); font-size: .68rem; }
.admin-topbar nav { display: flex; min-width: 0; justify-content: center; gap: 4px; }
.admin-topbar nav a {
    padding: 9px 11px;
    border-radius: 5px;
    color: rgba(255, 255, 255, .66);
    font-size: .79rem;
    font-weight: 650;
    white-space: nowrap;
}
.admin-topbar nav a:hover,
.admin-topbar nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .09); }
.admin-topbar-actions { display: flex; align-items: center; gap: 8px; }
.admin-open-public,
.admin-logout { padding: 9px 11px; border-radius: 5px; font-size: .76rem; font-weight: 700; }
.admin-open-public { color: var(--admin-ink); background: var(--admin-amber); }
.admin-logout { color: rgba(255, 255, 255, .62); background: none; border: 0; cursor: pointer; }
.admin-logout:hover { color: #fff; }

.admin-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 64px; }
.admin-shell.narrow { width: min(900px, calc(100% - 32px)); }
.admin-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.admin-page-heading h1 { margin: 3px 0; font-size: 2.2rem; }
.admin-page-heading p { margin: 0; color: #756f65; }

.admin-primary, .small-button { border: 0; border-radius: 5px; cursor: pointer; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.admin-primary { padding: 12px 18px; color: var(--admin-ink); background: var(--admin-amber); }
.admin-primary:hover { background: #ffc23e; }
.small-button { background: #ece8e0; color: #292825; padding: 8px 10px; font-size: .85rem; }
.small-button.danger { background: #f7e4e1; color: #9a2e28; }
.small-button:disabled { opacity: .45; cursor: not-allowed; }
label small { color: #777168; font-weight: 450; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.button-link { white-space: nowrap; }

.admin-filterbar {
    display: flex;
    margin-bottom: 18px;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
}

.admin-filterbar a {
    display: inline-flex;
    min-height: 38px;
    padding: 0 11px;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--admin-line);
    border-radius: 5px;
    color: var(--admin-muted);
    background: rgba(255, 255, 255, .74);
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.admin-filterbar a[aria-current="page"] {
    color: #fff;
    border-color: var(--admin-dark);
    background: var(--admin-dark);
}

.admin-filterbar a span {
    min-width: 23px;
    padding: 2px 5px;
    border-radius: 4px;
    color: var(--admin-ink);
    background: var(--admin-amber);
    text-align: center;
    font-size: .68rem;
}

.alert { padding: 12px 14px; border-radius: 6px; margin: 0 0 18px; }
.alert.error { background: #f8e4e2; color: #8d2e29; }
.alert.success { background: #e3f2e7; color: #27683a; }

.admin-table-wrap { background: #fff; border: 1px solid #e1ddd4; border-radius: 8px; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 800px; }
.admin-table th, .admin-table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid #eeeae3; vertical-align: middle; }
.admin-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: #756f65; background: #faf9f6; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-thumb { width: 72px; height: 54px; object-fit: cover; border-radius: 5px; }
.inactive-row { opacity: .58; }
.badge { padding: 5px 8px; border-radius: 999px; font-size: .78rem; font-weight: 750; }
.badge.active { background: #e4f2e8; color: #2d7141; }
.badge.inactive { background: #eeeae3; color: #716b62; }
/*
 * Manteniamo la cella Azioni come vera table-cell.
 * Impostare display:flex direttamente sul <td> interrompeva visivamente
 * la linea orizzontale tra una riga prodotto e la successiva.
 */
.actions-cell {
    min-width: 260px;
}

.actions-cell > .small-button,
.actions-cell > form {
    display: inline-block;
    vertical-align: middle;
    margin: 3px 4px 3px 0;
}

.actions-cell form {
    margin-top: 3px;
    margin-bottom: 3px;
}

.admin-form-card { background: #fff; border: 1px solid #e1ddd4; border-radius: 8px; padding: 26px; display: grid; gap: 20px; }
.admin-form-card > .admin-primary { width: fit-content; }
.two-cols, .image-upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/*
 * I campi affiancati non devono stirarsi in altezza quando uno dei due
 * contiene una riga di aiuto (per esempio il codice suggerito).
 */
.two-cols {
    align-items: start;
}

.two-cols > label {
    align-content: start;
}

.two-cols > label > input:not([type="checkbox"]):not([type="file"]),
.two-cols > label > select {
    height: 48px;
    min-height: 48px;
    padding: 0 12px;
}

.two-cols > label > small {
    margin-top: 1px;
    line-height: 1.35;
}
.checkbox-row { display: flex; align-items: center; gap: 9px; font-weight: 650; }
.checkbox-row input { width: auto; }
.image-field { border: 1px solid #e5e0d7; border-radius: 8px; padding: 18px; }
.image-field h2 { margin: 0 0 8px; font-size: 1rem; }
.image-field p { margin: 0 0 14px; color: #777168; font-size: .9rem; }

/*
 * I due selettori file hanno la stessa altezza e partono dalla stessa
 * posizione nelle due colonne. La nota della reference viene dopo il file.
 */
.image-field input[type="file"] {
    min-height: 48px;
    padding: 8px 10px;
}

.image-field-help {
    margin: 10px 0 0 !important;
    line-height: 1.45;
}
.current-image { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; margin-bottom: 12px; }
.private-image-note { background: #f3f0ea; border-radius: 6px; padding: 18px; color: #6f695f; margin-bottom: 12px; font-size: .9rem; }

.product-image-flow {
    display: grid;
    gap: 12px;
}

.form-disclosure {
    border: 1px solid #e5e0d7;
    border-radius: 8px;
    background: #faf9f6;
}

.form-disclosure > summary,
.admin-disclosure > summary {
    display: flex;
    min-height: 62px;
    padding: 15px 17px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    cursor: pointer;
    list-style: none;
}

.form-disclosure > summary::-webkit-details-marker,
.admin-disclosure > summary::-webkit-details-marker { display: none; }

.form-disclosure > summary > span:first-child,
.admin-disclosure > summary > span:first-child { display: grid; gap: 2px; }
.form-disclosure > summary small,
.admin-disclosure > summary small { color: var(--admin-muted); font-size: .74rem; }
.form-disclosure > summary > span:last-child,
.admin-disclosure > summary > small:last-child { color: #8a5810; font-size: .72rem; font-weight: 750; }
.form-disclosure[open] > summary,
.admin-disclosure[open] > summary { border-bottom: 1px solid #e5e0d7; }
.disclosure-state::before { content: "Mostra"; }
.form-disclosure[open] > summary .disclosure-state::before,
.admin-disclosure[open] > summary .disclosure-state::before { content: "Nascondi"; }
.form-disclosure > label { padding: 17px; }
.image-reference-disclosure { padding: 0; }
.image-reference-disclosure > :not(summary) { margin-right: 17px; margin-left: 17px; }
.image-reference-disclosure > :last-child { margin-bottom: 17px !important; }

.admin-disclosure { padding: 0; gap: 0; }
.admin-disclosure > .settings-grid { margin: 20px; }

@media (max-width: 760px) {
    .admin-topbar { position: static; min-height: 0; padding: 14px 16px; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
    .admin-topbar nav { grid-column: 1 / -1; justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; }
    .admin-topbar-actions { justify-content: flex-end; }
    .admin-open-public { display: none; }
    .admin-page-heading { align-items: flex-start; flex-direction: column; }
    .two-cols, .image-upload-grid { grid-template-columns: 1fr; }
}

.alert.warning { background: #fff2cf; color: #765600; }
.muted-copy { color: #777168; margin: 6px 0 0; }
.password-form { margin-bottom: 0; }
.settings-summary { margin-top: 22px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.settings-grid > div { border: 1px solid #e5e0d7; border-radius: 7px; padding: 14px; background: #faf9f6; }
.settings-grid dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: #777168; margin-bottom: 5px; }
.settings-grid dd { margin: 0; font-weight: 750; }

@media (max-width: 760px) {
    .settings-grid { grid-template-columns: 1fr; }
}


/* Accordion categorie nella pagina Prodotti */
.category-accordion-list {
    display: grid;
    gap: 14px;
}

.category-accordion {
    background: #fff;
    border: 1px solid #e1ddd4;
    border-radius: 8px;
    overflow: hidden;
}

.category-accordion-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    user-select: none;
}

.category-accordion-summary::-webkit-details-marker {
    display: none;
}

.category-accordion-summary:hover {
    background: #faf9f6;
}

.category-summary-main,
.category-summary-meta {
    display: flex;
    align-items: center;
}

.category-summary-main {
    gap: 12px;
    min-width: 0;
}

.category-summary-main strong {
    display: inline-block;
    font-size: 1.05rem;
}

.category-slug {
    display: block;
    margin-top: 2px;
    color: #817a70;
    font-size: .8rem;
}

.category-summary-meta {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.category-count,
.category-active-count {
    padding: 5px 9px;
    border-radius: 999px;
    background: #f1eee8;
    color: #625d55;
    font-size: .78rem;
    font-weight: 750;
    white-space: nowrap;
}

.category-active-count {
    background: #edf5ef;
    color: #39704a;
}

.category-chevron {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-right: 2px solid #6f695f;
    border-bottom: 2px solid #6f695f;
    transform: rotate(-45deg);
    transition: transform .16s ease;
}

.category-accordion[open] .category-chevron {
    transform: rotate(45deg);
}

.category-accordion[open] .category-accordion-summary {
    border-bottom: 1px solid #eeeae3;
}

.category-accordion-content {
    padding: 0;
}

.category-products-table {
    border: 0;
    border-radius: 0;
}

.category-products-table .admin-table th {
    background: #fcfbf8;
}

.category-empty-row,
.catalog-empty-state {
    padding: 22px;
}

.category-empty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.category-empty-row p,
.catalog-empty-state p {
    margin: 0;
    color: #777168;
}

.catalog-toolbar {
    display: flex;
    margin-bottom: 16px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.catalog-search {
    width: min(430px, 100%);
    gap: 6px;
    color: var(--admin-muted);
    font-size: .74rem;
}

.catalog-search input { min-height: 44px; }
.catalog-toolbar > p { margin: 0 0 11px; color: var(--admin-muted); font-size: .78rem; }
.catalog-toolbar > p strong { color: var(--admin-ink); }
.catalog-search-empty { margin-top: 14px; }

.catalog-empty-state {
    background: #fff;
    border: 1px solid #e1ddd4;
    border-radius: 8px;
}

.catalog-empty-state p {
    margin: 5px 0 15px;
}

@media (max-width: 760px) {
    .category-accordion-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .category-summary-meta {
        justify-content: flex-start;
        padding-left: 21px;
    }

    .category-empty-row {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* Anteprima locale del file appena scelto nel form prodotto. */
.selected-file-preview {
    margin-top: 12px;
    margin-bottom: 0;
}

/* =========================================================
   RICHIESTE CONTATTO / PREVENTIVO
   ========================================================= */

.lead-list {
    display: grid;
    gap: 14px;
}

.lead-card {
    padding: 20px;
    border: 1px solid #e1ddd4;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 7px 24px rgba(0,0,0,.025);
}

.lead-card.is-new {
    border-left: 4px solid #222;
}

.lead-card-head,
.lead-title-row,
.lead-grid,
.lead-actions {
    display: flex;
}

.lead-card-head {
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eeeae3;
}

.lead-card-head p {
    margin: 4px 0 0;
    color: #777168;
    font-size: .88rem;
}

.lead-title-row {
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.lead-title-row > strong {
    font-size: 1.08rem;
}

.lead-id {
    color: #999187;
    font-size: .8rem;
}

.lead-status.new {
    background: #232321;
    color: #fff;
}

.lead-status.contacted {
    background: #e4f2e8;
    color: #2d7141;
}

.lead-status.closed {
    background: #eeeae3;
    color: #716b62;
}

.lead-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.lead-grid > div,
.lead-products,
.lead-message {
    padding: 13px 14px;
    border-radius: 6px;
    background: #faf9f6;
}

.lead-label {
    display: block;
    margin-bottom: 5px;
    color: #817a70;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.lead-products,
.lead-message {
    margin-top: 12px;
}

.lead-product-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.lead-product-chips > span {
    padding: 6px 9px;
    border: 1px solid #e2ddd4;
    border-radius: 5px;
    background: #fff;
    font-size: .82rem;
}

.lead-product-chips small {
    color: #888177;
}

.lead-message p {
    margin: 0;
    white-space: normal;
}

.lead-actions {
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.lead-actions form {
    margin: 0;
}

.lead-contact-action {
    color: #503200;
    border: 1px solid #e5ad36;
    background: #fff4d8;
}

@media (max-width: 760px) {
    .lead-grid {
        grid-template-columns: 1fr;
    }
}

.lead-status.hidden {
    background: #eeeae3;
    color: #716b62;
}

/* =========================================================
   PANORAMICA OPERATIVA
   ========================================================= */

.dashboard-heading {
    padding-bottom: 22px;
    border-bottom: 1px solid var(--admin-line);
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 28px;
}

.dashboard-metric {
    display: grid;
    min-height: 154px;
    padding: 18px;
    align-content: space-between;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    text-decoration: none;
    background: rgba(255, 255, 255, .82);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.dashboard-metric:hover {
    border-color: #bdb8ad;
    box-shadow: 0 14px 32px rgba(28, 29, 26, .07);
    transform: translateY(-2px);
}

.dashboard-metric.is-priority {
    color: #fff;
    border-color: var(--admin-dark);
    background:
        linear-gradient(rgba(24, 25, 22, .95), rgba(24, 25, 22, .95)),
        url("/assets/img/texture-asphalt-v1.webp") center / 560px auto;
}

.dashboard-metric > span {
    color: var(--admin-muted);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.dashboard-metric.is-priority > span,
.dashboard-metric.is-priority small { color: rgba(255, 255, 255, .6); }
.dashboard-metric strong { font-size: 2.4rem; line-height: 1; }
.dashboard-metric small { color: var(--admin-muted); font-size: .78rem; }

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr);
    gap: 18px;
}

.dashboard-panel {
    overflow: hidden;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .88);
}

.dashboard-panel > header {
    display: flex;
    min-height: 76px;
    padding: 16px 18px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #e7e4dc;
}

.dashboard-panel h2 { margin: 2px 0 0; font-size: 1.15rem; }
.dashboard-panel > header > a { color: #8a5810; font-size: .8rem; font-weight: 750; text-decoration: none; }
.dashboard-request-list { display: grid; }

.dashboard-request-list > a {
    display: grid;
    min-height: 68px;
    padding: 12px 18px;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #ece9e2;
    text-decoration: none;
}

.dashboard-request-list > a:last-child { border-bottom: 0; }
.dashboard-request-list > a:hover { background: #faf9f6; }
.dashboard-request-list > a > span:nth-child(2) { display: grid; }
.dashboard-request-list small,
.dashboard-request-list time { color: var(--admin-muted); font-size: .76rem; }
.request-state { width: 7px; height: 7px; border-radius: 50%; background: #aaa69e; }
.request-state.new { background: var(--admin-amber); box-shadow: 0 0 0 4px rgba(247, 179, 35, .15); }
.request-state.contacted { background: var(--admin-green); }

.dashboard-empty { padding: 28px 18px; }
.dashboard-empty p { margin: 4px 0 0; color: var(--admin-muted); }

.quick-actions > a {
    display: grid;
    min-height: 68px;
    padding: 12px 18px;
    grid-template-columns: minmax(0, 1fr) auto;
    border-bottom: 1px solid #ece9e2;
    text-decoration: none;
}

.quick-actions > a:last-child { border-bottom: 0; }
.quick-actions > a:hover { background: #faf9f6; }
.quick-actions > a strong,
.quick-actions > a small { grid-column: 1; }
.quick-actions > a small { color: var(--admin-muted); font-size: .74rem; }
.quick-actions > a span { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: #9a660d; font-size: 1.1rem; }

.dashboard-privacy-note {
    margin: 22px 0 0;
    color: var(--admin-muted);
    font-size: .78rem;
}

@media (max-width: 980px) {
    .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .login-card { padding: 28px 24px; }
    .dashboard-metrics { grid-template-columns: 1fr 1fr; }
    .dashboard-metric { min-height: 132px; padding: 14px; }
    .dashboard-metric strong { font-size: 2rem; }
    .dashboard-request-list > a { grid-template-columns: 8px minmax(0, 1fr); }
    .dashboard-request-list time { display: none; }
    .admin-shell { width: min(100% - 22px, 1180px); padding-top: 28px; }
    .admin-page-heading h1 { font-size: 1.85rem; }
    .admin-page-heading .admin-primary { width: 100%; }
    .catalog-toolbar { align-items: stretch; flex-direction: column; gap: 3px; }
    .catalog-toolbar > p { margin: 0; }
    .lead-card { padding: 16px; }
    .lead-actions > .small-button { flex: 1 1 auto; }
}
