/* vignett.app — styles de l'application (Réglages › Interface › Style, ou bouton Style de l'accueil).
   <html data-style="v3|une|pel|aff|ate" class="light|dark">
   v3  = Classique (orange et brun, tokens.css) — style par défaut
   une = La Une (journal) · pel = Pellicule (boîte de film) · aff = Affiche (grille suisse) · ate = Atelier (logiciel pro)
   Chaque style a une version claire et une version sombre. Seule l'allure change : mêmes boutons, mêmes raccourcis. */

/* ═══════════ Commun à tous les styles ═══════════ */

/* logo : le carré sombre reste visible sur les fonds sombres */
:root.dark .lm-mark { background: #2a241d; box-shadow: 0 0 0 1px rgba(244,237,224,.30); }
.lm-mark .l { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.lm-lockup .word { font-family: var(--display, var(--sans)); }

/* date du jour à côté du logo (affichée seulement par La Une) */
.tb-date { display: none; }
.tb-folder { display: contents; }

/* bouton Réglages + cloche rouge (données à compléter) */
.set-btn { position: relative; }
.set-bell { color: #e5484d; display: inline-flex; }
.set-btn .set-bell { position: absolute; top: -5px; right: -6px; width: 16px; height: 16px; border-radius: 50%; background: #e5484d; color: #fff; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--panel); animation: apBell 1.8s ease-in-out 2; }
.set-btn .set-bell svg { width: 10px; height: 10px; }
@keyframes apBell { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-14deg); } }
.set-group.set-todo .g-head { color: #e5484d; }
.set-group.set-todo .num { color: #e5484d; }
.set-group.set-todo .num svg { width: 12px; height: 12px; }
.set-todo-n { margin-left: 6px; font-family: var(--mono); font-size: 11px; padding: 0 6px; border-radius: 9px; background: #e5484d; color: #fff; }
.md-row .set-bell svg { width: 15px; height: 15px; }

/* accueil : bouton Style et liste des styles (taille et police fixes : l'aperçu ne la déplace pas) */
.ap-style-btn b { font-weight: 600; }
.ap-menu { position: fixed; z-index: 90; width: 310px; padding: 6px; background: var(--panel); color: var(--ink); border: 1px solid var(--border-up); border-radius: 10px; box-shadow: var(--shadow); font: 13px/1.35 system-ui, -apple-system, 'Segoe UI', sans-serif; }
.ap-menu-h { padding: 6px 10px 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ap-menu-f { padding: 8px 10px 4px; font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--border); margin-top: 4px; }
.ap-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: inherit; font: inherit; text-align: left; }
.ap-item:hover, .ap-item:focus-visible { background: var(--panel-up); outline: none; }
.ap-item.on { box-shadow: inset 3px 0 0 var(--accent); }
.ap-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.ap-t b { font-weight: 650; }
.ap-t span { font-size: 12px; color: var(--muted); }
.ap-ok { color: var(--accent); font-weight: 700; }
.ap-sw { display: inline-flex; flex: 0 0 auto; border: 1px solid rgba(128,128,128,.45); }
.ap-sw i { display: block; width: 12px; height: 26px; }

/* Réglages › Interface : cartes de style */
.ap-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ap-card { display: flex; flex-direction: column; gap: 8px; padding: 8px; border: 1px solid var(--border-up); border-radius: var(--r-ctl); background: var(--panel-up); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.ap-card:hover { border-color: var(--accent); }
.ap-card.on { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.ap-mini { position: relative; height: 66px; background: var(--a); border: 1px solid rgba(128,128,128,.4); overflow: hidden; }
.ap-mini i { position: absolute; display: block; }
.ap-mini i:nth-child(1) { left: 0; right: 0; top: 0; height: 12px; background: var(--b); opacity: .9; }
.ap-mini i:nth-child(2) { left: 8px; top: 20px; width: 46%; height: 38px; background: repeating-linear-gradient(90deg, var(--b) 0 22%, transparent 22% 27%); opacity: .35; }
.ap-mini i:nth-child(3) { right: 8px; top: 20px; width: 30%; height: 30px; border: 1px solid var(--b); opacity: .5; }
.ap-mini i:nth-child(4) { right: 8px; bottom: 7px; width: 30%; height: 7px; background: var(--c); }

/* accueil : « Première visite ? » en bas à droite */
.ap-tour-btn { position: fixed; right: 20px; bottom: 20px; z-index: 5; display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: var(--r-ctl); border: 1px solid var(--border-up); background: var(--panel-up); color: var(--ink); font: 500 13px var(--sans); box-shadow: var(--shadow); cursor: pointer; }
.ap-tour-btn .b { display: none; }
.ap-tour-btn:hover, .ap-tour-btn:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; }
.ap-tour-btn:hover .a, .ap-tour-btn:focus-visible .a { display: none; }
.ap-tour-btn:hover .b, .ap-tour-btn:focus-visible .b { display: inline; }

/* visite guidée */
.ap-tour { z-index: 95; }
.ap-tour-box { width: min(520px, 92vw); padding: 24px 26px 22px; }
.ap-tour-top { display: flex; align-items: center; gap: 12px; }
.ap-tour-n { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.ap-tour-top .ictl { margin-left: auto; }
.ap-tour-box h2 { margin: 18px 0 8px; font: 700 22px/1.2 var(--display, var(--sans)); letter-spacing: -.3px; color: var(--ink); }
.ap-tour-box p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-muted); min-height: 90px; }
.ap-tour-dots { display: flex; gap: 6px; margin: 16px 0; }
.ap-tour-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--border-up); }
.ap-tour-dots i.on { background: var(--accent); }
.ap-tour-acts { display: flex; align-items: center; gap: 8px; }

/* accueil : navigateur sans écriture directe */
.ap-browser { width: 100%; max-width: 520px; text-align: left; padding: 14px 16px; border: 1px solid var(--warn-border); border-left: 4px solid var(--warn); border-radius: var(--r-ctl); background: var(--warn-soft); }
.ap-browser-h { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; }
.ap-browser-h svg { width: 16px; height: 16px; color: var(--warn); flex: 0 0 auto; }
.welcome .ap-browser p { margin: 6px 0 12px; font-size: 13px; color: var(--ink-muted); }
.ap-browser-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-browser-acts a.btn { text-decoration: none; }

/* ═══════════ Tokens communs aux 4 styles imposés ═══════════ */
:root[data-style="une"], :root[data-style="pel"], :root[data-style="aff"] {
  --r-kbd: 0; --r-chip: 0; --r-ctl: 0; --r-soft: 0; --r-card: 0; --r-modal: 0;
}
:root[data-style="une"], :root[data-style="pel"], :root[data-style="aff"], :root[data-style="ate"] {
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --warn-soft: color-mix(in srgb, var(--warn) 12%, transparent);
  --warn-border: color-mix(in srgb, var(--warn) 40%, transparent);
  --glow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent);
}
:root[data-style].light:not([data-style="v3"]) { --shadow: 0 18px 50px -20px rgba(0,0,0,.28), 0 4px 14px -8px rgba(0,0,0,.18); --thumb-ovl: rgba(0,0,0,.04); }
:root[data-style].dark:not([data-style="v3"]) { --shadow: 0 24px 70px -24px rgba(0,0,0,.8), 0 6px 20px -10px rgba(0,0,0,.6); --thumb-ovl: rgba(0,0,0,.05); }

/* ═══════════ La Une — journal ═══════════ */
:root[data-style="une"] { --sans: 'Libre Franklin', system-ui, sans-serif; --display: 'Old Standard TT', Georgia, serif; --mono: 'Libre Franklin', system-ui, sans-serif; --serif: 'Old Standard TT', Georgia, serif; font-variant-numeric: tabular-nums; }
:root[data-style="une"].light {
  --bg: #ebe9e3; --panel: #f2f0eb; --panel-up: #f7f6f2; --panel-mute: #e2dfd7; --field: #f7f6f2;
  --ink: #141414; --ink-muted: #3b3935; --muted: #5f5d58; --faint: #9a968d;
  --border: #c9c5bb; --border-up: #141414; --rule: #141414;
  --accent: #b71c2a; --accent-ink: #ffffff; --warn: #8a5a00; --ok: #2f6b34; color-scheme: light;
}
:root[data-style="une"].dark {
  --bg: #141311; --panel: #1b1a17; --panel-up: #22211d; --panel-mute: #2a2824; --field: #100f0d;
  --ink: #ece8de; --ink-muted: #c4bfb2; --muted: #969185; --faint: #5d5951;
  --border: #34322d; --border-up: #8d887c; --rule: #ece8de;
  --accent: #e2535e; --accent-ink: #160506; --warn: #e0b13a; --ok: #7fb069; color-scheme: dark;
}
[data-style="une"] .toolbar { height: 58px; padding: 0 24px; background: var(--bg); border-bottom: 3px double var(--rule); }
[data-style="une"] .lm-lockup .word { text-transform: none; letter-spacing: 0; font-size: 25px !important; font-weight: 700; }
[data-style="une"] .tb-date { display: inline; flex: 0 0 auto; padding-left: 16px; border-left: 1px solid var(--rule); font: italic 15px/1.6 var(--serif); color: var(--ink); white-space: nowrap; }
[data-style="une"] .toolbar .sess, [data-style="une"] .toolbar .meta { font-family: var(--sans); }
[data-style="une"] .toolbar .sess b { text-transform: uppercase; letter-spacing: .04em; font-weight: 800; }
[data-style="une"] .btn, [data-style="une"] .ictl { box-shadow: none; }
[data-style="une"] .btn.primary { text-transform: uppercase; letter-spacing: .05em; font-weight: 800; box-shadow: none; }
[data-style="une"] .composer { background: var(--bg); border-bottom: 1px solid var(--rule); padding: 8px 24px; }
[data-style="une"] .legend-line { background: transparent; border: 0; padding: 4px 0; }
[data-style="une"] .legend-line .tagname { color: var(--accent); font-weight: 800; font-size: 11px; }
[data-style="une"] .chip { background: transparent; border-color: transparent; font-family: var(--serif); font-size: 15px; }
[data-style="une"] .chip:hover { border-color: var(--rule); }
[data-style="une"] .chip.on { background: var(--ink); color: var(--bg); }
[data-style="une"] .chip.compl { background: transparent; color: var(--accent); border-color: transparent; }
[data-style="une"] .chip.mono { font-family: var(--sans); font-size: 12px; letter-spacing: .05em; }
[data-style="une"] .v4-vseg { background: transparent; border: 0; padding: 0; gap: 14px; }
[data-style="une"] .v4-seg-btn { padding: 0 2px; border-radius: 0; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; font-size: 11.5px; }
[data-style="une"] .v4-seg-btn.on { background: transparent; color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); }
[data-style="une"] .gbar { border-bottom: 1px solid var(--border); }
[data-style="une"] .kw-add, [data-style="une"] .well { border: 1px solid var(--border-up); }
[data-style="une"] .well, [data-style="une"] .v4-search input { font-family: var(--serif); font-size: 15px; }
[data-style="une"] .v4-count { font: italic 15px var(--serif); }
[data-style="une"] .thumb { border-radius: 0; outline-color: transparent; }
[data-style="une"] .thumb.sel { outline: 4px solid var(--ink); outline-offset: -4px; }
[data-style="une"] .thumb.focus { outline: 4px solid var(--accent); outline-offset: -4px; box-shadow: none; }
[data-style="une"] .spanel { border-left: 1px solid var(--rule); }
[data-style="une"] .v4-tabbar { border-bottom: 1px solid var(--rule); }
[data-style="une"] .v4-tab { text-transform: uppercase; letter-spacing: .05em; font-weight: 700; border-radius: 0; }
[data-style="une"] .v4-tab.on { color: var(--ink); border-bottom: 3px solid var(--accent); }
[data-style="une"] .field-lbl { color: var(--ink); font-weight: 800; letter-spacing: .06em; }
[data-style="une"] .welcome h1, [data-style="une"] .set-detail h2 { font-family: var(--display); letter-spacing: 0; }
[data-style="une"] .welcome p { font-family: var(--serif); font-size: 16px; }
[data-style="une"] .apply-split { box-shadow: none; }

