/* Tenup Alert — design system (maquette v2.0) */
:root {
    --navy: #16324f;
    --navy-deep: #0e2438;
    --fluo: #d8ff3e;
    --bg: #eef1f4;
    --card: #ffffff;
    --green: #16a34a;
    --green-soft: #e6f6ec;
    --amber: #d97706;
    --amber-soft: #fdf1e0;
    --grey: #64748b;
    --grey-soft: #eef0f3;
    --text: #0f1e2e;
    --muted: #7a8aa0;
}
* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.4;
    padding-bottom: 76px; /* tabbar mobile */
}

/* ---------- header ---------- */
.app-header {
    background: var(--navy);
    color: #fff;
    padding: 18px clamp(1rem, 4vw, 2.5rem) 16px;
    border-radius: 0 0 26px 26px;
    box-shadow: 0 8px 24px rgba(22,50,79,.25);
}
.header-row { display: flex; align-items: center; gap: 16px; max-width: 1400px; margin: 0 auto; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; }
.logo-ball { width: 32px; height: 32px; border-radius: 50%; background: var(--fluo); position: relative; overflow: hidden; flex: none; }
.logo-ball::before, .logo-ball::after {
    content: ''; position: absolute; width: 42px; height: 42px; border-radius: 50%;
    border: 3px solid var(--navy); top: -7px;
}
.logo-ball::before { left: -26px; }
.logo-ball::after { right: -26px; }
.brand h1 { font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.brand h1 span { color: var(--fluo); }
.header-nav { display: none; gap: 4px; margin-left: auto; }
.header-nav a { color: rgba(255,255,255,.72); text-decoration: none; font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 999px; }
.header-nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.header-nav a.active { color: var(--navy-deep); background: var(--fluo); }

/* ---------- layout ---------- */
main { padding: 14px clamp(1rem, 4vw, 2.5rem); max-width: 1400px; margin: 0 auto; }
h2 { margin: 1.4rem 0 .7rem; font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.section-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 1.2rem 0 .6rem; }

/* ---------- formulaire / chips ---------- */
recherche-tournois form { display: flex; flex-direction: column; gap: 10px; }
[hidden] { display: none !important; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
details.chip { flex: none; }
details.chip summary {
    list-style: none; display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600;
    color: var(--navy); background: #fff; padding: 8px 14px; border-radius: 999px;
    border: 1px solid #e2e7ee; cursor: pointer; user-select: none;
}
details.chip summary::-webkit-details-marker { display: none; }
details.chip summary::after { content: '▾'; font-size: 10px; color: var(--muted); }
details.chip[open] summary { background: var(--navy); color: #fff; border-color: var(--navy); }
details.chip[open] summary::after { color: var(--fluo); }
.chip-panel {
    background: #fff; border-radius: 14px; border: 1px solid #edf0f4;
    box-shadow: 0 12px 32px rgba(15,30,46,.12); padding: 12px; margin-top: 6px; min-width: 210px;
    display: flex; flex-direction: column; gap: 8px;
}
.chip-panel label, .fsec label { font-size: .8rem; color: #555; display: flex; flex-direction: column; gap: 4px; }
.filtres input, .filtres select, .chip-panel input, .chip-panel select, .fsec input, .fsec select {
    padding: .45rem .6rem; border: 1px solid #dce3ec; border-radius: 10px;
    font-size: .92rem; font-family: inherit; background: #fff; color: var(--text);
}
.filtres select[multiple], .chip-panel select[multiple], .fsec select[multiple] { min-width: 150px; }

/* pilules à cocher (style sidebar maquette) */
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills.ligne { flex-wrap: nowrap; gap: 4px; }
.pills.ligne .pill span { padding: 4px 9px; }
.pills.colonne { flex-direction: column; gap: 0; align-items: flex-start; }
.pill, .check { position: relative; }
.pill input, .check input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pill span {
    display: inline-block; font-size: 12px; font-weight: 600; color: var(--navy);
    background: #fff; padding: 5px 11px; border-radius: 999px; border: 1.5px solid #dfe5ec; cursor: pointer;
}
.pill input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.pill input:focus-visible + span { outline: 2px solid var(--fluo); outline-offset: 2px; }
.check span {
    display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500;
    color: var(--text); padding: 3px 0; cursor: pointer;
}
.check span::before {
    content: ''; width: 19px; height: 19px; border-radius: 6px; flex: none;
    border: 1.5px solid #cdd5df; background: #fff center/11px no-repeat;
}
.check input:checked + span::before {
    background-color: var(--navy); border-color: var(--navy);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23d8ff3e" stroke-width="4.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12l6 6L20 6"/></svg>');
}
.check input:focus-visible + span::before { outline: 2px solid var(--fluo); outline-offset: 2px; }

/* dates sur une ligne */
.dates-ligne { display: flex; gap: 8px; }
.dates-ligne label { flex: 1 1 0; min-width: 0; }
.dates-ligne input { width: 100%; min-width: 0; box-sizing: border-box; padding: .45rem .35rem; font-size: .82rem; }

/* slider distance */
.dist-label { font-size: 13px; font-weight: 600; color: var(--text); display: flex; flex-direction: column; gap: 8px; }
.dist-label .km { font-weight: 800; }
input[type="range"] {
    -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px;
    background: #e2e7ee; border: 0; padding: 0; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
    background: var(--fluo); border: 3px solid var(--navy); box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
input[type="range"]::-moz-range-thumb {
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--fluo); border: 3px solid var(--navy); box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.cta-principal {
    padding: .6rem 1.4rem; background: var(--fluo); color: var(--navy-deep); border: 0;
    border-radius: 12px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.cta-principal:hover { filter: brightness(.95); }
.cta-second {
    padding: .6rem 1.1rem; background: #fff; color: var(--navy); border: 1px solid #e2e7ee;
    border-radius: 12px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.geo {
    border: 1px solid #dce3ec; background: #fff; border-radius: 10px; padding: .4rem .6rem; cursor: pointer;
}

/* ---------- carte ---------- */
.map-wrap { position: relative; margin-top: 12px; }
#carte {
    height: 260px; border-radius: 22px; overflow: hidden;
    box-shadow: 0 6px 18px rgba(15,30,46,.1); z-index: 0;
}
.map-badge {
    position: absolute; left: 12px; top: 12px; z-index: 500; background: rgba(255,255,255,.92);
    backdrop-filter: blur(6px); border-radius: 12px; padding: 7px 12px;
    font-size: 11px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 7px;
    pointer-events: none;
}
.map-badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(22,163,74,.45); } 50% { box-shadow: 0 0 0 6px rgba(22,163,74,0); } }
.leaflet-control-zoom { border-radius: 12px !important; overflow: hidden; box-shadow: 0 3px 10px rgba(0,0,0,.15) !important; border: 0 !important; }
.leaflet-control-zoom a { color: var(--navy) !important; border: 0 !important; }

/* pins : anneau coloré, centre blanc (mêmes couleurs que les badges) */
.pin { display: block; width: 24px; height: 24px; border-radius: 50%; position: relative; }
.pin::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.pin.ouvert { background: var(--green); box-shadow: 0 0 0 5px rgba(22,163,74,.22), 0 4px 10px rgba(0,0,0,.25); }
.pin.annonce { background: var(--amber); box-shadow: 0 0 0 5px rgba(217,119,6,.22), 0 4px 10px rgba(0,0,0,.25); }
.pin.ferme { background: #94a3b8; box-shadow: 0 0 0 5px rgba(148,163,184,.22), 0 4px 10px rgba(0,0,0,.2); }
.pin.inconnu { background: #9db4c8; box-shadow: 0 0 0 5px rgba(157,180,200,.22), 0 4px 10px rgba(0,0,0,.2); }

/* ---------- liste tournois ---------- */
.list-head { display: flex; align-items: baseline; justify-content: space-between; margin: 16px 0 10px; }
.list-head h2 { margin: 0; }
.list-head span { font-size: 12px; font-weight: 600; color: var(--muted); }
.cartes { display: flex; flex-direction: column; gap: 12px; }
.tcard {
    background: var(--card); border-radius: 20px; padding: 16px; cursor: pointer;
    display: flex; flex-direction: column; gap: 9px; box-shadow: 0 3px 12px rgba(15,30,46,.06);
}
.tcard:hover { box-shadow: 0 8px 24px rgba(15,30,46,.12); }
.tcard h3 { font-size: 15px; font-weight: 800; letter-spacing: -.2px; line-height: 1.25; }
.tcard .meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.tcard .meta svg { width: 13px; height: 13px; stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tcard-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #f0f3f6; padding-top: 10px; }
.cta {
    font-size: 12px; font-weight: 700; color: var(--navy-deep); background: var(--fluo);
    border: none; border-radius: 10px; padding: 8px 14px; cursor: pointer; font-family: inherit;
}

/* badges */
.badge {
    display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700;
    padding: 6px 11px; border-radius: 999px; white-space: nowrap; align-self: flex-start;
}
.badge i { width: 7px; height: 7px; border-radius: 50%; font-style: normal; }
.badge.open { background: var(--green-soft); color: #15803d; }
.badge.open i { background: var(--green); animation: pulse 1.5s ease-in-out infinite; }
.badge.soon { background: var(--amber-soft); color: #b45309; }
.badge.soon i { background: var(--amber); }
.badge.closed { background: var(--grey-soft); color: var(--grey); }
.badge.closed i { background: #94a3b8; }
.badge.sport { background: #dfe9f5; color: var(--navy); text-transform: lowercase; }

/* ---------- activité / compte ---------- */
.panel { background: #fff; border-radius: 18px; box-shadow: 0 3px 12px rgba(15,30,46,.06); overflow: hidden; }
.panel .ligne {
    padding: .7rem 1rem; border-bottom: 1px solid #f0f3f6; font-size: .87rem;
    display: flex; gap: .75rem; flex-wrap: wrap; align-items: center;
}
.panel .ligne:last-child { border-bottom: 0; }
.panel time { color: var(--muted); white-space: nowrap; font-size: .8rem; }
.panel .champ { font-weight: 700; color: var(--navy); }
.panel .ligne button { margin-left: auto; }
.panel button { font-family: inherit; font-size: 12px; font-weight: 600; color: #b91c1c; background: #feecec; border: 0; border-radius: 8px; padding: 5px 10px; cursor: pointer; }
form.auth, form#nouvelle {
    display: flex; flex-wrap: wrap; gap: 10px; background: #fff; padding: 14px;
    border-radius: 18px; box-shadow: 0 3px 12px rgba(15,30,46,.06); margin-bottom: 1rem;
}
form.auth label, form#nouvelle label { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; color: #555; font-weight: 500; }
form.auth input, form#nouvelle input, form#nouvelle select {
    padding: .45rem .6rem; border: 1px solid #dce3ec; border-radius: 10px; font-size: .92rem; font-family: inherit;
}
.auth-info { display: flex; align-items: center; gap: 10px; background: #fff; padding: 14px; border-radius: 18px; box-shadow: 0 3px 12px rgba(15,30,46,.06); }
.auth-info button { margin-left: auto; }

/* ---------- dialog fiche / sauvegarde alerte ---------- */
fiche-tournoi dialog, recherche-tournois dialog {
    border: 0; border-radius: 22px; padding: 1.5rem; max-width: 640px; width: 92vw;
    max-height: 85vh; overflow: auto; box-shadow: 0 30px 80px rgba(10,20,32,.35);
    margin: auto; /* le reset global tue le centrage UA du dialog */
}
fiche-tournoi dialog::backdrop, recherche-tournois dialog::backdrop { background: rgba(14,36,56,.55); backdrop-filter: blur(3px); }
fiche-tournoi .fermer, recherche-tournois .fermer { float: right; border: 0; background: var(--grey-soft); width: 32px; height: 32px; border-radius: 50%; font-size: 1rem; cursor: pointer; color: var(--grey); }
fiche-tournoi h2 { margin: .6rem 0 .3rem; }
fiche-tournoi h3 { margin: 1rem 0 .4rem; font-size: 14px; }
fiche-tournoi .meta { font-size: .88rem; color: var(--muted); }
fiche-tournoi table { width: 100%; border-collapse: collapse; font-size: .84rem; margin-top: .5rem; }
fiche-tournoi td, fiche-tournoi th { text-align: left; padding: .4rem; border-bottom: 1px solid #f0f3f6; }
fiche-tournoi a.cta-lien {
    display: inline-block; margin-top: .8rem; background: var(--fluo); color: var(--navy-deep);
    font-size: 13px; font-weight: 700; padding: 9px 16px; border-radius: 10px; text-decoration: none;
}

/* dialog sauvegarde alerte */
recherche-tournois dialog { max-width: 420px; }
form#form-save { display: flex; flex-direction: column; gap: 12px; }
form#form-save h3 { margin: 0; font-size: 16px; }
form#form-save label { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; color: #555; font-weight: 500; }
.timings-label { display: block; font-size: .78rem; color: #555; font-weight: 500; margin-bottom: 4px; }
form#form-save input, form#form-save select {
    padding: .45rem .6rem; border: 1px solid #dce3ec; border-radius: 10px; font-size: .92rem; font-family: inherit;
}
form#form-save .recap { font-size: .78rem; color: var(--muted); margin: 0; word-break: break-word; }
form#form-save .save-err { font-size: .82rem; color: #b91c1c; background: #feecec; border-radius: 8px; padding: 8px 10px; margin: 0; }
.btn-icone { display: inline-flex; align-items: center; justify-content: center; padding: .6rem .8rem; }

/* groupement par date */
.list-head-right { display: flex; align-items: center; gap: 10px; }
.btn-groupe {
    border: 1px solid #e2e7ee; background: #fff; color: var(--navy); border-radius: 999px;
    font-size: 11.5px; font-weight: 600; padding: 5px 12px; cursor: pointer; font-family: inherit;
}
.btn-groupe.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-plus { width: 100%; margin-top: 12px; }
.date-groupe {
    margin: 18px 0 8px; font-size: 13px; font-weight: 800; color: var(--navy);
    text-transform: capitalize; letter-spacing: -.1px;
}

.chargement, .vide { color: var(--muted); padding: 1rem 0; font-style: italic; font-size: .9rem; }

/* ---------- tabbar mobile ---------- */
.tabbar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
    display: flex; justify-content: space-around; padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid #e7ebf0;
}
.tabbar a {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    font-size: 10px; font-weight: 600; color: #9aa8bb; text-decoration: none;
}
.tabbar a svg { width: 21px; height: 21px; stroke: #9aa8bb; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a:hover, .tabbar a.active { color: var(--navy); }
.tabbar a.active { font-weight: 800; }
.tabbar a.active svg { stroke-width: 2.6; }
.tabbar a:hover svg, .tabbar a.active svg { stroke: var(--navy); }

/* ---------- desktop ---------- */
@media (min-width: 1024px) {
    body { padding-bottom: 0; }
    .tabbar { display: none; }
    .header-nav { display: flex; }
    #carte { height: 480px; }
    #recherche {
        display: grid; grid-template-columns: 290px 1fr; gap: 20px; align-items: start;
    }
    recherche-tournois {
        position: sticky; top: 16px; background: #fff; border-radius: 20px;
        padding: 20px 18px; box-shadow: 0 3px 12px rgba(15,30,46,.06);
        /* sidebar hauteur page : le formulaire scrolle, les boutons restent visibles */
        max-height: calc(100vh - 32px); display: flex; flex-direction: column;
    }
    recherche-tournois form {
        flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin;
        /* scrollbar au bord de la sidebar, pas superposée aux filtres */
        margin-right: -18px; padding-right: 18px;
    }
    recherche-tournois .actions { flex: none; padding-top: 12px; margin-top: 4px; border-top: 1px solid #f0f3f6; justify-content: flex-start; }
    recherche-tournois .chips { flex-direction: column; overflow: visible; gap: 12px; }
    /* desktop : sections simples toujours visibles (pas de details, pas de dropdown) */
    .fsec h4 {
        margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .12em;
        text-transform: uppercase; color: var(--muted);
    }
    /* filtres avancés : section repliable (details natif) — styles globaux, fin de fichier */
    .zone-resultats { min-width: 0; }
    .map-wrap { margin-top: 0; }
    .cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
}

/* ---------- toast ---------- */
.toast {
    position: fixed; left: 50%; bottom: 90px; z-index: 3000;
    transform: translateX(-50%) translateY(8px); opacity: 0;
    background: var(--navy); color: #fff; padding: 10px 18px;
    border-radius: 999px; font-size: 13px; font-weight: 600;
    transition: opacity .25s, transform .25s; pointer-events: none;
    max-width: 90vw; text-align: center;
}
.toast.vu { opacity: 1; transform: translateX(-50%); }

/* lien déguisé (mot de passe oublié) */
.lien {
    background: none; border: none; padding: 4px 0; cursor: pointer;
    color: var(--navy); text-decoration: underline; font-size: .82rem; font-family: inherit;
}

/* ---------- mobile : filtres rapides sur une ligne scrollable ---------- */
recherche-tournois form > .chips {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin: 0 -4px; padding: 2px 4px 4px;
}
recherche-tournois form > .chips::-webkit-scrollbar { display: none; }
.chip-filtre {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; border-radius: 999px; border: 1px solid #e2e7ee;
    background: #fff; color: var(--navy); cursor: pointer; font-family: inherit;
}
.autres-filtres {
    flex: none; align-self: center; background: none; border: 0; padding: 8px 4px;
    color: var(--navy); font-size: 13px; font-weight: 700; cursor: pointer;
    font-family: inherit; white-space: nowrap;
}
/* panneau de pastille en surimpression : la ligne parente scrolle horizontalement */
.chip-panel { position: fixed; left: 10px; right: 10px; z-index: 1500; max-height: 60vh; overflow: auto; }

/* modale "tous les filtres" (mobile) : sections au style desktop */
.fsec h4 {
    margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--muted);
}
dialog#dlg-filtres .fsec { margin-bottom: 14px; }
dialog#dlg-filtres h3 { margin: 0 0 12px; font-size: 16px; }
dialog#dlg-filtres .cta-principal { width: 100%; margin-top: 6px; }

@media (min-width: 1024px) {
    recherche-tournois form > .chips { margin: 0; padding: 0; overflow: visible; }
}

/* filtres avancés : section repliable native, sidebar desktop ET modale mobile */
details.avances-d summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
details.avances-d summary::-webkit-details-marker { display: none; }
details.avances-d summary::after { content: '▾'; font-size: 16px; font-weight: 700; color: var(--navy); }
details.avances-d[open] summary::after { transform: rotate(180deg); }
.avances-body { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
/* modale étroite : les pilules sport (une ligne en sidebar) reviennent à la ligne */
dialog#dlg-filtres .pills.ligne { flex-wrap: wrap; }
dialog#dlg-filtres .avances-body .fsec { margin-bottom: 0; }

/* ---------- mobile : dropdown multi-select ---------- */
.dd { position: relative; flex: none; }
.dd-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
    border: 1px solid #e2e7ee; border-radius: 999px; background: #fff; color: var(--navy);
    font-size: 12.5px; font-weight: 600; font-family: inherit; cursor: pointer; white-space: nowrap;
}
.dd-btn .chev { transition: transform .2s; }
.dd-btn.open .chev { transform: rotate(180deg); }
.dd-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.dd-btn .count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
    background: var(--fluo); color: var(--navy); font-size: 12px; font-weight: 800;
}
.dd-menu {
    position: fixed; min-width: 210px; max-width: 78vw; max-height: 60vh; overflow: auto;
    background: #fff; border-radius: 18px; padding: 8px; z-index: 1450;
    box-shadow: 0 14px 34px rgba(20,32,48,.2), 0 2px 6px rgba(20,32,48,.08);
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity .18s, transform .18s;
}
.dd-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.dd-menu .opt {
    position: relative; display: flex; align-items: center; gap: 12px;
    padding: 11px 12px; font-size: 14px; font-weight: 600; color: var(--text);
    border-radius: 12px; cursor: pointer;
}
.dd-menu .opt:active { background: #f2f5f8; }
.dd-menu .opt input { position: absolute; opacity: 0; pointer-events: none; }
.dd-menu .opt .box {
    width: 21px; height: 21px; flex: none; border-radius: 999px; border: 2px solid #c9d2dc;
    display: inline-flex; align-items: center; justify-content: center; transition: all .15s;
}
.dd-menu .opt .box svg { width: 11px; height: 11px; opacity: 0; transition: opacity .15s; }
.dd-menu .opt input:checked ~ .box { border-color: var(--navy); background: var(--navy); }
.dd-menu .opt input:checked ~ .box svg { opacity: 1; }
.dd-menu .opt input:focus-visible ~ .box { outline: 2px solid var(--fluo); outline-offset: 2px; }
.dd-menu .foot {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 10px 4px; border-top: 1px solid #e7ebf0; margin-top: 6px;
}
.dd-menu .foot .clear {
    border: 0; background: none; font-family: inherit; font-size: 13px;
    font-weight: 600; color: var(--muted); cursor: pointer;
}
.dd-menu .foot .nb { font-size: 12px; font-weight: 700; color: var(--navy); }
.scrim {
    position: fixed; inset: 0; background: rgba(24,36,50,.18); z-index: 1400;
    opacity: 0; pointer-events: none; transition: opacity .2s;
}
.scrim.on { opacity: 1; pointer-events: auto; }
