/* =====================================================================
   3C - Cars, Cuir's & Coffee by AWS - Feuille de style unique (site et administration)
   Charte AWS44 : fond ardoise #333C45 / #252B33, cuivre #A55F46 / #B87258, dore #B87D1B,
   titres d'affiche Bebas Neue + « by AWS » en Caveat, intertitres Poppins, texte Inter. Telephone d'abord.
   Aucun style en ligne dans les pages (CSP style-src 'self').
   ===================================================================== */

:root {
    color-scheme: dark;
    --accent: #A55F46;
    --accent-hover: #B87258;
    --accent-text: #E0A58E;
    --accent-soft: rgba(165, 95, 70, .18);
    --gold: #B87D1B;
    --gold-text: #E3B04B;
    --cream: #F4EEE6;
    --ink: #FFFFFF;
    --text: #E6EAEE;
    --muted: #B3BDC8;
    --line: rgba(255, 255, 255, .12);
    --line-strong: rgba(255, 255, 255, .24);
    --bg: #333C45;
    --bg-2: #2E363F;
    --surface: #3A444F;
    --surface-2: #434E5A;
    --field: #2A3139;
    --night: #252B33;
    --night-2: #1E242B;
    --ok: #6EE7A0; --ok-bg: rgba(34, 197, 94, .12); --ok-line: rgba(110, 231, 160, .35);
    --ko: #FCA5A5; --ko-bg: rgba(239, 68, 68, .13); --ko-line: rgba(252, 165, 165, .4);
    --warn: #F3C77A; --warn-bg: rgba(184, 125, 27, .16); --warn-line: rgba(243, 199, 122, .4);
    --radius: 14px;
    --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 10px 26px rgba(0, 0, 0, .22);
    --font-display: 'Bebas Neue', 'Oswald', Impact, sans-serif;
    --font-script: 'Caveat', 'Segoe Script', cursive;
    --font-title: 'Poppins', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.55 var(--font-body); color: var(--text); background: var(--bg);
    -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3 { color: var(--ink); font-family: var(--font-title); font-weight: 600; line-height: 1.25; margin: 0 0 .4em; }
h1 { font-size: 1.55rem; }
h2 { font-size: 1.15rem; color: var(--accent-text); }
h3 { font-size: 1.02rem; color: var(--accent-text); }
a { color: var(--accent-text); }
a:hover { color: #F0BFA9; }
img { max-width: 100%; }
p { margin: 0 0 .7em; }
code { background: var(--field); color: var(--text); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; font-size: .85em; word-break: break-all; }
.muted { color: var(--muted); }
.center { text-align: center; }
.error { color: var(--ko); font-weight: 600; }
.ok { color: var(--ok); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 700; color: var(--gold-text); margin: 0 0 6px; }
.small-title { font-weight: 700; color: var(--ink); font-size: .9rem; margin: 18px 0 8px; }
.mt { margin-top: 14px; }
.mb { margin-bottom: 14px; }

/* ---------- Barre du haut ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 8px 16px; background: rgba(20, 24, 29, .92); color: #fff; border-bottom: 3px solid var(--accent); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--font-title);
    font-weight: 600; font-size: 1rem; text-transform: uppercase; letter-spacing: .03em; min-width: 0; }
.brand:hover { color: #fff; }
.brand img { border-radius: 8px; flex-shrink: 0; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toplink, .linkbtn { color: rgba(255, 255, 255, .88); font: inherit; font-size: .9rem; background: none; border: 0; text-decoration: none; cursor: pointer; padding: 6px 0;
    border-bottom: 2px solid transparent; }
.toplink:hover, .linkbtn:hover { color: var(--accent-hover); border-bottom-color: var(--accent); }
.topbar form { margin: 0; }
.top-cta { flex-shrink: 0; }
.top-right { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 16px; min-width: 0; }
@media (max-width: 560px) {
    .brand span { font-size: .85rem; }
    .top-right { gap: 0 10px; max-width: 60%; }
    .top-right .toplink, .top-right .linkbtn { font-size: .8rem; padding: 2px 0; text-align: right; }
}

/* ---------- Mise en page ---------- */
main { flex: 1; width: 100%; }
.narrow { max-width: 680px; margin: 0 auto; padding: 24px 16px 48px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 16px; }
.foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding: 18px 16px 24px; font-size: .85rem; color: var(--muted);
    background: var(--night); border-top: 1px solid var(--line); }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--accent-hover); }