/* ═══════════ Pellicule — boîte de film ═══════════ */
:root[data-style="pel"] { --sans: 'Barlow', system-ui, sans-serif; --display: 'Anton', Impact, sans-serif; --mono: 'Barlow', system-ui, sans-serif; --cond: 'Barlow Condensed', 'Arial Narrow', sans-serif; --pel-y: #f4b400; --pel-r: #d7261e; --pel-k: #161616; }
:root[data-style="pel"].light {
  --bg: #f7f5f0; --panel: #ffffff; --panel-up: #ffffff; --panel-mute: #efece4; --field: #f7f5f0;
  --ink: #161616; --ink-muted: #3a3a38; --muted: #5c5a55; --faint: #a19e96;
  --border: #d6d2c8; --border-up: #161616;
  --accent: #d7261e; --accent-ink: #ffffff; --warn: #9a6a08; --ok: #2f7d3b; color-scheme: light;
}
:root[data-style="pel"].dark {
  --bg: #111111; --panel: #1a1a1a; --panel-up: #222222; --panel-mute: #262626; --field: #0c0c0c;
  --ink: #f3efe6; --ink-muted: #cfcabe; --muted: #9b968b; --faint: #5a5750;
  --border: #2e2e2e; --border-up: #6a6760;
  --accent: #f4b400; --accent-ink: #161616; --warn: #f4b400; --ok: #7fcf94; color-scheme: dark;
}
[data-style="pel"] .toolbar { height: 52px; padding: 0 22px; background: var(--pel-y); color: var(--pel-k); border-bottom: 6px solid var(--pel-r); box-shadow: 0 5px 0 var(--pel-k); margin-bottom: 5px; --ink: #161616; --ink-muted: #2a2a28; --muted: #3a3a38; --border: #161616; }
[data-style="pel"].dark .toolbar { background: var(--pel-k); color: var(--pel-y); border-bottom-color: var(--pel-r); box-shadow: 0 5px 0 var(--pel-y); --ink: #f4b400; --ink-muted: #f3efe6; --muted: #cfcabe; --border: #f4b400; }
[data-style="pel"] .toolbar .btn, [data-style="pel"] .toolbar .ictl, [data-style="pel"] .toolbar .cmdk { background: var(--pel-k); color: var(--pel-y); border: 0; }
[data-style="pel"].dark .toolbar .btn, [data-style="pel"].dark .toolbar .ictl, [data-style="pel"].dark .toolbar .cmdk { background: var(--pel-y); color: var(--pel-k); }
[data-style="pel"] .toolbar .btn { font: 700 14px var(--cond); text-transform: uppercase; letter-spacing: .03em; }
[data-style="pel"] .toolbar .set-btn .set-bell { box-shadow: 0 0 0 2px var(--pel-y); }
[data-style="pel"] .lm-lockup .word { font-family: var(--display); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 24px !important; }
[data-style="pel"] .toolbar .sess, [data-style="pel"] .toolbar .meta { font-family: var(--cond); font-size: 15px; font-weight: 600; color: inherit; }
[data-style="pel"] .toolbar .sess b { font-weight: 700; text-transform: uppercase; font-size: 17px; color: inherit; }
[data-style="pel"] .btn, [data-style="pel"] .ictl, [data-style="pel"] .v4-pill, [data-style="pel"] .kw-add, [data-style="pel"] .well, [data-style="pel"] .v4-vseg { border-width: 2px; box-shadow: none; }
[data-style="pel"] .btn.primary { font: 400 16px var(--display); text-transform: uppercase; letter-spacing: .03em; }
[data-style="pel"] .v4-seg-btn, [data-style="pel"] .v4-pill, [data-style="pel"] .v4-tab, [data-style="pel"] .field-lbl, [data-style="pel"] .v4-size { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 14px; }
[data-style="pel"] .v4-vseg { padding: 0; border-color: var(--border-up); }
[data-style="pel"] .v4-seg-btn { border-radius: 0; }
[data-style="pel"] .v4-seg-btn.on { background: var(--ink); color: var(--pel-y); }
[data-style="pel"].dark .v4-seg-btn.on { background: var(--pel-y); color: var(--pel-k); }
[data-style="pel"] .v4-count { font: 400 20px var(--display); }
[data-style="pel"] .composer { background: var(--bg); border-bottom: 0; }
[data-style="pel"] .legend-line { background: var(--panel); border: 2px solid var(--border-up); }
[data-style="pel"] .legend-line .tagname { color: var(--pel-r); font: 700 13px var(--cond); }
[data-style="pel"].dark .legend-line .tagname { color: var(--pel-y); }
/* la galerie est une bande de film : fond noir et perforations sur les bords */
[data-style="pel"] .gmain { --bg: #161616; --panel: #1f1f1f; --panel-up: #262626; --panel-mute: #2b2b2b; --field: #0f0f0f; --ink: #f3efe6; --ink-muted: #d4cfc4; --muted: #b3ada1; --faint: #6a675f; --border: #333; --border-up: #6a6760;
  background-color: #161616; color: var(--ink); padding-left: 22px; padding-right: 22px;
  background-image: repeating-linear-gradient(180deg, #f7f5f0 0 9px, transparent 9px 22px), repeating-linear-gradient(180deg, #f7f5f0 0 9px, transparent 9px 22px);
  background-size: 9px 100%, 9px 100%; background-position: 6px 0, calc(100% - 6px) 0; background-repeat: no-repeat; background-attachment: local; }
[data-style="pel"].dark .gmain { background-image: repeating-linear-gradient(180deg, #3a3833 0 9px, transparent 9px 22px), repeating-linear-gradient(180deg, #3a3833 0 9px, transparent 9px 22px); }
[data-style="pel"] .thumb { border-radius: 0; outline-color: transparent; }
[data-style="pel"] .thumb.sel { outline: 3px solid var(--pel-y); outline-offset: 2px; }
[data-style="pel"] .thumb.focus { outline: 3px solid var(--pel-y); outline-offset: 2px; box-shadow: 0 0 0 7px var(--pel-r); }
[data-style="pel"] .spanel { border-left: 2px solid var(--border-up); }
[data-style="pel"] .v4-tabbar { border-bottom: 2px solid var(--border-up); padding: 0 !important; gap: 0; }
[data-style="pel"] .v4-tab { border-radius: 0; border-bottom: 0; padding: 10px 4px !important; font-size: 13px; letter-spacing: .02em; }
[data-style="pel"] .v4-tab.on { background: var(--pel-y); color: var(--pel-k); }
[data-style="pel"] .welcome h1 { font: 400 34px var(--display); text-transform: uppercase; letter-spacing: .02em; }
[data-style="pel"] .apply-split { box-shadow: none; }

/* ═══════════ Affiche — grille suisse ═══════════ */
:root[data-style="aff"] { --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif; --display: 'Archivo Black', 'Arial Black', sans-serif; --mono: 'Archivo', 'Helvetica Neue', Arial, sans-serif; font-variant-numeric: tabular-nums; }
:root[data-style="aff"].light {
  --bg: #ffffff; --panel: #ffffff; --panel-up: #f2f2f2; --panel-mute: #ebebeb; --field: #f2f2f2;
  --ink: #000000; --ink-muted: #262626; --muted: #595959; --faint: #a6a6a6;
  --border: #d9d9d9; --border-up: #000000; --rule: #000000;
  --accent: #e30613; --accent-ink: #ffffff; --warn: #9a6a08; --ok: #1f7a3a; color-scheme: light;
}
:root[data-style="aff"].dark {
  --bg: #0a0a0a; --panel: #0f0f0f; --panel-up: #1a1a1a; --panel-mute: #222222; --field: #1a1a1a;
  --ink: #ffffff; --ink-muted: #dcdcdc; --muted: #a0a0a0; --faint: #555555;
  --border: #2a2a2a; --border-up: #ffffff; --rule: #ffffff;
  --accent: #ff2a36; --accent-ink: #ffffff; --warn: #f0b429; --ok: #4fbf6a; color-scheme: dark;
}
/* bandeau affiné (≈ 30 % moins haut que la maquette) : logo et nom sur une ligne, nom du reportage en gras à côté */
[data-style="aff"] .toolbar { height: auto; min-height: 76px; padding: 18px 24px; align-items: center; border-bottom: 6px solid var(--rule); background: var(--bg); }
[data-style="aff"] .toolbar.home { min-height: 64px; padding: 12px 24px; }
[data-style="aff"] .lm-lockup .word { font-weight: 700; font-size: 17px !important; letter-spacing: -.2px; }
[data-style="aff"] .toolbar .vrule { display: none; }
[data-style="aff"] .tb-folder { display: inline-flex; align-items: baseline; gap: 14px; min-width: 0; margin-left: 18px; overflow: hidden; }
[data-style="aff"] .toolbar .sess { font-family: var(--display); font-size: 30px; line-height: 1; letter-spacing: -.03em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-style="aff"] .toolbar .sess svg { display: none; }
[data-style="aff"] .toolbar .sess b { font-weight: 400; }
[data-style="aff"] .toolbar .meta { font: 500 14px var(--sans); color: var(--ink); white-space: nowrap; }
[data-style="aff"] .btn, [data-style="aff"] .ictl, [data-style="aff"] .v4-pill { box-shadow: none; }
[data-style="aff"] .toolbar .btn { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 700; }
[data-style="aff"] .toolbar .ictl { background: transparent; border-color: transparent; }
[data-style="aff"] .toolbar .ictl:hover { background: var(--panel-up); }
[data-style="aff"] .btn.primary { font-family: var(--display); font-weight: 400; }
[data-style="aff"] .composer { background: var(--bg); border-bottom: 1px solid var(--rule); padding: 10px 24px; }
[data-style="aff"] .legend-line { background: transparent; border: 0; padding: 2px 0; }
[data-style="aff"] .legend-line .tagname { color: var(--accent); font: 700 12px var(--sans); text-transform: capitalize; letter-spacing: 0; width: 110px; }
[data-style="aff"] .legend-line .sep { color: var(--accent); }
[data-style="aff"] .chip { background: transparent; border-color: transparent; font-size: 15px; }
[data-style="aff"] .chip:hover { border-color: var(--rule); }
[data-style="aff"] .chip.on { background: var(--ink); color: var(--bg); box-shadow: none; }
[data-style="aff"] .chip.compl { background: transparent; color: var(--accent); }
[data-style="aff"] .v4-vseg { padding: 0; background: transparent; border: 0; }
[data-style="aff"] .v4-seg-btn { border: 1px solid var(--rule); border-radius: 0; margin-left: -1px; color: var(--ink); font-weight: 700; }
[data-style="aff"] .v4-seg-btn.on { background: var(--ink); color: var(--bg); }
[data-style="aff"] .kw-add { border: 0; border-bottom: 2px solid var(--rule); background: transparent; }
[data-style="aff"] .well { border: 0; border-bottom: 2px solid var(--rule); background: var(--field); font-weight: 500; }
[data-style="aff"] .well:focus { border-bottom-color: var(--accent); box-shadow: none; }
[data-style="aff"] .v4-pill { border-color: transparent; background: transparent; color: var(--ink); font-weight: 600; }
[data-style="aff"] .v4-pill.on { color: var(--accent); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; background: transparent; }
[data-style="aff"] .v4-count { font: 22px var(--display); }
[data-style="aff"] .thumb { border-radius: 0; outline-color: transparent; }
[data-style="aff"] .thumb.sel { outline: 4px solid var(--accent); outline-offset: -4px; }
[data-style="aff"] .thumb.focus { outline: 4px solid var(--accent); outline-offset: 2px; box-shadow: none; }
[data-style="aff"] .spanel { border-left: 6px solid var(--rule); }
[data-style="aff"] .spanel .v4-tabbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; gap: 0; border-bottom: 1px solid var(--rule); }
[data-style="aff"] .spanel .v4-tab { text-align: left; padding: 11px 14px; font-size: 12.5px; font-weight: 700; color: var(--ink); border-radius: 0; border-bottom: 1px solid var(--rule); }
[data-style="aff"] .spanel .v4-tab:nth-child(odd) { border-right: 1px solid var(--rule); }
[data-style="aff"] .spanel .v4-tab.on { background: var(--accent); color: #ffffff; }
[data-style="aff"] .field-lbl { color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 700; font-size: 12px; }
[data-style="aff"] .welcome h1, [data-style="aff"] .set-detail h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.03em; }
[data-style="aff"] .welcome h1 { font-size: 34px; }
[data-style="aff"] .apply-split { box-shadow: none; }

/* ═══════════ Atelier — logiciel pro ═══════════ */
:root[data-style="ate"] {
  --sans: 'Noto Sans', system-ui, sans-serif; --display: 'Noto Sans', system-ui, sans-serif; --mono: 'Noto Sans Mono', ui-monospace, monospace;
  --r-kbd: 2px; --r-chip: 2px; --r-ctl: 3px; --r-soft: 3px; --r-card: 4px; --r-modal: 5px;
  --toolbar-h: 38px; --ctl: 28px; --btn-h: 30px; --btn-sm: 26px; --field-h: 32px; --field-h-simple: 38px; --chip-h: 22px;
}
:root[data-style="ate"].dark {
  --bg: #262626; --panel: #1e1e1e; --panel-up: #333333; --panel-mute: #2e2e2e; --field: #141414;
  --ink: #d9d9d9; --ink-muted: #bdbdbd; --muted: #8c8c8c; --faint: #5a5a5a;
  --border: #3a3a3a; --border-up: #4a4a4a;
  --accent: #4a90e2; --accent-ink: #ffffff; --warn: #d9a33a; --ok: #4fae6a; color-scheme: dark;
}
:root[data-style="ate"].light {
  --bg: #dcdcdc; --panel: #ececec; --panel-up: #f7f7f7; --panel-mute: #e2e2e2; --field: #ffffff;
  --ink: #1e1e1e; --ink-muted: #3d3d3d; --muted: #6b6b6b; --faint: #a8a8a8;
  --border: #c4c4c4; --border-up: #a9a9a9;
  --accent: #2f6fc0; --accent-ink: #ffffff; --warn: #9a6a08; --ok: #2f7d3b; color-scheme: light;
}
[data-style="ate"] body { font-size: 13px; }
[data-style="ate"] .toolbar { padding: 0 12px; }
[data-style="ate"] .lm-lockup { gap: 8px; }
[data-style="ate"] .lm-lockup .word { font-size: 14px !important; font-weight: 700; letter-spacing: 0; }
[data-style="ate"] .lm-lockup .lm-mark { width: 24px !important; height: 24px !important; --mark-r: 5px !important; }
[data-style="ate"] .lm-lockup .lm-mark .l { font-size: 13px !important; }
[data-style="ate"] .btn, [data-style="ate"] .ictl, [data-style="ate"] .apply-split { box-shadow: none; }
[data-style="ate"] .btn.primary { font-weight: 600; }
[data-style="ate"] .composer { padding: 6px 12px; }
[data-style="ate"] .legend-line { padding: 4px 10px; background: var(--field); font-family: var(--mono); font-size: 12px; }
[data-style="ate"] .chip { font-size: 12px; }
[data-style="ate"] .v4-vseg { padding: 0; overflow: hidden; }
[data-style="ate"] .v4-seg-btn { border-radius: 0; border-right: 1px solid var(--border-up); }
[data-style="ate"] .v4-seg-btn:last-child { border-right: 0; }
[data-style="ate"] .v4-seg-btn.on { background: color-mix(in srgb, var(--ink) 22%, var(--panel-up)); color: var(--ink); }
[data-style="ate"] .v4-pill.on, [data-style="ate"] .filter.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 22%, var(--panel)); color: var(--ink); }
[data-style="ate"] .grid { gap: 4px; }
[data-style="ate"] .thumb { border-radius: 2px; }
[data-style="ate"] .thumb.sel { outline: 2px solid var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }
[data-style="ate"] .v4-tabbar { background: var(--bg); padding: 0 !important; gap: 0; }
[data-style="ate"] .v4-tab { border-radius: 0; border-bottom: 0; border-right: 1px solid var(--border); color: var(--muted); padding: 8px 4px !important; }
[data-style="ate"] .v4-tab.on { background: var(--panel); color: var(--ink); box-shadow: inset 0 2px 0 var(--accent); }
[data-style="ate"] .field-lbl { text-transform: none; letter-spacing: 0; font-size: 12px; }

/* ── Réglages : recherche (27/10) ── */
.set-search { position: relative; margin: 0 0 12px; }
.set-search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--muted); pointer-events: none; }
.set-search input { width: 100%; box-sizing: border-box; padding: 8px 10px 8px 31px; font-size: 13px; }
.set-search input::-webkit-search-cancel-button { cursor: pointer; }
.set-group.dim > .g-head { opacity: .55; }
.set-group.dim .set-kids { display: none; }
.set-detail.searching { gap: 40px; }
.set-sr { display: flex; flex-direction: column; gap: 26px; }
.set-sr[hidden], .set-sr > [hidden], .set-sr .dir-row[hidden] { display: none !important; }
.set-sr-h { margin-bottom: -14px; }
.set-sr-h .btn { font-family: var(--mono); font-size: 11px; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); padding-left: 0; }
.set-sr-h .btn:hover { color: var(--ink); }

