:root { --ink: #222; --muted: #777; --line: #e3e0da; --bg: #faf8f4; --card: #fff; --accent: #2f6f5e; --warn: #b5522b; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
main { max-width: 90rem; margin: 0 auto; padding: 1rem; }
a { color: var(--accent); }
h1 { font-size: 1.5rem; margin: .5rem 0 1rem; }
h2 { font-size: 1.15rem; margin: 1.6rem 0 .5rem; }
code { font-size: .8em; color: var(--muted); }
.muted { color: var(--muted); }
.err { color: var(--warn); font-weight: 600; }
.count { font-size: .75em; color: var(--muted); font-weight: normal; }

/* the bar */
.bar { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
       gap: .4rem 1rem; padding: .5rem 1rem; background: var(--card); border-bottom: 1px solid var(--line); }
.bar .site { flex-basis: 100%; font-weight: 600; letter-spacing: .03em; }
.bar .links { display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; }
.bar .links a, .filters a { padding: .3rem .65rem; border-radius: .4rem; text-decoration: none; }
.bar .links a.on, .filters a.on { background: var(--accent); color: #fff; }
.bar .links a.home-link { font-weight: 700; }
.bar .sep { width: 1px; height: 1.3rem; background: var(--line); margin: 0 .3rem; }
.bar .me { color: var(--muted); font-size: .9em; }

/* forms */
.card { max-width: 24rem; margin: 3rem auto; padding: 1.5rem; background: var(--card); border: 1px solid var(--line); border-radius: .6rem; }
label { display: block; margin: .8rem 0; }
input[name], button { display: block; width: 100%; margin-top: .25rem; padding: .55rem; font: inherit; border: 1px solid #ccc; border-radius: .4rem; }
button { background: var(--accent); color: #fff; border: 0; cursor: pointer; margin-top: 1.2rem; }
/* the login page's « Nouvel accès »: between the address and the password, second to « Accéder » */
/* « Créer mon compte » : the way in for a newcomer — as plain to see as « Accéder » */
button.new { background: var(--accent); color: #fff; border: 1px solid var(--accent); margin: .8rem 0 0; font-weight: 700; }
/* the anonymous reader's bar: « Se connecter », « Créer un compte » — bold, in colour */
.bar .me a.cta { font-weight: 700; color: var(--accent); font-size: 1.05em; }
.bar .me a.cta.primary { display: inline-block; margin-left: .5rem; padding: .25rem .7rem; border-radius: .4rem; background: var(--accent); color: #fff; text-decoration: none; }
.card .or { text-align: center; color: var(--muted); margin: .7rem 0 0; }
/* « Mot de passe oublié ? » : there when needed, never competing with « Accéder » */
button.forgot { margin-top: .7rem; padding: .45rem; background: var(--bg); color: var(--muted); border: 1px solid var(--line); font-size: .9em; }
button.forgot:hover { color: var(--ink); }

/* the cards: as many columns as the screen holds, one on a phone */
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 2.5rem;
         grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); }
/* one card: picture + name | checkbox | the others — and the description across all three */
.item { display: grid; grid-template-columns: minmax(8rem, 13rem) 5.5rem 1fr; align-items: center; gap: .4rem 1rem;
        grid-template-areas: "fig tick others" "for for for" "res res res" "desc desc desc";
        padding: .75rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 4rem; }
.item:target { background: #fff6d8; }
.item figure { grid-area: fig; margin: 0; }
.item .tickcol { grid-area: tick; display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.item .others { grid-area: others; }
.item .desc, .item .edit { grid-area: desc; }
.item img { display: block; width: 100%; max-height: 16rem; object-fit: contain; background: #eee; border-radius: .3rem; }
.item figcaption { margin-top: .3rem; }
.item figcaption code { display: block; }
.item .name { font-weight: 600; }
.item.mine .name { color: var(--accent); }
.item .desc { white-space: normal; color: #444; font-size: .95em; }
.tick { margin: 0; text-align: center; }
/* the estimate, under the checkbox */
.estimate { margin: 0; display: flex; align-items: center; gap: .2rem; font-size: .9em; color: #555; white-space: nowrap; }
.estimate input { width: 4.8rem; padding: .2rem .3rem; font: inherit; text-align: right; border: 1px solid #ccc; border-radius: .3rem; background: #fff; }
.estimate input:focus { border-color: var(--accent); outline: none; }
.estimate input.saved { border-color: var(--accent); }
.estimate input.bad { border-color: var(--warn); }
.tick input { width: 1.6rem; height: 1.6rem; cursor: pointer; accent-color: var(--accent); }
.others { color: var(--warn); }

/* editors */
.hint { margin-top: -.5rem; }
.editor .name { font: inherit; font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; color: inherit;
                text-align: left; text-decoration: underline dotted; text-underline-offset: .2em; }
.editor .desc { cursor: pointer; }
.editing .name, .editing figcaption code { display: none; }
.page-select { width: 100%; margin-top: .3rem; font: inherit; padding: .25rem; border: 1px solid var(--accent); border-radius: .3rem; }
.name-input { width: 100%; font: inherit; padding: .3rem .4rem; border: 1px solid var(--accent); border-radius: .3rem; }
.edit { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.edit textarea { flex: 1 1 100%; font: inherit; padding: .5rem; border: 1px solid var(--accent); border-radius: .4rem; resize: vertical; }
.edit button { width: auto; margin: 0; padding: .4rem .9rem; font: inherit; border-radius: .4rem; cursor: pointer; }
.edit .save { background: var(--accent); color: #fff; border: 0; }
.edit .cancel { background: none; border: 1px solid #ccc; }
.edit .delete { margin-left: auto; background: none; border: 1px solid var(--warn); color: var(--warn); }
/* a viewer's card is just the picture, its name and the description: one column, and more
   of them across the screen */
.items.plainlist { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 0 1.5rem; }
.item.plain { grid-template-columns: 1fr; grid-template-areas: "fig" "desc"; }
/* under a ticked box: the guest whose hand it was, "(Fanny)" — the tick itself is the inviter's */
.hand { font-size: .8em; color: var(--muted); }
/* one's own brackets ARE the control: they open the field that names the proches. A button, so
   ⚠ every global button rule above (block, full width, accent background) has to be undone. */
button.hand { display: inline; width: auto; margin: 0; padding: 0; border: 0; background: none; text-align: center;
              font: inherit; font-size: .8em; color: var(--muted); cursor: pointer; text-decoration: underline dotted;
              text-underline-offset: .15em; overflow-wrap: anywhere; }
button.hand:hover { color: var(--accent); }
/* the row that field lives in, across the card, like the editors' reservation row */
.item .forrow { grid-area: for; display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: center; padding: .3rem 0; font-size: .9em; }
.item .forrow[hidden] { display: none; }
.item .forrow label { margin: 0; display: flex; flex: 1 1 18rem; align-items: center; gap: .4rem; }
.item .forrow input { flex: 1 1 12rem; width: auto; font: inherit; margin: 0; padding: .25rem .4rem; border: 1px solid #ccc; border-radius: .3rem; }
.item .forrow .formsg { color: var(--warn); }
@media (max-width: 30rem) { .item { grid-template-columns: 9rem 5.5rem 1fr; gap: .4rem .6rem; } }

/* manifest and log */
.scroll { overflow-x: auto; }
/* the first column: the pages' own box, ticked when anybody has the object — read-only here */
.manifest td.box { padding-right: 0; cursor: help; }
.manifest .ticked { display: block; width: 1.6rem; height: 1.6rem; margin: 0; accent-color: var(--accent); pointer-events: none; }
/* the head count per person, on top: "Bob 7 (Fanny 2)" */
.counts { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: -.4rem 0 1rem; }
.counts a { text-decoration: none; color: inherit; }
.counts .who { font-weight: 600; }
.counts b { color: var(--accent); font-size: 1.1em; }
/* by person: one object per line under its person; a guest's part is indented under their inviter */
.manifest tr.sub th { padding-left: 2rem; font-weight: normal; color: var(--muted); }
.manifest tr.sub td { color: var(--muted); }
.bypers tr.obj td:first-child { padding-left: 2rem; white-space: normal; width: auto; }
.bypers tr.obj.sub td:first-child { padding-left: 3.6rem; }
.bypers tbody { break-inside: avoid; }
table { border-collapse: collapse; width: 100%; background: var(--card); }
td, th { padding: .4rem .6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.manifest img { width: 3.5rem; height: 3.5rem; object-fit: cover; border-radius: .25rem; display: block; }
.manifest tr.many td:last-child, .summary .many { color: var(--warn); font-weight: 600; }
.manifest tr.none td:last-child, .summary .none { color: var(--muted); }
.manifest th, .manifest td:first-child { white-space: nowrap; width: 1%; }
.manifest .num { text-align: right; white-space: nowrap; width: 1%; font-variant-numeric: tabular-nums; }
.log td { white-space: nowrap; }
.log td:last-child { width: 100%; white-space: normal; }
.log .when { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.log tr.w-check td:nth-child(3) { color: var(--accent); }
.log tr.w-uncheck td:nth-child(3), .log tr.w-login-failed td:nth-child(3) { color: var(--warn); }
.log tr.w-refused td { background: #fff1d6; }
.log tr.w-refused td:nth-child(3) { color: var(--warn); font-weight: 600; }
/* a removal is LOUD: the whole row, not a word in it */
.log tr.w-delete td { background: #fbe3dc; color: var(--warn); font-weight: 600; }
.filters { display: flex; gap: .3rem; }
button.inline { display: inline-block; width: auto; margin: 0 0 0 .5rem; padding: .25rem .7rem; font: inherit; border-radius: .4rem; cursor: pointer; }
.manifest form { display: inline; }

/* joint expenses */
.balance .plus { color: var(--accent); font-weight: 600; }
.balance .minus { color: var(--warn); font-weight: 600; }
.expenses tr.waiting td { background: #fff1d6; }
.expenses .when { white-space: nowrap; color: var(--muted); }
.expenses select, .expenses button.small { width: auto; display: inline-block; margin: 0; padding: .2rem .4rem; font: inherit; }
.expenses button.delete { background: none; color: var(--warn); border: 1px solid var(--warn); }
.log tr.w-expense td:nth-child(3) { color: var(--accent); }
/* approvals and edits of an amount, in blue */
.log tr.w-expense-approve td, .log tr.w-expense-edit td { color: #1f5fbf; }
.log tr.w-expense-approve td:nth-child(3) { font-weight: 600; }
.log tr.w-expense-delete td { background: #fbe3dc; color: var(--warn); font-weight: 600; }
/* sales, coloured like the expenses: recorded green, corrected blue, removed red */
.log tr.w-sale td:nth-child(3) { color: var(--accent); font-weight: 600; }
.log tr.w-sale-edit td { color: #1f5fbf; }
.log tr.w-sale-delete td { background: #fbe3dc; color: var(--warn); font-weight: 600; }
.card.link { max-width: 36rem; margin: 1rem 0; }
.card.link button { width: auto; display: inline-block; }
.expenses input.billdate { width: auto; padding: .15rem .25rem; font: inherit; border: 1px solid #ccc; border-radius: .3rem; }
.small { font-size: .8em; }
.expenses button.keep { background: none; color: var(--accent); border: 1px solid var(--accent); }
.estimate input.locked { background: #f3f1ec; color: #444; }
.expenses button.approve, .expenses button.unlock { width: auto; display: inline-block; margin: .25rem 0 0 .25rem; padding: .15rem .45rem; font-size: .85em; }
.expenses button.unlock { background: none; color: #1f5fbf; border: 1px solid #1f5fbf; }
.notice { background: #e8f0fb; border-left: 3px solid #1f5fbf; padding: .5rem .7rem; }

/* the home page: a readable column; the editor puts the text beside what it will look like */
.home { max-width: 48rem; }
.home img { display: block; max-width: 100%; height: auto; margin: .6rem 0; border-radius: .3rem; }
.home h1 { margin-top: .5rem; }
.home table { border-collapse: collapse; }
.home th, .home td { border: 1px solid var(--line); padding: .3rem .6rem; }
/* a quote is for the family and their guests (viewers never receive it): marked so, for those who see it */
.home blockquote { margin: .8rem 0; padding: .1rem 1rem; border-left: 3px solid var(--accent); background: #f1f6f4; border-radius: 0 .3rem .3rem 0; }
.home blockquote::before { content: "Famille et invités"; display: block; margin-top: .4rem; font-size: .75em; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.home blockquote blockquote::before { content: none; }
.home-editor .home-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .6rem; }
.home-editor button { width: auto; margin: 0; padding: .4rem .9rem; border-radius: .4rem; }
.home-editor .cancel, .home-editor .attach { background: none; color: var(--ink); border: 1px solid #ccc; }
.home-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.home-split textarea { width: 100%; min-height: 70vh; font: .9rem/1.5 ui-monospace, Menlo, Consolas, monospace; padding: .6rem;
                       border: 1px solid var(--accent); border-radius: .4rem; resize: vertical; }
.home-split textarea.drop { outline: 3px dashed var(--accent); outline-offset: 2px; }
.home-preview { max-width: none; min-height: 70vh; padding: 0 1rem; background: var(--card); border: 1px solid var(--line); border-radius: .4rem; overflow: auto; }
@media (max-width: 50rem) { .home-split { grid-template-columns: 1fr; } .home-split textarea, .home-preview { min-height: 40vh; } }

/* sales: a sold object is marked everywhere it is listed, and its box is locked */
.soldtag { display: inline-block; padding: 0 .4rem; border-radius: .3rem; background: var(--ink); color: #fff; font-size: .75em; font-weight: 600;
           letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.item.sold img, .manifest tr.sold img { opacity: .55; }
.item.sold figcaption .soldtag { margin-top: .2rem; }
.manifest tr.sold td { color: var(--muted); }
.sale-common label { display: inline-block; margin: 0 1rem .4rem 0; }
.sale-common input, .sale-common select { font: inherit; padding: .25rem .4rem; border: 1px solid #ccc; border-radius: .3rem; }
.sale-free { width: 100%; max-width: 48rem; margin-bottom: 1rem; background: var(--card); }
.sale-free .free-name { width: 100%; min-width: 14rem; font: inherit; padding: .35rem .5rem; border: 1px solid var(--accent); border-radius: .3rem; }
.sale-items input.pick { display: block; width: 1.6rem; height: 1.6rem; margin: 0; accent-color: var(--accent); cursor: pointer; }
button.small { width: auto; margin: 0; padding: .3rem .7rem; font: inherit; border-radius: .4rem; }
.sales button.delete { background: none; color: var(--warn); border: 1px solid var(--warn); }
.sales select.holder-edit { font: inherit; padding: .2rem .3rem; }
.sales button.unlock { margin-left: .25rem; padding: .15rem .45rem; font-size: .85em; background: none; color: #1f5fbf; border: 1px solid #1f5fbf; }
.sale-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center;
            padding: .6rem 1rem; background: var(--card); border-top: 2px solid var(--accent); box-shadow: 0 -2px 8px rgba(0,0,0,.08); }
.sale-bar .picked { font-weight: 600; }
.sale-bar .group-name { flex: 1 1 14rem; font: inherit; padding: .35rem .5rem; border: 1px solid #ccc; border-radius: .3rem; }
/* ⚠ [hidden] needs saying: display:flex above would otherwise keep the bar on screen at « 0 objet coché » */
.sale-bar[hidden] { display: none; }
.balance .sales-col { background: #f1f6f4; }

/* réservations: an object PROMISED to someone outside — a claim, not a sale, so it is marked in the
   warn colour and, unlike a sold one, its box stays free: the family may still want it. */
.restag { display: inline-block; padding: 0 .4rem; border-radius: .3rem; background: var(--warn); color: #fff; font-size: .75em; font-weight: 600;
          letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.item.reserved figcaption .restag { margin-top: .2rem; }
.hiddentag { display: block; font-size: .8em; color: var(--muted); font-style: italic; margin-top: .2rem; }
button.dohide { display: block; margin-top: .25rem; }
button.dohide.on { font-style: italic; }
.access-grid td, .access-grid th { text-align: center; }
.access-grid input[type=checkbox], .members input[type=checkbox] { display: inline-block; width: auto; margin: 0; padding: 0; }
.members { display: inline-flex; flex-wrap: wrap; gap: .3rem 1.1rem; vertical-align: middle; }
.members label { display: inline-flex; align-items: center; gap: .35rem; margin: 0; white-space: nowrap; }
.access-grid th:first-child { text-align: left; }
.manifest-filter { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; margin: .4rem 0 1rem; }
.manifest tr.reserved td.box { box-shadow: inset 3px 0 0 var(--warn); }
/* on Ventes: the row's two fields, opened by « Réserver… », and the list of promises below */
.reserve .resform { display: inline-flex; flex-wrap: wrap; gap: .3rem; align-items: center; margin-left: .3rem; }
.reserve .resform[hidden] { display: none; }
.reserve .res-for { width: 9rem; font: inherit; padding: .2rem .3rem; border: 1px solid #ccc; border-radius: .3rem; }
.reservations button.lift { background: none; color: var(--warn); border: 1px solid var(--warn); }
/* the journal: a promise in the warn colour, lifting it muted, a price on a claim in blue */
.log tr.w-reserve td:nth-child(3) { color: var(--warn); font-weight: 600; }
.log tr.w-unreserve td { color: var(--muted); }
.log tr.w-claim-price td:nth-child(3) { color: #1f5fbf; }
/* under the name, the whole story: what a promise is promised for, what a sale went for */
.tagdetail { display: block; margin-top: .15rem; font-size: .85em; color: var(--muted); }
a.tagdetail { color: var(--muted); }
.item.reserved .tagdetail { color: var(--warn); }
/* the card's own row for promising it, opened by « Réserver… » — Ventes' two fields, here */
.item .resrow { grid-area: res; display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: center; padding: .3rem 0; font-size: .9em; }
.item .resrow[hidden] { display: none; }
.item .resrow label { margin: 0; display: inline-flex; align-items: center; gap: .3rem; }
.item .resrow input { font: inherit; padding: .2rem .35rem; border: 1px solid #ccc; border-radius: .3rem; background: #fff; }
.item .resrow .res-for { width: 10rem; }
.item .resrow .res-amount { width: 4.5rem; text-align: right; }
.item .resrow button.res-off { background: none; color: var(--warn); border: 1px solid var(--warn); }
.item .resrow .resmsg { color: var(--warn); }
.item figcaption button.doreserve { margin-top: .25rem; }
/* a vendeur's card: the price guide */
.item figcaption .price { display: block; font-weight: 600; margin-top: .2rem; }

/* the admin page: small forms inside table cells, on one line */
form.inline { display: inline; margin: 0; }
table.admin input.shares { width: 3.5rem; }
table.admin input.letter-in, .card input.letter-in { display: inline-block; width: 2.6rem; text-align: center; margin: 0; padding: .3rem; }
table.pages-admin input[name=title] { margin: 0; padding: .3rem .4rem; min-width: 10rem; }
table.pages-admin textarea { width: 100%; min-width: 14rem; font: inherit; padding: .3rem .4rem; }
table.admin input.email-in { display: inline-block; width: 15rem; margin: 0; padding: .3rem .4rem; }
.ok { color: var(--accent); }

/* the photo taken at a sale (« ! 45 » in Telegram), beside the sale on Ventes */
img.salephoto { width: 5rem; height: auto; margin-top: .3rem; border-radius: .3rem; }

/* « À qui » — whose an object, a bill or a sale is; the picker opens the family's boxes */
.owners { display: block; font-size: .85em; color: var(--warn); margin-top: .2rem; }
.owners-pick { display: inline-block; font-size: .85em; margin-top: .2rem; }
.owners-pick summary { cursor: pointer; color: var(--warn); }
.owners-pick .owners-boxes { display: flex; flex-wrap: wrap; gap: .2rem .7rem; align-items: center; margin-top: .25rem; }
.owners-pick label { white-space: nowrap; }
.item figcaption .owners-pick { display: block; }
/* a card being edited takes the whole row: a long name, and « @arthur @adele » after it, fit */
.items .item.editing { grid-column: 1 / -1; }

/* « Ça m'intéresse » — the visitor's toggle, the family's line, the anonymous reader's link */
.item figcaption button.interest { display: block; margin-top: .35rem; background: none; color: var(--accent); border: 1px solid var(--accent); }
.item figcaption button.interest.on { background: var(--accent); color: #fff; }
.item figcaption .interest-ask { display: inline-block; margin-top: .35rem; }
.item figcaption .visitors { display: block; font-size: .85em; color: var(--accent); margin-top: .2rem; }

/* « Merci » — the sales are closed (Ben, 16-Oct-2026): a medley of polaroids, slightly askew,
 * around the thank-you card. Each tilt and offset comes from the page (--r, --x, --y). */
.merci { display: grid; grid-template-columns: repeat(8, 1fr); grid-auto-rows: 8.5rem; grid-auto-flow: dense;
         gap: .5rem; padding: 1.5rem .5rem 1rem; }
.merci .snap { display: flex; margin: 0; padding: .4rem .4rem 1.3rem; background: #fff; border-radius: 2px;
               box-shadow: 0 1px 3px rgba(0,0,0,.2), 0 8px 22px rgba(0,0,0,.09);
               transform: translate(var(--x), var(--y)) rotate(var(--r)); transition: transform .35s ease, box-shadow .35s ease; }
.merci .snap img { flex: 1; width: 100%; min-height: 0; object-fit: cover; background: var(--line); }
.merci .snap.big { grid-column: span 2; grid-row: span 2; }
.merci .snap:hover { transform: rotate(0) scale(1.05); box-shadow: 0 4px 10px rgba(0,0,0,.25), 0 18px 40px rgba(0,0,0,.15); position: relative; z-index: 1; }
.merci .note { grid-column: 3 / 7; grid-row: 2 / 5; align-self: center; z-index: 2; margin: 0 .5rem; padding: 2rem 2.6rem;
               text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: .8rem;
               box-shadow: 0 12px 44px rgba(0,0,0,.16); }
.merci .note h1 { margin: 0 0 .2rem; font: italic 600 2.6rem/1.1 Georgia, "Times New Roman", serif; color: var(--accent); }
.merci .note .house { margin: 0 0 1rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; color: var(--muted); }
.merci .note .ventes-closes { font-weight: 600; }
.merci .note .tally { margin-bottom: 0; padding-top: .8rem; border-top: 1px solid var(--line); color: var(--accent); font-weight: 600; }
.merci-foot { text-align: right; font-size: .9em; padding: 0 .5rem 1rem; }
.merci-preview { text-align: center; }
@media (max-width: 60rem) {
    .merci { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 7.5rem; }
    .merci .note { grid-column: 1 / -1; grid-row: 2 / 5; margin: 0; padding: 1.5rem 1.2rem; }
}
@media (max-width: 30rem) {
    .merci { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 6.5rem; }
}
@media (prefers-reduced-motion: reduce) { .merci .snap { transition: none; } }
/* Admin « Ventes closes »: the pictures to tick for Merci */
.merci-form label.check { display: flex; gap: .5rem; align-items: center; margin: .5rem 0; }
.merci-form input[type=checkbox] { display: inline-block; width: auto; margin: 0; }
.merci-form .merci-text { display: block; width: 100%; max-width: 40rem; font: inherit; padding: .5rem; margin-top: .25rem; border: 1px solid #ccc; border-radius: .4rem; }
.merci-pick summary { cursor: pointer; margin: .6rem 0; }
.merci-pick .tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: .4rem; margin-bottom: .8rem; }
.merci-pick .tile { position: relative; margin: 0; cursor: pointer; border-radius: .3rem; overflow: hidden; outline: 1px solid var(--line); }
.merci-pick .tile img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; opacity: .45; }
.merci-pick .tile input { position: absolute; top: .3rem; left: .3rem; }
.merci-pick .tile:has(input:checked) { outline: 3px solid var(--accent); }
.merci-pick .tile:has(input:checked) img { opacity: 1; }
.merci-pick .tile span { position: absolute; right: 0; bottom: 0; padding: 0 .3rem; font-size: .7rem; background: rgba(255,255,255,.85); }
.merci-pick .tile.kept span { color: var(--warn); }
/* Admin: each section folds, folded at first (Ben, 16-Oct-2026) */
details.fold { border-bottom: 1px solid var(--line); scroll-margin-top: 4rem; }
details.fold > summary { list-style: none; cursor: pointer; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary h2 { display: inline-block; margin: 1rem 0; }
details.fold > summary h2::before { content: "▸"; display: inline-block; width: 1.2em; color: var(--accent); transition: transform .15s; }
details.fold[open] > summary h2::before { transform: rotate(90deg); }
details.fold[open] { padding-bottom: 1rem; }

/* printed: no bar, no filter, the links as text, « Par personne » on pages of its own */
@media print {
  body { background: #fff; }
  .bar, .manifest-filter, .hint, .manifest td.box { display: none; }
  .scroll { overflow: visible; }
  a { color: inherit; text-decoration: none; }
  thead { display: table-header-group; }
  h2#personne { break-before: page; }
  .bypers tr.who { break-after: avoid; }
}