.foot-discreet { opacity: .6; }

/* ---------- Accueil (inspire de l'affiche) ---------- */
.landing { max-width: 1120px; margin: 0 auto; padding: 0 16px 40px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 40px 0 28px; }
.display { font-family: var(--font-display); font-weight: 400; font-size: clamp(3.4rem, 9vw, 6.4rem); line-height: .9; letter-spacing: .01em;
    text-transform: uppercase; color: var(--ink); margin: 6px 0 14px; }
.display-line { display: block; }
.display-line.accent { color: var(--accent-hover); }
.display-script { display: block; font-family: var(--font-script); font-weight: 700; text-transform: none; font-size: .5em; line-height: 1;
    color: var(--ink); margin: .1em 0 0 1.6em; transform: rotate(-4deg); transform-origin: left; }
.display-script::after { content: ""; display: block; width: 3.2em; height: 3px; margin: .12em 0 0 .8em; background: var(--accent); border-radius: 3px; transform: rotate(-3deg); }
.hero-tagline { font-family: var(--font-title); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; font-size: .98rem; color: var(--accent-text); margin: 0 0 12px; }
.lead { font-size: 1.08rem; color: var(--text); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-visual { position: relative; border-radius: 22px; overflow: hidden; min-height: 360px; background: radial-gradient(circle at 30% 20%, #4A3A33, var(--night-2) 70%);
    box-shadow: var(--shadow); display: grid; place-items: center; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-logo { width: 180px; height: 180px; border-radius: 26px; box-shadow: var(--shadow); }
.price-badge { position: absolute; top: 16px; right: 16px; width: 168px; height: 168px; border-radius: 50%; background: var(--accent); color: #fff;
    display: grid; align-content: center; justify-items: center; text-align: center; padding: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    border: 3px solid rgba(255, 255, 255, .25); }
.price-badge b { font-family: var(--font-display); font-weight: 400; font-size: 2.7rem; line-height: 1; }
.price-badge span { font-family: var(--font-title); font-weight: 700; text-transform: uppercase; font-size: .72rem; letter-spacing: .03em; }
.price-badge small { font-size: .64rem; line-height: 1.25; margin-top: 4px; opacity: .92; }

.section-title { font-family: var(--font-title); font-size: clamp(1.15rem, 3vw, 1.45rem); text-transform: uppercase; letter-spacing: .03em; color: var(--ink);
    text-align: center; margin: 0 0 16px; }
.section-title .hl { color: var(--accent-hover); }
.sessions, .block { margin: 26px 0; }
.session-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.session-card { display: flex; gap: 16px; align-items: flex-start; background: var(--night); border: 1px solid var(--line); border-left: 5px solid var(--accent);
    border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.session-none { display: block; text-align: center; }
.session-cal { flex-shrink: 0; width: 76px; border-radius: 12px; overflow: hidden; text-align: center; background: var(--cream); color: var(--night); display: grid; }
.session-cal span:first-child { background: var(--accent); color: #fff; font-weight: 700; font-size: .78rem; text-transform: uppercase; padding: 3px 0; }
.session-cal b { font-family: var(--font-display); font-weight: 400; font-size: 2.4rem; line-height: 1.05; }
.session-cal span:last-child { font-size: .78rem; font-weight: 700; text-transform: uppercase; padding-bottom: 4px; }
.session-body p { margin: 0 0 4px; }
.session-date { font-family: var(--font-display); font-size: 1.8rem; line-height: 1.05; color: var(--accent-hover); text-transform: uppercase; letter-spacing: .02em; }
.session-hours { font-weight: 600; color: var(--ink); }
.session-note { color: var(--gold-text); font-size: .92rem; }
.session-prices { font-size: .9rem; color: var(--muted); }
.session-prices b { color: var(--ink); }
.seats { margin-top: 8px !important; display: inline-flex; flex-direction: column; padding: 6px 12px; border-radius: 10px; background: var(--ok-bg); color: var(--ok);
    border: 1px solid var(--ok-line); font-weight: 700; font-size: .92rem; }
.seats small { font-weight: 400; color: var(--muted); font-size: .78rem; }
.seats-low { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.seats-full { background: var(--ko-bg); color: var(--ko); border-color: var(--ko-line); }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tiles-1 { grid-template-columns: 1fr; } .tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px; display: grid; gap: 6px; justify-items: center;
    align-content: start; text-align: center; }
.tile-icon { width: 58px; height: 58px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 4px;
    box-shadow: 0 0 0 5px var(--accent-soft); }
.tile b { color: var(--ink); font-family: var(--font-title); font-weight: 600; text-transform: uppercase; font-size: .9rem; letter-spacing: .02em; }
.tile small { color: var(--muted); font-size: .86rem; }
.tiles-kit .tile-icon { background: var(--cream); box-shadow: 0 0 0 5px rgba(244, 238, 230, .12); }
.perks { background: var(--night-2); border: 1px solid var(--line); border-radius: 18px; padding: 22px 18px; }
.perks .section-title { color: var(--ink); }
.perk-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.perk { display: flex; gap: 12px; align-items: center; padding: 10px; border-left: 2px solid var(--line); }
.perk-icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--accent-hover); color: var(--accent-hover); display: grid; place-items: center;
    font-size: 1.25rem; font-weight: 800; }
.perk b { display: block; color: var(--ink); text-transform: uppercase; font-size: .86rem; letter-spacing: .02em; }
.perk small { color: var(--accent-text); font-size: .9rem; }
.perk-seats { border: 1px dashed var(--accent-hover); border-radius: 12px; }

.signup { max-width: 820px; margin: 30px auto; scroll-margin-top: 80px; border-top: 4px solid var(--accent); }
.chosen-session { background: var(--night); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { align-items: flex-start; }
.consent input { margin-top: 4px; }
.contact-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 24px 0 0; padding: 18px; background: var(--night);
    border-radius: var(--radius); border: 1px solid var(--line); }
.contact-item { display: flex; gap: 12px; align-items: flex-start; }
.contact-item > span { font-size: 1.5rem; line-height: 1; }
.contact-item p { margin: 0; }
.contact-item small { color: var(--muted); text-transform: uppercase; font-weight: 700; letter-spacing: .04em; font-size: .74rem; }
.thanks-icon { font-size: 3rem; margin: 0; }

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; padding-top: 24px; }
    .hero-visual { min-height: 260px; order: -1; }
    .tiles, .tiles-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .price-badge { width: 132px; height: 132px; top: 10px; right: 10px; padding: 10px; }
    .price-badge b { font-size: 2.1rem; }
    .price-badge small { display: none; }
    .tiles, .tiles-2, .tiles-3 { grid-template-columns: 1fr; }
    .session-card { padding: 14px; gap: 12px; }
    .session-cal { width: 62px; }
    .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Texte enrichi ---------- */
.prose p { white-space: normal; }
.rich p { margin: 0 0 12px; }
.rich a { color: var(--accent-text); text-decoration: underline; overflow-wrap: anywhere; }
.rich strong { color: #fff; }
.rich mark, .rich-toolbar mark { background: var(--gold); color: #fff; padding: 0 .25em; border-radius: 3px; }
.rich-img { display: block; max-width: 100%; height: auto; margin: 10px auto; border-radius: 10px; border: 1px solid var(--line); }
.rich-toolbar { display: flex; flex-wrap: wrap; gap: 6px; }
.rich-toolbar .btn { min-height: 40px; padding: 6px 12px; font-size: .88rem; }
.rich-status { margin: 0; font-size: .85rem; }
@media (max-width: 420px) { .rich-toolbar { display: grid; grid-template-columns: 1fr 1fr; } }

/* ---------- Boutons et formulaires ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: .66em 1.1em; border-radius: 10px; border: 1px solid transparent;
    font-family: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2; cursor: pointer; text-decoration: none; text-align: center;
    transition: background-color .2s, border-color .2s, color .2s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); border-color: var(--accent-hover); color: #fff; }
.btn-danger { background: var(--ko-bg); color: var(--ko); border-color: var(--ko-line); }
.btn-danger:hover { background: rgba(239, 68, 68, .22); color: #fff; }
.btn-sm { padding: .42em .8em; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-big { padding: .95em 1.3em; font-size: 1.05rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.field > span { font-weight: 600; font-size: .85rem; color: var(--ink); }
.field small { color: var(--muted); font-size: .8rem; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], input[type=date], input[type=time], input[type=url], select, textarea {
    width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--field); border: 1px solid var(--line-strong); border-radius: 9px; padding: .6em .75em; }
input[type=file] { max-width: 100%; color: var(--text); }
input::placeholder, textarea::placeholder { color: #8B96A3; }
select option { background: var(--night); color: var(--ink); }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-hover); outline-offset: 0; border-color: var(--accent-hover); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; }
.check { display: flex; align-items: center; gap: 8px; font-size: .92rem; margin: 8px 0 0; }
.form-card { display: grid; gap: 4px; }
.form-card h1 { margin-bottom: 0; }
.type-block { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 2px; margin: 4px 0 12px; min-width: 0; }
.type-block legend { padding: 0 6px; font-weight: 700; font-size: .85rem; color: var(--gold-text); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }

.flash { border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: .93rem; background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-line); }
.flash-error { background: var(--ko-bg); color: var(--ko); border-color: var(--ko-line); }
.notice { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.notice strong { font-size: 1.15rem; letter-spacing: .08em; }
.notice a { color: var(--warn); }

/* ---------- Statuts ---------- */
.badge { --b: #A9B4C0; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600;
    white-space: nowrap; color: var(--b); background: color-mix(in srgb, var(--b) 15%, transparent); border: 1px solid color-mix(in srgb, var(--b) 45%, transparent); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--b); }
.st-pending { --b: #E3B04B; } .st-confirmed { --b: #6EE7A0; } .st-waitlist { --b: #7DB3F5; } .st-refused { --b: #A9B4C0; } .st-cancelled { --b: #FCA5A5; }
.st-draft { --b: #A9B4C0; } .st-open { --b: #6EE7A0; } .st-closed { --b: #E3B04B; } .st-done { --b: #7DB3F5; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .74rem; font-weight: 600; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }
.tag-gold { border-color: var(--gold); color: var(--gold-text); background: var(--gold-soft, rgba(184, 125, 27, .16)); }

/* ---------- Page d'une inscription ---------- */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; font-size: .93rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); word-break: break-word; }

/* ---------- Administration ---------- */
.admin-nav { display: flex; gap: 4px; flex-wrap: wrap; padding: 8px 16px; background: var(--night); border-bottom: 1px solid var(--line); }
.admin-nav a { color: rgba(255, 255, 255, .78); text-decoration: none; padding: 7px 12px; border-radius: 8px; font-size: .86rem; font-weight: 500;
    font-family: var(--font-title); text-transform: uppercase; letter-spacing: .03em; }
.admin-nav a:hover { background: rgba(255, 255, 255, .06); color: var(--accent-hover); }
.admin-nav a.active { background: var(--accent); color: #fff; }
.admin-main { max-width: 1180px; margin: 0 auto; padding: 20px 16px 48px; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; }
.page-head h1, .page-head h2 { margin: 0; }
.page-head p { margin: 4px 0 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.toolbar input[type=search] { max-width: 300px; }
.toolbar select { width: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 5px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .85rem; }
.chip:hover { border-color: var(--accent-hover); color: #fff; }
.chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
    color: var(--text); text-decoration: none; }
a.stat:hover { border-color: var(--accent-hover); color: #fff; }
.stat b { font-family: var(--font-display); font-weight: 400; font-size: 2.4rem; line-height: 1; color: var(--accent-text); white-space: nowrap; }
.stat small { color: var(--muted); }
.stat-full b { color: var(--ok); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-text); padding: 10px 12px; background: var(--night); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr[data-href] { cursor: pointer; }
.table tr[data-href]:hover td { background: rgba(255, 255, 255, .04); }
.table a { color: var(--ink); font-weight: 600; text-decoration: none; }
.table a:hover { color: var(--accent-hover); }
.table b.ok { color: var(--ok); }
.row-past td { opacity: .7; }
.show-sm { display: none; }
.cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.actions-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions-row input.pin-input { width: auto; flex: 1 1 220px; }
.actions-row select { width: auto; max-width: 100%; }
.inline { display: inline; margin: 0; }
fieldset.card { box-shadow: none; margin: 14px 0; }
fieldset.card legend { padding: 0 6px; color: var(--gold-text); font-weight: 600; }
details > summary { cursor: pointer; }
.add-reg > summary { list-style: none; }
.add-reg > summary::-webkit-details-marker { display: none; }
.history { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; font-size: .9rem; }
.log { font-size: .85rem; }
.log .ko { color: var(--ko); }
.log .ok { color: var(--ok); }
.var-list { columns: 2; font-size: .85rem; margin: 0; padding-left: 18px; }
.link-box { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.link-box code { flex: 1 1 260px; }
.help ol { padding-left: 20px; margin: 0 0 10px; display: grid; gap: 6px; }
.notify-master { margin: 0; font-weight: 600; }

.reg-group { display: flex; align-items: center; gap: 8px; font-size: .88rem; text-transform: uppercase; letter-spacing: .04em; margin: 22px 0 10px; }
.reg-group span { background: var(--surface-2); color: var(--text); border-radius: 999px; padding: 1px 9px; font-size: .78rem; }
.reg-list { display: grid; gap: 10px; }
.reg { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--line);
    border-left: 5px solid var(--b, #A9B4C0); border-radius: 12px; }
.st-line-pending { --b: #E3B04B; } .st-line-confirmed { --b: #6EE7A0; } .st-line-waitlist { --b: #7DB3F5; } .st-line-refused { --b: #A9B4C0; } .st-line-cancelled { --b: #FCA5A5; }
.reg p { margin: 0 0 3px; }
.reg-name { font-weight: 700; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.reg-name a { color: var(--ink); text-decoration: none; font-size: 1.02rem; }
.reg-name a:hover { color: var(--accent-hover); }
.reg-meta { font-size: .88rem; color: var(--muted); overflow-wrap: anywhere; }
.reg-meta a { color: var(--text); }
.reg-msg { font-size: .88rem; font-style: italic; color: var(--text); }
.reg-actions { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; justify-content: flex-end; max-width: 330px; }
.presence { display: inline-flex; gap: 6px; }

.hero-admin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.hero-preview { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); margin: 0; }
.hero-preview-empty { display: grid; place-items: center; text-align: center; padding: 16px; background: var(--field); color: var(--muted); }

@media (max-width: 860px) {
    .cols, .grid-2, .grid-3, .hero-admin { grid-template-columns: 1fr; }
    .cols > .side-first { order: -1; }
    .var-list { columns: 1; }
    .reg { grid-template-columns: 1fr; }
    .reg-actions { justify-content: flex-start; max-width: none; }
    .table.cards thead { display: none; }
    .table.cards tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
    .table.cards td { padding: 0; border: 0; }
    .table.cards td.hide-sm { display: none; }
    .show-sm { display: inline; }
}