/* ── Diaporama : pellicule à gauche par défaut, boutons au survol (27/10) ── */
.diapo-in .fstrip-wrap { position: relative; display: flex; flex: 0 0 auto; min-width: 0; min-height: 0; background: var(--panel); z-index: 4; }
.diapo-in .fstrip-wrap .fstrip { flex: 1; min-width: 0; min-height: 0; }
.diapo-in .fstrip-wrap.vert { width: 132px; }
.diapo-in .fstrip-wrap.vert .fstrip { width: 132px; flex: 0 0 132px; padding-bottom: 46px; border: 0; }
.diapo-in .fstrip-wrap.at-left { border-right: 1px solid var(--border); }
.diapo-in .fstrip-wrap.at-right { border-left: 1px solid var(--border); }
.diapo-in .fstrip-wrap.horz .fstrip { padding-right: 74px; border: 0; }
.diapo-in .fstrip-wrap.at-top { border-bottom: 1px solid var(--border); }
.diapo-in .fstrip-wrap.at-bottom { border-top: 1px solid var(--border); }
.fstrip-ctl { position: absolute; display: flex; gap: 6px; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 6; }
.fstrip-wrap.hold .fstrip-ctl, .fstrip-wrap:hover .fstrip-ctl, .fstrip-wrap:focus-within .fstrip-ctl { opacity: 1; pointer-events: auto; }
.fstrip-wrap.vert .fstrip-ctl { left: 0; width: 132px; bottom: 0; padding: 8px 0 10px; justify-content: center; background: linear-gradient(transparent, var(--panel) 45%); }
.fstrip-wrap.at-right .fstrip-ctl { left: auto; right: 0; }
.fstrip-wrap.horz .fstrip-ctl { right: 0; top: 0; bottom: 0; padding: 0 10px 0 18px; align-items: center; background: linear-gradient(90deg, transparent, var(--panel) 35%); }
.fs-b { width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: var(--r-ctl, 6px); border: 1px solid var(--border-up, var(--border)); background: var(--panel-up, var(--panel)); color: var(--ink); cursor: pointer; font-size: 15px; line-height: 1; padding: 0; }
.fs-b:hover { border-color: var(--accent); color: var(--accent); }
.fs-b svg { width: 14px; height: 14px; }
/* réduite : fine bande ; au survol la pellicule s'ouvre par-dessus la photo */
.diapo-in .fstrip-wrap.min.vert { width: 12px; }
.diapo-in .fstrip-wrap.min.horz { height: 12px; }
.diapo-in .fstrip-wrap.min { cursor: pointer; background: repeating-linear-gradient(var(--min-dir, 180deg), var(--panel) 0 6px, var(--panel-up, var(--border)) 6px 8px); }
.diapo-in .fstrip-wrap.min.horz { --min-dir: 90deg; }
.diapo-in .fstrip-wrap.min .fstrip { position: absolute; background: var(--panel); opacity: 0; pointer-events: none; transition: opacity .15s, transform .18s; box-shadow: 0 8px 28px rgba(0,0,0,.35); }
.diapo-in .fstrip-wrap.min.at-left .fstrip { left: 0; top: 0; bottom: 0; transform: translateX(-12px); }
.diapo-in .fstrip-wrap.min.at-right .fstrip { right: 0; top: 0; bottom: 0; transform: translateX(12px); }
.diapo-in .fstrip-wrap.min.horz .fstrip { left: 0; right: 0; height: 92px; box-sizing: border-box; }
.diapo-in .fstrip-wrap.min.at-top .fstrip { top: 0; transform: translateY(-12px); }
.diapo-in .fstrip-wrap.min.at-bottom .fstrip { bottom: 0; transform: translateY(12px); }
.diapo-in .fstrip-wrap.min.hold .fstrip, .diapo-in .fstrip-wrap.min:hover .fstrip { opacity: 1; pointer-events: auto; transform: none; }
.diapo-in .fstrip-wrap.min.horz .fstrip-ctl { height: 92px; bottom: auto; }
.diapo-in .fstrip-wrap.min.at-bottom .fstrip-ctl { top: auto; bottom: 0; }
.fs-pos-pop .tmpl-pick { width: 100%; }

/* ── Répertoire : fiche de la personne, toutes ses fonctions (27/10) ── */
.dx-head, .dx-row { grid-template-columns: 1fr 1fr 1.2fr .7fr 28px 28px; }
.dx-card { position: relative; }
.dx-card.multi { color: var(--accent); }
.dx-nf { position: absolute; right: -3px; top: -3px; min-width: 13px; height: 13px; padding: 0 3px; border-radius: 7px; background: var(--accent); color: var(--on-accent, #fff); font: 600 9px/13px var(--mono); text-align: center; box-sizing: border-box; }
.dxc { display: flex; flex-direction: column; gap: 10px; }
.dxc-head { display: flex; align-items: center; gap: 10px; }
.dxc-av { flex: 0 0 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 18%, var(--panel)); color: var(--accent); font-weight: 700; font-size: 15px; letter-spacing: .5px; }
.dxc-names { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dxc .well { height: 30px; min-height: 0; padding: 0 8px; font-size: 13px; width: 100%; box-sizing: border-box; }
.dxc .well.b { font-weight: 600; }
.dxc .well.mono { color: var(--accent); }
.dxc-lbl { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-top: 4px; }
.dxc-h, .dxc-fn { display: grid; grid-template-columns: 1.1fr 1.2fr .6fr 28px; gap: 6px; align-items: center; }
.dxc-h { font-size: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: .8px; font-weight: 600; margin-bottom: -4px; }
.dxc-list { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; }
.dxc-acts { display: flex; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.dx-danger-t { color: var(--muted); }
.dx-danger-t:hover, .dx-danger-t.sure { color: #e5484d; border-color: #e5484d; }
.fs-b.on { color: var(--accent); }
.ch-sym-l { display: inline-flex; align-items: center; gap: 4px; line-height: 1; }
.ch-sym { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: 18px; min-width: 18px; padding: 0 4px; border: 1px solid var(--border); border-radius: 4px; background: var(--panel-up, var(--panel)); color: var(--ink); font-family: inherit; font-size: 12px; font-weight: 600; line-height: 16px; cursor: pointer; vertical-align: middle; }
.ch-sym:hover { border-color: var(--accent); color: var(--accent); }
.cap-set { cursor: pointer; }

/* ── Planche contact : fenêtre d'export PDF (27/10) ── */
.plx-ov { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.55); display: grid; place-items: center; padding: 24px; }
.plx { width: min(1180px, 100%); height: min(860px, 100%); display: grid; grid-template-columns: 320px 1fr; background: var(--bg, var(--panel)); color: var(--ink); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.45); }
.plx-side { padding: 18px; background: var(--panel); border-right: 1px solid var(--border); overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.plx-h { display: flex; align-items: center; justify-content: space-between; font-size: 16px; }
.plx-sub { margin: -10px 0 0; font-size: 12px; color: var(--muted); font-family: var(--mono); }
.plx-g { display: flex; flex-direction: column; gap: 6px; }
.plx-g > span:first-child { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .7px; }
.plx-g .well { height: 32px; min-height: 0; padding: 0 9px; font-size: 13px; width: 100%; box-sizing: border-box; }
.plx-seg { display: flex; flex-wrap: wrap; height: auto; }
.plx-seg button { flex: 1 1 auto; padding: 5px 8px; font-size: 12px; }
.plx-grid { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.plx-grid label { display: flex; align-items: center; gap: 6px; }
.plx-grid .well { width: 58px; }
.plx-mute { font-size: 12px; color: var(--muted); }
.plx .pl-sws { display: flex; gap: 8px; }
.plx .pl-sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--border); cursor: pointer; padding: 0; }
.plx .pl-sw.on { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.plx-acts { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.plx-acts .btn { flex: 1 1 auto; justify-content: center; }
.plx-acts .btn svg { width: 14px; height: 14px; }
.plx-prev { overflow: auto; background: color-mix(in srgb, var(--ink) 8%, var(--panel)); }
.plx-pages { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 26px; }
.plx-pw { line-height: 0; box-shadow: 0 6px 22px rgba(0,0,0,.25); width: min(560px, 100%); }
.plx-pw.land { width: min(760px, 100%); }
.plx-page { width: 100%; height: auto; display: block; }
@media (max-width: 760px) { .plx { grid-template-columns: 1fr; grid-template-rows: auto 1fr; } .plx-side { max-height: 46vh; border-right: 0; border-bottom: 1px solid var(--border); } }

/* ── Villes : une seule liste, département affiché (27/10) ── */
.ch-zone-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-soft, 8px); background: var(--panel); }
.ch-zone-k { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); }
.ch-zone-v { flex: 1; min-width: 160px; font-size: 13px; }
.combo-mine { font-style: normal; color: var(--accent); margin-right: 5px; }

/* ── Listes toutes prêtes (27/10) ── */
.lst { display: flex; flex-direction: column; gap: 10px; }
.lst-sub { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.45; }
.lst-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); }
.lst-t { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lst-t b { font-size: 13px; }
.lst-t span { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.lst-t .lst-new { color: var(--accent); font-weight: 600; }
.lst-ok { font-size: 12px; color: var(--muted); white-space: nowrap; }
.lst-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 4px; vertical-align: middle; }

/* ── Fenêtres de question (remplacent confirm / prompt du navigateur) ── */
.lm-ask { position: fixed; z-index: 3000; width: 320px; max-width: calc(100vw - 16px); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.lm-ask-t { font-size: 13px; line-height: 1.5; }
.lm-ask-l { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.lm-ask-l .well { height: 32px; min-height: 0; padding: 0 9px; font-size: 13px; font-weight: 400; color: var(--ink); }
.lm-ask-b { display: flex; justify-content: flex-end; gap: 8px; }
.cz-dt { margin-left: 6px; width: 18px; height: 18px; border: 1px solid var(--border); border-radius: 4px; background: none; color: var(--muted); cursor: pointer; font-size: 12px; line-height: 1; padding: 0; }
.cz-dt:hover { color: var(--accent); border-color: var(--accent); }
.cz-deps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 12px; padding: 2px 0 8px 24px; }
.cz-d { display: flex; align-items: center; gap: 7px; font-size: 12px; cursor: pointer; padding: 2px 0; }
/* Vérifier mes villes */
.mv { width: min(780px, 94vw); max-height: 86vh; display: flex; flex-direction: column; }
.mv .ch-zone-b { flex: 1; min-height: 0; overflow-y: auto; }
.mv .fx-head, .mv .fx-foot, .mv > p { flex: 0 0 auto; }
.mv-r { display: grid; grid-template-columns: 18px minmax(130px, 200px) 1fr auto auto; }
.mv-r.many, .mv-r.none { display: flex; }
.mv-g { padding: 6px 0 10px; border-bottom: 1px solid var(--border); }
.mv-gh { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); padding: 6px 0; }
.mv-r { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 13px; flex-wrap: wrap; }
.mv-n { min-width: 150px; }
.mv-w { color: var(--muted); font-size: 12.5px; flex: 1; }
.mv-tag { font-size: 10.5px; padding: 2px 7px; border-radius: 10px; background: var(--panel-up, var(--panel)); color: var(--muted); border: 1px solid var(--border); white-space: nowrap; }
.mv-tag.new { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.mv-tag.warn { color: #c46a00; border-color: #e3b46a; }
.mv-sel, .mv-in { height: 30px; min-height: 0; padding: 0 8px; font-size: 12.5px; }
.mv-sel { max-width: 260px; } .mv-sel.sm { max-width: 150px; } .mv-in { width: 150px; }

/* ── Listes : aperçu, sélection, face-à-face (27/10) ── */
.lx { width: min(900px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column; }
.lx-meta { font-size: 11px; color: var(--muted); margin-left: 10px; }
.lx-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 0 18px; }
.lx-tools .kw-add { flex: 0 1 260px; }
.lx-sec { height: 30px; min-height: 0; padding: 0 8px; font-size: 12.5px; max-width: 240px; }
.lx-only { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.lx-sum { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 18px 0; }
.lx-b { flex: 1; min-height: 120px; }
.lx-g { padding: 4px 0 8px; border-bottom: 1px solid var(--border); }
.lx-gh { display: flex; align-items: center; gap: 10px; padding: 8px 0 4px; font-size: 13px; cursor: pointer; }
.lx-r { display: grid; grid-template-columns: 18px minmax(140px, 1fr) minmax(0, 2.2fr) auto; align-items: center; gap: 10px; padding: 5px 0 5px 24px; font-size: 12.5px; cursor: pointer; }
.lx-r:has(.lx-arrow) { grid-template-columns: 18px minmax(140px, 1fr) minmax(0, 1fr) 14px minmax(0, 1fr) auto; }
.lx-r.same { opacity: .55; cursor: default; }
.lx-n { font-weight: 600; }
.lx-c { color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.lx-c.old { color: var(--muted); }
.lx-c i { color: var(--muted); font-style: italic; }
.lx-arrow { color: var(--muted); text-align: center; }
.lx-cb { width: 13px; }
.lx-st { font-size: 10.5px; padding: 2px 7px; border-radius: 10px; border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.lx-st.new { color: #2e8b57; border-color: #9fd3b4; }
.lx-st.more { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.lx-st.mod { color: #b26a00; border-color: #e3b46a; }
.lx-st.gone { color: #c0392b; border-color: #e3a49b; }
.lst-cat { margin-top: 6px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); }
.lst-okt { font-size: 11px; color: #2e8b57; }

/* les blocs des réglages gardent leur hauteur (la page défile) */
.set-detail > *, .set-sr > * { flex-shrink: 0; }

/* ── Composition de la légende en étiquettes (28/10) ── */
.cpx-presets { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.cpx-k { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); }
.cpx-mine { font-size: 11.5px; color: var(--muted); font-style: italic; }
.cpx-line { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; min-height: 44px; padding: 7px 8px; cursor: text; max-width: 760px; box-sizing: border-box; }
.cpx-line:focus { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 1px; }
.cpx-slot { align-self: stretch; width: 9px; min-height: 26px; position: relative; cursor: text; }
.cpx-slot::after { content: ''; position: absolute; left: 4px; top: 3px; bottom: 3px; width: 2px; border-radius: 1px; background: transparent; }
.cpx-slot:hover::after { background: color-mix(in srgb, var(--accent) 45%, transparent); }
.cpx-slot.on::after, .cpx-slot.drop::after { background: var(--accent); }
.cpx-line:focus .cpx-slot.on::after { animation: cpx-blink 1s steps(1) infinite; }
@keyframes cpx-blink { 50% { opacity: 0; } }
.cpx-t { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 6px 0 9px; border-radius: 6px; font-size: 12.5px; cursor: pointer; user-select: none; }
.cpx-t.f { background: color-mix(in srgb, var(--accent) 13%, var(--panel)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); color: var(--ink); }
.cpx-t.f i { font-style: normal; color: var(--muted); font-size: 11.5px; }
.cpx-t.s { padding: 0 7px; background: var(--panel-up, var(--panel)); border: 1px dashed var(--border); color: var(--muted); font-family: var(--mono); font-size: 12px; }
.cpx-t:hover { border-color: var(--accent); }
.cpx-t.dragging { opacity: .4; }
.cpx-dd svg { width: 9px; height: 9px; opacity: .55; }
.cpx-x { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 2px; font-size: 14px; line-height: 1; opacity: 0; }
.cpx-t:hover .cpx-x { opacity: .8; }
.cpx-x:hover { color: #c0392b; opacity: 1; }
.cpx-add { margin-left: 4px; width: 26px; height: 26px; border-radius: 6px; border: 1px dashed var(--border); background: none; color: var(--muted); cursor: pointer; font-size: 15px; }
.cpx-add:hover { color: var(--accent); border-color: var(--accent); }
.cpx-m { display: flex; flex-direction: column; gap: 2px; }
.cpx-mh { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); padding: 6px 4px 3px; display: flex; align-items: center; gap: 6px; }
.cpx-mh b { text-transform: none; letter-spacing: 0; font-size: 12.5px; color: var(--ink); }
.cpx-back { border: 1px solid var(--border); background: none; border-radius: 4px; width: 20px; height: 20px; cursor: pointer; color: var(--ink); line-height: 1; }
.cpx-pop .tmpl-pick { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.cpx-pop .tmpl-pick.dim { opacity: .6; }
.cpx-pop .tmpl-pick i { font-style: normal; color: var(--muted); font-size: 11px; }
.cpx-pop .tmpl-pick.on { color: var(--accent); }
.cpx-more { color: var(--muted); }
.cpx-seps { display: flex; flex-wrap: wrap; gap: 5px; padding: 2px 4px 6px; }
.cpx-seps .btn { min-width: 30px; font-family: var(--mono); }
.cpx-del .tmpl-name { color: #c0392b; }

/* ── Valeurs différentes : une couleur par valeur (28/10) ── */
.sz-sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; flex: 0 0 auto; }
.sz-mark { outline: 3px solid var(--szc) !important; outline-offset: 2px; border-radius: 6px; transition: opacity .15s, outline-color .15s; }
body.sz-focus .sz-mark:not(.sz-lit), body.sz-focus .tcard:not(.sz-mark), body.sz-focus .lrow:not(.sz-mark), body.sz-focus .v4-lcard:not(.sz-mark) { opacity: .28; }
.sz-mix-r { border-left: 4px solid var(--szc); padding-left: 8px; border-radius: 4px; }
.sz-mix-r textarea.well, .sz-mix-r .combo input.well { background: color-mix(in srgb, var(--szc) 10%, var(--panel)); }
.sz-mix-r:hover textarea.well, .sz-mix-r:hover .combo input.well { background: color-mix(in srgb, var(--szc) 18%, var(--panel)); }
.sz-mix-r .combo { position: relative; }
.sz-mix-r .combo input.well { width: 100%; box-sizing: border-box; height: 32px; padding: 0 26px 0 9px; }
.combo-menu { z-index: 2600 !important; }
/* Vérifier mes villes : face à face */
.mv-tools { padding: 0 18px 6px; }
.mv-tools .kw-add { max-width: 280px; }
.mv-cols, .mv-r { display: grid !important; grid-template-columns: 18px minmax(120px, 190px) 16px minmax(0, 1fr) auto 26px 26px; gap: 8px; align-items: center; }
.mv-cols { padding: 4px 18px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); border-bottom: 1px solid var(--border); }
.mv-r { padding: 4px 0; }
.mv-r.hl { background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 6px; }
.mv-name { height: 30px; min-height: 0; padding: 0 8px; font-size: 13px; font-weight: 600; width: 100%; box-sizing: border-box; }
.mv-name:not(:focus) { background: transparent; border-color: transparent; }
.mv-r:hover .mv-name:not(:focus) { border-color: var(--border); }
.mv-arrow { color: var(--muted); text-align: center; }
.mv-wh { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.mv-r .mv-w { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ins-into { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.ins-into .seg { height: 26px; text-transform: none; letter-spacing: 0; }
.ins-into .seg button { font-size: 12px; padding: 0 10px; }
